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