]> git.saurik.com Git - wxWidgets.git/blame - src/expat/configure
don't use MSW-only DEFAULT_ITEM_WIDTH but the width returned by the best class GetBes...
[wxWidgets.git] / src / expat / configure
CommitLineData
5e9f2524
VS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
79608eef 3# Generated by GNU Autoconf 2.57.
5e9f2524
VS
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
5e9f2524
VS
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
79608eef
VS
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
5e9f2524
VS
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
5e9f2524
VS
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
79608eef
VS
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
5e9f2524
VS
63
64
65# Name of the executable.
79608eef 66as_me=`$as_basename "$0" ||
5e9f2524
VS
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
79608eef 77
5e9f2524
VS
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
79608eef
VS
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
5e9f2524
VS
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
79608eef 96 rm -f conf$$.sh
5e9f2524
VS
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
79608eef
VS
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; }
5e9f2524
VS
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
79608eef
VS
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
5e9f2524
VS
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
79608eef
VS
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
5e9f2524 399
5e9f2524
VS
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
79608eef 413ac_config_libobj_dir=.
5e9f2524
VS
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
79608eef
VS
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
5e9f2524 431
79608eef 432ac_unique_file="expat"
5e9f2524
VS
433ac_unique_file="Makefile.in"
434# 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
4301e38a 471ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS FILEMAP LTLIBOBJS'
79608eef 472ac_subst_files=''
5e9f2524
VS
473
474# Initialize some variables set by options.
475ac_init_help=
476ac_init_version=false
477# The variables have the same names as the options, with
478# dashes changed to underlines.
479cache_file=/dev/null
480exec_prefix=NONE
481no_create=
482no_recursion=
483prefix=NONE
484program_prefix=NONE
485program_suffix=NONE
486program_transform_name=s,x,x,
487silent=
488site=
489srcdir=
490verbose=
491x_includes=NONE
492x_libraries=NONE
493
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.
499bindir='${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
512ac_prev=
513for ac_option
514do
515 # 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
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case $ac_option in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
537
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=*)
543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
552 datadir=$ac_optarg ;;
553
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 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" ;;
562
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 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"`;;
572 *) ac_optarg=yes ;;
573 esac
574 eval "enable_$ac_feature='$ac_optarg'" ;;
575
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=*)
583 exec_prefix=$ac_optarg ;;
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
589 -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 ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
600
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=*)
606 includedir=$ac_optarg ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
624
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=*)
632 localstatedir=$ac_optarg ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
638
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 \
644 | --no-cr | --no-c | -n)
645 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=*)
658 oldincludedir=$ac_optarg ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
664
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=*)
670 program_prefix=$ac_optarg ;;
671
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=*)
677 program_suffix=$ac_optarg ;;
678
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=*)
694 program_transform_name=$ac_optarg ;;
695
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=*)
704 sbindir=$ac_optarg ;;
705
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=*)
715 sharedstatedir=$ac_optarg ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
726
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=*)
732 sysconfdir=$ac_optarg ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
744
745 -with-* | --with-*)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 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; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
756 eval "with_$ac_package='$ac_optarg'" ;;
757
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 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" ;;
766
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=*)
776 x_includes=$ac_optarg ;;
777
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=*)
783 x_libraries=$ac_optarg ;;
784
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
788 ;;
789
790 *=*)
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
800 *)
801 # 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}
806 ;;
807
808 esac
809done
810
811if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
815fi
816
817# Be sure to have absolute paths.
818for ac_var in exec_prefix prefix
819do
820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826done
827
828# Be sure to have absolute paths.
829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
831do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838done
839
840# There might be people who depend on the old broken behavior: `$host'
841# used to hold the argument of --host etc.
842# FIXME: To remove some day.
843build=$build_alias
844host=$host_alias
845target=$target_alias
846
847# FIXME: To remove some day.
848if 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
862
863
864# 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.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
874echo 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'`
880 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
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
891 else
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
894 fi
895fi
79608eef
VS
896(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; }; }
5e9f2524
VS
899srcdir=`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
932
933#
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.
939 cat <<_ACEOF
79608eef 940\`configure' configures this package to adapt to many kinds of systems.
5e9f2524
VS
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
960_ACEOF
961
962 cat <<_ACEOF
963Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
965 [$ac_default_prefix]
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
967 [PREFIX]
968
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]
989_ACEOF
990
991 cat <<\_ACEOF
992
993System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996_ACEOF
997fi
998
999if test -n "$ac_init_help"; then
79608eef 1000
5e9f2524
VS
1001 cat <<\_ACEOF
1002
1003Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --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
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010
1011Optional Packages:
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
1016
1017Some influential environment variables:
1018 CC C compiler command
1019 CFLAGS C compiler flags
1020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1021 nonstandard directory <lib dir>
1022 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1023 headers in a nonstandard directory <include dir>
1024 CPP C preprocessor
1025
1026Use these variables to override the choices made by `configure' or to help
1027it to find libraries and programs with nonstandard names/locations.
1028
5e9f2524
VS
1029_ACEOF
1030fi
1031
1032if test "$ac_init_help" = "recursive"; then
1033 # If there are subdirs, report their specific --help.
1034 ac_popdir=`pwd`
1035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1036 test -d $ac_dir || continue
1037 ac_builddir=.
1038
1039if test "$ac_dir" != .; then
1040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1041 # A "../" for each directory in $ac_dir_suffix.
1042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1043else
1044 ac_dir_suffix= ac_top_builddir=
1045fi
1046
1047case $srcdir in
1048 .) # No --srcdir option. We are building in place.
1049 ac_srcdir=.
1050 if test -z "$ac_top_builddir"; then
1051 ac_top_srcdir=.
1052 else
1053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1054 fi ;;
1055 [\\/]* | ?:[\\/]* ) # Absolute path.
1056 ac_srcdir=$srcdir$ac_dir_suffix;
1057 ac_top_srcdir=$srcdir ;;
1058 *) # Relative path.
1059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1061esac
1062# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1063# absolute.
1064ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
79608eef 1065ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5e9f2524
VS
1066ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1067ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1068
1069 cd $ac_dir
1070 # Check for guested configure; otherwise get Cygnus style configure.
1071 if test -f $ac_srcdir/configure.gnu; then
1072 echo
1073 $SHELL $ac_srcdir/configure.gnu --help=recursive
1074 elif test -f $ac_srcdir/configure; then
1075 echo
1076 $SHELL $ac_srcdir/configure --help=recursive
1077 elif test -f $ac_srcdir/configure.ac ||
1078 test -f $ac_srcdir/configure.in; then
1079 echo
1080 $ac_configure --help
1081 else
1082 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1083 fi
1084 cd $ac_popdir
1085 done
1086fi
1087
1088test -n "$ac_init_help" && exit 0
1089if $ac_init_version; then
1090 cat <<\_ACEOF
5e9f2524
VS
1091
1092Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1093Free Software Foundation, Inc.
1094This configure script is free software; the Free Software Foundation
1095gives unlimited permission to copy, distribute and modify it.
1096_ACEOF
1097 exit 0
1098fi
1099exec 5>config.log
1100cat >&5 <<_ACEOF
1101This file contains any messages produced by compilers while
1102running configure, to aid debugging if configure makes a mistake.
1103
79608eef
VS
1104It was created by $as_me, which was
1105generated by GNU Autoconf 2.57. Invocation command line was
5e9f2524
VS
1106
1107 $ $0 $@
1108
1109_ACEOF
1110{
1111cat <<_ASUNAME
1112## --------- ##
1113## Platform. ##
1114## --------- ##
1115
1116hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1117uname -m = `(uname -m) 2>/dev/null || echo unknown`
1118uname -r = `(uname -r) 2>/dev/null || echo unknown`
1119uname -s = `(uname -s) 2>/dev/null || echo unknown`
1120uname -v = `(uname -v) 2>/dev/null || echo unknown`
1121
1122/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1123/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1124
1125/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1126/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1127/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1128hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1129/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1130/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1131/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1132
1133_ASUNAME
1134
1135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136for as_dir in $PATH
1137do
1138 IFS=$as_save_IFS
1139 test -z "$as_dir" && as_dir=.
1140 echo "PATH: $as_dir"
1141done
1142
1143} >&5
1144
1145cat >&5 <<_ACEOF
1146
1147
1148## ----------- ##
1149## Core tests. ##
1150## ----------- ##
1151
1152_ACEOF
1153
1154
1155# Keep a trace of the command line.
1156# Strip out --no-create and --no-recursion so they do not pile up.
79608eef 1157# Strip out --silent because we don't want to record it for future runs.
5e9f2524 1158# Also quote any args containing shell meta-characters.
79608eef 1159# Make two passes to allow for proper duplicate-argument suppression.
5e9f2524 1160ac_configure_args=
79608eef
VS
1161ac_configure_args0=
1162ac_configure_args1=
5e9f2524 1163ac_sep=
79608eef
VS
1164ac_must_keep_next=false
1165for ac_pass in 1 2
5e9f2524 1166do
79608eef
VS
1167 for ac_arg
1168 do
1169 case $ac_arg in
1170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 continue ;;
1174 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176 esac
1177 case $ac_pass in
1178 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1179 2)
1180 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1181 if test $ac_must_keep_next = true; then
1182 ac_must_keep_next=false # Got value, back to normal.
1183 else
1184 case $ac_arg in
1185 *=* | --config-cache | -C | -disable-* | --disable-* \
1186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1188 | -with-* | --with-* | -without-* | --without-* | --x)
1189 case "$ac_configure_args0 " in
1190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1191 esac
1192 ;;
1193 -* ) ac_must_keep_next=true ;;
1194 esac
1195 fi
1196 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1197 # Get rid of the leading space.
1198 ac_sep=" "
1199 ;;
1200 esac
1201 done
5e9f2524 1202done
79608eef
VS
1203$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1204$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5e9f2524
VS
1205
1206# When interrupted or exit'd, cleanup temporary files, and complete
1207# config.log. We remove comments because anyway the quotes in there
1208# would cause problems or look ugly.
1209# WARNING: Be sure not to use single quotes in there, as some shells,
1210# such as our DU 5.0 friend, will then `close' the trap.
1211trap 'exit_status=$?
1212 # Save into config.log some information that might help in debugging.
1213 {
1214 echo
79608eef 1215
5e9f2524
VS
1216 cat <<\_ASBOX
1217## ---------------- ##
1218## Cache variables. ##
1219## ---------------- ##
1220_ASBOX
1221 echo
1222 # The following way of writing the cache mishandles newlines in values,
1223{
1224 (set) 2>&1 |
1225 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1226 *ac_space=\ *)
1227 sed -n \
1228 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1230 ;;
1231 *)
1232 sed -n \
1233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234 ;;
1235 esac;
1236}
1237 echo
79608eef
VS
1238
1239 cat <<\_ASBOX
1240## ----------------- ##
1241## Output variables. ##
1242## ----------------- ##
1243_ASBOX
1244 echo
1245 for ac_var in $ac_subst_vars
1246 do
1247 eval ac_val=$`echo $ac_var`
1248 echo "$ac_var='"'"'$ac_val'"'"'"
1249 done | sort
1250 echo
1251
1252 if test -n "$ac_subst_files"; then
1253 cat <<\_ASBOX
1254## ------------- ##
1255## Output files. ##
1256## ------------- ##
1257_ASBOX
1258 echo
1259 for ac_var in $ac_subst_files
1260 do
1261 eval ac_val=$`echo $ac_var`
1262 echo "$ac_var='"'"'$ac_val'"'"'"
1263 done | sort
1264 echo
1265 fi
1266
5e9f2524
VS
1267 if test -s confdefs.h; then
1268 cat <<\_ASBOX
1269## ----------- ##
1270## confdefs.h. ##
1271## ----------- ##
1272_ASBOX
1273 echo
79608eef 1274 sed "/^$/d" confdefs.h | sort
5e9f2524
VS
1275 echo
1276 fi
1277 test "$ac_signal" != 0 &&
1278 echo "$as_me: caught signal $ac_signal"
1279 echo "$as_me: exit $exit_status"
1280 } >&5
1281 rm -f core core.* *.core &&
1282 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1283 exit $exit_status
1284 ' 0
1285for ac_signal in 1 2 13 15; do
1286 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1287done
1288ac_signal=0
1289
1290# confdefs.h avoids OS command line length limits that DEFS can exceed.
1291rm -rf conftest* confdefs.h
1292# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1293echo >confdefs.h
1294
1295# Predefined preprocessor variables.
1296
1297cat >>confdefs.h <<_ACEOF
1298#define PACKAGE_NAME "$PACKAGE_NAME"
1299_ACEOF
1300
1301
1302cat >>confdefs.h <<_ACEOF
1303#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1304_ACEOF
1305
1306
1307cat >>confdefs.h <<_ACEOF
1308#define PACKAGE_VERSION "$PACKAGE_VERSION"
1309_ACEOF
1310
1311
1312cat >>confdefs.h <<_ACEOF
1313#define PACKAGE_STRING "$PACKAGE_STRING"
1314_ACEOF
1315
1316
1317cat >>confdefs.h <<_ACEOF
1318#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1319_ACEOF
1320
1321
1322# Let the site file select an alternate cache file if it wants to.
1323# Prefer explicitly selected file to automatically selected ones.
1324if test -z "$CONFIG_SITE"; then
1325 if test "x$prefix" != xNONE; then
1326 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1327 else
1328 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1329 fi
1330fi
1331for ac_site_file in $CONFIG_SITE; do
1332 if test -r "$ac_site_file"; then
1333 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1334echo "$as_me: loading site script $ac_site_file" >&6;}
1335 sed 's/^/| /' "$ac_site_file" >&5
1336 . "$ac_site_file"
1337 fi
1338done
1339
1340if test -r "$cache_file"; then
1341 # Some versions of bash will fail to source /dev/null (special
1342 # files actually), so we avoid doing that.
1343 if test -f "$cache_file"; then
1344 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1345echo "$as_me: loading cache $cache_file" >&6;}
1346 case $cache_file in
1347 [\\/]* | ?:[\\/]* ) . $cache_file;;
1348 *) . ./$cache_file;;
1349 esac
1350 fi
1351else
1352 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1353echo "$as_me: creating cache $cache_file" >&6;}
1354 >$cache_file
1355fi
1356
1357# Check that the precious variables saved in the cache have kept the same
1358# value.
1359ac_cache_corrupted=false
1360for ac_var in `(set) 2>&1 |
1361 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1363 eval ac_new_set=\$ac_env_${ac_var}_set
1364 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1365 eval ac_new_val="\$ac_env_${ac_var}_value"
1366 case $ac_old_set,$ac_new_set in
1367 set,)
1368 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1369echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1370 ac_cache_corrupted=: ;;
1371 ,set)
1372 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1373echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1374 ac_cache_corrupted=: ;;
1375 ,);;
1376 *)
1377 if test "x$ac_old_val" != "x$ac_new_val"; then
1378 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1379echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1380 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1381echo "$as_me: former value: $ac_old_val" >&2;}
1382 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1383echo "$as_me: current value: $ac_new_val" >&2;}
1384 ac_cache_corrupted=:
1385 fi;;
1386 esac
1387 # Pass precious variables to config.status.
1388 if test "$ac_new_set" = set; then
1389 case $ac_new_val in
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 *) ac_arg=$ac_var=$ac_new_val ;;
1393 esac
1394 case " $ac_configure_args " in
1395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1396 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1397 esac
1398 fi
1399done
1400if $ac_cache_corrupted; then
1401 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1402echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1403 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1404echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1405 { (exit 1); exit 1; }; }
1406fi
1407
1408ac_ext=c
1409ac_cpp='$CPP $CPPFLAGS'
1410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
5e9f2524
VS
1427
1428
1429
1430
1431
1432
1433
1434
1435ac_aux_dir=
1436for ac_dir in conftools $srcdir/conftools; do
1437 if test -f $ac_dir/install-sh; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/install-sh -c"
1440 break
1441 elif test -f $ac_dir/install.sh; then
1442 ac_aux_dir=$ac_dir
1443 ac_install_sh="$ac_aux_dir/install.sh -c"
1444 break
1445 elif test -f $ac_dir/shtool; then
1446 ac_aux_dir=$ac_dir
1447 ac_install_sh="$ac_aux_dir/shtool install -c"
1448 break
1449 fi
1450done
1451if test -z "$ac_aux_dir"; then
1452 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1453echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1454 { (exit 1); exit 1; }; }
1455fi
1456ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1457ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1458ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1459
1460
1461
1462
1463LIBCURRENT=4
1464LIBREVISION=0
1465LIBAGE=4
1466
79608eef 1467 ac_config_headers="$ac_config_headers expat_config.h"
5e9f2524
VS
1468
1469
1470# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1471## Copyright 1996, 1997, 1998, 1999, 2000, 2001
1472## Free Software Foundation, Inc.
1473## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1474##
1475## This program is free software; you can redistribute it and/or modify
1476## it under the terms of the GNU General Public License as published by
1477## the Free Software Foundation; either version 2 of the License, or
1478## (at your option) any later version.
1479##
1480## This program is distributed in the hope that it will be useful, but
1481## WITHOUT ANY WARRANTY; without even the implied warranty of
1482## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1483## General Public License for more details.
1484##
1485## You should have received a copy of the GNU General Public License
1486## along with this program; if not, write to the Free Software
1487## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1488##
1489## As a special exception to the GNU General Public License, if you
1490## distribute this file as part of a program that contains a
1491## configuration script generated by Autoconf, you may include it under
1492## the same distribution terms that you use for the rest of that program.
1493
1494# serial 46 AC_PROG_LIBTOOL
1495
1496
1497
1498
1499
1500# AC_LIBTOOL_HEADER_ASSERT
1501# ------------------------
1502# AC_LIBTOOL_HEADER_ASSERT
1503
1504# _LT_AC_CHECK_DLFCN
1505# --------------------
1506# _LT_AC_CHECK_DLFCN
1507
1508# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1509# ---------------------------------
1510 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1511
1512# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1513# ---------------------------------
1514# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1515
1516# _LT_AC_PROG_ECHO_BACKSLASH
1517# --------------------------
1518# Add some code to the start of the generated configure script which
1519# will find an echo command which doesn't interpret backslashes.
1520# _LT_AC_PROG_ECHO_BACKSLASH
1521
1522# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1523# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1524# ------------------------------------------------------------------
1525# _LT_AC_TRY_DLOPEN_SELF
1526
1527# AC_LIBTOOL_DLOPEN_SELF
1528# -------------------
1529# AC_LIBTOOL_DLOPEN_SELF
1530
1531# _LT_AC_LTCONFIG_HACK
1532
1533# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1534
1535
1536# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1537
1538
1539# AC_ENABLE_SHARED - implement the --enable-shared flag
1540# Usage: AC_ENABLE_SHARED[(DEFAULT)]
1541# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1542# `yes'.
1543
1544
1545# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1546
1547
1548# AC_ENABLE_STATIC - implement the --enable-static flag
1549# Usage: AC_ENABLE_STATIC[(DEFAULT)]
1550# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1551# `yes'.
1552
1553
1554# AC_DISABLE_STATIC - set the default static flag to --disable-static
1555
1556
1557
1558# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1559# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1560# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1561# `yes'.
1562
1563
1564# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
1565
1566
1567# AC_LIBTOOL_PICMODE - implement the --with-pic flag
1568# Usage: AC_LIBTOOL_PICMODE[(MODE)]
1569# Where MODE is either `yes' or `no'. If omitted, it defaults to
1570# `both'.
1571
1572
1573
1574# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
1575
1576
1577
1578# AC_PATH_MAGIC - find a file program which can recognise a shared library
1579
1580
1581
1582# AC_PROG_LD - find the path to the GNU or non-GNU linker
1583
1584
1585# AC_PROG_LD_GNU -
1586
1587
1588# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
1589# -- PORTME Some linkers may need a different reload flag.
1590
1591
1592# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1593# -- PORTME fill in with the dynamic library characteristics
1594
1595
1596
1597# AC_PROG_NM - find the path to a BSD-compatible name lister
1598
1599
1600# AC_CHECK_LIBM - check for math library
1601
1602
1603# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1604# the libltdl convenience library and INCLTDL to the include flags for
1605# the libltdl header and adds --enable-ltdl-convenience to the
1606# configure arguments. Note that LIBLTDL and INCLTDL are not
1607# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1608# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1609# with '${top_builddir}/' and INCLTDL will be prefixed with
1610# '${top_srcdir}/' (note the single quotes!). If your package is not
1611# flat and you're not using automake, define top_builddir and
1612# top_srcdir appropriately in the Makefiles.
1613
1614
1615# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1616# the libltdl installable library and INCLTDL to the include flags for
1617# the libltdl header and adds --enable-ltdl-install to the configure
1618# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1619# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1620# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1621# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1622# with '${top_srcdir}/' (note the single quotes!). If your package is
1623# not flat and you're not using automake, define top_builddir and
1624# top_srcdir appropriately in the Makefiles.
1625# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1626
1627
1628# old names
1629
1630
1631
1632
1633
1634
1635
1636
1637# This is just to silence aclocal about the macro not being used
1638
1639
1640
1641
1642
1643
5e9f2524
VS
1644
1645
4301e38a 1646 ac_ext=c
5e9f2524
VS
1647ac_cpp='$CPP $CPPFLAGS'
1648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1650ac_compiler_gnu=$ac_cv_c_compiler_gnu
1651if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1653set dummy ${ac_tool_prefix}gcc; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687fi
1688if test -z "$ac_cv_prog_CC"; then
1689 ac_ct_CC=$CC
1690 # Extract the first word of "gcc", so it can be a program name with args.
1691set dummy gcc; ac_word=$2
1692echo "$as_me:$LINENO: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699else
1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="gcc"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711done
1712done
1713
1714fi
1715fi
1716ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719echo "${ECHO_T}$ac_ct_CC" >&6
1720else
1721 echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
1723fi
1724
1725 CC=$ac_ct_CC
1726else
1727 CC="$ac_cv_prog_CC"
1728fi
1729
1730if test -z "$CC"; then
1731 if test -n "$ac_tool_prefix"; then
1732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1733set dummy ${ac_tool_prefix}cc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$CC"; then
1740 ac_cv_prog_CC="$CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_CC="${ac_tool_prefix}cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
1754done
1755
1756fi
1757fi
1758CC=$ac_cv_prog_CC
1759if test -n "$CC"; then
1760 echo "$as_me:$LINENO: result: $CC" >&5
1761echo "${ECHO_T}$CC" >&6
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767fi
1768if test -z "$ac_cv_prog_CC"; then
1769 ac_ct_CC=$CC
1770 # Extract the first word of "cc", so it can be a program name with args.
1771set dummy cc; ac_word=$2
1772echo "$as_me:$LINENO: checking for $ac_word" >&5
1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 if test -n "$ac_ct_CC"; then
1778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1779else
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_ac_ct_CC="cc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791done
1792done
1793
1794fi
1795fi
1796ac_ct_CC=$ac_cv_prog_ac_ct_CC
1797if test -n "$ac_ct_CC"; then
1798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1799echo "${ECHO_T}$ac_ct_CC" >&6
1800else
1801 echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805 CC=$ac_ct_CC
1806else
1807 CC="$ac_cv_prog_CC"
1808fi
1809
1810fi
1811if test -z "$CC"; then
1812 # Extract the first word of "cc", so it can be a program name with args.
1813set dummy cc; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821else
1822 ac_prog_rejected=no
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1831 ac_prog_rejected=yes
1832 continue
1833 fi
1834 ac_cv_prog_CC="cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841if test $ac_prog_rejected = yes; then
1842 # We found a bogon in the path, so make sure we never use it.
1843 set dummy $ac_cv_prog_CC
1844 shift
1845 if test $# != 0; then
1846 # We chose a different compiler from the bogus one.
1847 # However, it has the same basename, so the bogon will be chosen
1848 # first if we set CC to just the basename; use the full file name.
1849 shift
79608eef 1850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5e9f2524
VS
1851 fi
1852fi
1853fi
1854fi
1855CC=$ac_cv_prog_CC
1856if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858echo "${ECHO_T}$CC" >&6
1859else
1860 echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
1863
1864fi
1865if test -z "$CC"; then
1866 if test -n "$ac_tool_prefix"; then
1867 for ac_prog in cl
1868 do
1869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1889 fi
1890done
1891done
1892
1893fi
1894fi
1895CC=$ac_cv_prog_CC
1896if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898echo "${ECHO_T}$CC" >&6
1899else
1900 echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904 test -n "$CC" && break
1905 done
1906fi
1907if test -z "$CC"; then
1908 ac_ct_CC=$CC
1909 for ac_prog in cl
1910do
1911 # Extract the first word of "$ac_prog", so it can be a program name with args.
1912set dummy $ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_CC="$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1931 fi
1932done
1933done
1934
1935fi
1936fi
1937ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938if test -n "$ac_ct_CC"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940echo "${ECHO_T}$ac_ct_CC" >&6
1941else
1942 echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946 test -n "$ac_ct_CC" && break
1947done
1948
1949 CC=$ac_ct_CC
1950fi
1951
1952fi
1953
1954
79608eef
VS
1955test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: no acceptable C compiler found in \$PATH
1958See \`config.log' for more details." >&2;}
5e9f2524
VS
1959 { (exit 1); exit 1; }; }
1960
1961# Provide some information about the compiler.
1962echo "$as_me:$LINENO:" \
1963 "checking for C compiler version" >&5
1964ac_compiler=`set X $ac_compile; echo $2`
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1966 (eval $ac_compiler --version </dev/null >&5) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1971 (eval $ac_compiler -v </dev/null >&5) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }
1975{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1976 (eval $ac_compiler -V </dev/null >&5) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1980
1981cat >conftest.$ac_ext <<_ACEOF
1982#line $LINENO "configure"
79608eef
VS
1983/* confdefs.h. */
1984_ACEOF
1985cat confdefs.h >>conftest.$ac_ext
1986cat >>conftest.$ac_ext <<_ACEOF
1987/* end confdefs.h. */
5e9f2524 1988
5e9f2524
VS
1989int
1990main ()
1991{
1992
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997ac_clean_files_save=$ac_clean_files
79608eef 1998ac_clean_files="$ac_clean_files a.out a.exe b.out"
5e9f2524
VS
1999# Try to create an executable without -o first, disregard a.out.
2000# It will help us diagnose broken compilers, and finding out an intuition
2001# of exeext.
2002echo "$as_me:$LINENO: checking for C compiler default output" >&5
2003echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2004ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2005if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2006 (eval $ac_link_default) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; then
2010 # Find the output, starting from the most likely. This scheme is
2011# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2012# resort.
2013
2014# Be careful to initialize this variable, since it used to be cached.
2015# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2016ac_cv_exeext=
79608eef
VS
2017# b.out is created by i960 compilers.
2018for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2019do
2020 test -f "$ac_file" || continue
5e9f2524 2021 case $ac_file in
79608eef
VS
2022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2023 ;;
2024 conftest.$ac_ext )
2025 # This is the source file.
2026 ;;
2027 [ab].out )
2028 # We found the default executable, but exeext='' is most
2029 # certainly right.
2030 break;;
2031 *.* )
2032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2033 # FIXME: I believe we export ac_cv_exeext for Libtool,
2034 # but it would be cool to find out if it's true. Does anybody
2035 # maintain Libtool? --akim.
2036 export ac_cv_exeext
2037 break;;
2038 * )
2039 break;;
5e9f2524
VS
2040 esac
2041done
2042else
2043 echo "$as_me: failed program was:" >&5
79608eef
VS
2044sed 's/^/| /' conftest.$ac_ext >&5
2045
2046{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2047See \`config.log' for more details." >&5
2048echo "$as_me: error: C compiler cannot create executables
2049See \`config.log' for more details." >&2;}
5e9f2524
VS
2050 { (exit 77); exit 77; }; }
2051fi
2052
2053ac_exeext=$ac_cv_exeext
2054echo "$as_me:$LINENO: result: $ac_file" >&5
2055echo "${ECHO_T}$ac_file" >&6
2056
2057# Check the compiler produces executables we can run. If not, either
2058# the compiler is broken, or we cross compile.
2059echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2060echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2061# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2062# If not cross compiling, check that we can run a simple program.
2063if test "$cross_compiling" != yes; then
2064 if { ac_try='./$ac_file'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 cross_compiling=no
2071 else
2072 if test "$cross_compiling" = maybe; then
2073 cross_compiling=yes
2074 else
2075 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
79608eef
VS
2076If you meant to cross compile, use \`--host'.
2077See \`config.log' for more details." >&5
5e9f2524 2078echo "$as_me: error: cannot run C compiled programs.
79608eef
VS
2079If you meant to cross compile, use \`--host'.
2080See \`config.log' for more details." >&2;}
5e9f2524
VS
2081 { (exit 1); exit 1; }; }
2082 fi
2083 fi
2084fi
2085echo "$as_me:$LINENO: result: yes" >&5
2086echo "${ECHO_T}yes" >&6
2087
79608eef 2088rm -f a.out a.exe conftest$ac_cv_exeext b.out
5e9f2524
VS
2089ac_clean_files=$ac_clean_files_save
2090# Check the compiler produces executables we can run. If not, either
2091# the compiler is broken, or we cross compile.
2092echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2093echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2094echo "$as_me:$LINENO: result: $cross_compiling" >&5
2095echo "${ECHO_T}$cross_compiling" >&6
2096
2097echo "$as_me:$LINENO: checking for suffix of executables" >&5
2098echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2100 (eval $ac_link) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; then
2104 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2105# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2106# work properly (i.e., refer to `conftest.exe'), while it won't with
2107# `rm'.
79608eef
VS
2108for ac_file in conftest.exe conftest conftest.*; do
2109 test -f "$ac_file" || continue
5e9f2524 2110 case $ac_file in
79608eef 2111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
5e9f2524
VS
2112 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 export ac_cv_exeext
2114 break;;
2115 * ) break;;
2116 esac
2117done
2118else
79608eef
VS
2119 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2122See \`config.log' for more details." >&2;}
5e9f2524
VS
2123 { (exit 1); exit 1; }; }
2124fi
2125
2126rm -f conftest$ac_cv_exeext
2127echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2128echo "${ECHO_T}$ac_cv_exeext" >&6
2129
2130rm -f conftest.$ac_ext
2131EXEEXT=$ac_cv_exeext
2132ac_exeext=$EXEEXT
2133echo "$as_me:$LINENO: checking for suffix of object files" >&5
2134echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2135if test "${ac_cv_objext+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 cat >conftest.$ac_ext <<_ACEOF
2139#line $LINENO "configure"
79608eef
VS
2140/* confdefs.h. */
2141_ACEOF
2142cat confdefs.h >>conftest.$ac_ext
2143cat >>conftest.$ac_ext <<_ACEOF
2144/* end confdefs.h. */
5e9f2524 2145
5e9f2524
VS
2146int
2147main ()
2148{
2149
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154rm -f conftest.o conftest.obj
2155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; then
2160 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2161 case $ac_file in
79608eef 2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
5e9f2524
VS
2163 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2164 break;;
2165 esac
2166done
2167else
2168 echo "$as_me: failed program was:" >&5
79608eef
VS
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2172See \`config.log' for more details." >&5
2173echo "$as_me: error: cannot compute suffix of object files: cannot compile
2174See \`config.log' for more details." >&2;}
5e9f2524
VS
2175 { (exit 1); exit 1; }; }
2176fi
2177
2178rm -f conftest.$ac_cv_objext conftest.$ac_ext
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2181echo "${ECHO_T}$ac_cv_objext" >&6
2182OBJEXT=$ac_cv_objext
2183ac_objext=$OBJEXT
2184echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2185echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2186if test "${ac_cv_c_compiler_gnu+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 cat >conftest.$ac_ext <<_ACEOF
2190#line $LINENO "configure"
79608eef
VS
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
5e9f2524 2196
5e9f2524
VS
2197int
2198main ()
2199{
2200#ifndef __GNUC__
2201 choke me
2202#endif
2203
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_compiler_gnu=yes
2221else
2222 echo "$as_me: failed program was:" >&5
79608eef
VS
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
5e9f2524
VS
2225ac_compiler_gnu=no
2226fi
2227rm -f conftest.$ac_objext conftest.$ac_ext
2228ac_cv_c_compiler_gnu=$ac_compiler_gnu
2229
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233GCC=`test $ac_compiler_gnu = yes && echo yes`
2234ac_test_CFLAGS=${CFLAGS+set}
2235ac_save_CFLAGS=$CFLAGS
2236CFLAGS="-g"
2237echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239if test "${ac_cv_prog_cc_g+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 cat >conftest.$ac_ext <<_ACEOF
2243#line $LINENO "configure"
79608eef
VS
2244/* confdefs.h. */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h. */
5e9f2524 2249
5e9f2524
VS
2250int
2251main ()
2252{
2253
2254 ;
2255 return 0;
2256}
2257_ACEOF
2258rm -f conftest.$ac_objext
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 ac_cv_prog_cc_g=yes
2271else
2272 echo "$as_me: failed program was:" >&5
79608eef
VS
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
5e9f2524
VS
2275ac_cv_prog_cc_g=no
2276fi
2277rm -f conftest.$ac_objext conftest.$ac_ext
2278fi
2279echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2281if test "$ac_test_CFLAGS" = set; then
2282 CFLAGS=$ac_save_CFLAGS
2283elif test $ac_cv_prog_cc_g = yes; then
2284 if test "$GCC" = yes; then
2285 CFLAGS="-g -O2"
2286 else
2287 CFLAGS="-g"
2288 fi
2289else
2290 if test "$GCC" = yes; then
2291 CFLAGS="-O2"
2292 else
2293 CFLAGS=
2294 fi
2295fi
79608eef
VS
2296echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2297echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2298if test "${ac_cv_prog_cc_stdc+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 ac_cv_prog_cc_stdc=no
2302ac_save_CC=$CC
2303cat >conftest.$ac_ext <<_ACEOF
2304#line $LINENO "configure"
2305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
2310#include <stdarg.h>
2311#include <stdio.h>
2312#include <sys/types.h>
2313#include <sys/stat.h>
2314/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2315struct buf { int x; };
2316FILE * (*rcsopen) (struct buf *, struct stat *, int);
2317static char *e (p, i)
2318 char **p;
2319 int i;
2320{
2321 return p[i];
2322}
2323static char *f (char * (*g) (char **, int), char **p, ...)
2324{
2325 char *s;
2326 va_list v;
2327 va_start (v,p);
2328 s = g (p, va_arg (v,int));
2329 va_end (v);
2330 return s;
2331}
2332int test (int i, double x);
2333struct s1 {int (*f) (int a);};
2334struct s2 {int (*f) (double a);};
2335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2336int argc;
2337char **argv;
2338int
2339main ()
2340{
2341return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2342 ;
2343 return 0;
2344}
2345_ACEOF
2346# Don't try gcc -ansi; that turns off useful extensions and
2347# breaks some systems' header files.
2348# AIX -qlanglvl=ansi
2349# Ultrix and OSF/1 -std1
2350# HP-UX 10.20 and later -Ae
2351# HP-UX older versions -Aa -D_HPUX_SOURCE
2352# SVR4 -Xc -D__EXTENSIONS__
2353for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2354do
2355 CC="$ac_save_CC $ac_arg"
2356 rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_stdc=$ac_arg
2369break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.$ac_objext
2376done
2377rm -f conftest.$ac_ext conftest.$ac_objext
2378CC=$ac_save_CC
2379
2380fi
2381
2382case "x$ac_cv_prog_cc_stdc" in
2383 x|xno)
2384 echo "$as_me:$LINENO: result: none needed" >&5
2385echo "${ECHO_T}none needed" >&6 ;;
2386 *)
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390esac
2391
5e9f2524
VS
2392# Some people use a C++ compiler to compile C. Since we use `exit',
2393# in C++ we need to declare it. In case someone uses the same compiler
2394# for both compiling C and C++ we need to have the C++ compiler decide
2395# the declaration of exit, since it's the most demanding environment.
2396cat >conftest.$ac_ext <<_ACEOF
2397#ifndef __cplusplus
2398 choke me
2399#endif
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 for ac_declaration in \
2414 ''\
2415 '#include <stdlib.h>' \
2416 'extern "C" void std::exit (int) throw (); using std::exit;' \
2417 'extern "C" void std::exit (int); using std::exit;' \
2418 'extern "C" void exit (int) throw ();' \
2419 'extern "C" void exit (int);' \
2420 'void exit (int);'
2421do
2422 cat >conftest.$ac_ext <<_ACEOF
2423#line $LINENO "configure"
79608eef
VS
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
5e9f2524
VS
2429#include <stdlib.h>
2430$ac_declaration
5e9f2524
VS
2431int
2432main ()
2433{
2434exit (42);
2435 ;
2436 return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 :
2452else
2453 echo "$as_me: failed program was:" >&5
79608eef
VS
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
5e9f2524
VS
2456continue
2457fi
2458rm -f conftest.$ac_objext conftest.$ac_ext
2459 cat >conftest.$ac_ext <<_ACEOF
2460#line $LINENO "configure"
79608eef
VS
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
5e9f2524 2466$ac_declaration
5e9f2524
VS
2467int
2468main ()
2469{
2470exit (42);
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 break
2488else
2489 echo "$as_me: failed program was:" >&5
79608eef
VS
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
5e9f2524
VS
2492fi
2493rm -f conftest.$ac_objext conftest.$ac_ext
2494done
2495rm -f conftest*
2496if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2500fi
2501
2502else
2503 echo "$as_me: failed program was:" >&5
79608eef
VS
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
5e9f2524
VS
2506fi
2507rm -f conftest.$ac_objext conftest.$ac_ext
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
4301e38a
DE
2514 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
2515echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
2516if test "${wx_cv_c_exto+set}" = set; then
5e9f2524
VS
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
4301e38a
DE
2519 cat >conftest.$ac_ext <<_ACEOF
2520#line $LINENO "configure"
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
5e9f2524 2526
4301e38a
DE
2527int
2528main ()
2529{
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext conftest.$ac_ext.o
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 for ac_file in `(ls conftest.* 2>/dev/null)`; do
2542 case $ac_file in
2543 conftest.$ac_ext.o)
2544 wx_cv_c_exto="-ext o"
2545 ;;
2546 *)
2547 ;;
2548 esac
2549done
5e9f2524 2550else
4301e38a
DE
2551 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
2552See \`config.log' for more details." >&5
2553echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
2554See \`config.log' for more details." >&2;}
5e9f2524 2555 { (exit 1); exit 1; }; }
4301e38a 2556
5e9f2524 2557fi
5e9f2524 2558
4301e38a 2559rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
5e9f2524 2560
5e9f2524 2561fi
4301e38a
DE
2562echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
2563echo "${ECHO_T}$wx_cv_c_exto" >&6
2564if test "x$wx_cv_c_exto" '!=' "x"; then
2565 if test "c" = "c"; then
2566 CFLAGS="$wx_cv_c_exto $CFLAGS"
2567 fi
2568 if test "c" = "cxx"; then
2569 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
2570 fi
2571fi
5e9f2524 2572
4301e38a
DE
2573 if test "x$wx_cv_c_exto" '!=' "x"; then
2574 unset ac_cv_prog_cc_g
2575 ac_test_CFLAGS=${CFLAGS+set}
2576ac_save_CFLAGS=$CFLAGS
2577CFLAGS="-g"
2578echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2579echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2580if test "${ac_cv_prog_cc_g+set}" = set; then
5e9f2524
VS
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
4301e38a
DE
2583 cat >conftest.$ac_ext <<_ACEOF
2584#line $LINENO "configure"
2585/* confdefs.h. */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h. */
2590
2591int
2592main ()
2593{
2594
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_prog_cc_g=yes
5e9f2524 2612else
4301e38a
DE
2613 echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616ac_cv_prog_cc_g=no
5e9f2524 2617fi
4301e38a 2618rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524 2619fi
4301e38a
DE
2620echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2622if test "$ac_test_CFLAGS" = set; then
2623 CFLAGS=$ac_save_CFLAGS
2624elif test $ac_cv_prog_cc_g = yes; then
2625 if test "$GCC" = yes; then
2626 CFLAGS="-g -O2"
2627 else
2628 CFLAGS="-g"
2629 fi
5e9f2524 2630else
4301e38a
DE
2631 if test "$GCC" = yes; then
2632 CFLAGS="-O2"
2633 else
2634 CFLAGS=
2635 fi
5e9f2524 2636fi
4301e38a
DE
2637 fi
2638 ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 2643
4301e38a
DE
2644echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
2645echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
2646if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
5e9f2524
VS
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
4301e38a
DE
2649 cat >conftest.$ac_ext <<_ACEOF
2650#line $LINENO "configure"
2651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
5e9f2524 2656
4301e38a
DE
2657int
2658main ()
2659{
2660#ifndef __MWERKS__
2661 choke me
2662#endif
5e9f2524 2663
4301e38a
DE
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext
2669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670 (eval $ac_compile) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 bakefile_compiler_mwerks=yes
2681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 2684
4301e38a
DE
2685bakefile_compiler_mwerks=no
2686fi
2687rm -f conftest.$ac_objext conftest.$ac_ext
2688 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
5e9f2524 2689
4301e38a
DE
2690fi
2691echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
2692echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
5e9f2524 2693
4301e38a
DE
2694MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 2700
5e9f2524 2701
4301e38a
DE
2702 ac_ext=c
2703ac_cpp='$CPP $CPPFLAGS'
2704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 2707
4301e38a
DE
2708echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
2709echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
2710if test "${wx_cv_c_compiler_xlc+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713 cat >conftest.$ac_ext <<_ACEOF
2714#line $LINENO "configure"
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
5e9f2524 2720
4301e38a
DE
2721int
2722main ()
2723{
2724#ifndef __xlC__
2725 choke me
2726#endif
5e9f2524 2727
4301e38a
DE
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 wx_compiler_xlc=yes
2745else
2746 echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 2748
4301e38a
DE
2749wx_compiler_xlc=no
2750fi
2751rm -f conftest.$ac_objext conftest.$ac_ext
2752 wx_cv_c_compiler_xlc=$wx_compiler_xlc
5e9f2524 2753
4301e38a
DE
2754fi
2755echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
2756echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
5e9f2524 2757
4301e38a
DE
2758XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
2759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 2764
5e9f2524 2765
5e9f2524 2766
5e9f2524 2767
5e9f2524 2768
4301e38a
DE
2769# Check whether --enable-shared or --disable-shared was given.
2770if test "${enable_shared+set}" = set; then
2771 enableval="$enable_shared"
2772 p=${PACKAGE-default}
2773case $enableval in
2774yes) enable_shared=yes ;;
2775no) enable_shared=no ;;
2776*)
2777 enable_shared=no
2778 # Look at the argument we got. We use all the common list separators.
2779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2780 for pkg in $enableval; do
2781 if test "X$pkg" = "X$p"; then
2782 enable_shared=yes
2783 fi
2784 done
2785 IFS="$ac_save_ifs"
5e9f2524
VS
2786 ;;
2787esac
4301e38a
DE
2788else
2789 enable_shared=yes
2790fi;
2791# Check whether --enable-static or --disable-static was given.
2792if test "${enable_static+set}" = set; then
2793 enableval="$enable_static"
2794 p=${PACKAGE-default}
2795case $enableval in
2796yes) enable_static=yes ;;
2797no) enable_static=no ;;
2798*)
2799 enable_static=no
2800 # Look at the argument we got. We use all the common list separators.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2802 for pkg in $enableval; do
2803 if test "X$pkg" = "X$p"; then
2804 enable_static=yes
2805 fi
2806 done
2807 IFS="$ac_save_ifs"
2808 ;;
2809esac
2810else
2811 enable_static=yes
2812fi;
2813# Check whether --enable-fast-install or --disable-fast-install was given.
2814if test "${enable_fast_install+set}" = set; then
2815 enableval="$enable_fast_install"
2816 p=${PACKAGE-default}
2817case $enableval in
2818yes) enable_fast_install=yes ;;
2819no) enable_fast_install=no ;;
2820*)
2821 enable_fast_install=no
2822 # Look at the argument we got. We use all the common list separators.
2823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2824 for pkg in $enableval; do
2825 if test "X$pkg" = "X$p"; then
2826 enable_fast_install=yes
2827 fi
2828 done
2829 IFS="$ac_save_ifs"
2830 ;;
2831esac
2832else
2833 enable_fast_install=yes
2834fi;
2835# Make sure we can run config.sub.
2836$ac_config_sub sun4 >/dev/null 2>&1 ||
2837 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2838echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2839 { (exit 1); exit 1; }; }
5e9f2524 2840
4301e38a
DE
2841echo "$as_me:$LINENO: checking build system type" >&5
2842echo $ECHO_N "checking build system type... $ECHO_C" >&6
2843if test "${ac_cv_build+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 ac_cv_build_alias=$build_alias
2847test -z "$ac_cv_build_alias" &&
2848 ac_cv_build_alias=`$ac_config_guess`
2849test -z "$ac_cv_build_alias" &&
2850 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2851echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2852 { (exit 1); exit 1; }; }
2853ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2854 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2855echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2856 { (exit 1); exit 1; }; }
5e9f2524 2857
4301e38a
DE
2858fi
2859echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2860echo "${ECHO_T}$ac_cv_build" >&6
2861build=$ac_cv_build
2862build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2863build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2864build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5e9f2524
VS
2865
2866
4301e38a
DE
2867echo "$as_me:$LINENO: checking host system type" >&5
2868echo $ECHO_N "checking host system type... $ECHO_C" >&6
2869if test "${ac_cv_host+set}" = set; then
5e9f2524
VS
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
4301e38a
DE
2872 ac_cv_host_alias=$host_alias
2873test -z "$ac_cv_host_alias" &&
2874 ac_cv_host_alias=$ac_cv_build_alias
2875ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2876 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2877echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2878 { (exit 1); exit 1; }; }
5e9f2524 2879
4301e38a
DE
2880fi
2881echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2882echo "${ECHO_T}$ac_cv_host" >&6
2883host=$ac_cv_host
2884host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2885host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2886host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5e9f2524 2887
5e9f2524 2888
4301e38a
DE
2889# Find the correct PATH separator. Usually this is `:', but
2890# DJGPP uses `;' like DOS.
2891if test "X${PATH_SEPARATOR+set}" != Xset; then
2892 UNAME=${UNAME-`uname 2>/dev/null`}
2893 case X$UNAME in
2894 *-DOS) lt_cv_sys_path_separator=';' ;;
2895 *) lt_cv_sys_path_separator=':' ;;
2896 esac
2897 PATH_SEPARATOR=$lt_cv_sys_path_separator
2898fi
5e9f2524 2899
5e9f2524 2900
4301e38a
DE
2901# Check whether --with-gnu-ld or --without-gnu-ld was given.
2902if test "${with_gnu_ld+set}" = set; then
2903 withval="$with_gnu_ld"
2904 test "$withval" = no || with_gnu_ld=yes
2905else
2906 with_gnu_ld=no
2907fi;
2908ac_prog=ld
2909if test "$GCC" = yes; then
2910 # Check if gcc -print-prog-name=ld gives a path.
2911 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2912echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2913 case $host in
2914 *-*-mingw*)
2915 # gcc leaves a trailing carriage return which upsets mingw
2916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2917 *)
2918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2919 esac
2920 case $ac_prog in
2921 # Accept absolute paths.
2922 [\\/]* | [A-Za-z]:[\\/]*)
2923 re_direlt='/[^/][^/]*/\.\./'
2924 # Canonicalize the path of ld
2925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2926 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2927 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2928 done
2929 test -z "$LD" && LD="$ac_prog"
2930 ;;
2931 "")
2932 # If it fails, then pretend we aren't using GCC.
2933 ac_prog=ld
2934 ;;
2935 *)
2936 # If it is relative, then search for the first ld in PATH.
2937 with_gnu_ld=unknown
2938 ;;
2939 esac
2940elif test "$with_gnu_ld" = yes; then
2941 echo "$as_me:$LINENO: checking for GNU ld" >&5
2942echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2943else
2944 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2945echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5e9f2524 2946fi
4301e38a
DE
2947if test "${lt_cv_path_LD+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 if test -z "$LD"; then
2951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2952 for ac_dir in $PATH; do
2953 test -z "$ac_dir" && ac_dir=.
2954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2955 lt_cv_path_LD="$ac_dir/$ac_prog"
2956 # Check to see if the program is GNU ld. I'd rather use --version,
2957 # but apparently some GNU ld's only accept -v.
2958 # Break only if it was the GNU/non-GNU ld that we prefer.
2959 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2960 test "$with_gnu_ld" != no && break
5e9f2524 2961 else
4301e38a 2962 test "$with_gnu_ld" != yes && break
5e9f2524 2963 fi
5e9f2524 2964 fi
4301e38a
DE
2965 done
2966 IFS="$ac_save_ifs"
2967else
2968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2969fi
5e9f2524
VS
2970fi
2971
4301e38a
DE
2972LD="$lt_cv_path_LD"
2973if test -n "$LD"; then
2974 echo "$as_me:$LINENO: result: $LD" >&5
2975echo "${ECHO_T}$LD" >&6
5e9f2524 2976else
4301e38a
DE
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
5e9f2524 2979fi
4301e38a
DE
2980test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2981echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2982 { (exit 1); exit 1; }; }
2983echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2984echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2985if test "${lt_cv_prog_gnu_ld+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
5e9f2524 2987else
4301e38a
DE
2988 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2989if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2990 lt_cv_prog_gnu_ld=yes
2991else
2992 lt_cv_prog_gnu_ld=no
5e9f2524 2993fi
4301e38a
DE
2994fi
2995echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2996echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2997with_gnu_ld=$lt_cv_prog_gnu_ld
5e9f2524 2998
4301e38a
DE
2999
3000echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3001echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3002if test "${lt_cv_ld_reload_flag+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 lt_cv_ld_reload_flag='-r'
5e9f2524 3006fi
4301e38a
DE
3007echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3008echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3009reload_flag=$lt_cv_ld_reload_flag
3010test -n "$reload_flag" && reload_flag=" $reload_flag"
3011
3012echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3013echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3014if test "${lt_cv_path_NM+set}" = set; then
5e9f2524
VS
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
4301e38a
DE
3017 if test -n "$NM"; then
3018 # Let the user override the test.
3019 lt_cv_path_NM="$NM"
5e9f2524 3020else
4301e38a
DE
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3022 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3023 test -z "$ac_dir" && ac_dir=.
3024 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3025 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3026 # Check to see if the nm accepts a BSD-compat flag.
3027 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3028 # nm: unknown option "B" ignored
3029 # Tru64's nm complains that /dev/null is an invalid object file
3030 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3031 lt_cv_path_NM="$tmp_nm -B"
3032 break
3033 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3034 lt_cv_path_NM="$tmp_nm -p"
3035 break
3036 else
3037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3038 continue # so that we can try to find one that supports BSD flags
3039 fi
3040 fi
3041 done
3042 IFS="$ac_save_ifs"
3043 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5e9f2524 3044fi
5e9f2524 3045fi
5e9f2524 3046
4301e38a
DE
3047NM="$lt_cv_path_NM"
3048echo "$as_me:$LINENO: result: $NM" >&5
3049echo "${ECHO_T}$NM" >&6
3050
3051echo "$as_me:$LINENO: checking whether ln -s works" >&5
3052echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3053LN_S=$as_ln_s
3054if test "$LN_S" = "ln -s"; then
3055 echo "$as_me:$LINENO: result: yes" >&5
3056echo "${ECHO_T}yes" >&6
5e9f2524 3057else
4301e38a
DE
3058 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3059echo "${ECHO_T}no, using $LN_S" >&6
5e9f2524 3060fi
4301e38a
DE
3061
3062echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3063echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3064if test "${lt_cv_deplibs_check_method+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
5e9f2524 3066else
4301e38a
DE
3067 lt_cv_file_magic_cmd='$MAGIC_CMD'
3068lt_cv_file_magic_test_file=
3069lt_cv_deplibs_check_method='unknown'
3070# Need to set the preceding variable on all platforms that support
3071# interlibrary dependencies.
3072# 'none' -- dependencies not supported.
3073# `unknown' -- same as none, but documents that we really don't know.
3074# 'pass_all' -- all dependencies passed with no checks.
3075# 'test_compile' -- check by making test program.
3076# 'file_magic [[regex]]' -- check by looking for files in library path
3077# which responds to the $file_magic_cmd with a given egrep regex.
3078# If you have `file' or equivalent on your system and you're not sure
3079# whether `pass_all' will *always* work, you probably want this one.
79608eef 3080
4301e38a
DE
3081case $host_os in
3082aix4* | aix5*)
3083 lt_cv_deplibs_check_method=pass_all
3084 ;;
5e9f2524 3085
4301e38a
DE
3086beos*)
3087 lt_cv_deplibs_check_method=pass_all
3088 ;;
5e9f2524 3089
4301e38a
DE
3090bsdi4*)
3091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3092 lt_cv_file_magic_cmd='/usr/bin/file -L'
3093 lt_cv_file_magic_test_file=/shlib/libc.so
3094 ;;
5e9f2524 3095
4301e38a
DE
3096cygwin* | mingw* | pw32*)
3097 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3098 lt_cv_file_magic_cmd='$OBJDUMP -f'
3099 ;;
3100
3101darwin* | rhapsody*)
3102 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3103 lt_cv_file_magic_cmd='/usr/bin/file -L'
3104 case "$host_os" in
3105 rhapsody* | darwin1.[012])
3106 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3107 ;;
3108 *) # Darwin 1.3 on
3109 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3110 ;;
3111 esac
3112 ;;
3113
3114freebsd*)
3115 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3116 case $host_cpu in
3117 i*86 )
3118 # Not sure whether the presence of OpenBSD here was a mistake.
3119 # Let's accept both of them until this is cleared up.
3120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3121 lt_cv_file_magic_cmd=/usr/bin/file
3122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3123 ;;
3124 esac
5e9f2524 3125 else
4301e38a 3126 lt_cv_deplibs_check_method=pass_all
5e9f2524 3127 fi
4301e38a 3128 ;;
79608eef 3129
4301e38a
DE
3130gnu*)
3131 lt_cv_deplibs_check_method=pass_all
3132 ;;
5e9f2524 3133
4301e38a
DE
3134hpux10.20*|hpux11*)
3135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3136 lt_cv_file_magic_cmd=/usr/bin/file
3137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3138 ;;
3139
3140irix5* | irix6*)
3141 case $host_os in
3142 irix5*)
3143 # this will be overridden with pass_all, but let us keep it just in case
3144 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3145 ;;
3146 *)
3147 case $LD in
3148 *-32|*"-32 ") libmagic=32-bit;;
3149 *-n32|*"-n32 ") libmagic=N32;;
3150 *-64|*"-64 ") libmagic=64-bit;;
3151 *) libmagic=never-match;;
3152 esac
3153 # this will be overridden with pass_all, but let us keep it just in case
3154 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3155 ;;
3156 esac
3157 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3158 lt_cv_deplibs_check_method=pass_all
3159 ;;
3160
3161# This must be Linux ELF.
3162linux-gnu*)
3163 case $host_cpu in
3164 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3165 lt_cv_deplibs_check_method=pass_all ;;
3166 *)
3167 # glibc up to 2.1.1 does not perform some relocations on ARM
3168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3169 esac
3170 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3171 ;;
3172
3173netbsd*)
3174 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3175 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5e9f2524 3176 else
4301e38a 3177 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5e9f2524 3178 fi
4301e38a 3179 ;;
79608eef 3180
4301e38a
DE
3181newos6*)
3182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3183 lt_cv_file_magic_cmd=/usr/bin/file
3184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3185 ;;
5e9f2524 3186
4301e38a
DE
3187openbsd*)
3188 lt_cv_file_magic_cmd=/usr/bin/file
3189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3192 else
3193 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3194 fi
3195 ;;
5e9f2524 3196
4301e38a
DE
3197osf3* | osf4* | osf5*)
3198 # this will be overridden with pass_all, but let us keep it just in case
3199 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3200 lt_cv_file_magic_test_file=/shlib/libc.so
3201 lt_cv_deplibs_check_method=pass_all
3202 ;;
5e9f2524 3203
4301e38a
DE
3204sco3.2v5*)
3205 lt_cv_deplibs_check_method=pass_all
3206 ;;
3207
3208solaris*)
3209 lt_cv_deplibs_check_method=pass_all
3210 lt_cv_file_magic_test_file=/lib/libc.so
3211 ;;
3212
3213sysv5uw[78]* | sysv4*uw2*)
3214 lt_cv_deplibs_check_method=pass_all
3215 ;;
3216
3217sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3218 case $host_vendor in
3219 motorola)
3220 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]'
3221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3222 ;;
3223 ncr)
3224 lt_cv_deplibs_check_method=pass_all
3225 ;;
3226 sequent)
3227 lt_cv_file_magic_cmd='/bin/file'
3228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3229 ;;
3230 sni)
3231 lt_cv_file_magic_cmd='/bin/file'
3232 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3233 lt_cv_file_magic_test_file=/lib/libc.so
3234 ;;
3235 esac
3236 ;;
3237esac
5e9f2524 3238
79608eef 3239fi
4301e38a
DE
3240echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3241echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3242file_magic_cmd=$lt_cv_file_magic_cmd
3243deplibs_check_method=$lt_cv_deplibs_check_method
79608eef
VS
3244
3245
5e9f2524 3246
79608eef 3247
79608eef 3248
5e9f2524 3249
5e9f2524 3250
4301e38a
DE
3251# Check for command to grab the raw symbol name followed by C symbol from nm.
3252echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3253echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3254if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
5e9f2524 3256else
5e9f2524 3257
4301e38a
DE
3258# These are sane defaults that work on at least a few old systems.
3259# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5e9f2524 3260
4301e38a
DE
3261# Character class describing NM global symbol codes.
3262symcode='[BCDEGRST]'
5e9f2524 3263
4301e38a
DE
3264# Regexp to match symbols that can be accessed directly from C.
3265sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5e9f2524 3266
4301e38a
DE
3267# Transform the above into a raw symbol and a C symbol.
3268symxfrm='\1 \2\3 \3'
5e9f2524 3269
4301e38a
DE
3270# Transform an extracted symbol line into a proper C declaration
3271lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5e9f2524 3272
4301e38a
DE
3273# Transform an extracted symbol line into symbol name and symbol address
3274lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
79608eef 3275
4301e38a
DE
3276# Define system-specific variables.
3277case $host_os in
3278aix*)
3279 symcode='[BCDT]'
3280 ;;
3281cygwin* | mingw* | pw32*)
3282 symcode='[ABCDGISTW]'
3283 ;;
3284hpux*) # Its linker distinguishes data from code symbols
3285 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3286 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'"
3287 ;;
3288irix*)
3289 symcode='[BCDEGRST]'
3290 ;;
3291solaris* | sysv5*)
3292 symcode='[BDT]'
3293 ;;
3294sysv4)
3295 symcode='[DFNSTU]'
3296 ;;
3297esac
5e9f2524 3298
4301e38a
DE
3299# Handle CRLF in mingw tool chain
3300opt_cr=
3301case $host_os in
3302mingw*)
3303 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3304 ;;
3305esac
5e9f2524 3306
4301e38a
DE
3307# If we're using GNU nm, then use its standard symbol codes.
3308if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3309 symcode='[ABCDGISTW]'
5e9f2524
VS
3310fi
3311
4301e38a
DE
3312# Try without a prefix undercore, then with it.
3313for ac_symprfx in "" "_"; do
3314
3315 # Write the raw and C identifiers.
3316lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3317
3318 # Check to see that the pipe works correctly.
3319 pipe_works=no
3320 rm -f conftest*
3321 cat > conftest.$ac_ext <<EOF
3322#ifdef __cplusplus
3323extern "C" {
3324#endif
3325char nm_test_var;
3326void nm_test_func(){}
3327#ifdef __cplusplus
3328}
3329#endif
3330int main(){nm_test_var='a';nm_test_func();return(0);}
3331EOF
3332
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; then
3338 # Now try to grab the symbols.
3339 nlist=conftest.nm
3340 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3341 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && test -s "$nlist"; then
3345 # Try sorting and uniquifying the output.
3346 if sort "$nlist" | uniq > "$nlist"T; then
3347 mv -f "$nlist"T "$nlist"
3348 else
3349 rm -f "$nlist"T
3350 fi
5e9f2524 3351
4301e38a
DE
3352 # Make sure that we snagged all the symbols we need.
3353 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3354 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3355 cat <<EOF > conftest.$ac_ext
3356#ifdef __cplusplus
3357extern "C" {
3358#endif
5e9f2524 3359
4301e38a
DE
3360EOF
3361 # Now generate the symbol file.
3362 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5e9f2524 3363
4301e38a
DE
3364 cat <<EOF >> conftest.$ac_ext
3365#if defined (__STDC__) && __STDC__
3366# define lt_ptr void *
3367#else
3368# define lt_ptr char *
3369# define const
3370#endif
5e9f2524 3371
4301e38a
DE
3372/* The mapping between symbol names and symbols. */
3373const struct {
3374 const char *name;
3375 lt_ptr address;
3376}
3377lt_preloaded_symbols[] =
3378{
3379EOF
3380 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3381 cat <<\EOF >> conftest.$ac_ext
3382 {0, (lt_ptr) 0}
3383};
5e9f2524 3384
4301e38a
DE
3385#ifdef __cplusplus
3386}
3387#endif
3388EOF
3389 # Now try linking the two files.
3390 mv conftest.$ac_objext conftstm.$ac_objext
3391 save_LIBS="$LIBS"
3392 save_CFLAGS="$CFLAGS"
3393 LIBS="conftstm.$ac_objext"
3394 CFLAGS="$CFLAGS$no_builtin_flag"
3395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3396 (eval $ac_link) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && test -s conftest; then
3400 pipe_works=yes
3401 fi
3402 LIBS="$save_LIBS"
3403 CFLAGS="$save_CFLAGS"
3404 else
3405 echo "cannot find nm_test_func in $nlist" >&5
3406 fi
3407 else
3408 echo "cannot find nm_test_var in $nlist" >&5
3409 fi
3410 else
3411 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3412 fi
3413 else
3414 echo "$progname: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 fi
3417 rm -f conftest* conftst*
5e9f2524 3418
4301e38a
DE
3419 # Do not use the global_symbol_pipe unless it works.
3420 if test "$pipe_works" = yes; then
3421 break
3422 else
3423 lt_cv_sys_global_symbol_pipe=
3424 fi
3425done
5e9f2524 3426
4301e38a 3427fi
5e9f2524 3428
4301e38a
DE
3429global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3430if test -z "$lt_cv_sys_global_symbol_pipe"; then
3431 global_symbol_to_cdecl=
3432 global_symbol_to_c_name_address=
3433else
3434 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3435 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3436fi
3437if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3438then
3439 echo "$as_me:$LINENO: result: failed" >&5
3440echo "${ECHO_T}failed" >&6
3441else
3442 echo "$as_me:$LINENO: result: ok" >&5
3443echo "${ECHO_T}ok" >&6
3444fi
5e9f2524 3445
4301e38a
DE
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3452echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3453# On Suns, sometimes $CPP names a directory.
3454if test -n "$CPP" && test -d "$CPP"; then
3455 CPP=
3456fi
3457if test -z "$CPP"; then
3458 if test "${ac_cv_prog_CPP+set}" = set; then
5e9f2524
VS
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
4301e38a
DE
3461 # Double quotes because CPP needs to be expanded
3462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3463 do
3464 ac_preproc_ok=false
3465for ac_c_preproc_warn_flag in '' yes
3466do
3467 # Use a header file that comes with gcc, so configuring glibc
3468 # with a fresh cross-compiler works.
3469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3470 # <limits.h> exists even on freestanding compilers.
3471 # On the NeXT, cc -E runs the code through the compiler's parser,
3472 # not just through cpp. "Syntax error" is here to catch this case.
5e9f2524
VS
3473 cat >conftest.$ac_ext <<_ACEOF
3474#line $LINENO "configure"
79608eef
VS
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
4301e38a
DE
3480#ifdef __STDC__
3481# include <limits.h>
3482#else
3483# include <assert.h>
3484#endif
3485 Syntax error
3486_ACEOF
3487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5e9f2524 3489 ac_status=$?
4301e38a
DE
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
5e9f2524 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301e38a
DE
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 else
3498 ac_cpp_err=
3499 fi
3500else
3501 ac_cpp_err=yes
3502fi
3503if test -z "$ac_cpp_err"; then
3504 :
5e9f2524
VS
3505else
3506 echo "$as_me: failed program was:" >&5
79608eef
VS
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
4301e38a
DE
3509 # Broken: fails on valid input.
3510continue
5e9f2524 3511fi
4301e38a
DE
3512rm -f conftest.err conftest.$ac_ext
3513
3514 # OK, works on sane cases. Now check whether non-existent headers
3515 # can be detected and how.
3516 cat >conftest.$ac_ext <<_ACEOF
3517#line $LINENO "configure"
3518/* confdefs.h. */
5e9f2524 3519_ACEOF
4301e38a
DE
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#include <ac_nonexistent.h>
3524_ACEOF
3525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 else
3536 ac_cpp_err=
3537 fi
3538else
3539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
3542 # Broken: success on invalid input.
3543continue
3544else
3545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 3547
4301e38a
DE
3548 # Passes both tests.
3549ac_preproc_ok=:
3550break
5e9f2524 3551fi
4301e38a 3552rm -f conftest.err conftest.$ac_ext
5e9f2524
VS
3553
3554done
4301e38a
DE
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then
3558 break
3559fi
5e9f2524 3560
4301e38a
DE
3561 done
3562 ac_cv_prog_CPP=$CPP
5e9f2524 3563
5e9f2524 3564fi
4301e38a 3565 CPP=$ac_cv_prog_CPP
5e9f2524 3566else
4301e38a
DE
3567 ac_cv_prog_CPP=$CPP
3568fi
3569echo "$as_me:$LINENO: result: $CPP" >&5
3570echo "${ECHO_T}$CPP" >&6
3571ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat >conftest.$ac_ext <<_ACEOF
5e9f2524 3581#line $LINENO "configure"
79608eef
VS
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
4301e38a
DE
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
3592 Syntax error
5e9f2524 3593_ACEOF
4301e38a
DE
3594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5e9f2524 3596 ac_status=$?
4301e38a
DE
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
5e9f2524 3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301e38a
DE
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 else
3605 ac_cpp_err=
3606 fi
3607else
3608 ac_cpp_err=yes
3609fi
3610if test -z "$ac_cpp_err"; then
3611 :
5e9f2524
VS
3612else
3613 echo "$as_me: failed program was:" >&5
79608eef
VS
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
4301e38a
DE
3616 # Broken: fails on valid input.
3617continue
5e9f2524 3618fi
4301e38a 3619rm -f conftest.err conftest.$ac_ext
5e9f2524 3620
4301e38a
DE
3621 # OK, works on sane cases. Now check whether non-existent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
5e9f2524 3624#line $LINENO "configure"
79608eef
VS
3625/* confdefs.h. */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h. */
4301e38a 3630#include <ac_nonexistent.h>
5e9f2524
VS
3631_ACEOF
3632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3634 ac_status=$?
79608eef 3635 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null; then
3640 if test -s conftest.err; then
3641 ac_cpp_err=$ac_c_preproc_warn_flag
3642 else
3643 ac_cpp_err=
3644 fi
3645else
3646 ac_cpp_err=yes
3647fi
3648if test -z "$ac_cpp_err"; then
4301e38a
DE
3649 # Broken: success on invalid input.
3650continue
5e9f2524
VS
3651else
3652 echo "$as_me: failed program was:" >&5
79608eef
VS
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
4301e38a
DE
3655 # Passes both tests.
3656ac_preproc_ok=:
3657break
5e9f2524
VS
3658fi
3659rm -f conftest.err conftest.$ac_ext
5e9f2524 3660
4301e38a
DE
3661done
3662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663rm -f conftest.err conftest.$ac_ext
3664if $ac_preproc_ok; then
3665 :
5e9f2524 3666else
4301e38a
DE
3667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3668See \`config.log' for more details." >&5
3669echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3670See \`config.log' for more details." >&2;}
3671 { (exit 1); exit 1; }; }
5e9f2524
VS
3672fi
3673
4301e38a
DE
3674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524
VS
3679
3680
4301e38a
DE
3681echo "$as_me:$LINENO: checking for egrep" >&5
3682echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3683if test "${ac_cv_prog_egrep+set}" = set; then
5e9f2524
VS
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
4301e38a
DE
3686 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3687 then ac_cv_prog_egrep='grep -E'
3688 else ac_cv_prog_egrep='egrep'
5e9f2524 3689 fi
5e9f2524 3690fi
4301e38a
DE
3691echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3692echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3693 EGREP=$ac_cv_prog_egrep
5e9f2524 3694
5e9f2524 3695
4301e38a
DE
3696echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3697echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3698if test "${ac_cv_header_stdc+set}" = set; then
5e9f2524
VS
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
4301e38a
DE
3701 cat >conftest.$ac_ext <<_ACEOF
3702#line $LINENO "configure"
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708#include <stdlib.h>
3709#include <stdarg.h>
3710#include <string.h>
3711#include <float.h>
5e9f2524 3712
4301e38a
DE
3713int
3714main ()
3715{
5e9f2524 3716
4301e38a
DE
3717 ;
3718 return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_header_stdc=yes
5e9f2524 3734else
4301e38a
DE
3735 echo "$as_me: failed program was:" >&5
3736sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 3737
4301e38a 3738ac_cv_header_stdc=no
5e9f2524 3739fi
4301e38a 3740rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524 3741
4301e38a
DE
3742if test $ac_cv_header_stdc = yes; then
3743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3744 cat >conftest.$ac_ext <<_ACEOF
3745#line $LINENO "configure"
3746/* confdefs.h. */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h. */
3751#include <string.h>
5e9f2524 3752
4301e38a
DE
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 $EGREP "memchr" >/dev/null 2>&1; then
3756 :
5e9f2524 3757else
4301e38a 3758 ac_cv_header_stdc=no
5e9f2524 3759fi
4301e38a
DE
3760rm -f conftest*
3761
5e9f2524 3762fi
4301e38a
DE
3763
3764if test $ac_cv_header_stdc = yes; then
3765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766 cat >conftest.$ac_ext <<_ACEOF
3767#line $LINENO "configure"
3768/* confdefs.h. */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h. */
3773#include <stdlib.h>
3774
3775_ACEOF
3776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "free" >/dev/null 2>&1; then
3778 :
5e9f2524 3779else
4301e38a 3780 ac_cv_header_stdc=no
5e9f2524 3781fi
4301e38a 3782rm -f conftest*
5e9f2524
VS
3783
3784fi
5e9f2524 3785
4301e38a
DE
3786if test $ac_cv_header_stdc = yes; then
3787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3788 if test "$cross_compiling" = yes; then
3789 :
5e9f2524 3790else
4301e38a
DE
3791 cat >conftest.$ac_ext <<_ACEOF
3792#line $LINENO "configure"
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798#include <ctype.h>
3799#if ((' ' & 0x0FF) == 0x020)
3800# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3801# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802#else
3803# define ISLOWER(c) \
3804 (('a' <= (c) && (c) <= 'i') \
3805 || ('j' <= (c) && (c) <= 'r') \
3806 || ('s' <= (c) && (c) <= 'z'))
3807# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808#endif
5e9f2524 3809
4301e38a
DE
3810#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3811int
3812main ()
3813{
3814 int i;
3815 for (i = 0; i < 256; i++)
3816 if (XOR (islower (i), ISLOWER (i))
3817 || toupper (i) != TOUPPER (i))
3818 exit(2);
3819 exit (0);
3820}
3821_ACEOF
3822rm -f conftest$ac_exeext
3823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 :
5e9f2524 3834else
4301e38a
DE
3835 echo "$as_me: program exited with status $ac_status" >&5
3836echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 3838
4301e38a
DE
3839( exit $ac_status )
3840ac_cv_header_stdc=no
5e9f2524 3841fi
4301e38a 3842rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524 3843fi
5e9f2524 3844fi
5e9f2524 3845fi
4301e38a
DE
3846echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3847echo "${ECHO_T}$ac_cv_header_stdc" >&6
3848if test $ac_cv_header_stdc = yes; then
5e9f2524 3849
4301e38a
DE
3850cat >>confdefs.h <<\_ACEOF
3851#define STDC_HEADERS 1
3852_ACEOF
5e9f2524 3853
5e9f2524
VS
3854fi
3855
4301e38a 3856# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5e9f2524 3857
5e9f2524 3858
5e9f2524 3859
5e9f2524 3860
5e9f2524 3861
5e9f2524
VS
3862
3863
5e9f2524 3864
4301e38a
DE
3865
3866for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867 inttypes.h stdint.h unistd.h
3868do
3869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870echo "$as_me:$LINENO: checking for $ac_header" >&5
3871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3872if eval "test \"\${$as_ac_Header+set}\" = set"; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 cat >conftest.$ac_ext <<_ACEOF
5e9f2524 3876#line $LINENO "configure"
79608eef
VS
3877/* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
4301e38a 3882$ac_includes_default
5e9f2524 3883
4301e38a 3884#include <$ac_header>
5e9f2524 3885_ACEOF
4301e38a
DE
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
5e9f2524
VS
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
4301e38a 3892 { ac_try='test -s conftest.$ac_objext'
5e9f2524
VS
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
4301e38a 3898 eval "$as_ac_Header=yes"
5e9f2524
VS
3899else
3900 echo "$as_me: failed program was:" >&5
79608eef
VS
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
4301e38a 3903eval "$as_ac_Header=no"
5e9f2524 3904fi
4301e38a 3905rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524 3906fi
4301e38a
DE
3907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3909if test `eval echo '${'$as_ac_Header'}'` = yes; then
3910 cat >>confdefs.h <<_ACEOF
3911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3912_ACEOF
5e9f2524 3913
4301e38a 3914fi
5e9f2524 3915
4301e38a 3916done
5e9f2524 3917
5e9f2524 3918
5e9f2524 3919
4301e38a
DE
3920for ac_header in dlfcn.h
3921do
3922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3923if eval "test \"\${$as_ac_Header+set}\" = set"; then
3924 echo "$as_me:$LINENO: checking for $ac_header" >&5
3925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3926if eval "test \"\${$as_ac_Header+set}\" = set"; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
5e9f2524 3928fi
4301e38a
DE
3929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931else
3932 # Is the header compilable?
3933echo "$as_me:$LINENO: checking $ac_header usability" >&5
3934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3935cat >conftest.$ac_ext <<_ACEOF
3936#line $LINENO "configure"
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942$ac_includes_default
3943#include <$ac_header>
3944_ACEOF
3945rm -f conftest.$ac_objext
3946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -s conftest.$ac_objext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 ac_header_compiler=yes
3958else
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 3961
4301e38a
DE
3962ac_header_compiler=no
3963fi
3964rm -f conftest.$ac_objext conftest.$ac_ext
3965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3966echo "${ECHO_T}$ac_header_compiler" >&6
5e9f2524 3967
4301e38a
DE
3968# Is the header present?
3969echo "$as_me:$LINENO: checking $ac_header presence" >&5
3970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3971cat >conftest.$ac_ext <<_ACEOF
3972#line $LINENO "configure"
3973/* confdefs.h. */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h. */
3978#include <$ac_header>
3979_ACEOF
3980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null; then
3988 if test -s conftest.err; then
3989 ac_cpp_err=$ac_c_preproc_warn_flag
3990 else
3991 ac_cpp_err=
5e9f2524 3992 fi
4301e38a
DE
3993else
3994 ac_cpp_err=yes
3995fi
3996if test -z "$ac_cpp_err"; then
3997 ac_header_preproc=yes
3998else
3999 echo "$as_me: failed program was:" >&5
4000sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 4001
4301e38a
DE
4002 ac_header_preproc=no
4003fi
4004rm -f conftest.err conftest.$ac_ext
4005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4006echo "${ECHO_T}$ac_header_preproc" >&6
5e9f2524 4007
4301e38a
DE
4008# So? What about this header?
4009case $ac_header_compiler:$ac_header_preproc in
4010 yes:no )
4011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4015 (
4016 cat <<\_ASBOX
4017## ------------------------------------ ##
4018## Report this to bug-autoconf@gnu.org. ##
4019## ------------------------------------ ##
4020_ASBOX
4021 ) |
4022 sed "s/^/$as_me: WARNING: /" >&2
5e9f2524 4023 ;;
4301e38a
DE
4024 no:yes )
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4031 (
4032 cat <<\_ASBOX
4033## ------------------------------------ ##
4034## Report this to bug-autoconf@gnu.org. ##
4035## ------------------------------------ ##
4036_ASBOX
4037 ) |
4038 sed "s/^/$as_me: WARNING: /" >&2
5e9f2524 4039 ;;
4301e38a
DE
4040esac
4041echo "$as_me:$LINENO: checking for $ac_header" >&5
4042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4043if eval "test \"\${$as_ac_Header+set}\" = set"; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 eval "$as_ac_Header=$ac_header_preproc"
5e9f2524 4047fi
4301e38a
DE
4048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5e9f2524 4050
4301e38a
DE
4051fi
4052if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055_ACEOF
5e9f2524 4056
5e9f2524 4057fi
5e9f2524 4058
4301e38a 4059done
5e9f2524 4060
5e9f2524 4061
5e9f2524 4062
5e9f2524 4063
5e9f2524 4064
4301e38a
DE
4065# Only perform the check for file, if the check method requires it
4066case $deplibs_check_method in
4067file_magic*)
4068 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4069 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4070echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4071if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 case $MAGIC_CMD in
4075 /*)
4076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4077 ;;
4078 ?:/*)
4079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4080 ;;
4081 *)
4082 ac_save_MAGIC_CMD="$MAGIC_CMD"
4083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 ac_dummy="/usr/bin:$PATH"
4085 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/${ac_tool_prefix}file; then
4088 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4089 if test -n "$file_magic_test_file"; then
4090 case $deplibs_check_method in
4091 "file_magic "*)
4092 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4095 egrep "$file_magic_regex" > /dev/null; then
4096 :
4097 else
4098 cat <<EOF 1>&2
5e9f2524 4099
4301e38a
DE
4100*** Warning: the command libtool uses to detect shared libraries,
4101*** $file_magic_cmd, produces output that libtool cannot recognize.
4102*** The result is that libtool may fail to recognize shared libraries
4103*** as such. This will affect the creation of libtool libraries that
4104*** depend on shared libraries, but programs linked with such libtool
4105*** libraries will work regardless of this problem. Nevertheless, you
4106*** may want to report the problem to your system manager and/or to
4107*** bug-libtool@gnu.org
5e9f2524 4108
4301e38a
DE
4109EOF
4110 fi ;;
4111 esac
4112 fi
4113 break
4114 fi
4115 done
4116 IFS="$ac_save_ifs"
4117 MAGIC_CMD="$ac_save_MAGIC_CMD"
4118 ;;
4119esac
4120fi
5e9f2524 4121
4301e38a
DE
4122MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4123if test -n "$MAGIC_CMD"; then
4124 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4125echo "${ECHO_T}$MAGIC_CMD" >&6
4126else
4127 echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6
4129fi
5e9f2524 4130
4301e38a
DE
4131if test -z "$lt_cv_path_MAGIC_CMD"; then
4132 if test -n "$ac_tool_prefix"; then
4133 echo "$as_me:$LINENO: checking for file" >&5
4134echo $ECHO_N "checking for file... $ECHO_C" >&6
4135if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138 case $MAGIC_CMD in
4139 /*)
4140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4141 ;;
4142 ?:/*)
4143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4144 ;;
4145 *)
4146 ac_save_MAGIC_CMD="$MAGIC_CMD"
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 ac_dummy="/usr/bin:$PATH"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/file; then
4152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4153 if test -n "$file_magic_test_file"; then
4154 case $deplibs_check_method in
4155 "file_magic "*)
4156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4159 egrep "$file_magic_regex" > /dev/null; then
4160 :
4161 else
4162 cat <<EOF 1>&2
5e9f2524 4163
4301e38a
DE
4164*** Warning: the command libtool uses to detect shared libraries,
4165*** $file_magic_cmd, produces output that libtool cannot recognize.
4166*** The result is that libtool may fail to recognize shared libraries
4167*** as such. This will affect the creation of libtool libraries that
4168*** depend on shared libraries, but programs linked with such libtool
4169*** libraries will work regardless of this problem. Nevertheless, you
4170*** may want to report the problem to your system manager and/or to
4171*** bug-libtool@gnu.org
5e9f2524 4172
4301e38a
DE
4173EOF
4174 fi ;;
4175 esac
5e9f2524 4176 fi
4301e38a
DE
4177 break
4178 fi
4179 done
4180 IFS="$ac_save_ifs"
4181 MAGIC_CMD="$ac_save_MAGIC_CMD"
4182 ;;
4183esac
4184fi
5e9f2524 4185
4301e38a
DE
4186MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4187if test -n "$MAGIC_CMD"; then
4188 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4189echo "${ECHO_T}$MAGIC_CMD" >&6
4190else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193fi
5e9f2524 4194
4301e38a
DE
4195 else
4196 MAGIC_CMD=:
5e9f2524 4197 fi
5e9f2524
VS
4198fi
4199
4301e38a
DE
4200 fi
4201 ;;
4202esac
5e9f2524 4203
4301e38a
DE
4204if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4207echo "$as_me:$LINENO: checking for $ac_word" >&5
4208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209if test "${ac_cv_prog_RANLIB+set}" = set; then
5e9f2524
VS
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4301e38a
DE
4212 if test -n "$RANLIB"; then
4213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5e9f2524 4214else
4301e38a
DE
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227done
79608eef 4228
4301e38a
DE
4229fi
4230fi
4231RANLIB=$ac_cv_prog_RANLIB
4232if test -n "$RANLIB"; then
4233 echo "$as_me:$LINENO: result: $RANLIB" >&5
4234echo "${ECHO_T}$RANLIB" >&6
4235else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238fi
5e9f2524
VS
4239
4240fi
4301e38a
DE
4241if test -z "$ac_cv_prog_RANLIB"; then
4242 ac_ct_RANLIB=$RANLIB
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244set dummy ranlib; ac_word=$2
4245echo "$as_me:$LINENO: checking for $ac_word" >&5
4246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 if test -n "$ac_ct_RANLIB"; then
4251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_RANLIB="ranlib"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264done
4265done
5e9f2524 4266
4301e38a
DE
4267 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4268fi
4269fi
4270ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4271if test -n "$ac_ct_RANLIB"; then
4272 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4273echo "${ECHO_T}$ac_ct_RANLIB" >&6
4274else
4275 echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
5e9f2524
VS
4277fi
4278
4301e38a
DE
4279 RANLIB=$ac_ct_RANLIB
4280else
4281 RANLIB="$ac_cv_prog_RANLIB"
4282fi
5e9f2524 4283
4301e38a
DE
4284if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4286set dummy ${ac_tool_prefix}strip; ac_word=$2
4287echo "$as_me:$LINENO: checking for $ac_word" >&5
4288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289if test "${ac_cv_prog_STRIP+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292 if test -n "$STRIP"; then
4293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4294else
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
5e9f2524 4305 fi
4301e38a
DE
4306done
4307done
5e9f2524 4308
5e9f2524 4309fi
4301e38a
DE
4310fi
4311STRIP=$ac_cv_prog_STRIP
4312if test -n "$STRIP"; then
4313 echo "$as_me:$LINENO: result: $STRIP" >&5
4314echo "${ECHO_T}$STRIP" >&6
4315else
4316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318fi
5e9f2524 4319
4301e38a
DE
4320fi
4321if test -z "$ac_cv_prog_STRIP"; then
4322 ac_ct_STRIP=$STRIP
4323 # Extract the first word of "strip", so it can be a program name with args.
4324set dummy strip; ac_word=$2
4325echo "$as_me:$LINENO: checking for $ac_word" >&5
4326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330 if test -n "$ac_ct_STRIP"; then
4331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4332else
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_ac_ct_STRIP="strip"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
5e9f2524 4343 fi
4301e38a
DE
4344done
4345done
4346
4347 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4348fi
4349fi
4350ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4351if test -n "$ac_ct_STRIP"; then
4352 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4353echo "${ECHO_T}$ac_ct_STRIP" >&6
4354else
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
5e9f2524
VS
4357fi
4358
4301e38a
DE
4359 STRIP=$ac_ct_STRIP
4360else
4361 STRIP="$ac_cv_prog_STRIP"
4362fi
4363
4364
4365enable_dlopen=no
4366enable_win32_dll=no
4367
4368# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4369if test "${enable_libtool_lock+set}" = set; then
4370 enableval="$enable_libtool_lock"
4371
4372fi;
4373test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4374
4375# Some flags need to be propagated to the compiler or linker for good
4376# libtool support.
4377case $host in
4378*-*-irix6*)
4379 # Find out which ABI we are using.
4380 echo '#line 4380 "configure"' > conftest.$ac_ext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; then
4386 case `/usr/bin/file conftest.$ac_objext` in
4387 *32-bit*)
4388 LD="${LD-ld} -32"
4389 ;;
4390 *N32*)
4391 LD="${LD-ld} -n32"
4392 ;;
4393 *64-bit*)
4394 LD="${LD-ld} -64"
4395 ;;
4396 esac
4397 fi
4398 rm -rf conftest*
4399 ;;
4400
4401*-*-sco3.2v5*)
4402 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4403 SAVE_CFLAGS="$CFLAGS"
4404 CFLAGS="$CFLAGS -belf"
4405 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4406echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4407if test "${lt_cv_cc_needs_belf+set}" = set; then
5e9f2524
VS
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4301e38a
DE
4410
4411
4412 ac_ext=c
4413ac_cpp='$CPP $CPPFLAGS'
4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417
4418 cat >conftest.$ac_ext <<_ACEOF
5e9f2524 4419#line $LINENO "configure"
79608eef
VS
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
5e9f2524 4425
5e9f2524
VS
4426int
4427main ()
4428{
4429
4430 ;
4431 return 0;
4432}
4433_ACEOF
4434rm -f conftest.$ac_objext conftest$ac_exeext
4435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4301e38a 4446 lt_cv_cc_needs_belf=yes
5e9f2524
VS
4447else
4448 echo "$as_me: failed program was:" >&5
79608eef
VS
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4301e38a 4451lt_cv_cc_needs_belf=no
5e9f2524
VS
4452fi
4453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4301e38a
DE
4454 ac_ext=c
4455ac_cpp='$CPP $CPPFLAGS'
4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524
VS
4459
4460fi
4301e38a
DE
4461echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4462echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4463 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4464 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4465 CFLAGS="$SAVE_CFLAGS"
4466 fi
4467 ;;
5e9f2524
VS
4468
4469
4301e38a 4470esac
5e9f2524 4471
4301e38a
DE
4472# Sed substitution that helps us do robust quoting. It backslashifies
4473# metacharacters that are still active within double-quoted strings.
4474Xsed='sed -e s/^X//'
4475sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5e9f2524 4476
4301e38a
DE
4477# Same as above, but do not quote variable references.
4478double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5e9f2524 4479
4301e38a
DE
4480# Sed substitution to delay expansion of an escaped shell variable in a
4481# double_quote_subst'ed string.
4482delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5e9f2524 4483
4301e38a
DE
4484# Constants:
4485rm="rm -f"
5e9f2524 4486
4301e38a
DE
4487# Global variables:
4488default_ofile=libtool
4489can_build_shared=yes
5e9f2524 4490
4301e38a
DE
4491# All known linkers require a `.a' archive for static linking (except M$VC,
4492# which needs '.lib').
4493libext=a
4494ltmain="$ac_aux_dir/ltmain.sh"
4495ofile="$default_ofile"
4496with_gnu_ld="$lt_cv_prog_gnu_ld"
4497need_locks="$enable_libtool_lock"
5e9f2524 4498
4301e38a
DE
4499old_CC="$CC"
4500old_CFLAGS="$CFLAGS"
5e9f2524 4501
4301e38a
DE
4502# Set sane defaults for various variables
4503test -z "$AR" && AR=ar
4504test -z "$AR_FLAGS" && AR_FLAGS=cru
4505test -z "$AS" && AS=as
4506test -z "$CC" && CC=cc
4507test -z "$DLLTOOL" && DLLTOOL=dlltool
4508test -z "$LD" && LD=ld
4509test -z "$LN_S" && LN_S="ln -s"
4510test -z "$MAGIC_CMD" && MAGIC_CMD=file
4511test -z "$NM" && NM=nm
4512test -z "$OBJDUMP" && OBJDUMP=objdump
4513test -z "$RANLIB" && RANLIB=:
4514test -z "$STRIP" && STRIP=:
4515test -z "$ac_objext" && ac_objext=o
79608eef 4516
4301e38a
DE
4517if test x"$host" != x"$build"; then
4518 ac_tool_prefix=${host_alias}-
4519else
4520 ac_tool_prefix=
5e9f2524 4521fi
5e9f2524 4522
4301e38a
DE
4523# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4524case $host_os in
4525linux-gnu*) ;;
4526linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4527esac
5e9f2524 4528
4301e38a
DE
4529case $host_os in
4530aix3*)
4531 # AIX sometimes has problems with the GCC collect2 program. For some
4532 # reason, if we set the COLLECT_NAMES environment variable, the problems
4533 # vanish in a puff of smoke.
4534 if test "X${COLLECT_NAMES+set}" != Xset; then
4535 COLLECT_NAMES=
4536 export COLLECT_NAMES
4537 fi
4538 ;;
4539esac
4540
4541# Determine commands to create old-style static archives.
4542old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4543old_postinstall_cmds='chmod 644 $oldlib'
4544old_postuninstall_cmds=
4545
4546if test -n "$RANLIB"; then
4547 case $host_os in
4548 openbsd*)
4549 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4550 ;;
4551 *)
4552 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4553 ;;
4554 esac
4555 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5e9f2524 4556fi
4301e38a
DE
4557
4558# Allow CC to be a program name with arguments.
4559set dummy $CC
4560compiler="$2"
5e9f2524
VS
4561
4562## FIXME: this should be a separate macro
4563##
4301e38a
DE
4564echo "$as_me:$LINENO: checking for objdir" >&5
4565echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4566rm -f .libs 2>/dev/null
4567mkdir .libs 2>/dev/null
4568if test -d .libs; then
4569 objdir=.libs
5e9f2524 4570else
4301e38a
DE
4571 # MS-DOS does not allow filenames that begin with a dot.
4572 objdir=_libs
5e9f2524 4573fi
4301e38a
DE
4574rmdir .libs 2>/dev/null
4575echo "$as_me:$LINENO: result: $objdir" >&5
4576echo "${ECHO_T}$objdir" >&6
5e9f2524
VS
4577##
4578## END FIXME
4579
4301e38a 4580
5e9f2524
VS
4581## FIXME: this should be a separate macro
4582##
5e9f2524 4583
4301e38a
DE
4584# Check whether --with-pic or --without-pic was given.
4585if test "${with_pic+set}" = set; then
4586 withval="$with_pic"
4587 pic_mode="$withval"
4588else
4589 pic_mode=default
4590fi;
4591test -z "$pic_mode" && pic_mode=default
4592
4593# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4594# in isolation, and that seeing it set (from the cache) indicates that
4595# the associated values are set (in the cache) correctly too.
4596echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4597echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4598if test "${lt_cv_prog_cc_pic+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601 lt_cv_prog_cc_pic=
4602 lt_cv_prog_cc_shlib=
4603 lt_cv_prog_cc_wl=
4604 lt_cv_prog_cc_static=
4605 lt_cv_prog_cc_no_builtin=
4606 lt_cv_prog_cc_can_build_shared=$can_build_shared
4607
4608 if test "$GCC" = yes; then
4609 lt_cv_prog_cc_wl='-Wl,'
4610 lt_cv_prog_cc_static='-static'
4611
4612 case $host_os in
4613 aix*)
4614 # Below there is a dirty hack to force normal static linking with -ldl
4615 # The problem is because libdl dynamically linked with both libc and
4616 # libC (AIX C++ library), which obviously doesn't included in libraries
4617 # list by gcc. This cause undefined symbols with -static flags.
4618 # This hack allows C programs to be linked with "-static -ldl", but
4619 # not sure about C++ programs.
4620 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4621 ;;
4622 amigaos*)
4623 # FIXME: we need at least 68020 code to build shared libraries, but
4624 # adding the `-m68020' flag to GCC prevents building anything better,
4625 # like `-m68040'.
4626 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4627 ;;
4628 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4629 # PIC is the default for these OSes.
4630 ;;
4631 darwin* | rhapsody*)
4632 # PIC is the default on this platform
4633 # Common symbols not allowed in MH_DYLIB files
4634 lt_cv_prog_cc_pic='-fno-common'
4635 ;;
4636 cygwin* | mingw* | pw32* | os2*)
4637 # This hack is so that the source file can tell whether it is being
4638 # built for inclusion in a dll (and should export symbols for example).
4639 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4640 ;;
4641 sysv4*MP*)
4642 if test -d /usr/nec; then
4643 lt_cv_prog_cc_pic=-Kconform_pic
4644 fi
4645 ;;
4646 *)
4647 lt_cv_prog_cc_pic='-fPIC'
4648 ;;
4649 esac
4650 else
4651 # PORTME Check for PIC flags for the system compiler.
4652 case $host_os in
4653 aix3* | aix4* | aix5*)
4654 lt_cv_prog_cc_wl='-Wl,'
4655 # All AIX code is PIC.
4656 if test "$host_cpu" = ia64; then
4657 # AIX 5 now supports IA64 processor
4658 lt_cv_prog_cc_static='-Bstatic'
4659 else
4660 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4661 fi
4662 ;;
4663
4664 hpux9* | hpux10* | hpux11*)
4665 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4666 lt_cv_prog_cc_wl='-Wl,'
4667 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4668 lt_cv_prog_cc_pic='+Z'
4669 ;;
4670
4671 irix5* | irix6*)
4672 lt_cv_prog_cc_wl='-Wl,'
4673 lt_cv_prog_cc_static='-non_shared'
4674 # PIC (with -KPIC) is the default.
4675 ;;
4676
4677 cygwin* | mingw* | pw32* | os2*)
4678 # This hack is so that the source file can tell whether it is being
4679 # built for inclusion in a dll (and should export symbols for example).
4680 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4681 ;;
4682
4683 newsos6)
4684 lt_cv_prog_cc_pic='-KPIC'
4685 lt_cv_prog_cc_static='-Bstatic'
4686 ;;
4687
4688 osf3* | osf4* | osf5*)
4689 # All OSF/1 code is PIC.
4690 lt_cv_prog_cc_wl='-Wl,'
4691 lt_cv_prog_cc_static='-non_shared'
4692 ;;
4693
4694 sco3.2v5*)
4695 lt_cv_prog_cc_pic='-Kpic'
4696 lt_cv_prog_cc_static='-dn'
4697 lt_cv_prog_cc_shlib='-belf'
4698 ;;
4699
4700 solaris*)
4701 lt_cv_prog_cc_pic='-KPIC'
4702 lt_cv_prog_cc_static='-Bstatic'
4703 lt_cv_prog_cc_wl='-Wl,'
4704 ;;
4705
4706 sunos4*)
4707 lt_cv_prog_cc_pic='-PIC'
4708 lt_cv_prog_cc_static='-Bstatic'
4709 lt_cv_prog_cc_wl='-Qoption ld '
4710 ;;
4711
4712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4713 lt_cv_prog_cc_pic='-KPIC'
4714 lt_cv_prog_cc_static='-Bstatic'
4715 if test "x$host_vendor" = xsni; then
4716 lt_cv_prog_cc_wl='-LD'
4717 else
4718 lt_cv_prog_cc_wl='-Wl,'
4719 fi
4720 ;;
4721
4722 uts4*)
4723 lt_cv_prog_cc_pic='-pic'
4724 lt_cv_prog_cc_static='-Bstatic'
4725 ;;
4726
4727 sysv4*MP*)
4728 if test -d /usr/nec ;then
4729 lt_cv_prog_cc_pic='-Kconform_pic'
4730 lt_cv_prog_cc_static='-Bstatic'
4731 fi
4732 ;;
4733
4734 *)
4735 lt_cv_prog_cc_can_build_shared=no
4736 ;;
4737 esac
4738 fi
4739
4740fi
4741
4742if test -z "$lt_cv_prog_cc_pic"; then
4743 echo "$as_me:$LINENO: result: none" >&5
4744echo "${ECHO_T}none" >&6
4745else
4746 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4747echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4748
4749 # Check to make sure the pic_flag actually works.
4750 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4751echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4752 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 save_CFLAGS="$CFLAGS"
4756 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4757 cat >conftest.$ac_ext <<_ACEOF
4758#line $LINENO "configure"
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764
4765int
4766main ()
4767{
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
5e9f2524
VS
4773rm -f conftest.$ac_objext
4774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4301e38a
DE
4785 case $host_os in
4786 hpux9* | hpux10* | hpux11*)
4787 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4788 # they create non-PIC objects. So, if there were any warnings, we
4789 # assume that PIC is not supported.
4790 if test -s conftest.err; then
4791 lt_cv_prog_cc_pic_works=no
4792 else
4793 lt_cv_prog_cc_pic_works=yes
4794 fi
4795 ;;
4796 *)
4797 lt_cv_prog_cc_pic_works=yes
4798 ;;
4799 esac
5e9f2524
VS
4800
4801else
4802 echo "$as_me: failed program was:" >&5
79608eef
VS
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4301e38a
DE
4805 lt_cv_prog_cc_pic_works=no
4806
5e9f2524
VS
4807fi
4808rm -f conftest.$ac_objext conftest.$ac_ext
4301e38a 4809 CFLAGS="$save_CFLAGS"
5e9f2524 4810
4301e38a
DE
4811fi
4812
4813
4814 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4815 lt_cv_prog_cc_pic=
4816 lt_cv_prog_cc_can_build_shared=no
5e9f2524 4817 else
4301e38a 4818 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5e9f2524 4819 fi
4301e38a
DE
4820
4821 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4822echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5e9f2524
VS
4823fi
4824##
4825## END FIXME
4826
4301e38a
DE
4827# Check for any special shared library compilation flags.
4828if test -n "$lt_cv_prog_cc_shlib"; then
4829 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4830echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4831 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4832 else
4833 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4834echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4835 lt_cv_prog_cc_can_build_shared=no
4836 fi
4837fi
4838
5e9f2524
VS
4839## FIXME: this should be a separate macro
4840##
4301e38a
DE
4841echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4842echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4843if test "${lt_cv_prog_cc_static_works+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846 lt_cv_prog_cc_static_works=no
4847 save_LDFLAGS="$LDFLAGS"
4848 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4849 cat >conftest.$ac_ext <<_ACEOF
4850#line $LINENO "configure"
4851/* confdefs.h. */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h. */
5e9f2524 4856
4301e38a
DE
4857int
4858main ()
4859{
5e9f2524 4860
4301e38a
DE
4861 ;
4862 return 0;
4863}
4864_ACEOF
4865rm -f conftest.$ac_objext conftest$ac_exeext
4866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -s conftest$ac_exeext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 lt_cv_prog_cc_static_works=yes
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 4881
4301e38a
DE
4882fi
4883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4884 LDFLAGS="$save_LDFLAGS"
5e9f2524 4885
4301e38a 4886fi
5e9f2524 4887
5e9f2524 4888
4301e38a
DE
4889# Belt *and* braces to stop my trousers falling down:
4890test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4891echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4892echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5e9f2524 4893
4301e38a
DE
4894pic_flag="$lt_cv_prog_cc_pic"
4895special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4896wl="$lt_cv_prog_cc_wl"
4897link_static_flag="$lt_cv_prog_cc_static"
4898no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4899can_build_shared="$lt_cv_prog_cc_can_build_shared"
4900##
4901## END FIXME
5e9f2524 4902
5e9f2524 4903
4301e38a
DE
4904## FIXME: this should be a separate macro
4905##
4906# Check to see if options -o and -c are simultaneously supported by compiler
4907echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4908echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4909if test "${lt_cv_compiler_c_o+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
5e9f2524 4912
4301e38a
DE
4913$rm -r conftest 2>/dev/null
4914mkdir conftest
4915cd conftest
4916echo "int some_variable = 0;" > conftest.$ac_ext
4917mkdir out
4918# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4919# that will create temporary files in the current directory regardless of
4920# the output directory. Thus, making CWD read-only will cause this test
4921# to fail, enabling locking or at least warning the user not to do parallel
4922# builds.
4923chmod -w .
4924save_CFLAGS="$CFLAGS"
4925CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4926compiler_c_o=no
4927if { (eval echo configure:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4928 # The compiler can only warn and ignore the option if not recognized
4929 # So say no if there are warnings
4930 if test -s out/conftest.err; then
4931 lt_cv_compiler_c_o=no
4932 else
4933 lt_cv_compiler_c_o=yes
4934 fi
4935else
4936 # Append any errors to the config.log.
4937 cat out/conftest.err 1>&5
4938 lt_cv_compiler_c_o=no
4939fi
4940CFLAGS="$save_CFLAGS"
4941chmod u+w .
4942$rm conftest* out/*
4943rmdir out
4944cd ..
4945rmdir conftest
4946$rm -r conftest 2>/dev/null
5e9f2524 4947
4301e38a 4948fi
5e9f2524 4949
4301e38a
DE
4950compiler_c_o=$lt_cv_compiler_c_o
4951echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4952echo "${ECHO_T}$compiler_c_o" >&6
5e9f2524 4953
4301e38a
DE
4954if test x"$compiler_c_o" = x"yes"; then
4955 # Check to see if we can write to a .lo
4956 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4957echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4958 if test "${lt_cv_compiler_o_lo+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960else
5e9f2524 4961
4301e38a
DE
4962 lt_cv_compiler_o_lo=no
4963 save_CFLAGS="$CFLAGS"
4964 CFLAGS="$CFLAGS -c -o conftest.lo"
4965 save_objext="$ac_objext"
4966 ac_objext=lo
4967 cat >conftest.$ac_ext <<_ACEOF
4968#line $LINENO "configure"
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
5e9f2524 4974
4301e38a
DE
4975int
4976main ()
4977{
4978int some_variable = 0;
4979 ;
4980 return 0;
4981}
4982_ACEOF
4983rm -f conftest.$ac_objext
4984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 # The compiler can only warn and ignore the option if not recognized
4996 # So say no if there are warnings
4997 if test -s conftest.err; then
4998 lt_cv_compiler_o_lo=no
5e9f2524 4999 else
4301e38a 5000 lt_cv_compiler_o_lo=yes
5e9f2524 5001 fi
5e9f2524 5002
4301e38a
DE
5003else
5004 echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 5006
4301e38a
DE
5007fi
5008rm -f conftest.$ac_objext conftest.$ac_ext
5009 ac_objext="$save_objext"
5010 CFLAGS="$save_CFLAGS"
5e9f2524 5011
4301e38a 5012fi
5e9f2524 5013
4301e38a
DE
5014 compiler_o_lo=$lt_cv_compiler_o_lo
5015 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5016echo "${ECHO_T}$compiler_o_lo" >&6
5017else
5018 compiler_o_lo=no
5019fi
5020##
5021## END FIXME
5e9f2524 5022
4301e38a
DE
5023## FIXME: this should be a separate macro
5024##
5025# Check to see if we can do hard links to lock some files if needed
5026hard_links="nottested"
5027if test "$compiler_c_o" = no && test "$need_locks" != no; then
5028 # do not overwrite the value of need_locks provided by the user
5029 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5030echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5031 hard_links=yes
5032 $rm conftest*
5033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5034 touch conftest.a
5035 ln conftest.a conftest.b 2>&5 || hard_links=no
5036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5037 echo "$as_me:$LINENO: result: $hard_links" >&5
5038echo "${ECHO_T}$hard_links" >&6
5039 if test "$hard_links" = no; then
5040 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5041echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5042 need_locks=warn
5e9f2524
VS
5043 fi
5044else
4301e38a
DE
5045 need_locks=no
5046fi
5047##
5048## END FIXME
5e9f2524 5049
4301e38a
DE
5050## FIXME: this should be a separate macro
5051##
5052if test "$GCC" = yes; then
5053 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5054 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5055echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5056 echo "int some_variable = 0;" > conftest.$ac_ext
5057 save_CFLAGS="$CFLAGS"
5058 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5059 compiler_rtti_exceptions=no
5060 cat >conftest.$ac_ext <<_ACEOF
5061#line $LINENO "configure"
5062/* confdefs.h. */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h. */
5e9f2524 5067
4301e38a
DE
5068int
5069main ()
5070{
5071int some_variable = 0;
5072 ;
5073 return 0;
5074}
5075_ACEOF
5076rm -f conftest.$ac_objext
5077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 # The compiler can only warn and ignore the option if not recognized
5089 # So say no if there are warnings
5090 if test -s conftest.err; then
5091 compiler_rtti_exceptions=no
5092 else
5093 compiler_rtti_exceptions=yes
5e9f2524
VS
5094 fi
5095
4301e38a
DE
5096else
5097 echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 5099
4301e38a
DE
5100fi
5101rm -f conftest.$ac_objext conftest.$ac_ext
5102 CFLAGS="$save_CFLAGS"
5103 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5104echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5e9f2524 5105
4301e38a
DE
5106 if test "$compiler_rtti_exceptions" = "yes"; then
5107 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5108 else
5109 no_builtin_flag=' -fno-builtin'
5110 fi
5111fi
5112##
5113## END FIXME
5e9f2524 5114
4301e38a
DE
5115## FIXME: this should be a separate macro
5116##
5117# See if the linker supports building shared libraries.
5118echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5119echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5120
5121allow_undefined_flag=
5122no_undefined_flag=
5123need_lib_prefix=unknown
5124need_version=unknown
5125# when you set need_version to no, make sure it does not cause -set_version
5126# flags to be left without arguments
5127archive_cmds=
5128archive_expsym_cmds=
5129old_archive_from_new_cmds=
5130old_archive_from_expsyms_cmds=
5131export_dynamic_flag_spec=
5132whole_archive_flag_spec=
5133thread_safe_flag_spec=
5134hardcode_into_libs=no
5135hardcode_libdir_flag_spec=
5136hardcode_libdir_separator=
5137hardcode_direct=no
5138hardcode_minus_L=no
5139hardcode_shlibpath_var=unsupported
5140runpath_var=
5141link_all_deplibs=unknown
5142always_export_symbols=no
5143export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5144# include_expsyms should be a list of space-separated symbols to be *always*
5145# included in the symbol list
5146include_expsyms=
5147# exclude_expsyms can be an egrep regular expression of symbols to exclude
5148# it will be wrapped by ` (' and `)$', so one must not match beginning or
5149# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5150# as well as any symbol that contains `d'.
5151exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5152# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5153# platforms (ab)use it in PIC code, but their linkers get confused if
5154# the symbol is explicitly referenced. Since portable code cannot
5155# rely on this symbol name, it's probably fine to never include it in
5156# preloaded symbol tables.
5157extract_expsyms_cmds=
5158
5159case $host_os in
5160cygwin* | mingw* | pw32*)
5161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5162 # When not using gcc, we currently assume that we are using
5163 # Microsoft Visual C++.
5164 if test "$GCC" != yes; then
5165 with_gnu_ld=no
5166 fi
5167 ;;
5168openbsd*)
5169 with_gnu_ld=no
5170 ;;
5171esac
5172
5173ld_shlibs=yes
5174if test "$with_gnu_ld" = yes; then
5175 # If archive_cmds runs LD, not CC, wlarc should be empty
5176 wlarc='${wl}'
5177
5178 # See if GNU ld supports shared libraries.
5179 case $host_os in
5180 aix3* | aix4* | aix5*)
5181 # On AIX, the GNU linker is very broken
5182 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5183 ld_shlibs=no
5184 cat <<EOF 1>&2
5185
5186*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5187*** to be unable to reliably create shared libraries on AIX.
5188*** Therefore, libtool is disabling shared libraries support. If you
5189*** really care for shared libraries, you may want to modify your PATH
5190*** so that a non-GNU linker is found, and then restart.
5191
5192EOF
5e9f2524
VS
5193 ;;
5194
5195 amigaos*)
5196 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)'
5197 hardcode_libdir_flag_spec='-L$libdir'
5198 hardcode_minus_L=yes
4301e38a
DE
5199
5200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5201 # that the semantics of dynamic libraries on AmigaOS, at least up
5202 # to version 4, is to share data among multiple programs linked
5203 # with the same dynamic library. Since this doesn't match the
5204 # behavior of shared libraries on other platforms, we can use
5205 # them.
5e9f2524
VS
5206 ld_shlibs=no
5207 ;;
5208
4301e38a
DE
5209 beos*)
5210 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5211 allow_undefined_flag=unsupported
5212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5213 # support --undefined. This deserves some investigation. FIXME
5214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5215 else
5216 ld_shlibs=no
5217 fi
5218 ;;
5219
5e9f2524 5220 cygwin* | mingw* | pw32*)
5e9f2524
VS
5221 # hardcode_libdir_flag_spec is actually meaningless, as there is
5222 # no search path for DLLs.
4301e38a 5223 hardcode_libdir_flag_spec='-L$libdir'
5e9f2524 5224 allow_undefined_flag=unsupported
4301e38a 5225 always_export_symbols=yes
5e9f2524 5226
4301e38a
DE
5227 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5228 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5229 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5230 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5231 else $CC -o impgen impgen.c ; fi)~
5232 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5e9f2524 5233
4301e38a 5234 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5e9f2524 5235
4301e38a
DE
5236 # cygwin and mingw dlls have different entry points and sets of symbols
5237 # to exclude.
5238 # FIXME: what about values for MSVC?
5239 dll_entry=__cygwin_dll_entry@12
5240 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5e9f2524 5241 case $host_os in
4301e38a
DE
5242 mingw*)
5243 # mingw values
5244 dll_entry=_DllMainCRTStartup@12
5245 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5246 ;;
5e9f2524 5247 esac
5e9f2524 5248
4301e38a
DE
5249 # mingw and cygwin differ, and it's simplest to just exclude the union
5250 # of the two symbol sets.
5251 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5e9f2524 5252
4301e38a
DE
5253 # recent cygwin and mingw systems supply a stub DllMain which the user
5254 # can override, but on older systems we have to supply one (in ltdll.c)
5255 if test "x$lt_cv_need_dllmain" = "xyes"; then
5256 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5257 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~
5258 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5e9f2524 5259 else
4301e38a
DE
5260 ltdll_obj=
5261 ltdll_cmds=
5e9f2524 5262 fi
5e9f2524 5263
4301e38a
DE
5264 # Extract the symbol export list from an `--export-all' def file,
5265 # then regenerate the def file from the symbol export list, so that
5266 # the compiled dll only exports the symbol export list.
5267 # Be careful not to strip the DATA tag left be newer dlltools.
5268 export_symbols_cmds="$ltdll_cmds"'
5269 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5270 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5e9f2524 5271
4301e38a
DE
5272 # If the export-symbols file already is a .def file (1st line
5273 # is EXPORTS), use it as is.
5274 # If DATA tags from a recent dlltool are present, honour them!
5275 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5276 cp $export_symbols $output_objdir/$soname-def;
5277 else
5278 echo EXPORTS > $output_objdir/$soname-def;
5279 _lt_hint=1;
5280 cat $export_symbols | while read symbol; do
5281 set dummy \$symbol;
5282 case \$# in
5283 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5284 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5285 esac;
5286 _lt_hint=`expr 1 + \$_lt_hint`;
5287 done;
5288 fi~
5289 '"$ltdll_cmds"'
5290 $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~
5291 $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~
5292 $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~
5293 $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~
5294 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5e9f2524
VS
5295 ;;
5296
4301e38a
DE
5297 netbsd*)
5298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5300 wlarc=
5e9f2524 5301 else
4301e38a
DE
5302 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5303 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5e9f2524 5304 fi
5e9f2524
VS
5305 ;;
5306
4301e38a
DE
5307 solaris* | sysv5*)
5308 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5309 ld_shlibs=no
5310 cat <<EOF 1>&2
5e9f2524 5311
4301e38a
DE
5312*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5313*** create shared libraries on Solaris systems. Therefore, libtool
5314*** is disabling shared libraries support. We urge you to upgrade GNU
5315*** binutils to release 2.9.1 or newer. Another option is to modify
5316*** your PATH or compiler configuration so that the native linker is
5317*** used, and then restart.
5e9f2524
VS
5318
5319EOF
4301e38a
DE
5320 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5323 else
5324 ld_shlibs=no
5e9f2524 5325 fi
5e9f2524
VS
5326 ;;
5327
5328 sunos4*)
4301e38a
DE
5329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5330 wlarc=
5e9f2524 5331 hardcode_direct=yes
5e9f2524
VS
5332 hardcode_shlibpath_var=no
5333 ;;
5334
4301e38a
DE
5335 *)
5336 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5e9f2524 5339 else
4301e38a 5340 ld_shlibs=no
5e9f2524 5341 fi
5e9f2524 5342 ;;
4301e38a 5343 esac
5e9f2524 5344
4301e38a
DE
5345 if test "$ld_shlibs" = yes; then
5346 runpath_var=LD_RUN_PATH
5347 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5348 export_dynamic_flag_spec='${wl}--export-dynamic'
5349 case $host_os in
5350 cygwin* | mingw* | pw32*)
5351 # dlltool doesn't understand --whole-archive et. al.
5352 whole_archive_flag_spec=
5353 ;;
5354 *)
5355 # ancient GNU ld didn't support --whole-archive et. al.
5356 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5357 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5358 else
5359 whole_archive_flag_spec=
5360 fi
5361 ;;
5362 esac
5363 fi
5364else
5365 # PORTME fill in a description of your system's linker (not GNU ld)
5366 case $host_os in
5367 aix3*)
5368 allow_undefined_flag=unsupported
5369 always_export_symbols=yes
5370 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'
5371 # Note: this linker hardcodes the directories in LIBPATH if there
5372 # are no directories specified by -L.
5373 hardcode_minus_L=yes
5374 if test "$GCC" = yes && test -z "$link_static_flag"; then
5375 # Neither direct hardcoding nor static linking is supported with a
5376 # broken collect2.
5377 hardcode_direct=unsupported
5e9f2524
VS
5378 fi
5379 ;;
5380
4301e38a
DE
5381 aix4* | aix5*)
5382 if test "$host_cpu" = ia64; then
5383 # On IA64, the linker does run time linking by default, so we don't
5384 # have to do anything special.
5385 aix_use_runtimelinking=no
5386 exp_sym_flag='-Bexport'
5387 no_entry_flag=""
5388 else
5389 aix_use_runtimelinking=no
5e9f2524 5390
4301e38a
DE
5391 # Test if we are trying to use run time linking or normal
5392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5393 # need to do runtime linking.
5394 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5395 for ld_flag in $LDFLAGS; do
5396 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5397 aix_use_runtimelinking=yes
5398 break
5399 fi
5400 done
5401 esac
5402
5403 exp_sym_flag='-bexport'
5404 no_entry_flag='-bnoentry'
5405 fi
5406
5407 # When large executables or shared objects are built, AIX ld can
5408 # have problems creating the table of contents. If linking a library
5409 # or program results in "error TOC overflow" add -mminimal-toc to
5410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5412
5413 hardcode_direct=yes
5414 archive_cmds=''
5415 hardcode_libdir_separator=':'
5e9f2524 5416 if test "$GCC" = yes; then
4301e38a
DE
5417 case $host_os in aix4.[012]|aix4.[012].*)
5418 collect2name=`${CC} -print-prog-name=collect2`
5419 if test -f "$collect2name" && \
5420 strings "$collect2name" | grep resolve_lib_name >/dev/null
5421 then
5422 # We have reworked collect2
5423 hardcode_direct=yes
5424 else
5425 # We have old collect2
5426 hardcode_direct=unsupported
5427 # It fails to find uninstalled libraries when the uninstalled
5428 # path is not listed in the libpath. Setting hardcode_minus_L
5429 # to unsupported forces relinking
5430 hardcode_minus_L=yes
5431 hardcode_libdir_flag_spec='-L$libdir'
5432 hardcode_libdir_separator=
5433 fi
5434 esac
5435
5436 shared_flag='-shared'
5e9f2524 5437 else
4301e38a
DE
5438 # not using gcc
5439 if test "$host_cpu" = ia64; then
5440 shared_flag='${wl}-G'
5441 else
5442 if test "$aix_use_runtimelinking" = yes; then
5443 shared_flag='${wl}-G'
5444 else
5445 shared_flag='${wl}-bM:SRE'
5446 fi
5447 fi
5448 fi
5449
5450 # It seems that -bexpall can do strange things, so it is better to
5451 # generate a list of symbols to export.
5452 always_export_symbols=yes
5453 if test "$aix_use_runtimelinking" = yes; then
5454 # Warning - without using the other runtime loading flags (-brtl),
5455 # -berok will link without error, but may produce a broken library.
5456 allow_undefined_flag='-berok'
5457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5458 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"
5459 else
5460 if test "$host_cpu" = ia64; then
5461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5462 allow_undefined_flag="-z nodefs"
5463 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"
5464 else
5465 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5466 # Warning - without using the other run time loading flags,
5467 # -berok will link without error, but may produce a broken library.
5468 allow_undefined_flag='${wl}-berok'
5469 # This is a bit strange, but is similar to how AIX traditionally builds
5470 # it's shared libraries.
5471 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 $objdir/$libname$release.a $objdir/$soname'
5472 fi
5e9f2524 5473 fi
5e9f2524
VS
5474 ;;
5475
4301e38a
DE
5476 amigaos*)
5477 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)'
5478 hardcode_libdir_flag_spec='-L$libdir'
5479 hardcode_minus_L=yes
5480 # see comment about different semantics on the GNU ld section
5e9f2524
VS
5481 ld_shlibs=no
5482 ;;
5e9f2524 5483
4301e38a
DE
5484 cygwin* | mingw* | pw32*)
5485 # When not using gcc, we currently assume that we are using
5486 # Microsoft Visual C++.
5487 # hardcode_libdir_flag_spec is actually meaningless, as there is
5488 # no search path for DLLs.
5489 hardcode_libdir_flag_spec=' '
5490 allow_undefined_flag=unsupported
5491 # Tell ltmain to make .lib files, not .a files.
5492 libext=lib
5493 # FIXME: Setting linknames here is a bad hack.
5494 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5495 # The linker will automatically build a .lib file if we build a DLL.
5496 old_archive_from_new_cmds='true'
5497 # FIXME: Should let the user specify the lib program.
5498 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5499 fix_srcfile_path='`cygpath -w "$srcfile"`'
5500 ;;
5e9f2524 5501
4301e38a
DE
5502 darwin* | rhapsody*)
5503 case "$host_os" in
5504 rhapsody* | darwin1.[012])
5505 allow_undefined_flag='-undefined suppress'
5506 ;;
5507 *) # Darwin 1.3 on
5508 allow_undefined_flag='-flat_namespace -undefined suppress'
5509 ;;
5510 esac
5511 # FIXME: Relying on posixy $() will cause problems for
5512 # cross-compilation, but unfortunately the echo tests do not
5513 # yet detect zsh echo's removal of \ escapes.
5514 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5515 # We need to add '_' to the symbols in $export_symbols first
5516 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5517 hardcode_direct=yes
5518 hardcode_shlibpath_var=no
5519 whole_archive_flag_spec='-all_load $convenience'
5520 ;;
5e9f2524 5521
4301e38a
DE
5522 freebsd1*)
5523 ld_shlibs=no
5524 ;;
5e9f2524 5525
4301e38a
DE
5526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5527 # support. Future versions do this automatically, but an explicit c++rt0.o
5528 # does not break anything, and helps significantly (at the cost of a little
5529 # extra space).
5530 freebsd2.2*)
5531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5532 hardcode_libdir_flag_spec='-R$libdir'
5533 hardcode_direct=yes
5534 hardcode_shlibpath_var=no
5535 ;;
5e9f2524 5536
4301e38a
DE
5537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5538 freebsd2*)
5539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5540 hardcode_direct=yes
5541 hardcode_minus_L=yes
5542 hardcode_shlibpath_var=no
5543 ;;
5e9f2524 5544
4301e38a
DE
5545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5546 freebsd*)
5547 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5548 hardcode_libdir_flag_spec='-R$libdir'
5549 hardcode_direct=yes
5550 hardcode_shlibpath_var=no
5551 ;;
5e9f2524 5552
4301e38a 5553 hpux9* | hpux10* | hpux11*)
5e9f2524 5554 case $host_os in
4301e38a
DE
5555 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' ;;
5556 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5e9f2524 5557 esac
4301e38a
DE
5558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5559 hardcode_libdir_separator=:
5560 hardcode_direct=yes
5561 hardcode_minus_L=yes # Not in the search PATH, but as the default
5562 # location of the library.
5563 export_dynamic_flag_spec='${wl}-E'
5564 ;;
5565
5566 irix5* | irix6*)
5567 if test "$GCC" = yes; then
5568 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'
5e9f2524 5569 else
4301e38a 5570 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'
5e9f2524 5571 fi
4301e38a
DE
5572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5573 hardcode_libdir_separator=:
5574 link_all_deplibs=yes
5575 ;;
5e9f2524 5576
4301e38a
DE
5577 netbsd*)
5578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5580 else
5581 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5582 fi
5583 hardcode_libdir_flag_spec='-R$libdir'
5584 hardcode_direct=yes
5585 hardcode_shlibpath_var=no
5e9f2524 5586 ;;
4301e38a
DE
5587
5588 newsos6)
5589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5590 hardcode_direct=yes
5591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5592 hardcode_libdir_separator=:
5593 hardcode_shlibpath_var=no
5e9f2524 5594 ;;
4301e38a
DE
5595
5596 openbsd*)
5597 hardcode_direct=yes
5598 hardcode_shlibpath_var=no
5599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5602 export_dynamic_flag_spec='${wl}-E'
5603 else
5604 case "$host_os" in
5605 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5607 hardcode_libdir_flag_spec='-R$libdir'
5608 ;;
5609 *)
5610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5611 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5612 ;;
5613 esac
5614 fi
5e9f2524 5615 ;;
4301e38a
DE
5616
5617 os2*)
5618 hardcode_libdir_flag_spec='-L$libdir'
5619 hardcode_minus_L=yes
5620 allow_undefined_flag=unsupported
5621 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'
5622 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5e9f2524 5623 ;;
5e9f2524 5624
4301e38a
DE
5625 osf3*)
5626 if test "$GCC" = yes; then
5627 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5628 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'
5629 else
5630 allow_undefined_flag=' -expect_unresolved \*'
5631 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'
5632 fi
5633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5634 hardcode_libdir_separator=:
5635 ;;
5e9f2524 5636
4301e38a
DE
5637 osf4* | osf5*) # as osf3* with the addition of -msym flag
5638 if test "$GCC" = yes; then
5639 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5640 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'
5641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5642 else
5643 allow_undefined_flag=' -expect_unresolved \*'
5644 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'
5645 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5646 $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'
5e9f2524 5647
4301e38a
DE
5648 #Both c and cxx compiler support -rpath directly
5649 hardcode_libdir_flag_spec='-rpath $libdir'
5650 fi
5651 hardcode_libdir_separator=:
5e9f2524 5652 ;;
4301e38a
DE
5653
5654 sco3.2v5*)
5655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5656 hardcode_shlibpath_var=no
5657 runpath_var=LD_RUN_PATH
5658 hardcode_runpath_var=yes
5659 export_dynamic_flag_spec='${wl}-Bexport'
5e9f2524 5660 ;;
5e9f2524 5661
4301e38a
DE
5662 solaris*)
5663 # gcc --version < 3.0 without binutils cannot create self contained
5664 # shared libraries reliably, requiring libgcc.a to resolve some of
5665 # the object symbols generated in some cases. Libraries that use
5666 # assert need libgcc.a to resolve __eprintf, for example. Linking
5667 # a copy of libgcc.a into every shared library to guarantee resolving
5668 # such symbols causes other problems: According to Tim Van Holder
5669 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5670 # (to the application) exception stack for one thing.
5671 no_undefined_flag=' -z defs'
5672 if test "$GCC" = yes; then
5673 case `$CC --version 2>/dev/null` in
5674 [12].*)
5675 cat <<EOF 1>&2
5e9f2524 5676
4301e38a
DE
5677*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5678*** create self contained shared libraries on Solaris systems, without
5679*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5680*** -no-undefined support, which will at least allow you to build shared
5681*** libraries. However, you may find that when you link such libraries
5682*** into an application without using GCC, you have to manually add
5683*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5684*** upgrade to a newer version of GCC. Another option is to rebuild your
5685*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5e9f2524 5686
4301e38a
DE
5687EOF
5688 no_undefined_flag=
5689 ;;
5690 esac
5691 fi
5692 # $CC -shared without GNU ld will not create a library from C++
5693 # object files and a static libstdc++, better avoid it by now
5694 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5695 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5697 hardcode_libdir_flag_spec='-R$libdir'
5698 hardcode_shlibpath_var=no
5699 case $host_os in
5700 solaris2.[0-5] | solaris2.[0-5].*) ;;
5701 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5e9f2524 5703 esac
4301e38a 5704 link_all_deplibs=yes
5e9f2524 5705 ;;
5e9f2524 5706
4301e38a
DE
5707 sunos4*)
5708 if test "x$host_vendor" = xsequent; then
5709 # Use $CC to link under sequent, because it throws in some extra .o
5710 # files that make .init and .fini sections work.
5711 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5712 else
5713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5714 fi
5715 hardcode_libdir_flag_spec='-L$libdir'
5716 hardcode_direct=yes
5717 hardcode_minus_L=yes
5718 hardcode_shlibpath_var=no
5719 ;;
5e9f2524 5720
4301e38a
DE
5721 sysv4)
5722 if test "x$host_vendor" = xsno; then
5723 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5724 hardcode_direct=yes # is this really true???
5725 else
5726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5727 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5728 fi
5729 runpath_var='LD_RUN_PATH'
5730 hardcode_shlibpath_var=no
5731 ;;
5e9f2524 5732
4301e38a
DE
5733 sysv4.3*)
5734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5735 hardcode_shlibpath_var=no
5736 export_dynamic_flag_spec='-Bexport'
5737 ;;
5e9f2524 5738
4301e38a
DE
5739 sysv5*)
5740 no_undefined_flag=' -z text'
5741 # $CC -shared without GNU ld will not create a library from C++
5742 # object files and a static libstdc++, better avoid it by now
5743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5746 hardcode_libdir_flag_spec=
5747 hardcode_shlibpath_var=no
5748 runpath_var='LD_RUN_PATH'
5749 ;;
5e9f2524 5750
4301e38a
DE
5751 uts4*)
5752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5753 hardcode_libdir_flag_spec='-L$libdir'
5754 hardcode_shlibpath_var=no
5755 ;;
5e9f2524 5756
4301e38a
DE
5757 dgux*)
5758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5759 hardcode_libdir_flag_spec='-L$libdir'
5760 hardcode_shlibpath_var=no
5761 ;;
5e9f2524 5762
4301e38a
DE
5763 sysv4*MP*)
5764 if test -d /usr/nec; then
5765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5766 hardcode_shlibpath_var=no
5767 runpath_var=LD_RUN_PATH
5768 hardcode_runpath_var=yes
5769 ld_shlibs=yes
5770 fi
5771 ;;
5e9f2524 5772
4301e38a
DE
5773 sysv4.2uw2*)
5774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5775 hardcode_direct=yes
5776 hardcode_minus_L=no
5777 hardcode_shlibpath_var=no
5778 hardcode_runpath_var=yes
5779 runpath_var=LD_RUN_PATH
5780 ;;
5e9f2524 5781
4301e38a
DE
5782 sysv5uw7* | unixware7*)
5783 no_undefined_flag='${wl}-z ${wl}text'
5784 if test "$GCC" = yes; then
5785 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5786 else
5787 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5788 fi
5789 runpath_var='LD_RUN_PATH'
5790 hardcode_shlibpath_var=no
5791 ;;
5e9f2524 5792
4301e38a
DE
5793 *)
5794 ld_shlibs=no
5795 ;;
5796 esac
5797fi
5798echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5799echo "${ECHO_T}$ld_shlibs" >&6
5800test "$ld_shlibs" = no && can_build_shared=no
5801##
5802## END FIXME
5e9f2524 5803
4301e38a
DE
5804## FIXME: this should be a separate macro
5805##
5806# Check hardcoding attributes.
5807echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5808echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5809hardcode_action=
5810if test -n "$hardcode_libdir_flag_spec" || \
5811 test -n "$runpath_var"; then
5e9f2524 5812
4301e38a
DE
5813 # We can hardcode non-existant directories.
5814 if test "$hardcode_direct" != no &&
5815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5816 # have to relink, otherwise we might link with an installed library
5817 # when we should be linking with a yet-to-be-installed one
5818 ## test "$hardcode_shlibpath_var" != no &&
5819 test "$hardcode_minus_L" != no; then
5820 # Linking always hardcodes the temporary library directory.
5821 hardcode_action=relink
5822 else
5823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5824 hardcode_action=immediate
5e9f2524 5825 fi
4301e38a
DE
5826else
5827 # We cannot hardcode anything, or else we can only hardcode existing
5828 # directories.
5829 hardcode_action=unsupported
5830fi
5831echo "$as_me:$LINENO: result: $hardcode_action" >&5
5832echo "${ECHO_T}$hardcode_action" >&6
5e9f2524
VS
5833##
5834## END FIXME
5835
5836## FIXME: this should be a separate macro
5837##
4301e38a
DE
5838striplib=
5839old_striplib=
5840echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5841echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5842if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5845 echo "$as_me:$LINENO: result: yes" >&5
5846echo "${ECHO_T}yes" >&6
5847else
5848 echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5e9f2524
VS
5851##
5852## END FIXME
5853
4301e38a
DE
5854reload_cmds='$LD$reload_flag -o $output$reload_objs'
5855test -z "$deplibs_check_method" && deplibs_check_method=unknown
5856
5e9f2524
VS
5857## FIXME: this should be a separate macro
5858##
4301e38a
DE
5859# PORTME Fill in your ld.so characteristics
5860echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5861echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5862library_names_spec=
5863libname_spec='lib$name'
5864soname_spec=
5865postinstall_cmds=
5866postuninstall_cmds=
5867finish_cmds=
5868finish_eval=
5869shlibpath_var=
5870shlibpath_overrides_runpath=unknown
5871version_type=none
5872dynamic_linker="$host_os ld.so"
5873sys_lib_dlsearch_path_spec="/lib /usr/lib"
5874sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5e9f2524 5875
4301e38a 5876case $host_os in
5e9f2524 5877aix3*)
4301e38a
DE
5878 version_type=linux
5879 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5880 shlibpath_var=LIBPATH
5881
5882 # AIX has no versioning support, so we append a major version to the name.
5883 soname_spec='${libname}${release}.so$major'
5e9f2524
VS
5884 ;;
5885
4301e38a
DE
5886aix4* | aix5*)
5887 version_type=linux
5888 if test "$host_cpu" = ia64; then
5889 # AIX 5 supports IA64
5890 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5891 shlibpath_var=LD_LIBRARY_PATH
5892 else
5893 # With GCC up to 2.95.x, collect2 would create an import file
5894 # for dependence libraries. The import file would start with
5895 # the line `#! .'. This would cause the generated library to
5896 # depend on `.', always an invalid library. This was fixed in
5897 # development snapshots of GCC prior to 3.0.
5898 case $host_os in
5899 aix4 | aix4.[01] | aix4.[01].*)
5900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5901 echo ' yes '
5902 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5903 :
5904 else
5905 can_build_shared=no
5906 fi
5907 ;;
5908 esac
5909 # AIX (on Power*) has no versioning support, so currently we can
5910 # not hardcode correct soname into executable. Probably we can
5911 # add versioning support to collect2, so additional links can
5912 # be useful in future.
5913 if test "$aix_use_runtimelinking" = yes; then
5914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5915 # instead of lib<name>.a to let people know that these are not
5916 # typical AIX shared libraries.
5917 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5918 else
5919 # We preserve .a as extension for shared libraries through AIX4.2
5920 # and later when we are not doing run time linking.
5921 library_names_spec='${libname}${release}.a $libname.a'
5922 soname_spec='${libname}${release}.so$major'
5923 fi
5924 shlibpath_var=LIBPATH
5e9f2524
VS
5925 fi
5926 ;;
5e9f2524 5927
4301e38a
DE
5928amigaos*)
5929 library_names_spec='$libname.ixlibrary $libname.a'
5930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5931 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'
5932 ;;
5e9f2524 5933
4301e38a
DE
5934beos*)
5935 library_names_spec='${libname}.so'
5936 dynamic_linker="$host_os ld.so"
5937 shlibpath_var=LIBRARY_PATH
5938 ;;
5e9f2524 5939
4301e38a
DE
5940bsdi4*)
5941 version_type=linux
5942 need_version=no
5943 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5944 soname_spec='${libname}${release}.so$major'
5945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5946 shlibpath_var=LD_LIBRARY_PATH
5947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5949 export_dynamic_flag_spec=-rdynamic
5950 # the default ld.so.conf also contains /usr/contrib/lib and
5951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5952 # libtool to hard-code these into programs
5953 ;;
5e9f2524 5954
4301e38a
DE
5955cygwin* | mingw* | pw32*)
5956 version_type=windows
5957 need_version=no
5958 need_lib_prefix=no
5959 case $GCC,$host_os in
5960 yes,cygwin*)
5961 library_names_spec='$libname.dll.a'
5962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5963 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5964 dldir=$destdir/`dirname \$dlpath`~
5965 test -d \$dldir || mkdir -p \$dldir~
5966 $install_prog .libs/$dlname \$dldir/$dlname'
5967 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5968 dlpath=$dir/\$dldll~
5969 $rm \$dlpath'
5e9f2524 5970 ;;
4301e38a
DE
5971 yes,mingw*)
5972 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5974 ;;
5975 yes,pw32*)
5976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5977 ;;
5978 *)
5979 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5980 ;;
5981 esac
5982 dynamic_linker='Win32 ld.exe'
5983 # FIXME: first we should search . and the directory the executable is in
5984 shlibpath_var=PATH
5985 ;;
5986
5987darwin* | rhapsody*)
5988 dynamic_linker="$host_os dyld"
5989 version_type=darwin
5990 need_lib_prefix=no
5991 need_version=no
5992 # FIXME: Relying on posixy $() will cause problems for
5993 # cross-compilation, but unfortunately the echo tests do not
5994 # yet detect zsh echo's removal of \ escapes.
5995 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)'
5996 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5997 shlibpath_overrides_runpath=yes
5998 shlibpath_var=DYLD_LIBRARY_PATH
5999 ;;
6000
6001freebsd1*)
6002 dynamic_linker=no
6003 ;;
6004
6005freebsd*)
6006 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6007 version_type=freebsd-$objformat
6008 case $version_type in
6009 freebsd-elf*)
6010 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6011 need_version=no
6012 need_lib_prefix=no
6013 ;;
6014 freebsd-*)
6015 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6016 need_version=yes
6017 ;;
6018 esac
6019 shlibpath_var=LD_LIBRARY_PATH
6020 case $host_os in
6021 freebsd2*)
6022 shlibpath_overrides_runpath=yes
6023 ;;
6024 *)
6025 shlibpath_overrides_runpath=no
6026 hardcode_into_libs=yes
6027 ;;
6028 esac
6029 ;;
6030
6031gnu*)
6032 version_type=linux
6033 need_lib_prefix=no
6034 need_version=no
6035 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6036 soname_spec='${libname}${release}.so$major'
6037 shlibpath_var=LD_LIBRARY_PATH
6038 hardcode_into_libs=yes
6039 ;;
6040
6041hpux9* | hpux10* | hpux11*)
6042 # Give a soname corresponding to the major version so that dld.sl refuses to
6043 # link against other versions.
6044 dynamic_linker="$host_os dld.sl"
6045 version_type=sunos
6046 need_lib_prefix=no
6047 need_version=no
6048 shlibpath_var=SHLIB_PATH
6049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6050 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6051 soname_spec='${libname}${release}.sl$major'
6052 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6053 postinstall_cmds='chmod 555 $lib'
6054 ;;
6055
6056irix5* | irix6*)
6057 version_type=irix
6058 need_lib_prefix=no
6059 need_version=no
6060 soname_spec='${libname}${release}.so$major'
6061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6062 case $host_os in
6063 irix5*)
6064 libsuff= shlibsuff=
6065 ;;
6066 *)
6067 case $LD in # libtool.m4 will add one of these switches to LD
6068 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6069 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6070 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6071 *) libsuff= shlibsuff= libmagic=never-match;;
6072 esac
6073 ;;
6074 esac
6075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6076 shlibpath_overrides_runpath=no
6077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6079 ;;
6080
6081# No shared lib support for Linux oldld, aout, or coff.
6082linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6083 dynamic_linker=no
6084 ;;
6085
6086# This must be Linux ELF.
6087linux-gnu*)
6088 version_type=linux
6089 need_lib_prefix=no
6090 need_version=no
6091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6092 soname_spec='${libname}${release}.so$major'
6093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6094 shlibpath_var=LD_LIBRARY_PATH
6095 shlibpath_overrides_runpath=no
6096 # This implies no fast_install, which is unacceptable.
6097 # Some rework will be needed to allow for fast_install
6098 # before this can be enabled.
6099 hardcode_into_libs=yes
6100
6101 # We used to test for /lib/ld.so.1 and disable shared libraries on
6102 # powerpc, because MkLinux only supported shared libraries with the
6103 # GNU dynamic linker. Since this was broken with cross compilers,
6104 # most powerpc-linux boxes support dynamic linking these days and
6105 # people can always --disable-shared, the test was removed, and we
6106 # assume the GNU/Linux dynamic linker is in use.
6107 dynamic_linker='GNU/Linux ld.so'
6108 ;;
6109
6110netbsd*)
6111 version_type=sunos
6112 need_lib_prefix=no
6113 need_version=no
6114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6115 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6117 dynamic_linker='NetBSD (a.out) ld.so'
6118 else
6119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6120 soname_spec='${libname}${release}.so$major'
6121 dynamic_linker='NetBSD ld.elf_so'
6122 fi
6123 shlibpath_var=LD_LIBRARY_PATH
6124 shlibpath_overrides_runpath=yes
6125 hardcode_into_libs=yes
6126 ;;
6127
6128newsos6)
6129 version_type=linux
6130 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6131 shlibpath_var=LD_LIBRARY_PATH
6132 shlibpath_overrides_runpath=yes
6133 ;;
6134
6135openbsd*)
6136 version_type=sunos
6137 need_lib_prefix=no
6138 need_version=no
6139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6140 case "$host_os" in
6141 openbsd2.[89] | openbsd2.[89].*)
6142 shlibpath_overrides_runpath=no
6143 ;;
6144 *)
6145 shlibpath_overrides_runpath=yes
6146 ;;
6147 esac
6148 else
6149 shlibpath_overrides_runpath=yes
6150 fi
6151 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 ;;
6155
6156os2*)
6157 libname_spec='$name'
6158 need_lib_prefix=no
6159 library_names_spec='$libname.dll $libname.a'
6160 dynamic_linker='OS/2 ld.exe'
6161 shlibpath_var=LIBPATH
6162 ;;
6163
6164osf3* | osf4* | osf5*)
6165 version_type=osf
6166 need_version=no
6167 soname_spec='${libname}${release}.so'
6168 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6169 shlibpath_var=LD_LIBRARY_PATH
6170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6172 ;;
6173
6174sco3.2v5*)
6175 version_type=osf
6176 soname_spec='${libname}${release}.so$major'
6177 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6178 shlibpath_var=LD_LIBRARY_PATH
6179 ;;
6180
6181solaris*)
6182 version_type=linux
6183 need_lib_prefix=no
6184 need_version=no
6185 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6186 soname_spec='${libname}${release}.so$major'
6187 shlibpath_var=LD_LIBRARY_PATH
6188 shlibpath_overrides_runpath=yes
6189 hardcode_into_libs=yes
6190 # ldd complains unless libraries are executable
6191 postinstall_cmds='chmod +x $lib'
6192 ;;
6193
6194sunos4*)
6195 version_type=sunos
6196 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6198 shlibpath_var=LD_LIBRARY_PATH
6199 shlibpath_overrides_runpath=yes
6200 if test "$with_gnu_ld" = yes; then
6201 need_lib_prefix=no
6202 fi
6203 need_version=yes
6204 ;;
6205
6206sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6207 version_type=linux
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6209 soname_spec='${libname}${release}.so$major'
6210 shlibpath_var=LD_LIBRARY_PATH
6211 case $host_vendor in
6212 sni)
6213 shlibpath_overrides_runpath=no
6214 ;;
6215 motorola)
6216 need_lib_prefix=no
6217 need_version=no
6218 shlibpath_overrides_runpath=no
6219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6220 ;;
6221 esac
6222 ;;
6223
6224uts4*)
6225 version_type=linux
6226 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6227 soname_spec='${libname}${release}.so$major'
6228 shlibpath_var=LD_LIBRARY_PATH
6229 ;;
6230
6231dgux*)
6232 version_type=linux
6233 need_lib_prefix=no
6234 need_version=no
6235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6236 soname_spec='${libname}${release}.so$major'
6237 shlibpath_var=LD_LIBRARY_PATH
6238 ;;
6239
6240sysv4*MP*)
6241 if test -d /usr/nec ;then
6242 version_type=linux
6243 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6244 soname_spec='$libname.so.$major'
6245 shlibpath_var=LD_LIBRARY_PATH
6246 fi
6247 ;;
6248
6249*)
6250 dynamic_linker=no
6251 ;;
6252esac
6253echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6254echo "${ECHO_T}$dynamic_linker" >&6
6255test "$dynamic_linker" = no && can_build_shared=no
6256##
6257## END FIXME
6258
6259## FIXME: this should be a separate macro
6260##
6261# Report the final consequences.
6262echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6263echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6264echo "$as_me:$LINENO: result: $can_build_shared" >&5
6265echo "${ECHO_T}$can_build_shared" >&6
6266##
6267## END FIXME
6268
6269## FIXME: this should be a separate macro
6270##
6271echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6272echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6273test "$can_build_shared" = "no" && enable_shared=no
6274
6275# On AIX, shared libraries and static libraries use the same namespace, and
6276# are all built from PIC.
6277case "$host_os" in
6278aix3*)
6279 test "$enable_shared" = yes && enable_static=no
6280 if test -n "$RANLIB"; then
6281 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6282 postinstall_cmds='$RANLIB $lib'
6283 fi
6284 ;;
6285
6286aix4*)
6287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6288 test "$enable_shared" = yes && enable_static=no
6289 fi
6290 ;;
6291esac
6292echo "$as_me:$LINENO: result: $enable_shared" >&5
6293echo "${ECHO_T}$enable_shared" >&6
6294##
6295## END FIXME
6296
6297## FIXME: this should be a separate macro
6298##
6299echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6300echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6301# Make sure either enable_shared or enable_static is yes.
6302test "$enable_shared" = yes || enable_static=yes
6303echo "$as_me:$LINENO: result: $enable_static" >&5
6304echo "${ECHO_T}$enable_static" >&6
6305##
6306## END FIXME
6307
6308if test "$hardcode_action" = relink; then
6309 # Fast installation is not supported
6310 enable_fast_install=no
6311elif test "$shlibpath_overrides_runpath" = yes ||
6312 test "$enable_shared" = no; then
6313 # Fast installation is not necessary
6314 enable_fast_install=needless
6315fi
6316
6317variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6318if test "$GCC" = yes; then
6319 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6320fi
6321
6322if test "x$enable_dlopen" != xyes; then
6323 enable_dlopen=unknown
6324 enable_dlopen_self=unknown
6325 enable_dlopen_self_static=unknown
6326else
6327 lt_cv_dlopen=no
6328 lt_cv_dlopen_libs=
6329
6330 case $host_os in
6331 beos*)
6332 lt_cv_dlopen="load_add_on"
6333 lt_cv_dlopen_libs=
6334 lt_cv_dlopen_self=yes
6335 ;;
6336
6337 cygwin* | mingw* | pw32*)
6338 lt_cv_dlopen="LoadLibrary"
6339 lt_cv_dlopen_libs=
6340 ;;
6341
6342 *)
6343 echo "$as_me:$LINENO: checking for shl_load" >&5
5e9f2524
VS
6344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6345if test "${ac_cv_func_shl_load+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348 cat >conftest.$ac_ext <<_ACEOF
6349#line $LINENO "configure"
79608eef
VS
6350/* confdefs.h. */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h. */
5e9f2524 6355/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
6356 which can conflict with char shl_load (); below.
6357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6358 <limits.h> exists even on freestanding compilers. */
6359#ifdef __STDC__
6360# include <limits.h>
6361#else
6362# include <assert.h>
6363#endif
5e9f2524
VS
6364/* Override any gcc2 internal prototype to avoid an error. */
6365#ifdef __cplusplus
6366extern "C"
79608eef 6367{
5e9f2524
VS
6368#endif
6369/* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6371char shl_load ();
5e9f2524
VS
6372/* The GNU C library defines this for functions which it implements
6373 to always fail with ENOSYS. Some functions are actually named
6374 something starting with __ and the normal name is an alias. */
6375#if defined (__stub_shl_load) || defined (__stub___shl_load)
6376choke me
6377#else
79608eef
VS
6378char (*f) () = shl_load;
6379#endif
6380#ifdef __cplusplus
6381}
5e9f2524
VS
6382#endif
6383
79608eef
VS
6384int
6385main ()
6386{
6387return f != shl_load;
5e9f2524
VS
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392rm -f conftest.$ac_objext conftest$ac_exeext
6393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_func_shl_load=yes
6405else
6406 echo "$as_me: failed program was:" >&5
79608eef
VS
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
5e9f2524
VS
6409ac_cv_func_shl_load=no
6410fi
6411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412fi
6413echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6414echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6415if test $ac_cv_func_shl_load = yes; then
6416 lt_cv_dlopen="shl_load"
6417else
6418 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6419echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6420if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423 ac_check_lib_save_LIBS=$LIBS
6424LIBS="-ldld $LIBS"
6425cat >conftest.$ac_ext <<_ACEOF
6426#line $LINENO "configure"
79608eef
VS
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
5e9f2524
VS
6432
6433/* Override any gcc2 internal prototype to avoid an error. */
6434#ifdef __cplusplus
6435extern "C"
6436#endif
6437/* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6439char shl_load ();
5e9f2524
VS
6440int
6441main ()
6442{
6443shl_load ();
6444 ;
6445 return 0;
6446}
6447_ACEOF
6448rm -f conftest.$ac_objext conftest$ac_exeext
6449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_lib_dld_shl_load=yes
6461else
6462 echo "$as_me: failed program was:" >&5
79608eef
VS
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
5e9f2524
VS
6465ac_cv_lib_dld_shl_load=no
6466fi
6467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6468LIBS=$ac_check_lib_save_LIBS
6469fi
6470echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6471echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6472if test $ac_cv_lib_dld_shl_load = yes; then
6473 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6474else
6475 echo "$as_me:$LINENO: checking for dlopen" >&5
6476echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6477if test "${ac_cv_func_dlopen+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 cat >conftest.$ac_ext <<_ACEOF
6481#line $LINENO "configure"
79608eef
VS
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
5e9f2524 6487/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
6488 which can conflict with char dlopen (); below.
6489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6490 <limits.h> exists even on freestanding compilers. */
6491#ifdef __STDC__
6492# include <limits.h>
6493#else
6494# include <assert.h>
6495#endif
5e9f2524
VS
6496/* Override any gcc2 internal prototype to avoid an error. */
6497#ifdef __cplusplus
6498extern "C"
79608eef 6499{
5e9f2524
VS
6500#endif
6501/* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503char dlopen ();
5e9f2524
VS
6504/* The GNU C library defines this for functions which it implements
6505 to always fail with ENOSYS. Some functions are actually named
6506 something starting with __ and the normal name is an alias. */
6507#if defined (__stub_dlopen) || defined (__stub___dlopen)
6508choke me
6509#else
79608eef
VS
6510char (*f) () = dlopen;
6511#endif
6512#ifdef __cplusplus
6513}
5e9f2524
VS
6514#endif
6515
79608eef
VS
6516int
6517main ()
6518{
6519return f != dlopen;
5e9f2524
VS
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524rm -f conftest.$ac_objext conftest$ac_exeext
6525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526 (eval $ac_link) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_func_dlopen=yes
6537else
6538 echo "$as_me: failed program was:" >&5
79608eef
VS
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
5e9f2524
VS
6541ac_cv_func_dlopen=no
6542fi
6543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6544fi
6545echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6546echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6547if test $ac_cv_func_dlopen = yes; then
6548 lt_cv_dlopen="dlopen"
6549else
6550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6551echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6552if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555 ac_check_lib_save_LIBS=$LIBS
6556LIBS="-ldl $LIBS"
6557cat >conftest.$ac_ext <<_ACEOF
6558#line $LINENO "configure"
79608eef
VS
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
5e9f2524
VS
6564
6565/* Override any gcc2 internal prototype to avoid an error. */
6566#ifdef __cplusplus
6567extern "C"
6568#endif
6569/* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571char dlopen ();
5e9f2524
VS
6572int
6573main ()
6574{
6575dlopen ();
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext conftest$ac_exeext
6581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_lib_dl_dlopen=yes
6593else
6594 echo "$as_me: failed program was:" >&5
79608eef
VS
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
5e9f2524
VS
6597ac_cv_lib_dl_dlopen=no
6598fi
6599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6600LIBS=$ac_check_lib_save_LIBS
6601fi
6602echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6603echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6604if test $ac_cv_lib_dl_dlopen = yes; then
6605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6606else
6607 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6608echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6609if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612 ac_check_lib_save_LIBS=$LIBS
6613LIBS="-lsvld $LIBS"
6614cat >conftest.$ac_ext <<_ACEOF
6615#line $LINENO "configure"
79608eef
VS
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
5e9f2524
VS
6621
6622/* Override any gcc2 internal prototype to avoid an error. */
6623#ifdef __cplusplus
6624extern "C"
6625#endif
6626/* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6628char dlopen ();
5e9f2524
VS
6629int
6630main ()
6631{
6632dlopen ();
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637rm -f conftest.$ac_objext conftest$ac_exeext
6638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6639 (eval $ac_link) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -s conftest$ac_exeext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_cv_lib_svld_dlopen=yes
6650else
6651 echo "$as_me: failed program was:" >&5
79608eef
VS
6652sed 's/^/| /' conftest.$ac_ext >&5
6653
5e9f2524
VS
6654ac_cv_lib_svld_dlopen=no
6655fi
6656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6657LIBS=$ac_check_lib_save_LIBS
6658fi
6659echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6660echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6661if test $ac_cv_lib_svld_dlopen = yes; then
6662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6663else
6664 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6665echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6666if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669 ac_check_lib_save_LIBS=$LIBS
6670LIBS="-ldld $LIBS"
6671cat >conftest.$ac_ext <<_ACEOF
6672#line $LINENO "configure"
79608eef
VS
6673/* confdefs.h. */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h. */
5e9f2524
VS
6678
6679/* Override any gcc2 internal prototype to avoid an error. */
6680#ifdef __cplusplus
6681extern "C"
6682#endif
6683/* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685char dld_link ();
5e9f2524
VS
6686int
6687main ()
6688{
6689dld_link ();
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694rm -f conftest.$ac_objext conftest$ac_exeext
6695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -s conftest$ac_exeext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 (eval $ac_try) 2>&5
6703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_lib_dld_dld_link=yes
6707else
6708 echo "$as_me: failed program was:" >&5
79608eef
VS
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
5e9f2524
VS
6711ac_cv_lib_dld_dld_link=no
6712fi
6713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6714LIBS=$ac_check_lib_save_LIBS
6715fi
6716echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6717echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6718if test $ac_cv_lib_dld_dld_link = yes; then
6719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6720fi
6721
6722
6723fi
6724
6725
6726fi
6727
6728
6729fi
6730
6731
6732fi
6733
6734
6735fi
6736
6737 ;;
6738 esac
6739
6740 if test "x$lt_cv_dlopen" != xno; then
6741 enable_dlopen=yes
6742 else
6743 enable_dlopen=no
6744 fi
6745
6746 case $lt_cv_dlopen in
6747 dlopen)
6748 save_CPPFLAGS="$CPPFLAGS"
6749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6750
6751 save_LDFLAGS="$LDFLAGS"
6752 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6753
6754 save_LIBS="$LIBS"
6755 LIBS="$lt_cv_dlopen_libs $LIBS"
6756
6757 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6758echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6759if test "${lt_cv_dlopen_self+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761else
6762 if test "$cross_compiling" = yes; then :
6763 lt_cv_dlopen_self=cross
6764else
6765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6766 lt_status=$lt_dlunknown
6767 cat > conftest.$ac_ext <<EOF
4301e38a 6768#line 6768 "configure"
5e9f2524
VS
6769#include "confdefs.h"
6770
6771#if HAVE_DLFCN_H
6772#include <dlfcn.h>
6773#endif
6774
6775#include <stdio.h>
6776
6777#ifdef RTLD_GLOBAL
6778# define LT_DLGLOBAL RTLD_GLOBAL
6779#else
6780# ifdef DL_GLOBAL
6781# define LT_DLGLOBAL DL_GLOBAL
6782# else
6783# define LT_DLGLOBAL 0
6784# endif
6785#endif
6786
6787/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6788 find out it does not work in some platform. */
6789#ifndef LT_DLLAZY_OR_NOW
6790# ifdef RTLD_LAZY
6791# define LT_DLLAZY_OR_NOW RTLD_LAZY
6792# else
6793# ifdef DL_LAZY
6794# define LT_DLLAZY_OR_NOW DL_LAZY
6795# else
6796# ifdef RTLD_NOW
6797# define LT_DLLAZY_OR_NOW RTLD_NOW
6798# else
6799# ifdef DL_NOW
6800# define LT_DLLAZY_OR_NOW DL_NOW
6801# else
6802# define LT_DLLAZY_OR_NOW 0
6803# endif
6804# endif
6805# endif
6806# endif
6807#endif
6808
6809#ifdef __cplusplus
6810extern "C" void exit (int);
6811#endif
6812
6813void fnord() { int i=42;}
6814int main ()
6815{
6816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6817 int status = $lt_dlunknown;
6818
6819 if (self)
6820 {
6821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6822 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6823 /* dlclose (self); */
6824 }
6825
6826 exit (status);
6827}
6828EOF
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6834 (./conftest; exit; ) 2>/dev/null
6835 lt_status=$?
6836 case x$lt_status in
6837 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6838 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6839 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6840 esac
6841 else :
6842 # compilation failed
6843 lt_cv_dlopen_self=no
6844 fi
6845fi
6846rm -fr conftest*
6847
6848
6849fi
6850echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6851echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6852
6853 if test "x$lt_cv_dlopen_self" = xyes; then
6854 LDFLAGS="$LDFLAGS $link_static_flag"
6855 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6856echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6857if test "${lt_cv_dlopen_self_static+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860 if test "$cross_compiling" = yes; then :
6861 lt_cv_dlopen_self_static=cross
6862else
6863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6864 lt_status=$lt_dlunknown
6865 cat > conftest.$ac_ext <<EOF
4301e38a 6866#line 6866 "configure"
5e9f2524
VS
6867#include "confdefs.h"
6868
6869#if HAVE_DLFCN_H
6870#include <dlfcn.h>
6871#endif
6872
6873#include <stdio.h>
6874
6875#ifdef RTLD_GLOBAL
6876# define LT_DLGLOBAL RTLD_GLOBAL
6877#else
6878# ifdef DL_GLOBAL
6879# define LT_DLGLOBAL DL_GLOBAL
6880# else
6881# define LT_DLGLOBAL 0
6882# endif
6883#endif
6884
6885/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6886 find out it does not work in some platform. */
6887#ifndef LT_DLLAZY_OR_NOW
6888# ifdef RTLD_LAZY
6889# define LT_DLLAZY_OR_NOW RTLD_LAZY
6890# else
6891# ifdef DL_LAZY
6892# define LT_DLLAZY_OR_NOW DL_LAZY
6893# else
6894# ifdef RTLD_NOW
6895# define LT_DLLAZY_OR_NOW RTLD_NOW
6896# else
6897# ifdef DL_NOW
6898# define LT_DLLAZY_OR_NOW DL_NOW
6899# else
6900# define LT_DLLAZY_OR_NOW 0
6901# endif
6902# endif
6903# endif
6904# endif
6905#endif
6906
6907#ifdef __cplusplus
6908extern "C" void exit (int);
6909#endif
6910
6911void fnord() { int i=42;}
6912int main ()
6913{
6914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6915 int status = $lt_dlunknown;
6916
6917 if (self)
6918 {
6919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6921 /* dlclose (self); */
6922 }
6923
6924 exit (status);
6925}
6926EOF
6927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6928 (eval $ac_link) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6932 (./conftest; exit; ) 2>/dev/null
6933 lt_status=$?
6934 case x$lt_status in
6935 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6936 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6937 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6938 esac
6939 else :
6940 # compilation failed
6941 lt_cv_dlopen_self_static=no
6942 fi
6943fi
6944rm -fr conftest*
6945
6946
6947fi
6948echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6949echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6950 fi
6951
6952 CPPFLAGS="$save_CPPFLAGS"
6953 LDFLAGS="$save_LDFLAGS"
6954 LIBS="$save_LIBS"
6955 ;;
6956 esac
6957
6958 case $lt_cv_dlopen_self in
6959 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6960 *) enable_dlopen_self=unknown ;;
6961 esac
6962
6963 case $lt_cv_dlopen_self_static in
6964 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6965 *) enable_dlopen_self_static=unknown ;;
6966 esac
6967fi
6968
6969
6970## FIXME: this should be a separate macro
6971##
6972if test "$enable_shared" = yes && test "$GCC" = yes; then
6973 case $archive_cmds in
6974 *'~'*)
6975 # FIXME: we may have to deal with multi-command sequences.
6976 ;;
6977 '$CC '*)
6978 # Test whether the compiler implicitly links with -lc since on some
6979 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6980 # to ld, don't add -lc before -lgcc.
6981 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6982echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6983 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 $rm conftest*
6987 echo 'static int dummy;' > conftest.$ac_ext
6988
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; then
6994 soname=conftest
6995 lib=conftest
6996 libobjs=conftest.$ac_objext
6997 deplibs=
6998 wl=$lt_cv_prog_cc_wl
6999 compiler_flags=-v
7000 linker_flags=-v
7001 verstring=
7002 output_objdir=.
7003 libname=conftest
7004 save_allow_undefined_flag=$allow_undefined_flag
7005 allow_undefined_flag=
7006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7007 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }
7011 then
7012 lt_cv_archive_cmds_need_lc=no
7013 else
7014 lt_cv_archive_cmds_need_lc=yes
7015 fi
7016 allow_undefined_flag=$save_allow_undefined_flag
7017 else
7018 cat conftest.err 1>&5
7019 fi
7020fi
7021
7022 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7023echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7024 ;;
7025 esac
7026fi
7027need_lc=${lt_cv_archive_cmds_need_lc-yes}
7028##
7029## END FIXME
7030
7031## FIXME: this should be a separate macro
7032##
7033# The second clause should only fire when bootstrapping the
7034# libtool distribution, otherwise you forgot to ship ltmain.sh
7035# with your package, and you will get complaints that there are
7036# no rules to generate ltmain.sh.
7037if test -f "$ltmain"; then
7038 :
7039else
7040 # If there is no Makefile yet, we rely on a make rule to execute
7041 # `config.status --recheck' to rerun these tests and create the
7042 # libtool script then.
7043 test -f Makefile && make "$ltmain"
7044fi
7045
7046if test -f "$ltmain"; then
7047 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7048 $rm -f "${ofile}T"
7049
7050 echo creating $ofile
7051
7052 # Now quote all the things that may contain metacharacters while being
7053 # careful not to overquote the AC_SUBSTed values. We take copies of the
7054 # variables and quote the copies for generation of the libtool script.
7055 for var in echo old_CC old_CFLAGS \
7056 AR AR_FLAGS CC LD LN_S NM SHELL \
7057 reload_flag reload_cmds wl \
7058 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7059 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7060 library_names_spec soname_spec \
7061 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7062 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7063 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7064 old_striplib striplib file_magic_cmd export_symbols_cmds \
7065 deplibs_check_method allow_undefined_flag no_undefined_flag \
7066 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7067 global_symbol_to_c_name_address \
7068 hardcode_libdir_flag_spec hardcode_libdir_separator \
7069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7070 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7071
7072 case $var in
7073 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7074 old_postinstall_cmds | old_postuninstall_cmds | \
7075 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7076 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7077 postinstall_cmds | postuninstall_cmds | \
7078 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7079 # Double-quote double-evaled strings.
7080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7081 ;;
7082 *)
7083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7084 ;;
7085 esac
7086 done
7087
7088 cat <<__EOF__ > "${ofile}T"
7089#! $SHELL
7090
7091# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7092# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7093# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7094#
7095# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7096# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7097#
7098# This program is free software; you can redistribute it and/or modify
7099# it under the terms of the GNU General Public License as published by
7100# the Free Software Foundation; either version 2 of the License, or
7101# (at your option) any later version.
7102#
7103# This program is distributed in the hope that it will be useful, but
7104# WITHOUT ANY WARRANTY; without even the implied warranty of
7105# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7106# General Public License for more details.
7107#
7108# You should have received a copy of the GNU General Public License
7109# along with this program; if not, write to the Free Software
7110# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7111#
7112# As a special exception to the GNU General Public License, if you
7113# distribute this file as part of a program that contains a
7114# configuration script generated by Autoconf, you may include it under
7115# the same distribution terms that you use for the rest of that program.
7116
7117# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7118Xsed="sed -e s/^X//"
7119
7120# The HP-UX ksh and POSIX shell print the target directory to stdout
7121# if CDPATH is set.
7122if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7123
4301e38a 7124# ### BEGIN LIBTOOL CONFIG
5e9f2524 7125
4301e38a 7126# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5e9f2524 7127
4301e38a
DE
7128# Shell to use when invoking shell scripts.
7129SHELL=$lt_SHELL
5e9f2524 7130
4301e38a
DE
7131# Whether or not to build shared libraries.
7132build_libtool_libs=$enable_shared
5e9f2524 7133
4301e38a
DE
7134# Whether or not to build static libraries.
7135build_old_libs=$enable_static
5e9f2524 7136
4301e38a
DE
7137# Whether or not to add -lc for building shared libraries.
7138build_libtool_need_lc=$need_lc
5e9f2524 7139
4301e38a
DE
7140# Whether or not to optimize for fast installation.
7141fast_install=$enable_fast_install
5e9f2524 7142
4301e38a
DE
7143# The host system.
7144host_alias=$host_alias
7145host=$host
5e9f2524 7146
4301e38a
DE
7147# An echo program that does not interpret backslashes.
7148echo=$lt_echo
5e9f2524 7149
4301e38a
DE
7150# The archiver.
7151AR=$lt_AR
7152AR_FLAGS=$lt_AR_FLAGS
5e9f2524 7153
4301e38a
DE
7154# The default C compiler.
7155CC=$lt_CC
5e9f2524 7156
4301e38a
DE
7157# Is the compiler the GNU C compiler?
7158with_gcc=$GCC
5e9f2524 7159
4301e38a
DE
7160# The linker used to build libraries.
7161LD=$lt_LD
5e9f2524 7162
4301e38a
DE
7163# Whether we need hard or soft links.
7164LN_S=$lt_LN_S
5e9f2524 7165
4301e38a
DE
7166# A BSD-compatible nm program.
7167NM=$lt_NM
5e9f2524 7168
4301e38a
DE
7169# A symbol stripping program
7170STRIP=$STRIP
5e9f2524 7171
4301e38a
DE
7172# Used to examine libraries when file_magic_cmd begins "file"
7173MAGIC_CMD=$MAGIC_CMD
5e9f2524 7174
4301e38a
DE
7175# Used on cygwin: DLL creation program.
7176DLLTOOL="$DLLTOOL"
7177
7178# Used on cygwin: object dumper.
7179OBJDUMP="$OBJDUMP"
5e9f2524 7180
4301e38a
DE
7181# Used on cygwin: assembler.
7182AS="$AS"
5e9f2524 7183
4301e38a
DE
7184# The name of the directory that contains temporary libtool files.
7185objdir=$objdir
5e9f2524 7186
4301e38a
DE
7187# How to create reloadable object files.
7188reload_flag=$lt_reload_flag
7189reload_cmds=$lt_reload_cmds
5e9f2524 7190
4301e38a
DE
7191# How to pass a linker flag through the compiler.
7192wl=$lt_wl
5e9f2524 7193
4301e38a
DE
7194# Object file suffix (normally "o").
7195objext="$ac_objext"
5e9f2524 7196
4301e38a
DE
7197# Old archive suffix (normally "a").
7198libext="$libext"
5e9f2524 7199
4301e38a
DE
7200# Executable file suffix (normally "").
7201exeext="$exeext"
5e9f2524 7202
4301e38a
DE
7203# Additional compiler flags for building library objects.
7204pic_flag=$lt_pic_flag
7205pic_mode=$pic_mode
5e9f2524 7206
4301e38a
DE
7207# Does compiler simultaneously support -c and -o options?
7208compiler_c_o=$lt_compiler_c_o
5e9f2524 7209
4301e38a
DE
7210# Can we write directly to a .lo ?
7211compiler_o_lo=$lt_compiler_o_lo
5e9f2524 7212
4301e38a
DE
7213# Must we lock files when doing compilation ?
7214need_locks=$lt_need_locks
5e9f2524 7215
4301e38a
DE
7216# Do we need the lib prefix for modules?
7217need_lib_prefix=$need_lib_prefix
5e9f2524 7218
4301e38a
DE
7219# Do we need a version for libraries?
7220need_version=$need_version
5e9f2524 7221
4301e38a
DE
7222# Whether dlopen is supported.
7223dlopen_support=$enable_dlopen
5e9f2524 7224
4301e38a
DE
7225# Whether dlopen of programs is supported.
7226dlopen_self=$enable_dlopen_self
5e9f2524 7227
4301e38a
DE
7228# Whether dlopen of statically linked programs is supported.
7229dlopen_self_static=$enable_dlopen_self_static
5e9f2524 7230
4301e38a
DE
7231# Compiler flag to prevent dynamic linking.
7232link_static_flag=$lt_link_static_flag
5e9f2524 7233
4301e38a
DE
7234# Compiler flag to turn off builtin functions.
7235no_builtin_flag=$lt_no_builtin_flag
5e9f2524 7236
4301e38a
DE
7237# Compiler flag to allow reflexive dlopens.
7238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5e9f2524 7239
4301e38a
DE
7240# Compiler flag to generate shared objects directly from archives.
7241whole_archive_flag_spec=$lt_whole_archive_flag_spec
5e9f2524 7242
4301e38a
DE
7243# Compiler flag to generate thread-safe objects.
7244thread_safe_flag_spec=$lt_thread_safe_flag_spec
5e9f2524 7245
4301e38a
DE
7246# Library versioning type.
7247version_type=$version_type
5e9f2524 7248
4301e38a
DE
7249# Format of library name prefix.
7250libname_spec=$lt_libname_spec
5e9f2524 7251
4301e38a
DE
7252# List of archive names. First name is the real one, the rest are links.
7253# The last name is the one that the linker finds with -lNAME.
7254library_names_spec=$lt_library_names_spec
7255
7256# The coded name of the library, if different from the real name.
7257soname_spec=$lt_soname_spec
7258
7259# Commands used to build and install an old-style archive.
7260RANLIB=$lt_RANLIB
7261old_archive_cmds=$lt_old_archive_cmds
7262old_postinstall_cmds=$lt_old_postinstall_cmds
7263old_postuninstall_cmds=$lt_old_postuninstall_cmds
7264
7265# Create an old-style archive from a shared archive.
7266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7267
7268# Create a temporary old-style archive to link instead of a shared archive.
7269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7270
7271# Commands used to build and install a shared archive.
7272archive_cmds=$lt_archive_cmds
7273archive_expsym_cmds=$lt_archive_expsym_cmds
7274postinstall_cmds=$lt_postinstall_cmds
7275postuninstall_cmds=$lt_postuninstall_cmds
7276
7277# Commands to strip libraries.
7278old_striplib=$lt_old_striplib
7279striplib=$lt_striplib
7280
7281# Method to check whether dependent libraries are shared objects.
7282deplibs_check_method=$lt_deplibs_check_method
7283
7284# Command to use when deplibs_check_method == file_magic.
7285file_magic_cmd=$lt_file_magic_cmd
7286
7287# Flag that allows shared libraries with undefined symbols to be built.
7288allow_undefined_flag=$lt_allow_undefined_flag
7289
7290# Flag that forces no undefined symbols.
7291no_undefined_flag=$lt_no_undefined_flag
7292
7293# Commands used to finish a libtool library installation in a directory.
7294finish_cmds=$lt_finish_cmds
7295
7296# Same as above, but a single script fragment to be evaled but not shown.
7297finish_eval=$lt_finish_eval
7298
7299# Take the output of nm and produce a listing of raw symbols and C names.
7300global_symbol_pipe=$lt_global_symbol_pipe
5e9f2524 7301
4301e38a
DE
7302# Transform the output of nm in a proper C declaration
7303global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5e9f2524 7304
4301e38a
DE
7305# Transform the output of nm in a C name address pair
7306global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5e9f2524 7307
4301e38a
DE
7308# This is the shared library runtime path variable.
7309runpath_var=$runpath_var
5e9f2524 7310
4301e38a
DE
7311# This is the shared library path variable.
7312shlibpath_var=$shlibpath_var
5e9f2524 7313
4301e38a
DE
7314# Is shlibpath searched before the hard-coded library search path?
7315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5e9f2524 7316
4301e38a
DE
7317# How to hardcode a shared library path into an executable.
7318hardcode_action=$hardcode_action
5e9f2524 7319
4301e38a
DE
7320# Whether we should hardcode library paths into libraries.
7321hardcode_into_libs=$hardcode_into_libs
5e9f2524 7322
4301e38a
DE
7323# Flag to hardcode \$libdir into a binary during linking.
7324# This must work even if \$libdir does not exist.
7325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5e9f2524 7326
4301e38a
DE
7327# Whether we need a single -rpath flag with a separated argument.
7328hardcode_libdir_separator=$lt_hardcode_libdir_separator
5e9f2524 7329
4301e38a
DE
7330# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7331# resulting binary.
7332hardcode_direct=$hardcode_direct
5e9f2524 7333
4301e38a
DE
7334# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7335# resulting binary.
7336hardcode_minus_L=$hardcode_minus_L
5e9f2524 7337
4301e38a
DE
7338# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7339# the resulting binary.
7340hardcode_shlibpath_var=$hardcode_shlibpath_var
5e9f2524 7341
4301e38a
DE
7342# Variables whose values should be saved in libtool wrapper scripts and
7343# restored at relink time.
7344variables_saved_for_relink="$variables_saved_for_relink"
5e9f2524 7345
4301e38a
DE
7346# Whether libtool must link a program against all its dependency libraries.
7347link_all_deplibs=$link_all_deplibs
5e9f2524 7348
4301e38a
DE
7349# Compile-time system search path for libraries
7350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5e9f2524 7351
4301e38a
DE
7352# Run-time system search path for libraries
7353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5e9f2524 7354
4301e38a
DE
7355# Fix the shell variable \$srcfile for the compiler.
7356fix_srcfile_path="$fix_srcfile_path"
7357
7358# Set to yes if exported symbols are required.
7359always_export_symbols=$always_export_symbols
7360
7361# The commands to list exported symbols.
7362export_symbols_cmds=$lt_export_symbols_cmds
79608eef 7363
4301e38a
DE
7364# The commands to extract the exported symbol list from a shared archive.
7365extract_expsyms_cmds=$lt_extract_expsyms_cmds
5e9f2524 7366
4301e38a
DE
7367# Symbols that should not be listed in the preloaded symbols.
7368exclude_expsyms=$lt_exclude_expsyms
5e9f2524 7369
4301e38a
DE
7370# Symbols that must always be exported.
7371include_expsyms=$lt_include_expsyms
5e9f2524 7372
4301e38a 7373# ### END LIBTOOL CONFIG
79608eef 7374
4301e38a
DE
7375__EOF__
7376
7377 case $host_os in
7378 aix3*)
7379 cat <<\EOF >> "${ofile}T"
7380
7381# AIX sometimes has problems with the GCC collect2 program. For some
7382# reason, if we set the COLLECT_NAMES environment variable, the problems
7383# vanish in a puff of smoke.
7384if test "X${COLLECT_NAMES+set}" != Xset; then
7385 COLLECT_NAMES=
7386 export COLLECT_NAMES
5e9f2524 7387fi
4301e38a
DE
7388EOF
7389 ;;
7390 esac
7391
7392 case $host_os in
7393 cygwin* | mingw* | pw32* | os2*)
7394 cat <<'EOF' >> "${ofile}T"
7395 # This is a source program that is used to create dlls on Windows
7396 # Don't remove nor modify the starting and closing comments
7397# /* ltdll.c starts here */
7398# #define WIN32_LEAN_AND_MEAN
7399# #include <windows.h>
7400# #undef WIN32_LEAN_AND_MEAN
7401# #include <stdio.h>
7402#
7403# #ifndef __CYGWIN__
7404# # ifdef __CYGWIN32__
7405# # define __CYGWIN__ __CYGWIN32__
7406# # endif
7407# #endif
7408#
7409# #ifdef __cplusplus
7410# extern "C" {
7411# #endif
7412# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7413# #ifdef __cplusplus
7414# }
7415# #endif
7416#
7417# #ifdef __CYGWIN__
7418# #include <cygwin/cygwin_dll.h>
7419# DECLARE_CYGWIN_DLL( DllMain );
7420# #endif
7421# HINSTANCE __hDllInstance_base;
7422#
7423# BOOL APIENTRY
7424# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7425# {
7426# __hDllInstance_base = hInst;
7427# return TRUE;
7428# }
7429# /* ltdll.c ends here */
7430 # This is a source program that is used to create import libraries
7431 # on Windows for dlls which lack them. Don't remove nor modify the
7432 # starting and closing comments
7433# /* impgen.c starts here */
7434# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7435#
7436# This file is part of GNU libtool.
7437#
7438# This program is free software; you can redistribute it and/or modify
7439# it under the terms of the GNU General Public License as published by
7440# the Free Software Foundation; either version 2 of the License, or
7441# (at your option) any later version.
7442#
7443# This program is distributed in the hope that it will be useful,
7444# but WITHOUT ANY WARRANTY; without even the implied warranty of
7445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7446# GNU General Public License for more details.
7447#
7448# You should have received a copy of the GNU General Public License
7449# along with this program; if not, write to the Free Software
7450# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7451# */
7452#
7453# #include <stdio.h> /* for printf() */
7454# #include <unistd.h> /* for open(), lseek(), read() */
7455# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7456# #include <string.h> /* for strdup() */
7457#
7458# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7459# #ifndef O_BINARY
7460# #define O_BINARY 0
7461# #endif
7462#
7463# static unsigned int
7464# pe_get16 (fd, offset)
7465# int fd;
7466# int offset;
7467# {
7468# unsigned char b[2];
7469# lseek (fd, offset, SEEK_SET);
7470# read (fd, b, 2);
7471# return b[0] + (b[1]<<8);
7472# }
7473#
7474# static unsigned int
7475# pe_get32 (fd, offset)
7476# int fd;
7477# int offset;
7478# {
7479# unsigned char b[4];
7480# lseek (fd, offset, SEEK_SET);
7481# read (fd, b, 4);
7482# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7483# }
7484#
7485# static unsigned int
7486# pe_as32 (ptr)
7487# void *ptr;
7488# {
7489# unsigned char *b = ptr;
7490# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7491# }
7492#
7493# int
7494# main (argc, argv)
7495# int argc;
7496# char *argv[];
7497# {
7498# int dll;
7499# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7500# unsigned long export_rva, export_size, nsections, secptr, expptr;
7501# unsigned long name_rvas, nexp;
7502# unsigned char *expdata, *erva;
7503# char *filename, *dll_name;
7504#
7505# filename = argv[1];
7506#
7507# dll = open(filename, O_RDONLY|O_BINARY);
7508# if (dll < 1)
7509# return 1;
7510#
7511# dll_name = filename;
7512#
7513# for (i=0; filename[i]; i++)
7514# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7515# dll_name = filename + i +1;
7516#
7517# pe_header_offset = pe_get32 (dll, 0x3c);
7518# opthdr_ofs = pe_header_offset + 4 + 20;
7519# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7520#
7521# if (num_entries < 1) /* no exports */
7522# return 1;
7523#
7524# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7525# export_size = pe_get32 (dll, opthdr_ofs + 100);
7526# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7527# secptr = (pe_header_offset + 4 + 20 +
7528# pe_get16 (dll, pe_header_offset + 4 + 16));
7529#
7530# expptr = 0;
7531# for (i = 0; i < nsections; i++)
7532# {
7533# char sname[8];
7534# unsigned long secptr1 = secptr + 40 * i;
7535# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7536# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7537# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7538# lseek(dll, secptr1, SEEK_SET);
7539# read(dll, sname, 8);
7540# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7541# {
7542# expptr = fptr + (export_rva - vaddr);
7543# if (export_rva + export_size > vaddr + vsize)
7544# export_size = vsize - (export_rva - vaddr);
7545# break;
7546# }
7547# }
7548#
7549# expdata = (unsigned char*)malloc(export_size);
7550# lseek (dll, expptr, SEEK_SET);
7551# read (dll, expdata, export_size);
7552# erva = expdata - export_rva;
7553#
7554# nexp = pe_as32 (expdata+24);
7555# name_rvas = pe_as32 (expdata+32);
7556#
7557# printf ("EXPORTS\n");
7558# for (i = 0; i<nexp; i++)
7559# {
7560# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7561# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7562# }
7563#
7564# return 0;
7565# }
7566# /* impgen.c ends here */
79608eef 7567
4301e38a
DE
7568EOF
7569 ;;
7570 esac
7571
7572 # We use sed instead of cat because bash on DJGPP gets confused if
7573 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7574 # text mode, it properly converts lines to CR/LF. This bash problem
7575 # is reportedly fixed, but why not run on old versions too?
7576 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
79608eef 7577
4301e38a
DE
7578 mv -f "${ofile}T" "$ofile" || \
7579 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7580 chmod +x "$ofile"
79608eef 7581fi
4301e38a
DE
7582##
7583## END FIXME
7584
7585
7586
7587
7588
7589# This can be used to rebuild libtool when needed
7590LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7591
7592# Always use our own libtool.
7593LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7594
7595# Prevent multiple expansion
79608eef 7596
79608eef 7597
79608eef 7598
79608eef 7599
5e9f2524 7600
79608eef 7601
5e9f2524
VS
7602
7603# Find a good install program. We prefer a C program (faster),
7604# so one script is as good as another. But avoid the broken or
7605# incompatible versions:
7606# SysV /etc/install, /usr/sbin/install
7607# SunOS /usr/etc/install
7608# IRIX /sbin/install
7609# AIX /bin/install
7610# AmigaOS /C/install, which installs bootblocks on floppy discs
7611# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7612# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7613# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7614# ./install, which can be erroneously created by make from ./install.sh.
7615echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7616echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7617if test -z "$INSTALL"; then
7618if test "${ac_cv_path_install+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 # Account for people who put trailing slashes in PATH elements.
7627case $as_dir/ in
7628 ./ | .// | /cC/* | \
7629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7630 /usr/ucb/* ) ;;
7631 *)
7632 # OSF1 and SCO ODT 3.0 have their own names for install.
7633 # Don't use installbsd from OSF since it installs stuff as root
7634 # by default.
7635 for ac_prog in ginstall scoinst install; do
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7638 if test $ac_prog = install &&
7639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7640 # AIX install. It has an incompatible calling convention.
7641 :
7642 elif test $ac_prog = install &&
7643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7644 # program-specific install script used by HP pwplus--don't use.
7645 :
7646 else
7647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7648 break 3
7649 fi
7650 fi
7651 done
7652 done
7653 ;;
7654esac
7655done
7656
7657
7658fi
7659 if test "${ac_cv_path_install+set}" = set; then
7660 INSTALL=$ac_cv_path_install
7661 else
7662 # As a last resort, use the slow shell script. We don't cache a
7663 # path for INSTALL within a source directory, because that will
7664 # break other packages using the cache if that directory is
7665 # removed, or if the path is relative.
7666 INSTALL=$ac_install_sh
7667 fi
7668fi
7669echo "$as_me:$LINENO: result: $INSTALL" >&5
7670echo "${ECHO_T}$INSTALL" >&6
7671
7672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7673# It thinks the first close brace ends the variable substitution.
7674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7675
7676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7677
7678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7679
7680
7681if test "$GCC" = yes ; then
7682 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
7683 CFLAGS="$OLDCFLAGS -fexceptions"
7684 echo "$as_me:$LINENO: checking whether gcc accepts -fexceptions" >&5
7685echo $ECHO_N "checking whether gcc accepts -fexceptions... $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7687#line $LINENO "configure"
79608eef
VS
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
5e9f2524 7693
5e9f2524
VS
7694int
7695main ()
7696{
7697(void)1
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
7703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 echo "$as_me:$LINENO: result: yes" >&5
7715echo "${ECHO_T}yes" >&6
7716else
7717 echo "$as_me: failed program was:" >&5
79608eef
VS
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
5e9f2524
VS
7720echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
7722fi
7723rm -f conftest.$ac_objext conftest.$ac_ext
7724fi
7725
7726echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7727echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7728if test "${ac_cv_header_stdc+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732#line $LINENO "configure"
79608eef
VS
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
5e9f2524
VS
7738#include <stdlib.h>
7739#include <stdarg.h>
7740#include <string.h>
7741#include <float.h>
7742
79608eef
VS
7743int
7744main ()
7745{
7746
7747 ;
7748 return 0;
7749}
5e9f2524 7750_ACEOF
79608eef
VS
7751rm -f conftest.$ac_objext
7752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>&5
5e9f2524 7754 ac_status=$?
5e9f2524 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
79608eef
VS
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
5e9f2524
VS
7763 ac_cv_header_stdc=yes
7764else
7765 echo "$as_me: failed program was:" >&5
79608eef
VS
7766sed 's/^/| /' conftest.$ac_ext >&5
7767
7768ac_cv_header_stdc=no
5e9f2524 7769fi
79608eef 7770rm -f conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
7771
7772if test $ac_cv_header_stdc = yes; then
7773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7774 cat >conftest.$ac_ext <<_ACEOF
7775#line $LINENO "configure"
79608eef
VS
7776/* confdefs.h. */
7777_ACEOF
7778cat confdefs.h >>conftest.$ac_ext
7779cat >>conftest.$ac_ext <<_ACEOF
7780/* end confdefs.h. */
5e9f2524
VS
7781#include <string.h>
7782
7783_ACEOF
7784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 7785 $EGREP "memchr" >/dev/null 2>&1; then
5e9f2524
VS
7786 :
7787else
7788 ac_cv_header_stdc=no
7789fi
7790rm -f conftest*
7791
7792fi
7793
7794if test $ac_cv_header_stdc = yes; then
7795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7796 cat >conftest.$ac_ext <<_ACEOF
7797#line $LINENO "configure"
79608eef
VS
7798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
5e9f2524
VS
7803#include <stdlib.h>
7804
7805_ACEOF
7806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
79608eef 7807 $EGREP "free" >/dev/null 2>&1; then
5e9f2524
VS
7808 :
7809else
7810 ac_cv_header_stdc=no
7811fi
7812rm -f conftest*
7813
7814fi
7815
7816if test $ac_cv_header_stdc = yes; then
7817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7818 if test "$cross_compiling" = yes; then
7819 :
7820else
7821 cat >conftest.$ac_ext <<_ACEOF
7822#line $LINENO "configure"
79608eef
VS
7823/* confdefs.h. */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */
5e9f2524
VS
7828#include <ctype.h>
7829#if ((' ' & 0x0FF) == 0x020)
7830# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7831# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7832#else
79608eef
VS
7833# define ISLOWER(c) \
7834 (('a' <= (c) && (c) <= 'i') \
5e9f2524
VS
7835 || ('j' <= (c) && (c) <= 'r') \
7836 || ('s' <= (c) && (c) <= 'z'))
7837# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7838#endif
7839
7840#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7841int
7842main ()
7843{
7844 int i;
7845 for (i = 0; i < 256; i++)
7846 if (XOR (islower (i), ISLOWER (i))
7847 || toupper (i) != TOUPPER (i))
7848 exit(2);
7849 exit (0);
7850}
7851_ACEOF
7852rm -f conftest$ac_exeext
7853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 :
7864else
7865 echo "$as_me: program exited with status $ac_status" >&5
7866echo "$as_me: failed program was:" >&5
79608eef
VS
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
5e9f2524
VS
7869( exit $ac_status )
7870ac_cv_header_stdc=no
7871fi
79608eef 7872rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
7873fi
7874fi
7875fi
7876echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7877echo "${ECHO_T}$ac_cv_header_stdc" >&6
7878if test $ac_cv_header_stdc = yes; then
7879
7880cat >>confdefs.h <<\_ACEOF
7881#define STDC_HEADERS 1
7882_ACEOF
7883
7884fi
7885
7886
7887
7888for ac_header in fcntl.h unistd.h
7889do
7890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7891if eval "test \"\${$as_ac_Header+set}\" = set"; then
7892 echo "$as_me:$LINENO: checking for $ac_header" >&5
7893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7894if eval "test \"\${$as_ac_Header+set}\" = set"; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896fi
7897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7899else
7900 # Is the header compilable?
7901echo "$as_me:$LINENO: checking $ac_header usability" >&5
7902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7903cat >conftest.$ac_ext <<_ACEOF
7904#line $LINENO "configure"
79608eef
VS
7905/* confdefs.h. */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h. */
5e9f2524
VS
7910$ac_includes_default
7911#include <$ac_header>
7912_ACEOF
7913rm -f conftest.$ac_objext
7914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_header_compiler=yes
7926else
7927 echo "$as_me: failed program was:" >&5
79608eef
VS
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
5e9f2524
VS
7930ac_header_compiler=no
7931fi
7932rm -f conftest.$ac_objext conftest.$ac_ext
7933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7934echo "${ECHO_T}$ac_header_compiler" >&6
7935
7936# Is the header present?
7937echo "$as_me:$LINENO: checking $ac_header presence" >&5
7938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7939cat >conftest.$ac_ext <<_ACEOF
7940#line $LINENO "configure"
79608eef
VS
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
5e9f2524
VS
7946#include <$ac_header>
7947_ACEOF
7948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7950 ac_status=$?
79608eef 7951 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } >/dev/null; then
7956 if test -s conftest.err; then
7957 ac_cpp_err=$ac_c_preproc_warn_flag
7958 else
7959 ac_cpp_err=
7960 fi
7961else
7962 ac_cpp_err=yes
7963fi
7964if test -z "$ac_cpp_err"; then
7965 ac_header_preproc=yes
7966else
7967 echo "$as_me: failed program was:" >&5
79608eef
VS
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
5e9f2524
VS
7970 ac_header_preproc=no
7971fi
7972rm -f conftest.err conftest.$ac_ext
7973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7974echo "${ECHO_T}$ac_header_preproc" >&6
7975
7976# So? What about this header?
7977case $ac_header_compiler:$ac_header_preproc in
7978 yes:no )
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
7982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7983 (
7984 cat <<\_ASBOX
7985## ------------------------------------ ##
7986## Report this to bug-autoconf@gnu.org. ##
7987## ------------------------------------ ##
7988_ASBOX
7989 ) |
7990 sed "s/^/$as_me: WARNING: /" >&2
7991 ;;
5e9f2524
VS
7992 no:yes )
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
7998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7999 (
8000 cat <<\_ASBOX
8001## ------------------------------------ ##
8002## Report this to bug-autoconf@gnu.org. ##
8003## ------------------------------------ ##
8004_ASBOX
8005 ) |
8006 sed "s/^/$as_me: WARNING: /" >&2
8007 ;;
5e9f2524
VS
8008esac
8009echo "$as_me:$LINENO: checking for $ac_header" >&5
8010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8011if eval "test \"\${$as_ac_Header+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013else
8014 eval "$as_ac_Header=$ac_header_preproc"
8015fi
8016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8018
8019fi
8020if test `eval echo '${'$as_ac_Header'}'` = yes; then
8021 cat >>confdefs.h <<_ACEOF
8022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8023_ACEOF
8024
8025fi
8026
8027done
8028
8029
8030
8031echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8032echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8033if test "${ac_cv_c_bigendian+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 ac_cv_c_bigendian=unknown
8037# See if sys/param.h defines the BYTE_ORDER macro.
8038cat >conftest.$ac_ext <<_ACEOF
8039#line $LINENO "configure"
79608eef
VS
8040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
5e9f2524
VS
8045#include <sys/types.h>
8046#include <sys/param.h>
5e9f2524
VS
8047int
8048main ()
8049{
8050
8051#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8052 bogus endian macros
8053#endif
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext
8059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 # It does; now see whether it defined to BIG_ENDIAN or not.
8071cat >conftest.$ac_ext <<_ACEOF
8072#line $LINENO "configure"
79608eef
VS
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
5e9f2524
VS
8078#include <sys/types.h>
8079#include <sys/param.h>
5e9f2524
VS
8080int
8081main ()
8082{
8083
8084#if BYTE_ORDER != BIG_ENDIAN
8085 not big endian
8086#endif
8087 ;
8088 return 0;
8089}
8090_ACEOF
8091rm -f conftest.$ac_objext
8092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -s conftest.$ac_objext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 ac_cv_c_bigendian=yes
8104else
8105 echo "$as_me: failed program was:" >&5
79608eef
VS
8106sed 's/^/| /' conftest.$ac_ext >&5
8107
5e9f2524
VS
8108ac_cv_c_bigendian=no
8109fi
8110rm -f conftest.$ac_objext conftest.$ac_ext
8111else
8112 echo "$as_me: failed program was:" >&5
79608eef
VS
8113sed 's/^/| /' conftest.$ac_ext >&5
8114
5e9f2524
VS
8115fi
8116rm -f conftest.$ac_objext conftest.$ac_ext
8117if test $ac_cv_c_bigendian = unknown; then
8118if test "$cross_compiling" = yes; then
8119 echo $ac_n "cross-compiling... " 2>&6
8120else
8121 cat >conftest.$ac_ext <<_ACEOF
8122#line $LINENO "configure"
79608eef
VS
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
5e9f2524
VS
8128main () {
8129 /* Are we little or big endian? From Harbison&Steele. */
8130 union
8131 {
8132 long l;
8133 char c[sizeof (long)];
8134 } u;
8135 u.l = 1;
8136 exit (u.c[sizeof (long) - 1] == 1);
8137}
8138_ACEOF
8139rm -f conftest$ac_exeext
8140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141 (eval $ac_link) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_c_bigendian=no
8151else
8152 echo "$as_me: program exited with status $ac_status" >&5
8153echo "$as_me: failed program was:" >&5
79608eef
VS
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
5e9f2524
VS
8156( exit $ac_status )
8157ac_cv_c_bigendian=yes
8158fi
79608eef 8159rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8160fi
8161fi
8162fi
8163echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8164echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8165if test $ac_cv_c_bigendian = unknown; then
8166echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8167echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8168
8169cat >conftest.c <<EOF
8170short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8171short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8172void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8173short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8174short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8175void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8176int main() { _ascii (); _ebcdic (); return 0; }
8177EOF
8178 if test -f conftest.c ; then
8179 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
8180 if test `grep -l BIGenDianSyS conftest.o` ; then
8181 echo $ac_n ' big endian probe OK, ' 1>&6
8182 ac_cv_c_bigendian=yes
8183 fi
8184 if test `grep -l LiTTleEnDian conftest.o` ; then
8185 echo $ac_n ' little endian probe OK, ' 1>&6
8186 if test $ac_cv_c_bigendian = yes ; then
8187 ac_cv_c_bigendian=unknown;
8188 else
8189 ac_cv_c_bigendian=no
8190 fi
8191 fi
8192 echo $ac_n 'guessing bigendian ... ' >&6
8193 fi
8194 fi
8195echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8196echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8197fi
8198if test $ac_cv_c_bigendian = yes; then
8199
8200cat >>confdefs.h <<\_ACEOF
8201#define WORDS_BIGENDIAN 1
8202_ACEOF
8203
8204 BYTEORDER=4321
8205else
8206 BYTEORDER=1234
8207fi
8208
8209cat >>confdefs.h <<_ACEOF
8210#define BYTEORDER $BYTEORDER
8211_ACEOF
8212
8213if test $ac_cv_c_bigendian = unknown; then
8214 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
8215echo "$as_me: error: unknown endianess - sorry" >&2;}
8216 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
8217fi
8218
8219
5e9f2524
VS
8220echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8221echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8222if test "${ac_cv_c_const+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 cat >conftest.$ac_ext <<_ACEOF
8226#line $LINENO "configure"
79608eef
VS
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
5e9f2524 8232
5e9f2524
VS
8233int
8234main ()
8235{
8236/* FIXME: Include the comments suggested by Paul. */
8237#ifndef __cplusplus
8238 /* Ultrix mips cc rejects this. */
8239 typedef int charset[2];
8240 const charset x;
8241 /* SunOS 4.1.1 cc rejects this. */
8242 char const *const *ccp;
8243 char **p;
8244 /* NEC SVR4.0.2 mips cc rejects this. */
8245 struct point {int x, y;};
8246 static struct point const zero = {0,0};
8247 /* AIX XL C 1.02.0.0 rejects this.
8248 It does not let you subtract one const X* pointer from another in
8249 an arm of an if-expression whose if-part is not a constant
8250 expression */
8251 const char *g = "string";
8252 ccp = &g + (g ? g-g : 0);
8253 /* HPUX 7.0 cc rejects these. */
8254 ++ccp;
8255 p = (char**) ccp;
8256 ccp = (char const *const *) p;
8257 { /* SCO 3.2v4 cc rejects this. */
8258 char *t;
8259 char const *s = 0 ? (char *) 0 : (char const *) 0;
8260
8261 *t++ = 0;
8262 }
8263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8264 int x[] = {25, 17};
8265 const int *foo = &x[0];
8266 ++foo;
8267 }
8268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269 typedef const int *iptr;
8270 iptr p = 0;
8271 ++p;
8272 }
8273 { /* AIX XL C 1.02.0.0 rejects this saying
8274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275 struct s { int j; const int *ap[3]; };
8276 struct s *b; b->j = 5;
8277 }
8278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279 const int foo = 10;
8280 }
8281#endif
8282
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext
8288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_c_const=yes
8300else
8301 echo "$as_me: failed program was:" >&5
79608eef
VS
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
5e9f2524
VS
8304ac_cv_c_const=no
8305fi
8306rm -f conftest.$ac_objext conftest.$ac_ext
8307fi
8308echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8309echo "${ECHO_T}$ac_cv_c_const" >&6
8310if test $ac_cv_c_const = no; then
8311
8312cat >>confdefs.h <<\_ACEOF
8313#define const
8314_ACEOF
8315
8316fi
8317
8318echo "$as_me:$LINENO: checking for off_t" >&5
8319echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8320if test "${ac_cv_type_off_t+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323 cat >conftest.$ac_ext <<_ACEOF
8324#line $LINENO "configure"
79608eef
VS
8325/* confdefs.h. */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h. */
5e9f2524 8330$ac_includes_default
5e9f2524
VS
8331int
8332main ()
8333{
8334if ((off_t *) 0)
8335 return 0;
8336if (sizeof (off_t))
8337 return 0;
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext
8343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344 (eval $ac_compile) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_type_off_t=yes
8355else
8356 echo "$as_me: failed program was:" >&5
79608eef
VS
8357sed 's/^/| /' conftest.$ac_ext >&5
8358
5e9f2524
VS
8359ac_cv_type_off_t=no
8360fi
8361rm -f conftest.$ac_objext conftest.$ac_ext
8362fi
8363echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8364echo "${ECHO_T}$ac_cv_type_off_t" >&6
8365if test $ac_cv_type_off_t = yes; then
8366 :
8367else
8368
8369cat >>confdefs.h <<_ACEOF
8370#define off_t long
8371_ACEOF
8372
8373fi
8374
8375echo "$as_me:$LINENO: checking for size_t" >&5
8376echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8377if test "${ac_cv_type_size_t+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381#line $LINENO "configure"
79608eef
VS
8382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
5e9f2524 8387$ac_includes_default
5e9f2524
VS
8388int
8389main ()
8390{
8391if ((size_t *) 0)
8392 return 0;
8393if (sizeof (size_t))
8394 return 0;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_type_size_t=yes
8412else
8413 echo "$as_me: failed program was:" >&5
79608eef
VS
8414sed 's/^/| /' conftest.$ac_ext >&5
8415
5e9f2524
VS
8416ac_cv_type_size_t=no
8417fi
8418rm -f conftest.$ac_objext conftest.$ac_ext
8419fi
8420echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8421echo "${ECHO_T}$ac_cv_type_size_t" >&6
8422if test $ac_cv_type_size_t = yes; then
8423 :
8424else
8425
8426cat >>confdefs.h <<_ACEOF
8427#define size_t unsigned
8428_ACEOF
8429
8430fi
8431
8432
8433
8434echo "$as_me:$LINENO: checking for working memcmp" >&5
8435echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8436if test "${ac_cv_func_memcmp_working+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else
8439 if test "$cross_compiling" = yes; then
8440 ac_cv_func_memcmp_working=no
8441else
8442 cat >conftest.$ac_ext <<_ACEOF
8443#line $LINENO "configure"
79608eef
VS
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
5e9f2524 8449
5e9f2524
VS
8450int
8451main ()
8452{
8453
8454 /* Some versions of memcmp are not 8-bit clean. */
8455 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8456 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8457 exit (1);
8458
8459 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8460 or more and with at least one buffer not starting on a 4-byte boundary.
8461 William Lewis provided this test program. */
8462 {
8463 char foo[21];
8464 char bar[21];
8465 int i;
8466 for (i = 0; i < 4; i++)
8467 {
8468 char *a = foo + i;
8469 char *b = bar + i;
8470 strcpy (a, "--------01111111");
8471 strcpy (b, "--------10000000");
8472 if (memcmp (a, b, 16) >= 0)
8473 exit (1);
8474 }
8475 exit (0);
8476 }
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482rm -f conftest$ac_exeext
8483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_func_memcmp_working=yes
8494else
8495 echo "$as_me: program exited with status $ac_status" >&5
8496echo "$as_me: failed program was:" >&5
79608eef
VS
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
5e9f2524
VS
8499( exit $ac_status )
8500ac_cv_func_memcmp_working=no
8501fi
79608eef 8502rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8503fi
8504fi
8505echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8506echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8507test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8508
8509
8510
8511for ac_header in stdlib.h unistd.h
8512do
8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519fi
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522else
8523 # Is the header compilable?
8524echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8526cat >conftest.$ac_ext <<_ACEOF
8527#line $LINENO "configure"
79608eef
VS
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
5e9f2524
VS
8533$ac_includes_default
8534#include <$ac_header>
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8549else
8550 echo "$as_me: failed program was:" >&5
79608eef
VS
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
5e9f2524
VS
8553ac_header_compiler=no
8554fi
8555rm -f conftest.$ac_objext conftest.$ac_ext
8556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557echo "${ECHO_T}$ac_header_compiler" >&6
8558
8559# Is the header present?
8560echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562cat >conftest.$ac_ext <<_ACEOF
8563#line $LINENO "configure"
79608eef
VS
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
5e9f2524
VS
8569#include <$ac_header>
8570_ACEOF
8571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8573 ac_status=$?
79608eef 8574 grep -v '^ *+' conftest.er1 >conftest.err
5e9f2524
VS
8575 rm -f conftest.er1
8576 cat conftest.err >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev/null; then
8579 if test -s conftest.err; then
8580 ac_cpp_err=$ac_c_preproc_warn_flag
8581 else
8582 ac_cpp_err=
8583 fi
8584else
8585 ac_cpp_err=yes
8586fi
8587if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8589else
8590 echo "$as_me: failed program was:" >&5
79608eef
VS
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
5e9f2524
VS
8593 ac_header_preproc=no
8594fi
8595rm -f conftest.err conftest.$ac_ext
8596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597echo "${ECHO_T}$ac_header_preproc" >&6
8598
8599# So? What about this header?
8600case $ac_header_compiler:$ac_header_preproc in
8601 yes:no )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
8605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8606 (
8607 cat <<\_ASBOX
8608## ------------------------------------ ##
8609## Report this to bug-autoconf@gnu.org. ##
8610## ------------------------------------ ##
8611_ASBOX
8612 ) |
8613 sed "s/^/$as_me: WARNING: /" >&2
8614 ;;
5e9f2524
VS
8615 no:yes )
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
79608eef
VS
8621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8622 (
8623 cat <<\_ASBOX
8624## ------------------------------------ ##
8625## Report this to bug-autoconf@gnu.org. ##
8626## ------------------------------------ ##
8627_ASBOX
8628 ) |
8629 sed "s/^/$as_me: WARNING: /" >&2
8630 ;;
5e9f2524
VS
8631esac
8632echo "$as_me:$LINENO: checking for $ac_header" >&5
8633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636else
8637 eval "$as_ac_Header=$ac_header_preproc"
8638fi
8639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641
8642fi
8643if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h <<_ACEOF
8645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646_ACEOF
8647
8648fi
8649
8650done
8651
8652
8653for ac_func in getpagesize
8654do
8655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656echo "$as_me:$LINENO: checking for $ac_func" >&5
8657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 cat >conftest.$ac_ext <<_ACEOF
8662#line $LINENO "configure"
79608eef
VS
8663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
5e9f2524 8668/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
8669 which can conflict with char $ac_func (); below.
8670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671 <limits.h> exists even on freestanding compilers. */
8672#ifdef __STDC__
8673# include <limits.h>
8674#else
8675# include <assert.h>
8676#endif
5e9f2524
VS
8677/* Override any gcc2 internal prototype to avoid an error. */
8678#ifdef __cplusplus
8679extern "C"
79608eef 8680{
5e9f2524
VS
8681#endif
8682/* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8684char $ac_func ();
5e9f2524
VS
8685/* The GNU C library defines this for functions which it implements
8686 to always fail with ENOSYS. Some functions are actually named
8687 something starting with __ and the normal name is an alias. */
8688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8689choke me
8690#else
79608eef
VS
8691char (*f) () = $ac_func;
8692#endif
8693#ifdef __cplusplus
8694}
5e9f2524
VS
8695#endif
8696
79608eef
VS
8697int
8698main ()
8699{
8700return f != $ac_func;
5e9f2524
VS
8701 ;
8702 return 0;
8703}
8704_ACEOF
8705rm -f conftest.$ac_objext conftest$ac_exeext
8706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 eval "$as_ac_var=yes"
8718else
8719 echo "$as_me: failed program was:" >&5
79608eef
VS
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
5e9f2524
VS
8722eval "$as_ac_var=no"
8723fi
8724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8725fi
8726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8728if test `eval echo '${'$as_ac_var'}'` = yes; then
8729 cat >>confdefs.h <<_ACEOF
8730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8731_ACEOF
8732
8733fi
8734done
8735
8736echo "$as_me:$LINENO: checking for working mmap" >&5
8737echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8738if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741 if test "$cross_compiling" = yes; then
8742 ac_cv_func_mmap_fixed_mapped=no
8743else
8744 cat >conftest.$ac_ext <<_ACEOF
8745#line $LINENO "configure"
79608eef
VS
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h. */
5e9f2524
VS
8751$ac_includes_default
8752/* malloc might have been renamed as rpl_malloc. */
8753#undef malloc
8754
8755/* Thanks to Mike Haertel and Jim Avera for this test.
8756 Here is a matrix of mmap possibilities:
8757 mmap private not fixed
8758 mmap private fixed at somewhere currently unmapped
8759 mmap private fixed at somewhere already mapped
8760 mmap shared not fixed
8761 mmap shared fixed at somewhere currently unmapped
8762 mmap shared fixed at somewhere already mapped
8763 For private mappings, we should verify that changes cannot be read()
8764 back from the file, nor mmap's back from the file at a different
8765 address. (There have been systems where private was not correctly
8766 implemented like the infamous i386 svr4.0, and systems where the
8767 VM page cache was not coherent with the file system buffer cache
8768 like early versions of FreeBSD and possibly contemporary NetBSD.)
8769 For shared mappings, we should conversely verify that changes get
8770 propagated back to all the places they're supposed to be.
8771
8772 Grep wants private fixed already mapped.
8773 The main things grep needs to know about mmap are:
8774 * does it exist and is it safe to write into the mmap'd area
8775 * how to use it (BSD variants) */
8776
8777#include <fcntl.h>
8778#include <sys/mman.h>
8779
8780#if !STDC_HEADERS && !HAVE_STDLIB_H
8781char *malloc ();
8782#endif
8783
8784/* This mess was copied from the GNU getpagesize.h. */
8785#if !HAVE_GETPAGESIZE
8786/* Assume that all systems that can run configure have sys/param.h. */
8787# if !HAVE_SYS_PARAM_H
8788# define HAVE_SYS_PARAM_H 1
8789# endif
8790
8791# ifdef _SC_PAGESIZE
8792# define getpagesize() sysconf(_SC_PAGESIZE)
8793# else /* no _SC_PAGESIZE */
8794# if HAVE_SYS_PARAM_H
8795# include <sys/param.h>
8796# ifdef EXEC_PAGESIZE
8797# define getpagesize() EXEC_PAGESIZE
8798# else /* no EXEC_PAGESIZE */
8799# ifdef NBPG
8800# define getpagesize() NBPG * CLSIZE
8801# ifndef CLSIZE
8802# define CLSIZE 1
8803# endif /* no CLSIZE */
8804# else /* no NBPG */
8805# ifdef NBPC
8806# define getpagesize() NBPC
8807# else /* no NBPC */
8808# ifdef PAGESIZE
8809# define getpagesize() PAGESIZE
8810# endif /* PAGESIZE */
8811# endif /* no NBPC */
8812# endif /* no NBPG */
8813# endif /* no EXEC_PAGESIZE */
8814# else /* no HAVE_SYS_PARAM_H */
8815# define getpagesize() 8192 /* punt totally */
8816# endif /* no HAVE_SYS_PARAM_H */
8817# endif /* no _SC_PAGESIZE */
8818
8819#endif /* no HAVE_GETPAGESIZE */
8820
8821int
8822main ()
8823{
8824 char *data, *data2, *data3;
8825 int i, pagesize;
8826 int fd;
8827
8828 pagesize = getpagesize ();
8829
8830 /* First, make a file with some known garbage in it. */
8831 data = (char *) malloc (pagesize);
8832 if (!data)
8833 exit (1);
8834 for (i = 0; i < pagesize; ++i)
8835 *(data + i) = rand ();
8836 umask (0);
8837 fd = creat ("conftest.mmap", 0600);
8838 if (fd < 0)
8839 exit (1);
8840 if (write (fd, data, pagesize) != pagesize)
8841 exit (1);
8842 close (fd);
8843
8844 /* Next, try to mmap the file at a fixed address which already has
8845 something else allocated at it. If we can, also make sure that
8846 we see the same garbage. */
8847 fd = open ("conftest.mmap", O_RDWR);
8848 if (fd < 0)
8849 exit (1);
8850 data2 = (char *) malloc (2 * pagesize);
8851 if (!data2)
8852 exit (1);
8853 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8854 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8855 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8856 exit (1);
8857 for (i = 0; i < pagesize; ++i)
8858 if (*(data + i) != *(data2 + i))
8859 exit (1);
8860
8861 /* Finally, make sure that changes to the mapped area do not
8862 percolate back to the file as seen by read(). (This is a bug on
8863 some variants of i386 svr4.0.) */
8864 for (i = 0; i < pagesize; ++i)
8865 *(data2 + i) = *(data2 + i) + 1;
8866 data3 = (char *) malloc (pagesize);
8867 if (!data3)
8868 exit (1);
8869 if (read (fd, data3, pagesize) != pagesize)
8870 exit (1);
8871 for (i = 0; i < pagesize; ++i)
8872 if (*(data + i) != *(data3 + i))
8873 exit (1);
8874 close (fd);
8875 exit (0);
8876}
8877_ACEOF
8878rm -f conftest$ac_exeext
8879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_func_mmap_fixed_mapped=yes
8890else
8891 echo "$as_me: program exited with status $ac_status" >&5
8892echo "$as_me: failed program was:" >&5
79608eef
VS
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
5e9f2524
VS
8895( exit $ac_status )
8896ac_cv_func_mmap_fixed_mapped=no
8897fi
79608eef 8898rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
8899fi
8900fi
8901echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8902echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8903if test $ac_cv_func_mmap_fixed_mapped = yes; then
8904
8905cat >>confdefs.h <<\_ACEOF
8906#define HAVE_MMAP 1
8907_ACEOF
8908
8909fi
8910rm -f conftest.mmap
8911
8912
8913if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
8914 FILEMAP=unixfilemap
8915else
8916 FILEMAP=readfilemap
8917fi
8918
8919
8920
8921
8922for ac_func in memmove bcopy
8923do
8924as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8925echo "$as_me:$LINENO: checking for $ac_func" >&5
8926echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8927if eval "test \"\${$as_ac_var+set}\" = set"; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929else
8930 cat >conftest.$ac_ext <<_ACEOF
8931#line $LINENO "configure"
79608eef
VS
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
5e9f2524 8937/* System header to define __stub macros and hopefully few prototypes,
79608eef
VS
8938 which can conflict with char $ac_func (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8941#ifdef __STDC__
8942# include <limits.h>
8943#else
8944# include <assert.h>
8945#endif
5e9f2524
VS
8946/* Override any gcc2 internal prototype to avoid an error. */
8947#ifdef __cplusplus
8948extern "C"
79608eef 8949{
5e9f2524
VS
8950#endif
8951/* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8953char $ac_func ();
5e9f2524
VS
8954/* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958choke me
8959#else
79608eef
VS
8960char (*f) () = $ac_func;
8961#endif
8962#ifdef __cplusplus
8963}
5e9f2524
VS
8964#endif
8965
79608eef
VS
8966int
8967main ()
8968{
8969return f != $ac_func;
5e9f2524
VS
8970 ;
8971 return 0;
8972}
8973_ACEOF
8974rm -f conftest.$ac_objext conftest$ac_exeext
8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 eval "$as_ac_var=yes"
8987else
8988 echo "$as_me: failed program was:" >&5
79608eef
VS
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
5e9f2524
VS
8991eval "$as_ac_var=no"
8992fi
8993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8994fi
8995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8996echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8997if test `eval echo '${'$as_ac_var'}'` = yes; then
8998 cat >>confdefs.h <<_ACEOF
8999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9000_ACEOF
9001
9002fi
9003done
9004
9005
9006
9007cat >>confdefs.h <<\_ACEOF
9008#define XML_NS 1
9009_ACEOF
9010
9011
9012cat >>confdefs.h <<\_ACEOF
9013#define XML_DTD 1
9014_ACEOF
9015
9016
9017cat >>confdefs.h <<\_ACEOF
9018#define XML_CONTEXT_BYTES 1024
9019_ACEOF
9020
9021
79608eef 9022 ac_config_files="$ac_config_files Makefile"
5e9f2524
VS
9023
9024cat >confcache <<\_ACEOF
9025# This file is a shell script that caches the results of configure
9026# tests run on this system so they can be shared between configure
9027# scripts and configure runs, see configure's option --config-cache.
9028# It is not useful on other systems. If it contains results you don't
9029# want to keep, you may remove or edit it.
9030#
9031# config.status only pays attention to the cache file if you give it
9032# the --recheck option to rerun configure.
9033#
79608eef 9034# `ac_cv_env_foo' variables (set or unset) will be overridden when
5e9f2524
VS
9035# loading this file, other *unset* `ac_cv_foo' will be assigned the
9036# following values.
9037
9038_ACEOF
9039
9040# The following way of writing the cache mishandles newlines in values,
9041# but we know of no workaround that is simple, portable, and efficient.
9042# So, don't put newlines in cache variables' values.
9043# Ultrix sh set writes to stderr and can't be redirected directly,
9044# and sets the high bit in the cache file unless we assign to the vars.
9045{
9046 (set) 2>&1 |
9047 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9048 *ac_space=\ *)
9049 # `set' does not quote correctly, so add quotes (double-quote
9050 # substitution turns \\\\ into \\, and sed turns \\ into \).
9051 sed -n \
9052 "s/'/'\\\\''/g;
9053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9054 ;;
9055 *)
9056 # `set' quotes correctly as required by POSIX, so do not add quotes.
9057 sed -n \
9058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9059 ;;
9060 esac;
9061} |
9062 sed '
9063 t clear
9064 : clear
9065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9066 t end
9067 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9068 : end' >>confcache
79608eef 9069if diff $cache_file confcache >/dev/null 2>&1; then :; else
5e9f2524
VS
9070 if test -w $cache_file; then
9071 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9072 cat confcache >$cache_file
9073 else
9074 echo "not updating unwritable cache $cache_file"
9075 fi
9076fi
9077rm -f confcache
9078
9079test "x$prefix" = xNONE && prefix=$ac_default_prefix
9080# Let make expand exec_prefix.
9081test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9082
9083# VPATH may cause trouble with some makes, so we remove $(srcdir),
9084# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9085# trailing colons and then remove the whole line if VPATH becomes empty
9086# (actually we leave an empty line to preserve line numbers).
9087if test "x$srcdir" = x.; then
9088 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9089s/:*\$(srcdir):*/:/;
9090s/:*\${srcdir}:*/:/;
9091s/:*@srcdir@:*/:/;
9092s/^\([^=]*=[ ]*\):*/\1/;
9093s/:*$//;
9094s/^[^=]*=[ ]*$//;
9095}'
9096fi
9097
9098DEFS=-DHAVE_CONFIG_H
9099
79608eef
VS
9100ac_libobjs=
9101ac_ltlibobjs=
9102for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9103 # 1. Remove the extension, and $U if already installed.
9104 ac_i=`echo "$ac_i" |
9105 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9106 # 2. Add them.
9107 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9108 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9109done
9110LIBOBJS=$ac_libobjs
9111
9112LTLIBOBJS=$ac_ltlibobjs
9113
9114
5e9f2524
VS
9115
9116: ${CONFIG_STATUS=./config.status}
9117ac_clean_files_save=$ac_clean_files
9118ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9119{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9120echo "$as_me: creating $CONFIG_STATUS" >&6;}
9121cat >$CONFIG_STATUS <<_ACEOF
9122#! $SHELL
9123# Generated by $as_me.
9124# Run this file to recreate the current configuration.
9125# Compiler output produced by configure, useful for debugging
9126# configure, is in config.log if it exists.
9127
9128debug=false
79608eef
VS
9129ac_cs_recheck=false
9130ac_cs_silent=false
5e9f2524
VS
9131SHELL=\${CONFIG_SHELL-$SHELL}
9132_ACEOF
9133
9134cat >>$CONFIG_STATUS <<\_ACEOF
5e9f2524
VS
9135## --------------------- ##
9136## M4sh Initialization. ##
9137## --------------------- ##
9138
9139# Be Bourne compatible
9140if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9141 emulate sh
9142 NULLCMD=:
79608eef
VS
9143 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9144 # is contrary to our usage. Disable this feature.
9145 alias -g '${1+"$@"}'='"$@"'
5e9f2524
VS
9146elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9147 set -o posix
9148fi
9149
5e9f2524
VS
9150# Support unset when possible.
9151if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9152 as_unset=unset
9153else
9154 as_unset=false
9155fi
9156
79608eef
VS
9157
9158# Work around bugs in pre-3.0 UWIN ksh.
9159$as_unset ENV MAIL MAILPATH
9160PS1='$ '
9161PS2='> '
9162PS4='+ '
9163
9164# NLS nuisances.
9165for as_var in \
9166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9168 LC_TELEPHONE LC_TIME
9169do
9170 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9171 eval $as_var=C; export $as_var
9172 else
9173 $as_unset $as_var
9174 fi
9175done
9176
9177# Required to use basename.
9178if expr a : '\(a\)' >/dev/null 2>&1; then
9179 as_expr=expr
9180else
9181 as_expr=false
9182fi
9183
9184if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9185 as_basename=basename
9186else
9187 as_basename=false
9188fi
5e9f2524
VS
9189
9190
9191# Name of the executable.
79608eef 9192as_me=`$as_basename "$0" ||
5e9f2524
VS
9193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9194 X"$0" : 'X\(//\)$' \| \
9195 X"$0" : 'X\(/\)$' \| \
9196 . : '\(.\)' 2>/dev/null ||
9197echo X/"$0" |
9198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9199 /^X\/\(\/\/\)$/{ s//\1/; q; }
9200 /^X\/\(\/\).*/{ s//\1/; q; }
9201 s/.*/./; q'`
9202
79608eef 9203
5e9f2524
VS
9204# PATH needs CR, and LINENO needs CR and PATH.
9205# Avoid depending upon Character Ranges.
9206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9209as_cr_digits='0123456789'
9210as_cr_alnum=$as_cr_Letters$as_cr_digits
9211
9212# The user is always right.
9213if test "${PATH_SEPARATOR+set}" != set; then
79608eef
VS
9214 echo "#! /bin/sh" >conf$$.sh
9215 echo "exit 0" >>conf$$.sh
9216 chmod +x conf$$.sh
9217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5e9f2524
VS
9218 PATH_SEPARATOR=';'
9219 else
9220 PATH_SEPARATOR=:
9221 fi
79608eef 9222 rm -f conf$$.sh
5e9f2524
VS
9223fi
9224
9225
9226 as_lineno_1=$LINENO
9227 as_lineno_2=$LINENO
9228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9229 test "x$as_lineno_1" != "x$as_lineno_2" &&
9230 test "x$as_lineno_3" = "x$as_lineno_2" || {
9231 # Find who we are. Look in the path if we contain no path at all
9232 # relative or not.
9233 case $0 in
9234 *[\\/]* ) as_myself=$0 ;;
9235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9241done
9242
9243 ;;
9244 esac
9245 # We did not find ourselves, most probably we were run as `sh COMMAND'
9246 # in which case we are not to be found in the path.
9247 if test "x$as_myself" = x; then
9248 as_myself=$0
9249 fi
9250 if test ! -f "$as_myself"; then
9251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9252echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9253 { (exit 1); exit 1; }; }
9254 fi
9255 case $CONFIG_SHELL in
9256 '')
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for as_base in sh bash ksh sh5; do
9263 case $as_dir in
9264 /*)
9265 if ("$as_dir/$as_base" -c '
9266 as_lineno_1=$LINENO
9267 as_lineno_2=$LINENO
9268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9269 test "x$as_lineno_1" != "x$as_lineno_2" &&
9270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
79608eef
VS
9271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5e9f2524
VS
9273 CONFIG_SHELL=$as_dir/$as_base
9274 export CONFIG_SHELL
9275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9276 fi;;
9277 esac
9278 done
9279done
9280;;
9281 esac
9282
9283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9284 # uniformly replaced by the line number. The first 'sed' inserts a
9285 # line-number line before each line; the second 'sed' does the real
9286 # work. The second script uses 'N' to pair each line-number line
9287 # with the numbered line, and appends trailing '-' during
9288 # substitution so that $LINENO is not a special case at line end.
9289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9291 sed '=' <$as_myself |
9292 sed '
9293 N
9294 s,$,-,
9295 : loop
9296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9297 t loop
9298 s,-$,,
9299 s,^['$as_cr_digits']*\n,,
9300 ' >$as_me.lineno &&
9301 chmod +x $as_me.lineno ||
9302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9303echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9304 { (exit 1); exit 1; }; }
9305
9306 # Don't try to exec as it changes $[0], causing all sort of problems
9307 # (the dirname of $[0] is not the place where we might find the
9308 # original and so on. Autoconf is especially sensible to this).
9309 . ./$as_me.lineno
9310 # Exit status is that of the last command.
9311 exit
9312}
9313
9314
9315case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9316 *c*,-n*) ECHO_N= ECHO_C='
9317' ECHO_T=' ' ;;
9318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9320esac
9321
9322if expr a : '\(a\)' >/dev/null 2>&1; then
9323 as_expr=expr
9324else
9325 as_expr=false
9326fi
9327
9328rm -f conf$$ conf$$.exe conf$$.file
9329echo >conf$$.file
9330if ln -s conf$$.file conf$$ 2>/dev/null; then
9331 # We could just check for DJGPP; but this test a) works b) is more generic
9332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9333 if test -f conf$$.exe; then
9334 # Don't use ln at all; we don't have any links
9335 as_ln_s='cp -p'
9336 else
9337 as_ln_s='ln -s'
9338 fi
9339elif ln conf$$.file conf$$ 2>/dev/null; then
9340 as_ln_s=ln
9341else
9342 as_ln_s='cp -p'
9343fi
9344rm -f conf$$ conf$$.exe conf$$.file
9345
79608eef
VS
9346if mkdir -p . 2>/dev/null; then
9347 as_mkdir_p=:
9348else
9349 as_mkdir_p=false
9350fi
9351
5e9f2524
VS
9352as_executable_p="test -f"
9353
9354# Sed expression to map a string onto a valid CPP name.
9355as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9356
9357# Sed expression to map a string onto a valid variable name.
9358as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9359
9360
9361# IFS
9362# We need space, tab and new line, in precisely that order.
9363as_nl='
9364'
9365IFS=" $as_nl"
9366
9367# CDPATH.
79608eef 9368$as_unset CDPATH
5e9f2524
VS
9369
9370exec 6>&1
9371
9372# Open the log real soon, to keep \$[0] and so on meaningful, and to
9373# report actual input values of CONFIG_FILES etc. instead of their
9374# values after options handling. Logging --version etc. is OK.
9375exec 5>>config.log
9376{
9377 echo
9378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9379## Running $as_me. ##
9380_ASBOX
9381} >&5
9382cat >&5 <<_CSEOF
9383
79608eef
VS
9384This file was extended by $as_me, which was
9385generated by GNU Autoconf 2.57. Invocation command line was
5e9f2524
VS
9386
9387 CONFIG_FILES = $CONFIG_FILES
9388 CONFIG_HEADERS = $CONFIG_HEADERS
9389 CONFIG_LINKS = $CONFIG_LINKS
9390 CONFIG_COMMANDS = $CONFIG_COMMANDS
9391 $ $0 $@
9392
9393_CSEOF
9394echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9395echo >&5
9396_ACEOF
9397
9398# Files that config.status was made for.
9399if test -n "$ac_config_files"; then
9400 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9401fi
9402
9403if test -n "$ac_config_headers"; then
9404 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9405fi
9406
9407if test -n "$ac_config_links"; then
9408 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9409fi
9410
9411if test -n "$ac_config_commands"; then
9412 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9413fi
9414
9415cat >>$CONFIG_STATUS <<\_ACEOF
9416
9417ac_cs_usage="\
9418\`$as_me' instantiates files from templates according to the
9419current configuration.
9420
9421Usage: $0 [OPTIONS] [FILE]...
9422
9423 -h, --help print this help, then exit
9424 -V, --version print version number, then exit
79608eef 9425 -q, --quiet do not print progress messages
5e9f2524
VS
9426 -d, --debug don't remove temporary files
9427 --recheck update $as_me by reconfiguring in the same conditions
9428 --file=FILE[:TEMPLATE]
9429 instantiate the configuration file FILE
9430 --header=FILE[:TEMPLATE]
9431 instantiate the configuration header FILE
9432
9433Configuration files:
9434$config_files
9435
9436Configuration headers:
9437$config_headers
9438
9439Report bugs to <bug-autoconf@gnu.org>."
9440_ACEOF
9441
9442cat >>$CONFIG_STATUS <<_ACEOF
9443ac_cs_version="\\
79608eef
VS
9444config.status
9445configured by $0, generated by GNU Autoconf 2.57,
5e9f2524
VS
9446 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9447
9448Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9449Free Software Foundation, Inc.
9450This config.status script is free software; the Free Software Foundation
9451gives unlimited permission to copy, distribute and modify it."
9452srcdir=$srcdir
9453INSTALL="$INSTALL"
9454_ACEOF
9455
9456cat >>$CONFIG_STATUS <<\_ACEOF
9457# If no file are specified by the user, then we need to provide default
9458# value. By we need to know if files were specified by the user.
9459ac_need_defaults=:
9460while test $# != 0
9461do
9462 case $1 in
9463 --*=*)
9464 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9465 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
79608eef
VS
9466 ac_shift=:
9467 ;;
9468 -*)
9469 ac_option=$1
9470 ac_optarg=$2
9471 ac_shift=shift
5e9f2524 9472 ;;
5e9f2524
VS
9473 *) # This is not an option, so the user has probably given explicit
9474 # arguments.
79608eef 9475 ac_option=$1
5e9f2524
VS
9476 ac_need_defaults=false;;
9477 esac
9478
79608eef 9479 case $ac_option in
5e9f2524
VS
9480 # Handling of the options.
9481_ACEOF
5e9f2524 9482cat >>$CONFIG_STATUS <<\_ACEOF
79608eef
VS
9483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9484 ac_cs_recheck=: ;;
5e9f2524
VS
9485 --version | --vers* | -V )
9486 echo "$ac_cs_version"; exit 0 ;;
9487 --he | --h)
9488 # Conflict between --help and --header
9489 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9490Try \`$0 --help' for more information." >&5
9491echo "$as_me: error: ambiguous option: $1
9492Try \`$0 --help' for more information." >&2;}
9493 { (exit 1); exit 1; }; };;
9494 --help | --hel | -h )
9495 echo "$ac_cs_usage"; exit 0 ;;
9496 --debug | --d* | -d )
9497 debug=: ;;
9498 --file | --fil | --fi | --f )
79608eef
VS
9499 $ac_shift
9500 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5e9f2524
VS
9501 ac_need_defaults=false;;
9502 --header | --heade | --head | --hea )
79608eef
VS
9503 $ac_shift
9504 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5e9f2524 9505 ac_need_defaults=false;;
79608eef
VS
9506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9508 ac_cs_silent=: ;;
5e9f2524
VS
9509
9510 # This is an error.
9511 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9512Try \`$0 --help' for more information." >&5
9513echo "$as_me: error: unrecognized option: $1
9514Try \`$0 --help' for more information." >&2;}
9515 { (exit 1); exit 1; }; } ;;
9516
9517 *) ac_config_targets="$ac_config_targets $1" ;;
9518
9519 esac
9520 shift
9521done
9522
79608eef
VS
9523ac_configure_extra_args=
9524
9525if $ac_cs_silent; then
9526 exec 6>/dev/null
9527 ac_configure_extra_args="$ac_configure_extra_args --silent"
9528fi
9529
9530_ACEOF
9531cat >>$CONFIG_STATUS <<_ACEOF
9532if \$ac_cs_recheck; then
9533 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9534 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9535fi
9536
5e9f2524
VS
9537_ACEOF
9538
9539
9540
9541
9542
9543cat >>$CONFIG_STATUS <<\_ACEOF
9544for ac_config_target in $ac_config_targets
9545do
9546 case "$ac_config_target" in
9547 # Handling of arguments.
9548 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9549 "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
9550 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9551echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9552 { (exit 1); exit 1; }; };;
9553 esac
9554done
9555
9556# If the user did not use the arguments to specify the items to instantiate,
9557# then the envvar interface is used. Set only those that are not.
9558# We use the long form for the default assignment because of an extremely
9559# bizarre bug on SunOS 4.1.3.
9560if $ac_need_defaults; then
9561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9563fi
9564
79608eef
VS
9565# Have a temporary directory for convenience. Make it in the build tree
9566# simply because there is no reason to put it here, and in addition,
9567# creating and moving files from /tmp can sometimes cause problems.
5e9f2524
VS
9568# Create a temporary directory, and hook for its removal unless debugging.
9569$debug ||
9570{
9571 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9572 trap '{ (exit 1); exit 1; }' 1 2 13 15
9573}
9574
9575# Create a (secure) tmp directory for tmp files.
79608eef 9576
5e9f2524 9577{
79608eef 9578 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5e9f2524
VS
9579 test -n "$tmp" && test -d "$tmp"
9580} ||
9581{
79608eef 9582 tmp=./confstat$$-$RANDOM
5e9f2524
VS
9583 (umask 077 && mkdir $tmp)
9584} ||
9585{
79608eef 9586 echo "$me: cannot create a temporary directory in ." >&2
5e9f2524
VS
9587 { (exit 1); exit 1; }
9588}
9589
9590_ACEOF
9591
9592cat >>$CONFIG_STATUS <<_ACEOF
9593
9594#
9595# CONFIG_FILES section.
9596#
9597
9598# No need to generate the scripts if there are no CONFIG_FILES.
9599# This happens for instance when ./config.status config.h
9600if test -n "\$CONFIG_FILES"; then
9601 # Protect against being on the right side of a sed subst in config.status.
9602 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9603 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9604s,@SHELL@,$SHELL,;t t
9605s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9606s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9607s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9608s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9609s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9610s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9611s,@exec_prefix@,$exec_prefix,;t t
9612s,@prefix@,$prefix,;t t
9613s,@program_transform_name@,$program_transform_name,;t t
9614s,@bindir@,$bindir,;t t
9615s,@sbindir@,$sbindir,;t t
9616s,@libexecdir@,$libexecdir,;t t
9617s,@datadir@,$datadir,;t t
9618s,@sysconfdir@,$sysconfdir,;t t
9619s,@sharedstatedir@,$sharedstatedir,;t t
9620s,@localstatedir@,$localstatedir,;t t
9621s,@libdir@,$libdir,;t t
9622s,@includedir@,$includedir,;t t
9623s,@oldincludedir@,$oldincludedir,;t t
9624s,@infodir@,$infodir,;t t
9625s,@mandir@,$mandir,;t t
9626s,@build_alias@,$build_alias,;t t
9627s,@host_alias@,$host_alias,;t t
9628s,@target_alias@,$target_alias,;t t
9629s,@DEFS@,$DEFS,;t t
9630s,@ECHO_C@,$ECHO_C,;t t
9631s,@ECHO_N@,$ECHO_N,;t t
9632s,@ECHO_T@,$ECHO_T,;t t
9633s,@LIBS@,$LIBS,;t t
4301e38a
DE
9634s,@CC@,$CC,;t t
9635s,@CFLAGS@,$CFLAGS,;t t
9636s,@LDFLAGS@,$LDFLAGS,;t t
9637s,@CPPFLAGS@,$CPPFLAGS,;t t
9638s,@ac_ct_CC@,$ac_ct_CC,;t t
9639s,@EXEEXT@,$EXEEXT,;t t
9640s,@OBJEXT@,$OBJEXT,;t t
5e9f2524
VS
9641s,@build@,$build,;t t
9642s,@build_cpu@,$build_cpu,;t t
9643s,@build_vendor@,$build_vendor,;t t
9644s,@build_os@,$build_os,;t t
9645s,@host@,$host,;t t
9646s,@host_cpu@,$host_cpu,;t t
9647s,@host_vendor@,$host_vendor,;t t
9648s,@host_os@,$host_os,;t t
5e9f2524
VS
9649s,@LN_S@,$LN_S,;t t
9650s,@ECHO@,$ECHO,;t t
9651s,@RANLIB@,$RANLIB,;t t
9652s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9653s,@STRIP@,$STRIP,;t t
9654s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9655s,@CPP@,$CPP,;t t
79608eef 9656s,@EGREP@,$EGREP,;t t
5e9f2524
VS
9657s,@LIBTOOL@,$LIBTOOL,;t t
9658s,@LIBCURRENT@,$LIBCURRENT,;t t
9659s,@LIBREVISION@,$LIBREVISION,;t t
9660s,@LIBAGE@,$LIBAGE,;t t
9661s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9662s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9663s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9664s,@LIBOBJS@,$LIBOBJS,;t t
9665s,@FILEMAP@,$FILEMAP,;t t
79608eef 9666s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5e9f2524
VS
9667CEOF
9668
9669_ACEOF
9670
9671 cat >>$CONFIG_STATUS <<\_ACEOF
9672 # Split the substitutions into bite-sized pieces for seds with
9673 # small command number limits, like on Digital OSF/1 and HP-UX.
9674 ac_max_sed_lines=48
9675 ac_sed_frag=1 # Number of current file.
9676 ac_beg=1 # First line for current file.
9677 ac_end=$ac_max_sed_lines # Line after last line for current file.
9678 ac_more_lines=:
9679 ac_sed_cmds=
9680 while $ac_more_lines; do
9681 if test $ac_beg -gt 1; then
9682 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9683 else
9684 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9685 fi
9686 if test ! -s $tmp/subs.frag; then
9687 ac_more_lines=false
9688 else
9689 # The purpose of the label and of the branching condition is to
9690 # speed up the sed processing (if there are no `@' at all, there
9691 # is no need to browse any of the substitutions).
9692 # These are the two extra sed commands mentioned above.
9693 (echo ':t
9694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9695 if test -z "$ac_sed_cmds"; then
9696 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9697 else
9698 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9699 fi
9700 ac_sed_frag=`expr $ac_sed_frag + 1`
9701 ac_beg=$ac_end
9702 ac_end=`expr $ac_end + $ac_max_sed_lines`
9703 fi
9704 done
9705 if test -z "$ac_sed_cmds"; then
9706 ac_sed_cmds=cat
9707 fi
9708fi # test -n "$CONFIG_FILES"
9709
9710_ACEOF
9711cat >>$CONFIG_STATUS <<\_ACEOF
9712for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9714 case $ac_file in
9715 - | *:- | *:-:* ) # input from stdin
9716 cat >$tmp/stdin
9717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9721 * ) ac_file_in=$ac_file.in ;;
9722 esac
9723
9724 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9726$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9727 X"$ac_file" : 'X\(//\)[^/]' \| \
9728 X"$ac_file" : 'X\(//\)$' \| \
9729 X"$ac_file" : 'X\(/\)' \| \
9730 . : '\(.\)' 2>/dev/null ||
9731echo X"$ac_file" |
9732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9734 /^X\(\/\/\)$/{ s//\1/; q; }
9735 /^X\(\/\).*/{ s//\1/; q; }
9736 s/.*/./; q'`
79608eef
VS
9737 { if $as_mkdir_p; then
9738 mkdir -p "$ac_dir"
9739 else
9740 as_dir="$ac_dir"
9741 as_dirs=
9742 while test ! -d "$as_dir"; do
9743 as_dirs="$as_dir $as_dirs"
9744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9746 X"$as_dir" : 'X\(//\)[^/]' \| \
9747 X"$as_dir" : 'X\(//\)$' \| \
9748 X"$as_dir" : 'X\(/\)' \| \
9749 . : '\(.\)' 2>/dev/null ||
9750echo X"$as_dir" |
9751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9753 /^X\(\/\/\)$/{ s//\1/; q; }
9754 /^X\(\/\).*/{ s//\1/; q; }
9755 s/.*/./; q'`
9756 done
9757 test ! -n "$as_dirs" || mkdir $as_dirs
9758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9759echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9760 { (exit 1); exit 1; }; }; }
5e9f2524
VS
9761
9762 ac_builddir=.
9763
9764if test "$ac_dir" != .; then
9765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9766 # A "../" for each directory in $ac_dir_suffix.
9767 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9768else
9769 ac_dir_suffix= ac_top_builddir=
9770fi
9771
9772case $srcdir in
9773 .) # No --srcdir option. We are building in place.
9774 ac_srcdir=.
9775 if test -z "$ac_top_builddir"; then
9776 ac_top_srcdir=.
9777 else
9778 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9779 fi ;;
9780 [\\/]* | ?:[\\/]* ) # Absolute path.
9781 ac_srcdir=$srcdir$ac_dir_suffix;
9782 ac_top_srcdir=$srcdir ;;
9783 *) # Relative path.
9784 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9785 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9786esac
9787# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9788# absolute.
9789ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
79608eef 9790ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5e9f2524
VS
9791ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9792ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9793
9794
9795 case $INSTALL in
9796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9797 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9798 esac
9799
9800 if test x"$ac_file" != x-; then
9801 { echo "$as_me:$LINENO: creating $ac_file" >&5
9802echo "$as_me: creating $ac_file" >&6;}
9803 rm -f "$ac_file"
9804 fi
9805 # Let's still pretend it is `configure' which instantiates (i.e., don't
9806 # use $as_me), people would be surprised to read:
9807 # /* config.h. Generated by config.status. */
9808 if test x"$ac_file" = x-; then
9809 configure_input=
9810 else
9811 configure_input="$ac_file. "
9812 fi
9813 configure_input=$configure_input"Generated from `echo $ac_file_in |
9814 sed 's,.*/,,'` by configure."
9815
9816 # First look for the input files in the build tree, otherwise in the
9817 # src tree.
9818 ac_file_inputs=`IFS=:
9819 for f in $ac_file_in; do
9820 case $f in
9821 -) echo $tmp/stdin ;;
9822 [\\/$]*)
9823 # Absolute (can't be DOS-style, as IFS=:)
9824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9825echo "$as_me: error: cannot find input file: $f" >&2;}
9826 { (exit 1); exit 1; }; }
9827 echo $f;;
9828 *) # Relative
9829 if test -f "$f"; then
9830 # Build tree
9831 echo $f
9832 elif test -f "$srcdir/$f"; then
9833 # Source tree
9834 echo $srcdir/$f
9835 else
9836 # /dev/null tree
9837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9838echo "$as_me: error: cannot find input file: $f" >&2;}
9839 { (exit 1); exit 1; }; }
9840 fi;;
9841 esac
9842 done` || { (exit 1); exit 1; }
9843_ACEOF
9844cat >>$CONFIG_STATUS <<_ACEOF
9845 sed "$ac_vpsub
9846$extrasub
9847_ACEOF
9848cat >>$CONFIG_STATUS <<\_ACEOF
9849:t
9850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9851s,@configure_input@,$configure_input,;t t
9852s,@srcdir@,$ac_srcdir,;t t
9853s,@abs_srcdir@,$ac_abs_srcdir,;t t
9854s,@top_srcdir@,$ac_top_srcdir,;t t
9855s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9856s,@builddir@,$ac_builddir,;t t
9857s,@abs_builddir@,$ac_abs_builddir,;t t
9858s,@top_builddir@,$ac_top_builddir,;t t
9859s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9860s,@INSTALL@,$ac_INSTALL,;t t
9861" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9862 rm -f $tmp/stdin
9863 if test x"$ac_file" != x-; then
9864 mv $tmp/out $ac_file
9865 else
9866 cat $tmp/out
9867 rm -f $tmp/out
9868 fi
9869
9870done
9871_ACEOF
9872cat >>$CONFIG_STATUS <<\_ACEOF
9873
9874#
9875# CONFIG_HEADER section.
9876#
9877
9878# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9879# NAME is the cpp macro being defined and VALUE is the value it is being given.
9880#
9881# ac_d sets the value in "#define NAME VALUE" lines.
9882ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9883ac_dB='[ ].*$,\1#\2'
9884ac_dC=' '
9885ac_dD=',;t'
9886# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9887ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9888ac_uB='$,\1#\2define\3'
9889ac_uC=' '
9890ac_uD=',;t'
9891
9892for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9894 case $ac_file in
9895 - | *:- | *:-:* ) # input from stdin
9896 cat >$tmp/stdin
9897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9901 * ) ac_file_in=$ac_file.in ;;
9902 esac
9903
9904 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9905echo "$as_me: creating $ac_file" >&6;}
9906
9907 # First look for the input files in the build tree, otherwise in the
9908 # src tree.
9909 ac_file_inputs=`IFS=:
9910 for f in $ac_file_in; do
9911 case $f in
9912 -) echo $tmp/stdin ;;
9913 [\\/$]*)
9914 # Absolute (can't be DOS-style, as IFS=:)
9915 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9916echo "$as_me: error: cannot find input file: $f" >&2;}
9917 { (exit 1); exit 1; }; }
9918 echo $f;;
9919 *) # Relative
9920 if test -f "$f"; then
9921 # Build tree
9922 echo $f
9923 elif test -f "$srcdir/$f"; then
9924 # Source tree
9925 echo $srcdir/$f
9926 else
9927 # /dev/null tree
9928 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9929echo "$as_me: error: cannot find input file: $f" >&2;}
9930 { (exit 1); exit 1; }; }
9931 fi;;
9932 esac
9933 done` || { (exit 1); exit 1; }
9934 # Remove the trailing spaces.
9935 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9936
9937_ACEOF
9938
9939# Transform confdefs.h into two sed scripts, `conftest.defines' and
9940# `conftest.undefs', that substitutes the proper values into
9941# config.h.in to produce config.h. The first handles `#define'
9942# templates, and the second `#undef' templates.
9943# And first: Protect against being on the right side of a sed subst in
9944# config.status. Protect against being in an unquoted here document
9945# in config.status.
9946rm -f conftest.defines conftest.undefs
9947# Using a here document instead of a string reduces the quoting nightmare.
9948# Putting comments in sed scripts is not portable.
9949#
9950# `end' is used to avoid that the second main sed command (meant for
9951# 0-ary CPP macros) applies to n-ary macro definitions.
9952# See the Autoconf documentation for `clear'.
9953cat >confdef2sed.sed <<\_ACEOF
9954s/[\\&,]/\\&/g
9955s,[\\$`],\\&,g
9956t clear
9957: clear
9958s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9959t end
9960s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9961: end
9962_ACEOF
9963# If some macros were called several times there might be several times
9964# the same #defines, which is useless. Nevertheless, we may not want to
9965# sort them, since we want the *last* AC-DEFINE to be honored.
9966uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9967sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9968rm -f confdef2sed.sed
9969
9970# This sed command replaces #undef with comments. This is necessary, for
9971# example, in the case of _POSIX_SOURCE, which is predefined and required
9972# on some systems where configure will not decide to define it.
9973cat >>conftest.undefs <<\_ACEOF
9974s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9975_ACEOF
9976
9977# Break up conftest.defines because some shells have a limit on the size
9978# of here documents, and old seds have small limits too (100 cmds).
9979echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
79608eef 9980echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5e9f2524
VS
9981echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9982echo ' :' >>$CONFIG_STATUS
9983rm -f conftest.tail
9984while grep . conftest.defines >/dev/null
9985do
9986 # Write a limited-size here document to $tmp/defines.sed.
9987 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9988 # Speed up: don't consider the non `#define' lines.
9989 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9990 # Work around the forget-to-reset-the-flag bug.
9991 echo 't clr' >>$CONFIG_STATUS
9992 echo ': clr' >>$CONFIG_STATUS
9993 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9994 echo 'CEOF
9995 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9996 rm -f $tmp/in
9997 mv $tmp/out $tmp/in
9998' >>$CONFIG_STATUS
9999 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10000 rm -f conftest.defines
10001 mv conftest.tail conftest.defines
10002done
10003rm -f conftest.defines
79608eef 10004echo ' fi # grep' >>$CONFIG_STATUS
5e9f2524
VS
10005echo >>$CONFIG_STATUS
10006
10007# Break up conftest.undefs because some shells have a limit on the size
10008# of here documents, and old seds have small limits too (100 cmds).
10009echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10010rm -f conftest.tail
10011while grep . conftest.undefs >/dev/null
10012do
10013 # Write a limited-size here document to $tmp/undefs.sed.
10014 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10015 # Speed up: don't consider the non `#undef'
10016 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10017 # Work around the forget-to-reset-the-flag bug.
10018 echo 't clr' >>$CONFIG_STATUS
10019 echo ': clr' >>$CONFIG_STATUS
10020 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10021 echo 'CEOF
10022 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10023 rm -f $tmp/in
10024 mv $tmp/out $tmp/in
10025' >>$CONFIG_STATUS
10026 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10027 rm -f conftest.undefs
10028 mv conftest.tail conftest.undefs
10029done
10030rm -f conftest.undefs
10031
10032cat >>$CONFIG_STATUS <<\_ACEOF
10033 # Let's still pretend it is `configure' which instantiates (i.e., don't
10034 # use $as_me), people would be surprised to read:
10035 # /* config.h. Generated by config.status. */
10036 if test x"$ac_file" = x-; then
10037 echo "/* Generated by configure. */" >$tmp/config.h
10038 else
10039 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10040 fi
10041 cat $tmp/in >>$tmp/config.h
10042 rm -f $tmp/in
10043 if test x"$ac_file" != x-; then
79608eef 10044 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5e9f2524
VS
10045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10046echo "$as_me: $ac_file is unchanged" >&6;}
10047 else
10048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10050 X"$ac_file" : 'X\(//\)[^/]' \| \
10051 X"$ac_file" : 'X\(//\)$' \| \
10052 X"$ac_file" : 'X\(/\)' \| \
10053 . : '\(.\)' 2>/dev/null ||
10054echo X"$ac_file" |
10055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10057 /^X\(\/\/\)$/{ s//\1/; q; }
10058 /^X\(\/\).*/{ s//\1/; q; }
10059 s/.*/./; q'`
79608eef
VS
10060 { if $as_mkdir_p; then
10061 mkdir -p "$ac_dir"
10062 else
10063 as_dir="$ac_dir"
10064 as_dirs=
10065 while test ! -d "$as_dir"; do
10066 as_dirs="$as_dir $as_dirs"
10067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10069 X"$as_dir" : 'X\(//\)[^/]' \| \
10070 X"$as_dir" : 'X\(//\)$' \| \
10071 X"$as_dir" : 'X\(/\)' \| \
10072 . : '\(.\)' 2>/dev/null ||
10073echo X"$as_dir" |
10074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10076 /^X\(\/\/\)$/{ s//\1/; q; }
10077 /^X\(\/\).*/{ s//\1/; q; }
10078 s/.*/./; q'`
10079 done
10080 test ! -n "$as_dirs" || mkdir $as_dirs
10081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10082echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10083 { (exit 1); exit 1; }; }; }
5e9f2524
VS
10084
10085 rm -f $ac_file
10086 mv $tmp/config.h $ac_file
10087 fi
10088 else
10089 cat $tmp/config.h
10090 rm -f $tmp/config.h
10091 fi
10092done
10093_ACEOF
10094
10095cat >>$CONFIG_STATUS <<\_ACEOF
10096
10097{ (exit 0); exit 0; }
10098_ACEOF
10099chmod +x $CONFIG_STATUS
10100ac_clean_files=$ac_clean_files_save
10101
10102
10103# configure is writing to config.log, and then calls config.status.
10104# config.status does its own redirection, appending to config.log.
10105# Unfortunately, on DOS this fails, as config.log is still kept open
10106# by configure, so config.status won't be able to write to it; its
10107# output is simply discarded. So we exec the FD to /dev/null,
10108# effectively closing config.log, so it can be properly (re)opened and
10109# appended to by config.status. When coming back to configure, we
10110# need to make the FD available again.
10111if test "$no_create" != yes; then
10112 ac_cs_success=:
79608eef
VS
10113 ac_config_status_args=
10114 test "$silent" = yes &&
10115 ac_config_status_args="$ac_config_status_args --quiet"
5e9f2524 10116 exec 5>/dev/null
79608eef 10117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5e9f2524
VS
10118 exec 5>>config.log
10119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10120 # would make configure fail if this is the last instruction.
10121 $ac_cs_success || { (exit 1); exit 1; }
10122fi
10123
10124
10125abs_srcdir="`cd $srcdir && pwd`"
10126abs_builddir="`pwd`"
10127if test "$abs_srcdir" != "$abs_builddir"; then
1772d112 10128 ${MAKE:-make} mkdir-init
5e9f2524 10129fi