]> git.saurik.com Git - wxWidgets.git/blob - src/expat/configure
multilib mode compilation fix
[wxWidgets.git] / src / expat / configure
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.
14 if 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
21 fi
22
23
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
26
27 case X$ECHO in
28 X*--fallback-echo)
29 # Remove one level of quotation (which was required for Make).
30 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31 ;;
32 esac
33
34 echo=${ECHO-echo}
35 if test "X$1" = X--no-reexec; then
36 # Discard the --no-reexec flag, and continue.
37 shift
38 elif test "X$1" = X--fallback-echo; then
39 # Avoid inline document here, it may be left over
40 :
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42 # Yippee, $echo works!
43 :
44 else
45 # Restart under the correct shell.
46 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 fi
48
49 if test "X$1" = X--fallback-echo; then
50 # used as fallback echo
51 shift
52 cat <<EOF
53
54 EOF
55 exit 0
56 fi
57
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
59 # if CDPATH is set.
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62 if test -z "$ECHO"; then
63 if 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
74 fi
75
76 if 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 :
80 else
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
159 fi
160 fi
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.
164 ECHO=$echo
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167 fi
168
169
170
171 if expr a : '\(a\)' >/dev/null 2>&1; then
172 as_expr=expr
173 else
174 as_expr=false
175 fi
176
177
178 ## --------------------- ##
179 ## M4sh Initialization. ##
180 ## --------------------- ##
181
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 emulate sh
185 NULLCMD=:
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 set -o posix
188 fi
189
190 # NLS nuisances.
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193 as_unset=unset
194 else
195 as_unset=false
196 fi
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.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227 X"$0" : 'X\(//\)$' \| \
228 X"$0" : 'X\(/\)$' \| \
229 . : '\(.\)' 2>/dev/null ||
230 echo 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.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244 # The user is always right.
245 if 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
255 fi
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
268 for as_dir in $PATH
269 do
270 IFS=$as_save_IFS
271 test -z "$as_dir" && as_dir=.
272 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273 done
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
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 do
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
308 done
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
343 case `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= ;;
348 esac
349
350 if expr a : '\(a\)' >/dev/null 2>&1; then
351 as_expr=expr
352 else
353 as_expr=false
354 fi
355
356 rm -f conf$$ conf$$.exe conf$$.file
357 echo >conf$$.file
358 if 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
367 elif ln conf$$.file conf$$ 2>/dev/null; then
368 as_ln_s=ln
369 else
370 as_ln_s='cp -p'
371 fi
372 rm -f conf$$ conf$$.exe conf$$.file
373
374 as_executable_p="test -f"
375
376 # Sed expression to map a string onto a valid CPP name.
377 as_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.
380 as_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.
385 as_nl='
386 '
387 IFS=" $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.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 cross_compiling=no
405 subdirs=
406 MFLAGS=
407 MAKEFLAGS=
408 SHELL=${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.
416 PACKAGE_NAME='expat'
417 PACKAGE_TARNAME='expat'
418 PACKAGE_VERSION='1.95.6'
419 PACKAGE_STRING='expat 1.95.6'
420 PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org'
421
422 ac_unique_file="Makefile.in"
423 # Factoring default headers for most tests.
424 ac_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.
462 ac_init_help=
463 ac_init_version=false
464 # The variables have the same names as the options, with
465 # dashes changed to underlines.
466 cache_file=/dev/null
467 exec_prefix=NONE
468 no_create=
469 no_recursion=
470 prefix=NONE
471 program_prefix=NONE
472 program_suffix=NONE
473 program_transform_name=s,x,x,
474 silent=
475 site=
476 srcdir=
477 verbose=
478 x_includes=NONE
479 x_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.
486 bindir='${exec_prefix}/bin'
487 sbindir='${exec_prefix}/sbin'
488 libexecdir='${exec_prefix}/libexec'
489 datadir='${prefix}/share'
490 sysconfdir='${prefix}/etc'
491 sharedstatedir='${prefix}/com'
492 localstatedir='${prefix}/var'
493 libdir='${exec_prefix}/lib'
494 includedir='${prefix}/include'
495 oldincludedir='/usr/include'
496 infodir='${prefix}/info'
497 mandir='${prefix}/man'
498
499 ac_prev=
500 for ac_option
501 do
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
773 Try \`$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
796 done
797
798 if 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; }; }
802 fi
803
804 # Be sure to have absolute paths.
805 for ac_var in exec_prefix prefix
806 do
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
813 done
814
815 # Be sure to have absolute paths.
816 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817 localstatedir libdir includedir oldincludedir infodir mandir
818 do
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
825 done
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.
830 build=$build_alias
831 host=$host_alias
832 target=$target_alias
833
834 # FIXME: To remove some day.
835 if 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
843 fi
844
845 ac_tool_prefix=
846 test -n "$host_alias" && ac_tool_prefix=$host_alias-
847
848 test "$silent" = yes && exec 6>/dev/null
849
850
851 # Find the source files, if location was not specified.
852 if 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 ||
861 echo 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
871 else
872 ac_srcdir_defaulted=no
873 fi
874 if 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
882 fi
883 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884 ac_env_build_alias_set=${build_alias+set}
885 ac_env_build_alias_value=$build_alias
886 ac_cv_env_build_alias_set=${build_alias+set}
887 ac_cv_env_build_alias_value=$build_alias
888 ac_env_host_alias_set=${host_alias+set}
889 ac_env_host_alias_value=$host_alias
890 ac_cv_env_host_alias_set=${host_alias+set}
891 ac_cv_env_host_alias_value=$host_alias
892 ac_env_target_alias_set=${target_alias+set}
893 ac_env_target_alias_value=$target_alias
894 ac_cv_env_target_alias_set=${target_alias+set}
895 ac_cv_env_target_alias_value=$target_alias
896 ac_env_CC_set=${CC+set}
897 ac_env_CC_value=$CC
898 ac_cv_env_CC_set=${CC+set}
899 ac_cv_env_CC_value=$CC
900 ac_env_CFLAGS_set=${CFLAGS+set}
901 ac_env_CFLAGS_value=$CFLAGS
902 ac_cv_env_CFLAGS_set=${CFLAGS+set}
903 ac_cv_env_CFLAGS_value=$CFLAGS
904 ac_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_env_LDFLAGS_value=$LDFLAGS
906 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907 ac_cv_env_LDFLAGS_value=$LDFLAGS
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CPP_set=${CPP+set}
913 ac_env_CPP_value=$CPP
914 ac_cv_env_CPP_set=${CPP+set}
915 ac_cv_env_CPP_value=$CPP
916
917 #
918 # Report the --help message.
919 #
920 if 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
926 Usage: $0 [OPTION]... [VAR=VALUE]...
927
928 To assign environment variables (e.g., CC, CFLAGS...), specify them as
929 VAR=VALUE. See below for descriptions of some of the useful variables.
930
931 Defaults for the options are specified in brackets.
932
933 Configuration:
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
947 Installation 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
953 By default, \`make install' will install all the files in
954 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
955 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
956 for instance \`--prefix=\$HOME'.
957
958 For better control, use the options below.
959
960 Fine 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
977 System 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
981 fi
982
983 if 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
989 Optional 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
997 Optional 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
1003 Some 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
1012 Use these variables to override the choices made by `configure' or to help
1013 it to find libraries and programs with nonstandard names/locations.
1014
1015 Report bugs to <expat-bugs@mail.libexpat.org>.
1016 _ACEOF
1017 fi
1018
1019 if 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
1026 if 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'`
1030 else
1031 ac_dir_suffix= ac_top_builddir=
1032 fi
1033
1034 case $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 ;;
1048 esac
1049 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1050 # absolute.
1051 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1052 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1053 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1054 ac_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
1073 fi
1074
1075 test -n "$ac_init_help" && exit 0
1076 if $ac_init_version; then
1077 cat <<\_ACEOF
1078 expat configure 1.95.6
1079 generated by GNU Autoconf 2.53
1080
1081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1082 Free Software Foundation, Inc.
1083 This configure script is free software; the Free Software Foundation
1084 gives unlimited permission to copy, distribute and modify it.
1085 _ACEOF
1086 exit 0
1087 fi
1088 exec 5>config.log
1089 cat >&5 <<_ACEOF
1090 This file contains any messages produced by compilers while
1091 running configure, to aid debugging if configure makes a mistake.
1092
1093 It was created by expat $as_me 1.95.6, which was
1094 generated by GNU Autoconf 2.53. Invocation command line was
1095
1096 $ $0 $@
1097
1098 _ACEOF
1099 {
1100 cat <<_ASUNAME
1101 ## --------- ##
1102 ## Platform. ##
1103 ## --------- ##
1104
1105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1109 uname -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`
1117 hostinfo = `(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
1124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1125 for as_dir in $PATH
1126 do
1127 IFS=$as_save_IFS
1128 test -z "$as_dir" && as_dir=.
1129 echo "PATH: $as_dir"
1130 done
1131
1132 } >&5
1133
1134 cat >&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.
1147 ac_configure_args=
1148 ac_sep=
1149 for ac_arg
1150 do
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.
1166 done
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.
1173 trap '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
1217 for ac_signal in 1 2 13 15; do
1218 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1219 done
1220 ac_signal=0
1221
1222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1223 rm -rf conftest* confdefs.h
1224 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1225 echo >confdefs.h
1226
1227 # Predefined preprocessor variables.
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_NAME "$PACKAGE_NAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_STRING "$PACKAGE_STRING"
1246 _ACEOF
1247
1248
1249 cat >>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.
1256 if 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
1262 fi
1263 for 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
1266 echo "$as_me: loading site script $ac_site_file" >&6;}
1267 sed 's/^/| /' "$ac_site_file" >&5
1268 . "$ac_site_file"
1269 fi
1270 done
1271
1272 if 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
1277 echo "$as_me: loading cache $cache_file" >&6;}
1278 case $cache_file in
1279 [\\/]* | ?:[\\/]* ) . $cache_file;;
1280 *) . ./$cache_file;;
1281 esac
1282 fi
1283 else
1284 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1285 echo "$as_me: creating cache $cache_file" >&6;}
1286 >$cache_file
1287 fi
1288
1289 # Check that the precious variables saved in the cache have kept the same
1290 # value.
1291 ac_cache_corrupted=false
1292 for 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
1301 echo "$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
1305 echo "$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
1311 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1312 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1313 echo "$as_me: former value: $ac_old_val" >&2;}
1314 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1315 echo "$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
1331 done
1332 if $ac_cache_corrupted; then
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$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
1336 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339
1340 ac_ext=c
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_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
1374 ac_aux_dir=
1375 for 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
1389 done
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1393 { (exit 1); exit 1; }; }
1394 fi
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1398
1399
1400
1401
1402 LIBCURRENT=4
1403 LIBREVISION=0
1404 LIBAGE=4
1405
1406 ac_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.
1584 if test "${enable_shared+set}" = set; then
1585 enableval="$enable_shared"
1586 p=${PACKAGE-default}
1587 case $enableval in
1588 yes) enable_shared=yes ;;
1589 no) 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 ;;
1601 esac
1602 else
1603 enable_shared=yes
1604 fi;
1605 # Check whether --enable-static or --disable-static was given.
1606 if test "${enable_static+set}" = set; then
1607 enableval="$enable_static"
1608 p=${PACKAGE-default}
1609 case $enableval in
1610 yes) enable_static=yes ;;
1611 no) 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 ;;
1623 esac
1624 else
1625 enable_static=yes
1626 fi;
1627 # Check whether --enable-fast-install or --disable-fast-install was given.
1628 if test "${enable_fast_install+set}" = set; then
1629 enableval="$enable_fast_install"
1630 p=${PACKAGE-default}
1631 case $enableval in
1632 yes) enable_fast_install=yes ;;
1633 no) 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 ;;
1645 esac
1646 else
1647 enable_fast_install=yes
1648 fi;
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
1652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1653 { (exit 1); exit 1; }; }
1654
1655 echo "$as_me:$LINENO: checking build system type" >&5
1656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1657 if test "${ac_cv_build+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 ac_cv_build_alias=$build_alias
1661 test -z "$ac_cv_build_alias" &&
1662 ac_cv_build_alias=`$ac_config_guess`
1663 test -z "$ac_cv_build_alias" &&
1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1666 { (exit 1); exit 1; }; }
1667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1674 echo "${ECHO_T}$ac_cv_build" >&6
1675 build=$ac_cv_build
1676 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681 echo "$as_me:$LINENO: checking host system type" >&5
1682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1683 if test "${ac_cv_host+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 ac_cv_host_alias=$host_alias
1687 test -z "$ac_cv_host_alias" &&
1688 ac_cv_host_alias=$ac_cv_build_alias
1689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1693
1694 fi
1695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1696 echo "${ECHO_T}$ac_cv_host" >&6
1697 host=$ac_cv_host
1698 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701
1702
1703 ac_ext=c
1704 ac_cpp='$CPP $CPPFLAGS'
1705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708 if 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.
1710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
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
1730 done
1731 done
1732
1733 fi
1734 fi
1735 CC=$ac_cv_prog_CC
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744 fi
1745 if 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.
1748 set dummy gcc; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
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
1768 done
1769 done
1770
1771 fi
1772 fi
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782 CC=$ac_ct_CC
1783 else
1784 CC="$ac_cv_prog_CC"
1785 fi
1786
1787 if 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.
1790 set dummy ${ac_tool_prefix}cc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
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
1810 done
1811 done
1812
1813 fi
1814 fi
1815 CC=$ac_cv_prog_CC
1816 if test -n "$CC"; then
1817 echo "$as_me:$LINENO: result: $CC" >&5
1818 echo "${ECHO_T}$CC" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 fi
1823
1824 fi
1825 if 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.
1828 set dummy cc; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
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
1848 done
1849 done
1850
1851 fi
1852 fi
1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856 echo "${ECHO_T}$ac_ct_CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860 fi
1861
1862 CC=$ac_ct_CC
1863 else
1864 CC="$ac_cv_prog_CC"
1865 fi
1866
1867 fi
1868 if test -z "$CC"; then
1869 # Extract the first word of "cc", so it can be a program name with args.
1870 set dummy cc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 else
1879 ac_prog_rejected=no
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
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
1895 done
1896 done
1897
1898 if 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
1911 fi
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 fi
1924 if 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.
1929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
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
1949 done
1950 done
1951
1952 fi
1953 fi
1954 CC=$ac_cv_prog_CC
1955 if test -n "$CC"; then
1956 echo "$as_me:$LINENO: result: $CC" >&5
1957 echo "${ECHO_T}$CC" >&6
1958 else
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963 test -n "$CC" && break
1964 done
1965 fi
1966 if test -z "$CC"; then
1967 ac_ct_CC=$CC
1968 for ac_prog in cl
1969 do
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy $ac_prog; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$ac_ct_CC"; then
1978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
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
1991 done
1992 done
1993
1994 fi
1995 fi
1996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1997 if test -n "$ac_ct_CC"; then
1998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1999 echo "${ECHO_T}$ac_ct_CC" >&6
2000 else
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2003 fi
2004
2005 test -n "$ac_ct_CC" && break
2006 done
2007
2008 CC=$ac_ct_CC
2009 fi
2010
2011 fi
2012
2013
2014 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2015 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2016 { (exit 1); exit 1; }; }
2017
2018 # Provide some information about the compiler.
2019 echo "$as_me:$LINENO:" \
2020 "checking for C compiler version" >&5
2021 ac_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
2038 cat >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
2048 int
2049 main ()
2050 {
2051
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 ac_clean_files_save=$ac_clean_files
2057 ac_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.
2061 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2062 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2063 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2064 if { (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.
2075 ac_cv_exeext=
2076 for 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
2090 done
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2095 echo "$as_me: error: C compiler cannot create executables" >&2;}
2096 { (exit 77); exit 77; }; }
2097 fi
2098
2099 ac_exeext=$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_file" >&5
2101 echo "${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.
2105 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2106 echo $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.
2109 if 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.
2122 If you meant to cross compile, use \`--host'." >&5
2123 echo "$as_me: error: cannot run C compiled programs.
2124 If you meant to cross compile, use \`--host'." >&2;}
2125 { (exit 1); exit 1; }; }
2126 fi
2127 fi
2128 fi
2129 echo "$as_me:$LINENO: result: yes" >&5
2130 echo "${ECHO_T}yes" >&6
2131
2132 rm -f a.out a.exe conftest$ac_cv_exeext
2133 ac_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.
2136 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2137 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2138 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2139 echo "${ECHO_T}$cross_compiling" >&6
2140
2141 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2142 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2143 if { (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'.
2152 for 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
2160 done
2161 else
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2164 { (exit 1); exit 1; }; }
2165 fi
2166
2167 rm -f conftest$ac_cv_exeext
2168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2169 echo "${ECHO_T}$ac_cv_exeext" >&6
2170
2171 rm -f conftest.$ac_ext
2172 EXEEXT=$ac_cv_exeext
2173 ac_exeext=$EXEEXT
2174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2176 if test "${ac_cv_objext+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
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
2189 int
2190 main ()
2191 {
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.o conftest.obj
2198 if { (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
2209 done
2210 else
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2214 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2215 { (exit 1); exit 1; }; }
2216 fi
2217
2218 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219 fi
2220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2221 echo "${ECHO_T}$ac_cv_objext" >&6
2222 OBJEXT=$ac_cv_objext
2223 ac_objext=$OBJEXT
2224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
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
2239 int
2240 main ()
2241 {
2242 #ifndef __GNUC__
2243 choke me
2244 #endif
2245
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (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
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 ac_compiler_gnu=no
2267 fi
2268 rm -f conftest.$ac_objext conftest.$ac_ext
2269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270
2271 fi
2272 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274 GCC=`test $ac_compiler_gnu = yes && echo yes`
2275 ac_test_CFLAGS=${CFLAGS+set}
2276 ac_save_CFLAGS=$CFLAGS
2277 CFLAGS="-g"
2278 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280 if test "${ac_cv_prog_cc_g+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
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
2293 int
2294 main ()
2295 {
2296
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (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
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 ac_cv_prog_cc_g=no
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2322 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2323 if test "$ac_test_CFLAGS" = set; then
2324 CFLAGS=$ac_save_CFLAGS
2325 elif 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
2331 else
2332 if test "$GCC" = yes; then
2333 CFLAGS="-O2"
2334 else
2335 CFLAGS=
2336 fi
2337 fi
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.
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #ifndef __cplusplus
2344 choke me
2345 #endif
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (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);'
2367 do
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
2379 int
2380 main ()
2381 {
2382 exit (42);
2383 ;
2384 return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (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 :
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 continue
2404 fi
2405 rm -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
2416 int
2417 main ()
2418 {
2419 exit (42);
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (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
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 fi
2441 rm -f conftest.$ac_objext conftest.$ac_ext
2442 done
2443 rm -f conftest*
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2448 fi
2449
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 fi
2454 rm -f conftest.$ac_objext conftest.$ac_ext
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460
2461 # Find the correct PATH separator. Usually this is `:', but
2462 # DJGPP uses `;' like DOS.
2463 if 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
2470 fi
2471
2472
2473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2474 if test "${with_gnu_ld+set}" = set; then
2475 withval="$with_gnu_ld"
2476 test "$withval" = no || with_gnu_ld=yes
2477 else
2478 with_gnu_ld=no
2479 fi;
2480 ac_prog=ld
2481 if 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
2484 echo $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
2512 elif test "$with_gnu_ld" = yes; then
2513 echo "$as_me:$LINENO: checking for GNU ld" >&5
2514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2515 else
2516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2518 fi
2519 if test "${lt_cv_path_LD+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
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"
2539 else
2540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2541 fi
2542 fi
2543
2544 LD="$lt_cv_path_LD"
2545 if test -n "$LD"; then
2546 echo "$as_me:$LINENO: result: $LD" >&5
2547 echo "${ECHO_T}$LD" >&6
2548 else
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2551 fi
2552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2554 { (exit 1); exit 1; }; }
2555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2562 lt_cv_prog_gnu_ld=yes
2563 else
2564 lt_cv_prog_gnu_ld=no
2565 fi
2566 fi
2567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2569 with_gnu_ld=$lt_cv_prog_gnu_ld
2570
2571
2572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2574 if test "${lt_cv_ld_reload_flag+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577 lt_cv_ld_reload_flag='-r'
2578 fi
2579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2581 reload_flag=$lt_cv_ld_reload_flag
2582 test -n "$reload_flag" && reload_flag=" $reload_flag"
2583
2584 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2586 if test "${lt_cv_path_NM+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$NM"; then
2590 # Let the user override the test.
2591 lt_cv_path_NM="$NM"
2592 else
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
2616 fi
2617 fi
2618
2619 NM="$lt_cv_path_NM"
2620 echo "$as_me:$LINENO: result: $NM" >&5
2621 echo "${ECHO_T}$NM" >&6
2622
2623 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2624 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2625 LN_S=$as_ln_s
2626 if test "$LN_S" = "ln -s"; then
2627 echo "$as_me:$LINENO: result: yes" >&5
2628 echo "${ECHO_T}yes" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2631 echo "${ECHO_T}no, using $LN_S" >&6
2632 fi
2633
2634 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2635 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2636 if test "${lt_cv_deplibs_check_method+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 lt_cv_file_magic_cmd='$MAGIC_CMD'
2640 lt_cv_file_magic_test_file=
2641 lt_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
2653 case $host_os in
2654 aix4* | aix5*)
2655 lt_cv_deplibs_check_method=pass_all
2656 ;;
2657
2658 beos*)
2659 lt_cv_deplibs_check_method=pass_all
2660 ;;
2661
2662 bsdi4*)
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
2668 cygwin* | 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
2673 darwin* | 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
2686 freebsd*)
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
2702 gnu*)
2703 lt_cv_deplibs_check_method=pass_all
2704 ;;
2705
2706 hpux10.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
2712 irix5* | 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.
2734 linux-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
2745 netbsd*)
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
2753 newos6*)
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
2759 openbsd*)
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
2769 osf3* | 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
2776 sco3.2v5*)
2777 lt_cv_deplibs_check_method=pass_all
2778 ;;
2779
2780 solaris*)
2781 lt_cv_deplibs_check_method=pass_all
2782 lt_cv_file_magic_test_file=/lib/libc.so
2783 ;;
2784
2785 sysv5uw[78]* | sysv4*uw2*)
2786 lt_cv_deplibs_check_method=pass_all
2787 ;;
2788
2789 sysv4 | 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 ;;
2809 esac
2810
2811 fi
2812 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2813 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2814 file_magic_cmd=$lt_cv_file_magic_cmd
2815 deplibs_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.
2825 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2826 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2827 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
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.
2835 symcode='[BCDEGRST]'
2836
2837 # Regexp to match symbols that can be accessed directly from C.
2838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2839
2840 # Transform the above into a raw symbol and a C symbol.
2841 symxfrm='\1 \2\3 \3'
2842
2843 # Transform an extracted symbol line into a proper C declaration
2844 lt_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
2847 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'"
2848
2849 # Define system-specific variables.
2850 case $host_os in
2851 aix*)
2852 symcode='[BCDT]'
2853 ;;
2854 cygwin* | mingw* | pw32*)
2855 symcode='[ABCDGISTW]'
2856 ;;
2857 hpux*) # 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 ;;
2861 irix*)
2862 symcode='[BCDEGRST]'
2863 ;;
2864 solaris* | sysv5*)
2865 symcode='[BDT]'
2866 ;;
2867 sysv4)
2868 symcode='[DFNSTU]'
2869 ;;
2870 esac
2871
2872 # Handle CRLF in mingw tool chain
2873 opt_cr=
2874 case $host_os in
2875 mingw*)
2876 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2877 ;;
2878 esac
2879
2880 # If we're using GNU nm, then use its standard symbol codes.
2881 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2882 symcode='[ABCDGISTW]'
2883 fi
2884
2885 # Try without a prefix undercore, then with it.
2886 for ac_symprfx in "" "_"; do
2887
2888 # Write the raw and C identifiers.
2889 lt_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
2896 extern "C" {
2897 #endif
2898 char nm_test_var;
2899 void nm_test_func(){}
2900 #ifdef __cplusplus
2901 }
2902 #endif
2903 int main(){nm_test_var='a';nm_test_func();return(0);}
2904 EOF
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
2930 extern "C" {
2931 #endif
2932
2933 EOF
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. */
2946 const struct {
2947 const char *name;
2948 lt_ptr address;
2949 }
2950 lt_preloaded_symbols[] =
2951 {
2952 EOF
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
2961 EOF
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
2998 done
2999
3000 fi
3001
3002 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3004 global_symbol_to_cdecl=
3005 global_symbol_to_c_name_address=
3006 else
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"
3009 fi
3010 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3011 then
3012 echo "$as_me:$LINENO: result: failed" >&5
3013 echo "${ECHO_T}failed" >&6
3014 else
3015 echo "$as_me:$LINENO: result: ok" >&5
3016 echo "${ECHO_T}ok" >&6
3017 fi
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3025 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3026 # On Suns, sometimes $CPP names a directory.
3027 if test -n "$CPP" && test -d "$CPP"; then
3028 CPP=
3029 fi
3030 if test -z "$CPP"; then
3031 if test "${ac_cv_prog_CPP+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
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
3038 for ac_c_preproc_warn_flag in '' yes
3039 do
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
3050 if { (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
3063 else
3064 ac_cpp_err=yes
3065 fi
3066 if test -z "$ac_cpp_err"; then
3067 :
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3071 # Broken: fails on valid input.
3072 continue
3073 fi
3074 rm -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
3083 if { (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
3096 else
3097 ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3101 continue
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115 break
3116 fi
3117
3118 done
3119 ac_cv_prog_CPP=$CPP
3120
3121 fi
3122 CPP=$ac_cv_prog_CPP
3123 else
3124 ac_cv_prog_CPP=$CPP
3125 fi
3126 echo "$as_me:$LINENO: result: $CPP" >&5
3127 echo "${ECHO_T}$CPP" >&6
3128 ac_preproc_ok=false
3129 for ac_c_preproc_warn_flag in '' yes
3130 do
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
3141 if { (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
3154 else
3155 ac_cpp_err=yes
3156 fi
3157 if test -z "$ac_cpp_err"; then
3158 :
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3163 continue
3164 fi
3165 rm -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
3174 if { (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
3187 else
3188 ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3192 continue
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 # Passes both tests.
3197 ac_preproc_ok=:
3198 break
3199 fi
3200 rm -f conftest.err conftest.$ac_ext
3201
3202 done
3203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3204 rm -f conftest.err conftest.$ac_ext
3205 if $ac_preproc_ok; then
3206 :
3207 else
3208 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3209 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3210 { (exit 1); exit 1; }; }
3211 fi
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3221 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3222 if test "${ac_cv_header_stdc+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
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
3234 if { (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
3247 else
3248 ac_cpp_err=yes
3249 fi
3250 if test -z "$ac_cpp_err"; then
3251 ac_cv_header_stdc=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 ac_cv_header_stdc=no
3256 fi
3257 rm -f conftest.err conftest.$ac_ext
3258
3259 if 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
3267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3268 egrep "memchr" >/dev/null 2>&1; then
3269 :
3270 else
3271 ac_cv_header_stdc=no
3272 fi
3273 rm -f conftest*
3274
3275 fi
3276
3277 if 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
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 egrep "free" >/dev/null 2>&1; then
3287 :
3288 else
3289 ac_cv_header_stdc=no
3290 fi
3291 rm -f conftest*
3292
3293 fi
3294
3295 if 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 :
3299 else
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)))
3315 int
3316 main ()
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
3326 rm -f conftest$ac_exeext
3327 if { (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 :
3338 else
3339 echo "$as_me: program exited with status $ac_status" >&5
3340 echo "$as_me: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3342 ( exit $ac_status )
3343 ac_cv_header_stdc=no
3344 fi
3345 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3346 fi
3347 fi
3348 fi
3349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3351 if test $ac_cv_header_stdc = yes; then
3352
3353 cat >>confdefs.h <<\_ACEOF
3354 #define STDC_HEADERS 1
3355 _ACEOF
3356
3357 fi
3358
3359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3370 inttypes.h stdint.h unistd.h
3371 do
3372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 echo "$as_me:$LINENO: checking for $ac_header" >&5
3374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
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
3385 rm -f conftest.$ac_objext
3386 if { (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"
3398 else
3399 echo "$as_me: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3401 eval "$as_ac_Header=no"
3402 fi
3403 rm -f conftest.$ac_objext conftest.$ac_ext
3404 fi
3405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3407 if 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
3412 fi
3413
3414 done
3415
3416
3417
3418 for ac_header in dlfcn.h
3419 do
3420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3422 echo "$as_me:$LINENO: checking for $ac_header" >&5
3423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 fi
3427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3429 else
3430 # Is the header compilable?
3431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line $LINENO "configure"
3435 #include "confdefs.h"
3436 $ac_includes_default
3437 #include <$ac_header>
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (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
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 ac_header_compiler=no
3456 fi
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3459 echo "${ECHO_T}$ac_header_compiler" >&6
3460
3461 # Is the header present?
3462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3464 cat >conftest.$ac_ext <<_ACEOF
3465 #line $LINENO "configure"
3466 #include "confdefs.h"
3467 #include <$ac_header>
3468 _ACEOF
3469 if { (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
3482 else
3483 ac_cpp_err=yes
3484 fi
3485 if test -z "$ac_cpp_err"; then
3486 ac_header_preproc=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3490 ac_header_preproc=no
3491 fi
3492 rm -f conftest.err conftest.$ac_ext
3493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3494 echo "${ECHO_T}$ac_header_preproc" >&6
3495
3496 # So? What about this header?
3497 case $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
3500 echo "$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
3502 echo "$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
3505 echo "$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
3507 echo "$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
3509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3510 esac
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 eval "$as_ac_Header=$ac_header_preproc"
3517 fi
3518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520
3521 fi
3522 if 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
3527 fi
3528
3529 done
3530
3531
3532
3533
3534
3535 # Only perform the check for file, if the check method requires it
3536 case $deplibs_check_method in
3537 file_magic*)
3538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3539 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3540 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
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
3579 EOF
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 ;;
3589 esac
3590 fi
3591
3592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3593 if test -n "$MAGIC_CMD"; then
3594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3595 echo "${ECHO_T}$MAGIC_CMD" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 if 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
3604 echo $ECHO_N "checking for file... $ECHO_C" >&6
3605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
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
3643 EOF
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 ;;
3653 esac
3654 fi
3655
3656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3657 if test -n "$MAGIC_CMD"; then
3658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3659 echo "${ECHO_T}$MAGIC_CMD" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664
3665 else
3666 MAGIC_CMD=:
3667 fi
3668 fi
3669
3670 fi
3671 ;;
3672 esac
3673
3674 if 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.
3676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3677 echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_prog_RANLIB+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 if test -n "$RANLIB"; then
3683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
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
3696 done
3697 done
3698
3699 fi
3700 fi
3701 RANLIB=$ac_cv_prog_RANLIB
3702 if test -n "$RANLIB"; then
3703 echo "$as_me:$LINENO: result: $RANLIB" >&5
3704 echo "${ECHO_T}$RANLIB" >&6
3705 else
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 fi
3711 if 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.
3714 set dummy ranlib; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 if test -n "$ac_ct_RANLIB"; then
3721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
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
3734 done
3735 done
3736
3737 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3738 fi
3739 fi
3740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3741 if test -n "$ac_ct_RANLIB"; then
3742 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3743 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 RANLIB=$ac_ct_RANLIB
3750 else
3751 RANLIB="$ac_cv_prog_RANLIB"
3752 fi
3753
3754 if 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.
3756 set dummy ${ac_tool_prefix}strip; ac_word=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_STRIP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
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
3776 done
3777 done
3778
3779 fi
3780 fi
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 echo "$as_me:$LINENO: result: $STRIP" >&5
3784 echo "${ECHO_T}$STRIP" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790 fi
3791 if 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.
3794 set dummy strip; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
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
3814 done
3815 done
3816
3817 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3818 fi
3819 fi
3820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821 if test -n "$ac_ct_STRIP"; then
3822 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3823 echo "${ECHO_T}$ac_ct_STRIP" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 STRIP=$ac_ct_STRIP
3830 else
3831 STRIP="$ac_cv_prog_STRIP"
3832 fi
3833
3834
3835 enable_dlopen=no
3836 enable_win32_dll=no
3837
3838 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3839 if test "${enable_libtool_lock+set}" = set; then
3840 enableval="$enable_libtool_lock"
3841
3842 fi;
3843 test "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.
3847 case $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
3876 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3877 if test "${lt_cv_cc_needs_belf+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_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
3898 int
3899 main ()
3900 {
3901
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext conftest$ac_exeext
3907 if { (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
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3922 lt_cv_cc_needs_belf=no
3923 fi
3924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931 fi
3932 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3933 echo "${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
3941 esac
3942
3943 # Sed substitution that helps us do robust quoting. It backslashifies
3944 # metacharacters that are still active within double-quoted strings.
3945 Xsed='sed -e s/^X//'
3946 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3947
3948 # Same as above, but do not quote variable references.
3949 double_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.
3953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3954
3955 # Constants:
3956 rm="rm -f"
3957
3958 # Global variables:
3959 default_ofile=libtool
3960 can_build_shared=yes
3961
3962 # All known linkers require a `.a' archive for static linking (except M$VC,
3963 # which needs '.lib').
3964 libext=a
3965 ltmain="$ac_aux_dir/ltmain.sh"
3966 ofile="$default_ofile"
3967 with_gnu_ld="$lt_cv_prog_gnu_ld"
3968 need_locks="$enable_libtool_lock"
3969
3970 old_CC="$CC"
3971 old_CFLAGS="$CFLAGS"
3972
3973 # Set sane defaults for various variables
3974 test -z "$AR" && AR=ar
3975 test -z "$AR_FLAGS" && AR_FLAGS=cru
3976 test -z "$AS" && AS=as
3977 test -z "$CC" && CC=cc
3978 test -z "$DLLTOOL" && DLLTOOL=dlltool
3979 test -z "$LD" && LD=ld
3980 test -z "$LN_S" && LN_S="ln -s"
3981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3982 test -z "$NM" && NM=nm
3983 test -z "$OBJDUMP" && OBJDUMP=objdump
3984 test -z "$RANLIB" && RANLIB=:
3985 test -z "$STRIP" && STRIP=:
3986 test -z "$ac_objext" && ac_objext=o
3987
3988 if test x"$host" != x"$build"; then
3989 ac_tool_prefix=${host_alias}-
3990 else
3991 ac_tool_prefix=
3992 fi
3993
3994 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3995 case $host_os in
3996 linux-gnu*) ;;
3997 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3998 esac
3999
4000 case $host_os in
4001 aix3*)
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 ;;
4010 esac
4011
4012 # Determine commands to create old-style static archives.
4013 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4014 old_postinstall_cmds='chmod 644 $oldlib'
4015 old_postuninstall_cmds=
4016
4017 if 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"
4027 fi
4028
4029 # Allow CC to be a program name with arguments.
4030 set dummy $CC
4031 compiler="$2"
4032
4033 ## FIXME: this should be a separate macro
4034 ##
4035 echo "$as_me:$LINENO: checking for objdir" >&5
4036 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4037 rm -f .libs 2>/dev/null
4038 mkdir .libs 2>/dev/null
4039 if test -d .libs; then
4040 objdir=.libs
4041 else
4042 # MS-DOS does not allow filenames that begin with a dot.
4043 objdir=_libs
4044 fi
4045 rmdir .libs 2>/dev/null
4046 echo "$as_me:$LINENO: result: $objdir" >&5
4047 echo "${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.
4056 if test "${with_pic+set}" = set; then
4057 withval="$with_pic"
4058 pic_mode="$withval"
4059 else
4060 pic_mode=default
4061 fi;
4062 test -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.
4067 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4068 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4069 if test "${lt_cv_prog_cc_pic+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
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
4211 fi
4212
4213 if test -z "$lt_cv_prog_cc_pic"; then
4214 echo "$as_me:$LINENO: result: none" >&5
4215 echo "${ECHO_T}none" >&6
4216 else
4217 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4218 echo "${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
4222 echo $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
4225 else
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
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (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
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 lt_cv_prog_cc_pic_works=no
4278
4279 fi
4280 rm -f conftest.$ac_objext conftest.$ac_ext
4281 CFLAGS="$save_CFLAGS"
4282
4283 fi
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
4294 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4295 fi
4296 ##
4297 ## END FIXME
4298
4299 # Check for any special shared library compilation flags.
4300 if 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
4302 echo "$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
4306 echo "$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
4309 fi
4310
4311 ## FIXME: this should be a separate macro
4312 ##
4313 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4314 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4315 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
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
4331 int
4332 main ()
4333 {
4334
4335 ;
4336 return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (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
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 fi
4356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4357 LDFLAGS="$save_LDFLAGS"
4358
4359 fi
4360
4361
4362 # Belt *and* braces to stop my trousers falling down:
4363 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4364 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4365 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4366
4367 pic_flag="$lt_cv_prog_cc_pic"
4368 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4369 wl="$lt_cv_prog_cc_wl"
4370 link_static_flag="$lt_cv_prog_cc_static"
4371 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4372 can_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
4380 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4381 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4382 if test "${lt_cv_compiler_c_o+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385
4386 $rm -r conftest 2>/dev/null
4387 mkdir conftest
4388 cd conftest
4389 echo "int some_variable = 0;" > conftest.$ac_ext
4390 mkdir 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.
4396 chmod -w .
4397 save_CFLAGS="$CFLAGS"
4398 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4399 compiler_c_o=no
4400 if { (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
4408 else
4409 # Append any errors to the config.log.
4410 cat out/conftest.err 1>&5
4411 lt_cv_compiler_c_o=no
4412 fi
4413 CFLAGS="$save_CFLAGS"
4414 chmod u+w .
4415 $rm conftest* out/*
4416 rmdir out
4417 cd ..
4418 rmdir conftest
4419 $rm -r conftest 2>/dev/null
4420
4421 fi
4422
4423 compiler_c_o=$lt_cv_compiler_c_o
4424 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4425 echo "${ECHO_T}$compiler_c_o" >&6
4426
4427 if 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
4430 echo $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
4433 else
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
4450 int
4451 main ()
4452 {
4453 int some_variable = 0;
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (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
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4481 fi
4482 rm -f conftest.$ac_objext conftest.$ac_ext
4483 ac_objext="$save_objext"
4484 CFLAGS="$save_CFLAGS"
4485
4486 fi
4487
4488 compiler_o_lo=$lt_cv_compiler_o_lo
4489 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4490 echo "${ECHO_T}$compiler_o_lo" >&6
4491 else
4492 compiler_o_lo=no
4493 fi
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
4500 hard_links="nottested"
4501 if 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
4504 echo $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
4512 echo "${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
4515 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4516 need_locks=warn
4517 fi
4518 else
4519 need_locks=no
4520 fi
4521 ##
4522 ## END FIXME
4523
4524 ## FIXME: this should be a separate macro
4525 ##
4526 if 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
4529 echo $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
4544 int
4545 main ()
4546 {
4547 int some_variable = 0;
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (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
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 fi
4576 rm -f conftest.$ac_objext conftest.$ac_ext
4577 CFLAGS="$save_CFLAGS"
4578 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4579 echo "${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
4586 fi
4587 ##
4588 ## END FIXME
4589
4590 ## FIXME: this should be a separate macro
4591 ##
4592 # See if the linker supports building shared libraries.
4593 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4594 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4595
4596 allow_undefined_flag=
4597 no_undefined_flag=
4598 need_lib_prefix=unknown
4599 need_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
4602 archive_cmds=
4603 archive_expsym_cmds=
4604 old_archive_from_new_cmds=
4605 old_archive_from_expsyms_cmds=
4606 export_dynamic_flag_spec=
4607 whole_archive_flag_spec=
4608 thread_safe_flag_spec=
4609 hardcode_into_libs=no
4610 hardcode_libdir_flag_spec=
4611 hardcode_libdir_separator=
4612 hardcode_direct=no
4613 hardcode_minus_L=no
4614 hardcode_shlibpath_var=unsupported
4615 runpath_var=
4616 link_all_deplibs=unknown
4617 always_export_symbols=no
4618 export_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
4621 include_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'.
4626 exclude_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.
4632 extract_expsyms_cmds=
4633
4634 case $host_os in
4635 cygwin* | 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 ;;
4643 openbsd*)
4644 with_gnu_ld=no
4645 ;;
4646 esac
4647
4648 ld_shlibs=yes
4649 if 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
4667 EOF
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
4794 EOF
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
4839 else
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
5162 EOF
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
5272 fi
5273 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5274 echo "${ECHO_T}$ld_shlibs" >&6
5275 test "$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.
5282 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5284 hardcode_action=
5285 if 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
5301 else
5302 # We cannot hardcode anything, or else we can only hardcode existing
5303 # directories.
5304 hardcode_action=unsupported
5305 fi
5306 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5307 echo "${ECHO_T}$hardcode_action" >&6
5308 ##
5309 ## END FIXME
5310
5311 ## FIXME: this should be a separate macro
5312 ##
5313 striplib=
5314 old_striplib=
5315 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5316 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5317 if 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
5321 echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5325 fi
5326 ##
5327 ## END FIXME
5328
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330 test -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
5335 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5336 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5337 library_names_spec=
5338 libname_spec='lib$name'
5339 soname_spec=
5340 postinstall_cmds=
5341 postuninstall_cmds=
5342 finish_cmds=
5343 finish_eval=
5344 shlibpath_var=
5345 shlibpath_overrides_runpath=unknown
5346 version_type=none
5347 dynamic_linker="$host_os ld.so"
5348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5350
5351 case $host_os in
5352 aix3*)
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
5361 aix4* | 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
5403 amigaos*)
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
5409 beos*)
5410 library_names_spec='${libname}.so'
5411 dynamic_linker="$host_os ld.so"
5412 shlibpath_var=LIBRARY_PATH
5413 ;;
5414
5415 bsdi4*)
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
5430 cygwin* | 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
5462 darwin* | 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
5476 freebsd1*)
5477 dynamic_linker=no
5478 ;;
5479
5480 freebsd*)
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
5506 gnu*)
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
5516 hpux9* | 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
5531 irix5* | 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.
5557 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5558 dynamic_linker=no
5559 ;;
5560
5561 # This must be Linux ELF.
5562 linux-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
5585 netbsd*)
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
5603 newsos6)
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
5610 openbsd*)
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
5631 os2*)
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
5639 osf3* | 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
5649 sco3.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
5656 solaris*)
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
5669 sunos4*)
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
5681 sysv4 | 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
5699 uts4*)
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
5706 dgux*)
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
5715 sysv4*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 ;;
5727 esac
5728 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5729 echo "${ECHO_T}$dynamic_linker" >&6
5730 test "$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.
5737 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5738 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5739 echo "$as_me:$LINENO: result: $can_build_shared" >&5
5740 echo "${ECHO_T}$can_build_shared" >&6
5741 ##
5742 ## END FIXME
5743
5744 ## FIXME: this should be a separate macro
5745 ##
5746 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5747 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5748 test "$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.
5752 case "$host_os" in
5753 aix3*)
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
5761 aix4*)
5762 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5763 test "$enable_shared" = yes && enable_static=no
5764 fi
5765 ;;
5766 esac
5767 echo "$as_me:$LINENO: result: $enable_shared" >&5
5768 echo "${ECHO_T}$enable_shared" >&6
5769 ##
5770 ## END FIXME
5771
5772 ## FIXME: this should be a separate macro
5773 ##
5774 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5775 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5776 # Make sure either enable_shared or enable_static is yes.
5777 test "$enable_shared" = yes || enable_static=yes
5778 echo "$as_me:$LINENO: result: $enable_static" >&5
5779 echo "${ECHO_T}$enable_static" >&6
5780 ##
5781 ## END FIXME
5782
5783 if test "$hardcode_action" = relink; then
5784 # Fast installation is not supported
5785 enable_fast_install=no
5786 elif test "$shlibpath_overrides_runpath" = yes ||
5787 test "$enable_shared" = no; then
5788 # Fast installation is not necessary
5789 enable_fast_install=needless
5790 fi
5791
5792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5793 if test "$GCC" = yes; then
5794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5795 fi
5796
5797 if test "x$enable_dlopen" != xyes; then
5798 enable_dlopen=unknown
5799 enable_dlopen_self=unknown
5800 enable_dlopen_self_static=unknown
5801 else
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
5819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5820 if test "${ac_cv_func_shl_load+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
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
5831 extern "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. */
5835 char shl_load ();
5836 char (*f) ();
5837
5838 #ifdef F77_DUMMY_MAIN
5839 # ifdef __cplusplus
5840 extern "C"
5841 # endif
5842 int F77_DUMMY_MAIN() { return 1; }
5843 #endif
5844 int
5845 main ()
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)
5851 choke me
5852 #else
5853 f = shl_load;
5854 #endif
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext conftest$ac_exeext
5861 if { (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
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 ac_cv_func_shl_load=no
5877 fi
5878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 fi
5880 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5881 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5882 if test $ac_cv_func_shl_load = yes; then
5883 lt_cv_dlopen="shl_load"
5884 else
5885 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 ac_check_lib_save_LIBS=$LIBS
5891 LIBS="-ldld $LIBS"
5892 cat >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
5898 extern "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. */
5902 char shl_load ();
5903 #ifdef F77_DUMMY_MAIN
5904 # ifdef __cplusplus
5905 extern "C"
5906 # endif
5907 int F77_DUMMY_MAIN() { return 1; }
5908 #endif
5909 int
5910 main ()
5911 {
5912 shl_load ();
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (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
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 ac_cv_lib_dld_shl_load=no
5934 fi
5935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936 LIBS=$ac_check_lib_save_LIBS
5937 fi
5938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5940 if test $ac_cv_lib_dld_shl_load = yes; then
5941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5942 else
5943 echo "$as_me:$LINENO: checking for dlopen" >&5
5944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5945 if test "${ac_cv_func_dlopen+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
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
5956 extern "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. */
5960 char dlopen ();
5961 char (*f) ();
5962
5963 #ifdef F77_DUMMY_MAIN
5964 # ifdef __cplusplus
5965 extern "C"
5966 # endif
5967 int F77_DUMMY_MAIN() { return 1; }
5968 #endif
5969 int
5970 main ()
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)
5976 choke me
5977 #else
5978 f = dlopen;
5979 #endif
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (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
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6001 ac_cv_func_dlopen=no
6002 fi
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6004 fi
6005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6007 if test $ac_cv_func_dlopen = yes; then
6008 lt_cv_dlopen="dlopen"
6009 else
6010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015 ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-ldl $LIBS"
6017 cat >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
6023 extern "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. */
6027 char dlopen ();
6028 #ifdef F77_DUMMY_MAIN
6029 # ifdef __cplusplus
6030 extern "C"
6031 # endif
6032 int F77_DUMMY_MAIN() { return 1; }
6033 #endif
6034 int
6035 main ()
6036 {
6037 dlopen ();
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (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
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6058 ac_cv_lib_dl_dlopen=no
6059 fi
6060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061 LIBS=$ac_check_lib_save_LIBS
6062 fi
6063 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6065 if test $ac_cv_lib_dl_dlopen = yes; then
6066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6067 else
6068 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6069 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6070 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 ac_check_lib_save_LIBS=$LIBS
6074 LIBS="-lsvld $LIBS"
6075 cat >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
6081 extern "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. */
6085 char dlopen ();
6086 #ifdef F77_DUMMY_MAIN
6087 # ifdef __cplusplus
6088 extern "C"
6089 # endif
6090 int F77_DUMMY_MAIN() { return 1; }
6091 #endif
6092 int
6093 main ()
6094 {
6095 dlopen ();
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (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
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 ac_cv_lib_svld_dlopen=no
6117 fi
6118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6119 LIBS=$ac_check_lib_save_LIBS
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6123 if test $ac_cv_lib_svld_dlopen = yes; then
6124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6125 else
6126 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6127 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6128 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 ac_check_lib_save_LIBS=$LIBS
6132 LIBS="-ldld $LIBS"
6133 cat >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
6139 extern "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. */
6143 char dld_link ();
6144 #ifdef F77_DUMMY_MAIN
6145 # ifdef __cplusplus
6146 extern "C"
6147 # endif
6148 int F77_DUMMY_MAIN() { return 1; }
6149 #endif
6150 int
6151 main ()
6152 {
6153 dld_link ();
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (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
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 ac_cv_lib_dld_dld_link=no
6175 fi
6176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6178 fi
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6181 if test $ac_cv_lib_dld_dld_link = yes; then
6182 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6183 fi
6184
6185
6186 fi
6187
6188
6189 fi
6190
6191
6192 fi
6193
6194
6195 fi
6196
6197
6198 fi
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
6221 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6222 if test "${lt_cv_dlopen_self+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 if test "$cross_compiling" = yes; then :
6226 lt_cv_dlopen_self=cross
6227 else
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
6273 extern "C" void exit (int);
6274 #endif
6275
6276 void fnord() { int i=42;}
6277 int 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 }
6291 EOF
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
6308 fi
6309 rm -fr conftest*
6310
6311
6312 fi
6313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6314 echo "${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
6319 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6320 if test "${lt_cv_dlopen_self_static+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 if test "$cross_compiling" = yes; then :
6324 lt_cv_dlopen_self_static=cross
6325 else
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
6371 extern "C" void exit (int);
6372 #endif
6373
6374 void fnord() { int i=42;}
6375 int 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 }
6389 EOF
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
6406 fi
6407 rm -fr conftest*
6408
6409
6410 fi
6411 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6412 echo "${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
6430 fi
6431
6432
6433 ## FIXME: this should be a separate macro
6434 ##
6435 if 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
6445 echo $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
6448 else
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
6483 fi
6484
6485 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6486 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6487 ;;
6488 esac
6489 fi
6490 need_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.
6500 if test -f "$ltmain"; then
6501 :
6502 else
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"
6507 fi
6508
6509 if 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.
6581 Xsed="sed -e s/^X//"
6582
6583 # The HP-UX ksh and POSIX shell print the target directory to stdout
6584 # if CDPATH is set.
6585 if 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.
6592 SHELL=$lt_SHELL
6593
6594 # Whether or not to build shared libraries.
6595 build_libtool_libs=$enable_shared
6596
6597 # Whether or not to build static libraries.
6598 build_old_libs=$enable_static
6599
6600 # Whether or not to add -lc for building shared libraries.
6601 build_libtool_need_lc=$need_lc
6602
6603 # Whether or not to optimize for fast installation.
6604 fast_install=$enable_fast_install
6605
6606 # The host system.
6607 host_alias=$host_alias
6608 host=$host
6609
6610 # An echo program that does not interpret backslashes.
6611 echo=$lt_echo
6612
6613 # The archiver.
6614 AR=$lt_AR
6615 AR_FLAGS=$lt_AR_FLAGS
6616
6617 # The default C compiler.
6618 CC=$lt_CC
6619
6620 # Is the compiler the GNU C compiler?
6621 with_gcc=$GCC
6622
6623 # The linker used to build libraries.
6624 LD=$lt_LD
6625
6626 # Whether we need hard or soft links.
6627 LN_S=$lt_LN_S
6628
6629 # A BSD-compatible nm program.
6630 NM=$lt_NM
6631
6632 # A symbol stripping program
6633 STRIP=$STRIP
6634
6635 # Used to examine libraries when file_magic_cmd begins "file"
6636 MAGIC_CMD=$MAGIC_CMD
6637
6638 # Used on cygwin: DLL creation program.
6639 DLLTOOL="$DLLTOOL"
6640
6641 # Used on cygwin: object dumper.
6642 OBJDUMP="$OBJDUMP"
6643
6644 # Used on cygwin: assembler.
6645 AS="$AS"
6646
6647 # The name of the directory that contains temporary libtool files.
6648 objdir=$objdir
6649
6650 # How to create reloadable object files.
6651 reload_flag=$lt_reload_flag
6652 reload_cmds=$lt_reload_cmds
6653
6654 # How to pass a linker flag through the compiler.
6655 wl=$lt_wl
6656
6657 # Object file suffix (normally "o").
6658 objext="$ac_objext"
6659
6660 # Old archive suffix (normally "a").
6661 libext="$libext"
6662
6663 # Executable file suffix (normally "").
6664 exeext="$exeext"
6665
6666 # Additional compiler flags for building library objects.
6667 pic_flag=$lt_pic_flag
6668 pic_mode=$pic_mode
6669
6670 # Does compiler simultaneously support -c and -o options?
6671 compiler_c_o=$lt_compiler_c_o
6672
6673 # Can we write directly to a .lo ?
6674 compiler_o_lo=$lt_compiler_o_lo
6675
6676 # Must we lock files when doing compilation ?
6677 need_locks=$lt_need_locks
6678
6679 # Do we need the lib prefix for modules?
6680 need_lib_prefix=$need_lib_prefix
6681
6682 # Do we need a version for libraries?
6683 need_version=$need_version
6684
6685 # Whether dlopen is supported.
6686 dlopen_support=$enable_dlopen
6687
6688 # Whether dlopen of programs is supported.
6689 dlopen_self=$enable_dlopen_self
6690
6691 # Whether dlopen of statically linked programs is supported.
6692 dlopen_self_static=$enable_dlopen_self_static
6693
6694 # Compiler flag to prevent dynamic linking.
6695 link_static_flag=$lt_link_static_flag
6696
6697 # Compiler flag to turn off builtin functions.
6698 no_builtin_flag=$lt_no_builtin_flag
6699
6700 # Compiler flag to allow reflexive dlopens.
6701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6702
6703 # Compiler flag to generate shared objects directly from archives.
6704 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6705
6706 # Compiler flag to generate thread-safe objects.
6707 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6708
6709 # Library versioning type.
6710 version_type=$version_type
6711
6712 # Format of library name prefix.
6713 libname_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.
6717 library_names_spec=$lt_library_names_spec
6718
6719 # The coded name of the library, if different from the real name.
6720 soname_spec=$lt_soname_spec
6721
6722 # Commands used to build and install an old-style archive.
6723 RANLIB=$lt_RANLIB
6724 old_archive_cmds=$lt_old_archive_cmds
6725 old_postinstall_cmds=$lt_old_postinstall_cmds
6726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6727
6728 # Create an old-style archive from a shared archive.
6729 old_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.
6732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6733
6734 # Commands used to build and install a shared archive.
6735 archive_cmds=$lt_archive_cmds
6736 archive_expsym_cmds=$lt_archive_expsym_cmds
6737 postinstall_cmds=$lt_postinstall_cmds
6738 postuninstall_cmds=$lt_postuninstall_cmds
6739
6740 # Commands to strip libraries.
6741 old_striplib=$lt_old_striplib
6742 striplib=$lt_striplib
6743
6744 # Method to check whether dependent libraries are shared objects.
6745 deplibs_check_method=$lt_deplibs_check_method
6746
6747 # Command to use when deplibs_check_method == file_magic.
6748 file_magic_cmd=$lt_file_magic_cmd
6749
6750 # Flag that allows shared libraries with undefined symbols to be built.
6751 allow_undefined_flag=$lt_allow_undefined_flag
6752
6753 # Flag that forces no undefined symbols.
6754 no_undefined_flag=$lt_no_undefined_flag
6755
6756 # Commands used to finish a libtool library installation in a directory.
6757 finish_cmds=$lt_finish_cmds
6758
6759 # Same as above, but a single script fragment to be evaled but not shown.
6760 finish_eval=$lt_finish_eval
6761
6762 # Take the output of nm and produce a listing of raw symbols and C names.
6763 global_symbol_pipe=$lt_global_symbol_pipe
6764
6765 # Transform the output of nm in a proper C declaration
6766 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6767
6768 # Transform the output of nm in a C name address pair
6769 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6770
6771 # This is the shared library runtime path variable.
6772 runpath_var=$runpath_var
6773
6774 # This is the shared library path variable.
6775 shlibpath_var=$shlibpath_var
6776
6777 # Is shlibpath searched before the hard-coded library search path?
6778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6779
6780 # How to hardcode a shared library path into an executable.
6781 hardcode_action=$hardcode_action
6782
6783 # Whether we should hardcode library paths into libraries.
6784 hardcode_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.
6788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6789
6790 # Whether we need a single -rpath flag with a separated argument.
6791 hardcode_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.
6795 hardcode_direct=$hardcode_direct
6796
6797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6798 # resulting binary.
6799 hardcode_minus_L=$hardcode_minus_L
6800
6801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6802 # the resulting binary.
6803 hardcode_shlibpath_var=$hardcode_shlibpath_var
6804
6805 # Variables whose values should be saved in libtool wrapper scripts and
6806 # restored at relink time.
6807 variables_saved_for_relink="$variables_saved_for_relink"
6808
6809 # Whether libtool must link a program against all its dependency libraries.
6810 link_all_deplibs=$link_all_deplibs
6811
6812 # Compile-time system search path for libraries
6813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6814
6815 # Run-time system search path for libraries
6816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6817
6818 # Fix the shell variable \$srcfile for the compiler.
6819 fix_srcfile_path="$fix_srcfile_path"
6820
6821 # Set to yes if exported symbols are required.
6822 always_export_symbols=$always_export_symbols
6823
6824 # The commands to list exported symbols.
6825 export_symbols_cmds=$lt_export_symbols_cmds
6826
6827 # The commands to extract the exported symbol list from a shared archive.
6828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6829
6830 # Symbols that should not be listed in the preloaded symbols.
6831 exclude_expsyms=$lt_exclude_expsyms
6832
6833 # Symbols that must always be exported.
6834 include_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.
6847 if test "X${COLLECT_NAMES+set}" != Xset; then
6848 COLLECT_NAMES=
6849 export COLLECT_NAMES
6850 fi
6851 EOF
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
7031 EOF
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"
7044 fi
7045 ##
7046 ## END FIXME
7047
7048
7049
7050
7051
7052 # This can be used to rebuild libtool when needed
7053 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7054
7055 # Always use our own libtool.
7056 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7057
7058 # Prevent multiple expansion
7059
7060
7061
7062
7063
7064
7065
7066 ac_ext=c
7067 ac_cpp='$CPP $CPPFLAGS'
7068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071 if 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.
7073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7074 echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7076 if test "${ac_cv_prog_CC+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 if test -n "$CC"; then
7080 ac_cv_prog_CC="$CC" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
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
7093 done
7094 done
7095
7096 fi
7097 fi
7098 CC=$ac_cv_prog_CC
7099 if test -n "$CC"; then
7100 echo "$as_me:$LINENO: result: $CC" >&5
7101 echo "${ECHO_T}$CC" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7105 fi
7106
7107 fi
7108 if 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.
7111 set dummy gcc; ac_word=$2
7112 echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 if test -n "$ac_ct_CC"; then
7118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
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
7131 done
7132 done
7133
7134 fi
7135 fi
7136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7137 if test -n "$ac_ct_CC"; then
7138 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7139 echo "${ECHO_T}$ac_ct_CC" >&6
7140 else
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 fi
7144
7145 CC=$ac_ct_CC
7146 else
7147 CC="$ac_cv_prog_CC"
7148 fi
7149
7150 if 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.
7153 set dummy ${ac_tool_prefix}cc; ac_word=$2
7154 echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7156 if test "${ac_cv_prog_CC+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 if test -n "$CC"; then
7160 ac_cv_prog_CC="$CC" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
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
7173 done
7174 done
7175
7176 fi
7177 fi
7178 CC=$ac_cv_prog_CC
7179 if test -n "$CC"; then
7180 echo "$as_me:$LINENO: result: $CC" >&5
7181 echo "${ECHO_T}$CC" >&6
7182 else
7183 echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7185 fi
7186
7187 fi
7188 if 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.
7191 set dummy cc; ac_word=$2
7192 echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$ac_ct_CC"; then
7198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
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
7211 done
7212 done
7213
7214 fi
7215 fi
7216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7217 if test -n "$ac_ct_CC"; then
7218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7219 echo "${ECHO_T}$ac_ct_CC" >&6
7220 else
7221 echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 fi
7224
7225 CC=$ac_ct_CC
7226 else
7227 CC="$ac_cv_prog_CC"
7228 fi
7229
7230 fi
7231 if test -z "$CC"; then
7232 # Extract the first word of "cc", so it can be a program name with args.
7233 set dummy cc; ac_word=$2
7234 echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7236 if test "${ac_cv_prog_CC+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 if test -n "$CC"; then
7240 ac_cv_prog_CC="$CC" # Let the user override the test.
7241 else
7242 ac_prog_rejected=no
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
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
7258 done
7259 done
7260
7261 if 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
7274 fi
7275 fi
7276 fi
7277 CC=$ac_cv_prog_CC
7278 if test -n "$CC"; then
7279 echo "$as_me:$LINENO: result: $CC" >&5
7280 echo "${ECHO_T}$CC" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286 fi
7287 if 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.
7292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_CC+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 if test -n "$CC"; then
7299 ac_cv_prog_CC="$CC" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
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
7312 done
7313 done
7314
7315 fi
7316 fi
7317 CC=$ac_cv_prog_CC
7318 if test -n "$CC"; then
7319 echo "$as_me:$LINENO: result: $CC" >&5
7320 echo "${ECHO_T}$CC" >&6
7321 else
7322 echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7324 fi
7325
7326 test -n "$CC" && break
7327 done
7328 fi
7329 if test -z "$CC"; then
7330 ac_ct_CC=$CC
7331 for ac_prog in cl
7332 do
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 if test -n "$ac_ct_CC"; then
7341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
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
7354 done
7355 done
7356
7357 fi
7358 fi
7359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7360 if test -n "$ac_ct_CC"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7362 echo "${ECHO_T}$ac_ct_CC" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368 test -n "$ac_ct_CC" && break
7369 done
7370
7371 CC=$ac_ct_CC
7372 fi
7373
7374 fi
7375
7376
7377 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7378 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7379 { (exit 1); exit 1; }; }
7380
7381 # Provide some information about the compiler.
7382 echo "$as_me:$LINENO:" \
7383 "checking for C compiler version" >&5
7384 ac_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
7401 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
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
7416 int
7417 main ()
7418 {
7419 #ifndef __GNUC__
7420 choke me
7421 #endif
7422
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (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
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7443 ac_compiler_gnu=no
7444 fi
7445 rm -f conftest.$ac_objext conftest.$ac_ext
7446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7447
7448 fi
7449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7451 GCC=`test $ac_compiler_gnu = yes && echo yes`
7452 ac_test_CFLAGS=${CFLAGS+set}
7453 ac_save_CFLAGS=$CFLAGS
7454 CFLAGS="-g"
7455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7457 if test "${ac_cv_prog_cc_g+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
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
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (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
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_cv_prog_cc_g=no
7495 fi
7496 rm -f conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7500 if test "$ac_test_CFLAGS" = set; then
7501 CFLAGS=$ac_save_CFLAGS
7502 elif 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
7508 else
7509 if test "$GCC" = yes; then
7510 CFLAGS="-O2"
7511 else
7512 CFLAGS=
7513 fi
7514 fi
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.
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #ifndef __cplusplus
7521 choke me
7522 #endif
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (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);'
7544 do
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
7556 int
7557 main ()
7558 {
7559 exit (42);
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (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 :
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 continue
7581 fi
7582 rm -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
7593 int
7594 main ()
7595 {
7596 exit (42);
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (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
7614 else
7615 echo "$as_me: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7617 fi
7618 rm -f conftest.$ac_objext conftest.$ac_ext
7619 done
7620 rm -f conftest*
7621 if test -n "$ac_declaration"; then
7622 echo '#ifdef __cplusplus' >>confdefs.h
7623 echo $ac_declaration >>confdefs.h
7624 echo '#endif' >>confdefs.h
7625 fi
7626
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 fi
7631 rm -f conftest.$ac_objext conftest.$ac_ext
7632 ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_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.
7650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7652 if test -z "$INSTALL"; then
7653 if test "${ac_cv_path_install+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 # Account for people who put trailing slashes in PATH elements.
7662 case $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 ;;
7689 esac
7690 done
7691
7692
7693 fi
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
7703 fi
7704 echo "$as_me:$LINENO: result: $INSTALL" >&5
7705 echo "${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.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7710
7711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7712
7713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714
7715
7716 if 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
7720 echo $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
7731 int
7732 main ()
7733 {
7734 (void)1
7735 ;
7736 return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (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
7752 echo "${ECHO_T}yes" >&6
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
7758 fi
7759 rm -f conftest.$ac_objext conftest.$ac_ext
7760 fi
7761
7762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7764 if test "${ac_cv_header_stdc+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
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
7776 if { (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
7789 else
7790 ac_cpp_err=yes
7791 fi
7792 if test -z "$ac_cpp_err"; then
7793 ac_cv_header_stdc=yes
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 ac_cv_header_stdc=no
7798 fi
7799 rm -f conftest.err conftest.$ac_ext
7800
7801 if 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
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 egrep "memchr" >/dev/null 2>&1; then
7811 :
7812 else
7813 ac_cv_header_stdc=no
7814 fi
7815 rm -f conftest*
7816
7817 fi
7818
7819 if 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
7827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7828 egrep "free" >/dev/null 2>&1; then
7829 :
7830 else
7831 ac_cv_header_stdc=no
7832 fi
7833 rm -f conftest*
7834
7835 fi
7836
7837 if 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 :
7841 else
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)))
7857 int
7858 main ()
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
7868 rm -f conftest$ac_exeext
7869 if { (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 :
7880 else
7881 echo "$as_me: program exited with status $ac_status" >&5
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7884 ( exit $ac_status )
7885 ac_cv_header_stdc=no
7886 fi
7887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 fi
7890 fi
7891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7893 if test $ac_cv_header_stdc = yes; then
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define STDC_HEADERS 1
7897 _ACEOF
7898
7899 fi
7900
7901
7902
7903 for ac_header in fcntl.h unistd.h
7904 do
7905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 fi
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914 else
7915 # Is the header compilable?
7916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 $ac_includes_default
7922 #include <$ac_header>
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (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
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 ac_header_compiler=no
7941 fi
7942 rm -f conftest.$ac_objext conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7944 echo "${ECHO_T}$ac_header_compiler" >&6
7945
7946 # Is the header present?
7947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 #include "confdefs.h"
7952 #include <$ac_header>
7953 _ACEOF
7954 if { (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
7967 else
7968 ac_cpp_err=yes
7969 fi
7970 if test -z "$ac_cpp_err"; then
7971 ac_header_preproc=yes
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7975 ac_header_preproc=no
7976 fi
7977 rm -f conftest.err conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979 echo "${ECHO_T}$ac_header_preproc" >&6
7980
7981 # So? What about this header?
7982 case $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
7985 echo "$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
7987 echo "$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
7990 echo "$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
7992 echo "$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
7994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7995 esac
7996 echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 eval "$as_ac_Header=$ac_header_preproc"
8002 fi
8003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005
8006 fi
8007 if 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
8012 fi
8013
8014 done
8015
8016
8017
8018 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8019 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8020 if test "${ac_cv_c_bigendian+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 ac_cv_c_bigendian=unknown
8024 # See if sys/param.h defines the BYTE_ORDER macro.
8025 cat >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
8036 int
8037 main ()
8038 {
8039
8040 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8041 bogus endian macros
8042 #endif
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (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.
8060 cat >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
8071 int
8072 main ()
8073 {
8074
8075 #if BYTE_ORDER != BIG_ENDIAN
8076 not big endian
8077 #endif
8078 ;
8079 return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (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
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8098 ac_cv_c_bigendian=no
8099 fi
8100 rm -f conftest.$ac_objext conftest.$ac_ext
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8104 fi
8105 rm -f conftest.$ac_objext conftest.$ac_ext
8106 if test $ac_cv_c_bigendian = unknown; then
8107 if test "$cross_compiling" = yes; then
8108 echo $ac_n "cross-compiling... " 2>&6
8109 else
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8113 main () {
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
8124 rm -f conftest$ac_exeext
8125 if { (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
8136 else
8137 echo "$as_me: program exited with status $ac_status" >&5
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ( exit $ac_status )
8141 ac_cv_c_bigendian=yes
8142 fi
8143 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 fi
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8148 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8149 if test $ac_cv_c_bigendian = unknown; then
8150 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8151 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8152
8153 cat >conftest.c <<EOF
8154 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8155 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8156 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8157 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8158 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8159 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8160 int main() { _ascii (); _ebcdic (); return 0; }
8161 EOF
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
8179 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8181 fi
8182 if test $ac_cv_c_bigendian = yes; then
8183
8184 cat >>confdefs.h <<\_ACEOF
8185 #define WORDS_BIGENDIAN 1
8186 _ACEOF
8187
8188 BYTEORDER=4321
8189 else
8190 BYTEORDER=1234
8191 fi
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define BYTEORDER $BYTEORDER
8195 _ACEOF
8196
8197 if test $ac_cv_c_bigendian = unknown; then
8198 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
8199 echo "$as_me: error: unknown endianess - sorry" >&2;}
8200 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
8201 fi
8202
8203
8204 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8205 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8206 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209 ac_cv_prog_cc_stdc=no
8210 ac_save_CC=$CC
8211 cat >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. */
8219 struct buf { int x; };
8220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8221 static char *e (p, i)
8222 char **p;
8223 int i;
8224 {
8225 return p[i];
8226 }
8227 static 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 }
8236 int test (int i, double x);
8237 struct s1 {int (*f) (int a);};
8238 struct s2 {int (*f) (double a);};
8239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8240 int argc;
8241 char **argv;
8242 #ifdef F77_DUMMY_MAIN
8243 # ifdef __cplusplus
8244 extern "C"
8245 # endif
8246 int F77_DUMMY_MAIN() { return 1; }
8247 #endif
8248 int
8249 main ()
8250 {
8251 return 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__
8263 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8264 do
8265 CC="$ac_save_CC $ac_arg"
8266 rm -f conftest.$ac_objext
8267 if { (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
8279 break
8280 else
8281 echo "$as_me: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 fi
8284 rm -f conftest.$ac_objext
8285 done
8286 rm -f conftest.$ac_ext conftest.$ac_objext
8287 CC=$ac_save_CC
8288
8289 fi
8290
8291 case "x$ac_cv_prog_cc_stdc" in
8292 x|xno)
8293 echo "$as_me:$LINENO: result: none needed" >&5
8294 echo "${ECHO_T}none needed" >&6 ;;
8295 *)
8296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8298 CC="$CC $ac_cv_prog_cc_stdc" ;;
8299 esac
8300
8301 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8302 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8303 if test "${ac_cv_c_const+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
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
8316 int
8317 main ()
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
8370 rm -f conftest.$ac_objext
8371 if { (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
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 ac_cv_c_const=no
8387 fi
8388 rm -f conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8391 echo "${ECHO_T}$ac_cv_c_const" >&6
8392 if test $ac_cv_c_const = no; then
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define const
8396 _ACEOF
8397
8398 fi
8399
8400 echo "$as_me:$LINENO: checking for off_t" >&5
8401 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8402 if test "${ac_cv_type_off_t+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
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
8415 int
8416 main ()
8417 {
8418 if ((off_t *) 0)
8419 return 0;
8420 if (sizeof (off_t))
8421 return 0;
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (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
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 ac_cv_type_off_t=no
8443 fi
8444 rm -f conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8447 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8448 if test $ac_cv_type_off_t = yes; then
8449 :
8450 else
8451
8452 cat >>confdefs.h <<_ACEOF
8453 #define off_t long
8454 _ACEOF
8455
8456 fi
8457
8458 echo "$as_me:$LINENO: checking for size_t" >&5
8459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8460 if test "${ac_cv_type_size_t+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
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
8473 int
8474 main ()
8475 {
8476 if ((size_t *) 0)
8477 return 0;
8478 if (sizeof (size_t))
8479 return 0;
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (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
8497 else
8498 echo "$as_me: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8500 ac_cv_type_size_t=no
8501 fi
8502 rm -f conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8505 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8506 if test $ac_cv_type_size_t = yes; then
8507 :
8508 else
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define size_t unsigned
8512 _ACEOF
8513
8514 fi
8515
8516
8517
8518 echo "$as_me:$LINENO: checking for working memcmp" >&5
8519 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8520 if test "${ac_cv_func_memcmp_working+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523 if test "$cross_compiling" = yes; then
8524 ac_cv_func_memcmp_working=no
8525 else
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
8536 int
8537 main ()
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
8568 rm -f conftest$ac_exeext
8569 if { (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
8580 else
8581 echo "$as_me: program exited with status $ac_status" >&5
8582 echo "$as_me: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8584 ( exit $ac_status )
8585 ac_cv_func_memcmp_working=no
8586 fi
8587 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8588 fi
8589 fi
8590 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8591 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8592 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8593
8594
8595
8596 for ac_header in stdlib.h unistd.h
8597 do
8598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo "$as_me:$LINENO: checking for $ac_header" >&5
8601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 fi
8605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607 else
8608 # Is the header compilable?
8609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8614 $ac_includes_default
8615 #include <$ac_header>
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (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
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8633 ac_header_compiler=no
8634 fi
8635 rm -f conftest.$ac_objext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8637 echo "${ECHO_T}$ac_header_compiler" >&6
8638
8639 # Is the header present?
8640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8645 #include <$ac_header>
8646 _ACEOF
8647 if { (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
8660 else
8661 ac_cpp_err=yes
8662 fi
8663 if test -z "$ac_cpp_err"; then
8664 ac_header_preproc=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ac_header_preproc=no
8669 fi
8670 rm -f conftest.err conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8672 echo "${ECHO_T}$ac_header_preproc" >&6
8673
8674 # So? What about this header?
8675 case $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
8678 echo "$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
8680 echo "$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
8683 echo "$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
8685 echo "$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
8687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8688 esac
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 eval "$as_ac_Header=$ac_header_preproc"
8695 fi
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8698
8699 fi
8700 if 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
8705 fi
8706
8707 done
8708
8709
8710 for ac_func in getpagesize
8711 do
8712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8713 echo "$as_me:$LINENO: checking for $ac_func" >&5
8714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_var+set}\" = set"; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
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
8726 extern "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. */
8730 char $ac_func ();
8731 char (*f) ();
8732
8733 #ifdef F77_DUMMY_MAIN
8734 # ifdef __cplusplus
8735 extern "C"
8736 # endif
8737 int F77_DUMMY_MAIN() { return 1; }
8738 #endif
8739 int
8740 main ()
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)
8746 choke me
8747 #else
8748 f = $ac_func;
8749 #endif
8750
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (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"
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 eval "$as_ac_var=no"
8772 fi
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8774 fi
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if 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
8782 fi
8783 done
8784
8785 echo "$as_me:$LINENO: checking for working mmap" >&5
8786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_func_mmap_fixed_mapped=no
8792 else
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
8826 char *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
8866 int
8867 main ()
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
8923 rm -f conftest$ac_exeext
8924 if { (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
8935 else
8936 echo "$as_me: program exited with status $ac_status" >&5
8937 echo "$as_me: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 ( exit $ac_status )
8940 ac_cv_func_mmap_fixed_mapped=no
8941 fi
8942 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8943 fi
8944 fi
8945 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8946 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8948
8949 cat >>confdefs.h <<\_ACEOF
8950 #define HAVE_MMAP 1
8951 _ACEOF
8952
8953 fi
8954 rm -f conftest.mmap
8955
8956
8957 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
8958 FILEMAP=unixfilemap
8959 else
8960 FILEMAP=readfilemap
8961 fi
8962
8963
8964
8965
8966 for ac_func in memmove bcopy
8967 do
8968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8969 echo "$as_me:$LINENO: checking for $ac_func" >&5
8970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_var+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
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
8982 extern "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. */
8986 char $ac_func ();
8987 char (*f) ();
8988
8989 #ifdef F77_DUMMY_MAIN
8990 # ifdef __cplusplus
8991 extern "C"
8992 # endif
8993 int F77_DUMMY_MAIN() { return 1; }
8994 #endif
8995 int
8996 main ()
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)
9002 choke me
9003 #else
9004 f = $ac_func;
9005 #endif
9006
9007 ;
9008 return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (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"
9024 else
9025 echo "$as_me: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 eval "$as_ac_var=no"
9028 fi
9029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9030 fi
9031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9033 if 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
9038 fi
9039 done
9040
9041
9042
9043 cat >>confdefs.h <<\_ACEOF
9044 #define XML_NS 1
9045 _ACEOF
9046
9047
9048 cat >>confdefs.h <<\_ACEOF
9049 #define XML_DTD 1
9050 _ACEOF
9051
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define XML_CONTEXT_BYTES 1024
9055 _ACEOF
9056
9057
9058 ac_config_files="$ac_config_files Makefile"
9059
9060 cat >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
9105 if 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
9112 fi
9113 rm -f confcache
9114
9115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9116 # Let make expand exec_prefix.
9117 test "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).
9123 if test "x$srcdir" = x.; then
9124 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9125 s/:*\$(srcdir):*/:/;
9126 s/:*\${srcdir}:*/:/;
9127 s/:*@srcdir@:*/:/;
9128 s/^\([^=]*=[ ]*\):*/\1/;
9129 s/:*$//;
9130 s/^[^=]*=[ ]*$//;
9131 }'
9132 fi
9133
9134 DEFS=-DHAVE_CONFIG_H
9135
9136
9137 : ${CONFIG_STATUS=./config.status}
9138 ac_clean_files_save=$ac_clean_files
9139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9140 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9141 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9142 cat >$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
9149 debug=false
9150 SHELL=\${CONFIG_SHELL-$SHELL}
9151 _ACEOF
9152
9153 cat >>$CONFIG_STATUS <<\_ACEOF
9154
9155 ## --------------------- ##
9156 ## M4sh Initialization. ##
9157 ## --------------------- ##
9158
9159 # Be Bourne compatible
9160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9161 emulate sh
9162 NULLCMD=:
9163 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9164 set -o posix
9165 fi
9166
9167 # NLS nuisances.
9168 # Support unset when possible.
9169 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9170 as_unset=unset
9171 else
9172 as_unset=false
9173 fi
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.
9202 as_me=`(basename "$0") 2>/dev/null ||
9203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9204 X"$0" : 'X\(//\)$' \| \
9205 X"$0" : 'X\(/\)$' \| \
9206 . : '\(.\)' 2>/dev/null ||
9207 echo 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.
9215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9218 as_cr_digits='0123456789'
9219 as_cr_alnum=$as_cr_Letters$as_cr_digits
9220
9221 # The user is always right.
9222 if 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
9232 fi
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
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9250 done
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
9261 echo "$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
9267 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9268 do
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
9286 done
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
9310 echo "$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
9322 case `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= ;;
9327 esac
9328
9329 if expr a : '\(a\)' >/dev/null 2>&1; then
9330 as_expr=expr
9331 else
9332 as_expr=false
9333 fi
9334
9335 rm -f conf$$ conf$$.exe conf$$.file
9336 echo >conf$$.file
9337 if 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
9346 elif ln conf$$.file conf$$ 2>/dev/null; then
9347 as_ln_s=ln
9348 else
9349 as_ln_s='cp -p'
9350 fi
9351 rm -f conf$$ conf$$.exe conf$$.file
9352
9353 as_executable_p="test -f"
9354
9355 # Sed expression to map a string onto a valid CPP name.
9356 as_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.
9359 as_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.
9364 as_nl='
9365 '
9366 IFS=" $as_nl"
9367
9368 # CDPATH.
9369 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9370
9371 exec 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.
9376 exec 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
9383 cat >&5 <<_CSEOF
9384
9385 This file was extended by expat $as_me 1.95.6, which was
9386 generated 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
9395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9396 echo >&5
9397 _ACEOF
9398
9399 # Files that config.status was made for.
9400 if test -n "$ac_config_files"; then
9401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9402 fi
9403
9404 if test -n "$ac_config_headers"; then
9405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9406 fi
9407
9408 if test -n "$ac_config_links"; then
9409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9410 fi
9411
9412 if test -n "$ac_config_commands"; then
9413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9414 fi
9415
9416 cat >>$CONFIG_STATUS <<\_ACEOF
9417
9418 ac_cs_usage="\
9419 \`$as_me' instantiates files from templates according to the
9420 current configuration.
9421
9422 Usage: $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
9433 Configuration files:
9434 $config_files
9435
9436 Configuration headers:
9437 $config_headers
9438
9439 Report bugs to <bug-autoconf@gnu.org>."
9440 _ACEOF
9441
9442 cat >>$CONFIG_STATUS <<_ACEOF
9443 ac_cs_version="\\
9444 expat config.status 1.95.6
9445 configured by $0, generated by GNU Autoconf 2.53,
9446 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9447
9448 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9449 Free Software Foundation, Inc.
9450 This config.status script is free software; the Free Software Foundation
9451 gives unlimited permission to copy, distribute and modify it."
9452 srcdir=$srcdir
9453 INSTALL="$INSTALL"
9454 _ACEOF
9455
9456 cat >>$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.
9459 ac_need_defaults=:
9460 while test $# != 0
9461 do
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
9479 cat >>$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
9484 cat >>$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
9490 Try \`$0 --help' for more information." >&5
9491 echo "$as_me: error: ambiguous option: $1
9492 Try \`$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
9509 Try \`$0 --help' for more information." >&5
9510 echo "$as_me: error: unrecognized option: $1
9511 Try \`$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
9518 done
9519
9520 _ACEOF
9521
9522
9523
9524
9525
9526 cat >>$CONFIG_STATUS <<\_ACEOF
9527 for ac_config_target in $ac_config_targets
9528 do
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
9534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9535 { (exit 1); exit 1; }; };;
9536 esac
9537 done
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.
9543 if $ac_need_defaults; then
9544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9546 fi
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
9572 cat >>$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
9580 if 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
9584 s,@SHELL@,$SHELL,;t t
9585 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9586 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9587 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9588 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9589 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9590 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9591 s,@exec_prefix@,$exec_prefix,;t t
9592 s,@prefix@,$prefix,;t t
9593 s,@program_transform_name@,$program_transform_name,;t t
9594 s,@bindir@,$bindir,;t t
9595 s,@sbindir@,$sbindir,;t t
9596 s,@libexecdir@,$libexecdir,;t t
9597 s,@datadir@,$datadir,;t t
9598 s,@sysconfdir@,$sysconfdir,;t t
9599 s,@sharedstatedir@,$sharedstatedir,;t t
9600 s,@localstatedir@,$localstatedir,;t t
9601 s,@libdir@,$libdir,;t t
9602 s,@includedir@,$includedir,;t t
9603 s,@oldincludedir@,$oldincludedir,;t t
9604 s,@infodir@,$infodir,;t t
9605 s,@mandir@,$mandir,;t t
9606 s,@build_alias@,$build_alias,;t t
9607 s,@host_alias@,$host_alias,;t t
9608 s,@target_alias@,$target_alias,;t t
9609 s,@DEFS@,$DEFS,;t t
9610 s,@ECHO_C@,$ECHO_C,;t t
9611 s,@ECHO_N@,$ECHO_N,;t t
9612 s,@ECHO_T@,$ECHO_T,;t t
9613 s,@LIBS@,$LIBS,;t t
9614 s,@build@,$build,;t t
9615 s,@build_cpu@,$build_cpu,;t t
9616 s,@build_vendor@,$build_vendor,;t t
9617 s,@build_os@,$build_os,;t t
9618 s,@host@,$host,;t t
9619 s,@host_cpu@,$host_cpu,;t t
9620 s,@host_vendor@,$host_vendor,;t t
9621 s,@host_os@,$host_os,;t t
9622 s,@CC@,$CC,;t t
9623 s,@CFLAGS@,$CFLAGS,;t t
9624 s,@LDFLAGS@,$LDFLAGS,;t t
9625 s,@CPPFLAGS@,$CPPFLAGS,;t t
9626 s,@ac_ct_CC@,$ac_ct_CC,;t t
9627 s,@EXEEXT@,$EXEEXT,;t t
9628 s,@OBJEXT@,$OBJEXT,;t t
9629 s,@LN_S@,$LN_S,;t t
9630 s,@ECHO@,$ECHO,;t t
9631 s,@RANLIB@,$RANLIB,;t t
9632 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9633 s,@STRIP@,$STRIP,;t t
9634 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9635 s,@CPP@,$CPP,;t t
9636 s,@LIBTOOL@,$LIBTOOL,;t t
9637 s,@LIBCURRENT@,$LIBCURRENT,;t t
9638 s,@LIBREVISION@,$LIBREVISION,;t t
9639 s,@LIBAGE@,$LIBAGE,;t t
9640 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9641 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9642 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9643 s,@LIBOBJS@,$LIBOBJS,;t t
9644 s,@FILEMAP@,$FILEMAP,;t t
9645 CEOF
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
9686 fi # test -n "$CONFIG_FILES"
9687
9688 _ACEOF
9689 cat >>$CONFIG_STATUS <<\_ACEOF
9690 for 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 ||
9709 echo 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=.;;
9718 esac
9719 as_dummy="$ac_dir"
9720 for 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
9729 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9730 { (exit 1); exit 1; }; }
9731 ;;
9732 esac
9733 done; }
9734
9735 ac_builddir=.
9736
9737 if 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'`
9741 else
9742 ac_dir_suffix= ac_top_builddir=
9743 fi
9744
9745 case $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 ;;
9759 esac
9760 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9761 # absolute.
9762 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9763 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9764 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9765 ac_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
9775 echo "$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
9798 echo "$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
9811 echo "$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
9817 cat >>$CONFIG_STATUS <<_ACEOF
9818 sed "$ac_vpsub
9819 $extrasub
9820 _ACEOF
9821 cat >>$CONFIG_STATUS <<\_ACEOF
9822 :t
9823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9824 s,@configure_input@,$configure_input,;t t
9825 s,@srcdir@,$ac_srcdir,;t t
9826 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9827 s,@top_srcdir@,$ac_top_srcdir,;t t
9828 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9829 s,@builddir@,$ac_builddir,;t t
9830 s,@abs_builddir@,$ac_abs_builddir,;t t
9831 s,@top_builddir@,$ac_top_builddir,;t t
9832 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9833 s,@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
9843 done
9844 _ACEOF
9845 cat >>$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.
9855 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9856 ac_dB='[ ].*$,\1#\2'
9857 ac_dC=' '
9858 ac_dD=',;t'
9859 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9860 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9861 ac_uB='$,\1#\2define\3'
9862 ac_uC=' '
9863 ac_uD=',;t'
9864
9865 for 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
9878 echo "$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
9889 echo "$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
9902 echo "$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.
9919 rm -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'.
9926 cat >confdef2sed.sed <<\_ACEOF
9927 s/[\\&,]/\\&/g
9928 s,[\\$`],\\&,g
9929 t clear
9930 : clear
9931 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9932 t end
9933 s,^[ ]*#[ ]*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.
9939 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9940 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9941 rm -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.
9946 cat >>conftest.undefs <<\_ACEOF
9947 s,^[ ]*#[ ]*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).
9952 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9953 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9954 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9955 echo ' :' >>$CONFIG_STATUS
9956 rm -f conftest.tail
9957 while grep . conftest.defines >/dev/null
9958 do
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
9975 done
9976 rm -f conftest.defines
9977 echo ' fi # egrep' >>$CONFIG_STATUS
9978 echo >>$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).
9982 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9983 rm -f conftest.tail
9984 while grep . conftest.undefs >/dev/null
9985 do
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
10002 done
10003 rm -f conftest.undefs
10004
10005 cat >>$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
10019 echo "$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 ||
10027 echo 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=.;;
10036 esac
10037 as_dummy="$ac_dir"
10038 for 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
10047 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10048 { (exit 1); exit 1; }; }
10049 ;;
10050 esac
10051 done; }
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
10060 done
10061 _ACEOF
10062
10063 cat >>$CONFIG_STATUS <<\_ACEOF
10064
10065 { (exit 0); exit 0; }
10066 _ACEOF
10067 chmod +x $CONFIG_STATUS
10068 ac_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.
10079 if 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; }
10087 fi
10088
10089
10090 abs_srcdir="`cd $srcdir && pwd`"
10091 abs_builddir="`pwd`"
10092 if test "$abs_srcdir" != "$abs_builddir"; then
10093 make mkdir-init
10094 fi