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