Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="htdig/htdig.cc"
429 ac_config_libobj_dir=htlib
430 ac_default_prefix=/opt/www
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subdirs_all="$ac_subdirs_all db"
469 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 HTDIG_MAJOR_VERSION HTDIG_MINOR_VERSION HTDIG_MICRO_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CONFIG_DIR DEFAULT_CONFIG_FILE COMMON_DIR DATABASE_DIR CGIBIN_DIR SEARCH_DIR SEARCH_FORM IMAGE_DIR IMAGE_URL_PREFIX TESTS_TRUE TESTS_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LEX LEXLIB LEX_OUTPUT_ROOT YACC LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED PERL FIND GUNZIP RRDTOOL TAR MV SENDMAIL TIME TIMEV HAVE_SSL ALLOCA LIBOBJS extra_ldflags USER APACHE APACHE_MODULES subdirs LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807 done
808
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829 do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882 else
883 ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958 \`configure' configures this package to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980 cat <<_ACEOF
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007 _ACEOF
1008
1009 cat <<\_ACEOF
1010
1011 Program names:
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
1016 System types:
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 _ACEOF
1020 fi
1021
1022 if test -n "$ac_init_help"; then
1023
1024 cat <<\_ACEOF
1025
1026 Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --enable-maintainer-mode enable make rules and dependencies not useful
1030 (and sometimes confusing) to the casual installer
1031 --enable-tests do build a version with run-time tests.
1032 --disable-dependency-tracking Speeds up one-time builds
1033 --enable-dependency-tracking Do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-bigfile enable Linux, AIX, HP/UX, Solaris big files.
1042
1043 Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-config-dir=DIR where your config directory is [PREFIX/conf]
1047 --with-default-config-file=FILE
1048 where the various programs will look for a
1049 configuration file [PREFIX/conf/htdig.conf]
1050 --with-common-dir=DIR where your .html templates are stored
1051 [PREFIX/share/htdig]
1052 --with-database-dir=DIR where your database directory is
1053 [PREFIX/var/htdig]
1054 --with-cgi-bin-dir=DIR where your web server cgi-bin directory is
1055 [PREFIX/cgi-bin]
1056 --with-search-dir=DIR where the sample search form should be installed
1057 [PREFIX/htdocs/htdig]
1058 --with-search-form=FILE the name for the sample search form
1059 [search.html]
1060 --with-image-dir=DIR where the ht://Dig images are installed
1061 [PREFIX/htdocs/htdig]
1062 --with-image-url-prefix=LOCATION
1063 the URL path to the installed images [/htdig]
1064 --with-rx with system rx instead of regex [no]
1065 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1066 --with-pic try to use only PIC/non-PIC objects [default=use
1067 both]
1068 --with-tags[=TAGS]
1069 include additional configurations [automatic]
1070 --with-ssl=DIR enable ssl [ default paths, then /usr/local/ssl
1071 /usr/lib/ssl /usr/ssl /usr/pkg ]
1072 --with-zlib=DIR root directory path of zlib installation
1073 --without-zlib to disable zlib usage completely
1074 --with-apache=PATH absolute path name of apache server
1075 (default is to search httpd in
1076 /usr/local/apache/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin),
1077 --without-apache to disable apache detection
1078
1079 Some influential environment variables:
1080 CXX C++ compiler command
1081 CXXFLAGS C++ compiler flags
1082 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1083 nonstandard directory <lib dir>
1084 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1085 headers in a nonstandard directory <include dir>
1086 CC C compiler command
1087 CFLAGS C compiler flags
1088 CPP C preprocessor
1089 CXXCPP C++ preprocessor
1090 F77 Fortran 77 compiler command
1091 FFLAGS Fortran 77 compiler flags
1092
1093 Use these variables to override the choices made by `configure' or to help
1094 it to find libraries and programs with nonstandard names/locations.
1095
1096 _ACEOF
1097 fi
1098
1099 if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106 if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110 else
1111 ac_dir_suffix= ac_top_builddir=
1112 fi
1113
1114 case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128 esac
1129
1130 # Do not use `cd foo && pwd` to compute absolute paths, because
1131 # the directories may not exist.
1132 case `pwd` in
1133 .) ac_abs_builddir="$ac_dir";;
1134 *)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149 esac
1150 case $ac_abs_builddir in
1151 .) ac_abs_srcdir=$ac_srcdir;;
1152 *)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167 esac
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
1178 test -f $ac_srcdir/configure.in; then
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
1184 cd "$ac_popdir"
1185 done
1186 fi
1187
1188 test -n "$ac_init_help" && exit 0
1189 if $ac_init_version; then
1190 cat <<\_ACEOF
1191
1192 Copyright (C) 2003 Free Software Foundation, Inc.
1193 This configure script is free software; the Free Software Foundation
1194 gives unlimited permission to copy, distribute and modify it.
1195 _ACEOF
1196 exit 0
1197 fi
1198 exec 5>config.log
1199 cat >&5 <<_ACEOF
1200 This file contains any messages produced by compilers while
1201 running configure, to aid debugging if configure makes a mistake.
1202
1203 It was created by $as_me, which was
1204 generated by GNU Autoconf 2.59. Invocation command line was
1205
1206 $ $0 $@
1207
1208 _ACEOF
1209 {
1210 cat <<_ASUNAME
1211 ## --------- ##
1212 ## Platform. ##
1213 ## --------- ##
1214
1215 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1216 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1217 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1218 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1219 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220
1221 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1222 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1223
1224 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1225 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1226 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1227 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1228 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1229 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1230 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231
1232 _ASUNAME
1233
1234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 for as_dir in $PATH
1236 do
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 echo "PATH: $as_dir"
1240 done
1241
1242 } >&5
1243
1244 cat >&5 <<_ACEOF
1245
1246
1247 ## ----------- ##
1248 ## Core tests. ##
1249 ## ----------- ##
1250
1251 _ACEOF
1252
1253
1254 # Keep a trace of the command line.
1255 # Strip out --no-create and --no-recursion so they do not pile up.
1256 # Strip out --silent because we don't want to record it for future runs.
1257 # Also quote any args containing shell meta-characters.
1258 # Make two passes to allow for proper duplicate-argument suppression.
1259 ac_configure_args=
1260 ac_configure_args0=
1261 ac_configure_args1=
1262 ac_sep=
1263 ac_must_keep_next=false
1264 for ac_pass in 1 2
1265 do
1266 for ac_arg
1267 do
1268 case $ac_arg in
1269 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 continue ;;
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 esac
1276 case $ac_pass in
1277 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 2)
1279 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1280 if test $ac_must_keep_next = true; then
1281 ac_must_keep_next=false # Got value, back to normal.
1282 else
1283 case $ac_arg in
1284 *=* | --config-cache | -C | -disable-* | --disable-* \
1285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1287 | -with-* | --with-* | -without-* | --without-* | --x)
1288 case "$ac_configure_args0 " in
1289 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1290 esac
1291 ;;
1292 -* ) ac_must_keep_next=true ;;
1293 esac
1294 fi
1295 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1296 # Get rid of the leading space.
1297 ac_sep=" "
1298 ;;
1299 esac
1300 done
1301 done
1302 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1303 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304
1305 # When interrupted or exit'd, cleanup temporary files, and complete
1306 # config.log. We remove comments because anyway the quotes in there
1307 # would cause problems or look ugly.
1308 # WARNING: Be sure not to use single quotes in there, as some shells,
1309 # such as our DU 5.0 friend, will then `close' the trap.
1310 trap 'exit_status=$?
1311 # Save into config.log some information that might help in debugging.
1312 {
1313 echo
1314
1315 cat <<\_ASBOX
1316 ## ---------------- ##
1317 ## Cache variables. ##
1318 ## ---------------- ##
1319 _ASBOX
1320 echo
1321 # The following way of writing the cache mishandles newlines in values,
1322 {
1323 (set) 2>&1 |
1324 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1325 *ac_space=\ *)
1326 sed -n \
1327 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1329 ;;
1330 *)
1331 sed -n \
1332 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 ;;
1334 esac;
1335 }
1336 echo
1337
1338 cat <<\_ASBOX
1339 ## ----------------- ##
1340 ## Output variables. ##
1341 ## ----------------- ##
1342 _ASBOX
1343 echo
1344 for ac_var in $ac_subst_vars
1345 do
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1348 done | sort
1349 echo
1350
1351 if test -n "$ac_subst_files"; then
1352 cat <<\_ASBOX
1353 ## ------------- ##
1354 ## Output files. ##
1355 ## ------------- ##
1356 _ASBOX
1357 echo
1358 for ac_var in $ac_subst_files
1359 do
1360 eval ac_val=$`echo $ac_var`
1361 echo "$ac_var='"'"'$ac_val'"'"'"
1362 done | sort
1363 echo
1364 fi
1365
1366 if test -s confdefs.h; then
1367 cat <<\_ASBOX
1368 ## ----------- ##
1369 ## confdefs.h. ##
1370 ## ----------- ##
1371 _ASBOX
1372 echo
1373 sed "/^$/d" confdefs.h | sort
1374 echo
1375 fi
1376 test "$ac_signal" != 0 &&
1377 echo "$as_me: caught signal $ac_signal"
1378 echo "$as_me: exit $exit_status"
1379 } >&5
1380 rm -f core *.core &&
1381 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382 exit $exit_status
1383 ' 0
1384 for ac_signal in 1 2 13 15; do
1385 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386 done
1387 ac_signal=0
1388
1389 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1390 rm -rf conftest* confdefs.h
1391 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392 echo >confdefs.h
1393
1394 # Predefined preprocessor variables.
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_NAME "$PACKAGE_NAME"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_STRING "$PACKAGE_STRING"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418 _ACEOF
1419
1420
1421 # Let the site file select an alternate cache file if it wants to.
1422 # Prefer explicitly selected file to automatically selected ones.
1423 if test -z "$CONFIG_SITE"; then
1424 if test "x$prefix" != xNONE; then
1425 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1426 else
1427 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1428 fi
1429 fi
1430 for ac_site_file in $CONFIG_SITE; do
1431 if test -r "$ac_site_file"; then
1432 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433 echo "$as_me: loading site script $ac_site_file" >&6;}
1434 sed 's/^/| /' "$ac_site_file" >&5
1435 . "$ac_site_file"
1436 fi
1437 done
1438
1439 if test -r "$cache_file"; then
1440 # Some versions of bash will fail to source /dev/null (special
1441 # files actually), so we avoid doing that.
1442 if test -f "$cache_file"; then
1443 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444 echo "$as_me: loading cache $cache_file" >&6;}
1445 case $cache_file in
1446 [\\/]* | ?:[\\/]* ) . $cache_file;;
1447 *) . ./$cache_file;;
1448 esac
1449 fi
1450 else
1451 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452 echo "$as_me: creating cache $cache_file" >&6;}
1453 >$cache_file
1454 fi
1455
1456 # Check that the precious variables saved in the cache have kept the same
1457 # value.
1458 ac_cache_corrupted=false
1459 for ac_var in `(set) 2>&1 |
1460 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462 eval ac_new_set=\$ac_env_${ac_var}_set
1463 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464 eval ac_new_val="\$ac_env_${ac_var}_value"
1465 case $ac_old_set,$ac_new_set in
1466 set,)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,set)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,);;
1475 *)
1476 if test "x$ac_old_val" != "x$ac_new_val"; then
1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1478 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1479 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1480 echo "$as_me: former value: $ac_old_val" >&2;}
1481 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1482 echo "$as_me: current value: $ac_new_val" >&2;}
1483 ac_cache_corrupted=:
1484 fi;;
1485 esac
1486 # Pass precious variables to config.status.
1487 if test "$ac_new_set" = set; then
1488 case $ac_new_val in
1489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 *) ac_arg=$ac_var=$ac_new_val ;;
1492 esac
1493 case " $ac_configure_args " in
1494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1496 esac
1497 fi
1498 done
1499 if $ac_cache_corrupted; then
1500 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504 { (exit 1); exit 1; }; }
1505 fi
1506
1507 ac_ext=c
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 #
1533 # ht://Dig's version
1534 #
1535 VERSION=`cat ${srcdir}/.version`
1536 HTDIG_MAJOR_VERSION=`expr $VERSION : '\([0-9][0-9]*\)'`
1537
1538 HTDIG_MINOR_VERSION=`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`
1539
1540 HTDIG_MICRO_VERSION=`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`
1541
1542
1543 am__api_version="1.7"
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Find a good install program. We prefer a C program (faster),
1570 # so one script is as good as another. But avoid the broken or
1571 # incompatible versions:
1572 # SysV /etc/install, /usr/sbin/install
1573 # SunOS /usr/etc/install
1574 # IRIX /sbin/install
1575 # AIX /bin/install
1576 # AmigaOS /C/install, which installs bootblocks on floppy discs
1577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580 # OS/2's system install, which has a completely different semantic
1581 # ./install, which can be erroneously created by make from ./install.sh.
1582 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1584 if test -z "$INSTALL"; then
1585 if test "${ac_cv_path_install+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 # Account for people who put trailing slashes in PATH elements.
1594 case $as_dir/ in
1595 ./ | .// | /cC/* | \
1596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1597 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1598 /usr/ucb/* ) ;;
1599 *)
1600 # OSF1 and SCO ODT 3.0 have their own names for install.
1601 # Don't use installbsd from OSF since it installs stuff as root
1602 # by default.
1603 for ac_prog in ginstall scoinst install; do
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1606 if test $ac_prog = install &&
1607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1609 :
1610 elif test $ac_prog = install &&
1611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612 # program-specific install script used by HP pwplus--don't use.
1613 :
1614 else
1615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 break 3
1617 fi
1618 fi
1619 done
1620 done
1621 ;;
1622 esac
1623 done
1624
1625
1626 fi
1627 if test "${ac_cv_path_install+set}" = set; then
1628 INSTALL=$ac_cv_path_install
1629 else
1630 # As a last resort, use the slow shell script. We don't cache a
1631 # path for INSTALL within a source directory, because that will
1632 # break other packages using the cache if that directory is
1633 # removed, or if the path is relative.
1634 INSTALL=$ac_install_sh
1635 fi
1636 fi
1637 echo "$as_me:$LINENO: result: $INSTALL" >&5
1638 echo "${ECHO_T}$INSTALL" >&6
1639
1640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641 # It thinks the first close brace ends the variable substitution.
1642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1643
1644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1645
1646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
1648 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1650 # Just in case
1651 sleep 1
1652 echo timestamp > conftest.file
1653 # Do `set' in a subshell so we don't clobber the current shell's
1654 # arguments. Must try -L first in case configure is actually a
1655 # symlink; some systems play weird games with the mod time of symlinks
1656 # (eg FreeBSD returns the mod time of the symlink's containing
1657 # directory).
1658 if (
1659 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1660 if test "$*" = "X"; then
1661 # -L didn't work.
1662 set X `ls -t $srcdir/configure conftest.file`
1663 fi
1664 rm -f conftest.file
1665 if test "$*" != "X $srcdir/configure conftest.file" \
1666 && test "$*" != "X conftest.file $srcdir/configure"; then
1667
1668 # If neither matched, then we have a broken ls. This can happen
1669 # if, for instance, CONFIG_SHELL is bash and it inherits a
1670 # broken ls alias from the environment. This has actually
1671 # happened. Such a system could not be considered "sane".
1672 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&5
1674 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1675 alias in your environment" >&2;}
1676 { (exit 1); exit 1; }; }
1677 fi
1678
1679 test "$2" = conftest.file
1680 )
1681 then
1682 # Ok.
1683 :
1684 else
1685 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1686 Check your system clock" >&5
1687 echo "$as_me: error: newly created file is older than distributed files!
1688 Check your system clock" >&2;}
1689 { (exit 1); exit 1; }; }
1690 fi
1691 echo "$as_me:$LINENO: result: yes" >&5
1692 echo "${ECHO_T}yes" >&6
1693 test "$program_prefix" != NONE &&
1694 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1695 # Use a double $ so make ignores it.
1696 test "$program_suffix" != NONE &&
1697 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1698 # Double any \ or $. echo might interpret backslashes.
1699 # By default was `s,x,x', remove it if useless.
1700 cat <<\_ACEOF >conftest.sed
1701 s/[\\$]/&&/g;s/;s,x,x,$//
1702 _ACEOF
1703 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704 rm conftest.sed
1705
1706
1707 # expand $ac_aux_dir to an absolute path
1708 am_aux_dir=`cd $ac_aux_dir && pwd`
1709
1710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1711 # Use eval to expand $SHELL
1712 if eval "$MISSING --run true"; then
1713 am_missing_run="$MISSING --run "
1714 else
1715 am_missing_run=
1716 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1717 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1718 fi
1719
1720 for ac_prog in gawk mawk nawk awk
1721 do
1722 # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_AWK+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$AWK"; then
1730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_AWK="$ac_prog"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 AWK=$ac_cv_prog_AWK
1749 if test -n "$AWK"; then
1750 echo "$as_me:$LINENO: result: $AWK" >&5
1751 echo "${ECHO_T}$AWK" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757 test -n "$AWK" && break
1758 done
1759
1760 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1761 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1763 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766 cat >conftest.make <<\_ACEOF
1767 all:
1768 @echo 'ac_maketemp="$(MAKE)"'
1769 _ACEOF
1770 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1771 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1772 if test -n "$ac_maketemp"; then
1773 eval ac_cv_prog_make_${ac_make}_set=yes
1774 else
1775 eval ac_cv_prog_make_${ac_make}_set=no
1776 fi
1777 rm -f conftest.make
1778 fi
1779 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1780 echo "$as_me:$LINENO: result: yes" >&5
1781 echo "${ECHO_T}yes" >&6
1782 SET_MAKE=
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 SET_MAKE="MAKE=${MAKE-make}"
1787 fi
1788
1789 rm -rf .tst 2>/dev/null
1790 mkdir .tst 2>/dev/null
1791 if test -d .tst; then
1792 am__leading_dot=.
1793 else
1794 am__leading_dot=_
1795 fi
1796 rmdir .tst 2>/dev/null
1797
1798 # test to see if srcdir already configured
1799 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1800 test -f $srcdir/config.status; then
1801 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1802 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
1805
1806 # test whether we have cygpath
1807 if test -z "$CYGPATH_W"; then
1808 if (cygpath --version) >/dev/null 2>/dev/null; then
1809 CYGPATH_W='cygpath -w'
1810 else
1811 CYGPATH_W=echo
1812 fi
1813 fi
1814
1815
1816 # Define the identity of the package.
1817 PACKAGE=htdig
1818 VERSION=$VERSION
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE "$PACKAGE"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define VERSION "$VERSION"
1828 _ACEOF
1829
1830 # Some tools Automake needs.
1831
1832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1833
1834
1835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1836
1837
1838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1839
1840
1841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1842
1843
1844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1845
1846
1847 AMTAR=${AMTAR-"${am_missing_run}tar"}
1848
1849 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1850
1851 # Installed binaries are usually stripped using `strip' when the user
1852 # run `make install-strip'. However `strip' might not be the right
1853 # tool to use in cross-compilation environments, therefore Automake
1854 # will honor the `STRIP' environment variable to overrule this program.
1855 if test "$cross_compiling" != no; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}strip; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_STRIP+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$STRIP"; then
1865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 STRIP=$ac_cv_prog_STRIP
1884 if test -n "$STRIP"; then
1885 echo "$as_me:$LINENO: result: $STRIP" >&5
1886 echo "${ECHO_T}$STRIP" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892 fi
1893 if test -z "$ac_cv_prog_STRIP"; then
1894 ac_ct_STRIP=$STRIP
1895 # Extract the first word of "strip", so it can be a program name with args.
1896 set dummy strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_STRIP"; then
1903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_STRIP="strip"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916 done
1917 done
1918
1919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920 fi
1921 fi
1922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1923 if test -n "$ac_ct_STRIP"; then
1924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1925 echo "${ECHO_T}$ac_ct_STRIP" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 STRIP=$ac_ct_STRIP
1932 else
1933 STRIP="$ac_cv_prog_STRIP"
1934 fi
1935
1936 fi
1937 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1938
1939 # We need awk for the "check" target. The system "awk" is bad on
1940 # some platforms.
1941
1942
1943
1944
1945 ac_config_headers="$ac_config_headers include/config.h"
1946
1947
1948
1949
1950 # Initialize maintainer mode
1951 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1952 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1953 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1954 if test "${enable_maintainer_mode+set}" = set; then
1955 enableval="$enable_maintainer_mode"
1956 USE_MAINTAINER_MODE=$enableval
1957 else
1958 USE_MAINTAINER_MODE=no
1959 fi;
1960 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1961 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1962
1963
1964 if test $USE_MAINTAINER_MODE = yes; then
1965 MAINTAINER_MODE_TRUE=
1966 MAINTAINER_MODE_FALSE='#'
1967 else
1968 MAINTAINER_MODE_TRUE='#'
1969 MAINTAINER_MODE_FALSE=
1970 fi
1971
1972 MAINT=$MAINTAINER_MODE_TRUE
1973
1974
1975
1976
1977 # Check whether --with-config-dir or --without-config-dir was given.
1978 if test "${with_config_dir+set}" = set; then
1979 withval="$with_config_dir"
1980 CONFIG_DIR="$withval"
1981 else
1982 CONFIG_DIR='${prefix}/conf'
1983 fi;
1984
1985
1986 # In the below, the strings [ and ] expand to [ and ]
1987
1988 # Check whether --with-default-config-file or --without-default-config-file was given.
1989 if test "${with_default_config_file+set}" = set; then
1990 withval="$with_default_config_file"
1991 DEFAULT_CONFIG_FILE="$withval"
1992 else
1993 DEFAULT_CONFIG_FILE='${CONFIG_DIR}/htdig.conf'
1994 fi;
1995
1996
1997
1998 # Check whether --with-common-dir or --without-common-dir was given.
1999 if test "${with_common_dir+set}" = set; then
2000 withval="$with_common_dir"
2001 COMMON_DIR="$withval"
2002 else
2003 COMMON_DIR='${datadir}/htdig'
2004 fi;
2005
2006
2007
2008 # Check whether --with-database-dir or --without-database-dir was given.
2009 if test "${with_database_dir+set}" = set; then
2010 withval="$with_database_dir"
2011 DATABASE_DIR="$withval"
2012 else
2013 DATABASE_DIR='${localstatedir}/htdig'
2014 fi;
2015
2016
2017
2018 # Check whether --with-cgi-bin-dir or --without-cgi-bin-dir was given.
2019 if test "${with_cgi_bin_dir+set}" = set; then
2020 withval="$with_cgi_bin_dir"
2021 CGIBIN_DIR="$withval"
2022 else
2023 CGIBIN_DIR='${prefix}/cgi-bin'
2024 fi;
2025
2026
2027
2028 # Check whether --with-search-dir or --without-search-dir was given.
2029 if test "${with_search_dir+set}" = set; then
2030 withval="$with_search_dir"
2031 SEARCH_DIR="$withval"
2032 else
2033 SEARCH_DIR='${prefix}/htdocs/htdig'
2034 fi;
2035
2036
2037
2038 # Check whether --with-search-form or --without-search-form was given.
2039 if test "${with_search_form+set}" = set; then
2040 withval="$with_search_form"
2041 SEARCH_FORM="$withval"
2042 else
2043 SEARCH_FORM='search.html'
2044 fi;
2045
2046
2047
2048 # Check whether --with-image-dir or --without-image-dir was given.
2049 if test "${with_image_dir+set}" = set; then
2050 withval="$with_image_dir"
2051 IMAGE_DIR="$withval"
2052 else
2053 IMAGE_DIR='${prefix}/htdocs/htdig'
2054 fi;
2055
2056
2057
2058 # Check whether --with-image-url-prefix or --without-image-url-prefix was given.
2059 if test "${with_image_url_prefix+set}" = set; then
2060 withval="$with_image_url_prefix"
2061 IMAGE_URL_PREFIX="$withval"
2062 else
2063 IMAGE_URL_PREFIX='/htdig'
2064 fi;
2065
2066
2067
2068 # Check whether --with-rx or --without-rx was given.
2069 if test "${with_rx+set}" = set; then
2070 withval="$with_rx"
2071 WITH_RX="$withval"
2072 else
2073 WITH_RX='no'
2074 fi;
2075
2076 # If the user doesn't want tests
2077 # Check whether --enable-tests or --disable-tests was given.
2078 if test "${enable_tests+set}" = set; then
2079 enableval="$enable_tests"
2080 htdig_cv_tests="$enable_tests"
2081 else
2082 htdig_cv_tests="no"
2083 fi;
2084
2085
2086 if test x$htdig_cv_tests = xyes; then
2087 TESTS_TRUE=
2088 TESTS_FALSE='#'
2089 else
2090 TESTS_TRUE='#'
2091 TESTS_FALSE=
2092 fi
2093
2094
2095 # Checks for programs.
2096 ac_ext=cc
2097 ac_cpp='$CXXCPP $CPPFLAGS'
2098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2103 do
2104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CXX+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$CXX"; then
2112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2124 fi
2125 done
2126 done
2127
2128 fi
2129 fi
2130 CXX=$ac_cv_prog_CXX
2131 if test -n "$CXX"; then
2132 echo "$as_me:$LINENO: result: $CXX" >&5
2133 echo "${ECHO_T}$CXX" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139 test -n "$CXX" && break
2140 done
2141 fi
2142 if test -z "$CXX"; then
2143 ac_ct_CXX=$CXX
2144 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2145 do
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$ac_ct_CXX"; then
2154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_ac_ct_CXX="$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2173 if test -n "$ac_ct_CXX"; then
2174 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2175 echo "${ECHO_T}$ac_ct_CXX" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 test -n "$ac_ct_CXX" && break
2182 done
2183 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2184
2185 CXX=$ac_ct_CXX
2186 fi
2187
2188
2189 # Provide some information about the compiler.
2190 echo "$as_me:$LINENO:" \
2191 "checking for C++ compiler version" >&5
2192 ac_compiler=`set X $ac_compile; echo $2`
2193 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2194 (eval $ac_compiler --version </dev/null >&5) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2199 (eval $ac_compiler -v </dev/null >&5) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }
2203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2204 (eval $ac_compiler -V </dev/null >&5) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h. */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2215
2216 int
2217 main ()
2218 {
2219
2220 ;
2221 return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2230 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2233 (eval $ac_link_default) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; then
2237 # Find the output, starting from the most likely. This scheme is
2238 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2239 # resort.
2240
2241 # Be careful to initialize this variable, since it used to be cached.
2242 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2243 ac_cv_exeext=
2244 # b.out is created by i960 compilers.
2245 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2246 do
2247 test -f "$ac_file" || continue
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2250 ;;
2251 conftest.$ac_ext )
2252 # This is the source file.
2253 ;;
2254 [ab].out )
2255 # We found the default executable, but exeext='' is most
2256 # certainly right.
2257 break;;
2258 *.* )
2259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 # FIXME: I believe we export ac_cv_exeext for Libtool,
2261 # but it would be cool to find out if it's true. Does anybody
2262 # maintain Libtool? --akim.
2263 export ac_cv_exeext
2264 break;;
2265 * )
2266 break;;
2267 esac
2268 done
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: C++ compiler cannot create executables
2276 See \`config.log' for more details." >&2;}
2277 { (exit 77); exit 77; }; }
2278 fi
2279
2280 ac_exeext=$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_file" >&5
2282 echo "${ECHO_T}$ac_file" >&6
2283
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2287 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2289 # If not cross compiling, check that we can run a simple program.
2290 if test "$cross_compiling" != yes; then
2291 if { ac_try='./$ac_file'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 cross_compiling=no
2298 else
2299 if test "$cross_compiling" = maybe; then
2300 cross_compiling=yes
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2303 If you meant to cross compile, use \`--host'.
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot run C++ compiled programs.
2306 If you meant to cross compile, use \`--host'.
2307 See \`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }
2309 fi
2310 fi
2311 fi
2312 echo "$as_me:$LINENO: result: yes" >&5
2313 echo "${ECHO_T}yes" >&6
2314
2315 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2316 ac_clean_files=$ac_clean_files_save
2317 # Check the compiler produces executables we can run. If not, either
2318 # the compiler is broken, or we cross compile.
2319 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2320 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2321 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2322 echo "${ECHO_T}$cross_compiling" >&6
2323
2324 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2325 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2327 (eval $ac_link) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2333 # work properly (i.e., refer to `conftest.exe'), while it won't with
2334 # `rm'.
2335 for ac_file in conftest.exe conftest conftest.*; do
2336 test -f "$ac_file" || continue
2337 case $ac_file in
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 export ac_cv_exeext
2341 break;;
2342 * ) break;;
2343 esac
2344 done
2345 else
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest$ac_cv_exeext
2354 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2355 echo "${ECHO_T}$ac_cv_exeext" >&6
2356
2357 rm -f conftest.$ac_ext
2358 EXEEXT=$ac_cv_exeext
2359 ac_exeext=$EXEEXT
2360 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2361 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2362 if test "${ac_cv_objext+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h. */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2371
2372 int
2373 main ()
2374 {
2375
2376 ;
2377 return 0;
2378 }
2379 _ACEOF
2380 rm -f conftest.o conftest.obj
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; then
2386 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2389 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2390 break;;
2391 esac
2392 done
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2402 fi
2403
2404 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2405 fi
2406 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2407 echo "${ECHO_T}$ac_cv_objext" >&6
2408 OBJEXT=$ac_cv_objext
2409 ac_objext=$OBJEXT
2410 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2421
2422 int
2423 main ()
2424 {
2425 #ifndef __GNUC__
2426 choke me
2427 #endif
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 rm -f conftest.$ac_objext
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
2442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_compiler_gnu=yes
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_compiler_gnu=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2463
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2466 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2467 GXX=`test $ac_compiler_gnu = yes && echo yes`
2468 ac_test_CXXFLAGS=${CXXFLAGS+set}
2469 ac_save_CXXFLAGS=$CXXFLAGS
2470 CXXFLAGS="-g"
2471 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2473 if test "${ac_cv_prog_cxx_g+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482
2483 int
2484 main ()
2485 {
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493 (eval $ac_compile) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2512 ac_cv_prog_cxx_g=yes
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 ac_cv_prog_cxx_g=no
2518 fi
2519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520 fi
2521 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2522 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2523 if test "$ac_test_CXXFLAGS" = set; then
2524 CXXFLAGS=$ac_save_CXXFLAGS
2525 elif test $ac_cv_prog_cxx_g = yes; then
2526 if test "$GXX" = yes; then
2527 CXXFLAGS="-g -O2"
2528 else
2529 CXXFLAGS="-g"
2530 fi
2531 else
2532 if test "$GXX" = yes; then
2533 CXXFLAGS="-O2"
2534 else
2535 CXXFLAGS=
2536 fi
2537 fi
2538 for ac_declaration in \
2539 '' \
2540 'extern "C" void std::exit (int) throw (); using std::exit;' \
2541 'extern "C" void std::exit (int); using std::exit;' \
2542 'extern "C" void exit (int) throw ();' \
2543 'extern "C" void exit (int);' \
2544 'void exit (int);'
2545 do
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552 $ac_declaration
2553 #include <stdlib.h>
2554 int
2555 main ()
2556 {
2557 exit (42);
2558 ;
2559 return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 :
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 continue
2589 fi
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597 $ac_declaration
2598 int
2599 main ()
2600 {
2601 exit (42);
2602 ;
2603 return 0;
2604 }
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 break
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 fi
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 done
2635 rm -f conftest*
2636 if test -n "$ac_declaration"; then
2637 echo '#ifdef __cplusplus' >>confdefs.h
2638 echo $ac_declaration >>confdefs.h
2639 echo '#endif' >>confdefs.h
2640 fi
2641
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647 DEPDIR="${am__leading_dot}deps"
2648
2649 ac_config_commands="$ac_config_commands depfiles"
2650
2651
2652 am_make=${MAKE-make}
2653 cat > confinc << 'END'
2654 am__doit:
2655 @echo done
2656 .PHONY: am__doit
2657 END
2658 # If we don't find an include directive, just comment out the code.
2659 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2660 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2661 am__include="#"
2662 am__quote=
2663 _am_result=none
2664 # First try GNU make style include.
2665 echo "include confinc" > confmf
2666 # We grep out `Entering directory' and `Leaving directory'
2667 # messages which can occur if `w' ends up in MAKEFLAGS.
2668 # In particular we don't look at `^make:' because GNU make might
2669 # be invoked under some other name (usually "gmake"), in which
2670 # case it prints its new name instead of `make'.
2671 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2672 am__include=include
2673 am__quote=
2674 _am_result=GNU
2675 fi
2676 # Now try BSD make style include.
2677 if test "$am__include" = "#"; then
2678 echo '.include "confinc"' > confmf
2679 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2680 am__include=.include
2681 am__quote="\""
2682 _am_result=BSD
2683 fi
2684 fi
2685
2686
2687 echo "$as_me:$LINENO: result: $_am_result" >&5
2688 echo "${ECHO_T}$_am_result" >&6
2689 rm -f confinc confmf
2690
2691 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2692 if test "${enable_dependency_tracking+set}" = set; then
2693 enableval="$enable_dependency_tracking"
2694
2695 fi;
2696 if test "x$enable_dependency_tracking" != xno; then
2697 am_depcomp="$ac_aux_dir/depcomp"
2698 AMDEPBACKSLASH='\'
2699 fi
2700
2701
2702 if test "x$enable_dependency_tracking" != xno; then
2703 AMDEP_TRUE=
2704 AMDEP_FALSE='#'
2705 else
2706 AMDEP_TRUE='#'
2707 AMDEP_FALSE=
2708 fi
2709
2710
2711
2712
2713 depcc="$CXX" am_compiler_list=
2714
2715 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2716 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2717 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2721 # We make a subdir and do the tests there. Otherwise we can end up
2722 # making bogus files that we don't know about and never remove. For
2723 # instance it was reported that on HP-UX the gcc test will end up
2724 # making a dummy file named `D' -- because `-MD' means `put the output
2725 # in D'.
2726 mkdir conftest.dir
2727 # Copy depcomp to subdir because otherwise we won't find it if we're
2728 # using a relative directory.
2729 cp "$am_depcomp" conftest.dir
2730 cd conftest.dir
2731 # We will build objects and dependencies in a subdirectory because
2732 # it helps to detect inapplicable dependency modes. For instance
2733 # both Tru64's cc and ICC support -MD to output dependencies as a
2734 # side effect of compilation, but ICC will put the dependencies in
2735 # the current directory while Tru64 will put them in the object
2736 # directory.
2737 mkdir sub
2738
2739 am_cv_CXX_dependencies_compiler_type=none
2740 if test "$am_compiler_list" = ""; then
2741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2742 fi
2743 for depmode in $am_compiler_list; do
2744 # Setup a source with many dependencies, because some compilers
2745 # like to wrap large dependency lists on column 80 (with \), and
2746 # we should not choose a depcomp mode which is confused by this.
2747 #
2748 # We need to recreate these files for each test, as the compiler may
2749 # overwrite some of them when testing with obscure command lines.
2750 # This happens at least with the AIX C compiler.
2751 : > sub/conftest.c
2752 for i in 1 2 3 4 5 6; do
2753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2754 : > sub/conftst$i.h
2755 done
2756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2757
2758 case $depmode in
2759 nosideeffect)
2760 # after this tag, mechanisms are not by side-effect, so they'll
2761 # only be used when explicitly requested
2762 if test "x$enable_dependency_tracking" = xyes; then
2763 continue
2764 else
2765 break
2766 fi
2767 ;;
2768 none) break ;;
2769 esac
2770 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2771 # mode. It turns out that the SunPro C++ compiler does not properly
2772 # handle `-M -o', and we need to detect this.
2773 if depmode=$depmode \
2774 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2776 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2777 >/dev/null 2>conftest.err &&
2778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2779 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2781 # icc doesn't choke on unknown options, it will just issue warnings
2782 # (even with -Werror). So we grep stderr for any message
2783 # that says an option was ignored.
2784 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2785 am_cv_CXX_dependencies_compiler_type=$depmode
2786 break
2787 fi
2788 fi
2789 done
2790
2791 cd ..
2792 rm -rf conftest.dir
2793 else
2794 am_cv_CXX_dependencies_compiler_type=none
2795 fi
2796
2797 fi
2798 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2799 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2800 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2801
2802
2803
2804 if
2805 test "x$enable_dependency_tracking" != xno \
2806 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2807 am__fastdepCXX_TRUE=
2808 am__fastdepCXX_FALSE='#'
2809 else
2810 am__fastdepCXX_TRUE='#'
2811 am__fastdepCXX_FALSE=
2812 fi
2813
2814
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844
2845 fi
2846 fi
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 echo "$as_me:$LINENO: result: $CC" >&5
2850 echo "${ECHO_T}$CC" >&6
2851 else
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854 fi
2855
2856 fi
2857 if test -z "$ac_cv_prog_CC"; then
2858 ac_ct_CC=$CC
2859 # Extract the first word of "gcc", so it can be a program name with args.
2860 set dummy gcc; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_ac_ct_CC="gcc"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882
2883 fi
2884 fi
2885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2886 if test -n "$ac_ct_CC"; then
2887 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2888 echo "${ECHO_T}$ac_ct_CC" >&6
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892 fi
2893
2894 CC=$ac_ct_CC
2895 else
2896 CC="$ac_cv_prog_CC"
2897 fi
2898
2899 if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}cc; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="${ac_tool_prefix}cc"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2934 fi
2935
2936 fi
2937 if test -z "$ac_cv_prog_CC"; then
2938 ac_ct_CC=$CC
2939 # Extract the first word of "cc", so it can be a program name with args.
2940 set dummy cc; ac_word=$2
2941 echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 if test -n "$ac_ct_CC"; then
2947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_ac_ct_CC="cc"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962
2963 fi
2964 fi
2965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966 if test -n "$ac_ct_CC"; then
2967 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2968 echo "${ECHO_T}$ac_ct_CC" >&6
2969 else
2970 echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2972 fi
2973
2974 CC=$ac_ct_CC
2975 else
2976 CC="$ac_cv_prog_CC"
2977 fi
2978
2979 fi
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3001 continue
3002 fi
3003 ac_cv_prog_CC="cc"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009
3010 if test $ac_prog_rejected = yes; then
3011 # We found a bogon in the path, so make sure we never use it.
3012 set dummy $ac_cv_prog_CC
3013 shift
3014 if test $# != 0; then
3015 # We chose a different compiler from the bogus one.
3016 # However, it has the same basename, so the bogon will be chosen
3017 # first if we set CC to just the basename; use the full file name.
3018 shift
3019 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3020 fi
3021 fi
3022 fi
3023 fi
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026 echo "$as_me:$LINENO: result: $CC" >&5
3027 echo "${ECHO_T}$CC" >&6
3028 else
3029 echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3031 fi
3032
3033 fi
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 for ac_prog in cl
3037 do
3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 echo "$as_me:$LINENO: checking for $ac_word" >&5
3041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3042 if test "${ac_cv_prog_CC+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6
3068 else
3069 echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6
3071 fi
3072
3073 test -n "$CC" && break
3074 done
3075 fi
3076 if test -z "$CC"; then
3077 ac_ct_CC=$CC
3078 for ac_prog in cl
3079 do
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_CC="$ac_prog"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103
3104 fi
3105 fi
3106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107 if test -n "$ac_ct_CC"; then
3108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109 echo "${ECHO_T}$ac_ct_CC" >&6
3110 else
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3113 fi
3114
3115 test -n "$ac_ct_CC" && break
3116 done
3117
3118 CC=$ac_ct_CC
3119 fi
3120
3121 fi
3122
3123
3124 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3125 See \`config.log' for more details." >&5
3126 echo "$as_me: error: no acceptable C compiler found in \$PATH
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3129
3130 # Provide some information about the compiler.
3131 echo "$as_me:$LINENO:" \
3132 "checking for C compiler version" >&5
3133 ac_compiler=`set X $ac_compile; echo $2`
3134 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3135 (eval $ac_compiler --version </dev/null >&5) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }
3139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3140 (eval $ac_compiler -v </dev/null >&5) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }
3144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3145 (eval $ac_compiler -V </dev/null >&5) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149
3150 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161
3162 int
3163 main ()
3164 {
3165 #ifndef __GNUC__
3166 choke me
3167 #endif
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_compiler_gnu=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_compiler_gnu=no
3200 fi
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 CFLAGS="-g"
3211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; } &&
3246 { ac_try='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_prog_cc_g=yes
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 ac_cv_prog_cc_g=no
3258 fi
3259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3263 if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265 elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3267 CFLAGS="-g -O2"
3268 else
3269 CFLAGS="-g"
3270 fi
3271 else
3272 if test "$GCC" = yes; then
3273 CFLAGS="-O2"
3274 else
3275 CFLAGS=
3276 fi
3277 fi
3278 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3279 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3280 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 ac_cv_prog_cc_stdc=no
3284 ac_save_CC=$CC
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <stdarg.h>
3292 #include <stdio.h>
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3299 char **p;
3300 int i;
3301 {
3302 return p[i];
3303 }
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3305 {
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312 }
3313
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std1 is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std1. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
3323 int test (int i, double x);
3324 struct s1 {int (*f) (int a);};
3325 struct s2 {int (*f) (double a);};
3326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3327 int argc;
3328 char **argv;
3329 int
3330 main ()
3331 {
3332 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 # Don't try gcc -ansi; that turns off useful extensions and
3338 # breaks some systems' header files.
3339 # AIX -qlanglvl=ansi
3340 # Ultrix and OSF/1 -std1
3341 # HP-UX 10.20 and later -Ae
3342 # HP-UX older versions -Aa -D_HPUX_SOURCE
3343 # SVR4 -Xc -D__EXTENSIONS__
3344 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345 do
3346 CC="$ac_save_CC $ac_arg"
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; } &&
3362 { ac_try='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 ac_cv_prog_cc_stdc=$ac_arg
3369 break
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 fi
3375 rm -f conftest.err conftest.$ac_objext
3376 done
3377 rm -f conftest.$ac_ext conftest.$ac_objext
3378 CC=$ac_save_CC
3379
3380 fi
3381
3382 case "x$ac_cv_prog_cc_stdc" in
3383 x|xno)
3384 echo "$as_me:$LINENO: result: none needed" >&5
3385 echo "${ECHO_T}none needed" >&6 ;;
3386 *)
3387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3388 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3389 CC="$CC $ac_cv_prog_cc_stdc" ;;
3390 esac
3391
3392 # Some people use a C++ compiler to compile C. Since we use `exit',
3393 # in C++ we need to declare it. In case someone uses the same compiler
3394 # for both compiling C and C++ we need to have the C++ compiler decide
3395 # the declaration of exit, since it's the most demanding environment.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #ifndef __cplusplus
3398 choke me
3399 #endif
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration in \
3423 '' \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3428 'void exit (int);'
3429 do
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 $ac_declaration
3437 #include <stdlib.h>
3438 int
3439 main ()
3440 {
3441 exit (42);
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 :
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 continue
3473 fi
3474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 $ac_declaration
3482 int
3483 main ()
3484 {
3485 exit (42);
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 break
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 fi
3517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518 done
3519 rm -f conftest*
3520 if test -n "$ac_declaration"; then
3521 echo '#ifdef __cplusplus' >>confdefs.h
3522 echo $ac_declaration >>confdefs.h
3523 echo '#endif' >>confdefs.h
3524 fi
3525
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 fi
3531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538 depcc="$CC" am_compiler_list=
3539
3540 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3541 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3542 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546 # We make a subdir and do the tests there. Otherwise we can end up
3547 # making bogus files that we don't know about and never remove. For
3548 # instance it was reported that on HP-UX the gcc test will end up
3549 # making a dummy file named `D' -- because `-MD' means `put the output
3550 # in D'.
3551 mkdir conftest.dir
3552 # Copy depcomp to subdir because otherwise we won't find it if we're
3553 # using a relative directory.
3554 cp "$am_depcomp" conftest.dir
3555 cd conftest.dir
3556 # We will build objects and dependencies in a subdirectory because
3557 # it helps to detect inapplicable dependency modes. For instance
3558 # both Tru64's cc and ICC support -MD to output dependencies as a
3559 # side effect of compilation, but ICC will put the dependencies in
3560 # the current directory while Tru64 will put them in the object
3561 # directory.
3562 mkdir sub
3563
3564 am_cv_CC_dependencies_compiler_type=none
3565 if test "$am_compiler_list" = ""; then
3566 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 fi
3568 for depmode in $am_compiler_list; do
3569 # Setup a source with many dependencies, because some compilers
3570 # like to wrap large dependency lists on column 80 (with \), and
3571 # we should not choose a depcomp mode which is confused by this.
3572 #
3573 # We need to recreate these files for each test, as the compiler may
3574 # overwrite some of them when testing with obscure command lines.
3575 # This happens at least with the AIX C compiler.
3576 : > sub/conftest.c
3577 for i in 1 2 3 4 5 6; do
3578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579 : > sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3591 fi
3592 ;;
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3606 # icc doesn't choke on unknown options, it will just issue warnings
3607 # (even with -Werror). So we grep stderr for any message
3608 # that says an option was ignored.
3609 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3610 am_cv_CC_dependencies_compiler_type=$depmode
3611 break
3612 fi
3613 fi
3614 done
3615
3616 cd ..
3617 rm -rf conftest.dir
3618 else
3619 am_cv_CC_dependencies_compiler_type=none
3620 fi
3621
3622 fi
3623 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3624 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3626
3627
3628
3629 if
3630 test "x$enable_dependency_tracking" != xno \
3631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3632 am__fastdepCC_TRUE=
3633 am__fastdepCC_FALSE='#'
3634 else
3635 am__fastdepCC_TRUE='#'
3636 am__fastdepCC_FALSE=
3637 fi
3638
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649 CPP=
3650 fi
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3657 do
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3660 do
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678 Syntax error
3679 _ACEOF
3680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null; then
3688 if test -s conftest.err; then
3689 ac_cpp_err=$ac_c_preproc_warn_flag
3690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3691 else
3692 ac_cpp_err=
3693 fi
3694 else
3695 ac_cpp_err=yes
3696 fi
3697 if test -z "$ac_cpp_err"; then
3698 :
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 # Broken: fails on valid input.
3704 continue
3705 fi
3706 rm -f conftest.err conftest.$ac_ext
3707
3708 # OK, works on sane cases. Now check whether non-existent headers
3709 # can be detected and how.
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #include <ac_nonexistent.h>
3717 _ACEOF
3718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev/null; then
3726 if test -s conftest.err; then
3727 ac_cpp_err=$ac_c_preproc_warn_flag
3728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3729 else
3730 ac_cpp_err=
3731 fi
3732 else
3733 ac_cpp_err=yes
3734 fi
3735 if test -z "$ac_cpp_err"; then
3736 # Broken: success on invalid input.
3737 continue
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 # Passes both tests.
3743 ac_preproc_ok=:
3744 break
3745 fi
3746 rm -f conftest.err conftest.$ac_ext
3747
3748 done
3749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3750 rm -f conftest.err conftest.$ac_ext
3751 if $ac_preproc_ok; then
3752 break
3753 fi
3754
3755 done
3756 ac_cv_prog_CPP=$CPP
3757
3758 fi
3759 CPP=$ac_cv_prog_CPP
3760 else
3761 ac_cv_prog_CPP=$CPP
3762 fi
3763 echo "$as_me:$LINENO: result: $CPP" >&5
3764 echo "${ECHO_T}$CPP" >&6
3765 ac_preproc_ok=false
3766 for ac_c_preproc_warn_flag in '' yes
3767 do
3768 # Use a header file that comes with gcc, so configuring glibc
3769 # with a fresh cross-compiler works.
3770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771 # <limits.h> exists even on freestanding compilers.
3772 # On the NeXT, cc -E runs the code through the compiler's parser,
3773 # not just through cpp. "Syntax error" is here to catch this case.
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 #ifdef __STDC__
3781 # include <limits.h>
3782 #else
3783 # include <assert.h>
3784 #endif
3785 Syntax error
3786 _ACEOF
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3798 else
3799 ac_cpp_err=
3800 fi
3801 else
3802 ac_cpp_err=yes
3803 fi
3804 if test -z "$ac_cpp_err"; then
3805 :
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 # Broken: fails on valid input.
3811 continue
3812 fi
3813 rm -f conftest.err conftest.$ac_ext
3814
3815 # OK, works on sane cases. Now check whether non-existent headers
3816 # can be detected and how.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836 else
3837 ac_cpp_err=
3838 fi
3839 else
3840 ac_cpp_err=yes
3841 fi
3842 if test -z "$ac_cpp_err"; then
3843 # Broken: success on invalid input.
3844 continue
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 # Passes both tests.
3850 ac_preproc_ok=:
3851 break
3852 fi
3853 rm -f conftest.err conftest.$ac_ext
3854
3855 done
3856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857 rm -f conftest.err conftest.$ac_ext
3858 if $ac_preproc_ok; then
3859 :
3860 else
3861 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3862 See \`config.log' for more details." >&5
3863 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details." >&2;}
3865 { (exit 1); exit 1; }; }
3866 fi
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874
3875
3876 echo "$as_me:$LINENO: checking for egrep" >&5
3877 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3878 if test "${ac_cv_prog_egrep+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3882 then ac_cv_prog_egrep='grep -E'
3883 else ac_cv_prog_egrep='egrep'
3884 fi
3885 fi
3886 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3887 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3888 EGREP=$ac_cv_prog_egrep
3889
3890
3891
3892 echo "$as_me:$LINENO: checking for AIX" >&5
3893 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 #ifdef _AIX
3901 yes
3902 #endif
3903
3904 _ACEOF
3905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906 $EGREP "yes" >/dev/null 2>&1; then
3907 echo "$as_me:$LINENO: result: yes" >&5
3908 echo "${ECHO_T}yes" >&6
3909 cat >>confdefs.h <<\_ACEOF
3910 #define _ALL_SOURCE 1
3911 _ACEOF
3912
3913 else
3914 echo "$as_me:$LINENO: result: no" >&5
3915 echo "${ECHO_T}no" >&6
3916 fi
3917 rm -f conftest*
3918
3919
3920 for ac_prog in flex lex
3921 do
3922 # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_LEX+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$LEX"; then
3930 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_LEX="$ac_prog"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 LEX=$ac_cv_prog_LEX
3949 if test -n "$LEX"; then
3950 echo "$as_me:$LINENO: result: $LEX" >&5
3951 echo "${ECHO_T}$LEX" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957 test -n "$LEX" && break
3958 done
3959 test -n "$LEX" || LEX=":"
3960
3961 if test -z "$LEXLIB"
3962 then
3963 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3964 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3965 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 ac_check_lib_save_LIBS=$LIBS
3969 LIBS="-lfl $LIBS"
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 #ifdef __cplusplus
3979 extern "C"
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char yywrap ();
3984 int
3985 main ()
3986 {
3987 yywrap ();
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext conftest$ac_exeext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3994 (eval $ac_link) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest$ac_exeext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_lib_fl_yywrap=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 ac_cv_lib_fl_yywrap=no
4019 fi
4020 rm -f conftest.err conftest.$ac_objext \
4021 conftest$ac_exeext conftest.$ac_ext
4022 LIBS=$ac_check_lib_save_LIBS
4023 fi
4024 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4025 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4026 if test $ac_cv_lib_fl_yywrap = yes; then
4027 LEXLIB="-lfl"
4028 else
4029 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4030 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4031 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 ac_check_lib_save_LIBS=$LIBS
4035 LIBS="-ll $LIBS"
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 #ifdef __cplusplus
4045 extern "C"
4046 #endif
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4049 char yywrap ();
4050 int
4051 main ()
4052 {
4053 yywrap ();
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_cv_lib_l_yywrap=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_cv_lib_l_yywrap=no
4085 fi
4086 rm -f conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
4088 LIBS=$ac_check_lib_save_LIBS
4089 fi
4090 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4091 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4092 if test $ac_cv_lib_l_yywrap = yes; then
4093 LEXLIB="-ll"
4094 fi
4095
4096 fi
4097
4098 fi
4099
4100 if test "x$LEX" != "x:"; then
4101 echo "$as_me:$LINENO: checking lex output file root" >&5
4102 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4103 if test "${ac_cv_prog_lex_root+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 # The minimal lex program is just a single line: %%. But some broken lexes
4107 # (Solaris, I think it was) want two %% lines, so accommodate them.
4108 cat >conftest.l <<_ACEOF
4109 %%
4110 %%
4111 _ACEOF
4112 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4113 (eval $LEX conftest.l) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }
4117 if test -f lex.yy.c; then
4118 ac_cv_prog_lex_root=lex.yy
4119 elif test -f lexyy.c; then
4120 ac_cv_prog_lex_root=lexyy
4121 else
4122 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4123 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4124 { (exit 1); exit 1; }; }
4125 fi
4126 fi
4127 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4128 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4129 rm -f conftest.l
4130 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4131
4132 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4133 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4134 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 # POSIX says lex can declare yytext either as a pointer or an array; the
4138 # default is implementation-dependent. Figure out which it is, since
4139 # not all implementations provide the %pointer and %array declarations.
4140 ac_cv_prog_lex_yytext_pointer=no
4141 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4142 ac_save_LIBS=$LIBS
4143 LIBS="$LIBS $LEXLIB"
4144 cat >conftest.$ac_ext <<_ACEOF
4145 `cat $LEX_OUTPUT_ROOT.c`
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_prog_lex_yytext_pointer=yes
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 fi
4174 rm -f conftest.err conftest.$ac_objext \
4175 conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_save_LIBS
4177 rm -f "${LEX_OUTPUT_ROOT}.c"
4178
4179 fi
4180 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4181 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4182 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4183
4184 cat >>confdefs.h <<\_ACEOF
4185 #define YYTEXT_POINTER 1
4186 _ACEOF
4187
4188 fi
4189
4190 fi
4191 if test "$LEX" = :; then
4192 LEX=${am_missing_run}flex
4193 fi
4194 for ac_prog in 'bison -y' byacc
4195 do
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $ac_prog; ac_word=$2
4198 echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200 if test "${ac_cv_prog_YACC+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 if test -n "$YACC"; then
4204 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_YACC="$ac_prog"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4216 fi
4217 done
4218 done
4219
4220 fi
4221 fi
4222 YACC=$ac_cv_prog_YACC
4223 if test -n "$YACC"; then
4224 echo "$as_me:$LINENO: result: $YACC" >&5
4225 echo "${ECHO_T}$YACC" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6
4229 fi
4230
4231 test -n "$YACC" && break
4232 done
4233 test -n "$YACC" || YACC="yacc"
4234
4235 # Find a good install program. We prefer a C program (faster),
4236 # so one script is as good as another. But avoid the broken or
4237 # incompatible versions:
4238 # SysV /etc/install, /usr/sbin/install
4239 # SunOS /usr/etc/install
4240 # IRIX /sbin/install
4241 # AIX /bin/install
4242 # AmigaOS /C/install, which installs bootblocks on floppy discs
4243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4246 # OS/2's system install, which has a completely different semantic
4247 # ./install, which can be erroneously created by make from ./install.sh.
4248 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4249 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4250 if test -z "$INSTALL"; then
4251 if test "${ac_cv_path_install+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 # Account for people who put trailing slashes in PATH elements.
4260 case $as_dir/ in
4261 ./ | .// | /cC/* | \
4262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4263 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4264 /usr/ucb/* ) ;;
4265 *)
4266 # OSF1 and SCO ODT 3.0 have their own names for install.
4267 # Don't use installbsd from OSF since it installs stuff as root
4268 # by default.
4269 for ac_prog in ginstall scoinst install; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4272 if test $ac_prog = install &&
4273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4274 # AIX install. It has an incompatible calling convention.
4275 :
4276 elif test $ac_prog = install &&
4277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4278 # program-specific install script used by HP pwplus--don't use.
4279 :
4280 else
4281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4282 break 3
4283 fi
4284 fi
4285 done
4286 done
4287 ;;
4288 esac
4289 done
4290
4291
4292 fi
4293 if test "${ac_cv_path_install+set}" = set; then
4294 INSTALL=$ac_cv_path_install
4295 else
4296 # As a last resort, use the slow shell script. We don't cache a
4297 # path for INSTALL within a source directory, because that will
4298 # break other packages using the cache if that directory is
4299 # removed, or if the path is relative.
4300 INSTALL=$ac_install_sh
4301 fi
4302 fi
4303 echo "$as_me:$LINENO: result: $INSTALL" >&5
4304 echo "${ECHO_T}$INSTALL" >&6
4305
4306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4307 # It thinks the first close brace ends the variable substitution.
4308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4309
4310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4311
4312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4313
4314 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4315 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4316 LN_S=$as_ln_s
4317 if test "$LN_S" = "ln -s"; then
4318 echo "$as_me:$LINENO: result: yes" >&5
4319 echo "${ECHO_T}yes" >&6
4320 else
4321 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4322 echo "${ECHO_T}no, using $LN_S" >&6
4323 fi
4324
4325 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4326 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4327 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4328 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 cat >conftest.make <<\_ACEOF
4332 all:
4333 @echo 'ac_maketemp="$(MAKE)"'
4334 _ACEOF
4335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4336 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4337 if test -n "$ac_maketemp"; then
4338 eval ac_cv_prog_make_${ac_make}_set=yes
4339 else
4340 eval ac_cv_prog_make_${ac_make}_set=no
4341 fi
4342 rm -f conftest.make
4343 fi
4344 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4345 echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6
4347 SET_MAKE=
4348 else
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 SET_MAKE="MAKE=${MAKE-make}"
4352 fi
4353
4354 # Check whether --enable-shared or --disable-shared was given.
4355 if test "${enable_shared+set}" = set; then
4356 enableval="$enable_shared"
4357 p=${PACKAGE-default}
4358 case $enableval in
4359 yes) enable_shared=yes ;;
4360 no) enable_shared=no ;;
4361 *)
4362 enable_shared=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365 for pkg in $enableval; do
4366 IFS="$lt_save_ifs"
4367 if test "X$pkg" = "X$p"; then
4368 enable_shared=yes
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 ;;
4373 esac
4374 else
4375 enable_shared=yes
4376 fi;
4377
4378 # Check whether --enable-static or --disable-static was given.
4379 if test "${enable_static+set}" = set; then
4380 enableval="$enable_static"
4381 p=${PACKAGE-default}
4382 case $enableval in
4383 yes) enable_static=yes ;;
4384 no) enable_static=no ;;
4385 *)
4386 enable_static=no
4387 # Look at the argument we got. We use all the common list separators.
4388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4389 for pkg in $enableval; do
4390 IFS="$lt_save_ifs"
4391 if test "X$pkg" = "X$p"; then
4392 enable_static=yes
4393 fi
4394 done
4395 IFS="$lt_save_ifs"
4396 ;;
4397 esac
4398 else
4399 enable_static=yes
4400 fi;
4401
4402 # Check whether --enable-fast-install or --disable-fast-install was given.
4403 if test "${enable_fast_install+set}" = set; then
4404 enableval="$enable_fast_install"
4405 p=${PACKAGE-default}
4406 case $enableval in
4407 yes) enable_fast_install=yes ;;
4408 no) enable_fast_install=no ;;
4409 *)
4410 enable_fast_install=no
4411 # Look at the argument we got. We use all the common list separators.
4412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4413 for pkg in $enableval; do
4414 IFS="$lt_save_ifs"
4415 if test "X$pkg" = "X$p"; then
4416 enable_fast_install=yes
4417 fi
4418 done
4419 IFS="$lt_save_ifs"
4420 ;;
4421 esac
4422 else
4423 enable_fast_install=yes
4424 fi;
4425
4426 # Make sure we can run config.sub.
4427 $ac_config_sub sun4 >/dev/null 2>&1 ||
4428 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4429 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4430 { (exit 1); exit 1; }; }
4431
4432 echo "$as_me:$LINENO: checking build system type" >&5
4433 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4434 if test "${ac_cv_build+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_cv_build_alias=$build_alias
4438 test -z "$ac_cv_build_alias" &&
4439 ac_cv_build_alias=`$ac_config_guess`
4440 test -z "$ac_cv_build_alias" &&
4441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4442 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4443 { (exit 1); exit 1; }; }
4444 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4446 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4447 { (exit 1); exit 1; }; }
4448
4449 fi
4450 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4451 echo "${ECHO_T}$ac_cv_build" >&6
4452 build=$ac_cv_build
4453 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4454 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4455 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4456
4457
4458 echo "$as_me:$LINENO: checking host system type" >&5
4459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4460 if test "${ac_cv_host+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 ac_cv_host_alias=$host_alias
4464 test -z "$ac_cv_host_alias" &&
4465 ac_cv_host_alias=$ac_cv_build_alias
4466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4469 { (exit 1); exit 1; }; }
4470
4471 fi
4472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4473 echo "${ECHO_T}$ac_cv_host" >&6
4474 host=$ac_cv_host
4475 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4476 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4477 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4478
4479
4480 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4481 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4482 if test "${lt_cv_path_SED+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 # Loop through the user's path and test for sed and gsed.
4486 # Then use that list of sed's as ones to test for truncation.
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for lt_ac_prog in sed gsed; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4495 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4496 fi
4497 done
4498 done
4499 done
4500 lt_ac_max=0
4501 lt_ac_count=0
4502 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4503 # along with /bin/sed that truncates output.
4504 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4505 test ! -f $lt_ac_sed && break
4506 cat /dev/null > conftest.in
4507 lt_ac_count=0
4508 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4509 # Check for GNU sed and select it if it is found.
4510 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4511 lt_cv_path_SED=$lt_ac_sed
4512 break
4513 fi
4514 while true; do
4515 cat conftest.in conftest.in >conftest.tmp
4516 mv conftest.tmp conftest.in
4517 cp conftest.in conftest.nl
4518 echo >>conftest.nl
4519 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4520 cmp -s conftest.out conftest.nl || break
4521 # 10000 chars as input seems more than enough
4522 test $lt_ac_count -gt 10 && break
4523 lt_ac_count=`expr $lt_ac_count + 1`
4524 if test $lt_ac_count -gt $lt_ac_max; then
4525 lt_ac_max=$lt_ac_count
4526 lt_cv_path_SED=$lt_ac_sed
4527 fi
4528 done
4529 done
4530 SED=$lt_cv_path_SED
4531
4532 fi
4533
4534 echo "$as_me:$LINENO: result: $SED" >&5
4535 echo "${ECHO_T}$SED" >&6
4536
4537
4538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then
4540 withval="$with_gnu_ld"
4541 test "$withval" = no || with_gnu_ld=yes
4542 else
4543 with_gnu_ld=no
4544 fi;
4545 ac_prog=ld
4546 if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4549 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4550 case $host in
4551 *-*-mingw*)
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4554 *)
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 esac
4557 case $ac_prog in
4558 # Accept absolute paths.
4559 [\\/]* | ?:[\\/]*)
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4563 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4565 done
4566 test -z "$LD" && LD="$ac_prog"
4567 ;;
4568 "")
4569 # If it fails, then pretend we aren't using GCC.
4570 ac_prog=ld
4571 ;;
4572 *)
4573 # If it is relative, then search for the first ld in PATH.
4574 with_gnu_ld=unknown
4575 ;;
4576 esac
4577 elif test "$with_gnu_ld" = yes; then
4578 echo "$as_me:$LINENO: checking for GNU ld" >&5
4579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4580 else
4581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4583 fi
4584 if test "${lt_cv_path_LD+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -z "$LD"; then
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some GNU ld's only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
4599 test "$with_gnu_ld" != no && break
4600 ;;
4601 *)
4602 test "$with_gnu_ld" != yes && break
4603 ;;
4604 esac
4605 fi
4606 done
4607 IFS="$lt_save_ifs"
4608 else
4609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4610 fi
4611 fi
4612
4613 LD="$lt_cv_path_LD"
4614 if test -n "$LD"; then
4615 echo "$as_me:$LINENO: result: $LD" >&5
4616 echo "${ECHO_T}$LD" >&6
4617 else
4618 echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4620 fi
4621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4630 case `$LD -v 2>&1 </dev/null` in
4631 *GNU* | *'with BFD'*)
4632 lt_cv_prog_gnu_ld=yes
4633 ;;
4634 *)
4635 lt_cv_prog_gnu_ld=no
4636 ;;
4637 esac
4638 fi
4639 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4640 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4641 with_gnu_ld=$lt_cv_prog_gnu_ld
4642
4643
4644 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4645 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4646 if test "${lt_cv_ld_reload_flag+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 lt_cv_ld_reload_flag='-r'
4650 fi
4651 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4652 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4653 reload_flag=$lt_cv_ld_reload_flag
4654 case $reload_flag in
4655 "" | " "*) ;;
4656 *) reload_flag=" $reload_flag" ;;
4657 esac
4658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4659
4660 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4661 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4662 if test "${lt_cv_path_NM+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 if test -n "$NM"; then
4666 # Let the user override the test.
4667 lt_cv_path_NM="$NM"
4668 else
4669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4670 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4671 IFS="$lt_save_ifs"
4672 test -z "$ac_dir" && ac_dir=.
4673 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4674 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4675 # Check to see if the nm accepts a BSD-compat flag.
4676 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4677 # nm: unknown option "B" ignored
4678 # Tru64's nm complains that /dev/null is an invalid object file
4679 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4680 */dev/null* | *'Invalid file or object type'*)
4681 lt_cv_path_NM="$tmp_nm -B"
4682 break
4683 ;;
4684 *)
4685 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4686 */dev/null*)
4687 lt_cv_path_NM="$tmp_nm -p"
4688 break
4689 ;;
4690 *)
4691 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4692 continue # so that we can try to find one that supports BSD flags
4693 ;;
4694 esac
4695 esac
4696 fi
4697 done
4698 IFS="$lt_save_ifs"
4699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4700 fi
4701 fi
4702 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4703 echo "${ECHO_T}$lt_cv_path_NM" >&6
4704 NM="$lt_cv_path_NM"
4705
4706 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4707 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4708 if test "${lt_cv_deplibs_check_method+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 lt_cv_file_magic_cmd='$MAGIC_CMD'
4712 lt_cv_file_magic_test_file=
4713 lt_cv_deplibs_check_method='unknown'
4714 # Need to set the preceding variable on all platforms that support
4715 # interlibrary dependencies.
4716 # 'none' -- dependencies not supported.
4717 # `unknown' -- same as none, but documents that we really don't know.
4718 # 'pass_all' -- all dependencies passed with no checks.
4719 # 'test_compile' -- check by making test program.
4720 # 'file_magic [[regex]]' -- check by looking for files in library path
4721 # which responds to the $file_magic_cmd with a given extended regex.
4722 # If you have `file' or equivalent on your system and you're not sure
4723 # whether `pass_all' will *always* work, you probably want this one.
4724
4725 case $host_os in
4726 aix4* | aix5*)
4727 lt_cv_deplibs_check_method=pass_all
4728 ;;
4729
4730 beos*)
4731 lt_cv_deplibs_check_method=pass_all
4732 ;;
4733
4734 bsdi4*)
4735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4736 lt_cv_file_magic_cmd='/usr/bin/file -L'
4737 lt_cv_file_magic_test_file=/shlib/libc.so
4738 ;;
4739
4740 cygwin*)
4741 # func_win32_libid is a shell function defined in ltmain.sh
4742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4743 lt_cv_file_magic_cmd='func_win32_libid'
4744 ;;
4745
4746 mingw* | pw32*)
4747 # Base MSYS/MinGW do not provide the 'file' command needed by
4748 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4749 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4750 lt_cv_file_magic_cmd='$OBJDUMP -f'
4751 ;;
4752
4753 darwin* | rhapsody*)
4754 lt_cv_deplibs_check_method=pass_all
4755 ;;
4756
4757 freebsd* | kfreebsd*-gnu)
4758 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4759 case $host_cpu in
4760 i*86 )
4761 # Not sure whether the presence of OpenBSD here was a mistake.
4762 # Let's accept both of them until this is cleared up.
4763 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4766 ;;
4767 esac
4768 else
4769 lt_cv_deplibs_check_method=pass_all
4770 fi
4771 ;;
4772
4773 gnu*)
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776
4777 hpux10.20* | hpux11*)
4778 lt_cv_file_magic_cmd=/usr/bin/file
4779 case "$host_cpu" in
4780 ia64*)
4781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4782 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4783 ;;
4784 hppa*64*)
4785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4786 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4787 ;;
4788 *)
4789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4790 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4791 ;;
4792 esac
4793 ;;
4794
4795 irix5* | irix6* | nonstopux*)
4796 case $LD in
4797 *-32|*"-32 ") libmagic=32-bit;;
4798 *-n32|*"-n32 ") libmagic=N32;;
4799 *-64|*"-64 ") libmagic=64-bit;;
4800 *) libmagic=never-match;;
4801 esac
4802 lt_cv_deplibs_check_method=pass_all
4803 ;;
4804
4805 # This must be Linux ELF.
4806 linux*)
4807 lt_cv_deplibs_check_method=pass_all
4808 ;;
4809
4810 netbsd* | knetbsd*-gnu)
4811 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4813 else
4814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4815 fi
4816 ;;
4817
4818 newos6*)
4819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4820 lt_cv_file_magic_cmd=/usr/bin/file
4821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4822 ;;
4823
4824 nto-qnx*)
4825 lt_cv_deplibs_check_method=unknown
4826 ;;
4827
4828 openbsd*)
4829 lt_cv_file_magic_cmd=/usr/bin/file
4830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4833 else
4834 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4835 fi
4836 ;;
4837
4838 osf3* | osf4* | osf5*)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841
4842 sco3.2v5*)
4843 lt_cv_deplibs_check_method=pass_all
4844 ;;
4845
4846 solaris*)
4847 lt_cv_deplibs_check_method=pass_all
4848 ;;
4849
4850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4851 case $host_vendor in
4852 motorola)
4853 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]'
4854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4855 ;;
4856 ncr)
4857 lt_cv_deplibs_check_method=pass_all
4858 ;;
4859 sequent)
4860 lt_cv_file_magic_cmd='/bin/file'
4861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4862 ;;
4863 sni)
4864 lt_cv_file_magic_cmd='/bin/file'
4865 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4866 lt_cv_file_magic_test_file=/lib/libc.so
4867 ;;
4868 siemens)
4869 lt_cv_deplibs_check_method=pass_all
4870 ;;
4871 esac
4872 ;;
4873
4874 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
4877 esac
4878
4879 fi
4880 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4881 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4882 file_magic_cmd=$lt_cv_file_magic_cmd
4883 deplibs_check_method=$lt_cv_deplibs_check_method
4884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4885
4886
4887
4888
4889 # If no C compiler was specified, use CC.
4890 LTCC=${LTCC-"$CC"}
4891
4892 # Allow CC to be a program name with arguments.
4893 compiler=$CC
4894
4895 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4896 if test "${enable_libtool_lock+set}" = set; then
4897 enableval="$enable_libtool_lock"
4898
4899 fi;
4900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4901
4902 # Some flags need to be propagated to the compiler or linker for good
4903 # libtool support.
4904 case $host in
4905 ia64-*-hpux*)
4906 # Find out which ABI we are using.
4907 echo 'int i;' > conftest.$ac_ext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; then
4913 case `/usr/bin/file conftest.$ac_objext` in
4914 *ELF-32*)
4915 HPUX_IA64_MODE="32"
4916 ;;
4917 *ELF-64*)
4918 HPUX_IA64_MODE="64"
4919 ;;
4920 esac
4921 fi
4922 rm -rf conftest*
4923 ;;
4924 *-*-irix6*)
4925 # Find out which ABI we are using.
4926 echo '#line 4926 "configure"' > conftest.$ac_ext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; then
4932 if test "$lt_cv_prog_gnu_ld" = yes; then
4933 case `/usr/bin/file conftest.$ac_objext` in
4934 *32-bit*)
4935 LD="${LD-ld} -melf32bsmip"
4936 ;;
4937 *N32*)
4938 LD="${LD-ld} -melf32bmipn32"
4939 ;;
4940 *64-bit*)
4941 LD="${LD-ld} -melf64bmip"
4942 ;;
4943 esac
4944 else
4945 case `/usr/bin/file conftest.$ac_objext` in
4946 *32-bit*)
4947 LD="${LD-ld} -32"
4948 ;;
4949 *N32*)
4950 LD="${LD-ld} -n32"
4951 ;;
4952 *64-bit*)
4953 LD="${LD-ld} -64"
4954 ;;
4955 esac
4956 fi
4957 fi
4958 rm -rf conftest*
4959 ;;
4960
4961 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4962 # Find out which ABI we are using.
4963 echo 'int i;' > conftest.$ac_ext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
4969 case "`/usr/bin/file conftest.o`" in
4970 *32-bit*)
4971 case $host in
4972 x86_64-*linux*)
4973 LD="${LD-ld} -m elf_i386"
4974 ;;
4975 ppc64-*linux*|powerpc64-*linux*)
4976 LD="${LD-ld} -m elf32ppclinux"
4977 ;;
4978 s390x-*linux*)
4979 LD="${LD-ld} -m elf_s390"
4980 ;;
4981 sparc64-*linux*)
4982 LD="${LD-ld} -m elf32_sparc"
4983 ;;
4984 esac
4985 ;;
4986 *64-bit*)
4987 case $host in
4988 x86_64-*linux*)
4989 LD="${LD-ld} -m elf_x86_64"
4990 ;;
4991 ppc*-*linux*|powerpc*-*linux*)
4992 LD="${LD-ld} -m elf64ppc"
4993 ;;
4994 s390*-*linux*)
4995 LD="${LD-ld} -m elf64_s390"
4996 ;;
4997 sparc*-*linux*)
4998 LD="${LD-ld} -m elf64_sparc"
4999 ;;
5000 esac
5001 ;;
5002 esac
5003 fi
5004 rm -rf conftest*
5005 ;;
5006
5007 *-*-sco3.2v5*)
5008 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5009 SAVE_CFLAGS="$CFLAGS"
5010 CFLAGS="$CFLAGS -belf"
5011 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5012 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5013 if test "${lt_cv_cc_needs_belf+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028
5029 int
5030 main ()
5031 {
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest$ac_exeext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 lt_cv_cc_needs_belf=yes
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 lt_cv_cc_needs_belf=no
5064 fi
5065 rm -f conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 fi
5074 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5075 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5076 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5077 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5078 CFLAGS="$SAVE_CFLAGS"
5079 fi
5080 ;;
5081
5082 esac
5083
5084 need_locks="$enable_libtool_lock"
5085
5086
5087 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5089 if test "${ac_cv_header_stdc+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #include <stdlib.h>
5099 #include <stdarg.h>
5100 #include <string.h>
5101 #include <float.h>
5102
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_stdc=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ac_cv_header_stdc=no
5138 fi
5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141 if test $ac_cv_header_stdc = yes; then
5142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #include <string.h>
5150
5151 _ACEOF
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153 $EGREP "memchr" >/dev/null 2>&1; then
5154 :
5155 else
5156 ac_cv_header_stdc=no
5157 fi
5158 rm -f conftest*
5159
5160 fi
5161
5162 if test $ac_cv_header_stdc = yes; then
5163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 #include <stdlib.h>
5171
5172 _ACEOF
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "free" >/dev/null 2>&1; then
5175 :
5176 else
5177 ac_cv_header_stdc=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 if test $ac_cv_header_stdc = yes; then
5184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185 if test "$cross_compiling" = yes; then
5186 :
5187 else
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 #include <ctype.h>
5195 #if ((' ' & 0x0FF) == 0x020)
5196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5198 #else
5199 # define ISLOWER(c) \
5200 (('a' <= (c) && (c) <= 'i') \
5201 || ('j' <= (c) && (c) <= 'r') \
5202 || ('s' <= (c) && (c) <= 'z'))
5203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5204 #endif
5205
5206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5207 int
5208 main ()
5209 {
5210 int i;
5211 for (i = 0; i < 256; i++)
5212 if (XOR (islower (i), ISLOWER (i))
5213 || toupper (i) != TOUPPER (i))
5214 exit(2);
5215 exit (0);
5216 }
5217 _ACEOF
5218 rm -f conftest$ac_exeext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 :
5230 else
5231 echo "$as_me: program exited with status $ac_status" >&5
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235 ( exit $ac_status )
5236 ac_cv_header_stdc=no
5237 fi
5238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5239 fi
5240 fi
5241 fi
5242 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5243 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5244 if test $ac_cv_header_stdc = yes; then
5245
5246 cat >>confdefs.h <<\_ACEOF
5247 #define STDC_HEADERS 1
5248 _ACEOF
5249
5250 fi
5251
5252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5263 inttypes.h stdint.h unistd.h
5264 do
5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 $ac_includes_default
5278
5279 #include <$ac_header>
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 eval "$as_ac_Header=yes"
5303 else
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 eval "$as_ac_Header=no"
5308 fi
5309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5317
5318 fi
5319
5320 done
5321
5322
5323
5324 for ac_header in dlfcn.h
5325 do
5326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 fi
5333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5335 else
5336 # Is the header compilable?
5337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5346 #include <$ac_header>
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_header_compiler=yes
5370 else
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 ac_header_compiler=no
5375 fi
5376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5378 echo "${ECHO_T}$ac_header_compiler" >&6
5379
5380 # Is the header present?
5381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 #include <$ac_header>
5390 _ACEOF
5391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } >/dev/null; then
5399 if test -s conftest.err; then
5400 ac_cpp_err=$ac_c_preproc_warn_flag
5401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5402 else
5403 ac_cpp_err=
5404 fi
5405 else
5406 ac_cpp_err=yes
5407 fi
5408 if test -z "$ac_cpp_err"; then
5409 ac_header_preproc=yes
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_header_preproc=no
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5418 echo "${ECHO_T}$ac_header_preproc" >&6
5419
5420 # So? What about this header?
5421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5422 yes:no: )
5423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5427 ac_header_preproc=yes
5428 ;;
5429 no:yes:* )
5430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5442 (
5443 cat <<\_ASBOX
5444 ## ------------------------------------------ ##
5445 ## Report this to the AC_PACKAGE_NAME lists. ##
5446 ## ------------------------------------------ ##
5447 _ASBOX
5448 ) |
5449 sed "s/^/$as_me: WARNING: /" >&2
5450 ;;
5451 esac
5452 echo "$as_me:$LINENO: checking for $ac_header" >&5
5453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 eval "$as_ac_Header=\$ac_header_preproc"
5458 fi
5459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5461
5462 fi
5463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5467
5468 fi
5469
5470 done
5471
5472 ac_ext=cc
5473 ac_cpp='$CXXCPP $CPPFLAGS'
5474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5477 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5478 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5479 if test -z "$CXXCPP"; then
5480 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 # Double quotes because CXXCPP needs to be expanded
5484 for CXXCPP in "$CXX -E" "/lib/cpp"
5485 do
5486 ac_preproc_ok=false
5487 for ac_cxx_preproc_warn_flag in '' yes
5488 do
5489 # Use a header file that comes with gcc, so configuring glibc
5490 # with a fresh cross-compiler works.
5491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 # <limits.h> exists even on freestanding compilers.
5493 # On the NeXT, cc -E runs the code through the compiler's parser,
5494 # not just through cpp. "Syntax error" is here to catch this case.
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #ifdef __STDC__
5502 # include <limits.h>
5503 #else
5504 # include <assert.h>
5505 #endif
5506 Syntax error
5507 _ACEOF
5508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null; then
5516 if test -s conftest.err; then
5517 ac_cpp_err=$ac_cxx_preproc_warn_flag
5518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5519 else
5520 ac_cpp_err=
5521 fi
5522 else
5523 ac_cpp_err=yes
5524 fi
5525 if test -z "$ac_cpp_err"; then
5526 :
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 # Broken: fails on valid input.
5532 continue
5533 fi
5534 rm -f conftest.err conftest.$ac_ext
5535
5536 # OK, works on sane cases. Now check whether non-existent headers
5537 # can be detected and how.
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <ac_nonexistent.h>
5545 _ACEOF
5546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } >/dev/null; then
5554 if test -s conftest.err; then
5555 ac_cpp_err=$ac_cxx_preproc_warn_flag
5556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5557 else
5558 ac_cpp_err=
5559 fi
5560 else
5561 ac_cpp_err=yes
5562 fi
5563 if test -z "$ac_cpp_err"; then
5564 # Broken: success on invalid input.
5565 continue
5566 else
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 # Passes both tests.
5571 ac_preproc_ok=:
5572 break
5573 fi
5574 rm -f conftest.err conftest.$ac_ext
5575
5576 done
5577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5578 rm -f conftest.err conftest.$ac_ext
5579 if $ac_preproc_ok; then
5580 break
5581 fi
5582
5583 done
5584 ac_cv_prog_CXXCPP=$CXXCPP
5585
5586 fi
5587 CXXCPP=$ac_cv_prog_CXXCPP
5588 else
5589 ac_cv_prog_CXXCPP=$CXXCPP
5590 fi
5591 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5592 echo "${ECHO_T}$CXXCPP" >&6
5593 ac_preproc_ok=false
5594 for ac_cxx_preproc_warn_flag in '' yes
5595 do
5596 # Use a header file that comes with gcc, so configuring glibc
5597 # with a fresh cross-compiler works.
5598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 # <limits.h> exists even on freestanding compilers.
5600 # On the NeXT, cc -E runs the code through the compiler's parser,
5601 # not just through cpp. "Syntax error" is here to catch this case.
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613 Syntax error
5614 _ACEOF
5615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null; then
5623 if test -s conftest.err; then
5624 ac_cpp_err=$ac_cxx_preproc_warn_flag
5625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5626 else
5627 ac_cpp_err=
5628 fi
5629 else
5630 ac_cpp_err=yes
5631 fi
5632 if test -z "$ac_cpp_err"; then
5633 :
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 # Broken: fails on valid input.
5639 continue
5640 fi
5641 rm -f conftest.err conftest.$ac_ext
5642
5643 # OK, works on sane cases. Now check whether non-existent headers
5644 # can be detected and how.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <ac_nonexistent.h>
5652 _ACEOF
5653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } >/dev/null; then
5661 if test -s conftest.err; then
5662 ac_cpp_err=$ac_cxx_preproc_warn_flag
5663 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5664 else
5665 ac_cpp_err=
5666 fi
5667 else
5668 ac_cpp_err=yes
5669 fi
5670 if test -z "$ac_cpp_err"; then
5671 # Broken: success on invalid input.
5672 continue
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5680 fi
5681 rm -f conftest.err conftest.$ac_ext
5682
5683 done
5684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5685 rm -f conftest.err conftest.$ac_ext
5686 if $ac_preproc_ok; then
5687 :
5688 else
5689 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5690 See \`config.log' for more details." >&5
5691 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5692 See \`config.log' for more details." >&2;}
5693 { (exit 1); exit 1; }; }
5694 fi
5695
5696 ac_ext=cc
5697 ac_cpp='$CXXCPP $CPPFLAGS'
5698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701
5702
5703 ac_ext=f
5704 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5705 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5707 if test -n "$ac_tool_prefix"; then
5708 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5709 do
5710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5712 echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_prog_F77+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 if test -n "$F77"; then
5718 ac_cv_prog_F77="$F77" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733
5734 fi
5735 fi
5736 F77=$ac_cv_prog_F77
5737 if test -n "$F77"; then
5738 echo "$as_me:$LINENO: result: $F77" >&5
5739 echo "${ECHO_T}$F77" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5743 fi
5744
5745 test -n "$F77" && break
5746 done
5747 fi
5748 if test -z "$F77"; then
5749 ac_ct_F77=$F77
5750 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5751 do
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5756 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$ac_ct_F77"; then
5760 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_ac_ct_F77="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775
5776 fi
5777 fi
5778 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5779 if test -n "$ac_ct_F77"; then
5780 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5781 echo "${ECHO_T}$ac_ct_F77" >&6
5782 else
5783 echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787 test -n "$ac_ct_F77" && break
5788 done
5789
5790 F77=$ac_ct_F77
5791 fi
5792
5793
5794 # Provide some information about the compiler.
5795 echo "$as_me:5795:" \
5796 "checking for Fortran 77 compiler version" >&5
5797 ac_compiler=`set X $ac_compile; echo $2`
5798 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5799 (eval $ac_compiler --version </dev/null >&5) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }
5803 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5804 (eval $ac_compiler -v </dev/null >&5) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }
5808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5809 (eval $ac_compiler -V </dev/null >&5) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }
5813 rm -f a.out
5814
5815 # If we don't use `.F' as extension, the preprocessor is not run on the
5816 # input file. (Note that this only needs to work for GNU compilers.)
5817 ac_save_ext=$ac_ext
5818 ac_ext=F
5819 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5820 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5821 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 program main
5826 #ifndef __GNUC__
5827 choke me
5828 #endif
5829
5830 end
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_compiler_gnu=yes
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 ac_compiler_gnu=no
5859 fi
5860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5862
5863 fi
5864 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5865 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5866 ac_ext=$ac_save_ext
5867 ac_test_FFLAGS=${FFLAGS+set}
5868 ac_save_FFLAGS=$FFLAGS
5869 FFLAGS=
5870 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5871 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5872 if test "${ac_cv_prog_f77_g+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875 FFLAGS=-g
5876 cat >conftest.$ac_ext <<_ACEOF
5877 program main
5878
5879 end
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_cv_prog_f77_g=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_cv_prog_f77_g=no
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910
5911 fi
5912 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5913 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5914 if test "$ac_test_FFLAGS" = set; then
5915 FFLAGS=$ac_save_FFLAGS
5916 elif test $ac_cv_prog_f77_g = yes; then
5917 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5918 FFLAGS="-g -O2"
5919 else
5920 FFLAGS="-g"
5921 fi
5922 else
5923 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5924 FFLAGS="-O2"
5925 else
5926 FFLAGS=
5927 fi
5928 fi
5929
5930 G77=`test $ac_compiler_gnu = yes && echo yes`
5931 ac_ext=c
5932 ac_cpp='$CPP $CPPFLAGS'
5933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936
5937
5938
5939 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5940
5941 # find the maximum length of command line arguments
5942 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5943 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5944 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 i=0
5948 teststring="ABCD"
5949
5950 case $build_os in
5951 msdosdjgpp*)
5952 # On DJGPP, this test can blow up pretty badly due to problems in libc
5953 # (any single argument exceeding 2000 bytes causes a buffer overrun
5954 # during glob expansion). Even if it were fixed, the result of this
5955 # check would be larger than it should be.
5956 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5957 ;;
5958
5959 gnu*)
5960 # Under GNU Hurd, this test is not required because there is
5961 # no limit to the length of command line arguments.
5962 # Libtool will interpret -1 as no limit whatsoever
5963 lt_cv_sys_max_cmd_len=-1;
5964 ;;
5965
5966 cygwin* | mingw*)
5967 # On Win9x/ME, this test blows up -- it succeeds, but takes
5968 # about 5 minutes as the teststring grows exponentially.
5969 # Worse, since 9x/ME are not pre-emptively multitasking,
5970 # you end up with a "frozen" computer, even though with patience
5971 # the test eventually succeeds (with a max line length of 256k).
5972 # Instead, let's just punt: use the minimum linelength reported by
5973 # all of the supported platforms: 8192 (on NT/2K/XP).
5974 lt_cv_sys_max_cmd_len=8192;
5975 ;;
5976
5977 amigaos*)
5978 # On AmigaOS with pdksh, this test takes hours, literally.
5979 # So we just punt and use a minimum line length of 8192.
5980 lt_cv_sys_max_cmd_len=8192;
5981 ;;
5982
5983 *)
5984 # If test is not a shell built-in, we'll probably end up computing a
5985 # maximum length that is only half of the actual maximum length, but
5986 # we can't tell.
5987 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5988 = "XX$teststring") >/dev/null 2>&1 &&
5989 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5990 lt_cv_sys_max_cmd_len=$new_result &&
5991 test $i != 17 # 1/2 MB should be enough
5992 do
5993 i=`expr $i + 1`
5994 teststring=$teststring$teststring
5995 done
5996 teststring=
5997 # Add a significant safety factor because C++ compilers can tack on massive
5998 # amounts of additional arguments before passing them to the linker.
5999 # It appears as though 1/2 is a usable value.
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6001 ;;
6002 esac
6003
6004 fi
6005
6006 if test -n $lt_cv_sys_max_cmd_len ; then
6007 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6008 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6009 else
6010 echo "$as_me:$LINENO: result: none" >&5
6011 echo "${ECHO_T}none" >&6
6012 fi
6013
6014
6015
6016
6017 # Check for command to grab the raw symbol name followed by C symbol from nm.
6018 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6019 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6020 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023
6024 # These are sane defaults that work on at least a few old systems.
6025 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6026
6027 # Character class describing NM global symbol codes.
6028 symcode='[BCDEGRST]'
6029
6030 # Regexp to match symbols that can be accessed directly from C.
6031 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6032
6033 # Transform the above into a raw symbol and a C symbol.
6034 symxfrm='\1 \2\3 \3'
6035
6036 # Transform an extracted symbol line into a proper C declaration
6037 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6038
6039 # Transform an extracted symbol line into symbol name and symbol address
6040 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6041
6042 # Define system-specific variables.
6043 case $host_os in
6044 aix*)
6045 symcode='[BCDT]'
6046 ;;
6047 cygwin* | mingw* | pw32*)
6048 symcode='[ABCDGISTW]'
6049 ;;
6050 hpux*) # Its linker distinguishes data from code symbols
6051 if test "$host_cpu" = ia64; then
6052 symcode='[ABCDEGRST]'
6053 fi
6054 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6055 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6056 ;;
6057 irix* | nonstopux*)
6058 symcode='[BCDEGRST]'
6059 ;;
6060 osf*)
6061 symcode='[BCDEGQRST]'
6062 ;;
6063 solaris* | sysv5*)
6064 symcode='[BDRT]'
6065 ;;
6066 sysv4)
6067 symcode='[DFNSTU]'
6068 ;;
6069 esac
6070
6071 # Handle CRLF in mingw tool chain
6072 opt_cr=
6073 case $build_os in
6074 mingw*)
6075 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6076 ;;
6077 esac
6078
6079 # If we're using GNU nm, then use its standard symbol codes.
6080 case `$NM -V 2>&1` in
6081 *GNU* | *'with BFD'*)
6082 symcode='[ABCDGIRSTW]' ;;
6083 esac
6084
6085 # Try without a prefix undercore, then with it.
6086 for ac_symprfx in "" "_"; do
6087
6088 # Write the raw and C identifiers.
6089 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6090
6091 # Check to see that the pipe works correctly.
6092 pipe_works=no
6093
6094 rm -f conftest*
6095 cat > conftest.$ac_ext <<EOF
6096 #ifdef __cplusplus
6097 extern "C" {
6098 #endif
6099 char nm_test_var;
6100 void nm_test_func(){}
6101 #ifdef __cplusplus
6102 }
6103 #endif
6104 int main(){nm_test_var='a';nm_test_func();return(0);}
6105 EOF
6106
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; then
6112 # Now try to grab the symbols.
6113 nlist=conftest.nm
6114 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6115 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && test -s "$nlist"; then
6119 # Try sorting and uniquifying the output.
6120 if sort "$nlist" | uniq > "$nlist"T; then
6121 mv -f "$nlist"T "$nlist"
6122 else
6123 rm -f "$nlist"T
6124 fi
6125
6126 # Make sure that we snagged all the symbols we need.
6127 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6128 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6129 cat <<EOF > conftest.$ac_ext
6130 #ifdef __cplusplus
6131 extern "C" {
6132 #endif
6133
6134 EOF
6135 # Now generate the symbol file.
6136 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6137
6138 cat <<EOF >> conftest.$ac_ext
6139 #if defined (__STDC__) && __STDC__
6140 # define lt_ptr_t void *
6141 #else
6142 # define lt_ptr_t char *
6143 # define const
6144 #endif
6145
6146 /* The mapping between symbol names and symbols. */
6147 const struct {
6148 const char *name;
6149 lt_ptr_t address;
6150 }
6151 lt_preloaded_symbols[] =
6152 {
6153 EOF
6154 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6155 cat <<\EOF >> conftest.$ac_ext
6156 {0, (lt_ptr_t) 0}
6157 };
6158
6159 #ifdef __cplusplus
6160 }
6161 #endif
6162 EOF
6163 # Now try linking the two files.
6164 mv conftest.$ac_objext conftstm.$ac_objext
6165 lt_save_LIBS="$LIBS"
6166 lt_save_CFLAGS="$CFLAGS"
6167 LIBS="conftstm.$ac_objext"
6168 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6174 pipe_works=yes
6175 fi
6176 LIBS="$lt_save_LIBS"
6177 CFLAGS="$lt_save_CFLAGS"
6178 else
6179 echo "cannot find nm_test_func in $nlist" >&5
6180 fi
6181 else
6182 echo "cannot find nm_test_var in $nlist" >&5
6183 fi
6184 else
6185 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186 fi
6187 else
6188 echo "$progname: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 fi
6191 rm -f conftest* conftst*
6192
6193 # Do not use the global_symbol_pipe unless it works.
6194 if test "$pipe_works" = yes; then
6195 break
6196 else
6197 lt_cv_sys_global_symbol_pipe=
6198 fi
6199 done
6200
6201 fi
6202
6203 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6204 lt_cv_sys_global_symbol_to_cdecl=
6205 fi
6206 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6207 echo "$as_me:$LINENO: result: failed" >&5
6208 echo "${ECHO_T}failed" >&6
6209 else
6210 echo "$as_me:$LINENO: result: ok" >&5
6211 echo "${ECHO_T}ok" >&6
6212 fi
6213
6214 echo "$as_me:$LINENO: checking for objdir" >&5
6215 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6216 if test "${lt_cv_objdir+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 rm -f .libs 2>/dev/null
6220 mkdir .libs 2>/dev/null
6221 if test -d .libs; then
6222 lt_cv_objdir=.libs
6223 else
6224 # MS-DOS does not allow filenames that begin with a dot.
6225 lt_cv_objdir=_libs
6226 fi
6227 rmdir .libs 2>/dev/null
6228 fi
6229 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6230 echo "${ECHO_T}$lt_cv_objdir" >&6
6231 objdir=$lt_cv_objdir
6232
6233
6234
6235
6236
6237 case $host_os in
6238 aix3*)
6239 # AIX sometimes has problems with the GCC collect2 program. For some
6240 # reason, if we set the COLLECT_NAMES environment variable, the problems
6241 # vanish in a puff of smoke.
6242 if test "X${COLLECT_NAMES+set}" != Xset; then
6243 COLLECT_NAMES=
6244 export COLLECT_NAMES
6245 fi
6246 ;;
6247 esac
6248
6249 # Sed substitution that helps us do robust quoting. It backslashifies
6250 # metacharacters that are still active within double-quoted strings.
6251 Xsed='sed -e s/^X//'
6252 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6253
6254 # Same as above, but do not quote variable references.
6255 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6256
6257 # Sed substitution to delay expansion of an escaped shell variable in a
6258 # double_quote_subst'ed string.
6259 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6260
6261 # Sed substitution to avoid accidental globbing in evaled expressions
6262 no_glob_subst='s/\*/\\\*/g'
6263
6264 # Constants:
6265 rm="rm -f"
6266
6267 # Global variables:
6268 default_ofile=libtool
6269 can_build_shared=yes
6270
6271 # All known linkers require a `.a' archive for static linking (except M$VC,
6272 # which needs '.lib').
6273 libext=a
6274 ltmain="$ac_aux_dir/ltmain.sh"
6275 ofile="$default_ofile"
6276 with_gnu_ld="$lt_cv_prog_gnu_ld"
6277
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}ar; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_AR+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="${ac_tool_prefix}ar"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300 done
6301 done
6302
6303 fi
6304 fi
6305 AR=$ac_cv_prog_AR
6306 if test -n "$AR"; then
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308 echo "${ECHO_T}$AR" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312 fi
6313
6314 fi
6315 if test -z "$ac_cv_prog_AR"; then
6316 ac_ct_AR=$AR
6317 # Extract the first word of "ar", so it can be a program name with args.
6318 set dummy ar; ac_word=$2
6319 echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 if test -n "$ac_ct_AR"; then
6325 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_AR="ar"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340
6341 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6342 fi
6343 fi
6344 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6345 if test -n "$ac_ct_AR"; then
6346 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6347 echo "${ECHO_T}$ac_ct_AR" >&6
6348 else
6349 echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6351 fi
6352
6353 AR=$ac_ct_AR
6354 else
6355 AR="$ac_cv_prog_AR"
6356 fi
6357
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_prog_RANLIB+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 if test -n "$RANLIB"; then
6367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382
6383 fi
6384 fi
6385 RANLIB=$ac_cv_prog_RANLIB
6386 if test -n "$RANLIB"; then
6387 echo "$as_me:$LINENO: result: $RANLIB" >&5
6388 echo "${ECHO_T}$RANLIB" >&6
6389 else
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6392 fi
6393
6394 fi
6395 if test -z "$ac_cv_prog_RANLIB"; then
6396 ac_ct_RANLIB=$RANLIB
6397 # Extract the first word of "ranlib", so it can be a program name with args.
6398 set dummy ranlib; ac_word=$2
6399 echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 if test -n "$ac_ct_RANLIB"; then
6405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_ac_ct_RANLIB="ranlib"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420
6421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6422 fi
6423 fi
6424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6425 if test -n "$ac_ct_RANLIB"; then
6426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6428 else
6429 echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6
6431 fi
6432
6433 RANLIB=$ac_ct_RANLIB
6434 else
6435 RANLIB="$ac_cv_prog_RANLIB"
6436 fi
6437
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}strip; ac_word=$2
6441 echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443 if test "${ac_cv_prog_STRIP+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446 if test -n "$STRIP"; then
6447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462
6463 fi
6464 fi
6465 STRIP=$ac_cv_prog_STRIP
6466 if test -n "$STRIP"; then
6467 echo "$as_me:$LINENO: result: $STRIP" >&5
6468 echo "${ECHO_T}$STRIP" >&6
6469 else
6470 echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6
6472 fi
6473
6474 fi
6475 if test -z "$ac_cv_prog_STRIP"; then
6476 ac_ct_STRIP=$STRIP
6477 # Extract the first word of "strip", so it can be a program name with args.
6478 set dummy strip; ac_word=$2
6479 echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 if test -n "$ac_ct_STRIP"; then
6485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_ac_ct_STRIP="strip"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500
6501 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6502 fi
6503 fi
6504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6505 if test -n "$ac_ct_STRIP"; then
6506 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6507 echo "${ECHO_T}$ac_ct_STRIP" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6
6511 fi
6512
6513 STRIP=$ac_ct_STRIP
6514 else
6515 STRIP="$ac_cv_prog_STRIP"
6516 fi
6517
6518
6519 old_CC="$CC"
6520 old_CFLAGS="$CFLAGS"
6521
6522 # Set sane defaults for various variables
6523 test -z "$AR" && AR=ar
6524 test -z "$AR_FLAGS" && AR_FLAGS=cru
6525 test -z "$AS" && AS=as
6526 test -z "$CC" && CC=cc
6527 test -z "$LTCC" && LTCC=$CC
6528 test -z "$DLLTOOL" && DLLTOOL=dlltool
6529 test -z "$LD" && LD=ld
6530 test -z "$LN_S" && LN_S="ln -s"
6531 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6532 test -z "$NM" && NM=nm
6533 test -z "$SED" && SED=sed
6534 test -z "$OBJDUMP" && OBJDUMP=objdump
6535 test -z "$RANLIB" && RANLIB=:
6536 test -z "$STRIP" && STRIP=:
6537 test -z "$ac_objext" && ac_objext=o
6538
6539 # Determine commands to create old-style static archives.
6540 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6541 old_postinstall_cmds='chmod 644 $oldlib'
6542 old_postuninstall_cmds=
6543
6544 if test -n "$RANLIB"; then
6545 case $host_os in
6546 openbsd*)
6547 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6548 ;;
6549 *)
6550 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6551 ;;
6552 esac
6553 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6554 fi
6555
6556 # Only perform the check for file, if the check method requires it
6557 case $deplibs_check_method in
6558 file_magic*)
6559 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6560 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6561 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 case $MAGIC_CMD in
6566 [\\/*] | ?:[\\/]*)
6567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6568 ;;
6569 *)
6570 lt_save_MAGIC_CMD="$MAGIC_CMD"
6571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6573 for ac_dir in $ac_dummy; do
6574 IFS="$lt_save_ifs"
6575 test -z "$ac_dir" && ac_dir=.
6576 if test -f $ac_dir/${ac_tool_prefix}file; then
6577 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6578 if test -n "$file_magic_test_file"; then
6579 case $deplibs_check_method in
6580 "file_magic "*)
6581 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6584 $EGREP "$file_magic_regex" > /dev/null; then
6585 :
6586 else
6587 cat <<EOF 1>&2
6588
6589 *** Warning: the command libtool uses to detect shared libraries,
6590 *** $file_magic_cmd, produces output that libtool cannot recognize.
6591 *** The result is that libtool may fail to recognize shared libraries
6592 *** as such. This will affect the creation of libtool libraries that
6593 *** depend on shared libraries, but programs linked with such libtool
6594 *** libraries will work regardless of this problem. Nevertheless, you
6595 *** may want to report the problem to your system manager and/or to
6596 *** [email protected]
6597
6598 EOF
6599 fi ;;
6600 esac
6601 fi
6602 break
6603 fi
6604 done
6605 IFS="$lt_save_ifs"
6606 MAGIC_CMD="$lt_save_MAGIC_CMD"
6607 ;;
6608 esac
6609 fi
6610
6611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6612 if test -n "$MAGIC_CMD"; then
6613 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6614 echo "${ECHO_T}$MAGIC_CMD" >&6
6615 else
6616 echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6618 fi
6619
6620 if test -z "$lt_cv_path_MAGIC_CMD"; then
6621 if test -n "$ac_tool_prefix"; then
6622 echo "$as_me:$LINENO: checking for file" >&5
6623 echo $ECHO_N "checking for file... $ECHO_C" >&6
6624 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 case $MAGIC_CMD in
6628 [\\/*] | ?:[\\/]*)
6629 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6630 ;;
6631 *)
6632 lt_save_MAGIC_CMD="$MAGIC_CMD"
6633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6635 for ac_dir in $ac_dummy; do
6636 IFS="$lt_save_ifs"
6637 test -z "$ac_dir" && ac_dir=.
6638 if test -f $ac_dir/file; then
6639 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6640 if test -n "$file_magic_test_file"; then
6641 case $deplibs_check_method in
6642 "file_magic "*)
6643 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6646 $EGREP "$file_magic_regex" > /dev/null; then
6647 :
6648 else
6649 cat <<EOF 1>&2
6650
6651 *** Warning: the command libtool uses to detect shared libraries,
6652 *** $file_magic_cmd, produces output that libtool cannot recognize.
6653 *** The result is that libtool may fail to recognize shared libraries
6654 *** as such. This will affect the creation of libtool libraries that
6655 *** depend on shared libraries, but programs linked with such libtool
6656 *** libraries will work regardless of this problem. Nevertheless, you
6657 *** may want to report the problem to your system manager and/or to
6658 *** [email protected]
6659
6660 EOF
6661 fi ;;
6662 esac
6663 fi
6664 break
6665 fi
6666 done
6667 IFS="$lt_save_ifs"
6668 MAGIC_CMD="$lt_save_MAGIC_CMD"
6669 ;;
6670 esac
6671 fi
6672
6673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6674 if test -n "$MAGIC_CMD"; then
6675 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6676 echo "${ECHO_T}$MAGIC_CMD" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680 fi
6681
6682 else
6683 MAGIC_CMD=:
6684 fi
6685 fi
6686
6687 fi
6688 ;;
6689 esac
6690
6691 enable_dlopen=no
6692 enable_win32_dll=no
6693
6694 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6695 if test "${enable_libtool_lock+set}" = set; then
6696 enableval="$enable_libtool_lock"
6697
6698 fi;
6699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6700
6701
6702 # Check whether --with-pic or --without-pic was given.
6703 if test "${with_pic+set}" = set; then
6704 withval="$with_pic"
6705 pic_mode="$withval"
6706 else
6707 pic_mode=default
6708 fi;
6709 test -z "$pic_mode" && pic_mode=default
6710
6711 # Use C for the default configuration in the libtool script
6712 tagname=
6713 lt_save_CC="$CC"
6714 ac_ext=c
6715 ac_cpp='$CPP $CPPFLAGS'
6716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719
6720
6721 # Source file extension for C test sources.
6722 ac_ext=c
6723
6724 # Object file extension for compiled C test sources.
6725 objext=o
6726 objext=$objext
6727
6728 # Code to be used in simple compile tests
6729 lt_simple_compile_test_code="int some_variable = 0;\n"
6730
6731 # Code to be used in simple link tests
6732 lt_simple_link_test_code='int main(){return(0);}\n'
6733
6734
6735 # If no C compiler was specified, use CC.
6736 LTCC=${LTCC-"$CC"}
6737
6738 # Allow CC to be a program name with arguments.
6739 compiler=$CC
6740
6741
6742 #
6743 # Check for any special shared library compilation flags.
6744 #
6745 lt_prog_cc_shlib=
6746 if test "$GCC" = no; then
6747 case $host_os in
6748 sco3.2v5*)
6749 lt_prog_cc_shlib='-belf'
6750 ;;
6751 esac
6752 fi
6753 if test -n "$lt_prog_cc_shlib"; then
6754 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6755 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6756 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6757 else
6758 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6759 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6760 lt_cv_prog_cc_can_build_shared=no
6761 fi
6762 fi
6763
6764
6765 #
6766 # Check to make sure the static flag actually works.
6767 #
6768 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6769 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6770 if test "${lt_prog_compiler_static_works+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 lt_prog_compiler_static_works=no
6774 save_LDFLAGS="$LDFLAGS"
6775 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6776 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6778 # The compiler can only warn and ignore the option if not recognized
6779 # So say no if there are warnings
6780 if test -s conftest.err; then
6781 # Append any errors to the config.log.
6782 cat conftest.err 1>&5
6783 else
6784 lt_prog_compiler_static_works=yes
6785 fi
6786 fi
6787 $rm conftest*
6788 LDFLAGS="$save_LDFLAGS"
6789
6790 fi
6791 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6792 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6793
6794 if test x"$lt_prog_compiler_static_works" = xyes; then
6795 :
6796 else
6797 lt_prog_compiler_static=
6798 fi
6799
6800
6801
6802
6803 lt_prog_compiler_no_builtin_flag=
6804
6805 if test "$GCC" = yes; then
6806 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6807
6808
6809 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6810 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6811 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 lt_cv_prog_compiler_rtti_exceptions=no
6815 ac_outfile=conftest.$ac_objext
6816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6817 lt_compiler_flag="-fno-rtti -fno-exceptions"
6818 # Insert the option either (1) after the last *FLAGS variable, or
6819 # (2) before a word containing "conftest.", or (3) at the end.
6820 # Note that $ac_compile itself does not contain backslashes and begins
6821 # with a dollar sign (not a hyphen), so the echo should work correctly.
6822 # The option is referenced via a variable to avoid confusing sed.
6823 lt_compile=`echo "$ac_compile" | $SED \
6824 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6826 -e 's:$: $lt_compiler_flag:'`
6827 (eval echo "\"\$as_me:6827: $lt_compile\"" >&5)
6828 (eval "$lt_compile" 2>conftest.err)
6829 ac_status=$?
6830 cat conftest.err >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 if (exit $ac_status) && test -s "$ac_outfile"; then
6833 # The compiler can only warn and ignore the option if not recognized
6834 # So say no if there are warnings
6835 if test ! -s conftest.err; then
6836 lt_cv_prog_compiler_rtti_exceptions=yes
6837 fi
6838 fi
6839 $rm conftest*
6840
6841 fi
6842 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6843 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6844
6845 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6846 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6847 else
6848 :
6849 fi
6850
6851 fi
6852
6853 lt_prog_compiler_wl=
6854 lt_prog_compiler_pic=
6855 lt_prog_compiler_static=
6856
6857 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6858 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6859
6860 if test "$GCC" = yes; then
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_static='-static'
6863
6864 case $host_os in
6865 aix*)
6866 # All AIX code is PIC.
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 now supports IA64 processor
6869 lt_prog_compiler_static='-Bstatic'
6870 fi
6871 ;;
6872
6873 amigaos*)
6874 # FIXME: we need at least 68020 code to build shared libraries, but
6875 # adding the `-m68020' flag to GCC prevents building anything better,
6876 # like `-m68040'.
6877 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6878 ;;
6879
6880 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6881 # PIC is the default for these OSes.
6882 ;;
6883
6884 mingw* | pw32* | os2*)
6885 # This hack is so that the source file can tell whether it is being
6886 # built for inclusion in a dll (and should export symbols for example).
6887 lt_prog_compiler_pic='-DDLL_EXPORT'
6888 ;;
6889
6890 darwin* | rhapsody*)
6891 # PIC is the default on this platform
6892 # Common symbols not allowed in MH_DYLIB files
6893 lt_prog_compiler_pic='-fno-common'
6894 ;;
6895
6896 msdosdjgpp*)
6897 # Just because we use GCC doesn't mean we suddenly get shared libraries
6898 # on systems that don't support them.
6899 lt_prog_compiler_can_build_shared=no
6900 enable_shared=no
6901 ;;
6902
6903 sysv4*MP*)
6904 if test -d /usr/nec; then
6905 lt_prog_compiler_pic=-Kconform_pic
6906 fi
6907 ;;
6908
6909 hpux*)
6910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6911 # not for PA HP-UX.
6912 case "$host_cpu" in
6913 hppa*64*|ia64*)
6914 # +Z the default
6915 ;;
6916 *)
6917 lt_prog_compiler_pic='-fPIC'
6918 ;;
6919 esac
6920 ;;
6921
6922 *)
6923 lt_prog_compiler_pic='-fPIC'
6924 ;;
6925 esac
6926 else
6927 # PORTME Check for flag to pass linker flags through the system compiler.
6928 case $host_os in
6929 aix*)
6930 lt_prog_compiler_wl='-Wl,'
6931 if test "$host_cpu" = ia64; then
6932 # AIX 5 now supports IA64 processor
6933 lt_prog_compiler_static='-Bstatic'
6934 else
6935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6936 fi
6937 ;;
6938
6939 mingw* | pw32* | os2*)
6940 # This hack is so that the source file can tell whether it is being
6941 # built for inclusion in a dll (and should export symbols for example).
6942 lt_prog_compiler_pic='-DDLL_EXPORT'
6943 ;;
6944
6945 hpux9* | hpux10* | hpux11*)
6946 lt_prog_compiler_wl='-Wl,'
6947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6948 # not for PA HP-UX.
6949 case "$host_cpu" in
6950 hppa*64*|ia64*)
6951 # +Z the default
6952 ;;
6953 *)
6954 lt_prog_compiler_pic='+Z'
6955 ;;
6956 esac
6957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6958 lt_prog_compiler_static='${wl}-a ${wl}archive'
6959 ;;
6960
6961 irix5* | irix6* | nonstopux*)
6962 lt_prog_compiler_wl='-Wl,'
6963 # PIC (with -KPIC) is the default.
6964 lt_prog_compiler_static='-non_shared'
6965 ;;
6966
6967 newsos6)
6968 lt_prog_compiler_pic='-KPIC'
6969 lt_prog_compiler_static='-Bstatic'
6970 ;;
6971
6972 linux*)
6973 case $CC in
6974 icc* | ecc*)
6975 lt_prog_compiler_wl='-Wl,'
6976 lt_prog_compiler_pic='-KPIC'
6977 lt_prog_compiler_static='-static'
6978 ;;
6979 ccc*)
6980 lt_prog_compiler_wl='-Wl,'
6981 # All Alpha code is PIC.
6982 lt_prog_compiler_static='-non_shared'
6983 ;;
6984 esac
6985 ;;
6986
6987 osf3* | osf4* | osf5*)
6988 lt_prog_compiler_wl='-Wl,'
6989 # All OSF/1 code is PIC.
6990 lt_prog_compiler_static='-non_shared'
6991 ;;
6992
6993 sco3.2v5*)
6994 lt_prog_compiler_pic='-Kpic'
6995 lt_prog_compiler_static='-dn'
6996 ;;
6997
6998 solaris*)
6999 lt_prog_compiler_wl='-Wl,'
7000 lt_prog_compiler_pic='-KPIC'
7001 lt_prog_compiler_static='-Bstatic'
7002 ;;
7003
7004 sunos4*)
7005 lt_prog_compiler_wl='-Qoption ld '
7006 lt_prog_compiler_pic='-PIC'
7007 lt_prog_compiler_static='-Bstatic'
7008 ;;
7009
7010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-Bstatic'
7014 ;;
7015
7016 sysv4*MP*)
7017 if test -d /usr/nec ;then
7018 lt_prog_compiler_pic='-Kconform_pic'
7019 lt_prog_compiler_static='-Bstatic'
7020 fi
7021 ;;
7022
7023 uts4*)
7024 lt_prog_compiler_pic='-pic'
7025 lt_prog_compiler_static='-Bstatic'
7026 ;;
7027
7028 *)
7029 lt_prog_compiler_can_build_shared=no
7030 ;;
7031 esac
7032 fi
7033
7034 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7035 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7036
7037 #
7038 # Check to make sure the PIC flag actually works.
7039 #
7040 if test -n "$lt_prog_compiler_pic"; then
7041
7042 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7043 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7044 if test "${lt_prog_compiler_pic_works+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 lt_prog_compiler_pic_works=no
7048 ac_outfile=conftest.$ac_objext
7049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7050 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7051 # Insert the option either (1) after the last *FLAGS variable, or
7052 # (2) before a word containing "conftest.", or (3) at the end.
7053 # Note that $ac_compile itself does not contain backslashes and begins
7054 # with a dollar sign (not a hyphen), so the echo should work correctly.
7055 # The option is referenced via a variable to avoid confusing sed.
7056 lt_compile=`echo "$ac_compile" | $SED \
7057 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7059 -e 's:$: $lt_compiler_flag:'`
7060 (eval echo "\"\$as_me:7060: $lt_compile\"" >&5)
7061 (eval "$lt_compile" 2>conftest.err)
7062 ac_status=$?
7063 cat conftest.err >&5
7064 echo "$as_me:7064: \$? = $ac_status" >&5
7065 if (exit $ac_status) && test -s "$ac_outfile"; then
7066 # The compiler can only warn and ignore the option if not recognized
7067 # So say no if there are warnings
7068 if test ! -s conftest.err; then
7069 lt_prog_compiler_pic_works=yes
7070 fi
7071 fi
7072 $rm conftest*
7073
7074 fi
7075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7076 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7077
7078 if test x"$lt_prog_compiler_pic_works" = xyes; then
7079 case $lt_prog_compiler_pic in
7080 "" | " "*) ;;
7081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7082 esac
7083 else
7084 lt_prog_compiler_pic=
7085 lt_prog_compiler_can_build_shared=no
7086 fi
7087
7088 fi
7089 case "$host_os" in
7090 # For platforms which do not support PIC, -DPIC is meaningless:
7091 *djgpp*)
7092 lt_prog_compiler_pic=
7093 ;;
7094 *)
7095 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7096 ;;
7097 esac
7098
7099 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7101 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 lt_cv_prog_compiler_c_o=no
7105 $rm -r conftest 2>/dev/null
7106 mkdir conftest
7107 cd conftest
7108 mkdir out
7109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7110
7111 lt_compiler_flag="-o out/conftest2.$ac_objext"
7112 # Insert the option either (1) after the last *FLAGS variable, or
7113 # (2) before a word containing "conftest.", or (3) at the end.
7114 # Note that $ac_compile itself does not contain backslashes and begins
7115 # with a dollar sign (not a hyphen), so the echo should work correctly.
7116 lt_compile=`echo "$ac_compile" | $SED \
7117 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7119 -e 's:$: $lt_compiler_flag:'`
7120 (eval echo "\"\$as_me:7120: $lt_compile\"" >&5)
7121 (eval "$lt_compile" 2>out/conftest.err)
7122 ac_status=$?
7123 cat out/conftest.err >&5
7124 echo "$as_me:7124: \$? = $ac_status" >&5
7125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7126 then
7127 # The compiler can only warn and ignore the option if not recognized
7128 # So say no if there are warnings
7129 if test ! -s out/conftest.err; then
7130 lt_cv_prog_compiler_c_o=yes
7131 fi
7132 fi
7133 chmod u+w .
7134 $rm conftest*
7135 # SGI C++ compiler will create directory out/ii_files/ for
7136 # template instantiation
7137 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7138 $rm out/* && rmdir out
7139 cd ..
7140 rmdir conftest
7141 $rm conftest*
7142
7143 fi
7144 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7146
7147
7148 hard_links="nottested"
7149 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7150 # do not overwrite the value of need_locks provided by the user
7151 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7152 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7153 hard_links=yes
7154 $rm conftest*
7155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7156 touch conftest.a
7157 ln conftest.a conftest.b 2>&5 || hard_links=no
7158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7159 echo "$as_me:$LINENO: result: $hard_links" >&5
7160 echo "${ECHO_T}$hard_links" >&6
7161 if test "$hard_links" = no; then
7162 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7163 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7164 need_locks=warn
7165 fi
7166 else
7167 need_locks=no
7168 fi
7169
7170 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7172
7173 runpath_var=
7174 allow_undefined_flag=
7175 enable_shared_with_static_runtimes=no
7176 archive_cmds=
7177 archive_expsym_cmds=
7178 old_archive_From_new_cmds=
7179 old_archive_from_expsyms_cmds=
7180 export_dynamic_flag_spec=
7181 whole_archive_flag_spec=
7182 thread_safe_flag_spec=
7183 hardcode_libdir_flag_spec=
7184 hardcode_libdir_flag_spec_ld=
7185 hardcode_libdir_separator=
7186 hardcode_direct=no
7187 hardcode_minus_L=no
7188 hardcode_shlibpath_var=unsupported
7189 link_all_deplibs=unknown
7190 hardcode_automatic=no
7191 module_cmds=
7192 module_expsym_cmds=
7193 always_export_symbols=no
7194 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7195 # include_expsyms should be a list of space-separated symbols to be *always*
7196 # included in the symbol list
7197 include_expsyms=
7198 # exclude_expsyms can be an extended regexp of symbols to exclude
7199 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7200 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7201 # as well as any symbol that contains `d'.
7202 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7203 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7204 # platforms (ab)use it in PIC code, but their linkers get confused if
7205 # the symbol is explicitly referenced. Since portable code cannot
7206 # rely on this symbol name, it's probably fine to never include it in
7207 # preloaded symbol tables.
7208 extract_expsyms_cmds=
7209
7210 case $host_os in
7211 cygwin* | mingw* | pw32*)
7212 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7213 # When not using gcc, we currently assume that we are using
7214 # Microsoft Visual C++.
7215 if test "$GCC" != yes; then
7216 with_gnu_ld=no
7217 fi
7218 ;;
7219 openbsd*)
7220 with_gnu_ld=no
7221 ;;
7222 esac
7223
7224 ld_shlibs=yes
7225 if test "$with_gnu_ld" = yes; then
7226 # If archive_cmds runs LD, not CC, wlarc should be empty
7227 wlarc='${wl}'
7228
7229 # See if GNU ld supports shared libraries.
7230 case $host_os in
7231 aix3* | aix4* | aix5*)
7232 # On AIX/PPC, the GNU linker is very broken
7233 if test "$host_cpu" != ia64; then
7234 ld_shlibs=no
7235 cat <<EOF 1>&2
7236
7237 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7238 *** to be unable to reliably create shared libraries on AIX.
7239 *** Therefore, libtool is disabling shared libraries support. If you
7240 *** really care for shared libraries, you may want to modify your PATH
7241 *** so that a non-GNU linker is found, and then restart.
7242
7243 EOF
7244 fi
7245 ;;
7246
7247 amigaos*)
7248 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)'
7249 hardcode_libdir_flag_spec='-L$libdir'
7250 hardcode_minus_L=yes
7251
7252 # Samuel A. Falvo II <[email protected]> reports
7253 # that the semantics of dynamic libraries on AmigaOS, at least up
7254 # to version 4, is to share data among multiple programs linked
7255 # with the same dynamic library. Since this doesn't match the
7256 # behavior of shared libraries on other platforms, we can't use
7257 # them.
7258 ld_shlibs=no
7259 ;;
7260
7261 beos*)
7262 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7263 allow_undefined_flag=unsupported
7264 # Joseph Beckenbach <[email protected]> says some releases of gcc
7265 # support --undefined. This deserves some investigation. FIXME
7266 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7267 else
7268 ld_shlibs=no
7269 fi
7270 ;;
7271
7272 cygwin* | mingw* | pw32*)
7273 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7274 # as there is no search path for DLLs.
7275 hardcode_libdir_flag_spec='-L$libdir'
7276 allow_undefined_flag=unsupported
7277 always_export_symbols=no
7278 enable_shared_with_static_runtimes=yes
7279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7280
7281 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7283 # If the export-symbols file already is a .def file (1st line
7284 # is EXPORTS), use it as is; otherwise, prepend...
7285 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7286 cp $export_symbols $output_objdir/$soname.def;
7287 else
7288 echo EXPORTS > $output_objdir/$soname.def;
7289 cat $export_symbols >> $output_objdir/$soname.def;
7290 fi~
7291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7292 else
7293 ld_shlibs=no
7294 fi
7295 ;;
7296
7297 netbsd* | knetbsd*-gnu)
7298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7300 wlarc=
7301 else
7302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7304 fi
7305 ;;
7306
7307 solaris* | sysv5*)
7308 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7309 ld_shlibs=no
7310 cat <<EOF 1>&2
7311
7312 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7313 *** create shared libraries on Solaris systems. Therefore, libtool
7314 *** is disabling shared libraries support. We urge you to upgrade GNU
7315 *** binutils to release 2.9.1 or newer. Another option is to modify
7316 *** your PATH or compiler configuration so that the native linker is
7317 *** used, and then restart.
7318
7319 EOF
7320 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7323 else
7324 ld_shlibs=no
7325 fi
7326 ;;
7327
7328 sunos4*)
7329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7330 wlarc=
7331 hardcode_direct=yes
7332 hardcode_shlibpath_var=no
7333 ;;
7334
7335 linux*)
7336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7337 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7338 archive_cmds="$tmp_archive_cmds"
7339 supports_anon_versioning=no
7340 case `$LD -v 2>/dev/null` in
7341 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7342 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7343 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7344 *\ 2.11.*) ;; # other 2.11 versions
7345 *) supports_anon_versioning=yes ;;
7346 esac
7347 if test $supports_anon_versioning = yes; then
7348 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7350 $echo "local: *; };" >> $output_objdir/$libname.ver~
7351 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7352 else
7353 archive_expsym_cmds="$tmp_archive_cmds"
7354 fi
7355 link_all_deplibs=no
7356 else
7357 ld_shlibs=no
7358 fi
7359 ;;
7360
7361 *)
7362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7365 else
7366 ld_shlibs=no
7367 fi
7368 ;;
7369 esac
7370
7371 if test "$ld_shlibs" = yes; then
7372 runpath_var=LD_RUN_PATH
7373 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7374 export_dynamic_flag_spec='${wl}--export-dynamic'
7375 # ancient GNU ld didn't support --whole-archive et. al.
7376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7378 else
7379 whole_archive_flag_spec=
7380 fi
7381 fi
7382 else
7383 # PORTME fill in a description of your system's linker (not GNU ld)
7384 case $host_os in
7385 aix3*)
7386 allow_undefined_flag=unsupported
7387 always_export_symbols=yes
7388 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'
7389 # Note: this linker hardcodes the directories in LIBPATH if there
7390 # are no directories specified by -L.
7391 hardcode_minus_L=yes
7392 if test "$GCC" = yes && test -z "$link_static_flag"; then
7393 # Neither direct hardcoding nor static linking is supported with a
7394 # broken collect2.
7395 hardcode_direct=unsupported
7396 fi
7397 ;;
7398
7399 aix4* | aix5*)
7400 if test "$host_cpu" = ia64; then
7401 # On IA64, the linker does run time linking by default, so we don't
7402 # have to do anything special.
7403 aix_use_runtimelinking=no
7404 exp_sym_flag='-Bexport'
7405 no_entry_flag=""
7406 else
7407 # If we're using GNU nm, then we don't want the "-C" option.
7408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7410 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7411 else
7412 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7413 fi
7414 aix_use_runtimelinking=no
7415
7416 # Test if we are trying to use run time linking or normal
7417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7418 # need to do runtime linking.
7419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7420 for ld_flag in $LDFLAGS; do
7421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7422 aix_use_runtimelinking=yes
7423 break
7424 fi
7425 done
7426 esac
7427
7428 exp_sym_flag='-bexport'
7429 no_entry_flag='-bnoentry'
7430 fi
7431
7432 # When large executables or shared objects are built, AIX ld can
7433 # have problems creating the table of contents. If linking a library
7434 # or program results in "error TOC overflow" add -mminimal-toc to
7435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7437
7438 archive_cmds=''
7439 hardcode_direct=yes
7440 hardcode_libdir_separator=':'
7441 link_all_deplibs=yes
7442
7443 if test "$GCC" = yes; then
7444 case $host_os in aix4.012|aix4.012.*)
7445 # We only want to do this on AIX 4.2 and lower, the check
7446 # below for broken collect2 doesn't work under 4.3+
7447 collect2name=`${CC} -print-prog-name=collect2`
7448 if test -f "$collect2name" && \
7449 strings "$collect2name" | grep resolve_lib_name >/dev/null
7450 then
7451 # We have reworked collect2
7452 hardcode_direct=yes
7453 else
7454 # We have old collect2
7455 hardcode_direct=unsupported
7456 # It fails to find uninstalled libraries when the uninstalled
7457 # path is not listed in the libpath. Setting hardcode_minus_L
7458 # to unsupported forces relinking
7459 hardcode_minus_L=yes
7460 hardcode_libdir_flag_spec='-L$libdir'
7461 hardcode_libdir_separator=
7462 fi
7463 esac
7464 shared_flag='-shared'
7465 else
7466 # not using gcc
7467 if test "$host_cpu" = ia64; then
7468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7469 # chokes on -Wl,-G. The following line is correct:
7470 shared_flag='-G'
7471 else
7472 if test "$aix_use_runtimelinking" = yes; then
7473 shared_flag='${wl}-G'
7474 else
7475 shared_flag='${wl}-bM:SRE'
7476 fi
7477 fi
7478 fi
7479
7480 # It seems that -bexpall does not export symbols beginning with
7481 # underscore (_), so it is better to generate a list of symbols to export.
7482 always_export_symbols=yes
7483 if test "$aix_use_runtimelinking" = yes; then
7484 # Warning - without using the other runtime loading flags (-brtl),
7485 # -berok will link without error, but may produce a broken library.
7486 allow_undefined_flag='-berok'
7487 # Determine the default libpath from the value encoded in an empty executable.
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494
7495 int
7496 main ()
7497 {
7498
7499 ;
7500 return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 (eval $ac_try) 2>&5
7515 ac_status=$?
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; } &&
7518 { ac_try='test -s conftest$ac_exeext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524
7525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7526 }'`
7527 # Check for a 64-bit object if we didn't find anything.
7528 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7529 }'`; fi
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 fi
7535 rm -f conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7538
7539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7540 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"
7541 else
7542 if test "$host_cpu" = ia64; then
7543 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7544 allow_undefined_flag="-z nodefs"
7545 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7546 else
7547 # Determine the default libpath from the value encoded in an empty executable.
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554
7555 int
7556 main ()
7557 {
7558
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584
7585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7586 }'`
7587 # Check for a 64-bit object if we didn't find anything.
7588 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7589 }'`; fi
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 fi
7595 rm -f conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7598
7599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7600 # Warning - without using the other run time loading flags,
7601 # -berok will link without error, but may produce a broken library.
7602 no_undefined_flag=' ${wl}-bernotok'
7603 allow_undefined_flag=' ${wl}-berok'
7604 # -bexpall does not export symbols beginning with underscore (_)
7605 always_export_symbols=yes
7606 # Exported symbols can be pulled into shared objects from archives
7607 whole_archive_flag_spec=' '
7608 archive_cmds_need_lc=yes
7609 # This is similar to how AIX traditionally builds it's shared libraries.
7610 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7611 fi
7612 fi
7613 ;;
7614
7615 amigaos*)
7616 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)'
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 hardcode_minus_L=yes
7619 # see comment about different semantics on the GNU ld section
7620 ld_shlibs=no
7621 ;;
7622
7623 bsdi4*)
7624 export_dynamic_flag_spec=-rdynamic
7625 ;;
7626
7627 cygwin* | mingw* | pw32*)
7628 # When not using gcc, we currently assume that we are using
7629 # Microsoft Visual C++.
7630 # hardcode_libdir_flag_spec is actually meaningless, as there is
7631 # no search path for DLLs.
7632 hardcode_libdir_flag_spec=' '
7633 allow_undefined_flag=unsupported
7634 # Tell ltmain to make .lib files, not .a files.
7635 libext=lib
7636 # Tell ltmain to make .dll files, not .so files.
7637 shrext_cmds=".dll"
7638 # FIXME: Setting linknames here is a bad hack.
7639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7640 # The linker will automatically build a .lib file if we build a DLL.
7641 old_archive_From_new_cmds='true'
7642 # FIXME: Should let the user specify the lib program.
7643 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7644 fix_srcfile_path='`cygpath -w "$srcfile"`'
7645 enable_shared_with_static_runtimes=yes
7646 ;;
7647
7648 darwin* | rhapsody*)
7649 if test "$GXX" = yes ; then
7650 archive_cmds_need_lc=no
7651 case "$host_os" in
7652 rhapsody* | darwin1.[012])
7653 allow_undefined_flag='-undefined suppress'
7654 ;;
7655 *) # Darwin 1.3 on
7656 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7657 allow_undefined_flag='-flat_namespace -undefined suppress'
7658 else
7659 case ${MACOSX_DEPLOYMENT_TARGET} in
7660 10.[012])
7661 allow_undefined_flag='-flat_namespace -undefined suppress'
7662 ;;
7663 10.*)
7664 allow_undefined_flag='-undefined dynamic_lookup'
7665 ;;
7666 esac
7667 fi
7668 ;;
7669 esac
7670 lt_int_apple_cc_single_mod=no
7671 output_verbose_link_cmd='echo'
7672 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7673 lt_int_apple_cc_single_mod=yes
7674 fi
7675 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7676 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7677 else
7678 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7679 fi
7680 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7682 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7683 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7684 else
7685 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7686 fi
7687 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7688 hardcode_direct=no
7689 hardcode_automatic=yes
7690 hardcode_shlibpath_var=unsupported
7691 whole_archive_flag_spec='-all_load $convenience'
7692 link_all_deplibs=yes
7693 else
7694 ld_shlibs=no
7695 fi
7696 ;;
7697
7698 dgux*)
7699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7700 hardcode_libdir_flag_spec='-L$libdir'
7701 hardcode_shlibpath_var=no
7702 ;;
7703
7704 freebsd1*)
7705 ld_shlibs=no
7706 ;;
7707
7708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7709 # support. Future versions do this automatically, but an explicit c++rt0.o
7710 # does not break anything, and helps significantly (at the cost of a little
7711 # extra space).
7712 freebsd2.2*)
7713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7714 hardcode_libdir_flag_spec='-R$libdir'
7715 hardcode_direct=yes
7716 hardcode_shlibpath_var=no
7717 ;;
7718
7719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7720 freebsd2*)
7721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_direct=yes
7723 hardcode_minus_L=yes
7724 hardcode_shlibpath_var=no
7725 ;;
7726
7727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7728 freebsd* | kfreebsd*-gnu)
7729 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7730 hardcode_libdir_flag_spec='-R$libdir'
7731 hardcode_direct=yes
7732 hardcode_shlibpath_var=no
7733 ;;
7734
7735 hpux9*)
7736 if test "$GCC" = yes; then
7737 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7738 else
7739 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'
7740 fi
7741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7742 hardcode_libdir_separator=:
7743 hardcode_direct=yes
7744
7745 # hardcode_minus_L: Not really in the search PATH,
7746 # but as the default location of the library.
7747 hardcode_minus_L=yes
7748 export_dynamic_flag_spec='${wl}-E'
7749 ;;
7750
7751 hpux10* | hpux11*)
7752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7753 case "$host_cpu" in
7754 hppa*64*|ia64*)
7755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7756 ;;
7757 *)
7758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7759 ;;
7760 esac
7761 else
7762 case "$host_cpu" in
7763 hppa*64*|ia64*)
7764 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7765 ;;
7766 *)
7767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7768 ;;
7769 esac
7770 fi
7771 if test "$with_gnu_ld" = no; then
7772 case "$host_cpu" in
7773 hppa*64*)
7774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7775 hardcode_libdir_flag_spec_ld='+b $libdir'
7776 hardcode_libdir_separator=:
7777 hardcode_direct=no
7778 hardcode_shlibpath_var=no
7779 ;;
7780 ia64*)
7781 hardcode_libdir_flag_spec='-L$libdir'
7782 hardcode_direct=no
7783 hardcode_shlibpath_var=no
7784
7785 # hardcode_minus_L: Not really in the search PATH,
7786 # but as the default location of the library.
7787 hardcode_minus_L=yes
7788 ;;
7789 *)
7790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7791 hardcode_libdir_separator=:
7792 hardcode_direct=yes
7793 export_dynamic_flag_spec='${wl}-E'
7794
7795 # hardcode_minus_L: Not really in the search PATH,
7796 # but as the default location of the library.
7797 hardcode_minus_L=yes
7798 ;;
7799 esac
7800 fi
7801 ;;
7802
7803 irix5* | irix6* | nonstopux*)
7804 if test "$GCC" = yes; then
7805 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'
7806 else
7807 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'
7808 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7809 fi
7810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7811 hardcode_libdir_separator=:
7812 link_all_deplibs=yes
7813 ;;
7814
7815 netbsd* | knetbsd*-gnu)
7816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7818 else
7819 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7820 fi
7821 hardcode_libdir_flag_spec='-R$libdir'
7822 hardcode_direct=yes
7823 hardcode_shlibpath_var=no
7824 ;;
7825
7826 newsos6)
7827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7828 hardcode_direct=yes
7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830 hardcode_libdir_separator=:
7831 hardcode_shlibpath_var=no
7832 ;;
7833
7834 openbsd*)
7835 hardcode_direct=yes
7836 hardcode_shlibpath_var=no
7837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7840 export_dynamic_flag_spec='${wl}-E'
7841 else
7842 case $host_os in
7843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7845 hardcode_libdir_flag_spec='-R$libdir'
7846 ;;
7847 *)
7848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7850 ;;
7851 esac
7852 fi
7853 ;;
7854
7855 os2*)
7856 hardcode_libdir_flag_spec='-L$libdir'
7857 hardcode_minus_L=yes
7858 allow_undefined_flag=unsupported
7859 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'
7860 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7861 ;;
7862
7863 osf3*)
7864 if test "$GCC" = yes; then
7865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7866 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'
7867 else
7868 allow_undefined_flag=' -expect_unresolved \*'
7869 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'
7870 fi
7871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7872 hardcode_libdir_separator=:
7873 ;;
7874
7875 osf4* | osf5*) # as osf3* with the addition of -msym flag
7876 if test "$GCC" = yes; then
7877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7878 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'
7879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7880 else
7881 allow_undefined_flag=' -expect_unresolved \*'
7882 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'
7883 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7884 $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'
7885
7886 # Both c and cxx compiler support -rpath directly
7887 hardcode_libdir_flag_spec='-rpath $libdir'
7888 fi
7889 hardcode_libdir_separator=:
7890 ;;
7891
7892 sco3.2v5*)
7893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7894 hardcode_shlibpath_var=no
7895 export_dynamic_flag_spec='${wl}-Bexport'
7896 runpath_var=LD_RUN_PATH
7897 hardcode_runpath_var=yes
7898 ;;
7899
7900 solaris*)
7901 no_undefined_flag=' -z text'
7902 if test "$GCC" = yes; then
7903 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7904 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7905 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7906 else
7907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7908 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7910 fi
7911 hardcode_libdir_flag_spec='-R$libdir'
7912 hardcode_shlibpath_var=no
7913 case $host_os in
7914 solaris2.[0-5] | solaris2.[0-5].*) ;;
7915 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7917 esac
7918 link_all_deplibs=yes
7919 ;;
7920
7921 sunos4*)
7922 if test "x$host_vendor" = xsequent; then
7923 # Use $CC to link under sequent, because it throws in some extra .o
7924 # files that make .init and .fini sections work.
7925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7926 else
7927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7928 fi
7929 hardcode_libdir_flag_spec='-L$libdir'
7930 hardcode_direct=yes
7931 hardcode_minus_L=yes
7932 hardcode_shlibpath_var=no
7933 ;;
7934
7935 sysv4)
7936 case $host_vendor in
7937 sni)
7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939 hardcode_direct=yes # is this really true???
7940 ;;
7941 siemens)
7942 ## LD is ld it makes a PLAMLIB
7943 ## CC just makes a GrossModule.
7944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7945 reload_cmds='$CC -r -o $output$reload_objs'
7946 hardcode_direct=no
7947 ;;
7948 motorola)
7949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7951 ;;
7952 esac
7953 runpath_var='LD_RUN_PATH'
7954 hardcode_shlibpath_var=no
7955 ;;
7956
7957 sysv4.3*)
7958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_shlibpath_var=no
7960 export_dynamic_flag_spec='-Bexport'
7961 ;;
7962
7963 sysv4*MP*)
7964 if test -d /usr/nec; then
7965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_shlibpath_var=no
7967 runpath_var=LD_RUN_PATH
7968 hardcode_runpath_var=yes
7969 ld_shlibs=yes
7970 fi
7971 ;;
7972
7973 sysv4.2uw2*)
7974 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_direct=yes
7976 hardcode_minus_L=no
7977 hardcode_shlibpath_var=no
7978 hardcode_runpath_var=yes
7979 runpath_var=LD_RUN_PATH
7980 ;;
7981
7982 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7983 no_undefined_flag='${wl}-z ${wl}text'
7984 if test "$GCC" = yes; then
7985 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986 else
7987 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 fi
7989 runpath_var='LD_RUN_PATH'
7990 hardcode_shlibpath_var=no
7991 ;;
7992
7993 sysv5*)
7994 no_undefined_flag=' -z text'
7995 # $CC -shared without GNU ld will not create a library from C++
7996 # object files and a static libstdc++, better avoid it by now
7997 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7999 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8000 hardcode_libdir_flag_spec=
8001 hardcode_shlibpath_var=no
8002 runpath_var='LD_RUN_PATH'
8003 ;;
8004
8005 uts4*)
8006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007 hardcode_libdir_flag_spec='-L$libdir'
8008 hardcode_shlibpath_var=no
8009 ;;
8010
8011 *)
8012 ld_shlibs=no
8013 ;;
8014 esac
8015 fi
8016
8017 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8018 echo "${ECHO_T}$ld_shlibs" >&6
8019 test "$ld_shlibs" = no && can_build_shared=no
8020
8021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8022 if test "$GCC" = yes; then
8023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8024 fi
8025
8026 #
8027 # Do we need to explicitly link libc?
8028 #
8029 case "x$archive_cmds_need_lc" in
8030 x|xyes)
8031 # Assume -lc should be added
8032 archive_cmds_need_lc=yes
8033
8034 if test "$enable_shared" = yes && test "$GCC" = yes; then
8035 case $archive_cmds in
8036 *'~'*)
8037 # FIXME: we may have to deal with multi-command sequences.
8038 ;;
8039 '$CC '*)
8040 # Test whether the compiler implicitly links with -lc since on some
8041 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8042 # to ld, don't add -lc before -lgcc.
8043 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8044 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8045 $rm conftest*
8046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8047
8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 (eval $ac_compile) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } 2>conftest.err; then
8053 soname=conftest
8054 lib=conftest
8055 libobjs=conftest.$ac_objext
8056 deplibs=
8057 wl=$lt_prog_compiler_wl
8058 compiler_flags=-v
8059 linker_flags=-v
8060 verstring=
8061 output_objdir=.
8062 libname=conftest
8063 lt_save_allow_undefined_flag=$allow_undefined_flag
8064 allow_undefined_flag=
8065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8066 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }
8070 then
8071 archive_cmds_need_lc=no
8072 else
8073 archive_cmds_need_lc=yes
8074 fi
8075 allow_undefined_flag=$lt_save_allow_undefined_flag
8076 else
8077 cat conftest.err 1>&5
8078 fi
8079 $rm conftest*
8080 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8081 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8082 ;;
8083 esac
8084 fi
8085 ;;
8086 esac
8087
8088 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8090 library_names_spec=
8091 libname_spec='lib$name'
8092 soname_spec=
8093 shrext_cmds=".so"
8094 postinstall_cmds=
8095 postuninstall_cmds=
8096 finish_cmds=
8097 finish_eval=
8098 shlibpath_var=
8099 shlibpath_overrides_runpath=unknown
8100 version_type=none
8101 dynamic_linker="$host_os ld.so"
8102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8103 if test "$GCC" = yes; then
8104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8106 # if the path contains ";" then we assume it to be the separator
8107 # otherwise default to the standard path separator (i.e. ":") - it is
8108 # assumed that no part of a normal pathname contains ";" but that should
8109 # okay in the real world where ";" in dirpaths is itself problematic.
8110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8111 else
8112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8113 fi
8114 else
8115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8116 fi
8117 need_lib_prefix=unknown
8118 hardcode_into_libs=no
8119
8120 # when you set need_version to no, make sure it does not cause -set_version
8121 # flags to be left without arguments
8122 need_version=unknown
8123
8124 case $host_os in
8125 aix3*)
8126 version_type=linux
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8128 shlibpath_var=LIBPATH
8129
8130 # AIX 3 has no versioning support, so we append a major version to the name.
8131 soname_spec='${libname}${release}${shared_ext}$major'
8132 ;;
8133
8134 aix4* | aix5*)
8135 version_type=linux
8136 need_lib_prefix=no
8137 need_version=no
8138 hardcode_into_libs=yes
8139 if test "$host_cpu" = ia64; then
8140 # AIX 5 supports IA64
8141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8142 shlibpath_var=LD_LIBRARY_PATH
8143 else
8144 # With GCC up to 2.95.x, collect2 would create an import file
8145 # for dependence libraries. The import file would start with
8146 # the line `#! .'. This would cause the generated library to
8147 # depend on `.', always an invalid library. This was fixed in
8148 # development snapshots of GCC prior to 3.0.
8149 case $host_os in
8150 aix4 | aix4.[01] | aix4.[01].*)
8151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8152 echo ' yes '
8153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8154 :
8155 else
8156 can_build_shared=no
8157 fi
8158 ;;
8159 esac
8160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8161 # soname into executable. Probably we can add versioning support to
8162 # collect2, so additional links can be useful in future.
8163 if test "$aix_use_runtimelinking" = yes; then
8164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8165 # instead of lib<name>.a to let people know that these are not
8166 # typical AIX shared libraries.
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168 else
8169 # We preserve .a as extension for shared libraries through AIX4.2
8170 # and later when we are not doing run time linking.
8171 library_names_spec='${libname}${release}.a $libname.a'
8172 soname_spec='${libname}${release}${shared_ext}$major'
8173 fi
8174 shlibpath_var=LIBPATH
8175 fi
8176 ;;
8177
8178 amigaos*)
8179 library_names_spec='$libname.ixlibrary $libname.a'
8180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8181 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'
8182 ;;
8183
8184 beos*)
8185 library_names_spec='${libname}${shared_ext}'
8186 dynamic_linker="$host_os ld.so"
8187 shlibpath_var=LIBRARY_PATH
8188 ;;
8189
8190 bsdi4*)
8191 version_type=linux
8192 need_version=no
8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194 soname_spec='${libname}${release}${shared_ext}$major'
8195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8196 shlibpath_var=LD_LIBRARY_PATH
8197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8199 # the default ld.so.conf also contains /usr/contrib/lib and
8200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8201 # libtool to hard-code these into programs
8202 ;;
8203
8204 cygwin* | mingw* | pw32*)
8205 version_type=windows
8206 shrext_cmds=".dll"
8207 need_version=no
8208 need_lib_prefix=no
8209
8210 case $GCC,$host_os in
8211 yes,cygwin* | yes,mingw* | yes,pw32*)
8212 library_names_spec='$libname.dll.a'
8213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8214 postinstall_cmds='base_file=`basename \${file}`~
8215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8216 dldir=$destdir/`dirname \$dlpath`~
8217 test -d \$dldir || mkdir -p \$dldir~
8218 $install_prog $dir/$dlname \$dldir/$dlname'
8219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8220 dlpath=$dir/\$dldll~
8221 $rm \$dlpath'
8222 shlibpath_overrides_runpath=yes
8223
8224 case $host_os in
8225 cygwin*)
8226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8228 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8229 ;;
8230 mingw*)
8231 # MinGW DLLs use traditional 'lib' prefix
8232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8234 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8235 # It is most probably a Windows format PATH printed by
8236 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8237 # path with ; separators, and with drive letters. We can handle the
8238 # drive letters (cygwin fileutils understands them), so leave them,
8239 # especially as we might pass files found there to a mingw objdump,
8240 # which wouldn't understand a cygwinified path. Ahh.
8241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8242 else
8243 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8244 fi
8245 ;;
8246 pw32*)
8247 # pw32 DLLs use 'pw' prefix rather than 'lib'
8248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8249 ;;
8250 esac
8251 ;;
8252
8253 *)
8254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8255 ;;
8256 esac
8257 dynamic_linker='Win32 ld.exe'
8258 # FIXME: first we should search . and the directory the executable is in
8259 shlibpath_var=PATH
8260 ;;
8261
8262 darwin* | rhapsody*)
8263 dynamic_linker="$host_os dyld"
8264 version_type=darwin
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8268 soname_spec='${libname}${release}${major}$shared_ext'
8269 shlibpath_overrides_runpath=yes
8270 shlibpath_var=DYLD_LIBRARY_PATH
8271 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8272 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8273 if test "$GCC" = yes; then
8274 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8275 else
8276 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8277 fi
8278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8279 ;;
8280
8281 dgux*)
8282 version_type=linux
8283 need_lib_prefix=no
8284 need_version=no
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8286 soname_spec='${libname}${release}${shared_ext}$major'
8287 shlibpath_var=LD_LIBRARY_PATH
8288 ;;
8289
8290 freebsd1*)
8291 dynamic_linker=no
8292 ;;
8293
8294 kfreebsd*-gnu)
8295 version_type=linux
8296 need_lib_prefix=no
8297 need_version=no
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 shlibpath_overrides_runpath=no
8302 hardcode_into_libs=yes
8303 dynamic_linker='GNU ld.so'
8304 ;;
8305
8306 freebsd*)
8307 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8308 version_type=freebsd-$objformat
8309 case $version_type in
8310 freebsd-elf*)
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8312 need_version=no
8313 need_lib_prefix=no
8314 ;;
8315 freebsd-*)
8316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8317 need_version=yes
8318 ;;
8319 esac
8320 shlibpath_var=LD_LIBRARY_PATH
8321 case $host_os in
8322 freebsd2*)
8323 shlibpath_overrides_runpath=yes
8324 ;;
8325 freebsd3.01* | freebsdelf3.01*)
8326 shlibpath_overrides_runpath=yes
8327 hardcode_into_libs=yes
8328 ;;
8329 *) # from 3.2 on
8330 shlibpath_overrides_runpath=no
8331 hardcode_into_libs=yes
8332 ;;
8333 esac
8334 ;;
8335
8336 gnu*)
8337 version_type=linux
8338 need_lib_prefix=no
8339 need_version=no
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 shlibpath_var=LD_LIBRARY_PATH
8343 hardcode_into_libs=yes
8344 ;;
8345
8346 hpux9* | hpux10* | hpux11*)
8347 # Give a soname corresponding to the major version so that dld.sl refuses to
8348 # link against other versions.
8349 version_type=sunos
8350 need_lib_prefix=no
8351 need_version=no
8352 case "$host_cpu" in
8353 ia64*)
8354 shrext_cmds='.so'
8355 hardcode_into_libs=yes
8356 dynamic_linker="$host_os dld.so"
8357 shlibpath_var=LD_LIBRARY_PATH
8358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 if test "X$HPUX_IA64_MODE" = X32; then
8362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8363 else
8364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8365 fi
8366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8367 ;;
8368 hppa*64*)
8369 shrext_cmds='.sl'
8370 hardcode_into_libs=yes
8371 dynamic_linker="$host_os dld.sl"
8372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8375 soname_spec='${libname}${release}${shared_ext}$major'
8376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8378 ;;
8379 *)
8380 shrext_cmds='.sl'
8381 dynamic_linker="$host_os dld.sl"
8382 shlibpath_var=SHLIB_PATH
8383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385 soname_spec='${libname}${release}${shared_ext}$major'
8386 ;;
8387 esac
8388 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8389 postinstall_cmds='chmod 555 $lib'
8390 ;;
8391
8392 irix5* | irix6* | nonstopux*)
8393 case $host_os in
8394 nonstopux*) version_type=nonstopux ;;
8395 *)
8396 if test "$lt_cv_prog_gnu_ld" = yes; then
8397 version_type=linux
8398 else
8399 version_type=irix
8400 fi ;;
8401 esac
8402 need_lib_prefix=no
8403 need_version=no
8404 soname_spec='${libname}${release}${shared_ext}$major'
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8406 case $host_os in
8407 irix5* | nonstopux*)
8408 libsuff= shlibsuff=
8409 ;;
8410 *)
8411 case $LD in # libtool.m4 will add one of these switches to LD
8412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8413 libsuff= shlibsuff= libmagic=32-bit;;
8414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8415 libsuff=32 shlibsuff=N32 libmagic=N32;;
8416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8418 *) libsuff= shlibsuff= libmagic=never-match;;
8419 esac
8420 ;;
8421 esac
8422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8423 shlibpath_overrides_runpath=no
8424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8426 hardcode_into_libs=yes
8427 ;;
8428
8429 # No shared lib support for Linux oldld, aout, or coff.
8430 linux*oldld* | linux*aout* | linux*coff*)
8431 dynamic_linker=no
8432 ;;
8433
8434 # This must be Linux ELF.
8435 linux*)
8436 version_type=linux
8437 need_lib_prefix=no
8438 need_version=no
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440 soname_spec='${libname}${release}${shared_ext}$major'
8441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 shlibpath_overrides_runpath=no
8444 # This implies no fast_install, which is unacceptable.
8445 # Some rework will be needed to allow for fast_install
8446 # before this can be enabled.
8447 hardcode_into_libs=yes
8448
8449 # Append ld.so.conf contents to the search path
8450 if test -f /etc/ld.so.conf; then
8451 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8452 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8453 fi
8454
8455 # We used to test for /lib/ld.so.1 and disable shared libraries on
8456 # powerpc, because MkLinux only supported shared libraries with the
8457 # GNU dynamic linker. Since this was broken with cross compilers,
8458 # most powerpc-linux boxes support dynamic linking these days and
8459 # people can always --disable-shared, the test was removed, and we
8460 # assume the GNU/Linux dynamic linker is in use.
8461 dynamic_linker='GNU/Linux ld.so'
8462 ;;
8463
8464 knetbsd*-gnu)
8465 version_type=linux
8466 need_lib_prefix=no
8467 need_version=no
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8469 soname_spec='${libname}${release}${shared_ext}$major'
8470 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=no
8472 hardcode_into_libs=yes
8473 dynamic_linker='GNU ld.so'
8474 ;;
8475
8476 netbsd*)
8477 version_type=sunos
8478 need_lib_prefix=no
8479 need_version=no
8480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8483 dynamic_linker='NetBSD (a.out) ld.so'
8484 else
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 dynamic_linker='NetBSD ld.elf_so'
8488 fi
8489 shlibpath_var=LD_LIBRARY_PATH
8490 shlibpath_overrides_runpath=yes
8491 hardcode_into_libs=yes
8492 ;;
8493
8494 newsos6)
8495 version_type=linux
8496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 shlibpath_overrides_runpath=yes
8499 ;;
8500
8501 nto-qnx*)
8502 version_type=linux
8503 need_lib_prefix=no
8504 need_version=no
8505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506 soname_spec='${libname}${release}${shared_ext}$major'
8507 shlibpath_var=LD_LIBRARY_PATH
8508 shlibpath_overrides_runpath=yes
8509 ;;
8510
8511 openbsd*)
8512 version_type=sunos
8513 need_lib_prefix=no
8514 need_version=yes
8515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8517 shlibpath_var=LD_LIBRARY_PATH
8518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8519 case $host_os in
8520 openbsd2.[89] | openbsd2.[89].*)
8521 shlibpath_overrides_runpath=no
8522 ;;
8523 *)
8524 shlibpath_overrides_runpath=yes
8525 ;;
8526 esac
8527 else
8528 shlibpath_overrides_runpath=yes
8529 fi
8530 ;;
8531
8532 os2*)
8533 libname_spec='$name'
8534 shrext_cmds=".dll"
8535 need_lib_prefix=no
8536 library_names_spec='$libname${shared_ext} $libname.a'
8537 dynamic_linker='OS/2 ld.exe'
8538 shlibpath_var=LIBPATH
8539 ;;
8540
8541 osf3* | osf4* | osf5*)
8542 version_type=osf
8543 need_lib_prefix=no
8544 need_version=no
8545 soname_spec='${libname}${release}${shared_ext}$major'
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547 shlibpath_var=LD_LIBRARY_PATH
8548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8549 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8550 ;;
8551
8552 sco3.2v5*)
8553 version_type=osf
8554 soname_spec='${libname}${release}${shared_ext}$major'
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 shlibpath_var=LD_LIBRARY_PATH
8557 ;;
8558
8559 solaris*)
8560 version_type=linux
8561 need_lib_prefix=no
8562 need_version=no
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 shlibpath_overrides_runpath=yes
8567 hardcode_into_libs=yes
8568 # ldd complains unless libraries are executable
8569 postinstall_cmds='chmod +x $lib'
8570 ;;
8571
8572 sunos4*)
8573 version_type=sunos
8574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8576 shlibpath_var=LD_LIBRARY_PATH
8577 shlibpath_overrides_runpath=yes
8578 if test "$with_gnu_ld" = yes; then
8579 need_lib_prefix=no
8580 fi
8581 need_version=yes
8582 ;;
8583
8584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8585 version_type=linux
8586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 shlibpath_var=LD_LIBRARY_PATH
8589 case $host_vendor in
8590 sni)
8591 shlibpath_overrides_runpath=no
8592 need_lib_prefix=no
8593 export_dynamic_flag_spec='${wl}-Blargedynsym'
8594 runpath_var=LD_RUN_PATH
8595 ;;
8596 siemens)
8597 need_lib_prefix=no
8598 ;;
8599 motorola)
8600 need_lib_prefix=no
8601 need_version=no
8602 shlibpath_overrides_runpath=no
8603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8604 ;;
8605 esac
8606 ;;
8607
8608 sysv4*MP*)
8609 if test -d /usr/nec ;then
8610 version_type=linux
8611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8612 soname_spec='$libname${shared_ext}.$major'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 fi
8615 ;;
8616
8617 uts4*)
8618 version_type=linux
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 ;;
8623
8624 *)
8625 dynamic_linker=no
8626 ;;
8627 esac
8628 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8629 echo "${ECHO_T}$dynamic_linker" >&6
8630 test "$dynamic_linker" = no && can_build_shared=no
8631
8632 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8633 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8634 hardcode_action=
8635 if test -n "$hardcode_libdir_flag_spec" || \
8636 test -n "$runpath_var " || \
8637 test "X$hardcode_automatic"="Xyes" ; then
8638
8639 # We can hardcode non-existant directories.
8640 if test "$hardcode_direct" != no &&
8641 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8642 # have to relink, otherwise we might link with an installed library
8643 # when we should be linking with a yet-to-be-installed one
8644 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8645 test "$hardcode_minus_L" != no; then
8646 # Linking always hardcodes the temporary library directory.
8647 hardcode_action=relink
8648 else
8649 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8650 hardcode_action=immediate
8651 fi
8652 else
8653 # We cannot hardcode anything, or else we can only hardcode existing
8654 # directories.
8655 hardcode_action=unsupported
8656 fi
8657 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8658 echo "${ECHO_T}$hardcode_action" >&6
8659
8660 if test "$hardcode_action" = relink; then
8661 # Fast installation is not supported
8662 enable_fast_install=no
8663 elif test "$shlibpath_overrides_runpath" = yes ||
8664 test "$enable_shared" = no; then
8665 # Fast installation is not necessary
8666 enable_fast_install=needless
8667 fi
8668
8669 striplib=
8670 old_striplib=
8671 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8672 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8673 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8674 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8675 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8676 echo "$as_me:$LINENO: result: yes" >&5
8677 echo "${ECHO_T}yes" >&6
8678 else
8679 # FIXME - insert some real tests, host_os isn't really good enough
8680 case $host_os in
8681 darwin*)
8682 if test -n "$STRIP" ; then
8683 striplib="$STRIP -x"
8684 echo "$as_me:$LINENO: result: yes" >&5
8685 echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8689 fi
8690 ;;
8691 *)
8692 echo "$as_me:$LINENO: result: no" >&5
8693 echo "${ECHO_T}no" >&6
8694 ;;
8695 esac
8696 fi
8697
8698 if test "x$enable_dlopen" != xyes; then
8699 enable_dlopen=unknown
8700 enable_dlopen_self=unknown
8701 enable_dlopen_self_static=unknown
8702 else
8703 lt_cv_dlopen=no
8704 lt_cv_dlopen_libs=
8705
8706 case $host_os in
8707 beos*)
8708 lt_cv_dlopen="load_add_on"
8709 lt_cv_dlopen_libs=
8710 lt_cv_dlopen_self=yes
8711 ;;
8712
8713 mingw* | pw32*)
8714 lt_cv_dlopen="LoadLibrary"
8715 lt_cv_dlopen_libs=
8716 ;;
8717
8718 cygwin*)
8719 lt_cv_dlopen="dlopen"
8720 lt_cv_dlopen_libs=
8721 ;;
8722
8723 darwin*)
8724 # if libdl is installed we need to link against it
8725 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8726 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8727 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-ldl $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738
8739 /* Override any gcc2 internal prototype to avoid an error. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745 char dlopen ();
8746 int
8747 main ()
8748 {
8749 dlopen ();
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_dl_dlopen=yes
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_cv_lib_dl_dlopen=no
8781 fi
8782 rm -f conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_lib_save_LIBS
8785 fi
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8788 if test $ac_cv_lib_dl_dlopen = yes; then
8789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8790 else
8791
8792 lt_cv_dlopen="dyld"
8793 lt_cv_dlopen_libs=
8794 lt_cv_dlopen_self=yes
8795
8796 fi
8797
8798 ;;
8799
8800 *)
8801 echo "$as_me:$LINENO: checking for shl_load" >&5
8802 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8803 if test "${ac_cv_func_shl_load+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8814 #define shl_load innocuous_shl_load
8815
8816 /* System header to define __stub macros and hopefully few prototypes,
8817 which can conflict with char shl_load (); below.
8818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8819 <limits.h> exists even on freestanding compilers. */
8820
8821 #ifdef __STDC__
8822 # include <limits.h>
8823 #else
8824 # include <assert.h>
8825 #endif
8826
8827 #undef shl_load
8828
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 {
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char shl_load ();
8837 /* The GNU C library defines this for functions which it implements
8838 to always fail with ENOSYS. Some functions are actually named
8839 something starting with __ and the normal name is an alias. */
8840 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8841 choke me
8842 #else
8843 char (*f) () = shl_load;
8844 #endif
8845 #ifdef __cplusplus
8846 }
8847 #endif
8848
8849 int
8850 main ()
8851 {
8852 return f != shl_load;
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_func_shl_load=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883 ac_cv_func_shl_load=no
8884 fi
8885 rm -f conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 fi
8888 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8889 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8890 if test $ac_cv_func_shl_load = yes; then
8891 lt_cv_dlopen="shl_load"
8892 else
8893 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8894 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8895 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 ac_check_lib_save_LIBS=$LIBS
8899 LIBS="-ldld $LIBS"
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906
8907 /* Override any gcc2 internal prototype to avoid an error. */
8908 #ifdef __cplusplus
8909 extern "C"
8910 #endif
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913 char shl_load ();
8914 int
8915 main ()
8916 {
8917 shl_load ();
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 (eval $ac_try) 2>&5
8934 ac_status=$?
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_dld_shl_load=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_cv_lib_dld_shl_load=no
8949 fi
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 LIBS=$ac_check_lib_save_LIBS
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8956 if test $ac_cv_lib_dld_shl_load = yes; then
8957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8958 else
8959 echo "$as_me:$LINENO: checking for dlopen" >&5
8960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8961 if test "${ac_cv_func_dlopen+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 else
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8972 #define dlopen innocuous_dlopen
8973
8974 /* System header to define __stub macros and hopefully few prototypes,
8975 which can conflict with char dlopen (); below.
8976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8977 <limits.h> exists even on freestanding compilers. */
8978
8979 #ifdef __STDC__
8980 # include <limits.h>
8981 #else
8982 # include <assert.h>
8983 #endif
8984
8985 #undef dlopen
8986
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 {
8991 #endif
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
8994 char dlopen ();
8995 /* The GNU C library defines this for functions which it implements
8996 to always fail with ENOSYS. Some functions are actually named
8997 something starting with __ and the normal name is an alias. */
8998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8999 choke me
9000 #else
9001 char (*f) () = dlopen;
9002 #endif
9003 #ifdef __cplusplus
9004 }
9005 #endif
9006
9007 int
9008 main ()
9009 {
9010 return f != dlopen;
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; } &&
9030 { ac_try='test -s conftest$ac_exeext'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; }; then
9036 ac_cv_func_dlopen=yes
9037 else
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041 ac_cv_func_dlopen=no
9042 fi
9043 rm -f conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 fi
9046 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9047 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9048 if test $ac_cv_func_dlopen = yes; then
9049 lt_cv_dlopen="dlopen"
9050 else
9051 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 ac_check_lib_save_LIBS=$LIBS
9057 LIBS="-ldl $LIBS"
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064
9065 /* Override any gcc2 internal prototype to avoid an error. */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9071 char dlopen ();
9072 int
9073 main ()
9074 {
9075 dlopen ();
9076 ;
9077 return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; } &&
9095 { ac_try='test -s conftest$ac_exeext'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 ac_cv_lib_dl_dlopen=yes
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9105
9106 ac_cv_lib_dl_dlopen=no
9107 fi
9108 rm -f conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
9110 LIBS=$ac_check_lib_save_LIBS
9111 fi
9112 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9113 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9114 if test $ac_cv_lib_dl_dlopen = yes; then
9115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9116 else
9117 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9118 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 ac_check_lib_save_LIBS=$LIBS
9123 LIBS="-lsvld $LIBS"
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130
9131 /* Override any gcc2 internal prototype to avoid an error. */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 /* We use char because int might match the return type of a gcc2
9136 builtin and then its argument prototype would still apply. */
9137 char dlopen ();
9138 int
9139 main ()
9140 {
9141 dlopen ();
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 rm -f conftest.$ac_objext conftest$ac_exeext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9148 (eval $ac_link) 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest$ac_exeext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_cv_lib_svld_dlopen=yes
9168 else
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9171
9172 ac_cv_lib_svld_dlopen=no
9173 fi
9174 rm -f conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9177 fi
9178 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9179 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9180 if test $ac_cv_lib_svld_dlopen = yes; then
9181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9182 else
9183 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9184 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9185 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188 ac_check_lib_save_LIBS=$LIBS
9189 LIBS="-ldld $LIBS"
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196
9197 /* Override any gcc2 internal prototype to avoid an error. */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9203 char dld_link ();
9204 int
9205 main ()
9206 {
9207 dld_link ();
9208 ;
9209 return 0;
9210 }
9211 _ACEOF
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214 (eval $ac_link) 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } &&
9221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_lib_dld_dld_link=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_cv_lib_dld_dld_link=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9243 fi
9244 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9245 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9246 if test $ac_cv_lib_dld_dld_link = yes; then
9247 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9248 fi
9249
9250
9251 fi
9252
9253
9254 fi
9255
9256
9257 fi
9258
9259
9260 fi
9261
9262
9263 fi
9264
9265 ;;
9266 esac
9267
9268 if test "x$lt_cv_dlopen" != xno; then
9269 enable_dlopen=yes
9270 else
9271 enable_dlopen=no
9272 fi
9273
9274 case $lt_cv_dlopen in
9275 dlopen)
9276 save_CPPFLAGS="$CPPFLAGS"
9277 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9278
9279 save_LDFLAGS="$LDFLAGS"
9280 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9281
9282 save_LIBS="$LIBS"
9283 LIBS="$lt_cv_dlopen_libs $LIBS"
9284
9285 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9286 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9287 if test "${lt_cv_dlopen_self+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290 if test "$cross_compiling" = yes; then :
9291 lt_cv_dlopen_self=cross
9292 else
9293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9294 lt_status=$lt_dlunknown
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9296 "configure"
9297 #include "confdefs.h"
9298
9299 #if HAVE_DLFCN_H
9300 #include <dlfcn.h>
9301 #endif
9302
9303 #include <stdio.h>
9304
9305 #ifdef RTLD_GLOBAL
9306 # define LT_DLGLOBAL RTLD_GLOBAL
9307 #else
9308 # ifdef DL_GLOBAL
9309 # define LT_DLGLOBAL DL_GLOBAL
9310 # else
9311 # define LT_DLGLOBAL 0
9312 # endif
9313 #endif
9314
9315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9316 find out it does not work in some platform. */
9317 #ifndef LT_DLLAZY_OR_NOW
9318 # ifdef RTLD_LAZY
9319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9320 # else
9321 # ifdef DL_LAZY
9322 # define LT_DLLAZY_OR_NOW DL_LAZY
9323 # else
9324 # ifdef RTLD_NOW
9325 # define LT_DLLAZY_OR_NOW RTLD_NOW
9326 # else
9327 # ifdef DL_NOW
9328 # define LT_DLLAZY_OR_NOW DL_NOW
9329 # else
9330 # define LT_DLLAZY_OR_NOW 0
9331 # endif
9332 # endif
9333 # endif
9334 # endif
9335 #endif
9336
9337 #ifdef __cplusplus
9338 extern "C" void exit (int);
9339 #endif
9340
9341 void fnord() { int i=42;}
9342 int main ()
9343 {
9344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9345 int status = $lt_dlunknown;
9346
9347 if (self)
9348 {
9349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9351 /* dlclose (self); */
9352 }
9353
9354 exit (status);
9355 }
9356 EOF
9357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358 (eval $ac_link) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9362 (./conftest; exit; ) 2>/dev/null
9363 lt_status=$?
9364 case x$lt_status in
9365 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9366 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9367 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9368 esac
9369 else :
9370 # compilation failed
9371 lt_cv_dlopen_self=no
9372 fi
9373 fi
9374 rm -fr conftest*
9375
9376
9377 fi
9378 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9379 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9380
9381 if test "x$lt_cv_dlopen_self" = xyes; then
9382 LDFLAGS="$LDFLAGS $link_static_flag"
9383 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9384 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9385 if test "${lt_cv_dlopen_self_static+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 if test "$cross_compiling" = yes; then :
9389 lt_cv_dlopen_self_static=cross
9390 else
9391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9392 lt_status=$lt_dlunknown
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9394 "configure"
9395 #include "confdefs.h"
9396
9397 #if HAVE_DLFCN_H
9398 #include <dlfcn.h>
9399 #endif
9400
9401 #include <stdio.h>
9402
9403 #ifdef RTLD_GLOBAL
9404 # define LT_DLGLOBAL RTLD_GLOBAL
9405 #else
9406 # ifdef DL_GLOBAL
9407 # define LT_DLGLOBAL DL_GLOBAL
9408 # else
9409 # define LT_DLGLOBAL 0
9410 # endif
9411 #endif
9412
9413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9414 find out it does not work in some platform. */
9415 #ifndef LT_DLLAZY_OR_NOW
9416 # ifdef RTLD_LAZY
9417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9418 # else
9419 # ifdef DL_LAZY
9420 # define LT_DLLAZY_OR_NOW DL_LAZY
9421 # else
9422 # ifdef RTLD_NOW
9423 # define LT_DLLAZY_OR_NOW RTLD_NOW
9424 # else
9425 # ifdef DL_NOW
9426 # define LT_DLLAZY_OR_NOW DL_NOW
9427 # else
9428 # define LT_DLLAZY_OR_NOW 0
9429 # endif
9430 # endif
9431 # endif
9432 # endif
9433 #endif
9434
9435 #ifdef __cplusplus
9436 extern "C" void exit (int);
9437 #endif
9438
9439 void fnord() { int i=42;}
9440 int main ()
9441 {
9442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9443 int status = $lt_dlunknown;
9444
9445 if (self)
9446 {
9447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9449 /* dlclose (self); */
9450 }
9451
9452 exit (status);
9453 }
9454 EOF
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456 (eval $ac_link) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9460 (./conftest; exit; ) 2>/dev/null
9461 lt_status=$?
9462 case x$lt_status in
9463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9465 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9466 esac
9467 else :
9468 # compilation failed
9469 lt_cv_dlopen_self_static=no
9470 fi
9471 fi
9472 rm -fr conftest*
9473
9474
9475 fi
9476 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9477 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9478 fi
9479
9480 CPPFLAGS="$save_CPPFLAGS"
9481 LDFLAGS="$save_LDFLAGS"
9482 LIBS="$save_LIBS"
9483 ;;
9484 esac
9485
9486 case $lt_cv_dlopen_self in
9487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9488 *) enable_dlopen_self=unknown ;;
9489 esac
9490
9491 case $lt_cv_dlopen_self_static in
9492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9493 *) enable_dlopen_self_static=unknown ;;
9494 esac
9495 fi
9496
9497
9498 # Report which librarie types wil actually be built
9499 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9500 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9501 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9502 echo "${ECHO_T}$can_build_shared" >&6
9503
9504 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9505 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9506 test "$can_build_shared" = "no" && enable_shared=no
9507
9508 # On AIX, shared libraries and static libraries use the same namespace, and
9509 # are all built from PIC.
9510 case "$host_os" in
9511 aix3*)
9512 test "$enable_shared" = yes && enable_static=no
9513 if test -n "$RANLIB"; then
9514 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9515 postinstall_cmds='$RANLIB $lib'
9516 fi
9517 ;;
9518
9519 aix4* | aix5*)
9520 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9521 test "$enable_shared" = yes && enable_static=no
9522 fi
9523 ;;
9524 darwin* | rhapsody*)
9525 if test "$GCC" = yes; then
9526 archive_cmds_need_lc=no
9527 case "$host_os" in
9528 rhapsody* | darwin1.[012])
9529 allow_undefined_flag='-undefined suppress'
9530 ;;
9531 *) # Darwin 1.3 on
9532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9533 allow_undefined_flag='-flat_namespace -undefined suppress'
9534 else
9535 case ${MACOSX_DEPLOYMENT_TARGET} in
9536 10.[012])
9537 allow_undefined_flag='-flat_namespace -undefined suppress'
9538 ;;
9539 10.*)
9540 allow_undefined_flag='-undefined dynamic_lookup'
9541 ;;
9542 esac
9543 fi
9544 ;;
9545 esac
9546 output_verbose_link_cmd='echo'
9547 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9548 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9550 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9551 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9552 hardcode_direct=no
9553 hardcode_automatic=yes
9554 hardcode_shlibpath_var=unsupported
9555 whole_archive_flag_spec='-all_load $convenience'
9556 link_all_deplibs=yes
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561 esac
9562 echo "$as_me:$LINENO: result: $enable_shared" >&5
9563 echo "${ECHO_T}$enable_shared" >&6
9564
9565 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9566 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9567 # Make sure either enable_shared or enable_static is yes.
9568 test "$enable_shared" = yes || enable_static=yes
9569 echo "$as_me:$LINENO: result: $enable_static" >&5
9570 echo "${ECHO_T}$enable_static" >&6
9571
9572 # The else clause should only fire when bootstrapping the
9573 # libtool distribution, otherwise you forgot to ship ltmain.sh
9574 # with your package, and you will get complaints that there are
9575 # no rules to generate ltmain.sh.
9576 if test -f "$ltmain"; then
9577 # See if we are running on zsh, and set the options which allow our commands through
9578 # without removal of \ escapes.
9579 if test -n "${ZSH_VERSION+set}" ; then
9580 setopt NO_GLOB_SUBST
9581 fi
9582 # Now quote all the things that may contain metacharacters while being
9583 # careful not to overquote the AC_SUBSTed values. We take copies of the
9584 # variables and quote the copies for generation of the libtool script.
9585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9586 SED SHELL STRIP \
9587 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9588 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9589 deplibs_check_method reload_flag reload_cmds need_locks \
9590 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9591 lt_cv_sys_global_symbol_to_c_name_address \
9592 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9593 old_postinstall_cmds old_postuninstall_cmds \
9594 compiler \
9595 CC \
9596 LD \
9597 lt_prog_compiler_wl \
9598 lt_prog_compiler_pic \
9599 lt_prog_compiler_static \
9600 lt_prog_compiler_no_builtin_flag \
9601 export_dynamic_flag_spec \
9602 thread_safe_flag_spec \
9603 whole_archive_flag_spec \
9604 enable_shared_with_static_runtimes \
9605 old_archive_cmds \
9606 old_archive_from_new_cmds \
9607 predep_objects \
9608 postdep_objects \
9609 predeps \
9610 postdeps \
9611 compiler_lib_search_path \
9612 archive_cmds \
9613 archive_expsym_cmds \
9614 postinstall_cmds \
9615 postuninstall_cmds \
9616 old_archive_from_expsyms_cmds \
9617 allow_undefined_flag \
9618 no_undefined_flag \
9619 export_symbols_cmds \
9620 hardcode_libdir_flag_spec \
9621 hardcode_libdir_flag_spec_ld \
9622 hardcode_libdir_separator \
9623 hardcode_automatic \
9624 module_cmds \
9625 module_expsym_cmds \
9626 lt_cv_prog_compiler_c_o \
9627 exclude_expsyms \
9628 include_expsyms; do
9629
9630 case $var in
9631 old_archive_cmds | \
9632 old_archive_from_new_cmds | \
9633 archive_cmds | \
9634 archive_expsym_cmds | \
9635 module_cmds | \
9636 module_expsym_cmds | \
9637 old_archive_from_expsyms_cmds | \
9638 export_symbols_cmds | \
9639 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9640 postinstall_cmds | postuninstall_cmds | \
9641 old_postinstall_cmds | old_postuninstall_cmds | \
9642 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9643 # Double-quote double-evaled strings.
9644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9645 ;;
9646 *)
9647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9648 ;;
9649 esac
9650 done
9651
9652 case $lt_echo in
9653 *'\$0 --fallback-echo"')
9654 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9655 ;;
9656 esac
9657
9658 cfgfile="${ofile}T"
9659 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9660 $rm -f "$cfgfile"
9661 { echo "$as_me:$LINENO: creating $ofile" >&5
9662 echo "$as_me: creating $ofile" >&6;}
9663
9664 cat <<__EOF__ >> "$cfgfile"
9665 #! $SHELL
9666
9667 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9668 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9669 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9670 #
9671 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9672 # Free Software Foundation, Inc.
9673 #
9674 # This file is part of GNU Libtool:
9675 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9676 #
9677 # This program is free software; you can redistribute it and/or modify
9678 # it under the terms of the GNU General Public License as published by
9679 # the Free Software Foundation; either version 2 of the License, or
9680 # (at your option) any later version.
9681 #
9682 # This program is distributed in the hope that it will be useful, but
9683 # WITHOUT ANY WARRANTY; without even the implied warranty of
9684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9685 # General Public License for more details.
9686 #
9687 # You should have received a copy of the GNU General Public License
9688 # along with this program; if not, write to the Free Software
9689 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9690 #
9691 # As a special exception to the GNU General Public License, if you
9692 # distribute this file as part of a program that contains a
9693 # configuration script generated by Autoconf, you may include it under
9694 # the same distribution terms that you use for the rest of that program.
9695
9696 # A sed program that does not truncate output.
9697 SED=$lt_SED
9698
9699 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9700 Xsed="$SED -e s/^X//"
9701
9702 # The HP-UX ksh and POSIX shell print the target directory to stdout
9703 # if CDPATH is set.
9704 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9705
9706 # The names of the tagged configurations supported by this script.
9707 available_tags=
9708
9709 # ### BEGIN LIBTOOL CONFIG
9710
9711 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9712
9713 # Shell to use when invoking shell scripts.
9714 SHELL=$lt_SHELL
9715
9716 # Whether or not to build shared libraries.
9717 build_libtool_libs=$enable_shared
9718
9719 # Whether or not to build static libraries.
9720 build_old_libs=$enable_static
9721
9722 # Whether or not to add -lc for building shared libraries.
9723 build_libtool_need_lc=$archive_cmds_need_lc
9724
9725 # Whether or not to disallow shared libs when runtime libs are static
9726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9727
9728 # Whether or not to optimize for fast installation.
9729 fast_install=$enable_fast_install
9730
9731 # The host system.
9732 host_alias=$host_alias
9733 host=$host
9734
9735 # An echo program that does not interpret backslashes.
9736 echo=$lt_echo
9737
9738 # The archiver.
9739 AR=$lt_AR
9740 AR_FLAGS=$lt_AR_FLAGS
9741
9742 # A C compiler.
9743 LTCC=$lt_LTCC
9744
9745 # A language-specific compiler.
9746 CC=$lt_compiler
9747
9748 # Is the compiler the GNU C compiler?
9749 with_gcc=$GCC
9750
9751 # An ERE matcher.
9752 EGREP=$lt_EGREP
9753
9754 # The linker used to build libraries.
9755 LD=$lt_LD
9756
9757 # Whether we need hard or soft links.
9758 LN_S=$lt_LN_S
9759
9760 # A BSD-compatible nm program.
9761 NM=$lt_NM
9762
9763 # A symbol stripping program
9764 STRIP=$lt_STRIP
9765
9766 # Used to examine libraries when file_magic_cmd begins "file"
9767 MAGIC_CMD=$MAGIC_CMD
9768
9769 # Used on cygwin: DLL creation program.
9770 DLLTOOL="$DLLTOOL"
9771
9772 # Used on cygwin: object dumper.
9773 OBJDUMP="$OBJDUMP"
9774
9775 # Used on cygwin: assembler.
9776 AS="$AS"
9777
9778 # The name of the directory that contains temporary libtool files.
9779 objdir=$objdir
9780
9781 # How to create reloadable object files.
9782 reload_flag=$lt_reload_flag
9783 reload_cmds=$lt_reload_cmds
9784
9785 # How to pass a linker flag through the compiler.
9786 wl=$lt_lt_prog_compiler_wl
9787
9788 # Object file suffix (normally "o").
9789 objext="$ac_objext"
9790
9791 # Old archive suffix (normally "a").
9792 libext="$libext"
9793
9794 # Shared library suffix (normally ".so").
9795 shrext_cmds='$shrext_cmds'
9796
9797 # Executable file suffix (normally "").
9798 exeext="$exeext"
9799
9800 # Additional compiler flags for building library objects.
9801 pic_flag=$lt_lt_prog_compiler_pic
9802 pic_mode=$pic_mode
9803
9804 # What is the maximum length of a command?
9805 max_cmd_len=$lt_cv_sys_max_cmd_len
9806
9807 # Does compiler simultaneously support -c and -o options?
9808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9809
9810 # Must we lock files when doing compilation ?
9811 need_locks=$lt_need_locks
9812
9813 # Do we need the lib prefix for modules?
9814 need_lib_prefix=$need_lib_prefix
9815
9816 # Do we need a version for libraries?
9817 need_version=$need_version
9818
9819 # Whether dlopen is supported.
9820 dlopen_support=$enable_dlopen
9821
9822 # Whether dlopen of programs is supported.
9823 dlopen_self=$enable_dlopen_self
9824
9825 # Whether dlopen of statically linked programs is supported.
9826 dlopen_self_static=$enable_dlopen_self_static
9827
9828 # Compiler flag to prevent dynamic linking.
9829 link_static_flag=$lt_lt_prog_compiler_static
9830
9831 # Compiler flag to turn off builtin functions.
9832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9833
9834 # Compiler flag to allow reflexive dlopens.
9835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9836
9837 # Compiler flag to generate shared objects directly from archives.
9838 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9839
9840 # Compiler flag to generate thread-safe objects.
9841 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9842
9843 # Library versioning type.
9844 version_type=$version_type
9845
9846 # Format of library name prefix.
9847 libname_spec=$lt_libname_spec
9848
9849 # List of archive names. First name is the real one, the rest are links.
9850 # The last name is the one that the linker finds with -lNAME.
9851 library_names_spec=$lt_library_names_spec
9852
9853 # The coded name of the library, if different from the real name.
9854 soname_spec=$lt_soname_spec
9855
9856 # Commands used to build and install an old-style archive.
9857 RANLIB=$lt_RANLIB
9858 old_archive_cmds=$lt_old_archive_cmds
9859 old_postinstall_cmds=$lt_old_postinstall_cmds
9860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9861
9862 # Create an old-style archive from a shared archive.
9863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9864
9865 # Create a temporary old-style archive to link instead of a shared archive.
9866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9867
9868 # Commands used to build and install a shared archive.
9869 archive_cmds=$lt_archive_cmds
9870 archive_expsym_cmds=$lt_archive_expsym_cmds
9871 postinstall_cmds=$lt_postinstall_cmds
9872 postuninstall_cmds=$lt_postuninstall_cmds
9873
9874 # Commands used to build a loadable module (assumed same as above if empty)
9875 module_cmds=$lt_module_cmds
9876 module_expsym_cmds=$lt_module_expsym_cmds
9877
9878 # Commands to strip libraries.
9879 old_striplib=$lt_old_striplib
9880 striplib=$lt_striplib
9881
9882 # Dependencies to place before the objects being linked to create a
9883 # shared library.
9884 predep_objects=$lt_predep_objects
9885
9886 # Dependencies to place after the objects being linked to create a
9887 # shared library.
9888 postdep_objects=$lt_postdep_objects
9889
9890 # Dependencies to place before the objects being linked to create a
9891 # shared library.
9892 predeps=$lt_predeps
9893
9894 # Dependencies to place after the objects being linked to create a
9895 # shared library.
9896 postdeps=$lt_postdeps
9897
9898 # The library search path used internally by the compiler when linking
9899 # a shared library.
9900 compiler_lib_search_path=$lt_compiler_lib_search_path
9901
9902 # Method to check whether dependent libraries are shared objects.
9903 deplibs_check_method=$lt_deplibs_check_method
9904
9905 # Command to use when deplibs_check_method == file_magic.
9906 file_magic_cmd=$lt_file_magic_cmd
9907
9908 # Flag that allows shared libraries with undefined symbols to be built.
9909 allow_undefined_flag=$lt_allow_undefined_flag
9910
9911 # Flag that forces no undefined symbols.
9912 no_undefined_flag=$lt_no_undefined_flag
9913
9914 # Commands used to finish a libtool library installation in a directory.
9915 finish_cmds=$lt_finish_cmds
9916
9917 # Same as above, but a single script fragment to be evaled but not shown.
9918 finish_eval=$lt_finish_eval
9919
9920 # Take the output of nm and produce a listing of raw symbols and C names.
9921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9922
9923 # Transform the output of nm in a proper C declaration
9924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9925
9926 # Transform the output of nm in a C name address pair
9927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9928
9929 # This is the shared library runtime path variable.
9930 runpath_var=$runpath_var
9931
9932 # This is the shared library path variable.
9933 shlibpath_var=$shlibpath_var
9934
9935 # Is shlibpath searched before the hard-coded library search path?
9936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9937
9938 # How to hardcode a shared library path into an executable.
9939 hardcode_action=$hardcode_action
9940
9941 # Whether we should hardcode library paths into libraries.
9942 hardcode_into_libs=$hardcode_into_libs
9943
9944 # Flag to hardcode \$libdir into a binary during linking.
9945 # This must work even if \$libdir does not exist.
9946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9947
9948 # If ld is used when linking, flag to hardcode \$libdir into
9949 # a binary during linking. This must work even if \$libdir does
9950 # not exist.
9951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9952
9953 # Whether we need a single -rpath flag with a separated argument.
9954 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9955
9956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9957 # resulting binary.
9958 hardcode_direct=$hardcode_direct
9959
9960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9961 # resulting binary.
9962 hardcode_minus_L=$hardcode_minus_L
9963
9964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9965 # the resulting binary.
9966 hardcode_shlibpath_var=$hardcode_shlibpath_var
9967
9968 # Set to yes if building a shared library automatically hardcodes DIR into the library
9969 # and all subsequent libraries and executables linked against it.
9970 hardcode_automatic=$hardcode_automatic
9971
9972 # Variables whose values should be saved in libtool wrapper scripts and
9973 # restored at relink time.
9974 variables_saved_for_relink="$variables_saved_for_relink"
9975
9976 # Whether libtool must link a program against all its dependency libraries.
9977 link_all_deplibs=$link_all_deplibs
9978
9979 # Compile-time system search path for libraries
9980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9981
9982 # Run-time system search path for libraries
9983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9984
9985 # Fix the shell variable \$srcfile for the compiler.
9986 fix_srcfile_path="$fix_srcfile_path"
9987
9988 # Set to yes if exported symbols are required.
9989 always_export_symbols=$always_export_symbols
9990
9991 # The commands to list exported symbols.
9992 export_symbols_cmds=$lt_export_symbols_cmds
9993
9994 # The commands to extract the exported symbol list from a shared archive.
9995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9996
9997 # Symbols that should not be listed in the preloaded symbols.
9998 exclude_expsyms=$lt_exclude_expsyms
9999
10000 # Symbols that must always be exported.
10001 include_expsyms=$lt_include_expsyms
10002
10003 # ### END LIBTOOL CONFIG
10004
10005 __EOF__
10006
10007
10008 case $host_os in
10009 aix3*)
10010 cat <<\EOF >> "$cfgfile"
10011
10012 # AIX sometimes has problems with the GCC collect2 program. For some
10013 # reason, if we set the COLLECT_NAMES environment variable, the problems
10014 # vanish in a puff of smoke.
10015 if test "X${COLLECT_NAMES+set}" != Xset; then
10016 COLLECT_NAMES=
10017 export COLLECT_NAMES
10018 fi
10019 EOF
10020 ;;
10021 esac
10022
10023 # We use sed instead of cat because bash on DJGPP gets confused if
10024 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10025 # text mode, it properly converts lines to CR/LF. This bash problem
10026 # is reportedly fixed, but why not run on old versions too?
10027 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10028
10029 mv -f "$cfgfile" "$ofile" || \
10030 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10031 chmod +x "$ofile"
10032
10033 else
10034 # If there is no Makefile yet, we rely on a make rule to execute
10035 # `config.status --recheck' to rerun these tests and create the
10036 # libtool script then.
10037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10038 if test -f "$ltmain_in"; then
10039 test -f Makefile && make "$ltmain"
10040 fi
10041 fi
10042
10043
10044 ac_ext=c
10045 ac_cpp='$CPP $CPPFLAGS'
10046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10049
10050 CC="$lt_save_CC"
10051
10052
10053 # Check whether --with-tags or --without-tags was given.
10054 if test "${with_tags+set}" = set; then
10055 withval="$with_tags"
10056 tagnames="$withval"
10057 fi;
10058
10059 if test -f "$ltmain" && test -n "$tagnames"; then
10060 if test ! -f "${ofile}"; then
10061 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10062 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10063 fi
10064
10065 if test -z "$LTCC"; then
10066 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10067 if test -z "$LTCC"; then
10068 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10069 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10070 else
10071 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10072 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10073 fi
10074 fi
10075
10076 # Extract list of available tagged configurations in $ofile.
10077 # Note that this assumes the entire list is on one line.
10078 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10079
10080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10081 for tagname in $tagnames; do
10082 IFS="$lt_save_ifs"
10083 # Check whether tagname contains only valid characters
10084 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10085 "") ;;
10086 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10087 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10088 { (exit 1); exit 1; }; }
10089 ;;
10090 esac
10091
10092 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10093 then
10094 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10095 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10096 { (exit 1); exit 1; }; }
10097 fi
10098
10099 # Update the list of available tags.
10100 if test -n "$tagname"; then
10101 echo appending configuration tag \"$tagname\" to $ofile
10102
10103 case $tagname in
10104 CXX)
10105 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10106 ac_ext=cc
10107 ac_cpp='$CXXCPP $CPPFLAGS'
10108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10111
10112
10113
10114
10115 archive_cmds_need_lc_CXX=no
10116 allow_undefined_flag_CXX=
10117 always_export_symbols_CXX=no
10118 archive_expsym_cmds_CXX=
10119 export_dynamic_flag_spec_CXX=
10120 hardcode_direct_CXX=no
10121 hardcode_libdir_flag_spec_CXX=
10122 hardcode_libdir_flag_spec_ld_CXX=
10123 hardcode_libdir_separator_CXX=
10124 hardcode_minus_L_CXX=no
10125 hardcode_automatic_CXX=no
10126 module_cmds_CXX=
10127 module_expsym_cmds_CXX=
10128 link_all_deplibs_CXX=unknown
10129 old_archive_cmds_CXX=$old_archive_cmds
10130 no_undefined_flag_CXX=
10131 whole_archive_flag_spec_CXX=
10132 enable_shared_with_static_runtimes_CXX=no
10133
10134 # Dependencies to place before and after the object being linked:
10135 predep_objects_CXX=
10136 postdep_objects_CXX=
10137 predeps_CXX=
10138 postdeps_CXX=
10139 compiler_lib_search_path_CXX=
10140
10141 # Source file extension for C++ test sources.
10142 ac_ext=cc
10143
10144 # Object file extension for compiled C++ test sources.
10145 objext=o
10146 objext_CXX=$objext
10147
10148 # Code to be used in simple compile tests
10149 lt_simple_compile_test_code="int some_variable = 0;\n"
10150
10151 # Code to be used in simple link tests
10152 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10153
10154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10155
10156 # If no C compiler was specified, use CC.
10157 LTCC=${LTCC-"$CC"}
10158
10159 # Allow CC to be a program name with arguments.
10160 compiler=$CC
10161
10162
10163 # Allow CC to be a program name with arguments.
10164 lt_save_CC=$CC
10165 lt_save_LD=$LD
10166 lt_save_GCC=$GCC
10167 GCC=$GXX
10168 lt_save_with_gnu_ld=$with_gnu_ld
10169 lt_save_path_LD=$lt_cv_path_LD
10170 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10171 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10172 else
10173 unset lt_cv_prog_gnu_ld
10174 fi
10175 if test -n "${lt_cv_path_LDCXX+set}"; then
10176 lt_cv_path_LD=$lt_cv_path_LDCXX
10177 else
10178 unset lt_cv_path_LD
10179 fi
10180 test -z "${LDCXX+set}" || LD=$LDCXX
10181 CC=${CXX-"c++"}
10182 compiler=$CC
10183 compiler_CXX=$CC
10184 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10185
10186 # We don't want -fno-exception wen compiling C++ code, so set the
10187 # no_builtin_flag separately
10188 if test "$GXX" = yes; then
10189 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10190 else
10191 lt_prog_compiler_no_builtin_flag_CXX=
10192 fi
10193
10194 if test "$GXX" = yes; then
10195 # Set up default GNU C++ configuration
10196
10197
10198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10199 if test "${with_gnu_ld+set}" = set; then
10200 withval="$with_gnu_ld"
10201 test "$withval" = no || with_gnu_ld=yes
10202 else
10203 with_gnu_ld=no
10204 fi;
10205 ac_prog=ld
10206 if test "$GCC" = yes; then
10207 # Check if gcc -print-prog-name=ld gives a path.
10208 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10210 case $host in
10211 *-*-mingw*)
10212 # gcc leaves a trailing carriage return which upsets mingw
10213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10214 *)
10215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10216 esac
10217 case $ac_prog in
10218 # Accept absolute paths.
10219 [\\/]* | ?:[\\/]*)
10220 re_direlt='/[^/][^/]*/\.\./'
10221 # Canonicalize the pathname of ld
10222 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10223 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10224 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10225 done
10226 test -z "$LD" && LD="$ac_prog"
10227 ;;
10228 "")
10229 # If it fails, then pretend we aren't using GCC.
10230 ac_prog=ld
10231 ;;
10232 *)
10233 # If it is relative, then search for the first ld in PATH.
10234 with_gnu_ld=unknown
10235 ;;
10236 esac
10237 elif test "$with_gnu_ld" = yes; then
10238 echo "$as_me:$LINENO: checking for GNU ld" >&5
10239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10240 else
10241 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10243 fi
10244 if test "${lt_cv_path_LD+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 if test -z "$LD"; then
10248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10249 for ac_dir in $PATH; do
10250 IFS="$lt_save_ifs"
10251 test -z "$ac_dir" && ac_dir=.
10252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10253 lt_cv_path_LD="$ac_dir/$ac_prog"
10254 # Check to see if the program is GNU ld. I'd rather use --version,
10255 # but apparently some GNU ld's only accept -v.
10256 # Break only if it was the GNU/non-GNU ld that we prefer.
10257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10258 *GNU* | *'with BFD'*)
10259 test "$with_gnu_ld" != no && break
10260 ;;
10261 *)
10262 test "$with_gnu_ld" != yes && break
10263 ;;
10264 esac
10265 fi
10266 done
10267 IFS="$lt_save_ifs"
10268 else
10269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10270 fi
10271 fi
10272
10273 LD="$lt_cv_path_LD"
10274 if test -n "$LD"; then
10275 echo "$as_me:$LINENO: result: $LD" >&5
10276 echo "${ECHO_T}$LD" >&6
10277 else
10278 echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10280 fi
10281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10283 { (exit 1); exit 1; }; }
10284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10290 case `$LD -v 2>&1 </dev/null` in
10291 *GNU* | *'with BFD'*)
10292 lt_cv_prog_gnu_ld=yes
10293 ;;
10294 *)
10295 lt_cv_prog_gnu_ld=no
10296 ;;
10297 esac
10298 fi
10299 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10301 with_gnu_ld=$lt_cv_prog_gnu_ld
10302
10303
10304
10305 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10306 # archiving commands below assume that GNU ld is being used.
10307 if test "$with_gnu_ld" = yes; then
10308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310
10311 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10313
10314 # If archive_cmds runs LD, not CC, wlarc should be empty
10315 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10316 # investigate it a little bit more. (MM)
10317 wlarc='${wl}'
10318
10319 # ancient GNU ld didn't support --whole-archive et. al.
10320 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10321 grep 'no-whole-archive' > /dev/null; then
10322 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10323 else
10324 whole_archive_flag_spec_CXX=
10325 fi
10326 else
10327 with_gnu_ld=no
10328 wlarc=
10329
10330 # A generic and very simple default shared library creation
10331 # command for GNU C++ for the case where it uses the native
10332 # linker, instead of GNU ld. If possible, this setting should
10333 # overridden to take advantage of the native linker features on
10334 # the platform it is being used on.
10335 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10336 fi
10337
10338 # Commands to make compiler produce verbose output that lists
10339 # what "hidden" libraries, object files and flags are used when
10340 # linking a shared library.
10341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10342
10343 else
10344 GXX=no
10345 with_gnu_ld=no
10346 wlarc=
10347 fi
10348
10349 # PORTME: fill in a description of your system's C++ link characteristics
10350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10352 ld_shlibs_CXX=yes
10353 case $host_os in
10354 aix3*)
10355 # FIXME: insert proper C++ library support
10356 ld_shlibs_CXX=no
10357 ;;
10358 aix4* | aix5*)
10359 if test "$host_cpu" = ia64; then
10360 # On IA64, the linker does run time linking by default, so we don't
10361 # have to do anything special.
10362 aix_use_runtimelinking=no
10363 exp_sym_flag='-Bexport'
10364 no_entry_flag=""
10365 else
10366 aix_use_runtimelinking=no
10367
10368 # Test if we are trying to use run time linking or normal
10369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10370 # need to do runtime linking.
10371 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10372 for ld_flag in $LDFLAGS; do
10373 case $ld_flag in
10374 *-brtl*)
10375 aix_use_runtimelinking=yes
10376 break
10377 ;;
10378 esac
10379 done
10380 esac
10381
10382 exp_sym_flag='-bexport'
10383 no_entry_flag='-bnoentry'
10384 fi
10385
10386 # When large executables or shared objects are built, AIX ld can
10387 # have problems creating the table of contents. If linking a library
10388 # or program results in "error TOC overflow" add -mminimal-toc to
10389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10391
10392 archive_cmds_CXX=''
10393 hardcode_direct_CXX=yes
10394 hardcode_libdir_separator_CXX=':'
10395 link_all_deplibs_CXX=yes
10396
10397 if test "$GXX" = yes; then
10398 case $host_os in aix4.012|aix4.012.*)
10399 # We only want to do this on AIX 4.2 and lower, the check
10400 # below for broken collect2 doesn't work under 4.3+
10401 collect2name=`${CC} -print-prog-name=collect2`
10402 if test -f "$collect2name" && \
10403 strings "$collect2name" | grep resolve_lib_name >/dev/null
10404 then
10405 # We have reworked collect2
10406 hardcode_direct_CXX=yes
10407 else
10408 # We have old collect2
10409 hardcode_direct_CXX=unsupported
10410 # It fails to find uninstalled libraries when the uninstalled
10411 # path is not listed in the libpath. Setting hardcode_minus_L
10412 # to unsupported forces relinking
10413 hardcode_minus_L_CXX=yes
10414 hardcode_libdir_flag_spec_CXX='-L$libdir'
10415 hardcode_libdir_separator_CXX=
10416 fi
10417 esac
10418 shared_flag='-shared'
10419 else
10420 # not using gcc
10421 if test "$host_cpu" = ia64; then
10422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10423 # chokes on -Wl,-G. The following line is correct:
10424 shared_flag='-G'
10425 else
10426 if test "$aix_use_runtimelinking" = yes; then
10427 shared_flag='${wl}-G'
10428 else
10429 shared_flag='${wl}-bM:SRE'
10430 fi
10431 fi
10432 fi
10433
10434 # It seems that -bexpall does not export symbols beginning with
10435 # underscore (_), so it is better to generate a list of symbols to export.
10436 always_export_symbols_CXX=yes
10437 if test "$aix_use_runtimelinking" = yes; then
10438 # Warning - without using the other runtime loading flags (-brtl),
10439 # -berok will link without error, but may produce a broken library.
10440 allow_undefined_flag_CXX='-berok'
10441 # Determine the default libpath from the value encoded in an empty executable.
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h. */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448
10449 int
10450 main ()
10451 {
10452
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459 (eval $ac_link) 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest$ac_exeext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478
10479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10480 }'`
10481 # Check for a 64-bit object if we didn't find anything.
10482 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10483 }'`; fi
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10492
10493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10494
10495 archive_expsym_cmds_CXX="\$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"
10496 else
10497 if test "$host_cpu" = ia64; then
10498 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10499 allow_undefined_flag_CXX="-z nodefs"
10500 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10501 else
10502 # Determine the default libpath from the value encoded in an empty executable.
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509
10510 int
10511 main ()
10512 {
10513
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520 (eval $ac_link) 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539
10540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10541 }'`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10544 }'`; fi
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549 fi
10550 rm -f conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10553
10554 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10555 # Warning - without using the other run time loading flags,
10556 # -berok will link without error, but may produce a broken library.
10557 no_undefined_flag_CXX=' ${wl}-bernotok'
10558 allow_undefined_flag_CXX=' ${wl}-berok'
10559 # -bexpall does not export symbols beginning with underscore (_)
10560 always_export_symbols_CXX=yes
10561 # Exported symbols can be pulled into shared objects from archives
10562 whole_archive_flag_spec_CXX=' '
10563 archive_cmds_need_lc_CXX=yes
10564 # This is similar to how AIX traditionally builds it's shared libraries.
10565 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10566 fi
10567 fi
10568 ;;
10569 chorus*)
10570 case $cc_basename in
10571 *)
10572 # FIXME: insert proper C++ library support
10573 ld_shlibs_CXX=no
10574 ;;
10575 esac
10576 ;;
10577
10578 cygwin* | mingw* | pw32*)
10579 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10580 # as there is no search path for DLLs.
10581 hardcode_libdir_flag_spec_CXX='-L$libdir'
10582 allow_undefined_flag_CXX=unsupported
10583 always_export_symbols_CXX=no
10584 enable_shared_with_static_runtimes_CXX=yes
10585
10586 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10588 # If the export-symbols file already is a .def file (1st line
10589 # is EXPORTS), use it as is; otherwise, prepend...
10590 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10591 cp $export_symbols $output_objdir/$soname.def;
10592 else
10593 echo EXPORTS > $output_objdir/$soname.def;
10594 cat $export_symbols >> $output_objdir/$soname.def;
10595 fi~
10596 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10597 else
10598 ld_shlibs_CXX=no
10599 fi
10600 ;;
10601
10602 darwin* | rhapsody*)
10603 if test "$GXX" = yes; then
10604 archive_cmds_need_lc_CXX=no
10605 case "$host_os" in
10606 rhapsody* | darwin1.[012])
10607 allow_undefined_flag_CXX='-undefined suppress'
10608 ;;
10609 *) # Darwin 1.3 on
10610 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10611 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10612 else
10613 case ${MACOSX_DEPLOYMENT_TARGET} in
10614 10.[012])
10615 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10616 ;;
10617 10.*)
10618 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10619 ;;
10620 esac
10621 fi
10622 ;;
10623 esac
10624 lt_int_apple_cc_single_mod=no
10625 output_verbose_link_cmd='echo'
10626 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10627 lt_int_apple_cc_single_mod=yes
10628 fi
10629 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10630 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10631 else
10632 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10633 fi
10634 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10635
10636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10637 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10638 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10639 else
10640 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10641 fi
10642 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10643 hardcode_direct_CXX=no
10644 hardcode_automatic_CXX=yes
10645 hardcode_shlibpath_var_CXX=unsupported
10646 whole_archive_flag_spec_CXX='-all_load $convenience'
10647 link_all_deplibs_CXX=yes
10648 else
10649 ld_shlibs_CXX=no
10650 fi
10651 ;;
10652
10653 dgux*)
10654 case $cc_basename in
10655 ec++)
10656 # FIXME: insert proper C++ library support
10657 ld_shlibs_CXX=no
10658 ;;
10659 ghcx)
10660 # Green Hills C++ Compiler
10661 # FIXME: insert proper C++ library support
10662 ld_shlibs_CXX=no
10663 ;;
10664 *)
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 esac
10669 ;;
10670 freebsd12*)
10671 # C++ shared libraries reported to be fairly broken before switch to ELF
10672 ld_shlibs_CXX=no
10673 ;;
10674 freebsd-elf*)
10675 archive_cmds_need_lc_CXX=no
10676 ;;
10677 freebsd* | kfreebsd*-gnu)
10678 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10679 # conventions
10680 ld_shlibs_CXX=yes
10681 ;;
10682 gnu*)
10683 ;;
10684 hpux9*)
10685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10686 hardcode_libdir_separator_CXX=:
10687 export_dynamic_flag_spec_CXX='${wl}-E'
10688 hardcode_direct_CXX=yes
10689 hardcode_minus_L_CXX=yes # Not in the search PATH,
10690 # but as the default
10691 # location of the library.
10692
10693 case $cc_basename in
10694 CC)
10695 # FIXME: insert proper C++ library support
10696 ld_shlibs_CXX=no
10697 ;;
10698 aCC)
10699 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10700 # Commands to make compiler produce verbose output that lists
10701 # what "hidden" libraries, object files and flags are used when
10702 # linking a shared library.
10703 #
10704 # There doesn't appear to be a way to prevent this compiler from
10705 # explicitly linking system object files so we need to strip them
10706 # from the output so that they don't get included in the library
10707 # dependencies.
10708 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10709 ;;
10710 *)
10711 if test "$GXX" = yes; then
10712 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10713 else
10714 # FIXME: insert proper C++ library support
10715 ld_shlibs_CXX=no
10716 fi
10717 ;;
10718 esac
10719 ;;
10720 hpux10*|hpux11*)
10721 if test $with_gnu_ld = no; then
10722 case "$host_cpu" in
10723 hppa*64*)
10724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10725 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10726 hardcode_libdir_separator_CXX=:
10727 ;;
10728 ia64*)
10729 hardcode_libdir_flag_spec_CXX='-L$libdir'
10730 ;;
10731 *)
10732 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10733 hardcode_libdir_separator_CXX=:
10734 export_dynamic_flag_spec_CXX='${wl}-E'
10735 ;;
10736 esac
10737 fi
10738 case "$host_cpu" in
10739 hppa*64*)
10740 hardcode_direct_CXX=no
10741 hardcode_shlibpath_var_CXX=no
10742 ;;
10743 ia64*)
10744 hardcode_direct_CXX=no
10745 hardcode_shlibpath_var_CXX=no
10746 hardcode_minus_L_CXX=yes # Not in the search PATH,
10747 # but as the default
10748 # location of the library.
10749 ;;
10750 *)
10751 hardcode_direct_CXX=yes
10752 hardcode_minus_L_CXX=yes # Not in the search PATH,
10753 # but as the default
10754 # location of the library.
10755 ;;
10756 esac
10757
10758 case $cc_basename in
10759 CC)
10760 # FIXME: insert proper C++ library support
10761 ld_shlibs_CXX=no
10762 ;;
10763 aCC)
10764 case "$host_cpu" in
10765 hppa*64*|ia64*)
10766 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10767 ;;
10768 *)
10769 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10770 ;;
10771 esac
10772 # Commands to make compiler produce verbose output that lists
10773 # what "hidden" libraries, object files and flags are used when
10774 # linking a shared library.
10775 #
10776 # There doesn't appear to be a way to prevent this compiler from
10777 # explicitly linking system object files so we need to strip them
10778 # from the output so that they don't get included in the library
10779 # dependencies.
10780 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10781 ;;
10782 *)
10783 if test "$GXX" = yes; then
10784 if test $with_gnu_ld = no; then
10785 case "$host_cpu" in
10786 ia64*|hppa*64*)
10787 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10788 ;;
10789 *)
10790 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10791 ;;
10792 esac
10793 fi
10794 else
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 fi
10798 ;;
10799 esac
10800 ;;
10801 irix5* | irix6*)
10802 case $cc_basename in
10803 CC)
10804 # SGI C++
10805 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10806
10807 # Archives containing C++ object files must be created using
10808 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10809 # necessary to make sure instantiated templates are included
10810 # in the archive.
10811 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10812 ;;
10813 *)
10814 if test "$GXX" = yes; then
10815 if test "$with_gnu_ld" = no; then
10816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10817 else
10818 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10819 fi
10820 fi
10821 link_all_deplibs_CXX=yes
10822 ;;
10823 esac
10824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10825 hardcode_libdir_separator_CXX=:
10826 ;;
10827 linux*)
10828 case $cc_basename in
10829 KCC)
10830 # Kuck and Associates, Inc. (KAI) C++ Compiler
10831
10832 # KCC will only create a shared library if the output file
10833 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10834 # to its proper name (with version) after linking.
10835 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10836 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10837 # Commands to make compiler produce verbose output that lists
10838 # what "hidden" libraries, object files and flags are used when
10839 # linking a shared library.
10840 #
10841 # There doesn't appear to be a way to prevent this compiler from
10842 # explicitly linking system object files so we need to strip them
10843 # from the output so that they don't get included in the library
10844 # dependencies.
10845 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10846
10847 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10849
10850 # Archives containing C++ object files must be created using
10851 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10852 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10853 ;;
10854 icpc)
10855 # Intel C++
10856 with_gnu_ld=yes
10857 archive_cmds_need_lc_CXX=no
10858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10859 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10863 ;;
10864 cxx)
10865 # Compaq C++
10866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10867 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10868
10869 runpath_var=LD_RUN_PATH
10870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10871 hardcode_libdir_separator_CXX=:
10872
10873 # Commands to make compiler produce verbose output that lists
10874 # what "hidden" libraries, object files and flags are used when
10875 # linking a shared library.
10876 #
10877 # There doesn't appear to be a way to prevent this compiler from
10878 # explicitly linking system object files so we need to strip them
10879 # from the output so that they don't get included in the library
10880 # dependencies.
10881 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10882 ;;
10883 esac
10884 ;;
10885 lynxos*)
10886 # FIXME: insert proper C++ library support
10887 ld_shlibs_CXX=no
10888 ;;
10889 m88k*)
10890 # FIXME: insert proper C++ library support
10891 ld_shlibs_CXX=no
10892 ;;
10893 mvs*)
10894 case $cc_basename in
10895 cxx)
10896 # FIXME: insert proper C++ library support
10897 ld_shlibs_CXX=no
10898 ;;
10899 *)
10900 # FIXME: insert proper C++ library support
10901 ld_shlibs_CXX=no
10902 ;;
10903 esac
10904 ;;
10905 netbsd* | knetbsd*-gnu)
10906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10908 wlarc=
10909 hardcode_libdir_flag_spec_CXX='-R$libdir'
10910 hardcode_direct_CXX=yes
10911 hardcode_shlibpath_var_CXX=no
10912 fi
10913 # Workaround some broken pre-1.5 toolchains
10914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10915 ;;
10916 osf3*)
10917 case $cc_basename in
10918 KCC)
10919 # Kuck and Associates, Inc. (KAI) C++ Compiler
10920
10921 # KCC will only create a shared library if the output file
10922 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10923 # to its proper name (with version) after linking.
10924 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10925
10926 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10927 hardcode_libdir_separator_CXX=:
10928
10929 # Archives containing C++ object files must be created using
10930 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10931 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10932
10933 ;;
10934 RCC)
10935 # Rational C++ 2.4.1
10936 # FIXME: insert proper C++ library support
10937 ld_shlibs_CXX=no
10938 ;;
10939 cxx)
10940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10941 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10942
10943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10944 hardcode_libdir_separator_CXX=:
10945
10946 # Commands to make compiler produce verbose output that lists
10947 # what "hidden" libraries, object files and flags are used when
10948 # linking a shared library.
10949 #
10950 # There doesn't appear to be a way to prevent this compiler from
10951 # explicitly linking system object files so we need to strip them
10952 # from the output so that they don't get included in the library
10953 # dependencies.
10954 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10955 ;;
10956 *)
10957 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10958 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10959 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10960
10961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10962 hardcode_libdir_separator_CXX=:
10963
10964 # Commands to make compiler produce verbose output that lists
10965 # what "hidden" libraries, object files and flags are used when
10966 # linking a shared library.
10967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10968
10969 else
10970 # FIXME: insert proper C++ library support
10971 ld_shlibs_CXX=no
10972 fi
10973 ;;
10974 esac
10975 ;;
10976 osf4* | osf5*)
10977 case $cc_basename in
10978 KCC)
10979 # Kuck and Associates, Inc. (KAI) C++ Compiler
10980
10981 # KCC will only create a shared library if the output file
10982 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10983 # to its proper name (with version) after linking.
10984 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10985
10986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10987 hardcode_libdir_separator_CXX=:
10988
10989 # Archives containing C++ object files must be created using
10990 # the KAI C++ compiler.
10991 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10992 ;;
10993 RCC)
10994 # Rational C++ 2.4.1
10995 # FIXME: insert proper C++ library support
10996 ld_shlibs_CXX=no
10997 ;;
10998 cxx)
10999 allow_undefined_flag_CXX=' -expect_unresolved \*'
11000 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11001 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11002 echo "-hidden">> $lib.exp~
11003 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11004 $rm $lib.exp'
11005
11006 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11007 hardcode_libdir_separator_CXX=:
11008
11009 # Commands to make compiler produce verbose output that lists
11010 # what "hidden" libraries, object files and flags are used when
11011 # linking a shared library.
11012 #
11013 # There doesn't appear to be a way to prevent this compiler from
11014 # explicitly linking system object files so we need to strip them
11015 # from the output so that they don't get included in the library
11016 # dependencies.
11017 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11018 ;;
11019 *)
11020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11021 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11022 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11023
11024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11025 hardcode_libdir_separator_CXX=:
11026
11027 # Commands to make compiler produce verbose output that lists
11028 # what "hidden" libraries, object files and flags are used when
11029 # linking a shared library.
11030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11031
11032 else
11033 # FIXME: insert proper C++ library support
11034 ld_shlibs_CXX=no
11035 fi
11036 ;;
11037 esac
11038 ;;
11039 psos*)
11040 # FIXME: insert proper C++ library support
11041 ld_shlibs_CXX=no
11042 ;;
11043 sco*)
11044 archive_cmds_need_lc_CXX=no
11045 case $cc_basename in
11046 CC)
11047 # FIXME: insert proper C++ library support
11048 ld_shlibs_CXX=no
11049 ;;
11050 *)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 esac
11055 ;;
11056 sunos4*)
11057 case $cc_basename in
11058 CC)
11059 # Sun C++ 4.x
11060 # FIXME: insert proper C++ library support
11061 ld_shlibs_CXX=no
11062 ;;
11063 lcc)
11064 # Lucid
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11067 ;;
11068 *)
11069 # FIXME: insert proper C++ library support
11070 ld_shlibs_CXX=no
11071 ;;
11072 esac
11073 ;;
11074 solaris*)
11075 case $cc_basename in
11076 CC)
11077 # Sun C++ 4.2, 5.x and Centerline C++
11078 no_undefined_flag_CXX=' -zdefs'
11079 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11080 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11081 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11082
11083 hardcode_libdir_flag_spec_CXX='-R$libdir'
11084 hardcode_shlibpath_var_CXX=no
11085 case $host_os in
11086 solaris2.0-5 | solaris2.0-5.*) ;;
11087 *)
11088 # The C++ compiler is used as linker so we must use $wl
11089 # flag to pass the commands to the underlying system
11090 # linker.
11091 # Supported since Solaris 2.6 (maybe 2.5.1?)
11092 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11093 ;;
11094 esac
11095 link_all_deplibs_CXX=yes
11096
11097 # Commands to make compiler produce verbose output that lists
11098 # what "hidden" libraries, object files and flags are used when
11099 # linking a shared library.
11100 #
11101 # There doesn't appear to be a way to prevent this compiler from
11102 # explicitly linking system object files so we need to strip them
11103 # from the output so that they don't get included in the library
11104 # dependencies.
11105 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11106
11107 # Archives containing C++ object files must be created using
11108 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11109 # necessary to make sure instantiated templates are included
11110 # in the archive.
11111 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11112 ;;
11113 gcx)
11114 # Green Hills C++ Compiler
11115 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11116
11117 # The C++ compiler must be used to create the archive.
11118 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11119 ;;
11120 *)
11121 # GNU C++ compiler with Solaris linker
11122 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11123 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11124 if $CC --version | grep -v '^2\.7' > /dev/null; then
11125 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11126 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11127 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11128
11129 # Commands to make compiler produce verbose output that lists
11130 # what "hidden" libraries, object files and flags are used when
11131 # linking a shared library.
11132 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11133 else
11134 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11135 # platform.
11136 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11137 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11138 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11139
11140 # Commands to make compiler produce verbose output that lists
11141 # what "hidden" libraries, object files and flags are used when
11142 # linking a shared library.
11143 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11144 fi
11145
11146 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11147 fi
11148 ;;
11149 esac
11150 ;;
11151 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11152 archive_cmds_need_lc_CXX=no
11153 ;;
11154 tandem*)
11155 case $cc_basename in
11156 NCC)
11157 # NonStop-UX NCC 3.20
11158 # FIXME: insert proper C++ library support
11159 ld_shlibs_CXX=no
11160 ;;
11161 *)
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 esac
11166 ;;
11167 vxworks*)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 *)
11172 # FIXME: insert proper C++ library support
11173 ld_shlibs_CXX=no
11174 ;;
11175 esac
11176 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11177 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11178 test "$ld_shlibs_CXX" = no && can_build_shared=no
11179
11180 GCC_CXX="$GXX"
11181 LD_CXX="$LD"
11182
11183
11184 cat > conftest.$ac_ext <<EOF
11185 class Foo
11186 {
11187 public:
11188 Foo (void) { a = 0; }
11189 private:
11190 int a;
11191 };
11192 EOF
11193
11194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11195 (eval $ac_compile) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; then
11199 # Parse the compiler output and extract the necessary
11200 # objects, libraries and library flags.
11201
11202 # Sentinel used to keep track of whether or not we are before
11203 # the conftest object file.
11204 pre_test_object_deps_done=no
11205
11206 # The `*' in the case matches for architectures that use `case' in
11207 # $output_verbose_cmd can trigger glob expansion during the loop
11208 # eval without this substitution.
11209 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11210
11211 for p in `eval $output_verbose_link_cmd`; do
11212 case $p in
11213
11214 -L* | -R* | -l*)
11215 # Some compilers place space between "-{L,R}" and the path.
11216 # Remove the space.
11217 if test $p = "-L" \
11218 || test $p = "-R"; then
11219 prev=$p
11220 continue
11221 else
11222 prev=
11223 fi
11224
11225 if test "$pre_test_object_deps_done" = no; then
11226 case $p in
11227 -L* | -R*)
11228 # Internal compiler library paths should come after those
11229 # provided the user. The postdeps already come after the
11230 # user supplied libs so there is no need to process them.
11231 if test -z "$compiler_lib_search_path_CXX"; then
11232 compiler_lib_search_path_CXX="${prev}${p}"
11233 else
11234 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11235 fi
11236 ;;
11237 # The "-l" case would never come before the object being
11238 # linked, so don't bother handling this case.
11239 esac
11240 else
11241 if test -z "$postdeps_CXX"; then
11242 postdeps_CXX="${prev}${p}"
11243 else
11244 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11245 fi
11246 fi
11247 ;;
11248
11249 *.$objext)
11250 # This assumes that the test object file only shows up
11251 # once in the compiler output.
11252 if test "$p" = "conftest.$objext"; then
11253 pre_test_object_deps_done=yes
11254 continue
11255 fi
11256
11257 if test "$pre_test_object_deps_done" = no; then
11258 if test -z "$predep_objects_CXX"; then
11259 predep_objects_CXX="$p"
11260 else
11261 predep_objects_CXX="$predep_objects_CXX $p"
11262 fi
11263 else
11264 if test -z "$postdep_objects_CXX"; then
11265 postdep_objects_CXX="$p"
11266 else
11267 postdep_objects_CXX="$postdep_objects_CXX $p"
11268 fi
11269 fi
11270 ;;
11271
11272 *) ;; # Ignore the rest.
11273
11274 esac
11275 done
11276
11277 # Clean up.
11278 rm -f a.out a.exe
11279 else
11280 echo "libtool.m4: error: problem compiling CXX test program"
11281 fi
11282
11283 $rm -f confest.$objext
11284
11285 case " $postdeps_CXX " in
11286 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11287 esac
11288
11289 lt_prog_compiler_wl_CXX=
11290 lt_prog_compiler_pic_CXX=
11291 lt_prog_compiler_static_CXX=
11292
11293 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11294 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11295
11296 # C++ specific cases for pic, static, wl, etc.
11297 if test "$GXX" = yes; then
11298 lt_prog_compiler_wl_CXX='-Wl,'
11299 lt_prog_compiler_static_CXX='-static'
11300
11301 case $host_os in
11302 aix*)
11303 # All AIX code is PIC.
11304 if test "$host_cpu" = ia64; then
11305 # AIX 5 now supports IA64 processor
11306 lt_prog_compiler_static_CXX='-Bstatic'
11307 fi
11308 ;;
11309 amigaos*)
11310 # FIXME: we need at least 68020 code to build shared libraries, but
11311 # adding the `-m68020' flag to GCC prevents building anything better,
11312 # like `-m68040'.
11313 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11314 ;;
11315 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11316 # PIC is the default for these OSes.
11317 ;;
11318 mingw* | os2* | pw32*)
11319 # This hack is so that the source file can tell whether it is being
11320 # built for inclusion in a dll (and should export symbols for example).
11321 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11322 ;;
11323 darwin* | rhapsody*)
11324 # PIC is the default on this platform
11325 # Common symbols not allowed in MH_DYLIB files
11326 lt_prog_compiler_pic_CXX='-fno-common'
11327 ;;
11328 *djgpp*)
11329 # DJGPP does not support shared libraries at all
11330 lt_prog_compiler_pic_CXX=
11331 ;;
11332 sysv4*MP*)
11333 if test -d /usr/nec; then
11334 lt_prog_compiler_pic_CXX=-Kconform_pic
11335 fi
11336 ;;
11337 hpux*)
11338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11339 # not for PA HP-UX.
11340 case "$host_cpu" in
11341 hppa*64*|ia64*)
11342 ;;
11343 *)
11344 lt_prog_compiler_pic_CXX='-fPIC'
11345 ;;
11346 esac
11347 ;;
11348 *)
11349 lt_prog_compiler_pic_CXX='-fPIC'
11350 ;;
11351 esac
11352 else
11353 case $host_os in
11354 aix4* | aix5*)
11355 # All AIX code is PIC.
11356 if test "$host_cpu" = ia64; then
11357 # AIX 5 now supports IA64 processor
11358 lt_prog_compiler_static_CXX='-Bstatic'
11359 else
11360 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11361 fi
11362 ;;
11363 chorus*)
11364 case $cc_basename in
11365 cxch68)
11366 # Green Hills C++ Compiler
11367 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11368 ;;
11369 esac
11370 ;;
11371 dgux*)
11372 case $cc_basename in
11373 ec++)
11374 lt_prog_compiler_pic_CXX='-KPIC'
11375 ;;
11376 ghcx)
11377 # Green Hills C++ Compiler
11378 lt_prog_compiler_pic_CXX='-pic'
11379 ;;
11380 *)
11381 ;;
11382 esac
11383 ;;
11384 freebsd* | kfreebsd*-gnu)
11385 # FreeBSD uses GNU C++
11386 ;;
11387 hpux9* | hpux10* | hpux11*)
11388 case $cc_basename in
11389 CC)
11390 lt_prog_compiler_wl_CXX='-Wl,'
11391 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11392 if test "$host_cpu" != ia64; then
11393 lt_prog_compiler_pic_CXX='+Z'
11394 fi
11395 ;;
11396 aCC)
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11399 case "$host_cpu" in
11400 hppa*64*|ia64*)
11401 # +Z the default
11402 ;;
11403 *)
11404 lt_prog_compiler_pic_CXX='+Z'
11405 ;;
11406 esac
11407 ;;
11408 *)
11409 ;;
11410 esac
11411 ;;
11412 irix5* | irix6* | nonstopux*)
11413 case $cc_basename in
11414 CC)
11415 lt_prog_compiler_wl_CXX='-Wl,'
11416 lt_prog_compiler_static_CXX='-non_shared'
11417 # CC pic flag -KPIC is the default.
11418 ;;
11419 *)
11420 ;;
11421 esac
11422 ;;
11423 linux*)
11424 case $cc_basename in
11425 KCC)
11426 # KAI C++ Compiler
11427 lt_prog_compiler_wl_CXX='--backend -Wl,'
11428 lt_prog_compiler_pic_CXX='-fPIC'
11429 ;;
11430 icpc)
11431 # Intel C++
11432 lt_prog_compiler_wl_CXX='-Wl,'
11433 lt_prog_compiler_pic_CXX='-KPIC'
11434 lt_prog_compiler_static_CXX='-static'
11435 ;;
11436 cxx)
11437 # Compaq C++
11438 # Make sure the PIC flag is empty. It appears that all Alpha
11439 # Linux and Compaq Tru64 Unix objects are PIC.
11440 lt_prog_compiler_pic_CXX=
11441 lt_prog_compiler_static_CXX='-non_shared'
11442 ;;
11443 *)
11444 ;;
11445 esac
11446 ;;
11447 lynxos*)
11448 ;;
11449 m88k*)
11450 ;;
11451 mvs*)
11452 case $cc_basename in
11453 cxx)
11454 lt_prog_compiler_pic_CXX='-W c,exportall'
11455 ;;
11456 *)
11457 ;;
11458 esac
11459 ;;
11460 netbsd* | knetbsd*-gnu)
11461 ;;
11462 osf3* | osf4* | osf5*)
11463 case $cc_basename in
11464 KCC)
11465 lt_prog_compiler_wl_CXX='--backend -Wl,'
11466 ;;
11467 RCC)
11468 # Rational C++ 2.4.1
11469 lt_prog_compiler_pic_CXX='-pic'
11470 ;;
11471 cxx)
11472 # Digital/Compaq C++
11473 lt_prog_compiler_wl_CXX='-Wl,'
11474 # Make sure the PIC flag is empty. It appears that all Alpha
11475 # Linux and Compaq Tru64 Unix objects are PIC.
11476 lt_prog_compiler_pic_CXX=
11477 lt_prog_compiler_static_CXX='-non_shared'
11478 ;;
11479 *)
11480 ;;
11481 esac
11482 ;;
11483 psos*)
11484 ;;
11485 sco*)
11486 case $cc_basename in
11487 CC)
11488 lt_prog_compiler_pic_CXX='-fPIC'
11489 ;;
11490 *)
11491 ;;
11492 esac
11493 ;;
11494 solaris*)
11495 case $cc_basename in
11496 CC)
11497 # Sun C++ 4.2, 5.x and Centerline C++
11498 lt_prog_compiler_pic_CXX='-KPIC'
11499 lt_prog_compiler_static_CXX='-Bstatic'
11500 lt_prog_compiler_wl_CXX='-Qoption ld '
11501 ;;
11502 gcx)
11503 # Green Hills C++ Compiler
11504 lt_prog_compiler_pic_CXX='-PIC'
11505 ;;
11506 *)
11507 ;;
11508 esac
11509 ;;
11510 sunos4*)
11511 case $cc_basename in
11512 CC)
11513 # Sun C++ 4.x
11514 lt_prog_compiler_pic_CXX='-pic'
11515 lt_prog_compiler_static_CXX='-Bstatic'
11516 ;;
11517 lcc)
11518 # Lucid
11519 lt_prog_compiler_pic_CXX='-pic'
11520 ;;
11521 *)
11522 ;;
11523 esac
11524 ;;
11525 tandem*)
11526 case $cc_basename in
11527 NCC)
11528 # NonStop-UX NCC 3.20
11529 lt_prog_compiler_pic_CXX='-KPIC'
11530 ;;
11531 *)
11532 ;;
11533 esac
11534 ;;
11535 unixware*)
11536 ;;
11537 vxworks*)
11538 ;;
11539 *)
11540 lt_prog_compiler_can_build_shared_CXX=no
11541 ;;
11542 esac
11543 fi
11544
11545 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11546 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11547
11548 #
11549 # Check to make sure the PIC flag actually works.
11550 #
11551 if test -n "$lt_prog_compiler_pic_CXX"; then
11552
11553 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11554 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11555 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 lt_prog_compiler_pic_works_CXX=no
11559 ac_outfile=conftest.$ac_objext
11560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11561 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11562 # Insert the option either (1) after the last *FLAGS variable, or
11563 # (2) before a word containing "conftest.", or (3) at the end.
11564 # Note that $ac_compile itself does not contain backslashes and begins
11565 # with a dollar sign (not a hyphen), so the echo should work correctly.
11566 # The option is referenced via a variable to avoid confusing sed.
11567 lt_compile=`echo "$ac_compile" | $SED \
11568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11570 -e 's:$: $lt_compiler_flag:'`
11571 (eval echo "\"\$as_me:11571: $lt_compile\"" >&5)
11572 (eval "$lt_compile" 2>conftest.err)
11573 ac_status=$?
11574 cat conftest.err >&5
11575 echo "$as_me:11575: \$? = $ac_status" >&5
11576 if (exit $ac_status) && test -s "$ac_outfile"; then
11577 # The compiler can only warn and ignore the option if not recognized
11578 # So say no if there are warnings
11579 if test ! -s conftest.err; then
11580 lt_prog_compiler_pic_works_CXX=yes
11581 fi
11582 fi
11583 $rm conftest*
11584
11585 fi
11586 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11587 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11588
11589 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11590 case $lt_prog_compiler_pic_CXX in
11591 "" | " "*) ;;
11592 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11593 esac
11594 else
11595 lt_prog_compiler_pic_CXX=
11596 lt_prog_compiler_can_build_shared_CXX=no
11597 fi
11598
11599 fi
11600 case "$host_os" in
11601 # For platforms which do not support PIC, -DPIC is meaningless:
11602 *djgpp*)
11603 lt_prog_compiler_pic_CXX=
11604 ;;
11605 *)
11606 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11607 ;;
11608 esac
11609
11610 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11611 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11612 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 lt_cv_prog_compiler_c_o_CXX=no
11616 $rm -r conftest 2>/dev/null
11617 mkdir conftest
11618 cd conftest
11619 mkdir out
11620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11621
11622 lt_compiler_flag="-o out/conftest2.$ac_objext"
11623 # Insert the option either (1) after the last *FLAGS variable, or
11624 # (2) before a word containing "conftest.", or (3) at the end.
11625 # Note that $ac_compile itself does not contain backslashes and begins
11626 # with a dollar sign (not a hyphen), so the echo should work correctly.
11627 lt_compile=`echo "$ac_compile" | $SED \
11628 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11630 -e 's:$: $lt_compiler_flag:'`
11631 (eval echo "\"\$as_me:11631: $lt_compile\"" >&5)
11632 (eval "$lt_compile" 2>out/conftest.err)
11633 ac_status=$?
11634 cat out/conftest.err >&5
11635 echo "$as_me:11635: \$? = $ac_status" >&5
11636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11637 then
11638 # The compiler can only warn and ignore the option if not recognized
11639 # So say no if there are warnings
11640 if test ! -s out/conftest.err; then
11641 lt_cv_prog_compiler_c_o_CXX=yes
11642 fi
11643 fi
11644 chmod u+w .
11645 $rm conftest*
11646 # SGI C++ compiler will create directory out/ii_files/ for
11647 # template instantiation
11648 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11649 $rm out/* && rmdir out
11650 cd ..
11651 rmdir conftest
11652 $rm conftest*
11653
11654 fi
11655 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11656 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11657
11658
11659 hard_links="nottested"
11660 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11661 # do not overwrite the value of need_locks provided by the user
11662 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11663 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11664 hard_links=yes
11665 $rm conftest*
11666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11667 touch conftest.a
11668 ln conftest.a conftest.b 2>&5 || hard_links=no
11669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11670 echo "$as_me:$LINENO: result: $hard_links" >&5
11671 echo "${ECHO_T}$hard_links" >&6
11672 if test "$hard_links" = no; then
11673 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11674 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11675 need_locks=warn
11676 fi
11677 else
11678 need_locks=no
11679 fi
11680
11681 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11682 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11683
11684 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11685 case $host_os in
11686 aix4* | aix5*)
11687 # If we're using GNU nm, then we don't want the "-C" option.
11688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11689 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11690 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11691 else
11692 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11693 fi
11694 ;;
11695 pw32*)
11696 export_symbols_cmds_CXX="$ltdll_cmds"
11697 ;;
11698 cygwin* | mingw*)
11699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11700 ;;
11701 linux*)
11702 link_all_deplibs_CXX=no
11703 ;;
11704 *)
11705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11706 ;;
11707 esac
11708
11709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11710 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11711 test "$ld_shlibs_CXX" = no && can_build_shared=no
11712
11713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11714 if test "$GCC" = yes; then
11715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11716 fi
11717
11718 #
11719 # Do we need to explicitly link libc?
11720 #
11721 case "x$archive_cmds_need_lc_CXX" in
11722 x|xyes)
11723 # Assume -lc should be added
11724 archive_cmds_need_lc_CXX=yes
11725
11726 if test "$enable_shared" = yes && test "$GCC" = yes; then
11727 case $archive_cmds_CXX in
11728 *'~'*)
11729 # FIXME: we may have to deal with multi-command sequences.
11730 ;;
11731 '$CC '*)
11732 # Test whether the compiler implicitly links with -lc since on some
11733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11734 # to ld, don't add -lc before -lgcc.
11735 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11736 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11737 $rm conftest*
11738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11739
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } 2>conftest.err; then
11745 soname=conftest
11746 lib=conftest
11747 libobjs=conftest.$ac_objext
11748 deplibs=
11749 wl=$lt_prog_compiler_wl_CXX
11750 compiler_flags=-v
11751 linker_flags=-v
11752 verstring=
11753 output_objdir=.
11754 libname=conftest
11755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11756 allow_undefined_flag_CXX=
11757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11758 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }
11762 then
11763 archive_cmds_need_lc_CXX=no
11764 else
11765 archive_cmds_need_lc_CXX=yes
11766 fi
11767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11768 else
11769 cat conftest.err 1>&5
11770 fi
11771 $rm conftest*
11772 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11773 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11774 ;;
11775 esac
11776 fi
11777 ;;
11778 esac
11779
11780 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11782 library_names_spec=
11783 libname_spec='lib$name'
11784 soname_spec=
11785 shrext_cmds=".so"
11786 postinstall_cmds=
11787 postuninstall_cmds=
11788 finish_cmds=
11789 finish_eval=
11790 shlibpath_var=
11791 shlibpath_overrides_runpath=unknown
11792 version_type=none
11793 dynamic_linker="$host_os ld.so"
11794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11795 if test "$GCC" = yes; then
11796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11798 # if the path contains ";" then we assume it to be the separator
11799 # otherwise default to the standard path separator (i.e. ":") - it is
11800 # assumed that no part of a normal pathname contains ";" but that should
11801 # okay in the real world where ";" in dirpaths is itself problematic.
11802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11803 else
11804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11805 fi
11806 else
11807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11808 fi
11809 need_lib_prefix=unknown
11810 hardcode_into_libs=no
11811
11812 # when you set need_version to no, make sure it does not cause -set_version
11813 # flags to be left without arguments
11814 need_version=unknown
11815
11816 case $host_os in
11817 aix3*)
11818 version_type=linux
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11820 shlibpath_var=LIBPATH
11821
11822 # AIX 3 has no versioning support, so we append a major version to the name.
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 ;;
11825
11826 aix4* | aix5*)
11827 version_type=linux
11828 need_lib_prefix=no
11829 need_version=no
11830 hardcode_into_libs=yes
11831 if test "$host_cpu" = ia64; then
11832 # AIX 5 supports IA64
11833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 else
11836 # With GCC up to 2.95.x, collect2 would create an import file
11837 # for dependence libraries. The import file would start with
11838 # the line `#! .'. This would cause the generated library to
11839 # depend on `.', always an invalid library. This was fixed in
11840 # development snapshots of GCC prior to 3.0.
11841 case $host_os in
11842 aix4 | aix4.[01] | aix4.[01].*)
11843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11844 echo ' yes '
11845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11846 :
11847 else
11848 can_build_shared=no
11849 fi
11850 ;;
11851 esac
11852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11853 # soname into executable. Probably we can add versioning support to
11854 # collect2, so additional links can be useful in future.
11855 if test "$aix_use_runtimelinking" = yes; then
11856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11857 # instead of lib<name>.a to let people know that these are not
11858 # typical AIX shared libraries.
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 else
11861 # We preserve .a as extension for shared libraries through AIX4.2
11862 # and later when we are not doing run time linking.
11863 library_names_spec='${libname}${release}.a $libname.a'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 fi
11866 shlibpath_var=LIBPATH
11867 fi
11868 ;;
11869
11870 amigaos*)
11871 library_names_spec='$libname.ixlibrary $libname.a'
11872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11873 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'
11874 ;;
11875
11876 beos*)
11877 library_names_spec='${libname}${shared_ext}'
11878 dynamic_linker="$host_os ld.so"
11879 shlibpath_var=LIBRARY_PATH
11880 ;;
11881
11882 bsdi4*)
11883 version_type=linux
11884 need_version=no
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11891 # the default ld.so.conf also contains /usr/contrib/lib and
11892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11893 # libtool to hard-code these into programs
11894 ;;
11895
11896 cygwin* | mingw* | pw32*)
11897 version_type=windows
11898 shrext_cmds=".dll"
11899 need_version=no
11900 need_lib_prefix=no
11901
11902 case $GCC,$host_os in
11903 yes,cygwin* | yes,mingw* | yes,pw32*)
11904 library_names_spec='$libname.dll.a'
11905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11906 postinstall_cmds='base_file=`basename \${file}`~
11907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11908 dldir=$destdir/`dirname \$dlpath`~
11909 test -d \$dldir || mkdir -p \$dldir~
11910 $install_prog $dir/$dlname \$dldir/$dlname'
11911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912 dlpath=$dir/\$dldll~
11913 $rm \$dlpath'
11914 shlibpath_overrides_runpath=yes
11915
11916 case $host_os in
11917 cygwin*)
11918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11921 ;;
11922 mingw*)
11923 # MinGW DLLs use traditional 'lib' prefix
11924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11927 # It is most probably a Windows format PATH printed by
11928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11929 # path with ; separators, and with drive letters. We can handle the
11930 # drive letters (cygwin fileutils understands them), so leave them,
11931 # especially as we might pass files found there to a mingw objdump,
11932 # which wouldn't understand a cygwinified path. Ahh.
11933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11934 else
11935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11936 fi
11937 ;;
11938 pw32*)
11939 # pw32 DLLs use 'pw' prefix rather than 'lib'
11940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11941 ;;
11942 esac
11943 ;;
11944
11945 *)
11946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11947 ;;
11948 esac
11949 dynamic_linker='Win32 ld.exe'
11950 # FIXME: first we should search . and the directory the executable is in
11951 shlibpath_var=PATH
11952 ;;
11953
11954 darwin* | rhapsody*)
11955 dynamic_linker="$host_os dyld"
11956 version_type=darwin
11957 need_lib_prefix=no
11958 need_version=no
11959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11960 soname_spec='${libname}${release}${major}$shared_ext'
11961 shlibpath_overrides_runpath=yes
11962 shlibpath_var=DYLD_LIBRARY_PATH
11963 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11965 if test "$GCC" = yes; then
11966 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11967 else
11968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11969 fi
11970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11971 ;;
11972
11973 dgux*)
11974 version_type=linux
11975 need_lib_prefix=no
11976 need_version=no
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11978 soname_spec='${libname}${release}${shared_ext}$major'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 ;;
11981
11982 freebsd1*)
11983 dynamic_linker=no
11984 ;;
11985
11986 kfreebsd*-gnu)
11987 version_type=linux
11988 need_lib_prefix=no
11989 need_version=no
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=no
11994 hardcode_into_libs=yes
11995 dynamic_linker='GNU ld.so'
11996 ;;
11997
11998 freebsd*)
11999 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12000 version_type=freebsd-$objformat
12001 case $version_type in
12002 freebsd-elf*)
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12004 need_version=no
12005 need_lib_prefix=no
12006 ;;
12007 freebsd-*)
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12009 need_version=yes
12010 ;;
12011 esac
12012 shlibpath_var=LD_LIBRARY_PATH
12013 case $host_os in
12014 freebsd2*)
12015 shlibpath_overrides_runpath=yes
12016 ;;
12017 freebsd3.01* | freebsdelf3.01*)
12018 shlibpath_overrides_runpath=yes
12019 hardcode_into_libs=yes
12020 ;;
12021 *) # from 3.2 on
12022 shlibpath_overrides_runpath=no
12023 hardcode_into_libs=yes
12024 ;;
12025 esac
12026 ;;
12027
12028 gnu*)
12029 version_type=linux
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 hardcode_into_libs=yes
12036 ;;
12037
12038 hpux9* | hpux10* | hpux11*)
12039 # Give a soname corresponding to the major version so that dld.sl refuses to
12040 # link against other versions.
12041 version_type=sunos
12042 need_lib_prefix=no
12043 need_version=no
12044 case "$host_cpu" in
12045 ia64*)
12046 shrext_cmds='.so'
12047 hardcode_into_libs=yes
12048 dynamic_linker="$host_os dld.so"
12049 shlibpath_var=LD_LIBRARY_PATH
12050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052 soname_spec='${libname}${release}${shared_ext}$major'
12053 if test "X$HPUX_IA64_MODE" = X32; then
12054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12055 else
12056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12057 fi
12058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 ;;
12060 hppa*64*)
12061 shrext_cmds='.sl'
12062 hardcode_into_libs=yes
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070 ;;
12071 *)
12072 shrext_cmds='.sl'
12073 dynamic_linker="$host_os dld.sl"
12074 shlibpath_var=SHLIB_PATH
12075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 ;;
12079 esac
12080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12081 postinstall_cmds='chmod 555 $lib'
12082 ;;
12083
12084 irix5* | irix6* | nonstopux*)
12085 case $host_os in
12086 nonstopux*) version_type=nonstopux ;;
12087 *)
12088 if test "$lt_cv_prog_gnu_ld" = yes; then
12089 version_type=linux
12090 else
12091 version_type=irix
12092 fi ;;
12093 esac
12094 need_lib_prefix=no
12095 need_version=no
12096 soname_spec='${libname}${release}${shared_ext}$major'
12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12098 case $host_os in
12099 irix5* | nonstopux*)
12100 libsuff= shlibsuff=
12101 ;;
12102 *)
12103 case $LD in # libtool.m4 will add one of these switches to LD
12104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105 libsuff= shlibsuff= libmagic=32-bit;;
12106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107 libsuff=32 shlibsuff=N32 libmagic=N32;;
12108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110 *) libsuff= shlibsuff= libmagic=never-match;;
12111 esac
12112 ;;
12113 esac
12114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115 shlibpath_overrides_runpath=no
12116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12118 hardcode_into_libs=yes
12119 ;;
12120
12121 # No shared lib support for Linux oldld, aout, or coff.
12122 linux*oldld* | linux*aout* | linux*coff*)
12123 dynamic_linker=no
12124 ;;
12125
12126 # This must be Linux ELF.
12127 linux*)
12128 version_type=linux
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132 soname_spec='${libname}${release}${shared_ext}$major'
12133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=no
12136 # This implies no fast_install, which is unacceptable.
12137 # Some rework will be needed to allow for fast_install
12138 # before this can be enabled.
12139 hardcode_into_libs=yes
12140
12141 # Append ld.so.conf contents to the search path
12142 if test -f /etc/ld.so.conf; then
12143 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12145 fi
12146
12147 # We used to test for /lib/ld.so.1 and disable shared libraries on
12148 # powerpc, because MkLinux only supported shared libraries with the
12149 # GNU dynamic linker. Since this was broken with cross compilers,
12150 # most powerpc-linux boxes support dynamic linking these days and
12151 # people can always --disable-shared, the test was removed, and we
12152 # assume the GNU/Linux dynamic linker is in use.
12153 dynamic_linker='GNU/Linux ld.so'
12154 ;;
12155
12156 knetbsd*-gnu)
12157 version_type=linux
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=no
12164 hardcode_into_libs=yes
12165 dynamic_linker='GNU ld.so'
12166 ;;
12167
12168 netbsd*)
12169 version_type=sunos
12170 need_lib_prefix=no
12171 need_version=no
12172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12175 dynamic_linker='NetBSD (a.out) ld.so'
12176 else
12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12178 soname_spec='${libname}${release}${shared_ext}$major'
12179 dynamic_linker='NetBSD ld.elf_so'
12180 fi
12181 shlibpath_var=LD_LIBRARY_PATH
12182 shlibpath_overrides_runpath=yes
12183 hardcode_into_libs=yes
12184 ;;
12185
12186 newsos6)
12187 version_type=linux
12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=yes
12191 ;;
12192
12193 nto-qnx*)
12194 version_type=linux
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201 ;;
12202
12203 openbsd*)
12204 version_type=sunos
12205 need_lib_prefix=no
12206 need_version=yes
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12211 case $host_os in
12212 openbsd2.[89] | openbsd2.[89].*)
12213 shlibpath_overrides_runpath=no
12214 ;;
12215 *)
12216 shlibpath_overrides_runpath=yes
12217 ;;
12218 esac
12219 else
12220 shlibpath_overrides_runpath=yes
12221 fi
12222 ;;
12223
12224 os2*)
12225 libname_spec='$name'
12226 shrext_cmds=".dll"
12227 need_lib_prefix=no
12228 library_names_spec='$libname${shared_ext} $libname.a'
12229 dynamic_linker='OS/2 ld.exe'
12230 shlibpath_var=LIBPATH
12231 ;;
12232
12233 osf3* | osf4* | osf5*)
12234 version_type=osf
12235 need_lib_prefix=no
12236 need_version=no
12237 soname_spec='${libname}${release}${shared_ext}$major'
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12242 ;;
12243
12244 sco3.2v5*)
12245 version_type=osf
12246 soname_spec='${libname}${release}${shared_ext}$major'
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 ;;
12250
12251 solaris*)
12252 version_type=linux
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256 soname_spec='${libname}${release}${shared_ext}$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=yes
12259 hardcode_into_libs=yes
12260 # ldd complains unless libraries are executable
12261 postinstall_cmds='chmod +x $lib'
12262 ;;
12263
12264 sunos4*)
12265 version_type=sunos
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
12270 if test "$with_gnu_ld" = yes; then
12271 need_lib_prefix=no
12272 fi
12273 need_version=yes
12274 ;;
12275
12276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12277 version_type=linux
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 case $host_vendor in
12282 sni)
12283 shlibpath_overrides_runpath=no
12284 need_lib_prefix=no
12285 export_dynamic_flag_spec='${wl}-Blargedynsym'
12286 runpath_var=LD_RUN_PATH
12287 ;;
12288 siemens)
12289 need_lib_prefix=no
12290 ;;
12291 motorola)
12292 need_lib_prefix=no
12293 need_version=no
12294 shlibpath_overrides_runpath=no
12295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12296 ;;
12297 esac
12298 ;;
12299
12300 sysv4*MP*)
12301 if test -d /usr/nec ;then
12302 version_type=linux
12303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12304 soname_spec='$libname${shared_ext}.$major'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 fi
12307 ;;
12308
12309 uts4*)
12310 version_type=linux
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 ;;
12315
12316 *)
12317 dynamic_linker=no
12318 ;;
12319 esac
12320 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12321 echo "${ECHO_T}$dynamic_linker" >&6
12322 test "$dynamic_linker" = no && can_build_shared=no
12323
12324 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12326 hardcode_action_CXX=
12327 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12328 test -n "$runpath_var CXX" || \
12329 test "X$hardcode_automatic_CXX"="Xyes" ; then
12330
12331 # We can hardcode non-existant directories.
12332 if test "$hardcode_direct_CXX" != no &&
12333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12334 # have to relink, otherwise we might link with an installed library
12335 # when we should be linking with a yet-to-be-installed one
12336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12337 test "$hardcode_minus_L_CXX" != no; then
12338 # Linking always hardcodes the temporary library directory.
12339 hardcode_action_CXX=relink
12340 else
12341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12342 hardcode_action_CXX=immediate
12343 fi
12344 else
12345 # We cannot hardcode anything, or else we can only hardcode existing
12346 # directories.
12347 hardcode_action_CXX=unsupported
12348 fi
12349 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12350 echo "${ECHO_T}$hardcode_action_CXX" >&6
12351
12352 if test "$hardcode_action_CXX" = relink; then
12353 # Fast installation is not supported
12354 enable_fast_install=no
12355 elif test "$shlibpath_overrides_runpath" = yes ||
12356 test "$enable_shared" = no; then
12357 # Fast installation is not necessary
12358 enable_fast_install=needless
12359 fi
12360
12361 striplib=
12362 old_striplib=
12363 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12364 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12368 echo "$as_me:$LINENO: result: yes" >&5
12369 echo "${ECHO_T}yes" >&6
12370 else
12371 # FIXME - insert some real tests, host_os isn't really good enough
12372 case $host_os in
12373 darwin*)
12374 if test -n "$STRIP" ; then
12375 striplib="$STRIP -x"
12376 echo "$as_me:$LINENO: result: yes" >&5
12377 echo "${ECHO_T}yes" >&6
12378 else
12379 echo "$as_me:$LINENO: result: no" >&5
12380 echo "${ECHO_T}no" >&6
12381 fi
12382 ;;
12383 *)
12384 echo "$as_me:$LINENO: result: no" >&5
12385 echo "${ECHO_T}no" >&6
12386 ;;
12387 esac
12388 fi
12389
12390 if test "x$enable_dlopen" != xyes; then
12391 enable_dlopen=unknown
12392 enable_dlopen_self=unknown
12393 enable_dlopen_self_static=unknown
12394 else
12395 lt_cv_dlopen=no
12396 lt_cv_dlopen_libs=
12397
12398 case $host_os in
12399 beos*)
12400 lt_cv_dlopen="load_add_on"
12401 lt_cv_dlopen_libs=
12402 lt_cv_dlopen_self=yes
12403 ;;
12404
12405 mingw* | pw32*)
12406 lt_cv_dlopen="LoadLibrary"
12407 lt_cv_dlopen_libs=
12408 ;;
12409
12410 cygwin*)
12411 lt_cv_dlopen="dlopen"
12412 lt_cv_dlopen_libs=
12413 ;;
12414
12415 darwin*)
12416 # if libdl is installed we need to link against it
12417 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12418 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 ac_check_lib_save_LIBS=$LIBS
12423 LIBS="-ldl $LIBS"
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430
12431 /* Override any gcc2 internal prototype to avoid an error. */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12437 char dlopen ();
12438 int
12439 main ()
12440 {
12441 dlopen ();
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_dl_dlopen=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lib_dl_dlopen=no
12473 fi
12474 rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12477 fi
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12480 if test $ac_cv_lib_dl_dlopen = yes; then
12481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12482 else
12483
12484 lt_cv_dlopen="dyld"
12485 lt_cv_dlopen_libs=
12486 lt_cv_dlopen_self=yes
12487
12488 fi
12489
12490 ;;
12491
12492 *)
12493 echo "$as_me:$LINENO: checking for shl_load" >&5
12494 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12495 if test "${ac_cv_func_shl_load+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h. */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12506 #define shl_load innocuous_shl_load
12507
12508 /* System header to define __stub macros and hopefully few prototypes,
12509 which can conflict with char shl_load (); below.
12510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12511 <limits.h> exists even on freestanding compilers. */
12512
12513 #ifdef __STDC__
12514 # include <limits.h>
12515 #else
12516 # include <assert.h>
12517 #endif
12518
12519 #undef shl_load
12520
12521 /* Override any gcc2 internal prototype to avoid an error. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 {
12525 #endif
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12528 char shl_load ();
12529 /* The GNU C library defines this for functions which it implements
12530 to always fail with ENOSYS. Some functions are actually named
12531 something starting with __ and the normal name is an alias. */
12532 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12533 choke me
12534 #else
12535 char (*f) () = shl_load;
12536 #endif
12537 #ifdef __cplusplus
12538 }
12539 #endif
12540
12541 int
12542 main ()
12543 {
12544 return f != shl_load;
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 ac_cv_func_shl_load=yes
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575 ac_cv_func_shl_load=no
12576 fi
12577 rm -f conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 fi
12580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12582 if test $ac_cv_func_shl_load = yes; then
12583 lt_cv_dlopen="shl_load"
12584 else
12585 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12586 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12587 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590 ac_check_lib_save_LIBS=$LIBS
12591 LIBS="-ldld $LIBS"
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598
12599 /* Override any gcc2 internal prototype to avoid an error. */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 /* We use char because int might match the return type of a gcc2
12604 builtin and then its argument prototype would still apply. */
12605 char shl_load ();
12606 int
12607 main ()
12608 {
12609 shl_load ();
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616 (eval $ac_link) 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest$ac_exeext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 ac_cv_lib_dld_shl_load=yes
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ac_cv_lib_dld_shl_load=no
12641 fi
12642 rm -f conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12647 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12648 if test $ac_cv_lib_dld_shl_load = yes; then
12649 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12650 else
12651 echo "$as_me:$LINENO: checking for dlopen" >&5
12652 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12653 if test "${ac_cv_func_dlopen+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12664 #define dlopen innocuous_dlopen
12665
12666 /* System header to define __stub macros and hopefully few prototypes,
12667 which can conflict with char dlopen (); below.
12668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12669 <limits.h> exists even on freestanding compilers. */
12670
12671 #ifdef __STDC__
12672 # include <limits.h>
12673 #else
12674 # include <assert.h>
12675 #endif
12676
12677 #undef dlopen
12678
12679 /* Override any gcc2 internal prototype to avoid an error. */
12680 #ifdef __cplusplus
12681 extern "C"
12682 {
12683 #endif
12684 /* We use char because int might match the return type of a gcc2
12685 builtin and then its argument prototype would still apply. */
12686 char dlopen ();
12687 /* The GNU C library defines this for functions which it implements
12688 to always fail with ENOSYS. Some functions are actually named
12689 something starting with __ and the normal name is an alias. */
12690 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12691 choke me
12692 #else
12693 char (*f) () = dlopen;
12694 #endif
12695 #ifdef __cplusplus
12696 }
12697 #endif
12698
12699 int
12700 main ()
12701 {
12702 return f != dlopen;
12703 ;
12704 return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12709 (eval $ac_link) 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest$ac_exeext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_func_dlopen=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_cv_func_dlopen=no
12734 fi
12735 rm -f conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 fi
12738 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12739 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12740 if test $ac_cv_func_dlopen = yes; then
12741 lt_cv_dlopen="dlopen"
12742 else
12743 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748 ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-ldl $LIBS"
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756
12757 /* Override any gcc2 internal prototype to avoid an error. */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 /* We use char because int might match the return type of a gcc2
12762 builtin and then its argument prototype would still apply. */
12763 char dlopen ();
12764 int
12765 main ()
12766 {
12767 dlopen ();
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_lib_dl_dlopen=yes
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 ac_cv_lib_dl_dlopen=no
12799 fi
12800 rm -f conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12805 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12806 if test $ac_cv_lib_dl_dlopen = yes; then
12807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12808 else
12809 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12810 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814 ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-lsvld $LIBS"
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822
12823 /* Override any gcc2 internal prototype to avoid an error. */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char dlopen ();
12830 int
12831 main ()
12832 {
12833 dlopen ();
12834 ;
12835 return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_lib_svld_dlopen=yes
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 ac_cv_lib_svld_dlopen=no
12865 fi
12866 rm -f conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12871 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12872 if test $ac_cv_lib_svld_dlopen = yes; then
12873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12874 else
12875 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12876 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880 ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-ldld $LIBS"
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h. */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888
12889 /* Override any gcc2 internal prototype to avoid an error. */
12890 #ifdef __cplusplus
12891 extern "C"
12892 #endif
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895 char dld_link ();
12896 int
12897 main ()
12898 {
12899 dld_link ();
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_lib_dld_dld_link=yes
12926 else
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_cv_lib_dld_dld_link=no
12931 fi
12932 rm -f conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12935 fi
12936 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12937 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12938 if test $ac_cv_lib_dld_dld_link = yes; then
12939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12940 fi
12941
12942
12943 fi
12944
12945
12946 fi
12947
12948
12949 fi
12950
12951
12952 fi
12953
12954
12955 fi
12956
12957 ;;
12958 esac
12959
12960 if test "x$lt_cv_dlopen" != xno; then
12961 enable_dlopen=yes
12962 else
12963 enable_dlopen=no
12964 fi
12965
12966 case $lt_cv_dlopen in
12967 dlopen)
12968 save_CPPFLAGS="$CPPFLAGS"
12969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12970
12971 save_LDFLAGS="$LDFLAGS"
12972 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12973
12974 save_LIBS="$LIBS"
12975 LIBS="$lt_cv_dlopen_libs $LIBS"
12976
12977 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12978 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12979 if test "${lt_cv_dlopen_self+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 if test "$cross_compiling" = yes; then :
12983 lt_cv_dlopen_self=cross
12984 else
12985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12986 lt_status=$lt_dlunknown
12987 cat > conftest.$ac_ext <<EOF
12988 #line 12988 "configure"
12989 #include "confdefs.h"
12990
12991 #if HAVE_DLFCN_H
12992 #include <dlfcn.h>
12993 #endif
12994
12995 #include <stdio.h>
12996
12997 #ifdef RTLD_GLOBAL
12998 # define LT_DLGLOBAL RTLD_GLOBAL
12999 #else
13000 # ifdef DL_GLOBAL
13001 # define LT_DLGLOBAL DL_GLOBAL
13002 # else
13003 # define LT_DLGLOBAL 0
13004 # endif
13005 #endif
13006
13007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13008 find out it does not work in some platform. */
13009 #ifndef LT_DLLAZY_OR_NOW
13010 # ifdef RTLD_LAZY
13011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13012 # else
13013 # ifdef DL_LAZY
13014 # define LT_DLLAZY_OR_NOW DL_LAZY
13015 # else
13016 # ifdef RTLD_NOW
13017 # define LT_DLLAZY_OR_NOW RTLD_NOW
13018 # else
13019 # ifdef DL_NOW
13020 # define LT_DLLAZY_OR_NOW DL_NOW
13021 # else
13022 # define LT_DLLAZY_OR_NOW 0
13023 # endif
13024 # endif
13025 # endif
13026 # endif
13027 #endif
13028
13029 #ifdef __cplusplus
13030 extern "C" void exit (int);
13031 #endif
13032
13033 void fnord() { int i=42;}
13034 int main ()
13035 {
13036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13037 int status = $lt_dlunknown;
13038
13039 if (self)
13040 {
13041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13042 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13043 /* dlclose (self); */
13044 }
13045
13046 exit (status);
13047 }
13048 EOF
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13054 (./conftest; exit; ) 2>/dev/null
13055 lt_status=$?
13056 case x$lt_status in
13057 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13058 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13059 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13060 esac
13061 else :
13062 # compilation failed
13063 lt_cv_dlopen_self=no
13064 fi
13065 fi
13066 rm -fr conftest*
13067
13068
13069 fi
13070 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13071 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13072
13073 if test "x$lt_cv_dlopen_self" = xyes; then
13074 LDFLAGS="$LDFLAGS $link_static_flag"
13075 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13076 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13077 if test "${lt_cv_dlopen_self_static+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 if test "$cross_compiling" = yes; then :
13081 lt_cv_dlopen_self_static=cross
13082 else
13083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13084 lt_status=$lt_dlunknown
13085 cat > conftest.$ac_ext <<EOF
13086 #line 13086 "configure"
13087 #include "confdefs.h"
13088
13089 #if HAVE_DLFCN_H
13090 #include <dlfcn.h>
13091 #endif
13092
13093 #include <stdio.h>
13094
13095 #ifdef RTLD_GLOBAL
13096 # define LT_DLGLOBAL RTLD_GLOBAL
13097 #else
13098 # ifdef DL_GLOBAL
13099 # define LT_DLGLOBAL DL_GLOBAL
13100 # else
13101 # define LT_DLGLOBAL 0
13102 # endif
13103 #endif
13104
13105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13106 find out it does not work in some platform. */
13107 #ifndef LT_DLLAZY_OR_NOW
13108 # ifdef RTLD_LAZY
13109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13110 # else
13111 # ifdef DL_LAZY
13112 # define LT_DLLAZY_OR_NOW DL_LAZY
13113 # else
13114 # ifdef RTLD_NOW
13115 # define LT_DLLAZY_OR_NOW RTLD_NOW
13116 # else
13117 # ifdef DL_NOW
13118 # define LT_DLLAZY_OR_NOW DL_NOW
13119 # else
13120 # define LT_DLLAZY_OR_NOW 0
13121 # endif
13122 # endif
13123 # endif
13124 # endif
13125 #endif
13126
13127 #ifdef __cplusplus
13128 extern "C" void exit (int);
13129 #endif
13130
13131 void fnord() { int i=42;}
13132 int main ()
13133 {
13134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13135 int status = $lt_dlunknown;
13136
13137 if (self)
13138 {
13139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13141 /* dlclose (self); */
13142 }
13143
13144 exit (status);
13145 }
13146 EOF
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13152 (./conftest; exit; ) 2>/dev/null
13153 lt_status=$?
13154 case x$lt_status in
13155 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13156 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13157 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13158 esac
13159 else :
13160 # compilation failed
13161 lt_cv_dlopen_self_static=no
13162 fi
13163 fi
13164 rm -fr conftest*
13165
13166
13167 fi
13168 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13169 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13170 fi
13171
13172 CPPFLAGS="$save_CPPFLAGS"
13173 LDFLAGS="$save_LDFLAGS"
13174 LIBS="$save_LIBS"
13175 ;;
13176 esac
13177
13178 case $lt_cv_dlopen_self in
13179 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13180 *) enable_dlopen_self=unknown ;;
13181 esac
13182
13183 case $lt_cv_dlopen_self_static in
13184 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13185 *) enable_dlopen_self_static=unknown ;;
13186 esac
13187 fi
13188
13189
13190 # The else clause should only fire when bootstrapping the
13191 # libtool distribution, otherwise you forgot to ship ltmain.sh
13192 # with your package, and you will get complaints that there are
13193 # no rules to generate ltmain.sh.
13194 if test -f "$ltmain"; then
13195 # See if we are running on zsh, and set the options which allow our commands through
13196 # without removal of \ escapes.
13197 if test -n "${ZSH_VERSION+set}" ; then
13198 setopt NO_GLOB_SUBST
13199 fi
13200 # Now quote all the things that may contain metacharacters while being
13201 # careful not to overquote the AC_SUBSTed values. We take copies of the
13202 # variables and quote the copies for generation of the libtool script.
13203 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13204 SED SHELL STRIP \
13205 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13206 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13207 deplibs_check_method reload_flag reload_cmds need_locks \
13208 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13209 lt_cv_sys_global_symbol_to_c_name_address \
13210 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13211 old_postinstall_cmds old_postuninstall_cmds \
13212 compiler_CXX \
13213 CC_CXX \
13214 LD_CXX \
13215 lt_prog_compiler_wl_CXX \
13216 lt_prog_compiler_pic_CXX \
13217 lt_prog_compiler_static_CXX \
13218 lt_prog_compiler_no_builtin_flag_CXX \
13219 export_dynamic_flag_spec_CXX \
13220 thread_safe_flag_spec_CXX \
13221 whole_archive_flag_spec_CXX \
13222 enable_shared_with_static_runtimes_CXX \
13223 old_archive_cmds_CXX \
13224 old_archive_from_new_cmds_CXX \
13225 predep_objects_CXX \
13226 postdep_objects_CXX \
13227 predeps_CXX \
13228 postdeps_CXX \
13229 compiler_lib_search_path_CXX \
13230 archive_cmds_CXX \
13231 archive_expsym_cmds_CXX \
13232 postinstall_cmds_CXX \
13233 postuninstall_cmds_CXX \
13234 old_archive_from_expsyms_cmds_CXX \
13235 allow_undefined_flag_CXX \
13236 no_undefined_flag_CXX \
13237 export_symbols_cmds_CXX \
13238 hardcode_libdir_flag_spec_CXX \
13239 hardcode_libdir_flag_spec_ld_CXX \
13240 hardcode_libdir_separator_CXX \
13241 hardcode_automatic_CXX \
13242 module_cmds_CXX \
13243 module_expsym_cmds_CXX \
13244 lt_cv_prog_compiler_c_o_CXX \
13245 exclude_expsyms_CXX \
13246 include_expsyms_CXX; do
13247
13248 case $var in
13249 old_archive_cmds_CXX | \
13250 old_archive_from_new_cmds_CXX | \
13251 archive_cmds_CXX | \
13252 archive_expsym_cmds_CXX | \
13253 module_cmds_CXX | \
13254 module_expsym_cmds_CXX | \
13255 old_archive_from_expsyms_cmds_CXX | \
13256 export_symbols_cmds_CXX | \
13257 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13258 postinstall_cmds | postuninstall_cmds | \
13259 old_postinstall_cmds | old_postuninstall_cmds | \
13260 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13261 # Double-quote double-evaled strings.
13262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13263 ;;
13264 *)
13265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13266 ;;
13267 esac
13268 done
13269
13270 case $lt_echo in
13271 *'\$0 --fallback-echo"')
13272 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13273 ;;
13274 esac
13275
13276 cfgfile="$ofile"
13277
13278 cat <<__EOF__ >> "$cfgfile"
13279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13280
13281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13282
13283 # Shell to use when invoking shell scripts.
13284 SHELL=$lt_SHELL
13285
13286 # Whether or not to build shared libraries.
13287 build_libtool_libs=$enable_shared
13288
13289 # Whether or not to build static libraries.
13290 build_old_libs=$enable_static
13291
13292 # Whether or not to add -lc for building shared libraries.
13293 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13294
13295 # Whether or not to disallow shared libs when runtime libs are static
13296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13297
13298 # Whether or not to optimize for fast installation.
13299 fast_install=$enable_fast_install
13300
13301 # The host system.
13302 host_alias=$host_alias
13303 host=$host
13304
13305 # An echo program that does not interpret backslashes.
13306 echo=$lt_echo
13307
13308 # The archiver.
13309 AR=$lt_AR
13310 AR_FLAGS=$lt_AR_FLAGS
13311
13312 # A C compiler.
13313 LTCC=$lt_LTCC
13314
13315 # A language-specific compiler.
13316 CC=$lt_compiler_CXX
13317
13318 # Is the compiler the GNU C compiler?
13319 with_gcc=$GCC_CXX
13320
13321 # An ERE matcher.
13322 EGREP=$lt_EGREP
13323
13324 # The linker used to build libraries.
13325 LD=$lt_LD_CXX
13326
13327 # Whether we need hard or soft links.
13328 LN_S=$lt_LN_S
13329
13330 # A BSD-compatible nm program.
13331 NM=$lt_NM
13332
13333 # A symbol stripping program
13334 STRIP=$lt_STRIP
13335
13336 # Used to examine libraries when file_magic_cmd begins "file"
13337 MAGIC_CMD=$MAGIC_CMD
13338
13339 # Used on cygwin: DLL creation program.
13340 DLLTOOL="$DLLTOOL"
13341
13342 # Used on cygwin: object dumper.
13343 OBJDUMP="$OBJDUMP"
13344
13345 # Used on cygwin: assembler.
13346 AS="$AS"
13347
13348 # The name of the directory that contains temporary libtool files.
13349 objdir=$objdir
13350
13351 # How to create reloadable object files.
13352 reload_flag=$lt_reload_flag
13353 reload_cmds=$lt_reload_cmds
13354
13355 # How to pass a linker flag through the compiler.
13356 wl=$lt_lt_prog_compiler_wl_CXX
13357
13358 # Object file suffix (normally "o").
13359 objext="$ac_objext"
13360
13361 # Old archive suffix (normally "a").
13362 libext="$libext"
13363
13364 # Shared library suffix (normally ".so").
13365 shrext_cmds='$shrext_cmds'
13366
13367 # Executable file suffix (normally "").
13368 exeext="$exeext"
13369
13370 # Additional compiler flags for building library objects.
13371 pic_flag=$lt_lt_prog_compiler_pic_CXX
13372 pic_mode=$pic_mode
13373
13374 # What is the maximum length of a command?
13375 max_cmd_len=$lt_cv_sys_max_cmd_len
13376
13377 # Does compiler simultaneously support -c and -o options?
13378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13379
13380 # Must we lock files when doing compilation ?
13381 need_locks=$lt_need_locks
13382
13383 # Do we need the lib prefix for modules?
13384 need_lib_prefix=$need_lib_prefix
13385
13386 # Do we need a version for libraries?
13387 need_version=$need_version
13388
13389 # Whether dlopen is supported.
13390 dlopen_support=$enable_dlopen
13391
13392 # Whether dlopen of programs is supported.
13393 dlopen_self=$enable_dlopen_self
13394
13395 # Whether dlopen of statically linked programs is supported.
13396 dlopen_self_static=$enable_dlopen_self_static
13397
13398 # Compiler flag to prevent dynamic linking.
13399 link_static_flag=$lt_lt_prog_compiler_static_CXX
13400
13401 # Compiler flag to turn off builtin functions.
13402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13403
13404 # Compiler flag to allow reflexive dlopens.
13405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13406
13407 # Compiler flag to generate shared objects directly from archives.
13408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13409
13410 # Compiler flag to generate thread-safe objects.
13411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13412
13413 # Library versioning type.
13414 version_type=$version_type
13415
13416 # Format of library name prefix.
13417 libname_spec=$lt_libname_spec
13418
13419 # List of archive names. First name is the real one, the rest are links.
13420 # The last name is the one that the linker finds with -lNAME.
13421 library_names_spec=$lt_library_names_spec
13422
13423 # The coded name of the library, if different from the real name.
13424 soname_spec=$lt_soname_spec
13425
13426 # Commands used to build and install an old-style archive.
13427 RANLIB=$lt_RANLIB
13428 old_archive_cmds=$lt_old_archive_cmds_CXX
13429 old_postinstall_cmds=$lt_old_postinstall_cmds
13430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13431
13432 # Create an old-style archive from a shared archive.
13433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13434
13435 # Create a temporary old-style archive to link instead of a shared archive.
13436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13437
13438 # Commands used to build and install a shared archive.
13439 archive_cmds=$lt_archive_cmds_CXX
13440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13441 postinstall_cmds=$lt_postinstall_cmds
13442 postuninstall_cmds=$lt_postuninstall_cmds
13443
13444 # Commands used to build a loadable module (assumed same as above if empty)
13445 module_cmds=$lt_module_cmds_CXX
13446 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13447
13448 # Commands to strip libraries.
13449 old_striplib=$lt_old_striplib
13450 striplib=$lt_striplib
13451
13452 # Dependencies to place before the objects being linked to create a
13453 # shared library.
13454 predep_objects=$lt_predep_objects_CXX
13455
13456 # Dependencies to place after the objects being linked to create a
13457 # shared library.
13458 postdep_objects=$lt_postdep_objects_CXX
13459
13460 # Dependencies to place before the objects being linked to create a
13461 # shared library.
13462 predeps=$lt_predeps_CXX
13463
13464 # Dependencies to place after the objects being linked to create a
13465 # shared library.
13466 postdeps=$lt_postdeps_CXX
13467
13468 # The library search path used internally by the compiler when linking
13469 # a shared library.
13470 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13471
13472 # Method to check whether dependent libraries are shared objects.
13473 deplibs_check_method=$lt_deplibs_check_method
13474
13475 # Command to use when deplibs_check_method == file_magic.
13476 file_magic_cmd=$lt_file_magic_cmd
13477
13478 # Flag that allows shared libraries with undefined symbols to be built.
13479 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13480
13481 # Flag that forces no undefined symbols.
13482 no_undefined_flag=$lt_no_undefined_flag_CXX
13483
13484 # Commands used to finish a libtool library installation in a directory.
13485 finish_cmds=$lt_finish_cmds
13486
13487 # Same as above, but a single script fragment to be evaled but not shown.
13488 finish_eval=$lt_finish_eval
13489
13490 # Take the output of nm and produce a listing of raw symbols and C names.
13491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13492
13493 # Transform the output of nm in a proper C declaration
13494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13495
13496 # Transform the output of nm in a C name address pair
13497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13498
13499 # This is the shared library runtime path variable.
13500 runpath_var=$runpath_var
13501
13502 # This is the shared library path variable.
13503 shlibpath_var=$shlibpath_var
13504
13505 # Is shlibpath searched before the hard-coded library search path?
13506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13507
13508 # How to hardcode a shared library path into an executable.
13509 hardcode_action=$hardcode_action_CXX
13510
13511 # Whether we should hardcode library paths into libraries.
13512 hardcode_into_libs=$hardcode_into_libs
13513
13514 # Flag to hardcode \$libdir into a binary during linking.
13515 # This must work even if \$libdir does not exist.
13516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13517
13518 # If ld is used when linking, flag to hardcode \$libdir into
13519 # a binary during linking. This must work even if \$libdir does
13520 # not exist.
13521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13522
13523 # Whether we need a single -rpath flag with a separated argument.
13524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13525
13526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13527 # resulting binary.
13528 hardcode_direct=$hardcode_direct_CXX
13529
13530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13531 # resulting binary.
13532 hardcode_minus_L=$hardcode_minus_L_CXX
13533
13534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13535 # the resulting binary.
13536 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13537
13538 # Set to yes if building a shared library automatically hardcodes DIR into the library
13539 # and all subsequent libraries and executables linked against it.
13540 hardcode_automatic=$hardcode_automatic_CXX
13541
13542 # Variables whose values should be saved in libtool wrapper scripts and
13543 # restored at relink time.
13544 variables_saved_for_relink="$variables_saved_for_relink"
13545
13546 # Whether libtool must link a program against all its dependency libraries.
13547 link_all_deplibs=$link_all_deplibs_CXX
13548
13549 # Compile-time system search path for libraries
13550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13551
13552 # Run-time system search path for libraries
13553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13554
13555 # Fix the shell variable \$srcfile for the compiler.
13556 fix_srcfile_path="$fix_srcfile_path_CXX"
13557
13558 # Set to yes if exported symbols are required.
13559 always_export_symbols=$always_export_symbols_CXX
13560
13561 # The commands to list exported symbols.
13562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13563
13564 # The commands to extract the exported symbol list from a shared archive.
13565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13566
13567 # Symbols that should not be listed in the preloaded symbols.
13568 exclude_expsyms=$lt_exclude_expsyms_CXX
13569
13570 # Symbols that must always be exported.
13571 include_expsyms=$lt_include_expsyms_CXX
13572
13573 # ### END LIBTOOL TAG CONFIG: $tagname
13574
13575 __EOF__
13576
13577
13578 else
13579 # If there is no Makefile yet, we rely on a make rule to execute
13580 # `config.status --recheck' to rerun these tests and create the
13581 # libtool script then.
13582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13583 if test -f "$ltmain_in"; then
13584 test -f Makefile && make "$ltmain"
13585 fi
13586 fi
13587
13588
13589 ac_ext=c
13590 ac_cpp='$CPP $CPPFLAGS'
13591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13594
13595 CC=$lt_save_CC
13596 LDCXX=$LD
13597 LD=$lt_save_LD
13598 GCC=$lt_save_GCC
13599 with_gnu_ldcxx=$with_gnu_ld
13600 with_gnu_ld=$lt_save_with_gnu_ld
13601 lt_cv_path_LDCXX=$lt_cv_path_LD
13602 lt_cv_path_LD=$lt_save_path_LD
13603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13605
13606 else
13607 tagname=""
13608 fi
13609 ;;
13610
13611 F77)
13612 if test -n "$F77" && test "X$F77" != "Xno"; then
13613
13614 ac_ext=f
13615 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13616 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13617 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13618
13619
13620 archive_cmds_need_lc_F77=no
13621 allow_undefined_flag_F77=
13622 always_export_symbols_F77=no
13623 archive_expsym_cmds_F77=
13624 export_dynamic_flag_spec_F77=
13625 hardcode_direct_F77=no
13626 hardcode_libdir_flag_spec_F77=
13627 hardcode_libdir_flag_spec_ld_F77=
13628 hardcode_libdir_separator_F77=
13629 hardcode_minus_L_F77=no
13630 hardcode_automatic_F77=no
13631 module_cmds_F77=
13632 module_expsym_cmds_F77=
13633 link_all_deplibs_F77=unknown
13634 old_archive_cmds_F77=$old_archive_cmds
13635 no_undefined_flag_F77=
13636 whole_archive_flag_spec_F77=
13637 enable_shared_with_static_runtimes_F77=no
13638
13639 # Source file extension for f77 test sources.
13640 ac_ext=f
13641
13642 # Object file extension for compiled f77 test sources.
13643 objext=o
13644 objext_F77=$objext
13645
13646 # Code to be used in simple compile tests
13647 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13648
13649 # Code to be used in simple link tests
13650 lt_simple_link_test_code=" program t\n end\n"
13651
13652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13653
13654 # If no C compiler was specified, use CC.
13655 LTCC=${LTCC-"$CC"}
13656
13657 # Allow CC to be a program name with arguments.
13658 compiler=$CC
13659
13660
13661 # Allow CC to be a program name with arguments.
13662 lt_save_CC="$CC"
13663 CC=${F77-"f77"}
13664 compiler=$CC
13665 compiler_F77=$CC
13666 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13667
13668 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13669 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13670 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13671 echo "${ECHO_T}$can_build_shared" >&6
13672
13673 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13674 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13675 test "$can_build_shared" = "no" && enable_shared=no
13676
13677 # On AIX, shared libraries and static libraries use the same namespace, and
13678 # are all built from PIC.
13679 case "$host_os" in
13680 aix3*)
13681 test "$enable_shared" = yes && enable_static=no
13682 if test -n "$RANLIB"; then
13683 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13684 postinstall_cmds='$RANLIB $lib'
13685 fi
13686 ;;
13687 aix4* | aix5*)
13688 test "$enable_shared" = yes && enable_static=no
13689 ;;
13690 esac
13691 echo "$as_me:$LINENO: result: $enable_shared" >&5
13692 echo "${ECHO_T}$enable_shared" >&6
13693
13694 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13695 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13696 # Make sure either enable_shared or enable_static is yes.
13697 test "$enable_shared" = yes || enable_static=yes
13698 echo "$as_me:$LINENO: result: $enable_static" >&5
13699 echo "${ECHO_T}$enable_static" >&6
13700
13701 test "$ld_shlibs_F77" = no && can_build_shared=no
13702
13703 GCC_F77="$G77"
13704 LD_F77="$LD"
13705
13706 lt_prog_compiler_wl_F77=
13707 lt_prog_compiler_pic_F77=
13708 lt_prog_compiler_static_F77=
13709
13710 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13711 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13712
13713 if test "$GCC" = yes; then
13714 lt_prog_compiler_wl_F77='-Wl,'
13715 lt_prog_compiler_static_F77='-static'
13716
13717 case $host_os in
13718 aix*)
13719 # All AIX code is PIC.
13720 if test "$host_cpu" = ia64; then
13721 # AIX 5 now supports IA64 processor
13722 lt_prog_compiler_static_F77='-Bstatic'
13723 fi
13724 ;;
13725
13726 amigaos*)
13727 # FIXME: we need at least 68020 code to build shared libraries, but
13728 # adding the `-m68020' flag to GCC prevents building anything better,
13729 # like `-m68040'.
13730 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13731 ;;
13732
13733 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13734 # PIC is the default for these OSes.
13735 ;;
13736
13737 mingw* | pw32* | os2*)
13738 # This hack is so that the source file can tell whether it is being
13739 # built for inclusion in a dll (and should export symbols for example).
13740 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13741 ;;
13742
13743 darwin* | rhapsody*)
13744 # PIC is the default on this platform
13745 # Common symbols not allowed in MH_DYLIB files
13746 lt_prog_compiler_pic_F77='-fno-common'
13747 ;;
13748
13749 msdosdjgpp*)
13750 # Just because we use GCC doesn't mean we suddenly get shared libraries
13751 # on systems that don't support them.
13752 lt_prog_compiler_can_build_shared_F77=no
13753 enable_shared=no
13754 ;;
13755
13756 sysv4*MP*)
13757 if test -d /usr/nec; then
13758 lt_prog_compiler_pic_F77=-Kconform_pic
13759 fi
13760 ;;
13761
13762 hpux*)
13763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13764 # not for PA HP-UX.
13765 case "$host_cpu" in
13766 hppa*64*|ia64*)
13767 # +Z the default
13768 ;;
13769 *)
13770 lt_prog_compiler_pic_F77='-fPIC'
13771 ;;
13772 esac
13773 ;;
13774
13775 *)
13776 lt_prog_compiler_pic_F77='-fPIC'
13777 ;;
13778 esac
13779 else
13780 # PORTME Check for flag to pass linker flags through the system compiler.
13781 case $host_os in
13782 aix*)
13783 lt_prog_compiler_wl_F77='-Wl,'
13784 if test "$host_cpu" = ia64; then
13785 # AIX 5 now supports IA64 processor
13786 lt_prog_compiler_static_F77='-Bstatic'
13787 else
13788 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13789 fi
13790 ;;
13791
13792 mingw* | pw32* | os2*)
13793 # This hack is so that the source file can tell whether it is being
13794 # built for inclusion in a dll (and should export symbols for example).
13795 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13796 ;;
13797
13798 hpux9* | hpux10* | hpux11*)
13799 lt_prog_compiler_wl_F77='-Wl,'
13800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13801 # not for PA HP-UX.
13802 case "$host_cpu" in
13803 hppa*64*|ia64*)
13804 # +Z the default
13805 ;;
13806 *)
13807 lt_prog_compiler_pic_F77='+Z'
13808 ;;
13809 esac
13810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13811 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13812 ;;
13813
13814 irix5* | irix6* | nonstopux*)
13815 lt_prog_compiler_wl_F77='-Wl,'
13816 # PIC (with -KPIC) is the default.
13817 lt_prog_compiler_static_F77='-non_shared'
13818 ;;
13819
13820 newsos6)
13821 lt_prog_compiler_pic_F77='-KPIC'
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 ;;
13824
13825 linux*)
13826 case $CC in
13827 icc* | ecc*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 lt_prog_compiler_pic_F77='-KPIC'
13830 lt_prog_compiler_static_F77='-static'
13831 ;;
13832 ccc*)
13833 lt_prog_compiler_wl_F77='-Wl,'
13834 # All Alpha code is PIC.
13835 lt_prog_compiler_static_F77='-non_shared'
13836 ;;
13837 esac
13838 ;;
13839
13840 osf3* | osf4* | osf5*)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 # All OSF/1 code is PIC.
13843 lt_prog_compiler_static_F77='-non_shared'
13844 ;;
13845
13846 sco3.2v5*)
13847 lt_prog_compiler_pic_F77='-Kpic'
13848 lt_prog_compiler_static_F77='-dn'
13849 ;;
13850
13851 solaris*)
13852 lt_prog_compiler_wl_F77='-Wl,'
13853 lt_prog_compiler_pic_F77='-KPIC'
13854 lt_prog_compiler_static_F77='-Bstatic'
13855 ;;
13856
13857 sunos4*)
13858 lt_prog_compiler_wl_F77='-Qoption ld '
13859 lt_prog_compiler_pic_F77='-PIC'
13860 lt_prog_compiler_static_F77='-Bstatic'
13861 ;;
13862
13863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-KPIC'
13866 lt_prog_compiler_static_F77='-Bstatic'
13867 ;;
13868
13869 sysv4*MP*)
13870 if test -d /usr/nec ;then
13871 lt_prog_compiler_pic_F77='-Kconform_pic'
13872 lt_prog_compiler_static_F77='-Bstatic'
13873 fi
13874 ;;
13875
13876 uts4*)
13877 lt_prog_compiler_pic_F77='-pic'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 ;;
13880
13881 *)
13882 lt_prog_compiler_can_build_shared_F77=no
13883 ;;
13884 esac
13885 fi
13886
13887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13888 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13889
13890 #
13891 # Check to make sure the PIC flag actually works.
13892 #
13893 if test -n "$lt_prog_compiler_pic_F77"; then
13894
13895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13897 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 else
13900 lt_prog_compiler_pic_works_F77=no
13901 ac_outfile=conftest.$ac_objext
13902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13903 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13904 # Insert the option either (1) after the last *FLAGS variable, or
13905 # (2) before a word containing "conftest.", or (3) at the end.
13906 # Note that $ac_compile itself does not contain backslashes and begins
13907 # with a dollar sign (not a hyphen), so the echo should work correctly.
13908 # The option is referenced via a variable to avoid confusing sed.
13909 lt_compile=`echo "$ac_compile" | $SED \
13910 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13912 -e 's:$: $lt_compiler_flag:'`
13913 (eval echo "\"\$as_me:13913: $lt_compile\"" >&5)
13914 (eval "$lt_compile" 2>conftest.err)
13915 ac_status=$?
13916 cat conftest.err >&5
13917 echo "$as_me:13917: \$? = $ac_status" >&5
13918 if (exit $ac_status) && test -s "$ac_outfile"; then
13919 # The compiler can only warn and ignore the option if not recognized
13920 # So say no if there are warnings
13921 if test ! -s conftest.err; then
13922 lt_prog_compiler_pic_works_F77=yes
13923 fi
13924 fi
13925 $rm conftest*
13926
13927 fi
13928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13929 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13930
13931 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13932 case $lt_prog_compiler_pic_F77 in
13933 "" | " "*) ;;
13934 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13935 esac
13936 else
13937 lt_prog_compiler_pic_F77=
13938 lt_prog_compiler_can_build_shared_F77=no
13939 fi
13940
13941 fi
13942 case "$host_os" in
13943 # For platforms which do not support PIC, -DPIC is meaningless:
13944 *djgpp*)
13945 lt_prog_compiler_pic_F77=
13946 ;;
13947 *)
13948 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13949 ;;
13950 esac
13951
13952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13954 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 lt_cv_prog_compiler_c_o_F77=no
13958 $rm -r conftest 2>/dev/null
13959 mkdir conftest
13960 cd conftest
13961 mkdir out
13962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13963
13964 lt_compiler_flag="-o out/conftest2.$ac_objext"
13965 # Insert the option either (1) after the last *FLAGS variable, or
13966 # (2) before a word containing "conftest.", or (3) at the end.
13967 # Note that $ac_compile itself does not contain backslashes and begins
13968 # with a dollar sign (not a hyphen), so the echo should work correctly.
13969 lt_compile=`echo "$ac_compile" | $SED \
13970 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13972 -e 's:$: $lt_compiler_flag:'`
13973 (eval echo "\"\$as_me:13973: $lt_compile\"" >&5)
13974 (eval "$lt_compile" 2>out/conftest.err)
13975 ac_status=$?
13976 cat out/conftest.err >&5
13977 echo "$as_me:13977: \$? = $ac_status" >&5
13978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13979 then
13980 # The compiler can only warn and ignore the option if not recognized
13981 # So say no if there are warnings
13982 if test ! -s out/conftest.err; then
13983 lt_cv_prog_compiler_c_o_F77=yes
13984 fi
13985 fi
13986 chmod u+w .
13987 $rm conftest*
13988 # SGI C++ compiler will create directory out/ii_files/ for
13989 # template instantiation
13990 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13991 $rm out/* && rmdir out
13992 cd ..
13993 rmdir conftest
13994 $rm conftest*
13995
13996 fi
13997 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13999
14000
14001 hard_links="nottested"
14002 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14003 # do not overwrite the value of need_locks provided by the user
14004 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14006 hard_links=yes
14007 $rm conftest*
14008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14009 touch conftest.a
14010 ln conftest.a conftest.b 2>&5 || hard_links=no
14011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14012 echo "$as_me:$LINENO: result: $hard_links" >&5
14013 echo "${ECHO_T}$hard_links" >&6
14014 if test "$hard_links" = no; then
14015 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14017 need_locks=warn
14018 fi
14019 else
14020 need_locks=no
14021 fi
14022
14023 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14025
14026 runpath_var=
14027 allow_undefined_flag_F77=
14028 enable_shared_with_static_runtimes_F77=no
14029 archive_cmds_F77=
14030 archive_expsym_cmds_F77=
14031 old_archive_From_new_cmds_F77=
14032 old_archive_from_expsyms_cmds_F77=
14033 export_dynamic_flag_spec_F77=
14034 whole_archive_flag_spec_F77=
14035 thread_safe_flag_spec_F77=
14036 hardcode_libdir_flag_spec_F77=
14037 hardcode_libdir_flag_spec_ld_F77=
14038 hardcode_libdir_separator_F77=
14039 hardcode_direct_F77=no
14040 hardcode_minus_L_F77=no
14041 hardcode_shlibpath_var_F77=unsupported
14042 link_all_deplibs_F77=unknown
14043 hardcode_automatic_F77=no
14044 module_cmds_F77=
14045 module_expsym_cmds_F77=
14046 always_export_symbols_F77=no
14047 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14048 # include_expsyms should be a list of space-separated symbols to be *always*
14049 # included in the symbol list
14050 include_expsyms_F77=
14051 # exclude_expsyms can be an extended regexp of symbols to exclude
14052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14054 # as well as any symbol that contains `d'.
14055 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14057 # platforms (ab)use it in PIC code, but their linkers get confused if
14058 # the symbol is explicitly referenced. Since portable code cannot
14059 # rely on this symbol name, it's probably fine to never include it in
14060 # preloaded symbol tables.
14061 extract_expsyms_cmds=
14062
14063 case $host_os in
14064 cygwin* | mingw* | pw32*)
14065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14066 # When not using gcc, we currently assume that we are using
14067 # Microsoft Visual C++.
14068 if test "$GCC" != yes; then
14069 with_gnu_ld=no
14070 fi
14071 ;;
14072 openbsd*)
14073 with_gnu_ld=no
14074 ;;
14075 esac
14076
14077 ld_shlibs_F77=yes
14078 if test "$with_gnu_ld" = yes; then
14079 # If archive_cmds runs LD, not CC, wlarc should be empty
14080 wlarc='${wl}'
14081
14082 # See if GNU ld supports shared libraries.
14083 case $host_os in
14084 aix3* | aix4* | aix5*)
14085 # On AIX/PPC, the GNU linker is very broken
14086 if test "$host_cpu" != ia64; then
14087 ld_shlibs_F77=no
14088 cat <<EOF 1>&2
14089
14090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14091 *** to be unable to reliably create shared libraries on AIX.
14092 *** Therefore, libtool is disabling shared libraries support. If you
14093 *** really care for shared libraries, you may want to modify your PATH
14094 *** so that a non-GNU linker is found, and then restart.
14095
14096 EOF
14097 fi
14098 ;;
14099
14100 amigaos*)
14101 archive_cmds_F77='$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)'
14102 hardcode_libdir_flag_spec_F77='-L$libdir'
14103 hardcode_minus_L_F77=yes
14104
14105 # Samuel A. Falvo II <[email protected]> reports
14106 # that the semantics of dynamic libraries on AmigaOS, at least up
14107 # to version 4, is to share data among multiple programs linked
14108 # with the same dynamic library. Since this doesn't match the
14109 # behavior of shared libraries on other platforms, we can't use
14110 # them.
14111 ld_shlibs_F77=no
14112 ;;
14113
14114 beos*)
14115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14116 allow_undefined_flag_F77=unsupported
14117 # Joseph Beckenbach <[email protected]> says some releases of gcc
14118 # support --undefined. This deserves some investigation. FIXME
14119 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14120 else
14121 ld_shlibs_F77=no
14122 fi
14123 ;;
14124
14125 cygwin* | mingw* | pw32*)
14126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14127 # as there is no search path for DLLs.
14128 hardcode_libdir_flag_spec_F77='-L$libdir'
14129 allow_undefined_flag_F77=unsupported
14130 always_export_symbols_F77=no
14131 enable_shared_with_static_runtimes_F77=yes
14132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14133
14134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14136 # If the export-symbols file already is a .def file (1st line
14137 # is EXPORTS), use it as is; otherwise, prepend...
14138 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14139 cp $export_symbols $output_objdir/$soname.def;
14140 else
14141 echo EXPORTS > $output_objdir/$soname.def;
14142 cat $export_symbols >> $output_objdir/$soname.def;
14143 fi~
14144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14145 else
14146 ld_shlibs=no
14147 fi
14148 ;;
14149
14150 netbsd* | knetbsd*-gnu)
14151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14152 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14153 wlarc=
14154 else
14155 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14156 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14157 fi
14158 ;;
14159
14160 solaris* | sysv5*)
14161 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14162 ld_shlibs_F77=no
14163 cat <<EOF 1>&2
14164
14165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14166 *** create shared libraries on Solaris systems. Therefore, libtool
14167 *** is disabling shared libraries support. We urge you to upgrade GNU
14168 *** binutils to release 2.9.1 or newer. Another option is to modify
14169 *** your PATH or compiler configuration so that the native linker is
14170 *** used, and then restart.
14171
14172 EOF
14173 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14176 else
14177 ld_shlibs_F77=no
14178 fi
14179 ;;
14180
14181 sunos4*)
14182 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14183 wlarc=
14184 hardcode_direct_F77=yes
14185 hardcode_shlibpath_var_F77=no
14186 ;;
14187
14188 linux*)
14189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14190 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14191 archive_cmds_F77="$tmp_archive_cmds"
14192 supports_anon_versioning=no
14193 case `$LD -v 2>/dev/null` in
14194 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14197 *\ 2.11.*) ;; # other 2.11 versions
14198 *) supports_anon_versioning=yes ;;
14199 esac
14200 if test $supports_anon_versioning = yes; then
14201 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14203 $echo "local: *; };" >> $output_objdir/$libname.ver~
14204 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14205 else
14206 archive_expsym_cmds_F77="$tmp_archive_cmds"
14207 fi
14208 link_all_deplibs_F77=no
14209 else
14210 ld_shlibs_F77=no
14211 fi
14212 ;;
14213
14214 *)
14215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14216 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14217 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14218 else
14219 ld_shlibs_F77=no
14220 fi
14221 ;;
14222 esac
14223
14224 if test "$ld_shlibs_F77" = yes; then
14225 runpath_var=LD_RUN_PATH
14226 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14227 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14228 # ancient GNU ld didn't support --whole-archive et. al.
14229 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14230 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14231 else
14232 whole_archive_flag_spec_F77=
14233 fi
14234 fi
14235 else
14236 # PORTME fill in a description of your system's linker (not GNU ld)
14237 case $host_os in
14238 aix3*)
14239 allow_undefined_flag_F77=unsupported
14240 always_export_symbols_F77=yes
14241 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14242 # Note: this linker hardcodes the directories in LIBPATH if there
14243 # are no directories specified by -L.
14244 hardcode_minus_L_F77=yes
14245 if test "$GCC" = yes && test -z "$link_static_flag"; then
14246 # Neither direct hardcoding nor static linking is supported with a
14247 # broken collect2.
14248 hardcode_direct_F77=unsupported
14249 fi
14250 ;;
14251
14252 aix4* | aix5*)
14253 if test "$host_cpu" = ia64; then
14254 # On IA64, the linker does run time linking by default, so we don't
14255 # have to do anything special.
14256 aix_use_runtimelinking=no
14257 exp_sym_flag='-Bexport'
14258 no_entry_flag=""
14259 else
14260 # If we're using GNU nm, then we don't want the "-C" option.
14261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14262 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14263 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14264 else
14265 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14266 fi
14267 aix_use_runtimelinking=no
14268
14269 # Test if we are trying to use run time linking or normal
14270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14271 # need to do runtime linking.
14272 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14273 for ld_flag in $LDFLAGS; do
14274 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14275 aix_use_runtimelinking=yes
14276 break
14277 fi
14278 done
14279 esac
14280
14281 exp_sym_flag='-bexport'
14282 no_entry_flag='-bnoentry'
14283 fi
14284
14285 # When large executables or shared objects are built, AIX ld can
14286 # have problems creating the table of contents. If linking a library
14287 # or program results in "error TOC overflow" add -mminimal-toc to
14288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14290
14291 archive_cmds_F77=''
14292 hardcode_direct_F77=yes
14293 hardcode_libdir_separator_F77=':'
14294 link_all_deplibs_F77=yes
14295
14296 if test "$GCC" = yes; then
14297 case $host_os in aix4.012|aix4.012.*)
14298 # We only want to do this on AIX 4.2 and lower, the check
14299 # below for broken collect2 doesn't work under 4.3+
14300 collect2name=`${CC} -print-prog-name=collect2`
14301 if test -f "$collect2name" && \
14302 strings "$collect2name" | grep resolve_lib_name >/dev/null
14303 then
14304 # We have reworked collect2
14305 hardcode_direct_F77=yes
14306 else
14307 # We have old collect2
14308 hardcode_direct_F77=unsupported
14309 # It fails to find uninstalled libraries when the uninstalled
14310 # path is not listed in the libpath. Setting hardcode_minus_L
14311 # to unsupported forces relinking
14312 hardcode_minus_L_F77=yes
14313 hardcode_libdir_flag_spec_F77='-L$libdir'
14314 hardcode_libdir_separator_F77=
14315 fi
14316 esac
14317 shared_flag='-shared'
14318 else
14319 # not using gcc
14320 if test "$host_cpu" = ia64; then
14321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14322 # chokes on -Wl,-G. The following line is correct:
14323 shared_flag='-G'
14324 else
14325 if test "$aix_use_runtimelinking" = yes; then
14326 shared_flag='${wl}-G'
14327 else
14328 shared_flag='${wl}-bM:SRE'
14329 fi
14330 fi
14331 fi
14332
14333 # It seems that -bexpall does not export symbols beginning with
14334 # underscore (_), so it is better to generate a list of symbols to export.
14335 always_export_symbols_F77=yes
14336 if test "$aix_use_runtimelinking" = yes; then
14337 # Warning - without using the other runtime loading flags (-brtl),
14338 # -berok will link without error, but may produce a broken library.
14339 allow_undefined_flag_F77='-berok'
14340 # Determine the default libpath from the value encoded in an empty executable.
14341 cat >conftest.$ac_ext <<_ACEOF
14342 program main
14343
14344 end
14345 _ACEOF
14346 rm -f conftest.$ac_objext conftest$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest$ac_exeext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367
14368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14369 }'`
14370 # Check for a 64-bit object if we didn't find anything.
14371 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14372 }'`; fi
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 fi
14378 rm -f conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14381
14382 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14383 archive_expsym_cmds_F77="\$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"
14384 else
14385 if test "$host_cpu" = ia64; then
14386 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14387 allow_undefined_flag_F77="-z nodefs"
14388 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14389 else
14390 # Determine the default libpath from the value encoded in an empty executable.
14391 cat >conftest.$ac_ext <<_ACEOF
14392 program main
14393
14394 end
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398 (eval $ac_link) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417
14418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14419 }'`
14420 # Check for a 64-bit object if we didn't find anything.
14421 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14422 }'`; fi
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 fi
14428 rm -f conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
14430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14431
14432 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14433 # Warning - without using the other run time loading flags,
14434 # -berok will link without error, but may produce a broken library.
14435 no_undefined_flag_F77=' ${wl}-bernotok'
14436 allow_undefined_flag_F77=' ${wl}-berok'
14437 # -bexpall does not export symbols beginning with underscore (_)
14438 always_export_symbols_F77=yes
14439 # Exported symbols can be pulled into shared objects from archives
14440 whole_archive_flag_spec_F77=' '
14441 archive_cmds_need_lc_F77=yes
14442 # This is similar to how AIX traditionally builds it's shared libraries.
14443 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14444 fi
14445 fi
14446 ;;
14447
14448 amigaos*)
14449 archive_cmds_F77='$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)'
14450 hardcode_libdir_flag_spec_F77='-L$libdir'
14451 hardcode_minus_L_F77=yes
14452 # see comment about different semantics on the GNU ld section
14453 ld_shlibs_F77=no
14454 ;;
14455
14456 bsdi4*)
14457 export_dynamic_flag_spec_F77=-rdynamic
14458 ;;
14459
14460 cygwin* | mingw* | pw32*)
14461 # When not using gcc, we currently assume that we are using
14462 # Microsoft Visual C++.
14463 # hardcode_libdir_flag_spec is actually meaningless, as there is
14464 # no search path for DLLs.
14465 hardcode_libdir_flag_spec_F77=' '
14466 allow_undefined_flag_F77=unsupported
14467 # Tell ltmain to make .lib files, not .a files.
14468 libext=lib
14469 # Tell ltmain to make .dll files, not .so files.
14470 shrext_cmds=".dll"
14471 # FIXME: Setting linknames here is a bad hack.
14472 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14473 # The linker will automatically build a .lib file if we build a DLL.
14474 old_archive_From_new_cmds_F77='true'
14475 # FIXME: Should let the user specify the lib program.
14476 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14477 fix_srcfile_path='`cygpath -w "$srcfile"`'
14478 enable_shared_with_static_runtimes_F77=yes
14479 ;;
14480
14481 darwin* | rhapsody*)
14482 if test "$GXX" = yes ; then
14483 archive_cmds_need_lc_F77=no
14484 case "$host_os" in
14485 rhapsody* | darwin1.[012])
14486 allow_undefined_flag_F77='-undefined suppress'
14487 ;;
14488 *) # Darwin 1.3 on
14489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14490 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14491 else
14492 case ${MACOSX_DEPLOYMENT_TARGET} in
14493 10.[012])
14494 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14495 ;;
14496 10.*)
14497 allow_undefined_flag_F77='-undefined dynamic_lookup'
14498 ;;
14499 esac
14500 fi
14501 ;;
14502 esac
14503 lt_int_apple_cc_single_mod=no
14504 output_verbose_link_cmd='echo'
14505 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14506 lt_int_apple_cc_single_mod=yes
14507 fi
14508 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14509 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14510 else
14511 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14512 fi
14513 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14514 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14515 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14516 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14517 else
14518 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14519 fi
14520 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14521 hardcode_direct_F77=no
14522 hardcode_automatic_F77=yes
14523 hardcode_shlibpath_var_F77=unsupported
14524 whole_archive_flag_spec_F77='-all_load $convenience'
14525 link_all_deplibs_F77=yes
14526 else
14527 ld_shlibs_F77=no
14528 fi
14529 ;;
14530
14531 dgux*)
14532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14533 hardcode_libdir_flag_spec_F77='-L$libdir'
14534 hardcode_shlibpath_var_F77=no
14535 ;;
14536
14537 freebsd1*)
14538 ld_shlibs_F77=no
14539 ;;
14540
14541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14542 # support. Future versions do this automatically, but an explicit c++rt0.o
14543 # does not break anything, and helps significantly (at the cost of a little
14544 # extra space).
14545 freebsd2.2*)
14546 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14547 hardcode_libdir_flag_spec_F77='-R$libdir'
14548 hardcode_direct_F77=yes
14549 hardcode_shlibpath_var_F77=no
14550 ;;
14551
14552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14553 freebsd2*)
14554 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14555 hardcode_direct_F77=yes
14556 hardcode_minus_L_F77=yes
14557 hardcode_shlibpath_var_F77=no
14558 ;;
14559
14560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14561 freebsd* | kfreebsd*-gnu)
14562 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14563 hardcode_libdir_flag_spec_F77='-R$libdir'
14564 hardcode_direct_F77=yes
14565 hardcode_shlibpath_var_F77=no
14566 ;;
14567
14568 hpux9*)
14569 if test "$GCC" = yes; then
14570 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14571 else
14572 archive_cmds_F77='$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'
14573 fi
14574 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14575 hardcode_libdir_separator_F77=:
14576 hardcode_direct_F77=yes
14577
14578 # hardcode_minus_L: Not really in the search PATH,
14579 # but as the default location of the library.
14580 hardcode_minus_L_F77=yes
14581 export_dynamic_flag_spec_F77='${wl}-E'
14582 ;;
14583
14584 hpux10* | hpux11*)
14585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14586 case "$host_cpu" in
14587 hppa*64*|ia64*)
14588 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14589 ;;
14590 *)
14591 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14592 ;;
14593 esac
14594 else
14595 case "$host_cpu" in
14596 hppa*64*|ia64*)
14597 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14598 ;;
14599 *)
14600 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14601 ;;
14602 esac
14603 fi
14604 if test "$with_gnu_ld" = no; then
14605 case "$host_cpu" in
14606 hppa*64*)
14607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14608 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14609 hardcode_libdir_separator_F77=:
14610 hardcode_direct_F77=no
14611 hardcode_shlibpath_var_F77=no
14612 ;;
14613 ia64*)
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_direct_F77=no
14616 hardcode_shlibpath_var_F77=no
14617
14618 # hardcode_minus_L: Not really in the search PATH,
14619 # but as the default location of the library.
14620 hardcode_minus_L_F77=yes
14621 ;;
14622 *)
14623 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14624 hardcode_libdir_separator_F77=:
14625 hardcode_direct_F77=yes
14626 export_dynamic_flag_spec_F77='${wl}-E'
14627
14628 # hardcode_minus_L: Not really in the search PATH,
14629 # but as the default location of the library.
14630 hardcode_minus_L_F77=yes
14631 ;;
14632 esac
14633 fi
14634 ;;
14635
14636 irix5* | irix6* | nonstopux*)
14637 if test "$GCC" = yes; then
14638 archive_cmds_F77='$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'
14639 else
14640 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14641 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14642 fi
14643 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14644 hardcode_libdir_separator_F77=:
14645 link_all_deplibs_F77=yes
14646 ;;
14647
14648 netbsd* | knetbsd*-gnu)
14649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14650 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14651 else
14652 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14653 fi
14654 hardcode_libdir_flag_spec_F77='-R$libdir'
14655 hardcode_direct_F77=yes
14656 hardcode_shlibpath_var_F77=no
14657 ;;
14658
14659 newsos6)
14660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14661 hardcode_direct_F77=yes
14662 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14663 hardcode_libdir_separator_F77=:
14664 hardcode_shlibpath_var_F77=no
14665 ;;
14666
14667 openbsd*)
14668 hardcode_direct_F77=yes
14669 hardcode_shlibpath_var_F77=no
14670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14671 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14672 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14673 export_dynamic_flag_spec_F77='${wl}-E'
14674 else
14675 case $host_os in
14676 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14677 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_libdir_flag_spec_F77='-R$libdir'
14679 ;;
14680 *)
14681 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14682 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14683 ;;
14684 esac
14685 fi
14686 ;;
14687
14688 os2*)
14689 hardcode_libdir_flag_spec_F77='-L$libdir'
14690 hardcode_minus_L_F77=yes
14691 allow_undefined_flag_F77=unsupported
14692 archive_cmds_F77='$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'
14693 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14694 ;;
14695
14696 osf3*)
14697 if test "$GCC" = yes; then
14698 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14699 archive_cmds_F77='$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'
14700 else
14701 allow_undefined_flag_F77=' -expect_unresolved \*'
14702 archive_cmds_F77='$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'
14703 fi
14704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14705 hardcode_libdir_separator_F77=:
14706 ;;
14707
14708 osf4* | osf5*) # as osf3* with the addition of -msym flag
14709 if test "$GCC" = yes; then
14710 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14711 archive_cmds_F77='$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'
14712 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14713 else
14714 allow_undefined_flag_F77=' -expect_unresolved \*'
14715 archive_cmds_F77='$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'
14716 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14717 $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'
14718
14719 # Both c and cxx compiler support -rpath directly
14720 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14721 fi
14722 hardcode_libdir_separator_F77=:
14723 ;;
14724
14725 sco3.2v5*)
14726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 hardcode_shlibpath_var_F77=no
14728 export_dynamic_flag_spec_F77='${wl}-Bexport'
14729 runpath_var=LD_RUN_PATH
14730 hardcode_runpath_var=yes
14731 ;;
14732
14733 solaris*)
14734 no_undefined_flag_F77=' -z text'
14735 if test "$GCC" = yes; then
14736 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14738 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14739 else
14740 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14741 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14743 fi
14744 hardcode_libdir_flag_spec_F77='-R$libdir'
14745 hardcode_shlibpath_var_F77=no
14746 case $host_os in
14747 solaris2.[0-5] | solaris2.[0-5].*) ;;
14748 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14749 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14750 esac
14751 link_all_deplibs_F77=yes
14752 ;;
14753
14754 sunos4*)
14755 if test "x$host_vendor" = xsequent; then
14756 # Use $CC to link under sequent, because it throws in some extra .o
14757 # files that make .init and .fini sections work.
14758 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14759 else
14760 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14761 fi
14762 hardcode_libdir_flag_spec_F77='-L$libdir'
14763 hardcode_direct_F77=yes
14764 hardcode_minus_L_F77=yes
14765 hardcode_shlibpath_var_F77=no
14766 ;;
14767
14768 sysv4)
14769 case $host_vendor in
14770 sni)
14771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772 hardcode_direct_F77=yes # is this really true???
14773 ;;
14774 siemens)
14775 ## LD is ld it makes a PLAMLIB
14776 ## CC just makes a GrossModule.
14777 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14778 reload_cmds_F77='$CC -r -o $output$reload_objs'
14779 hardcode_direct_F77=no
14780 ;;
14781 motorola)
14782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14784 ;;
14785 esac
14786 runpath_var='LD_RUN_PATH'
14787 hardcode_shlibpath_var_F77=no
14788 ;;
14789
14790 sysv4.3*)
14791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_shlibpath_var_F77=no
14793 export_dynamic_flag_spec_F77='-Bexport'
14794 ;;
14795
14796 sysv4*MP*)
14797 if test -d /usr/nec; then
14798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14799 hardcode_shlibpath_var_F77=no
14800 runpath_var=LD_RUN_PATH
14801 hardcode_runpath_var=yes
14802 ld_shlibs_F77=yes
14803 fi
14804 ;;
14805
14806 sysv4.2uw2*)
14807 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_direct_F77=yes
14809 hardcode_minus_L_F77=no
14810 hardcode_shlibpath_var_F77=no
14811 hardcode_runpath_var=yes
14812 runpath_var=LD_RUN_PATH
14813 ;;
14814
14815 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14816 no_undefined_flag_F77='${wl}-z ${wl}text'
14817 if test "$GCC" = yes; then
14818 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 else
14820 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 fi
14822 runpath_var='LD_RUN_PATH'
14823 hardcode_shlibpath_var_F77=no
14824 ;;
14825
14826 sysv5*)
14827 no_undefined_flag_F77=' -z text'
14828 # $CC -shared without GNU ld will not create a library from C++
14829 # object files and a static libstdc++, better avoid it by now
14830 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14833 hardcode_libdir_flag_spec_F77=
14834 hardcode_shlibpath_var_F77=no
14835 runpath_var='LD_RUN_PATH'
14836 ;;
14837
14838 uts4*)
14839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840 hardcode_libdir_flag_spec_F77='-L$libdir'
14841 hardcode_shlibpath_var_F77=no
14842 ;;
14843
14844 *)
14845 ld_shlibs_F77=no
14846 ;;
14847 esac
14848 fi
14849
14850 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14851 echo "${ECHO_T}$ld_shlibs_F77" >&6
14852 test "$ld_shlibs_F77" = no && can_build_shared=no
14853
14854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14855 if test "$GCC" = yes; then
14856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14857 fi
14858
14859 #
14860 # Do we need to explicitly link libc?
14861 #
14862 case "x$archive_cmds_need_lc_F77" in
14863 x|xyes)
14864 # Assume -lc should be added
14865 archive_cmds_need_lc_F77=yes
14866
14867 if test "$enable_shared" = yes && test "$GCC" = yes; then
14868 case $archive_cmds_F77 in
14869 *'~'*)
14870 # FIXME: we may have to deal with multi-command sequences.
14871 ;;
14872 '$CC '*)
14873 # Test whether the compiler implicitly links with -lc since on some
14874 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14875 # to ld, don't add -lc before -lgcc.
14876 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14877 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14878 $rm conftest*
14879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } 2>conftest.err; then
14886 soname=conftest
14887 lib=conftest
14888 libobjs=conftest.$ac_objext
14889 deplibs=
14890 wl=$lt_prog_compiler_wl_F77
14891 compiler_flags=-v
14892 linker_flags=-v
14893 verstring=
14894 output_objdir=.
14895 libname=conftest
14896 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14897 allow_undefined_flag_F77=
14898 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14899 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }
14903 then
14904 archive_cmds_need_lc_F77=no
14905 else
14906 archive_cmds_need_lc_F77=yes
14907 fi
14908 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14909 else
14910 cat conftest.err 1>&5
14911 fi
14912 $rm conftest*
14913 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14914 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14915 ;;
14916 esac
14917 fi
14918 ;;
14919 esac
14920
14921 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14923 library_names_spec=
14924 libname_spec='lib$name'
14925 soname_spec=
14926 shrext_cmds=".so"
14927 postinstall_cmds=
14928 postuninstall_cmds=
14929 finish_cmds=
14930 finish_eval=
14931 shlibpath_var=
14932 shlibpath_overrides_runpath=unknown
14933 version_type=none
14934 dynamic_linker="$host_os ld.so"
14935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14936 if test "$GCC" = yes; then
14937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14938 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14939 # if the path contains ";" then we assume it to be the separator
14940 # otherwise default to the standard path separator (i.e. ":") - it is
14941 # assumed that no part of a normal pathname contains ";" but that should
14942 # okay in the real world where ";" in dirpaths is itself problematic.
14943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14944 else
14945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14946 fi
14947 else
14948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14949 fi
14950 need_lib_prefix=unknown
14951 hardcode_into_libs=no
14952
14953 # when you set need_version to no, make sure it does not cause -set_version
14954 # flags to be left without arguments
14955 need_version=unknown
14956
14957 case $host_os in
14958 aix3*)
14959 version_type=linux
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14961 shlibpath_var=LIBPATH
14962
14963 # AIX 3 has no versioning support, so we append a major version to the name.
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 ;;
14966
14967 aix4* | aix5*)
14968 version_type=linux
14969 need_lib_prefix=no
14970 need_version=no
14971 hardcode_into_libs=yes
14972 if test "$host_cpu" = ia64; then
14973 # AIX 5 supports IA64
14974 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 else
14977 # With GCC up to 2.95.x, collect2 would create an import file
14978 # for dependence libraries. The import file would start with
14979 # the line `#! .'. This would cause the generated library to
14980 # depend on `.', always an invalid library. This was fixed in
14981 # development snapshots of GCC prior to 3.0.
14982 case $host_os in
14983 aix4 | aix4.[01] | aix4.[01].*)
14984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14985 echo ' yes '
14986 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14987 :
14988 else
14989 can_build_shared=no
14990 fi
14991 ;;
14992 esac
14993 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14994 # soname into executable. Probably we can add versioning support to
14995 # collect2, so additional links can be useful in future.
14996 if test "$aix_use_runtimelinking" = yes; then
14997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14998 # instead of lib<name>.a to let people know that these are not
14999 # typical AIX shared libraries.
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 else
15002 # We preserve .a as extension for shared libraries through AIX4.2
15003 # and later when we are not doing run time linking.
15004 library_names_spec='${libname}${release}.a $libname.a'
15005 soname_spec='${libname}${release}${shared_ext}$major'
15006 fi
15007 shlibpath_var=LIBPATH
15008 fi
15009 ;;
15010
15011 amigaos*)
15012 library_names_spec='$libname.ixlibrary $libname.a'
15013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15014 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'
15015 ;;
15016
15017 beos*)
15018 library_names_spec='${libname}${shared_ext}'
15019 dynamic_linker="$host_os ld.so"
15020 shlibpath_var=LIBRARY_PATH
15021 ;;
15022
15023 bsdi4*)
15024 version_type=linux
15025 need_version=no
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15032 # the default ld.so.conf also contains /usr/contrib/lib and
15033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15034 # libtool to hard-code these into programs
15035 ;;
15036
15037 cygwin* | mingw* | pw32*)
15038 version_type=windows
15039 shrext_cmds=".dll"
15040 need_version=no
15041 need_lib_prefix=no
15042
15043 case $GCC,$host_os in
15044 yes,cygwin* | yes,mingw* | yes,pw32*)
15045 library_names_spec='$libname.dll.a'
15046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15047 postinstall_cmds='base_file=`basename \${file}`~
15048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15049 dldir=$destdir/`dirname \$dlpath`~
15050 test -d \$dldir || mkdir -p \$dldir~
15051 $install_prog $dir/$dlname \$dldir/$dlname'
15052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15053 dlpath=$dir/\$dldll~
15054 $rm \$dlpath'
15055 shlibpath_overrides_runpath=yes
15056
15057 case $host_os in
15058 cygwin*)
15059 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15060 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15061 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15062 ;;
15063 mingw*)
15064 # MinGW DLLs use traditional 'lib' prefix
15065 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15067 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15068 # It is most probably a Windows format PATH printed by
15069 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15070 # path with ; separators, and with drive letters. We can handle the
15071 # drive letters (cygwin fileutils understands them), so leave them,
15072 # especially as we might pass files found there to a mingw objdump,
15073 # which wouldn't understand a cygwinified path. Ahh.
15074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15075 else
15076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15077 fi
15078 ;;
15079 pw32*)
15080 # pw32 DLLs use 'pw' prefix rather than 'lib'
15081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15082 ;;
15083 esac
15084 ;;
15085
15086 *)
15087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15088 ;;
15089 esac
15090 dynamic_linker='Win32 ld.exe'
15091 # FIXME: first we should search . and the directory the executable is in
15092 shlibpath_var=PATH
15093 ;;
15094
15095 darwin* | rhapsody*)
15096 dynamic_linker="$host_os dyld"
15097 version_type=darwin
15098 need_lib_prefix=no
15099 need_version=no
15100 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15101 soname_spec='${libname}${release}${major}$shared_ext'
15102 shlibpath_overrides_runpath=yes
15103 shlibpath_var=DYLD_LIBRARY_PATH
15104 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15105 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15106 if test "$GCC" = yes; then
15107 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15108 else
15109 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15110 fi
15111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15112 ;;
15113
15114 dgux*)
15115 version_type=linux
15116 need_lib_prefix=no
15117 need_version=no
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 shlibpath_var=LD_LIBRARY_PATH
15121 ;;
15122
15123 freebsd1*)
15124 dynamic_linker=no
15125 ;;
15126
15127 kfreebsd*-gnu)
15128 version_type=linux
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=no
15135 hardcode_into_libs=yes
15136 dynamic_linker='GNU ld.so'
15137 ;;
15138
15139 freebsd*)
15140 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15141 version_type=freebsd-$objformat
15142 case $version_type in
15143 freebsd-elf*)
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15145 need_version=no
15146 need_lib_prefix=no
15147 ;;
15148 freebsd-*)
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15150 need_version=yes
15151 ;;
15152 esac
15153 shlibpath_var=LD_LIBRARY_PATH
15154 case $host_os in
15155 freebsd2*)
15156 shlibpath_overrides_runpath=yes
15157 ;;
15158 freebsd3.01* | freebsdelf3.01*)
15159 shlibpath_overrides_runpath=yes
15160 hardcode_into_libs=yes
15161 ;;
15162 *) # from 3.2 on
15163 shlibpath_overrides_runpath=no
15164 hardcode_into_libs=yes
15165 ;;
15166 esac
15167 ;;
15168
15169 gnu*)
15170 version_type=linux
15171 need_lib_prefix=no
15172 need_version=no
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 hardcode_into_libs=yes
15177 ;;
15178
15179 hpux9* | hpux10* | hpux11*)
15180 # Give a soname corresponding to the major version so that dld.sl refuses to
15181 # link against other versions.
15182 version_type=sunos
15183 need_lib_prefix=no
15184 need_version=no
15185 case "$host_cpu" in
15186 ia64*)
15187 shrext_cmds='.so'
15188 hardcode_into_libs=yes
15189 dynamic_linker="$host_os dld.so"
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 if test "X$HPUX_IA64_MODE" = X32; then
15195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15196 else
15197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15198 fi
15199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15200 ;;
15201 hppa*64*)
15202 shrext_cmds='.sl'
15203 hardcode_into_libs=yes
15204 dynamic_linker="$host_os dld.sl"
15205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15211 ;;
15212 *)
15213 shrext_cmds='.sl'
15214 dynamic_linker="$host_os dld.sl"
15215 shlibpath_var=SHLIB_PATH
15216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 ;;
15220 esac
15221 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15222 postinstall_cmds='chmod 555 $lib'
15223 ;;
15224
15225 irix5* | irix6* | nonstopux*)
15226 case $host_os in
15227 nonstopux*) version_type=nonstopux ;;
15228 *)
15229 if test "$lt_cv_prog_gnu_ld" = yes; then
15230 version_type=linux
15231 else
15232 version_type=irix
15233 fi ;;
15234 esac
15235 need_lib_prefix=no
15236 need_version=no
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15239 case $host_os in
15240 irix5* | nonstopux*)
15241 libsuff= shlibsuff=
15242 ;;
15243 *)
15244 case $LD in # libtool.m4 will add one of these switches to LD
15245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15246 libsuff= shlibsuff= libmagic=32-bit;;
15247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15248 libsuff=32 shlibsuff=N32 libmagic=N32;;
15249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15251 *) libsuff= shlibsuff= libmagic=never-match;;
15252 esac
15253 ;;
15254 esac
15255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15256 shlibpath_overrides_runpath=no
15257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15259 hardcode_into_libs=yes
15260 ;;
15261
15262 # No shared lib support for Linux oldld, aout, or coff.
15263 linux*oldld* | linux*aout* | linux*coff*)
15264 dynamic_linker=no
15265 ;;
15266
15267 # This must be Linux ELF.
15268 linux*)
15269 version_type=linux
15270 need_lib_prefix=no
15271 need_version=no
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=no
15277 # This implies no fast_install, which is unacceptable.
15278 # Some rework will be needed to allow for fast_install
15279 # before this can be enabled.
15280 hardcode_into_libs=yes
15281
15282 # Append ld.so.conf contents to the search path
15283 if test -f /etc/ld.so.conf; then
15284 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15286 fi
15287
15288 # We used to test for /lib/ld.so.1 and disable shared libraries on
15289 # powerpc, because MkLinux only supported shared libraries with the
15290 # GNU dynamic linker. Since this was broken with cross compilers,
15291 # most powerpc-linux boxes support dynamic linking these days and
15292 # people can always --disable-shared, the test was removed, and we
15293 # assume the GNU/Linux dynamic linker is in use.
15294 dynamic_linker='GNU/Linux ld.so'
15295 ;;
15296
15297 knetbsd*-gnu)
15298 version_type=linux
15299 need_lib_prefix=no
15300 need_version=no
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=no
15305 hardcode_into_libs=yes
15306 dynamic_linker='GNU ld.so'
15307 ;;
15308
15309 netbsd*)
15310 version_type=sunos
15311 need_lib_prefix=no
15312 need_version=no
15313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316 dynamic_linker='NetBSD (a.out) ld.so'
15317 else
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 dynamic_linker='NetBSD ld.elf_so'
15321 fi
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 ;;
15326
15327 newsos6)
15328 version_type=linux
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15332 ;;
15333
15334 nto-qnx*)
15335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15342 ;;
15343
15344 openbsd*)
15345 version_type=sunos
15346 need_lib_prefix=no
15347 need_version=yes
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15352 case $host_os in
15353 openbsd2.[89] | openbsd2.[89].*)
15354 shlibpath_overrides_runpath=no
15355 ;;
15356 *)
15357 shlibpath_overrides_runpath=yes
15358 ;;
15359 esac
15360 else
15361 shlibpath_overrides_runpath=yes
15362 fi
15363 ;;
15364
15365 os2*)
15366 libname_spec='$name'
15367 shrext_cmds=".dll"
15368 need_lib_prefix=no
15369 library_names_spec='$libname${shared_ext} $libname.a'
15370 dynamic_linker='OS/2 ld.exe'
15371 shlibpath_var=LIBPATH
15372 ;;
15373
15374 osf3* | osf4* | osf5*)
15375 version_type=osf
15376 need_lib_prefix=no
15377 need_version=no
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15382 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15383 ;;
15384
15385 sco3.2v5*)
15386 version_type=osf
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 ;;
15391
15392 solaris*)
15393 version_type=linux
15394 need_lib_prefix=no
15395 need_version=no
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15401 # ldd complains unless libraries are executable
15402 postinstall_cmds='chmod +x $lib'
15403 ;;
15404
15405 sunos4*)
15406 version_type=sunos
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=yes
15411 if test "$with_gnu_ld" = yes; then
15412 need_lib_prefix=no
15413 fi
15414 need_version=yes
15415 ;;
15416
15417 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15418 version_type=linux
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 case $host_vendor in
15423 sni)
15424 shlibpath_overrides_runpath=no
15425 need_lib_prefix=no
15426 export_dynamic_flag_spec='${wl}-Blargedynsym'
15427 runpath_var=LD_RUN_PATH
15428 ;;
15429 siemens)
15430 need_lib_prefix=no
15431 ;;
15432 motorola)
15433 need_lib_prefix=no
15434 need_version=no
15435 shlibpath_overrides_runpath=no
15436 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15437 ;;
15438 esac
15439 ;;
15440
15441 sysv4*MP*)
15442 if test -d /usr/nec ;then
15443 version_type=linux
15444 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15445 soname_spec='$libname${shared_ext}.$major'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 fi
15448 ;;
15449
15450 uts4*)
15451 version_type=linux
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 ;;
15456
15457 *)
15458 dynamic_linker=no
15459 ;;
15460 esac
15461 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15462 echo "${ECHO_T}$dynamic_linker" >&6
15463 test "$dynamic_linker" = no && can_build_shared=no
15464
15465 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15466 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15467 hardcode_action_F77=
15468 if test -n "$hardcode_libdir_flag_spec_F77" || \
15469 test -n "$runpath_var F77" || \
15470 test "X$hardcode_automatic_F77"="Xyes" ; then
15471
15472 # We can hardcode non-existant directories.
15473 if test "$hardcode_direct_F77" != no &&
15474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15475 # have to relink, otherwise we might link with an installed library
15476 # when we should be linking with a yet-to-be-installed one
15477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15478 test "$hardcode_minus_L_F77" != no; then
15479 # Linking always hardcodes the temporary library directory.
15480 hardcode_action_F77=relink
15481 else
15482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15483 hardcode_action_F77=immediate
15484 fi
15485 else
15486 # We cannot hardcode anything, or else we can only hardcode existing
15487 # directories.
15488 hardcode_action_F77=unsupported
15489 fi
15490 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15491 echo "${ECHO_T}$hardcode_action_F77" >&6
15492
15493 if test "$hardcode_action_F77" = relink; then
15494 # Fast installation is not supported
15495 enable_fast_install=no
15496 elif test "$shlibpath_overrides_runpath" = yes ||
15497 test "$enable_shared" = no; then
15498 # Fast installation is not necessary
15499 enable_fast_install=needless
15500 fi
15501
15502 striplib=
15503 old_striplib=
15504 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15505 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15506 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15509 echo "$as_me:$LINENO: result: yes" >&5
15510 echo "${ECHO_T}yes" >&6
15511 else
15512 # FIXME - insert some real tests, host_os isn't really good enough
15513 case $host_os in
15514 darwin*)
15515 if test -n "$STRIP" ; then
15516 striplib="$STRIP -x"
15517 echo "$as_me:$LINENO: result: yes" >&5
15518 echo "${ECHO_T}yes" >&6
15519 else
15520 echo "$as_me:$LINENO: result: no" >&5
15521 echo "${ECHO_T}no" >&6
15522 fi
15523 ;;
15524 *)
15525 echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6
15527 ;;
15528 esac
15529 fi
15530
15531
15532
15533 # The else clause should only fire when bootstrapping the
15534 # libtool distribution, otherwise you forgot to ship ltmain.sh
15535 # with your package, and you will get complaints that there are
15536 # no rules to generate ltmain.sh.
15537 if test -f "$ltmain"; then
15538 # See if we are running on zsh, and set the options which allow our commands through
15539 # without removal of \ escapes.
15540 if test -n "${ZSH_VERSION+set}" ; then
15541 setopt NO_GLOB_SUBST
15542 fi
15543 # Now quote all the things that may contain metacharacters while being
15544 # careful not to overquote the AC_SUBSTed values. We take copies of the
15545 # variables and quote the copies for generation of the libtool script.
15546 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15547 SED SHELL STRIP \
15548 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15549 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15550 deplibs_check_method reload_flag reload_cmds need_locks \
15551 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15552 lt_cv_sys_global_symbol_to_c_name_address \
15553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15554 old_postinstall_cmds old_postuninstall_cmds \
15555 compiler_F77 \
15556 CC_F77 \
15557 LD_F77 \
15558 lt_prog_compiler_wl_F77 \
15559 lt_prog_compiler_pic_F77 \
15560 lt_prog_compiler_static_F77 \
15561 lt_prog_compiler_no_builtin_flag_F77 \
15562 export_dynamic_flag_spec_F77 \
15563 thread_safe_flag_spec_F77 \
15564 whole_archive_flag_spec_F77 \
15565 enable_shared_with_static_runtimes_F77 \
15566 old_archive_cmds_F77 \
15567 old_archive_from_new_cmds_F77 \
15568 predep_objects_F77 \
15569 postdep_objects_F77 \
15570 predeps_F77 \
15571 postdeps_F77 \
15572 compiler_lib_search_path_F77 \
15573 archive_cmds_F77 \
15574 archive_expsym_cmds_F77 \
15575 postinstall_cmds_F77 \
15576 postuninstall_cmds_F77 \
15577 old_archive_from_expsyms_cmds_F77 \
15578 allow_undefined_flag_F77 \
15579 no_undefined_flag_F77 \
15580 export_symbols_cmds_F77 \
15581 hardcode_libdir_flag_spec_F77 \
15582 hardcode_libdir_flag_spec_ld_F77 \
15583 hardcode_libdir_separator_F77 \
15584 hardcode_automatic_F77 \
15585 module_cmds_F77 \
15586 module_expsym_cmds_F77 \
15587 lt_cv_prog_compiler_c_o_F77 \
15588 exclude_expsyms_F77 \
15589 include_expsyms_F77; do
15590
15591 case $var in
15592 old_archive_cmds_F77 | \
15593 old_archive_from_new_cmds_F77 | \
15594 archive_cmds_F77 | \
15595 archive_expsym_cmds_F77 | \
15596 module_cmds_F77 | \
15597 module_expsym_cmds_F77 | \
15598 old_archive_from_expsyms_cmds_F77 | \
15599 export_symbols_cmds_F77 | \
15600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15601 postinstall_cmds | postuninstall_cmds | \
15602 old_postinstall_cmds | old_postuninstall_cmds | \
15603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15604 # Double-quote double-evaled strings.
15605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15606 ;;
15607 *)
15608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15609 ;;
15610 esac
15611 done
15612
15613 case $lt_echo in
15614 *'\$0 --fallback-echo"')
15615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15616 ;;
15617 esac
15618
15619 cfgfile="$ofile"
15620
15621 cat <<__EOF__ >> "$cfgfile"
15622 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15623
15624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15625
15626 # Shell to use when invoking shell scripts.
15627 SHELL=$lt_SHELL
15628
15629 # Whether or not to build shared libraries.
15630 build_libtool_libs=$enable_shared
15631
15632 # Whether or not to build static libraries.
15633 build_old_libs=$enable_static
15634
15635 # Whether or not to add -lc for building shared libraries.
15636 build_libtool_need_lc=$archive_cmds_need_lc_F77
15637
15638 # Whether or not to disallow shared libs when runtime libs are static
15639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15640
15641 # Whether or not to optimize for fast installation.
15642 fast_install=$enable_fast_install
15643
15644 # The host system.
15645 host_alias=$host_alias
15646 host=$host
15647
15648 # An echo program that does not interpret backslashes.
15649 echo=$lt_echo
15650
15651 # The archiver.
15652 AR=$lt_AR
15653 AR_FLAGS=$lt_AR_FLAGS
15654
15655 # A C compiler.
15656 LTCC=$lt_LTCC
15657
15658 # A language-specific compiler.
15659 CC=$lt_compiler_F77
15660
15661 # Is the compiler the GNU C compiler?
15662 with_gcc=$GCC_F77
15663
15664 # An ERE matcher.
15665 EGREP=$lt_EGREP
15666
15667 # The linker used to build libraries.
15668 LD=$lt_LD_F77
15669
15670 # Whether we need hard or soft links.
15671 LN_S=$lt_LN_S
15672
15673 # A BSD-compatible nm program.
15674 NM=$lt_NM
15675
15676 # A symbol stripping program
15677 STRIP=$lt_STRIP
15678
15679 # Used to examine libraries when file_magic_cmd begins "file"
15680 MAGIC_CMD=$MAGIC_CMD
15681
15682 # Used on cygwin: DLL creation program.
15683 DLLTOOL="$DLLTOOL"
15684
15685 # Used on cygwin: object dumper.
15686 OBJDUMP="$OBJDUMP"
15687
15688 # Used on cygwin: assembler.
15689 AS="$AS"
15690
15691 # The name of the directory that contains temporary libtool files.
15692 objdir=$objdir
15693
15694 # How to create reloadable object files.
15695 reload_flag=$lt_reload_flag
15696 reload_cmds=$lt_reload_cmds
15697
15698 # How to pass a linker flag through the compiler.
15699 wl=$lt_lt_prog_compiler_wl_F77
15700
15701 # Object file suffix (normally "o").
15702 objext="$ac_objext"
15703
15704 # Old archive suffix (normally "a").
15705 libext="$libext"
15706
15707 # Shared library suffix (normally ".so").
15708 shrext_cmds='$shrext_cmds'
15709
15710 # Executable file suffix (normally "").
15711 exeext="$exeext"
15712
15713 # Additional compiler flags for building library objects.
15714 pic_flag=$lt_lt_prog_compiler_pic_F77
15715 pic_mode=$pic_mode
15716
15717 # What is the maximum length of a command?
15718 max_cmd_len=$lt_cv_sys_max_cmd_len
15719
15720 # Does compiler simultaneously support -c and -o options?
15721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15722
15723 # Must we lock files when doing compilation ?
15724 need_locks=$lt_need_locks
15725
15726 # Do we need the lib prefix for modules?
15727 need_lib_prefix=$need_lib_prefix
15728
15729 # Do we need a version for libraries?
15730 need_version=$need_version
15731
15732 # Whether dlopen is supported.
15733 dlopen_support=$enable_dlopen
15734
15735 # Whether dlopen of programs is supported.
15736 dlopen_self=$enable_dlopen_self
15737
15738 # Whether dlopen of statically linked programs is supported.
15739 dlopen_self_static=$enable_dlopen_self_static
15740
15741 # Compiler flag to prevent dynamic linking.
15742 link_static_flag=$lt_lt_prog_compiler_static_F77
15743
15744 # Compiler flag to turn off builtin functions.
15745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15746
15747 # Compiler flag to allow reflexive dlopens.
15748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15749
15750 # Compiler flag to generate shared objects directly from archives.
15751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15752
15753 # Compiler flag to generate thread-safe objects.
15754 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15755
15756 # Library versioning type.
15757 version_type=$version_type
15758
15759 # Format of library name prefix.
15760 libname_spec=$lt_libname_spec
15761
15762 # List of archive names. First name is the real one, the rest are links.
15763 # The last name is the one that the linker finds with -lNAME.
15764 library_names_spec=$lt_library_names_spec
15765
15766 # The coded name of the library, if different from the real name.
15767 soname_spec=$lt_soname_spec
15768
15769 # Commands used to build and install an old-style archive.
15770 RANLIB=$lt_RANLIB
15771 old_archive_cmds=$lt_old_archive_cmds_F77
15772 old_postinstall_cmds=$lt_old_postinstall_cmds
15773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15774
15775 # Create an old-style archive from a shared archive.
15776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15777
15778 # Create a temporary old-style archive to link instead of a shared archive.
15779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15780
15781 # Commands used to build and install a shared archive.
15782 archive_cmds=$lt_archive_cmds_F77
15783 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15784 postinstall_cmds=$lt_postinstall_cmds
15785 postuninstall_cmds=$lt_postuninstall_cmds
15786
15787 # Commands used to build a loadable module (assumed same as above if empty)
15788 module_cmds=$lt_module_cmds_F77
15789 module_expsym_cmds=$lt_module_expsym_cmds_F77
15790
15791 # Commands to strip libraries.
15792 old_striplib=$lt_old_striplib
15793 striplib=$lt_striplib
15794
15795 # Dependencies to place before the objects being linked to create a
15796 # shared library.
15797 predep_objects=$lt_predep_objects_F77
15798
15799 # Dependencies to place after the objects being linked to create a
15800 # shared library.
15801 postdep_objects=$lt_postdep_objects_F77
15802
15803 # Dependencies to place before the objects being linked to create a
15804 # shared library.
15805 predeps=$lt_predeps_F77
15806
15807 # Dependencies to place after the objects being linked to create a
15808 # shared library.
15809 postdeps=$lt_postdeps_F77
15810
15811 # The library search path used internally by the compiler when linking
15812 # a shared library.
15813 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15814
15815 # Method to check whether dependent libraries are shared objects.
15816 deplibs_check_method=$lt_deplibs_check_method
15817
15818 # Command to use when deplibs_check_method == file_magic.
15819 file_magic_cmd=$lt_file_magic_cmd
15820
15821 # Flag that allows shared libraries with undefined symbols to be built.
15822 allow_undefined_flag=$lt_allow_undefined_flag_F77
15823
15824 # Flag that forces no undefined symbols.
15825 no_undefined_flag=$lt_no_undefined_flag_F77
15826
15827 # Commands used to finish a libtool library installation in a directory.
15828 finish_cmds=$lt_finish_cmds
15829
15830 # Same as above, but a single script fragment to be evaled but not shown.
15831 finish_eval=$lt_finish_eval
15832
15833 # Take the output of nm and produce a listing of raw symbols and C names.
15834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15835
15836 # Transform the output of nm in a proper C declaration
15837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15838
15839 # Transform the output of nm in a C name address pair
15840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15841
15842 # This is the shared library runtime path variable.
15843 runpath_var=$runpath_var
15844
15845 # This is the shared library path variable.
15846 shlibpath_var=$shlibpath_var
15847
15848 # Is shlibpath searched before the hard-coded library search path?
15849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15850
15851 # How to hardcode a shared library path into an executable.
15852 hardcode_action=$hardcode_action_F77
15853
15854 # Whether we should hardcode library paths into libraries.
15855 hardcode_into_libs=$hardcode_into_libs
15856
15857 # Flag to hardcode \$libdir into a binary during linking.
15858 # This must work even if \$libdir does not exist.
15859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15860
15861 # If ld is used when linking, flag to hardcode \$libdir into
15862 # a binary during linking. This must work even if \$libdir does
15863 # not exist.
15864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15865
15866 # Whether we need a single -rpath flag with a separated argument.
15867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15868
15869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15870 # resulting binary.
15871 hardcode_direct=$hardcode_direct_F77
15872
15873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15874 # resulting binary.
15875 hardcode_minus_L=$hardcode_minus_L_F77
15876
15877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15878 # the resulting binary.
15879 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15880
15881 # Set to yes if building a shared library automatically hardcodes DIR into the library
15882 # and all subsequent libraries and executables linked against it.
15883 hardcode_automatic=$hardcode_automatic_F77
15884
15885 # Variables whose values should be saved in libtool wrapper scripts and
15886 # restored at relink time.
15887 variables_saved_for_relink="$variables_saved_for_relink"
15888
15889 # Whether libtool must link a program against all its dependency libraries.
15890 link_all_deplibs=$link_all_deplibs_F77
15891
15892 # Compile-time system search path for libraries
15893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15894
15895 # Run-time system search path for libraries
15896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15897
15898 # Fix the shell variable \$srcfile for the compiler.
15899 fix_srcfile_path="$fix_srcfile_path_F77"
15900
15901 # Set to yes if exported symbols are required.
15902 always_export_symbols=$always_export_symbols_F77
15903
15904 # The commands to list exported symbols.
15905 export_symbols_cmds=$lt_export_symbols_cmds_F77
15906
15907 # The commands to extract the exported symbol list from a shared archive.
15908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15909
15910 # Symbols that should not be listed in the preloaded symbols.
15911 exclude_expsyms=$lt_exclude_expsyms_F77
15912
15913 # Symbols that must always be exported.
15914 include_expsyms=$lt_include_expsyms_F77
15915
15916 # ### END LIBTOOL TAG CONFIG: $tagname
15917
15918 __EOF__
15919
15920
15921 else
15922 # If there is no Makefile yet, we rely on a make rule to execute
15923 # `config.status --recheck' to rerun these tests and create the
15924 # libtool script then.
15925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15926 if test -f "$ltmain_in"; then
15927 test -f Makefile && make "$ltmain"
15928 fi
15929 fi
15930
15931
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938 CC="$lt_save_CC"
15939
15940 else
15941 tagname=""
15942 fi
15943 ;;
15944
15945 GCJ)
15946 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15947
15948
15949
15950 # Source file extension for Java test sources.
15951 ac_ext=java
15952
15953 # Object file extension for compiled Java test sources.
15954 objext=o
15955 objext_GCJ=$objext
15956
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="class foo {}\n"
15959
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15962
15963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15964
15965 # If no C compiler was specified, use CC.
15966 LTCC=${LTCC-"$CC"}
15967
15968 # Allow CC to be a program name with arguments.
15969 compiler=$CC
15970
15971
15972 # Allow CC to be a program name with arguments.
15973 lt_save_CC="$CC"
15974 CC=${GCJ-"gcj"}
15975 compiler=$CC
15976 compiler_GCJ=$CC
15977
15978 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15979 archive_cmds_need_lc_GCJ=no
15980
15981
15982 lt_prog_compiler_no_builtin_flag_GCJ=
15983
15984 if test "$GCC" = yes; then
15985 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15986
15987
15988 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15989 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15990 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 lt_cv_prog_compiler_rtti_exceptions=no
15994 ac_outfile=conftest.$ac_objext
15995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15996 lt_compiler_flag="-fno-rtti -fno-exceptions"
15997 # Insert the option either (1) after the last *FLAGS variable, or
15998 # (2) before a word containing "conftest.", or (3) at the end.
15999 # Note that $ac_compile itself does not contain backslashes and begins
16000 # with a dollar sign (not a hyphen), so the echo should work correctly.
16001 # The option is referenced via a variable to avoid confusing sed.
16002 lt_compile=`echo "$ac_compile" | $SED \
16003 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16005 -e 's:$: $lt_compiler_flag:'`
16006 (eval echo "\"\$as_me:16006: $lt_compile\"" >&5)
16007 (eval "$lt_compile" 2>conftest.err)
16008 ac_status=$?
16009 cat conftest.err >&5
16010 echo "$as_me:16010: \$? = $ac_status" >&5
16011 if (exit $ac_status) && test -s "$ac_outfile"; then
16012 # The compiler can only warn and ignore the option if not recognized
16013 # So say no if there are warnings
16014 if test ! -s conftest.err; then
16015 lt_cv_prog_compiler_rtti_exceptions=yes
16016 fi
16017 fi
16018 $rm conftest*
16019
16020 fi
16021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16022 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16023
16024 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16025 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16026 else
16027 :
16028 fi
16029
16030 fi
16031
16032 lt_prog_compiler_wl_GCJ=
16033 lt_prog_compiler_pic_GCJ=
16034 lt_prog_compiler_static_GCJ=
16035
16036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16038
16039 if test "$GCC" = yes; then
16040 lt_prog_compiler_wl_GCJ='-Wl,'
16041 lt_prog_compiler_static_GCJ='-static'
16042
16043 case $host_os in
16044 aix*)
16045 # All AIX code is PIC.
16046 if test "$host_cpu" = ia64; then
16047 # AIX 5 now supports IA64 processor
16048 lt_prog_compiler_static_GCJ='-Bstatic'
16049 fi
16050 ;;
16051
16052 amigaos*)
16053 # FIXME: we need at least 68020 code to build shared libraries, but
16054 # adding the `-m68020' flag to GCC prevents building anything better,
16055 # like `-m68040'.
16056 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16057 ;;
16058
16059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16060 # PIC is the default for these OSes.
16061 ;;
16062
16063 mingw* | pw32* | os2*)
16064 # This hack is so that the source file can tell whether it is being
16065 # built for inclusion in a dll (and should export symbols for example).
16066 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16067 ;;
16068
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic_GCJ='-fno-common'
16073 ;;
16074
16075 msdosdjgpp*)
16076 # Just because we use GCC doesn't mean we suddenly get shared libraries
16077 # on systems that don't support them.
16078 lt_prog_compiler_can_build_shared_GCJ=no
16079 enable_shared=no
16080 ;;
16081
16082 sysv4*MP*)
16083 if test -d /usr/nec; then
16084 lt_prog_compiler_pic_GCJ=-Kconform_pic
16085 fi
16086 ;;
16087
16088 hpux*)
16089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16090 # not for PA HP-UX.
16091 case "$host_cpu" in
16092 hppa*64*|ia64*)
16093 # +Z the default
16094 ;;
16095 *)
16096 lt_prog_compiler_pic_GCJ='-fPIC'
16097 ;;
16098 esac
16099 ;;
16100
16101 *)
16102 lt_prog_compiler_pic_GCJ='-fPIC'
16103 ;;
16104 esac
16105 else
16106 # PORTME Check for flag to pass linker flags through the system compiler.
16107 case $host_os in
16108 aix*)
16109 lt_prog_compiler_wl_GCJ='-Wl,'
16110 if test "$host_cpu" = ia64; then
16111 # AIX 5 now supports IA64 processor
16112 lt_prog_compiler_static_GCJ='-Bstatic'
16113 else
16114 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16115 fi
16116 ;;
16117
16118 mingw* | pw32* | os2*)
16119 # This hack is so that the source file can tell whether it is being
16120 # built for inclusion in a dll (and should export symbols for example).
16121 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16122 ;;
16123
16124 hpux9* | hpux10* | hpux11*)
16125 lt_prog_compiler_wl_GCJ='-Wl,'
16126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16127 # not for PA HP-UX.
16128 case "$host_cpu" in
16129 hppa*64*|ia64*)
16130 # +Z the default
16131 ;;
16132 *)
16133 lt_prog_compiler_pic_GCJ='+Z'
16134 ;;
16135 esac
16136 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16137 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16138 ;;
16139
16140 irix5* | irix6* | nonstopux*)
16141 lt_prog_compiler_wl_GCJ='-Wl,'
16142 # PIC (with -KPIC) is the default.
16143 lt_prog_compiler_static_GCJ='-non_shared'
16144 ;;
16145
16146 newsos6)
16147 lt_prog_compiler_pic_GCJ='-KPIC'
16148 lt_prog_compiler_static_GCJ='-Bstatic'
16149 ;;
16150
16151 linux*)
16152 case $CC in
16153 icc* | ecc*)
16154 lt_prog_compiler_wl_GCJ='-Wl,'
16155 lt_prog_compiler_pic_GCJ='-KPIC'
16156 lt_prog_compiler_static_GCJ='-static'
16157 ;;
16158 ccc*)
16159 lt_prog_compiler_wl_GCJ='-Wl,'
16160 # All Alpha code is PIC.
16161 lt_prog_compiler_static_GCJ='-non_shared'
16162 ;;
16163 esac
16164 ;;
16165
16166 osf3* | osf4* | osf5*)
16167 lt_prog_compiler_wl_GCJ='-Wl,'
16168 # All OSF/1 code is PIC.
16169 lt_prog_compiler_static_GCJ='-non_shared'
16170 ;;
16171
16172 sco3.2v5*)
16173 lt_prog_compiler_pic_GCJ='-Kpic'
16174 lt_prog_compiler_static_GCJ='-dn'
16175 ;;
16176
16177 solaris*)
16178 lt_prog_compiler_wl_GCJ='-Wl,'
16179 lt_prog_compiler_pic_GCJ='-KPIC'
16180 lt_prog_compiler_static_GCJ='-Bstatic'
16181 ;;
16182
16183 sunos4*)
16184 lt_prog_compiler_wl_GCJ='-Qoption ld '
16185 lt_prog_compiler_pic_GCJ='-PIC'
16186 lt_prog_compiler_static_GCJ='-Bstatic'
16187 ;;
16188
16189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16190 lt_prog_compiler_wl_GCJ='-Wl,'
16191 lt_prog_compiler_pic_GCJ='-KPIC'
16192 lt_prog_compiler_static_GCJ='-Bstatic'
16193 ;;
16194
16195 sysv4*MP*)
16196 if test -d /usr/nec ;then
16197 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16198 lt_prog_compiler_static_GCJ='-Bstatic'
16199 fi
16200 ;;
16201
16202 uts4*)
16203 lt_prog_compiler_pic_GCJ='-pic'
16204 lt_prog_compiler_static_GCJ='-Bstatic'
16205 ;;
16206
16207 *)
16208 lt_prog_compiler_can_build_shared_GCJ=no
16209 ;;
16210 esac
16211 fi
16212
16213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16214 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16215
16216 #
16217 # Check to make sure the PIC flag actually works.
16218 #
16219 if test -n "$lt_prog_compiler_pic_GCJ"; then
16220
16221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16223 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 lt_prog_compiler_pic_works_GCJ=no
16227 ac_outfile=conftest.$ac_objext
16228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16229 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16230 # Insert the option either (1) after the last *FLAGS variable, or
16231 # (2) before a word containing "conftest.", or (3) at the end.
16232 # Note that $ac_compile itself does not contain backslashes and begins
16233 # with a dollar sign (not a hyphen), so the echo should work correctly.
16234 # The option is referenced via a variable to avoid confusing sed.
16235 lt_compile=`echo "$ac_compile" | $SED \
16236 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16238 -e 's:$: $lt_compiler_flag:'`
16239 (eval echo "\"\$as_me:16239: $lt_compile\"" >&5)
16240 (eval "$lt_compile" 2>conftest.err)
16241 ac_status=$?
16242 cat conftest.err >&5
16243 echo "$as_me:16243: \$? = $ac_status" >&5
16244 if (exit $ac_status) && test -s "$ac_outfile"; then
16245 # The compiler can only warn and ignore the option if not recognized
16246 # So say no if there are warnings
16247 if test ! -s conftest.err; then
16248 lt_prog_compiler_pic_works_GCJ=yes
16249 fi
16250 fi
16251 $rm conftest*
16252
16253 fi
16254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16255 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16256
16257 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16258 case $lt_prog_compiler_pic_GCJ in
16259 "" | " "*) ;;
16260 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16261 esac
16262 else
16263 lt_prog_compiler_pic_GCJ=
16264 lt_prog_compiler_can_build_shared_GCJ=no
16265 fi
16266
16267 fi
16268 case "$host_os" in
16269 # For platforms which do not support PIC, -DPIC is meaningless:
16270 *djgpp*)
16271 lt_prog_compiler_pic_GCJ=
16272 ;;
16273 *)
16274 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16275 ;;
16276 esac
16277
16278 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16280 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283 lt_cv_prog_compiler_c_o_GCJ=no
16284 $rm -r conftest 2>/dev/null
16285 mkdir conftest
16286 cd conftest
16287 mkdir out
16288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16289
16290 lt_compiler_flag="-o out/conftest2.$ac_objext"
16291 # Insert the option either (1) after the last *FLAGS variable, or
16292 # (2) before a word containing "conftest.", or (3) at the end.
16293 # Note that $ac_compile itself does not contain backslashes and begins
16294 # with a dollar sign (not a hyphen), so the echo should work correctly.
16295 lt_compile=`echo "$ac_compile" | $SED \
16296 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16298 -e 's:$: $lt_compiler_flag:'`
16299 (eval echo "\"\$as_me:16299: $lt_compile\"" >&5)
16300 (eval "$lt_compile" 2>out/conftest.err)
16301 ac_status=$?
16302 cat out/conftest.err >&5
16303 echo "$as_me:16303: \$? = $ac_status" >&5
16304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16305 then
16306 # The compiler can only warn and ignore the option if not recognized
16307 # So say no if there are warnings
16308 if test ! -s out/conftest.err; then
16309 lt_cv_prog_compiler_c_o_GCJ=yes
16310 fi
16311 fi
16312 chmod u+w .
16313 $rm conftest*
16314 # SGI C++ compiler will create directory out/ii_files/ for
16315 # template instantiation
16316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16317 $rm out/* && rmdir out
16318 cd ..
16319 rmdir conftest
16320 $rm conftest*
16321
16322 fi
16323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16325
16326
16327 hard_links="nottested"
16328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16329 # do not overwrite the value of need_locks provided by the user
16330 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16332 hard_links=yes
16333 $rm conftest*
16334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16335 touch conftest.a
16336 ln conftest.a conftest.b 2>&5 || hard_links=no
16337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338 echo "$as_me:$LINENO: result: $hard_links" >&5
16339 echo "${ECHO_T}$hard_links" >&6
16340 if test "$hard_links" = no; then
16341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16343 need_locks=warn
16344 fi
16345 else
16346 need_locks=no
16347 fi
16348
16349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16351
16352 runpath_var=
16353 allow_undefined_flag_GCJ=
16354 enable_shared_with_static_runtimes_GCJ=no
16355 archive_cmds_GCJ=
16356 archive_expsym_cmds_GCJ=
16357 old_archive_From_new_cmds_GCJ=
16358 old_archive_from_expsyms_cmds_GCJ=
16359 export_dynamic_flag_spec_GCJ=
16360 whole_archive_flag_spec_GCJ=
16361 thread_safe_flag_spec_GCJ=
16362 hardcode_libdir_flag_spec_GCJ=
16363 hardcode_libdir_flag_spec_ld_GCJ=
16364 hardcode_libdir_separator_GCJ=
16365 hardcode_direct_GCJ=no
16366 hardcode_minus_L_GCJ=no
16367 hardcode_shlibpath_var_GCJ=unsupported
16368 link_all_deplibs_GCJ=unknown
16369 hardcode_automatic_GCJ=no
16370 module_cmds_GCJ=
16371 module_expsym_cmds_GCJ=
16372 always_export_symbols_GCJ=no
16373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16374 # include_expsyms should be a list of space-separated symbols to be *always*
16375 # included in the symbol list
16376 include_expsyms_GCJ=
16377 # exclude_expsyms can be an extended regexp of symbols to exclude
16378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16380 # as well as any symbol that contains `d'.
16381 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16383 # platforms (ab)use it in PIC code, but their linkers get confused if
16384 # the symbol is explicitly referenced. Since portable code cannot
16385 # rely on this symbol name, it's probably fine to never include it in
16386 # preloaded symbol tables.
16387 extract_expsyms_cmds=
16388
16389 case $host_os in
16390 cygwin* | mingw* | pw32*)
16391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16392 # When not using gcc, we currently assume that we are using
16393 # Microsoft Visual C++.
16394 if test "$GCC" != yes; then
16395 with_gnu_ld=no
16396 fi
16397 ;;
16398 openbsd*)
16399 with_gnu_ld=no
16400 ;;
16401 esac
16402
16403 ld_shlibs_GCJ=yes
16404 if test "$with_gnu_ld" = yes; then
16405 # If archive_cmds runs LD, not CC, wlarc should be empty
16406 wlarc='${wl}'
16407
16408 # See if GNU ld supports shared libraries.
16409 case $host_os in
16410 aix3* | aix4* | aix5*)
16411 # On AIX/PPC, the GNU linker is very broken
16412 if test "$host_cpu" != ia64; then
16413 ld_shlibs_GCJ=no
16414 cat <<EOF 1>&2
16415
16416 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16417 *** to be unable to reliably create shared libraries on AIX.
16418 *** Therefore, libtool is disabling shared libraries support. If you
16419 *** really care for shared libraries, you may want to modify your PATH
16420 *** so that a non-GNU linker is found, and then restart.
16421
16422 EOF
16423 fi
16424 ;;
16425
16426 amigaos*)
16427 archive_cmds_GCJ='$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)'
16428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16429 hardcode_minus_L_GCJ=yes
16430
16431 # Samuel A. Falvo II <[email protected]> reports
16432 # that the semantics of dynamic libraries on AmigaOS, at least up
16433 # to version 4, is to share data among multiple programs linked
16434 # with the same dynamic library. Since this doesn't match the
16435 # behavior of shared libraries on other platforms, we can't use
16436 # them.
16437 ld_shlibs_GCJ=no
16438 ;;
16439
16440 beos*)
16441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16442 allow_undefined_flag_GCJ=unsupported
16443 # Joseph Beckenbach <[email protected]> says some releases of gcc
16444 # support --undefined. This deserves some investigation. FIXME
16445 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16446 else
16447 ld_shlibs_GCJ=no
16448 fi
16449 ;;
16450
16451 cygwin* | mingw* | pw32*)
16452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16453 # as there is no search path for DLLs.
16454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16455 allow_undefined_flag_GCJ=unsupported
16456 always_export_symbols_GCJ=no
16457 enable_shared_with_static_runtimes_GCJ=yes
16458 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16459
16460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16462 # If the export-symbols file already is a .def file (1st line
16463 # is EXPORTS), use it as is; otherwise, prepend...
16464 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16465 cp $export_symbols $output_objdir/$soname.def;
16466 else
16467 echo EXPORTS > $output_objdir/$soname.def;
16468 cat $export_symbols >> $output_objdir/$soname.def;
16469 fi~
16470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16471 else
16472 ld_shlibs=no
16473 fi
16474 ;;
16475
16476 netbsd* | knetbsd*-gnu)
16477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16478 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16479 wlarc=
16480 else
16481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16483 fi
16484 ;;
16485
16486 solaris* | sysv5*)
16487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16488 ld_shlibs_GCJ=no
16489 cat <<EOF 1>&2
16490
16491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16492 *** create shared libraries on Solaris systems. Therefore, libtool
16493 *** is disabling shared libraries support. We urge you to upgrade GNU
16494 *** binutils to release 2.9.1 or newer. Another option is to modify
16495 *** your PATH or compiler configuration so that the native linker is
16496 *** used, and then restart.
16497
16498 EOF
16499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16500 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16502 else
16503 ld_shlibs_GCJ=no
16504 fi
16505 ;;
16506
16507 sunos4*)
16508 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509 wlarc=
16510 hardcode_direct_GCJ=yes
16511 hardcode_shlibpath_var_GCJ=no
16512 ;;
16513
16514 linux*)
16515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16516 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16517 archive_cmds_GCJ="$tmp_archive_cmds"
16518 supports_anon_versioning=no
16519 case `$LD -v 2>/dev/null` in
16520 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16523 *\ 2.11.*) ;; # other 2.11 versions
16524 *) supports_anon_versioning=yes ;;
16525 esac
16526 if test $supports_anon_versioning = yes; then
16527 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16529 $echo "local: *; };" >> $output_objdir/$libname.ver~
16530 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16531 else
16532 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16533 fi
16534 link_all_deplibs_GCJ=no
16535 else
16536 ld_shlibs_GCJ=no
16537 fi
16538 ;;
16539
16540 *)
16541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16544 else
16545 ld_shlibs_GCJ=no
16546 fi
16547 ;;
16548 esac
16549
16550 if test "$ld_shlibs_GCJ" = yes; then
16551 runpath_var=LD_RUN_PATH
16552 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16553 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16554 # ancient GNU ld didn't support --whole-archive et. al.
16555 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16556 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16557 else
16558 whole_archive_flag_spec_GCJ=
16559 fi
16560 fi
16561 else
16562 # PORTME fill in a description of your system's linker (not GNU ld)
16563 case $host_os in
16564 aix3*)
16565 allow_undefined_flag_GCJ=unsupported
16566 always_export_symbols_GCJ=yes
16567 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16568 # Note: this linker hardcodes the directories in LIBPATH if there
16569 # are no directories specified by -L.
16570 hardcode_minus_L_GCJ=yes
16571 if test "$GCC" = yes && test -z "$link_static_flag"; then
16572 # Neither direct hardcoding nor static linking is supported with a
16573 # broken collect2.
16574 hardcode_direct_GCJ=unsupported
16575 fi
16576 ;;
16577
16578 aix4* | aix5*)
16579 if test "$host_cpu" = ia64; then
16580 # On IA64, the linker does run time linking by default, so we don't
16581 # have to do anything special.
16582 aix_use_runtimelinking=no
16583 exp_sym_flag='-Bexport'
16584 no_entry_flag=""
16585 else
16586 # If we're using GNU nm, then we don't want the "-C" option.
16587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16588 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16589 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16590 else
16591 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16592 fi
16593 aix_use_runtimelinking=no
16594
16595 # Test if we are trying to use run time linking or normal
16596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16597 # need to do runtime linking.
16598 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16599 for ld_flag in $LDFLAGS; do
16600 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16601 aix_use_runtimelinking=yes
16602 break
16603 fi
16604 done
16605 esac
16606
16607 exp_sym_flag='-bexport'
16608 no_entry_flag='-bnoentry'
16609 fi
16610
16611 # When large executables or shared objects are built, AIX ld can
16612 # have problems creating the table of contents. If linking a library
16613 # or program results in "error TOC overflow" add -mminimal-toc to
16614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16616
16617 archive_cmds_GCJ=''
16618 hardcode_direct_GCJ=yes
16619 hardcode_libdir_separator_GCJ=':'
16620 link_all_deplibs_GCJ=yes
16621
16622 if test "$GCC" = yes; then
16623 case $host_os in aix4.012|aix4.012.*)
16624 # We only want to do this on AIX 4.2 and lower, the check
16625 # below for broken collect2 doesn't work under 4.3+
16626 collect2name=`${CC} -print-prog-name=collect2`
16627 if test -f "$collect2name" && \
16628 strings "$collect2name" | grep resolve_lib_name >/dev/null
16629 then
16630 # We have reworked collect2
16631 hardcode_direct_GCJ=yes
16632 else
16633 # We have old collect2
16634 hardcode_direct_GCJ=unsupported
16635 # It fails to find uninstalled libraries when the uninstalled
16636 # path is not listed in the libpath. Setting hardcode_minus_L
16637 # to unsupported forces relinking
16638 hardcode_minus_L_GCJ=yes
16639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16640 hardcode_libdir_separator_GCJ=
16641 fi
16642 esac
16643 shared_flag='-shared'
16644 else
16645 # not using gcc
16646 if test "$host_cpu" = ia64; then
16647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16648 # chokes on -Wl,-G. The following line is correct:
16649 shared_flag='-G'
16650 else
16651 if test "$aix_use_runtimelinking" = yes; then
16652 shared_flag='${wl}-G'
16653 else
16654 shared_flag='${wl}-bM:SRE'
16655 fi
16656 fi
16657 fi
16658
16659 # It seems that -bexpall does not export symbols beginning with
16660 # underscore (_), so it is better to generate a list of symbols to export.
16661 always_export_symbols_GCJ=yes
16662 if test "$aix_use_runtimelinking" = yes; then
16663 # Warning - without using the other runtime loading flags (-brtl),
16664 # -berok will link without error, but may produce a broken library.
16665 allow_undefined_flag_GCJ='-berok'
16666 # Determine the default libpath from the value encoded in an empty executable.
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673
16674 int
16675 main ()
16676 {
16677
16678 ;
16679 return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684 (eval $ac_link) 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest$ac_exeext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703
16704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16705 }'`
16706 # Check for a 64-bit object if we didn't find anything.
16707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16708 }'`; fi
16709 else
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 fi
16714 rm -f conftest.err conftest.$ac_objext \
16715 conftest$ac_exeext conftest.$ac_ext
16716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16717
16718 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16719 archive_expsym_cmds_GCJ="\$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"
16720 else
16721 if test "$host_cpu" = ia64; then
16722 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16723 allow_undefined_flag_GCJ="-z nodefs"
16724 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16725 else
16726 # Determine the default libpath from the value encoded in an empty executable.
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733
16734 int
16735 main ()
16736 {
16737
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16744 (eval $ac_link) 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest$ac_exeext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763
16764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16765 }'`
16766 # Check for a 64-bit object if we didn't find anything.
16767 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16768 }'`; fi
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16772
16773 fi
16774 rm -f conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16777
16778 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16779 # Warning - without using the other run time loading flags,
16780 # -berok will link without error, but may produce a broken library.
16781 no_undefined_flag_GCJ=' ${wl}-bernotok'
16782 allow_undefined_flag_GCJ=' ${wl}-berok'
16783 # -bexpall does not export symbols beginning with underscore (_)
16784 always_export_symbols_GCJ=yes
16785 # Exported symbols can be pulled into shared objects from archives
16786 whole_archive_flag_spec_GCJ=' '
16787 archive_cmds_need_lc_GCJ=yes
16788 # This is similar to how AIX traditionally builds it's shared libraries.
16789 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16790 fi
16791 fi
16792 ;;
16793
16794 amigaos*)
16795 archive_cmds_GCJ='$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)'
16796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16797 hardcode_minus_L_GCJ=yes
16798 # see comment about different semantics on the GNU ld section
16799 ld_shlibs_GCJ=no
16800 ;;
16801
16802 bsdi4*)
16803 export_dynamic_flag_spec_GCJ=-rdynamic
16804 ;;
16805
16806 cygwin* | mingw* | pw32*)
16807 # When not using gcc, we currently assume that we are using
16808 # Microsoft Visual C++.
16809 # hardcode_libdir_flag_spec is actually meaningless, as there is
16810 # no search path for DLLs.
16811 hardcode_libdir_flag_spec_GCJ=' '
16812 allow_undefined_flag_GCJ=unsupported
16813 # Tell ltmain to make .lib files, not .a files.
16814 libext=lib
16815 # Tell ltmain to make .dll files, not .so files.
16816 shrext_cmds=".dll"
16817 # FIXME: Setting linknames here is a bad hack.
16818 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16819 # The linker will automatically build a .lib file if we build a DLL.
16820 old_archive_From_new_cmds_GCJ='true'
16821 # FIXME: Should let the user specify the lib program.
16822 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16823 fix_srcfile_path='`cygpath -w "$srcfile"`'
16824 enable_shared_with_static_runtimes_GCJ=yes
16825 ;;
16826
16827 darwin* | rhapsody*)
16828 if test "$GXX" = yes ; then
16829 archive_cmds_need_lc_GCJ=no
16830 case "$host_os" in
16831 rhapsody* | darwin1.[012])
16832 allow_undefined_flag_GCJ='-undefined suppress'
16833 ;;
16834 *) # Darwin 1.3 on
16835 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16836 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16837 else
16838 case ${MACOSX_DEPLOYMENT_TARGET} in
16839 10.[012])
16840 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16841 ;;
16842 10.*)
16843 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16844 ;;
16845 esac
16846 fi
16847 ;;
16848 esac
16849 lt_int_apple_cc_single_mod=no
16850 output_verbose_link_cmd='echo'
16851 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16852 lt_int_apple_cc_single_mod=yes
16853 fi
16854 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16855 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16856 else
16857 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16858 fi
16859 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16861 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16862 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16863 else
16864 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16865 fi
16866 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16867 hardcode_direct_GCJ=no
16868 hardcode_automatic_GCJ=yes
16869 hardcode_shlibpath_var_GCJ=unsupported
16870 whole_archive_flag_spec_GCJ='-all_load $convenience'
16871 link_all_deplibs_GCJ=yes
16872 else
16873 ld_shlibs_GCJ=no
16874 fi
16875 ;;
16876
16877 dgux*)
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880 hardcode_shlibpath_var_GCJ=no
16881 ;;
16882
16883 freebsd1*)
16884 ld_shlibs_GCJ=no
16885 ;;
16886
16887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16888 # support. Future versions do this automatically, but an explicit c++rt0.o
16889 # does not break anything, and helps significantly (at the cost of a little
16890 # extra space).
16891 freebsd2.2*)
16892 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16894 hardcode_direct_GCJ=yes
16895 hardcode_shlibpath_var_GCJ=no
16896 ;;
16897
16898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16899 freebsd2*)
16900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_direct_GCJ=yes
16902 hardcode_minus_L_GCJ=yes
16903 hardcode_shlibpath_var_GCJ=no
16904 ;;
16905
16906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16907 freebsd* | kfreebsd*-gnu)
16908 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16909 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16910 hardcode_direct_GCJ=yes
16911 hardcode_shlibpath_var_GCJ=no
16912 ;;
16913
16914 hpux9*)
16915 if test "$GCC" = yes; then
16916 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16917 else
16918 archive_cmds_GCJ='$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'
16919 fi
16920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16921 hardcode_libdir_separator_GCJ=:
16922 hardcode_direct_GCJ=yes
16923
16924 # hardcode_minus_L: Not really in the search PATH,
16925 # but as the default location of the library.
16926 hardcode_minus_L_GCJ=yes
16927 export_dynamic_flag_spec_GCJ='${wl}-E'
16928 ;;
16929
16930 hpux10* | hpux11*)
16931 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16932 case "$host_cpu" in
16933 hppa*64*|ia64*)
16934 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 ;;
16936 *)
16937 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16938 ;;
16939 esac
16940 else
16941 case "$host_cpu" in
16942 hppa*64*|ia64*)
16943 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 ;;
16945 *)
16946 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16947 ;;
16948 esac
16949 fi
16950 if test "$with_gnu_ld" = no; then
16951 case "$host_cpu" in
16952 hppa*64*)
16953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16954 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16955 hardcode_libdir_separator_GCJ=:
16956 hardcode_direct_GCJ=no
16957 hardcode_shlibpath_var_GCJ=no
16958 ;;
16959 ia64*)
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961 hardcode_direct_GCJ=no
16962 hardcode_shlibpath_var_GCJ=no
16963
16964 # hardcode_minus_L: Not really in the search PATH,
16965 # but as the default location of the library.
16966 hardcode_minus_L_GCJ=yes
16967 ;;
16968 *)
16969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16970 hardcode_libdir_separator_GCJ=:
16971 hardcode_direct_GCJ=yes
16972 export_dynamic_flag_spec_GCJ='${wl}-E'
16973
16974 # hardcode_minus_L: Not really in the search PATH,
16975 # but as the default location of the library.
16976 hardcode_minus_L_GCJ=yes
16977 ;;
16978 esac
16979 fi
16980 ;;
16981
16982 irix5* | irix6* | nonstopux*)
16983 if test "$GCC" = yes; then
16984 archive_cmds_GCJ='$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'
16985 else
16986 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16987 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16988 fi
16989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16990 hardcode_libdir_separator_GCJ=:
16991 link_all_deplibs_GCJ=yes
16992 ;;
16993
16994 netbsd* | knetbsd*-gnu)
16995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16997 else
16998 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16999 fi
17000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17001 hardcode_direct_GCJ=yes
17002 hardcode_shlibpath_var_GCJ=no
17003 ;;
17004
17005 newsos6)
17006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17007 hardcode_direct_GCJ=yes
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010 hardcode_shlibpath_var_GCJ=no
17011 ;;
17012
17013 openbsd*)
17014 hardcode_direct_GCJ=yes
17015 hardcode_shlibpath_var_GCJ=no
17016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17019 export_dynamic_flag_spec_GCJ='${wl}-E'
17020 else
17021 case $host_os in
17022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17023 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17025 ;;
17026 *)
17027 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029 ;;
17030 esac
17031 fi
17032 ;;
17033
17034 os2*)
17035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17036 hardcode_minus_L_GCJ=yes
17037 allow_undefined_flag_GCJ=unsupported
17038 archive_cmds_GCJ='$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'
17039 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17040 ;;
17041
17042 osf3*)
17043 if test "$GCC" = yes; then
17044 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17045 archive_cmds_GCJ='$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'
17046 else
17047 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17048 archive_cmds_GCJ='$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'
17049 fi
17050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17051 hardcode_libdir_separator_GCJ=:
17052 ;;
17053
17054 osf4* | osf5*) # as osf3* with the addition of -msym flag
17055 if test "$GCC" = yes; then
17056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17057 archive_cmds_GCJ='$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'
17058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17059 else
17060 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17061 archive_cmds_GCJ='$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'
17062 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17063 $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'
17064
17065 # Both c and cxx compiler support -rpath directly
17066 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17067 fi
17068 hardcode_libdir_separator_GCJ=:
17069 ;;
17070
17071 sco3.2v5*)
17072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_shlibpath_var_GCJ=no
17074 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17075 runpath_var=LD_RUN_PATH
17076 hardcode_runpath_var=yes
17077 ;;
17078
17079 solaris*)
17080 no_undefined_flag_GCJ=' -z text'
17081 if test "$GCC" = yes; then
17082 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17085 else
17086 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17087 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17089 fi
17090 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17091 hardcode_shlibpath_var_GCJ=no
17092 case $host_os in
17093 solaris2.[0-5] | solaris2.[0-5].*) ;;
17094 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17095 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17096 esac
17097 link_all_deplibs_GCJ=yes
17098 ;;
17099
17100 sunos4*)
17101 if test "x$host_vendor" = xsequent; then
17102 # Use $CC to link under sequent, because it throws in some extra .o
17103 # files that make .init and .fini sections work.
17104 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17105 else
17106 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17107 fi
17108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17109 hardcode_direct_GCJ=yes
17110 hardcode_minus_L_GCJ=yes
17111 hardcode_shlibpath_var_GCJ=no
17112 ;;
17113
17114 sysv4)
17115 case $host_vendor in
17116 sni)
17117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_direct_GCJ=yes # is this really true???
17119 ;;
17120 siemens)
17121 ## LD is ld it makes a PLAMLIB
17122 ## CC just makes a GrossModule.
17123 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17124 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17125 hardcode_direct_GCJ=no
17126 ;;
17127 motorola)
17128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17130 ;;
17131 esac
17132 runpath_var='LD_RUN_PATH'
17133 hardcode_shlibpath_var_GCJ=no
17134 ;;
17135
17136 sysv4.3*)
17137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_shlibpath_var_GCJ=no
17139 export_dynamic_flag_spec_GCJ='-Bexport'
17140 ;;
17141
17142 sysv4*MP*)
17143 if test -d /usr/nec; then
17144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_shlibpath_var_GCJ=no
17146 runpath_var=LD_RUN_PATH
17147 hardcode_runpath_var=yes
17148 ld_shlibs_GCJ=yes
17149 fi
17150 ;;
17151
17152 sysv4.2uw2*)
17153 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_direct_GCJ=yes
17155 hardcode_minus_L_GCJ=no
17156 hardcode_shlibpath_var_GCJ=no
17157 hardcode_runpath_var=yes
17158 runpath_var=LD_RUN_PATH
17159 ;;
17160
17161 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17162 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17163 if test "$GCC" = yes; then
17164 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17165 else
17166 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167 fi
17168 runpath_var='LD_RUN_PATH'
17169 hardcode_shlibpath_var_GCJ=no
17170 ;;
17171
17172 sysv5*)
17173 no_undefined_flag_GCJ=' -z text'
17174 # $CC -shared without GNU ld will not create a library from C++
17175 # object files and a static libstdc++, better avoid it by now
17176 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17179 hardcode_libdir_flag_spec_GCJ=
17180 hardcode_shlibpath_var_GCJ=no
17181 runpath_var='LD_RUN_PATH'
17182 ;;
17183
17184 uts4*)
17185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17187 hardcode_shlibpath_var_GCJ=no
17188 ;;
17189
17190 *)
17191 ld_shlibs_GCJ=no
17192 ;;
17193 esac
17194 fi
17195
17196 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17197 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17198 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17199
17200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17201 if test "$GCC" = yes; then
17202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17203 fi
17204
17205 #
17206 # Do we need to explicitly link libc?
17207 #
17208 case "x$archive_cmds_need_lc_GCJ" in
17209 x|xyes)
17210 # Assume -lc should be added
17211 archive_cmds_need_lc_GCJ=yes
17212
17213 if test "$enable_shared" = yes && test "$GCC" = yes; then
17214 case $archive_cmds_GCJ in
17215 *'~'*)
17216 # FIXME: we may have to deal with multi-command sequences.
17217 ;;
17218 '$CC '*)
17219 # Test whether the compiler implicitly links with -lc since on some
17220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17221 # to ld, don't add -lc before -lgcc.
17222 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17223 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17224 $rm conftest*
17225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17226
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } 2>conftest.err; then
17232 soname=conftest
17233 lib=conftest
17234 libobjs=conftest.$ac_objext
17235 deplibs=
17236 wl=$lt_prog_compiler_wl_GCJ
17237 compiler_flags=-v
17238 linker_flags=-v
17239 verstring=
17240 output_objdir=.
17241 libname=conftest
17242 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17243 allow_undefined_flag_GCJ=
17244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17245 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }
17249 then
17250 archive_cmds_need_lc_GCJ=no
17251 else
17252 archive_cmds_need_lc_GCJ=yes
17253 fi
17254 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17255 else
17256 cat conftest.err 1>&5
17257 fi
17258 $rm conftest*
17259 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17260 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17261 ;;
17262 esac
17263 fi
17264 ;;
17265 esac
17266
17267 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17269 library_names_spec=
17270 libname_spec='lib$name'
17271 soname_spec=
17272 shrext_cmds=".so"
17273 postinstall_cmds=
17274 postuninstall_cmds=
17275 finish_cmds=
17276 finish_eval=
17277 shlibpath_var=
17278 shlibpath_overrides_runpath=unknown
17279 version_type=none
17280 dynamic_linker="$host_os ld.so"
17281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17282 if test "$GCC" = yes; then
17283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17285 # if the path contains ";" then we assume it to be the separator
17286 # otherwise default to the standard path separator (i.e. ":") - it is
17287 # assumed that no part of a normal pathname contains ";" but that should
17288 # okay in the real world where ";" in dirpaths is itself problematic.
17289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17290 else
17291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17292 fi
17293 else
17294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17295 fi
17296 need_lib_prefix=unknown
17297 hardcode_into_libs=no
17298
17299 # when you set need_version to no, make sure it does not cause -set_version
17300 # flags to be left without arguments
17301 need_version=unknown
17302
17303 case $host_os in
17304 aix3*)
17305 version_type=linux
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17307 shlibpath_var=LIBPATH
17308
17309 # AIX 3 has no versioning support, so we append a major version to the name.
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 ;;
17312
17313 aix4* | aix5*)
17314 version_type=linux
17315 need_lib_prefix=no
17316 need_version=no
17317 hardcode_into_libs=yes
17318 if test "$host_cpu" = ia64; then
17319 # AIX 5 supports IA64
17320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 else
17323 # With GCC up to 2.95.x, collect2 would create an import file
17324 # for dependence libraries. The import file would start with
17325 # the line `#! .'. This would cause the generated library to
17326 # depend on `.', always an invalid library. This was fixed in
17327 # development snapshots of GCC prior to 3.0.
17328 case $host_os in
17329 aix4 | aix4.[01] | aix4.[01].*)
17330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17331 echo ' yes '
17332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17333 :
17334 else
17335 can_build_shared=no
17336 fi
17337 ;;
17338 esac
17339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17340 # soname into executable. Probably we can add versioning support to
17341 # collect2, so additional links can be useful in future.
17342 if test "$aix_use_runtimelinking" = yes; then
17343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17344 # instead of lib<name>.a to let people know that these are not
17345 # typical AIX shared libraries.
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 else
17348 # We preserve .a as extension for shared libraries through AIX4.2
17349 # and later when we are not doing run time linking.
17350 library_names_spec='${libname}${release}.a $libname.a'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 fi
17353 shlibpath_var=LIBPATH
17354 fi
17355 ;;
17356
17357 amigaos*)
17358 library_names_spec='$libname.ixlibrary $libname.a'
17359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17360 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'
17361 ;;
17362
17363 beos*)
17364 library_names_spec='${libname}${shared_ext}'
17365 dynamic_linker="$host_os ld.so"
17366 shlibpath_var=LIBRARY_PATH
17367 ;;
17368
17369 bsdi4*)
17370 version_type=linux
17371 need_version=no
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17378 # the default ld.so.conf also contains /usr/contrib/lib and
17379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17380 # libtool to hard-code these into programs
17381 ;;
17382
17383 cygwin* | mingw* | pw32*)
17384 version_type=windows
17385 shrext_cmds=".dll"
17386 need_version=no
17387 need_lib_prefix=no
17388
17389 case $GCC,$host_os in
17390 yes,cygwin* | yes,mingw* | yes,pw32*)
17391 library_names_spec='$libname.dll.a'
17392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17393 postinstall_cmds='base_file=`basename \${file}`~
17394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17395 dldir=$destdir/`dirname \$dlpath`~
17396 test -d \$dldir || mkdir -p \$dldir~
17397 $install_prog $dir/$dlname \$dldir/$dlname'
17398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17399 dlpath=$dir/\$dldll~
17400 $rm \$dlpath'
17401 shlibpath_overrides_runpath=yes
17402
17403 case $host_os in
17404 cygwin*)
17405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17408 ;;
17409 mingw*)
17410 # MinGW DLLs use traditional 'lib' prefix
17411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17414 # It is most probably a Windows format PATH printed by
17415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17416 # path with ; separators, and with drive letters. We can handle the
17417 # drive letters (cygwin fileutils understands them), so leave them,
17418 # especially as we might pass files found there to a mingw objdump,
17419 # which wouldn't understand a cygwinified path. Ahh.
17420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17421 else
17422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17423 fi
17424 ;;
17425 pw32*)
17426 # pw32 DLLs use 'pw' prefix rather than 'lib'
17427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17428 ;;
17429 esac
17430 ;;
17431
17432 *)
17433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17434 ;;
17435 esac
17436 dynamic_linker='Win32 ld.exe'
17437 # FIXME: first we should search . and the directory the executable is in
17438 shlibpath_var=PATH
17439 ;;
17440
17441 darwin* | rhapsody*)
17442 dynamic_linker="$host_os dyld"
17443 version_type=darwin
17444 need_lib_prefix=no
17445 need_version=no
17446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17447 soname_spec='${libname}${release}${major}$shared_ext'
17448 shlibpath_overrides_runpath=yes
17449 shlibpath_var=DYLD_LIBRARY_PATH
17450 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17451 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17452 if test "$GCC" = yes; then
17453 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17454 else
17455 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17456 fi
17457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17458 ;;
17459
17460 dgux*)
17461 version_type=linux
17462 need_lib_prefix=no
17463 need_version=no
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17465 soname_spec='${libname}${release}${shared_ext}$major'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 ;;
17468
17469 freebsd1*)
17470 dynamic_linker=no
17471 ;;
17472
17473 kfreebsd*-gnu)
17474 version_type=linux
17475 need_lib_prefix=no
17476 need_version=no
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 shlibpath_overrides_runpath=no
17481 hardcode_into_libs=yes
17482 dynamic_linker='GNU ld.so'
17483 ;;
17484
17485 freebsd*)
17486 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17487 version_type=freebsd-$objformat
17488 case $version_type in
17489 freebsd-elf*)
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17491 need_version=no
17492 need_lib_prefix=no
17493 ;;
17494 freebsd-*)
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17496 need_version=yes
17497 ;;
17498 esac
17499 shlibpath_var=LD_LIBRARY_PATH
17500 case $host_os in
17501 freebsd2*)
17502 shlibpath_overrides_runpath=yes
17503 ;;
17504 freebsd3.01* | freebsdelf3.01*)
17505 shlibpath_overrides_runpath=yes
17506 hardcode_into_libs=yes
17507 ;;
17508 *) # from 3.2 on
17509 shlibpath_overrides_runpath=no
17510 hardcode_into_libs=yes
17511 ;;
17512 esac
17513 ;;
17514
17515 gnu*)
17516 version_type=linux
17517 need_lib_prefix=no
17518 need_version=no
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 hardcode_into_libs=yes
17523 ;;
17524
17525 hpux9* | hpux10* | hpux11*)
17526 # Give a soname corresponding to the major version so that dld.sl refuses to
17527 # link against other versions.
17528 version_type=sunos
17529 need_lib_prefix=no
17530 need_version=no
17531 case "$host_cpu" in
17532 ia64*)
17533 shrext_cmds='.so'
17534 hardcode_into_libs=yes
17535 dynamic_linker="$host_os dld.so"
17536 shlibpath_var=LD_LIBRARY_PATH
17537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539 soname_spec='${libname}${release}${shared_ext}$major'
17540 if test "X$HPUX_IA64_MODE" = X32; then
17541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17542 else
17543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17544 fi
17545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17546 ;;
17547 hppa*64*)
17548 shrext_cmds='.sl'
17549 hardcode_into_libs=yes
17550 dynamic_linker="$host_os dld.sl"
17551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17557 ;;
17558 *)
17559 shrext_cmds='.sl'
17560 dynamic_linker="$host_os dld.sl"
17561 shlibpath_var=SHLIB_PATH
17562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 ;;
17566 esac
17567 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17568 postinstall_cmds='chmod 555 $lib'
17569 ;;
17570
17571 irix5* | irix6* | nonstopux*)
17572 case $host_os in
17573 nonstopux*) version_type=nonstopux ;;
17574 *)
17575 if test "$lt_cv_prog_gnu_ld" = yes; then
17576 version_type=linux
17577 else
17578 version_type=irix
17579 fi ;;
17580 esac
17581 need_lib_prefix=no
17582 need_version=no
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17585 case $host_os in
17586 irix5* | nonstopux*)
17587 libsuff= shlibsuff=
17588 ;;
17589 *)
17590 case $LD in # libtool.m4 will add one of these switches to LD
17591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17592 libsuff= shlibsuff= libmagic=32-bit;;
17593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17594 libsuff=32 shlibsuff=N32 libmagic=N32;;
17595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17597 *) libsuff= shlibsuff= libmagic=never-match;;
17598 esac
17599 ;;
17600 esac
17601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17602 shlibpath_overrides_runpath=no
17603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17605 hardcode_into_libs=yes
17606 ;;
17607
17608 # No shared lib support for Linux oldld, aout, or coff.
17609 linux*oldld* | linux*aout* | linux*coff*)
17610 dynamic_linker=no
17611 ;;
17612
17613 # This must be Linux ELF.
17614 linux*)
17615 version_type=linux
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 shlibpath_overrides_runpath=no
17623 # This implies no fast_install, which is unacceptable.
17624 # Some rework will be needed to allow for fast_install
17625 # before this can be enabled.
17626 hardcode_into_libs=yes
17627
17628 # Append ld.so.conf contents to the search path
17629 if test -f /etc/ld.so.conf; then
17630 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17632 fi
17633
17634 # We used to test for /lib/ld.so.1 and disable shared libraries on
17635 # powerpc, because MkLinux only supported shared libraries with the
17636 # GNU dynamic linker. Since this was broken with cross compilers,
17637 # most powerpc-linux boxes support dynamic linking these days and
17638 # people can always --disable-shared, the test was removed, and we
17639 # assume the GNU/Linux dynamic linker is in use.
17640 dynamic_linker='GNU/Linux ld.so'
17641 ;;
17642
17643 knetbsd*-gnu)
17644 version_type=linux
17645 need_lib_prefix=no
17646 need_version=no
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 shlibpath_var=LD_LIBRARY_PATH
17650 shlibpath_overrides_runpath=no
17651 hardcode_into_libs=yes
17652 dynamic_linker='GNU ld.so'
17653 ;;
17654
17655 netbsd*)
17656 version_type=sunos
17657 need_lib_prefix=no
17658 need_version=no
17659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17662 dynamic_linker='NetBSD (a.out) ld.so'
17663 else
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 dynamic_linker='NetBSD ld.elf_so'
17667 fi
17668 shlibpath_var=LD_LIBRARY_PATH
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17671 ;;
17672
17673 newsos6)
17674 version_type=linux
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath=yes
17678 ;;
17679
17680 nto-qnx*)
17681 version_type=linux
17682 need_lib_prefix=no
17683 need_version=no
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685 soname_spec='${libname}${release}${shared_ext}$major'
17686 shlibpath_var=LD_LIBRARY_PATH
17687 shlibpath_overrides_runpath=yes
17688 ;;
17689
17690 openbsd*)
17691 version_type=sunos
17692 need_lib_prefix=no
17693 need_version=yes
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17698 case $host_os in
17699 openbsd2.[89] | openbsd2.[89].*)
17700 shlibpath_overrides_runpath=no
17701 ;;
17702 *)
17703 shlibpath_overrides_runpath=yes
17704 ;;
17705 esac
17706 else
17707 shlibpath_overrides_runpath=yes
17708 fi
17709 ;;
17710
17711 os2*)
17712 libname_spec='$name'
17713 shrext_cmds=".dll"
17714 need_lib_prefix=no
17715 library_names_spec='$libname${shared_ext} $libname.a'
17716 dynamic_linker='OS/2 ld.exe'
17717 shlibpath_var=LIBPATH
17718 ;;
17719
17720 osf3* | osf4* | osf5*)
17721 version_type=osf
17722 need_lib_prefix=no
17723 need_version=no
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17729 ;;
17730
17731 sco3.2v5*)
17732 version_type=osf
17733 soname_spec='${libname}${release}${shared_ext}$major'
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 shlibpath_var=LD_LIBRARY_PATH
17736 ;;
17737
17738 solaris*)
17739 version_type=linux
17740 need_lib_prefix=no
17741 need_version=no
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=yes
17746 hardcode_into_libs=yes
17747 # ldd complains unless libraries are executable
17748 postinstall_cmds='chmod +x $lib'
17749 ;;
17750
17751 sunos4*)
17752 version_type=sunos
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=yes
17757 if test "$with_gnu_ld" = yes; then
17758 need_lib_prefix=no
17759 fi
17760 need_version=yes
17761 ;;
17762
17763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17764 version_type=linux
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 case $host_vendor in
17769 sni)
17770 shlibpath_overrides_runpath=no
17771 need_lib_prefix=no
17772 export_dynamic_flag_spec='${wl}-Blargedynsym'
17773 runpath_var=LD_RUN_PATH
17774 ;;
17775 siemens)
17776 need_lib_prefix=no
17777 ;;
17778 motorola)
17779 need_lib_prefix=no
17780 need_version=no
17781 shlibpath_overrides_runpath=no
17782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17783 ;;
17784 esac
17785 ;;
17786
17787 sysv4*MP*)
17788 if test -d /usr/nec ;then
17789 version_type=linux
17790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17791 soname_spec='$libname${shared_ext}.$major'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 fi
17794 ;;
17795
17796 uts4*)
17797 version_type=linux
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17799 soname_spec='${libname}${release}${shared_ext}$major'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 ;;
17802
17803 *)
17804 dynamic_linker=no
17805 ;;
17806 esac
17807 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17808 echo "${ECHO_T}$dynamic_linker" >&6
17809 test "$dynamic_linker" = no && can_build_shared=no
17810
17811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17813 hardcode_action_GCJ=
17814 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17815 test -n "$runpath_var GCJ" || \
17816 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17817
17818 # We can hardcode non-existant directories.
17819 if test "$hardcode_direct_GCJ" != no &&
17820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17821 # have to relink, otherwise we might link with an installed library
17822 # when we should be linking with a yet-to-be-installed one
17823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17824 test "$hardcode_minus_L_GCJ" != no; then
17825 # Linking always hardcodes the temporary library directory.
17826 hardcode_action_GCJ=relink
17827 else
17828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17829 hardcode_action_GCJ=immediate
17830 fi
17831 else
17832 # We cannot hardcode anything, or else we can only hardcode existing
17833 # directories.
17834 hardcode_action_GCJ=unsupported
17835 fi
17836 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17837 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17838
17839 if test "$hardcode_action_GCJ" = relink; then
17840 # Fast installation is not supported
17841 enable_fast_install=no
17842 elif test "$shlibpath_overrides_runpath" = yes ||
17843 test "$enable_shared" = no; then
17844 # Fast installation is not necessary
17845 enable_fast_install=needless
17846 fi
17847
17848 striplib=
17849 old_striplib=
17850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17855 echo "$as_me:$LINENO: result: yes" >&5
17856 echo "${ECHO_T}yes" >&6
17857 else
17858 # FIXME - insert some real tests, host_os isn't really good enough
17859 case $host_os in
17860 darwin*)
17861 if test -n "$STRIP" ; then
17862 striplib="$STRIP -x"
17863 echo "$as_me:$LINENO: result: yes" >&5
17864 echo "${ECHO_T}yes" >&6
17865 else
17866 echo "$as_me:$LINENO: result: no" >&5
17867 echo "${ECHO_T}no" >&6
17868 fi
17869 ;;
17870 *)
17871 echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6
17873 ;;
17874 esac
17875 fi
17876
17877 if test "x$enable_dlopen" != xyes; then
17878 enable_dlopen=unknown
17879 enable_dlopen_self=unknown
17880 enable_dlopen_self_static=unknown
17881 else
17882 lt_cv_dlopen=no
17883 lt_cv_dlopen_libs=
17884
17885 case $host_os in
17886 beos*)
17887 lt_cv_dlopen="load_add_on"
17888 lt_cv_dlopen_libs=
17889 lt_cv_dlopen_self=yes
17890 ;;
17891
17892 mingw* | pw32*)
17893 lt_cv_dlopen="LoadLibrary"
17894 lt_cv_dlopen_libs=
17895 ;;
17896
17897 cygwin*)
17898 lt_cv_dlopen="dlopen"
17899 lt_cv_dlopen_libs=
17900 ;;
17901
17902 darwin*)
17903 # if libdl is installed we need to link against it
17904 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-ldl $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917
17918 /* Override any gcc2 internal prototype to avoid an error. */
17919 #ifdef __cplusplus
17920 extern "C"
17921 #endif
17922 /* We use char because int might match the return type of a gcc2
17923 builtin and then its argument prototype would still apply. */
17924 char dlopen ();
17925 int
17926 main ()
17927 {
17928 dlopen ();
17929 ;
17930 return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest$ac_exeext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_dl_dlopen=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_lib_dl_dlopen=no
17960 fi
17961 rm -f conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17966 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17967 if test $ac_cv_lib_dl_dlopen = yes; then
17968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17969 else
17970
17971 lt_cv_dlopen="dyld"
17972 lt_cv_dlopen_libs=
17973 lt_cv_dlopen_self=yes
17974
17975 fi
17976
17977 ;;
17978
17979 *)
17980 echo "$as_me:$LINENO: checking for shl_load" >&5
17981 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17982 if test "${ac_cv_func_shl_load+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17993 #define shl_load innocuous_shl_load
17994
17995 /* System header to define __stub macros and hopefully few prototypes,
17996 which can conflict with char shl_load (); below.
17997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17998 <limits.h> exists even on freestanding compilers. */
17999
18000 #ifdef __STDC__
18001 # include <limits.h>
18002 #else
18003 # include <assert.h>
18004 #endif
18005
18006 #undef shl_load
18007
18008 /* Override any gcc2 internal prototype to avoid an error. */
18009 #ifdef __cplusplus
18010 extern "C"
18011 {
18012 #endif
18013 /* We use char because int might match the return type of a gcc2
18014 builtin and then its argument prototype would still apply. */
18015 char shl_load ();
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18020 choke me
18021 #else
18022 char (*f) () = shl_load;
18023 #endif
18024 #ifdef __cplusplus
18025 }
18026 #endif
18027
18028 int
18029 main ()
18030 {
18031 return f != shl_load;
18032 ;
18033 return 0;
18034 }
18035 _ACEOF
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18038 (eval $ac_link) 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_func_shl_load=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_cv_func_shl_load=no
18063 fi
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 fi
18067 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18068 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18069 if test $ac_cv_func_shl_load = yes; then
18070 lt_cv_dlopen="shl_load"
18071 else
18072 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18073 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077 ac_check_lib_save_LIBS=$LIBS
18078 LIBS="-ldld $LIBS"
18079 cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h. */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085
18086 /* Override any gcc2 internal prototype to avoid an error. */
18087 #ifdef __cplusplus
18088 extern "C"
18089 #endif
18090 /* We use char because int might match the return type of a gcc2
18091 builtin and then its argument prototype would still apply. */
18092 char shl_load ();
18093 int
18094 main ()
18095 {
18096 shl_load ();
18097 ;
18098 return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_lib_dld_shl_load=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_lib_dld_shl_load=no
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18135 if test $ac_cv_lib_dld_shl_load = yes; then
18136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18137 else
18138 echo "$as_me:$LINENO: checking for dlopen" >&5
18139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18140 if test "${ac_cv_func_dlopen+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define dlopen innocuous_dlopen
18152
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char dlopen (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18157
18158 #ifdef __STDC__
18159 # include <limits.h>
18160 #else
18161 # include <assert.h>
18162 #endif
18163
18164 #undef dlopen
18165
18166 /* Override any gcc2 internal prototype to avoid an error. */
18167 #ifdef __cplusplus
18168 extern "C"
18169 {
18170 #endif
18171 /* We use char because int might match the return type of a gcc2
18172 builtin and then its argument prototype would still apply. */
18173 char dlopen ();
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18178 choke me
18179 #else
18180 char (*f) () = dlopen;
18181 #endif
18182 #ifdef __cplusplus
18183 }
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return f != dlopen;
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196 (eval $ac_link) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try='test -s conftest$ac_exeext'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 ac_cv_func_dlopen=yes
18216 else
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220 ac_cv_func_dlopen=no
18221 fi
18222 rm -f conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18224 fi
18225 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18226 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18227 if test $ac_cv_func_dlopen = yes; then
18228 lt_cv_dlopen="dlopen"
18229 else
18230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-ldl $LIBS"
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h. */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243
18244 /* Override any gcc2 internal prototype to avoid an error. */
18245 #ifdef __cplusplus
18246 extern "C"
18247 #endif
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18250 char dlopen ();
18251 int
18252 main ()
18253 {
18254 dlopen ();
18255 ;
18256 return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 (eval $ac_link) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_cv_lib_dl_dlopen=yes
18281 else
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18284
18285 ac_cv_lib_dl_dlopen=no
18286 fi
18287 rm -f conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18290 fi
18291 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18293 if test $ac_cv_lib_dl_dlopen = yes; then
18294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18295 else
18296 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18297 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18298 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301 ac_check_lib_save_LIBS=$LIBS
18302 LIBS="-lsvld $LIBS"
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309
18310 /* Override any gcc2 internal prototype to avoid an error. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 /* We use char because int might match the return type of a gcc2
18315 builtin and then its argument prototype would still apply. */
18316 char dlopen ();
18317 int
18318 main ()
18319 {
18320 dlopen ();
18321 ;
18322 return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_cv_lib_svld_dlopen=yes
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_cv_lib_svld_dlopen=no
18352 fi
18353 rm -f conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 LIBS=$ac_check_lib_save_LIBS
18356 fi
18357 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18358 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18359 if test $ac_cv_lib_svld_dlopen = yes; then
18360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18361 else
18362 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18363 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18364 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367 ac_check_lib_save_LIBS=$LIBS
18368 LIBS="-ldld $LIBS"
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375
18376 /* Override any gcc2 internal prototype to avoid an error. */
18377 #ifdef __cplusplus
18378 extern "C"
18379 #endif
18380 /* We use char because int might match the return type of a gcc2
18381 builtin and then its argument prototype would still apply. */
18382 char dld_link ();
18383 int
18384 main ()
18385 {
18386 dld_link ();
18387 ;
18388 return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18393 (eval $ac_link) 2>conftest.er1
18394 ac_status=$?
18395 grep -v '^ *+' conftest.er1 >conftest.err
18396 rm -f conftest.er1
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try='test -s conftest$ac_exeext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_lib_dld_dld_link=yes
18413 else
18414 echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18416
18417 ac_cv_lib_dld_dld_link=no
18418 fi
18419 rm -f conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18422 fi
18423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18425 if test $ac_cv_lib_dld_dld_link = yes; then
18426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18427 fi
18428
18429
18430 fi
18431
18432
18433 fi
18434
18435
18436 fi
18437
18438
18439 fi
18440
18441
18442 fi
18443
18444 ;;
18445 esac
18446
18447 if test "x$lt_cv_dlopen" != xno; then
18448 enable_dlopen=yes
18449 else
18450 enable_dlopen=no
18451 fi
18452
18453 case $lt_cv_dlopen in
18454 dlopen)
18455 save_CPPFLAGS="$CPPFLAGS"
18456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18457
18458 save_LDFLAGS="$LDFLAGS"
18459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18460
18461 save_LIBS="$LIBS"
18462 LIBS="$lt_cv_dlopen_libs $LIBS"
18463
18464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18466 if test "${lt_cv_dlopen_self+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 if test "$cross_compiling" = yes; then :
18470 lt_cv_dlopen_self=cross
18471 else
18472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18473 lt_status=$lt_dlunknown
18474 cat > conftest.$ac_ext <<EOF
18475 #line 18475 "configure"
18476 #include "confdefs.h"
18477
18478 #if HAVE_DLFCN_H
18479 #include <dlfcn.h>
18480 #endif
18481
18482 #include <stdio.h>
18483
18484 #ifdef RTLD_GLOBAL
18485 # define LT_DLGLOBAL RTLD_GLOBAL
18486 #else
18487 # ifdef DL_GLOBAL
18488 # define LT_DLGLOBAL DL_GLOBAL
18489 # else
18490 # define LT_DLGLOBAL 0
18491 # endif
18492 #endif
18493
18494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18495 find out it does not work in some platform. */
18496 #ifndef LT_DLLAZY_OR_NOW
18497 # ifdef RTLD_LAZY
18498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18499 # else
18500 # ifdef DL_LAZY
18501 # define LT_DLLAZY_OR_NOW DL_LAZY
18502 # else
18503 # ifdef RTLD_NOW
18504 # define LT_DLLAZY_OR_NOW RTLD_NOW
18505 # else
18506 # ifdef DL_NOW
18507 # define LT_DLLAZY_OR_NOW DL_NOW
18508 # else
18509 # define LT_DLLAZY_OR_NOW 0
18510 # endif
18511 # endif
18512 # endif
18513 # endif
18514 #endif
18515
18516 #ifdef __cplusplus
18517 extern "C" void exit (int);
18518 #endif
18519
18520 void fnord() { int i=42;}
18521 int main ()
18522 {
18523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18524 int status = $lt_dlunknown;
18525
18526 if (self)
18527 {
18528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18530 /* dlclose (self); */
18531 }
18532
18533 exit (status);
18534 }
18535 EOF
18536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18537 (eval $ac_link) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18541 (./conftest; exit; ) 2>/dev/null
18542 lt_status=$?
18543 case x$lt_status in
18544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18547 esac
18548 else :
18549 # compilation failed
18550 lt_cv_dlopen_self=no
18551 fi
18552 fi
18553 rm -fr conftest*
18554
18555
18556 fi
18557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18559
18560 if test "x$lt_cv_dlopen_self" = xyes; then
18561 LDFLAGS="$LDFLAGS $link_static_flag"
18562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18564 if test "${lt_cv_dlopen_self_static+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567 if test "$cross_compiling" = yes; then :
18568 lt_cv_dlopen_self_static=cross
18569 else
18570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18571 lt_status=$lt_dlunknown
18572 cat > conftest.$ac_ext <<EOF
18573 #line 18573 "configure"
18574 #include "confdefs.h"
18575
18576 #if HAVE_DLFCN_H
18577 #include <dlfcn.h>
18578 #endif
18579
18580 #include <stdio.h>
18581
18582 #ifdef RTLD_GLOBAL
18583 # define LT_DLGLOBAL RTLD_GLOBAL
18584 #else
18585 # ifdef DL_GLOBAL
18586 # define LT_DLGLOBAL DL_GLOBAL
18587 # else
18588 # define LT_DLGLOBAL 0
18589 # endif
18590 #endif
18591
18592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18593 find out it does not work in some platform. */
18594 #ifndef LT_DLLAZY_OR_NOW
18595 # ifdef RTLD_LAZY
18596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18597 # else
18598 # ifdef DL_LAZY
18599 # define LT_DLLAZY_OR_NOW DL_LAZY
18600 # else
18601 # ifdef RTLD_NOW
18602 # define LT_DLLAZY_OR_NOW RTLD_NOW
18603 # else
18604 # ifdef DL_NOW
18605 # define LT_DLLAZY_OR_NOW DL_NOW
18606 # else
18607 # define LT_DLLAZY_OR_NOW 0
18608 # endif
18609 # endif
18610 # endif
18611 # endif
18612 #endif
18613
18614 #ifdef __cplusplus
18615 extern "C" void exit (int);
18616 #endif
18617
18618 void fnord() { int i=42;}
18619 int main ()
18620 {
18621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18622 int status = $lt_dlunknown;
18623
18624 if (self)
18625 {
18626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18628 /* dlclose (self); */
18629 }
18630
18631 exit (status);
18632 }
18633 EOF
18634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18635 (eval $ac_link) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18639 (./conftest; exit; ) 2>/dev/null
18640 lt_status=$?
18641 case x$lt_status in
18642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18645 esac
18646 else :
18647 # compilation failed
18648 lt_cv_dlopen_self_static=no
18649 fi
18650 fi
18651 rm -fr conftest*
18652
18653
18654 fi
18655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18657 fi
18658
18659 CPPFLAGS="$save_CPPFLAGS"
18660 LDFLAGS="$save_LDFLAGS"
18661 LIBS="$save_LIBS"
18662 ;;
18663 esac
18664
18665 case $lt_cv_dlopen_self in
18666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18667 *) enable_dlopen_self=unknown ;;
18668 esac
18669
18670 case $lt_cv_dlopen_self_static in
18671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18672 *) enable_dlopen_self_static=unknown ;;
18673 esac
18674 fi
18675
18676
18677 # The else clause should only fire when bootstrapping the
18678 # libtool distribution, otherwise you forgot to ship ltmain.sh
18679 # with your package, and you will get complaints that there are
18680 # no rules to generate ltmain.sh.
18681 if test -f "$ltmain"; then
18682 # See if we are running on zsh, and set the options which allow our commands through
18683 # without removal of \ escapes.
18684 if test -n "${ZSH_VERSION+set}" ; then
18685 setopt NO_GLOB_SUBST
18686 fi
18687 # Now quote all the things that may contain metacharacters while being
18688 # careful not to overquote the AC_SUBSTed values. We take copies of the
18689 # variables and quote the copies for generation of the libtool script.
18690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18691 SED SHELL STRIP \
18692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18694 deplibs_check_method reload_flag reload_cmds need_locks \
18695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18696 lt_cv_sys_global_symbol_to_c_name_address \
18697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18698 old_postinstall_cmds old_postuninstall_cmds \
18699 compiler_GCJ \
18700 CC_GCJ \
18701 LD_GCJ \
18702 lt_prog_compiler_wl_GCJ \
18703 lt_prog_compiler_pic_GCJ \
18704 lt_prog_compiler_static_GCJ \
18705 lt_prog_compiler_no_builtin_flag_GCJ \
18706 export_dynamic_flag_spec_GCJ \
18707 thread_safe_flag_spec_GCJ \
18708 whole_archive_flag_spec_GCJ \
18709 enable_shared_with_static_runtimes_GCJ \
18710 old_archive_cmds_GCJ \
18711 old_archive_from_new_cmds_GCJ \
18712 predep_objects_GCJ \
18713 postdep_objects_GCJ \
18714 predeps_GCJ \
18715 postdeps_GCJ \
18716 compiler_lib_search_path_GCJ \
18717 archive_cmds_GCJ \
18718 archive_expsym_cmds_GCJ \
18719 postinstall_cmds_GCJ \
18720 postuninstall_cmds_GCJ \
18721 old_archive_from_expsyms_cmds_GCJ \
18722 allow_undefined_flag_GCJ \
18723 no_undefined_flag_GCJ \
18724 export_symbols_cmds_GCJ \
18725 hardcode_libdir_flag_spec_GCJ \
18726 hardcode_libdir_flag_spec_ld_GCJ \
18727 hardcode_libdir_separator_GCJ \
18728 hardcode_automatic_GCJ \
18729 module_cmds_GCJ \
18730 module_expsym_cmds_GCJ \
18731 lt_cv_prog_compiler_c_o_GCJ \
18732 exclude_expsyms_GCJ \
18733 include_expsyms_GCJ; do
18734
18735 case $var in
18736 old_archive_cmds_GCJ | \
18737 old_archive_from_new_cmds_GCJ | \
18738 archive_cmds_GCJ | \
18739 archive_expsym_cmds_GCJ | \
18740 module_cmds_GCJ | \
18741 module_expsym_cmds_GCJ | \
18742 old_archive_from_expsyms_cmds_GCJ | \
18743 export_symbols_cmds_GCJ | \
18744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18745 postinstall_cmds | postuninstall_cmds | \
18746 old_postinstall_cmds | old_postuninstall_cmds | \
18747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18748 # Double-quote double-evaled strings.
18749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18750 ;;
18751 *)
18752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18753 ;;
18754 esac
18755 done
18756
18757 case $lt_echo in
18758 *'\$0 --fallback-echo"')
18759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18760 ;;
18761 esac
18762
18763 cfgfile="$ofile"
18764
18765 cat <<__EOF__ >> "$cfgfile"
18766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18767
18768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18769
18770 # Shell to use when invoking shell scripts.
18771 SHELL=$lt_SHELL
18772
18773 # Whether or not to build shared libraries.
18774 build_libtool_libs=$enable_shared
18775
18776 # Whether or not to build static libraries.
18777 build_old_libs=$enable_static
18778
18779 # Whether or not to add -lc for building shared libraries.
18780 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18781
18782 # Whether or not to disallow shared libs when runtime libs are static
18783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18784
18785 # Whether or not to optimize for fast installation.
18786 fast_install=$enable_fast_install
18787
18788 # The host system.
18789 host_alias=$host_alias
18790 host=$host
18791
18792 # An echo program that does not interpret backslashes.
18793 echo=$lt_echo
18794
18795 # The archiver.
18796 AR=$lt_AR
18797 AR_FLAGS=$lt_AR_FLAGS
18798
18799 # A C compiler.
18800 LTCC=$lt_LTCC
18801
18802 # A language-specific compiler.
18803 CC=$lt_compiler_GCJ
18804
18805 # Is the compiler the GNU C compiler?
18806 with_gcc=$GCC_GCJ
18807
18808 # An ERE matcher.
18809 EGREP=$lt_EGREP
18810
18811 # The linker used to build libraries.
18812 LD=$lt_LD_GCJ
18813
18814 # Whether we need hard or soft links.
18815 LN_S=$lt_LN_S
18816
18817 # A BSD-compatible nm program.
18818 NM=$lt_NM
18819
18820 # A symbol stripping program
18821 STRIP=$lt_STRIP
18822
18823 # Used to examine libraries when file_magic_cmd begins "file"
18824 MAGIC_CMD=$MAGIC_CMD
18825
18826 # Used on cygwin: DLL creation program.
18827 DLLTOOL="$DLLTOOL"
18828
18829 # Used on cygwin: object dumper.
18830 OBJDUMP="$OBJDUMP"
18831
18832 # Used on cygwin: assembler.
18833 AS="$AS"
18834
18835 # The name of the directory that contains temporary libtool files.
18836 objdir=$objdir
18837
18838 # How to create reloadable object files.
18839 reload_flag=$lt_reload_flag
18840 reload_cmds=$lt_reload_cmds
18841
18842 # How to pass a linker flag through the compiler.
18843 wl=$lt_lt_prog_compiler_wl_GCJ
18844
18845 # Object file suffix (normally "o").
18846 objext="$ac_objext"
18847
18848 # Old archive suffix (normally "a").
18849 libext="$libext"
18850
18851 # Shared library suffix (normally ".so").
18852 shrext_cmds='$shrext_cmds'
18853
18854 # Executable file suffix (normally "").
18855 exeext="$exeext"
18856
18857 # Additional compiler flags for building library objects.
18858 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18859 pic_mode=$pic_mode
18860
18861 # What is the maximum length of a command?
18862 max_cmd_len=$lt_cv_sys_max_cmd_len
18863
18864 # Does compiler simultaneously support -c and -o options?
18865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18866
18867 # Must we lock files when doing compilation ?
18868 need_locks=$lt_need_locks
18869
18870 # Do we need the lib prefix for modules?
18871 need_lib_prefix=$need_lib_prefix
18872
18873 # Do we need a version for libraries?
18874 need_version=$need_version
18875
18876 # Whether dlopen is supported.
18877 dlopen_support=$enable_dlopen
18878
18879 # Whether dlopen of programs is supported.
18880 dlopen_self=$enable_dlopen_self
18881
18882 # Whether dlopen of statically linked programs is supported.
18883 dlopen_self_static=$enable_dlopen_self_static
18884
18885 # Compiler flag to prevent dynamic linking.
18886 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18887
18888 # Compiler flag to turn off builtin functions.
18889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18890
18891 # Compiler flag to allow reflexive dlopens.
18892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18893
18894 # Compiler flag to generate shared objects directly from archives.
18895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18896
18897 # Compiler flag to generate thread-safe objects.
18898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18899
18900 # Library versioning type.
18901 version_type=$version_type
18902
18903 # Format of library name prefix.
18904 libname_spec=$lt_libname_spec
18905
18906 # List of archive names. First name is the real one, the rest are links.
18907 # The last name is the one that the linker finds with -lNAME.
18908 library_names_spec=$lt_library_names_spec
18909
18910 # The coded name of the library, if different from the real name.
18911 soname_spec=$lt_soname_spec
18912
18913 # Commands used to build and install an old-style archive.
18914 RANLIB=$lt_RANLIB
18915 old_archive_cmds=$lt_old_archive_cmds_GCJ
18916 old_postinstall_cmds=$lt_old_postinstall_cmds
18917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18918
18919 # Create an old-style archive from a shared archive.
18920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18921
18922 # Create a temporary old-style archive to link instead of a shared archive.
18923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18924
18925 # Commands used to build and install a shared archive.
18926 archive_cmds=$lt_archive_cmds_GCJ
18927 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18928 postinstall_cmds=$lt_postinstall_cmds
18929 postuninstall_cmds=$lt_postuninstall_cmds
18930
18931 # Commands used to build a loadable module (assumed same as above if empty)
18932 module_cmds=$lt_module_cmds_GCJ
18933 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18934
18935 # Commands to strip libraries.
18936 old_striplib=$lt_old_striplib
18937 striplib=$lt_striplib
18938
18939 # Dependencies to place before the objects being linked to create a
18940 # shared library.
18941 predep_objects=$lt_predep_objects_GCJ
18942
18943 # Dependencies to place after the objects being linked to create a
18944 # shared library.
18945 postdep_objects=$lt_postdep_objects_GCJ
18946
18947 # Dependencies to place before the objects being linked to create a
18948 # shared library.
18949 predeps=$lt_predeps_GCJ
18950
18951 # Dependencies to place after the objects being linked to create a
18952 # shared library.
18953 postdeps=$lt_postdeps_GCJ
18954
18955 # The library search path used internally by the compiler when linking
18956 # a shared library.
18957 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18958
18959 # Method to check whether dependent libraries are shared objects.
18960 deplibs_check_method=$lt_deplibs_check_method
18961
18962 # Command to use when deplibs_check_method == file_magic.
18963 file_magic_cmd=$lt_file_magic_cmd
18964
18965 # Flag that allows shared libraries with undefined symbols to be built.
18966 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18967
18968 # Flag that forces no undefined symbols.
18969 no_undefined_flag=$lt_no_undefined_flag_GCJ
18970
18971 # Commands used to finish a libtool library installation in a directory.
18972 finish_cmds=$lt_finish_cmds
18973
18974 # Same as above, but a single script fragment to be evaled but not shown.
18975 finish_eval=$lt_finish_eval
18976
18977 # Take the output of nm and produce a listing of raw symbols and C names.
18978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18979
18980 # Transform the output of nm in a proper C declaration
18981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18982
18983 # Transform the output of nm in a C name address pair
18984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18985
18986 # This is the shared library runtime path variable.
18987 runpath_var=$runpath_var
18988
18989 # This is the shared library path variable.
18990 shlibpath_var=$shlibpath_var
18991
18992 # Is shlibpath searched before the hard-coded library search path?
18993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18994
18995 # How to hardcode a shared library path into an executable.
18996 hardcode_action=$hardcode_action_GCJ
18997
18998 # Whether we should hardcode library paths into libraries.
18999 hardcode_into_libs=$hardcode_into_libs
19000
19001 # Flag to hardcode \$libdir into a binary during linking.
19002 # This must work even if \$libdir does not exist.
19003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19004
19005 # If ld is used when linking, flag to hardcode \$libdir into
19006 # a binary during linking. This must work even if \$libdir does
19007 # not exist.
19008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19009
19010 # Whether we need a single -rpath flag with a separated argument.
19011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19012
19013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19014 # resulting binary.
19015 hardcode_direct=$hardcode_direct_GCJ
19016
19017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19018 # resulting binary.
19019 hardcode_minus_L=$hardcode_minus_L_GCJ
19020
19021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19022 # the resulting binary.
19023 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19024
19025 # Set to yes if building a shared library automatically hardcodes DIR into the library
19026 # and all subsequent libraries and executables linked against it.
19027 hardcode_automatic=$hardcode_automatic_GCJ
19028
19029 # Variables whose values should be saved in libtool wrapper scripts and
19030 # restored at relink time.
19031 variables_saved_for_relink="$variables_saved_for_relink"
19032
19033 # Whether libtool must link a program against all its dependency libraries.
19034 link_all_deplibs=$link_all_deplibs_GCJ
19035
19036 # Compile-time system search path for libraries
19037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19038
19039 # Run-time system search path for libraries
19040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19041
19042 # Fix the shell variable \$srcfile for the compiler.
19043 fix_srcfile_path="$fix_srcfile_path_GCJ"
19044
19045 # Set to yes if exported symbols are required.
19046 always_export_symbols=$always_export_symbols_GCJ
19047
19048 # The commands to list exported symbols.
19049 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19050
19051 # The commands to extract the exported symbol list from a shared archive.
19052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19053
19054 # Symbols that should not be listed in the preloaded symbols.
19055 exclude_expsyms=$lt_exclude_expsyms_GCJ
19056
19057 # Symbols that must always be exported.
19058 include_expsyms=$lt_include_expsyms_GCJ
19059
19060 # ### END LIBTOOL TAG CONFIG: $tagname
19061
19062 __EOF__
19063
19064
19065 else
19066 # If there is no Makefile yet, we rely on a make rule to execute
19067 # `config.status --recheck' to rerun these tests and create the
19068 # libtool script then.
19069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19070 if test -f "$ltmain_in"; then
19071 test -f Makefile && make "$ltmain"
19072 fi
19073 fi
19074
19075
19076 ac_ext=c
19077 ac_cpp='$CPP $CPPFLAGS'
19078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19081
19082 CC="$lt_save_CC"
19083
19084 else
19085 tagname=""
19086 fi
19087 ;;
19088
19089 RC)
19090
19091
19092
19093 # Source file extension for RC test sources.
19094 ac_ext=rc
19095
19096 # Object file extension for compiled RC test sources.
19097 objext=o
19098 objext_RC=$objext
19099
19100 # Code to be used in simple compile tests
19101 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19102
19103 # Code to be used in simple link tests
19104 lt_simple_link_test_code="$lt_simple_compile_test_code"
19105
19106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19107
19108 # If no C compiler was specified, use CC.
19109 LTCC=${LTCC-"$CC"}
19110
19111 # Allow CC to be a program name with arguments.
19112 compiler=$CC
19113
19114
19115 # Allow CC to be a program name with arguments.
19116 lt_save_CC="$CC"
19117 CC=${RC-"windres"}
19118 compiler=$CC
19119 compiler_RC=$CC
19120 lt_cv_prog_compiler_c_o_RC=yes
19121
19122 # The else clause should only fire when bootstrapping the
19123 # libtool distribution, otherwise you forgot to ship ltmain.sh
19124 # with your package, and you will get complaints that there are
19125 # no rules to generate ltmain.sh.
19126 if test -f "$ltmain"; then
19127 # See if we are running on zsh, and set the options which allow our commands through
19128 # without removal of \ escapes.
19129 if test -n "${ZSH_VERSION+set}" ; then
19130 setopt NO_GLOB_SUBST
19131 fi
19132 # Now quote all the things that may contain metacharacters while being
19133 # careful not to overquote the AC_SUBSTed values. We take copies of the
19134 # variables and quote the copies for generation of the libtool script.
19135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19136 SED SHELL STRIP \
19137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19139 deplibs_check_method reload_flag reload_cmds need_locks \
19140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19141 lt_cv_sys_global_symbol_to_c_name_address \
19142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19143 old_postinstall_cmds old_postuninstall_cmds \
19144 compiler_RC \
19145 CC_RC \
19146 LD_RC \
19147 lt_prog_compiler_wl_RC \
19148 lt_prog_compiler_pic_RC \
19149 lt_prog_compiler_static_RC \
19150 lt_prog_compiler_no_builtin_flag_RC \
19151 export_dynamic_flag_spec_RC \
19152 thread_safe_flag_spec_RC \
19153 whole_archive_flag_spec_RC \
19154 enable_shared_with_static_runtimes_RC \
19155 old_archive_cmds_RC \
19156 old_archive_from_new_cmds_RC \
19157 predep_objects_RC \
19158 postdep_objects_RC \
19159 predeps_RC \
19160 postdeps_RC \
19161 compiler_lib_search_path_RC \
19162 archive_cmds_RC \
19163 archive_expsym_cmds_RC \
19164 postinstall_cmds_RC \
19165 postuninstall_cmds_RC \
19166 old_archive_from_expsyms_cmds_RC \
19167 allow_undefined_flag_RC \
19168 no_undefined_flag_RC \
19169 export_symbols_cmds_RC \
19170 hardcode_libdir_flag_spec_RC \
19171 hardcode_libdir_flag_spec_ld_RC \
19172 hardcode_libdir_separator_RC \
19173 hardcode_automatic_RC \
19174 module_cmds_RC \
19175 module_expsym_cmds_RC \
19176 lt_cv_prog_compiler_c_o_RC \
19177 exclude_expsyms_RC \
19178 include_expsyms_RC; do
19179
19180 case $var in
19181 old_archive_cmds_RC | \
19182 old_archive_from_new_cmds_RC | \
19183 archive_cmds_RC | \
19184 archive_expsym_cmds_RC | \
19185 module_cmds_RC | \
19186 module_expsym_cmds_RC | \
19187 old_archive_from_expsyms_cmds_RC | \
19188 export_symbols_cmds_RC | \
19189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19190 postinstall_cmds | postuninstall_cmds | \
19191 old_postinstall_cmds | old_postuninstall_cmds | \
19192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19193 # Double-quote double-evaled strings.
19194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19195 ;;
19196 *)
19197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19198 ;;
19199 esac
19200 done
19201
19202 case $lt_echo in
19203 *'\$0 --fallback-echo"')
19204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19205 ;;
19206 esac
19207
19208 cfgfile="$ofile"
19209
19210 cat <<__EOF__ >> "$cfgfile"
19211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19212
19213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19214
19215 # Shell to use when invoking shell scripts.
19216 SHELL=$lt_SHELL
19217
19218 # Whether or not to build shared libraries.
19219 build_libtool_libs=$enable_shared
19220
19221 # Whether or not to build static libraries.
19222 build_old_libs=$enable_static
19223
19224 # Whether or not to add -lc for building shared libraries.
19225 build_libtool_need_lc=$archive_cmds_need_lc_RC
19226
19227 # Whether or not to disallow shared libs when runtime libs are static
19228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19229
19230 # Whether or not to optimize for fast installation.
19231 fast_install=$enable_fast_install
19232
19233 # The host system.
19234 host_alias=$host_alias
19235 host=$host
19236
19237 # An echo program that does not interpret backslashes.
19238 echo=$lt_echo
19239
19240 # The archiver.
19241 AR=$lt_AR
19242 AR_FLAGS=$lt_AR_FLAGS
19243
19244 # A C compiler.
19245 LTCC=$lt_LTCC
19246
19247 # A language-specific compiler.
19248 CC=$lt_compiler_RC
19249
19250 # Is the compiler the GNU C compiler?
19251 with_gcc=$GCC_RC
19252
19253 # An ERE matcher.
19254 EGREP=$lt_EGREP
19255
19256 # The linker used to build libraries.
19257 LD=$lt_LD_RC
19258
19259 # Whether we need hard or soft links.
19260 LN_S=$lt_LN_S
19261
19262 # A BSD-compatible nm program.
19263 NM=$lt_NM
19264
19265 # A symbol stripping program
19266 STRIP=$lt_STRIP
19267
19268 # Used to examine libraries when file_magic_cmd begins "file"
19269 MAGIC_CMD=$MAGIC_CMD
19270
19271 # Used on cygwin: DLL creation program.
19272 DLLTOOL="$DLLTOOL"
19273
19274 # Used on cygwin: object dumper.
19275 OBJDUMP="$OBJDUMP"
19276
19277 # Used on cygwin: assembler.
19278 AS="$AS"
19279
19280 # The name of the directory that contains temporary libtool files.
19281 objdir=$objdir
19282
19283 # How to create reloadable object files.
19284 reload_flag=$lt_reload_flag
19285 reload_cmds=$lt_reload_cmds
19286
19287 # How to pass a linker flag through the compiler.
19288 wl=$lt_lt_prog_compiler_wl_RC
19289
19290 # Object file suffix (normally "o").
19291 objext="$ac_objext"
19292
19293 # Old archive suffix (normally "a").
19294 libext="$libext"
19295
19296 # Shared library suffix (normally ".so").
19297 shrext_cmds='$shrext_cmds'
19298
19299 # Executable file suffix (normally "").
19300 exeext="$exeext"
19301
19302 # Additional compiler flags for building library objects.
19303 pic_flag=$lt_lt_prog_compiler_pic_RC
19304 pic_mode=$pic_mode
19305
19306 # What is the maximum length of a command?
19307 max_cmd_len=$lt_cv_sys_max_cmd_len
19308
19309 # Does compiler simultaneously support -c and -o options?
19310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19311
19312 # Must we lock files when doing compilation ?
19313 need_locks=$lt_need_locks
19314
19315 # Do we need the lib prefix for modules?
19316 need_lib_prefix=$need_lib_prefix
19317
19318 # Do we need a version for libraries?
19319 need_version=$need_version
19320
19321 # Whether dlopen is supported.
19322 dlopen_support=$enable_dlopen
19323
19324 # Whether dlopen of programs is supported.
19325 dlopen_self=$enable_dlopen_self
19326
19327 # Whether dlopen of statically linked programs is supported.
19328 dlopen_self_static=$enable_dlopen_self_static
19329
19330 # Compiler flag to prevent dynamic linking.
19331 link_static_flag=$lt_lt_prog_compiler_static_RC
19332
19333 # Compiler flag to turn off builtin functions.
19334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19335
19336 # Compiler flag to allow reflexive dlopens.
19337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19338
19339 # Compiler flag to generate shared objects directly from archives.
19340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19341
19342 # Compiler flag to generate thread-safe objects.
19343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19344
19345 # Library versioning type.
19346 version_type=$version_type
19347
19348 # Format of library name prefix.
19349 libname_spec=$lt_libname_spec
19350
19351 # List of archive names. First name is the real one, the rest are links.
19352 # The last name is the one that the linker finds with -lNAME.
19353 library_names_spec=$lt_library_names_spec
19354
19355 # The coded name of the library, if different from the real name.
19356 soname_spec=$lt_soname_spec
19357
19358 # Commands used to build and install an old-style archive.
19359 RANLIB=$lt_RANLIB
19360 old_archive_cmds=$lt_old_archive_cmds_RC
19361 old_postinstall_cmds=$lt_old_postinstall_cmds
19362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19363
19364 # Create an old-style archive from a shared archive.
19365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19366
19367 # Create a temporary old-style archive to link instead of a shared archive.
19368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19369
19370 # Commands used to build and install a shared archive.
19371 archive_cmds=$lt_archive_cmds_RC
19372 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19373 postinstall_cmds=$lt_postinstall_cmds
19374 postuninstall_cmds=$lt_postuninstall_cmds
19375
19376 # Commands used to build a loadable module (assumed same as above if empty)
19377 module_cmds=$lt_module_cmds_RC
19378 module_expsym_cmds=$lt_module_expsym_cmds_RC
19379
19380 # Commands to strip libraries.
19381 old_striplib=$lt_old_striplib
19382 striplib=$lt_striplib
19383
19384 # Dependencies to place before the objects being linked to create a
19385 # shared library.
19386 predep_objects=$lt_predep_objects_RC
19387
19388 # Dependencies to place after the objects being linked to create a
19389 # shared library.
19390 postdep_objects=$lt_postdep_objects_RC
19391
19392 # Dependencies to place before the objects being linked to create a
19393 # shared library.
19394 predeps=$lt_predeps_RC
19395
19396 # Dependencies to place after the objects being linked to create a
19397 # shared library.
19398 postdeps=$lt_postdeps_RC
19399
19400 # The library search path used internally by the compiler when linking
19401 # a shared library.
19402 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19403
19404 # Method to check whether dependent libraries are shared objects.
19405 deplibs_check_method=$lt_deplibs_check_method
19406
19407 # Command to use when deplibs_check_method == file_magic.
19408 file_magic_cmd=$lt_file_magic_cmd
19409
19410 # Flag that allows shared libraries with undefined symbols to be built.
19411 allow_undefined_flag=$lt_allow_undefined_flag_RC
19412
19413 # Flag that forces no undefined symbols.
19414 no_undefined_flag=$lt_no_undefined_flag_RC
19415
19416 # Commands used to finish a libtool library installation in a directory.
19417 finish_cmds=$lt_finish_cmds
19418
19419 # Same as above, but a single script fragment to be evaled but not shown.
19420 finish_eval=$lt_finish_eval
19421
19422 # Take the output of nm and produce a listing of raw symbols and C names.
19423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19424
19425 # Transform the output of nm in a proper C declaration
19426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19427
19428 # Transform the output of nm in a C name address pair
19429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19430
19431 # This is the shared library runtime path variable.
19432 runpath_var=$runpath_var
19433
19434 # This is the shared library path variable.
19435 shlibpath_var=$shlibpath_var
19436
19437 # Is shlibpath searched before the hard-coded library search path?
19438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19439
19440 # How to hardcode a shared library path into an executable.
19441 hardcode_action=$hardcode_action_RC
19442
19443 # Whether we should hardcode library paths into libraries.
19444 hardcode_into_libs=$hardcode_into_libs
19445
19446 # Flag to hardcode \$libdir into a binary during linking.
19447 # This must work even if \$libdir does not exist.
19448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19449
19450 # If ld is used when linking, flag to hardcode \$libdir into
19451 # a binary during linking. This must work even if \$libdir does
19452 # not exist.
19453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19454
19455 # Whether we need a single -rpath flag with a separated argument.
19456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19457
19458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19459 # resulting binary.
19460 hardcode_direct=$hardcode_direct_RC
19461
19462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19463 # resulting binary.
19464 hardcode_minus_L=$hardcode_minus_L_RC
19465
19466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19467 # the resulting binary.
19468 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19469
19470 # Set to yes if building a shared library automatically hardcodes DIR into the library
19471 # and all subsequent libraries and executables linked against it.
19472 hardcode_automatic=$hardcode_automatic_RC
19473
19474 # Variables whose values should be saved in libtool wrapper scripts and
19475 # restored at relink time.
19476 variables_saved_for_relink="$variables_saved_for_relink"
19477
19478 # Whether libtool must link a program against all its dependency libraries.
19479 link_all_deplibs=$link_all_deplibs_RC
19480
19481 # Compile-time system search path for libraries
19482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19483
19484 # Run-time system search path for libraries
19485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19486
19487 # Fix the shell variable \$srcfile for the compiler.
19488 fix_srcfile_path="$fix_srcfile_path_RC"
19489
19490 # Set to yes if exported symbols are required.
19491 always_export_symbols=$always_export_symbols_RC
19492
19493 # The commands to list exported symbols.
19494 export_symbols_cmds=$lt_export_symbols_cmds_RC
19495
19496 # The commands to extract the exported symbol list from a shared archive.
19497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19498
19499 # Symbols that should not be listed in the preloaded symbols.
19500 exclude_expsyms=$lt_exclude_expsyms_RC
19501
19502 # Symbols that must always be exported.
19503 include_expsyms=$lt_include_expsyms_RC
19504
19505 # ### END LIBTOOL TAG CONFIG: $tagname
19506
19507 __EOF__
19508
19509
19510 else
19511 # If there is no Makefile yet, we rely on a make rule to execute
19512 # `config.status --recheck' to rerun these tests and create the
19513 # libtool script then.
19514 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19515 if test -f "$ltmain_in"; then
19516 test -f Makefile && make "$ltmain"
19517 fi
19518 fi
19519
19520
19521 ac_ext=c
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19526
19527 CC="$lt_save_CC"
19528
19529 ;;
19530
19531 *)
19532 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19533 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19534 { (exit 1); exit 1; }; }
19535 ;;
19536 esac
19537
19538 # Append the new tag name to the list of available tags.
19539 if test -n "$tagname" ; then
19540 available_tags="$available_tags $tagname"
19541 fi
19542 fi
19543 done
19544 IFS="$lt_save_ifs"
19545
19546 # Now substitute the updated list of available tags.
19547 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19548 mv "${ofile}T" "$ofile"
19549 chmod +x "$ofile"
19550 else
19551 rm -f "${ofile}T"
19552 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19553 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19554 { (exit 1); exit 1; }; }
19555 fi
19556 fi
19557
19558
19559
19560 # This can be used to rebuild libtool when needed
19561 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19562
19563 # Always use our own libtool.
19564 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19565
19566 # Prevent multiple expansion
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587 echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
19588 echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6
19589 if test -n "$CXX"
19590 then
19591 if test "$GXX" = "yes"
19592 then
19593 ac_compile_warnings_opt='-Wall'
19594 fi
19595 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
19596 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
19597 fi
19598
19599 ac_compile_warnings_opt=
19600 if test -n "$CC"
19601 then
19602 if test "$GCC" = "yes"
19603 then
19604 ac_compile_warnings_opt='-Wall'
19605 fi
19606 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
19607 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
19608 fi
19609 echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
19610 echo "${ECHO_T}$ac_compile_warnings_msg" >&6
19611 unset ac_compile_warnings_msg
19612 unset ac_compile_warnings_opt
19613
19614 echo "$as_me:$LINENO: checking adding -fno-rtti to g++" >&5
19615 echo $ECHO_N "checking adding -fno-rtti to g++... $ECHO_C" >&6
19616 if test -n "$CXX"
19617 then
19618 if test "$GXX" = "yes"
19619 then
19620 CXXFLAGS_save="$CXXFLAGS"
19621 CXXFLAGS="$CXXFLAGS -fno-rtti"
19622
19623
19624 ac_ext=cc
19625 ac_cpp='$CXXCPP $CPPFLAGS'
19626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19629
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636
19637 int
19638 main ()
19639 {
19640
19641 ;
19642 return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 :
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 CXXFLAGS="$CXXFLAGS_save"
19672 fi
19673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19674 ac_ext=c
19675 ac_cpp='$CPP $CPPFLAGS'
19676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679
19680 fi
19681 fi
19682 echo "$as_me:$LINENO: result: ok" >&5
19683 echo "${ECHO_T}ok" >&6
19684
19685 echo "$as_me:$LINENO: checking adding -fno-exceptions to g++" >&5
19686 echo $ECHO_N "checking adding -fno-exceptions to g++... $ECHO_C" >&6
19687 if test -n "$CXX"
19688 then
19689 if test "$GXX" = "yes"
19690 then
19691 CXXFLAGS_save="$CXXFLAGS"
19692 CXXFLAGS="$CXXFLAGS -fno-exceptions"
19693
19694
19695 ac_ext=cc
19696 ac_cpp='$CXXCPP $CPPFLAGS'
19697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19700
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h. */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707
19708 int
19709 main ()
19710 {
19711
19712 ;
19713 return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 :
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 CXXFLAGS="$CXXFLAGS_save"
19743 fi
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 ac_ext=c
19746 ac_cpp='$CPP $CPPFLAGS'
19747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
19751 fi
19752 fi
19753 echo "$as_me:$LINENO: result: ok" >&5
19754 echo "${ECHO_T}ok" >&6
19755
19756 # Extract the first word of "ar", so it can be a program name with args.
19757 set dummy ar; ac_word=$2
19758 echo "$as_me:$LINENO: checking for $ac_word" >&5
19759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19760 if test "${ac_cv_path_AR+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 case $AR in
19764 [\\/]* | ?:[\\/]*)
19765 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19766 ;;
19767 *)
19768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19769 for as_dir in $PATH
19770 do
19771 IFS=$as_save_IFS
19772 test -z "$as_dir" && as_dir=.
19773 for ac_exec_ext in '' $ac_executable_extensions; do
19774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19775 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777 break 2
19778 fi
19779 done
19780 done
19781
19782 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
19783 ;;
19784 esac
19785 fi
19786 AR=$ac_cv_path_AR
19787
19788 if test -n "$AR"; then
19789 echo "$as_me:$LINENO: result: $AR" >&5
19790 echo "${ECHO_T}$AR" >&6
19791 else
19792 echo "$as_me:$LINENO: result: no" >&5
19793 echo "${ECHO_T}no" >&6
19794 fi
19795
19796 # Extract the first word of "sh", so it can be a program name with args.
19797 set dummy sh; ac_word=$2
19798 echo "$as_me:$LINENO: checking for $ac_word" >&5
19799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19800 if test "${ac_cv_path_SHELL+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 case $SHELL in
19804 [\\/]* | ?:[\\/]*)
19805 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
19806 ;;
19807 *)
19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 for as_dir in $PATH
19810 do
19811 IFS=$as_save_IFS
19812 test -z "$as_dir" && as_dir=.
19813 for ac_exec_ext in '' $ac_executable_extensions; do
19814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19815 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
19816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19817 break 2
19818 fi
19819 done
19820 done
19821
19822 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/sh"
19823 ;;
19824 esac
19825 fi
19826 SHELL=$ac_cv_path_SHELL
19827
19828 if test -n "$SHELL"; then
19829 echo "$as_me:$LINENO: result: $SHELL" >&5
19830 echo "${ECHO_T}$SHELL" >&6
19831 else
19832 echo "$as_me:$LINENO: result: no" >&5
19833 echo "${ECHO_T}no" >&6
19834 fi
19835
19836 # Extract the first word of "sed", so it can be a program name with args.
19837 set dummy sed; ac_word=$2
19838 echo "$as_me:$LINENO: checking for $ac_word" >&5
19839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19840 if test "${ac_cv_path_SED+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 case $SED in
19844 [\\/]* | ?:[\\/]*)
19845 ac_cv_path_SED="$SED" # Let the user override the test with a path.
19846 ;;
19847 *)
19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $PATH
19850 do
19851 IFS=$as_save_IFS
19852 test -z "$as_dir" && as_dir=.
19853 for ac_exec_ext in '' $ac_executable_extensions; do
19854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19855 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
19856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19857 break 2
19858 fi
19859 done
19860 done
19861
19862 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
19863 ;;
19864 esac
19865 fi
19866 SED=$ac_cv_path_SED
19867
19868 if test -n "$SED"; then
19869 echo "$as_me:$LINENO: result: $SED" >&5
19870 echo "${ECHO_T}$SED" >&6
19871 else
19872 echo "$as_me:$LINENO: result: no" >&5
19873 echo "${ECHO_T}no" >&6
19874 fi
19875
19876 # Extract the first word of "perl", so it can be a program name with args.
19877 set dummy perl; ac_word=$2
19878 echo "$as_me:$LINENO: checking for $ac_word" >&5
19879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19880 if test "${ac_cv_path_PERL+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 case $PERL in
19884 [\\/]* | ?:[\\/]*)
19885 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19886 ;;
19887 *)
19888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19889 for as_dir in $PATH
19890 do
19891 IFS=$as_save_IFS
19892 test -z "$as_dir" && as_dir=.
19893 for ac_exec_ext in '' $ac_executable_extensions; do
19894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19895 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19897 break 2
19898 fi
19899 done
19900 done
19901
19902 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
19903 ;;
19904 esac
19905 fi
19906 PERL=$ac_cv_path_PERL
19907
19908 if test -n "$PERL"; then
19909 echo "$as_me:$LINENO: result: $PERL" >&5
19910 echo "${ECHO_T}$PERL" >&6
19911 else
19912 echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6
19914 fi
19915
19916 # Extract the first word of "find", so it can be a program name with args.
19917 set dummy find; ac_word=$2
19918 echo "$as_me:$LINENO: checking for $ac_word" >&5
19919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19920 if test "${ac_cv_path_FIND+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923 case $FIND in
19924 [\\/]* | ?:[\\/]*)
19925 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19926 ;;
19927 *)
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929 for as_dir in $PATH
19930 do
19931 IFS=$as_save_IFS
19932 test -z "$as_dir" && as_dir=.
19933 for ac_exec_ext in '' $ac_executable_extensions; do
19934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19935 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19937 break 2
19938 fi
19939 done
19940 done
19941
19942 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/bin/find"
19943 ;;
19944 esac
19945 fi
19946 FIND=$ac_cv_path_FIND
19947
19948 if test -n "$FIND"; then
19949 echo "$as_me:$LINENO: result: $FIND" >&5
19950 echo "${ECHO_T}$FIND" >&6
19951 else
19952 echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6
19954 fi
19955
19956 # Extract the first word of "gunzip", so it can be a program name with args.
19957 set dummy gunzip; ac_word=$2
19958 echo "$as_me:$LINENO: checking for $ac_word" >&5
19959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19960 if test "${ac_cv_path_GUNZIP+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963 case $GUNZIP in
19964 [\\/]* | ?:[\\/]*)
19965 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
19966 ;;
19967 *)
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971 IFS=$as_save_IFS
19972 test -z "$as_dir" && as_dir=.
19973 for ac_exec_ext in '' $ac_executable_extensions; do
19974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19975 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
19976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19977 break 2
19978 fi
19979 done
19980 done
19981
19982 test -z "$ac_cv_path_GUNZIP" && ac_cv_path_GUNZIP="/bin/gunzip"
19983 ;;
19984 esac
19985 fi
19986 GUNZIP=$ac_cv_path_GUNZIP
19987
19988 if test -n "$GUNZIP"; then
19989 echo "$as_me:$LINENO: result: $GUNZIP" >&5
19990 echo "${ECHO_T}$GUNZIP" >&6
19991 else
19992 echo "$as_me:$LINENO: result: no" >&5
19993 echo "${ECHO_T}no" >&6
19994 fi
19995
19996 for ac_prog in rrdtool
19997 do
19998 # Extract the first word of "$ac_prog", so it can be a program name with args.
19999 set dummy $ac_prog; ac_word=$2
20000 echo "$as_me:$LINENO: checking for $ac_word" >&5
20001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20002 if test "${ac_cv_prog_RRDTOOL+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005 if test -n "$RRDTOOL"; then
20006 ac_cv_prog_RRDTOOL="$RRDTOOL" # Let the user override the test.
20007 else
20008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009 for as_dir in $PATH
20010 do
20011 IFS=$as_save_IFS
20012 test -z "$as_dir" && as_dir=.
20013 for ac_exec_ext in '' $ac_executable_extensions; do
20014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20015 ac_cv_prog_RRDTOOL="$ac_prog"
20016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20017 break 2
20018 fi
20019 done
20020 done
20021
20022 fi
20023 fi
20024 RRDTOOL=$ac_cv_prog_RRDTOOL
20025 if test -n "$RRDTOOL"; then
20026 echo "$as_me:$LINENO: result: $RRDTOOL" >&5
20027 echo "${ECHO_T}$RRDTOOL" >&6
20028 else
20029 echo "$as_me:$LINENO: result: no" >&5
20030 echo "${ECHO_T}no" >&6
20031 fi
20032
20033 test -n "$RRDTOOL" && break
20034 done
20035
20036 for ac_prog in tar gtar gnutar
20037 do
20038 # Extract the first word of "$ac_prog", so it can be a program name with args.
20039 set dummy $ac_prog; ac_word=$2
20040 echo "$as_me:$LINENO: checking for $ac_word" >&5
20041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20042 if test "${ac_cv_prog_TAR+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 if test -n "$TAR"; then
20046 ac_cv_prog_TAR="$TAR" # Let the user override the test.
20047 else
20048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20049 for as_dir in $PATH
20050 do
20051 IFS=$as_save_IFS
20052 test -z "$as_dir" && as_dir=.
20053 for ac_exec_ext in '' $ac_executable_extensions; do
20054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20055 ac_cv_prog_TAR="$ac_prog"
20056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20057 break 2
20058 fi
20059 done
20060 done
20061
20062 fi
20063 fi
20064 TAR=$ac_cv_prog_TAR
20065 if test -n "$TAR"; then
20066 echo "$as_me:$LINENO: result: $TAR" >&5
20067 echo "${ECHO_T}$TAR" >&6
20068 else
20069 echo "$as_me:$LINENO: result: no" >&5
20070 echo "${ECHO_T}no" >&6
20071 fi
20072
20073 test -n "$TAR" && break
20074 done
20075 test -n "$TAR" || TAR="tar"
20076
20077 # Extract the first word of "mv", so it can be a program name with args.
20078 set dummy mv; ac_word=$2
20079 echo "$as_me:$LINENO: checking for $ac_word" >&5
20080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20081 if test "${ac_cv_path_MV+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084 case $MV in
20085 [\\/]* | ?:[\\/]*)
20086 ac_cv_path_MV="$MV" # Let the user override the test with a path.
20087 ;;
20088 *)
20089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090 for as_dir in $PATH
20091 do
20092 IFS=$as_save_IFS
20093 test -z "$as_dir" && as_dir=.
20094 for ac_exec_ext in '' $ac_executable_extensions; do
20095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
20097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20098 break 2
20099 fi
20100 done
20101 done
20102
20103 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
20104 ;;
20105 esac
20106 fi
20107 MV=$ac_cv_path_MV
20108
20109 if test -n "$MV"; then
20110 echo "$as_me:$LINENO: result: $MV" >&5
20111 echo "${ECHO_T}$MV" >&6
20112 else
20113 echo "$as_me:$LINENO: result: no" >&5
20114 echo "${ECHO_T}no" >&6
20115 fi
20116
20117 # Extract the first word of "sendmail", so it can be a program name with args.
20118 set dummy sendmail; ac_word=$2
20119 echo "$as_me:$LINENO: checking for $ac_word" >&5
20120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20121 if test "${ac_cv_path_SENDMAIL+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 else
20124 case $SENDMAIL in
20125 [\\/]* | ?:[\\/]*)
20126 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
20127 ;;
20128 *)
20129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130 as_dummy="$PATH:/usr/libexec:/usr/sbin:/usr/lib:/usr/etc:etc"
20131 for as_dir in $as_dummy
20132 do
20133 IFS=$as_save_IFS
20134 test -z "$as_dir" && as_dir=.
20135 for ac_exec_ext in '' $ac_executable_extensions; do
20136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20137 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
20138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20139 break 2
20140 fi
20141 done
20142 done
20143
20144 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
20145 ;;
20146 esac
20147 fi
20148 SENDMAIL=$ac_cv_path_SENDMAIL
20149
20150 if test -n "$SENDMAIL"; then
20151 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
20152 echo "${ECHO_T}$SENDMAIL" >&6
20153 else
20154 echo "$as_me:$LINENO: result: no" >&5
20155 echo "${ECHO_T}no" >&6
20156 fi
20157
20158
20159 # Extract the first word of "time", so it can be a program name with args.
20160 set dummy time; ac_word=$2
20161 echo "$as_me:$LINENO: checking for $ac_word" >&5
20162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20163 if test "${ac_cv_path_TIME+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166 case $TIME in
20167 [\\/]* | ?:[\\/]*)
20168 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
20169 ;;
20170 *)
20171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20172 for as_dir in $PATH
20173 do
20174 IFS=$as_save_IFS
20175 test -z "$as_dir" && as_dir=.
20176 for ac_exec_ext in '' $ac_executable_extensions; do
20177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20178 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
20179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20180 break 2
20181 fi
20182 done
20183 done
20184
20185 test -z "$ac_cv_path_TIME" && ac_cv_path_TIME="time"
20186 ;;
20187 esac
20188 fi
20189 TIME=$ac_cv_path_TIME
20190
20191 if test -n "$TIME"; then
20192 echo "$as_me:$LINENO: result: $TIME" >&5
20193 echo "${ECHO_T}$TIME" >&6
20194 else
20195 echo "$as_me:$LINENO: result: no" >&5
20196 echo "${ECHO_T}no" >&6
20197 fi
20198
20199 #
20200 # Try various flags for verbose time information,
20201 # if none works TIMEV is the same as TIME
20202 #
20203 echo "$as_me:$LINENO: checking verbose time flag" >&5
20204 echo $ECHO_N "checking verbose time flag... $ECHO_C" >&6
20205 for timev in "$TIME -v" "$TIME -l" $TIME
20206 do
20207 if $timev echo >/dev/null 2>&1
20208 then
20209 TIMEV=$timev
20210 break
20211 fi
20212 done
20213 echo "$as_me:$LINENO: result: $TIMEV" >&5
20214 echo "${ECHO_T}$TIMEV" >&6
20215
20216
20217
20218
20219 # Checks for libraries.
20220 #AC_CHECK_LIB([z], [main])
20221
20222 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20223 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
20224 if test "${ac_cv_lib_socket_socket+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227 ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lsocket $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235
20236 /* Override any gcc2 internal prototype to avoid an error. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 /* We use char because int might match the return type of a gcc2
20241 builtin and then its argument prototype would still apply. */
20242 char socket ();
20243 int
20244 main ()
20245 {
20246 socket ();
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253 (eval $ac_link) 2>conftest.er1
20254 ac_status=$?
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest$ac_exeext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_lib_socket_socket=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_lib_socket_socket=no
20278 fi
20279 rm -f conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20282 fi
20283 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20284 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
20285 if test $ac_cv_lib_socket_socket = yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBSOCKET 1
20288 _ACEOF
20289
20290 LIBS="-lsocket $LIBS"
20291
20292 fi
20293
20294
20295 echo "$as_me:$LINENO: checking for t_accept in -lnsl" >&5
20296 echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6
20297 if test "${ac_cv_lib_nsl_t_accept+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 ac_check_lib_save_LIBS=$LIBS
20301 LIBS="-lnsl $LIBS"
20302 cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308
20309 /* Override any gcc2 internal prototype to avoid an error. */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 /* We use char because int might match the return type of a gcc2
20314 builtin and then its argument prototype would still apply. */
20315 char t_accept ();
20316 int
20317 main ()
20318 {
20319 t_accept ();
20320 ;
20321 return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326 (eval $ac_link) 2>conftest.er1
20327 ac_status=$?
20328 grep -v '^ *+' conftest.er1 >conftest.err
20329 rm -f conftest.er1
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); } &&
20333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_lib_nsl_t_accept=yes
20346 else
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ac_cv_lib_nsl_t_accept=no
20351 fi
20352 rm -f conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_accept" >&5
20357 echo "${ECHO_T}$ac_cv_lib_nsl_t_accept" >&6
20358 if test $ac_cv_lib_nsl_t_accept = yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBNSL 1
20361 _ACEOF
20362
20363 LIBS="-lnsl $LIBS"
20364
20365 fi
20366
20367 echo "$as_me:$LINENO: checking if ssl is wanted" >&5
20368 echo $ECHO_N "checking if ssl is wanted... $ECHO_C" >&6
20369
20370 # Check whether --with-ssl or --without-ssl was given.
20371 if test "${with_ssl+set}" = set; then
20372 withval="$with_ssl"
20373 echo "$as_me:$LINENO: result: yes" >&5
20374 echo "${ECHO_T}yes" >&6
20375 if test "$withval" = "yes" ; then
20376 withval=""
20377 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
20378 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20379 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20380 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 fi
20383 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
20385 else
20386 # Is the header compilable?
20387 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
20388 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20396 #include <openssl/ssl.h>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20400 (eval $ac_compile) 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest.$ac_objext'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_header_compiler=yes
20420 else
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424 ac_header_compiler=no
20425 fi
20426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20428 echo "${ECHO_T}$ac_header_compiler" >&6
20429
20430 # Is the header present?
20431 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
20432 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <openssl/ssl.h>
20440 _ACEOF
20441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } >/dev/null; then
20449 if test -s conftest.err; then
20450 ac_cpp_err=$ac_c_preproc_warn_flag
20451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20452 else
20453 ac_cpp_err=
20454 fi
20455 else
20456 ac_cpp_err=yes
20457 fi
20458 if test -z "$ac_cpp_err"; then
20459 ac_header_preproc=yes
20460 else
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 ac_header_preproc=no
20465 fi
20466 rm -f conftest.err conftest.$ac_ext
20467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20468 echo "${ECHO_T}$ac_header_preproc" >&6
20469
20470 # So? What about this header?
20471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20472 yes:no: )
20473 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20474 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
20476 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
20477 ac_header_preproc=yes
20478 ;;
20479 no:yes:* )
20480 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
20481 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
20483 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
20485 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
20487 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
20489 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
20491 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
20492 (
20493 cat <<\_ASBOX
20494 ## ------------------------------------------ ##
20495 ## Report this to the AC_PACKAGE_NAME lists. ##
20496 ## ------------------------------------------ ##
20497 _ASBOX
20498 ) |
20499 sed "s/^/$as_me: WARNING: /" >&2
20500 ;;
20501 esac
20502 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20503 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20504 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 ac_cv_header_openssl_ssl_h=$ac_header_preproc
20508 fi
20509 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
20510 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
20511
20512 fi
20513 if test $ac_cv_header_openssl_ssl_h = yes; then
20514 ssldir="default paths"; found_ssl=yes
20515 fi
20516
20517
20518 fi
20519 if test "$found_ssl" = "" ;then
20520 for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg ; do
20521 ssldir="$dir"
20522 if test -f "$dir/include/openssl/ssl.h"; then
20523 found_ssl=yes;
20524 CPPFLAGS="$CPPFLAGS -I$ssldir/include";
20525 LDFLAGS="$LDFLAGS -L$ssldir/lib";
20526 break;
20527 fi
20528 done
20529 fi
20530 if test x_$found_ssl != x_yes; then
20531 { { echo "$as_me:$LINENO: error: Cannot find ssl libraries" >&5
20532 echo "$as_me: error: Cannot find ssl libraries" >&2;}
20533 { (exit 1); exit 1; }; }
20534 else
20535 printf "OpenSSL found in $ssldir\n";
20536 LIBS="$LIBS -lssl -lcrypto";
20537 HAVE_SSL=yes
20538 fi
20539
20540
20541 cat >>confdefs.h <<\_ACEOF
20542 #define HAVE_SSL_H
20543 _ACEOF
20544
20545
20546 else
20547
20548 echo "$as_me:$LINENO: result: no" >&5
20549 echo "${ECHO_T}no" >&6
20550
20551 fi;
20552
20553 #
20554 # Handle user hints
20555 #
20556 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
20557 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
20558
20559 # Check whether --with-zlib or --without-zlib was given.
20560 if test "${with_zlib+set}" = set; then
20561 withval="$with_zlib"
20562 if test "$withval" = no ; then
20563 echo "$as_me:$LINENO: result: no" >&5
20564 echo "${ECHO_T}no" >&6
20565 else
20566 echo "$as_me:$LINENO: result: yes" >&5
20567 echo "${ECHO_T}yes" >&6
20568 if test "$withval" = yes ; then
20569 ZLIB_HOME="default path"
20570 else
20571 LDFLAGS="$LDFLAGS -L$withval/lib"
20572 CPPFLAGS="$CPPFLAGS -I$withval/include"
20573 ZLIB_HOME="$withval"
20574 fi
20575 fi
20576 else
20577
20578 echo "$as_me:$LINENO: result: yes" >&5
20579 echo "${ECHO_T}yes" >&6
20580 ZLIB_HOME="default path"
20581
20582 fi;
20583
20584 #
20585 # Locate zlib, if wanted
20586 #
20587 if test -n "${ZLIB_HOME}"
20588 then
20589
20590
20591 ac_ext=c
20592 ac_cpp='$CPP $CPPFLAGS'
20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
20597 echo "$as_me:$LINENO: checking for zlib in $ZLIB_HOME" >&5
20598 echo $ECHO_N "checking for zlib in $ZLIB_HOME... $ECHO_C" >&6
20599 if test "${ac_cv_header_zlib_h+set}" = set; then
20600 echo "$as_me:$LINENO: checking for zlib.h" >&5
20601 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20602 if test "${ac_cv_header_zlib_h+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 fi
20605 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20606 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20607 else
20608 # Is the header compilable?
20609 echo "$as_me:$LINENO: checking zlib.h usability" >&5
20610 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h. */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20618 #include <zlib.h>
20619 _ACEOF
20620 rm -f conftest.$ac_objext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_header_compiler=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_header_compiler=no
20647 fi
20648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650 echo "${ECHO_T}$ac_header_compiler" >&6
20651
20652 # Is the header present?
20653 echo "$as_me:$LINENO: checking zlib.h presence" >&5
20654 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h. */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20661 #include <zlib.h>
20662 _ACEOF
20663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20665 ac_status=$?
20666 grep -v '^ *+' conftest.er1 >conftest.err
20667 rm -f conftest.er1
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } >/dev/null; then
20671 if test -s conftest.err; then
20672 ac_cpp_err=$ac_c_preproc_warn_flag
20673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20674 else
20675 ac_cpp_err=
20676 fi
20677 else
20678 ac_cpp_err=yes
20679 fi
20680 if test -z "$ac_cpp_err"; then
20681 ac_header_preproc=yes
20682 else
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 ac_header_preproc=no
20687 fi
20688 rm -f conftest.err conftest.$ac_ext
20689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6
20691
20692 # So? What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694 yes:no: )
20695 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20696 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20698 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20699 ac_header_preproc=yes
20700 ;;
20701 no:yes:* )
20702 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20707 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20709 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20711 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20713 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20714 (
20715 cat <<\_ASBOX
20716 ## ------------------------------------------ ##
20717 ## Report this to the AC_PACKAGE_NAME lists. ##
20718 ## ------------------------------------------ ##
20719 _ASBOX
20720 ) |
20721 sed "s/^/$as_me: WARNING: /" >&2
20722 ;;
20723 esac
20724 echo "$as_me:$LINENO: checking for zlib.h" >&5
20725 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20726 if test "${ac_cv_header_zlib_h+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729 ac_cv_header_zlib_h=$ac_header_preproc
20730 fi
20731 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20732 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20733
20734 fi
20735 if test $ac_cv_header_zlib_h = yes; then
20736 zlib_cv_zlib_h=yes
20737 else
20738 zlib_cv_zlib_h=no
20739 fi
20740
20741
20742 if test "$zlib_cv_zlib_h" = yes; then
20743
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_ZLIB_H
20746 _ACEOF
20747
20748
20749 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
20750 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
20751 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754 ac_check_lib_save_LIBS=$LIBS
20755 LIBS="-lz $LIBS"
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h. */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762
20763 /* Override any gcc2 internal prototype to avoid an error. */
20764 #ifdef __cplusplus
20765 extern "C"
20766 #endif
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20769 char inflateEnd ();
20770 int
20771 main ()
20772 {
20773 inflateEnd ();
20774 ;
20775 return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; } &&
20793 { ac_try='test -s conftest$ac_exeext'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 ac_cv_lib_z_inflateEnd=yes
20800 else
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_cv_lib_z_inflateEnd=no
20805 fi
20806 rm -f conftest.err conftest.$ac_objext \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20809 fi
20810 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
20811 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
20812 if test $ac_cv_lib_z_inflateEnd = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_LIBZ 1
20815 _ACEOF
20816
20817 LIBS="-lz $LIBS"
20818
20819 fi
20820
20821 fi
20822 if test "${ac_cv_lib_z_inflateEnd:+yes}" != yes
20823 then
20824 #
20825 # If either header or library was not found, bomb
20826 #
20827 echo "$as_me:$LINENO: result: failed" >&5
20828 echo "${ECHO_T}failed" >&6
20829 { { echo "$as_me:$LINENO: error: Either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib." >&5
20830 echo "$as_me: error: Either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib." >&2;}
20831 { (exit 1); exit 1; }; }
20832 fi
20833 ac_ext=c
20834 ac_cpp='$CPP $CPPFLAGS'
20835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20838
20839 fi
20840
20841
20842
20843
20844
20845
20846 # Checks for header files.
20847 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
20848 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
20849 if test "${ac_cv_header_stdbool_h+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858
20859 #include <stdbool.h>
20860 #ifndef bool
20861 # error bool is not defined
20862 #endif
20863 #ifndef false
20864 # error false is not defined
20865 #endif
20866 #if false
20867 # error false is not 0
20868 #endif
20869 #ifndef true
20870 # error true is not defined
20871 #endif
20872 #if true != 1
20873 # error true is not 1
20874 #endif
20875 #ifndef __bool_true_false_are_defined
20876 # error __bool_true_false_are_defined is not defined
20877 #endif
20878
20879 struct s { _Bool s: 1; _Bool t; } s;
20880
20881 char a[true == 1 ? 1 : -1];
20882 char b[false == 0 ? 1 : -1];
20883 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20884 char d[(bool) -0.5 == true ? 1 : -1];
20885 bool e = &s;
20886 char f[(_Bool) -0.0 == false ? 1 : -1];
20887 char g[true];
20888 char h[sizeof (_Bool)];
20889 char i[sizeof s.t];
20890
20891 int
20892 main ()
20893 {
20894 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
20895 ;
20896 return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20901 (eval $ac_compile) 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_cv_header_stdbool_h=yes
20921 else
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ac_cv_header_stdbool_h=no
20926 fi
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928 fi
20929 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20930 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
20931 echo "$as_me:$LINENO: checking for _Bool" >&5
20932 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
20933 if test "${ac_cv_type__Bool+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 $ac_includes_default
20943 int
20944 main ()
20945 {
20946 if ((_Bool *) 0)
20947 return 0;
20948 if (sizeof (_Bool))
20949 return 0;
20950 ;
20951 return 0;
20952 }
20953 _ACEOF
20954 rm -f conftest.$ac_objext
20955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20956 (eval $ac_compile) 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 ac_cv_type__Bool=yes
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20979
20980 ac_cv_type__Bool=no
20981 fi
20982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20983 fi
20984 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20985 echo "${ECHO_T}$ac_cv_type__Bool" >&6
20986 if test $ac_cv_type__Bool = yes; then
20987
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE__BOOL 1
20990 _ACEOF
20991
20992
20993 fi
20994
20995 if test $ac_cv_header_stdbool_h = yes; then
20996
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_STDBOOL_H 1
20999 _ACEOF
21000
21001 fi
21002
21003 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21004 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21005 if test "${ac_cv_header_time+set}" = set; then
21006 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 #include <sys/types.h>
21015 #include <sys/time.h>
21016 #include <time.h>
21017
21018 int
21019 main ()
21020 {
21021 if ((struct tm *) 0)
21022 return 0;
21023 ;
21024 return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21029 (eval $ac_compile) 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } &&
21036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; } &&
21042 { ac_try='test -s conftest.$ac_objext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 ac_cv_header_time=yes
21049 else
21050 echo "$as_me: failed program was:" >&5
21051 sed 's/^/| /' conftest.$ac_ext >&5
21052
21053 ac_cv_header_time=no
21054 fi
21055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21056 fi
21057 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21058 echo "${ECHO_T}$ac_cv_header_time" >&6
21059 if test $ac_cv_header_time = yes; then
21060
21061 cat >>confdefs.h <<\_ACEOF
21062 #define TIME_WITH_SYS_TIME 1
21063 _ACEOF
21064
21065 fi
21066
21067 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21068 # for constant arguments. Useless!
21069 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21070 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21071 if test "${ac_cv_working_alloca_h+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 #include <alloca.h>
21081 int
21082 main ()
21083 {
21084 char *p = (char *) alloca (2 * sizeof (int));
21085 ;
21086 return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest$ac_exeext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_working_alloca_h=yes
21111 else
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ac_cv_working_alloca_h=no
21116 fi
21117 rm -f conftest.err conftest.$ac_objext \
21118 conftest$ac_exeext conftest.$ac_ext
21119 fi
21120 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21121 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21122 if test $ac_cv_working_alloca_h = yes; then
21123
21124 cat >>confdefs.h <<\_ACEOF
21125 #define HAVE_ALLOCA_H 1
21126 _ACEOF
21127
21128 fi
21129
21130 echo "$as_me:$LINENO: checking for alloca" >&5
21131 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21132 if test "${ac_cv_func_alloca_works+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h. */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #ifdef __GNUC__
21142 # define alloca __builtin_alloca
21143 #else
21144 # ifdef _MSC_VER
21145 # include <malloc.h>
21146 # define alloca _alloca
21147 # else
21148 # if HAVE_ALLOCA_H
21149 # include <alloca.h>
21150 # else
21151 # ifdef _AIX
21152 #pragma alloca
21153 # else
21154 # ifndef alloca /* predefined by HP cc +Olibcalls */
21155 char *alloca ();
21156 # endif
21157 # endif
21158 # endif
21159 # endif
21160 #endif
21161
21162 int
21163 main ()
21164 {
21165 char *p = (char *) alloca (1);
21166 ;
21167 return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest$ac_exeext'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_cv_func_alloca_works=yes
21192 else
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196 ac_cv_func_alloca_works=no
21197 fi
21198 rm -f conftest.err conftest.$ac_objext \
21199 conftest$ac_exeext conftest.$ac_ext
21200 fi
21201 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21202 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21203
21204 if test $ac_cv_func_alloca_works = yes; then
21205
21206 cat >>confdefs.h <<\_ACEOF
21207 #define HAVE_ALLOCA 1
21208 _ACEOF
21209
21210 else
21211 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21212 # that cause trouble. Some versions do not even contain alloca or
21213 # contain a buggy version. If you still want to use their alloca,
21214 # use ar to extract alloca.o from them instead of compiling alloca.c.
21215
21216 ALLOCA=alloca.$ac_objext
21217
21218 cat >>confdefs.h <<\_ACEOF
21219 #define C_ALLOCA 1
21220 _ACEOF
21221
21222
21223 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21224 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21225 if test "${ac_cv_os_cray+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #if defined(CRAY) && ! defined(CRAY2)
21235 webecray
21236 #else
21237 wenotbecray
21238 #endif
21239
21240 _ACEOF
21241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21242 $EGREP "webecray" >/dev/null 2>&1; then
21243 ac_cv_os_cray=yes
21244 else
21245 ac_cv_os_cray=no
21246 fi
21247 rm -f conftest*
21248
21249 fi
21250 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21251 echo "${ECHO_T}$ac_cv_os_cray" >&6
21252 if test $ac_cv_os_cray = yes; then
21253 for ac_func in _getb67 GETB67 getb67; do
21254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21255 echo "$as_me:$LINENO: checking for $ac_func" >&5
21256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21257 if eval "test \"\${$as_ac_var+set}\" = set"; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21268 #define $ac_func innocuous_$ac_func
21269
21270 /* System header to define __stub macros and hopefully few prototypes,
21271 which can conflict with char $ac_func (); below.
21272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21273 <limits.h> exists even on freestanding compilers. */
21274
21275 #ifdef __STDC__
21276 # include <limits.h>
21277 #else
21278 # include <assert.h>
21279 #endif
21280
21281 #undef $ac_func
21282
21283 /* Override any gcc2 internal prototype to avoid an error. */
21284 #ifdef __cplusplus
21285 extern "C"
21286 {
21287 #endif
21288 /* We use char because int might match the return type of a gcc2
21289 builtin and then its argument prototype would still apply. */
21290 char $ac_func ();
21291 /* The GNU C library defines this for functions which it implements
21292 to always fail with ENOSYS. Some functions are actually named
21293 something starting with __ and the normal name is an alias. */
21294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21295 choke me
21296 #else
21297 char (*f) () = $ac_func;
21298 #endif
21299 #ifdef __cplusplus
21300 }
21301 #endif
21302
21303 int
21304 main ()
21305 {
21306 return f != $ac_func;
21307 ;
21308 return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>conftest.er1
21314 ac_status=$?
21315 grep -v '^ *+' conftest.er1 >conftest.err
21316 rm -f conftest.er1
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 eval "$as_ac_var=yes"
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 eval "$as_ac_var=no"
21338 fi
21339 rm -f conftest.err conftest.$ac_objext \
21340 conftest$ac_exeext conftest.$ac_ext
21341 fi
21342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21344 if test `eval echo '${'$as_ac_var'}'` = yes; then
21345
21346 cat >>confdefs.h <<_ACEOF
21347 #define CRAY_STACKSEG_END $ac_func
21348 _ACEOF
21349
21350 break
21351 fi
21352
21353 done
21354 fi
21355
21356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21358 if test "${ac_cv_c_stack_direction+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 if test "$cross_compiling" = yes; then
21362 ac_cv_c_stack_direction=0
21363 else
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 int
21371 find_stack_direction ()
21372 {
21373 static char *addr = 0;
21374 auto char dummy;
21375 if (addr == 0)
21376 {
21377 addr = &dummy;
21378 return find_stack_direction ();
21379 }
21380 else
21381 return (&dummy > addr) ? 1 : -1;
21382 }
21383
21384 int
21385 main ()
21386 {
21387 exit (find_stack_direction () < 0);
21388 }
21389 _ACEOF
21390 rm -f conftest$ac_exeext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21392 (eval $ac_link) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21398 ac_status=$?
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ac_cv_c_stack_direction=1
21402 else
21403 echo "$as_me: program exited with status $ac_status" >&5
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407 ( exit $ac_status )
21408 ac_cv_c_stack_direction=-1
21409 fi
21410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21411 fi
21412 fi
21413 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21414 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21415
21416 cat >>confdefs.h <<_ACEOF
21417 #define STACK_DIRECTION $ac_cv_c_stack_direction
21418 _ACEOF
21419
21420
21421 fi
21422
21423
21424
21425
21426
21427
21428 ac_header_dirent=no
21429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21430 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21431 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21432 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
21433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <sys/types.h>
21443 #include <$ac_hdr>
21444
21445 int
21446 main ()
21447 {
21448 if ((DIR *) 0)
21449 return 0;
21450 ;
21451 return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456 (eval $ac_compile) 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 eval "$as_ac_Header=yes"
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 eval "$as_ac_Header=no"
21481 fi
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21483 fi
21484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487 cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 ac_header_dirent=$ac_hdr; break
21492 fi
21493
21494 done
21495 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21496 if test $ac_header_dirent = dirent.h; then
21497 echo "$as_me:$LINENO: checking for library containing opendir" >&5
21498 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21499 if test "${ac_cv_search_opendir+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 ac_func_search_save_LIBS=$LIBS
21503 ac_cv_search_opendir=no
21504 cat >conftest.$ac_ext <<_ACEOF
21505 /* confdefs.h. */
21506 _ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21510
21511 /* Override any gcc2 internal prototype to avoid an error. */
21512 #ifdef __cplusplus
21513 extern "C"
21514 #endif
21515 /* We use char because int might match the return type of a gcc2
21516 builtin and then its argument prototype would still apply. */
21517 char opendir ();
21518 int
21519 main ()
21520 {
21521 opendir ();
21522 ;
21523 return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21528 (eval $ac_link) 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest$ac_exeext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_search_opendir="none required"
21548 else
21549 echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 fi
21553 rm -f conftest.err conftest.$ac_objext \
21554 conftest$ac_exeext conftest.$ac_ext
21555 if test "$ac_cv_search_opendir" = no; then
21556 for ac_lib in dir; do
21557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564
21565 /* Override any gcc2 internal prototype to avoid an error. */
21566 #ifdef __cplusplus
21567 extern "C"
21568 #endif
21569 /* We use char because int might match the return type of a gcc2
21570 builtin and then its argument prototype would still apply. */
21571 char opendir ();
21572 int
21573 main ()
21574 {
21575 opendir ();
21576 ;
21577 return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext conftest$ac_exeext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21582 (eval $ac_link) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; } &&
21595 { ac_try='test -s conftest$ac_exeext'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; }; then
21601 ac_cv_search_opendir="-l$ac_lib"
21602 break
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 fi
21608 rm -f conftest.err conftest.$ac_objext \
21609 conftest$ac_exeext conftest.$ac_ext
21610 done
21611 fi
21612 LIBS=$ac_func_search_save_LIBS
21613 fi
21614 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21615 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21616 if test "$ac_cv_search_opendir" != no; then
21617 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21618
21619 fi
21620
21621 else
21622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
21623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21624 if test "${ac_cv_search_opendir+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627 ac_func_search_save_LIBS=$LIBS
21628 ac_cv_search_opendir=no
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635
21636 /* Override any gcc2 internal prototype to avoid an error. */
21637 #ifdef __cplusplus
21638 extern "C"
21639 #endif
21640 /* We use char because int might match the return type of a gcc2
21641 builtin and then its argument prototype would still apply. */
21642 char opendir ();
21643 int
21644 main ()
21645 {
21646 opendir ();
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21653 (eval $ac_link) 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } &&
21660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; } &&
21666 { ac_try='test -s conftest$ac_exeext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 ac_cv_search_opendir="none required"
21673 else
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 fi
21678 rm -f conftest.err conftest.$ac_objext \
21679 conftest$ac_exeext conftest.$ac_ext
21680 if test "$ac_cv_search_opendir" = no; then
21681 for ac_lib in x; do
21682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689
21690 /* Override any gcc2 internal prototype to avoid an error. */
21691 #ifdef __cplusplus
21692 extern "C"
21693 #endif
21694 /* We use char because int might match the return type of a gcc2
21695 builtin and then its argument prototype would still apply. */
21696 char opendir ();
21697 int
21698 main ()
21699 {
21700 opendir ();
21701 ;
21702 return 0;
21703 }
21704 _ACEOF
21705 rm -f conftest.$ac_objext conftest$ac_exeext
21706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21707 (eval $ac_link) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } &&
21714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; } &&
21720 { ac_try='test -s conftest$ac_exeext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_search_opendir="-l$ac_lib"
21727 break
21728 else
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 fi
21733 rm -f conftest.err conftest.$ac_objext \
21734 conftest$ac_exeext conftest.$ac_ext
21735 done
21736 fi
21737 LIBS=$ac_func_search_save_LIBS
21738 fi
21739 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21740 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21741 if test "$ac_cv_search_opendir" != no; then
21742 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21743
21744 fi
21745
21746 fi
21747
21748 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21750 if test "${ac_cv_header_stdc+set}" = set; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753 cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <stdlib.h>
21760 #include <stdarg.h>
21761 #include <string.h>
21762 #include <float.h>
21763
21764 int
21765 main ()
21766 {
21767
21768 ;
21769 return 0;
21770 }
21771 _ACEOF
21772 rm -f conftest.$ac_objext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21774 (eval $ac_compile) 2>conftest.er1
21775 ac_status=$?
21776 grep -v '^ *+' conftest.er1 >conftest.err
21777 rm -f conftest.er1
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); } &&
21781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; } &&
21787 { ac_try='test -s conftest.$ac_objext'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_header_stdc=yes
21794 else
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798 ac_cv_header_stdc=no
21799 fi
21800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21801
21802 if test $ac_cv_header_stdc = yes; then
21803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 #include <string.h>
21811
21812 _ACEOF
21813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21814 $EGREP "memchr" >/dev/null 2>&1; then
21815 :
21816 else
21817 ac_cv_header_stdc=no
21818 fi
21819 rm -f conftest*
21820
21821 fi
21822
21823 if test $ac_cv_header_stdc = yes; then
21824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 #include <stdlib.h>
21832
21833 _ACEOF
21834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21835 $EGREP "free" >/dev/null 2>&1; then
21836 :
21837 else
21838 ac_cv_header_stdc=no
21839 fi
21840 rm -f conftest*
21841
21842 fi
21843
21844 if test $ac_cv_header_stdc = yes; then
21845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21846 if test "$cross_compiling" = yes; then
21847 :
21848 else
21849 cat >conftest.$ac_ext <<_ACEOF
21850 /* confdefs.h. */
21851 _ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h. */
21855 #include <ctype.h>
21856 #if ((' ' & 0x0FF) == 0x020)
21857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21859 #else
21860 # define ISLOWER(c) \
21861 (('a' <= (c) && (c) <= 'i') \
21862 || ('j' <= (c) && (c) <= 'r') \
21863 || ('s' <= (c) && (c) <= 'z'))
21864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21865 #endif
21866
21867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21868 int
21869 main ()
21870 {
21871 int i;
21872 for (i = 0; i < 256; i++)
21873 if (XOR (islower (i), ISLOWER (i))
21874 || toupper (i) != TOUPPER (i))
21875 exit(2);
21876 exit (0);
21877 }
21878 _ACEOF
21879 rm -f conftest$ac_exeext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21881 (eval $ac_link) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 :
21891 else
21892 echo "$as_me: program exited with status $ac_status" >&5
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896 ( exit $ac_status )
21897 ac_cv_header_stdc=no
21898 fi
21899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21900 fi
21901 fi
21902 fi
21903 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21904 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21905 if test $ac_cv_header_stdc = yes; then
21906
21907 cat >>confdefs.h <<\_ACEOF
21908 #define STDC_HEADERS 1
21909 _ACEOF
21910
21911 fi
21912
21913 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21914 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21915 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918 cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h. */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 #include <sys/types.h>
21925 #include <sys/wait.h>
21926 #ifndef WEXITSTATUS
21927 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21928 #endif
21929 #ifndef WIFEXITED
21930 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21931 #endif
21932
21933 int
21934 main ()
21935 {
21936 int s;
21937 wait (&s);
21938 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21939 ;
21940 return 0;
21941 }
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945 (eval $ac_compile) 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest.$ac_objext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_cv_header_sys_wait_h=yes
21965 else
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 ac_cv_header_sys_wait_h=no
21970 fi
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972 fi
21973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21974 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21975 if test $ac_cv_header_sys_wait_h = yes; then
21976
21977 cat >>confdefs.h <<\_ACEOF
21978 #define HAVE_SYS_WAIT_H 1
21979 _ACEOF
21980
21981 fi
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006 for ac_header in arpa/inet.h fcntl.h float.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h wchar.h wctype.h
22007 do
22008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22010 echo "$as_me:$LINENO: checking for $ac_header" >&5
22011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 fi
22015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22017 else
22018 # Is the header compilable?
22019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 #include <$ac_header>
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032 (eval $ac_compile) 2>conftest.er1
22033 ac_status=$?
22034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest.$ac_objext'
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }; then
22051 ac_header_compiler=yes
22052 else
22053 echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056 ac_header_compiler=no
22057 fi
22058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22060 echo "${ECHO_T}$ac_header_compiler" >&6
22061
22062 # Is the header present?
22063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 #include <$ac_header>
22072 _ACEOF
22073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22075 ac_status=$?
22076 grep -v '^ *+' conftest.er1 >conftest.err
22077 rm -f conftest.er1
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } >/dev/null; then
22081 if test -s conftest.err; then
22082 ac_cpp_err=$ac_c_preproc_warn_flag
22083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22084 else
22085 ac_cpp_err=
22086 fi
22087 else
22088 ac_cpp_err=yes
22089 fi
22090 if test -z "$ac_cpp_err"; then
22091 ac_header_preproc=yes
22092 else
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 ac_header_preproc=no
22097 fi
22098 rm -f conftest.err conftest.$ac_ext
22099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22100 echo "${ECHO_T}$ac_header_preproc" >&6
22101
22102 # So? What about this header?
22103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22104 yes:no: )
22105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22109 ac_header_preproc=yes
22110 ;;
22111 no:yes:* )
22112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22124 (
22125 cat <<\_ASBOX
22126 ## ------------------------------------------ ##
22127 ## Report this to the AC_PACKAGE_NAME lists. ##
22128 ## ------------------------------------------ ##
22129 _ASBOX
22130 ) |
22131 sed "s/^/$as_me: WARNING: /" >&2
22132 ;;
22133 esac
22134 echo "$as_me:$LINENO: checking for $ac_header" >&5
22135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 eval "$as_ac_Header=\$ac_header_preproc"
22140 fi
22141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22143
22144 fi
22145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22146 cat >>confdefs.h <<_ACEOF
22147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22148 _ACEOF
22149
22150 fi
22151
22152 done
22153
22154 #AC_CHECK_HEADERS([zlib.h sys/wait.h wait.h alloca.h])
22155
22156
22157
22158 for ac_header in sys/wait.h wait.h alloca.h
22159 do
22160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22162 echo "$as_me:$LINENO: checking for $ac_header" >&5
22163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 fi
22167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22169 else
22170 # Is the header compilable?
22171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22173 cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h. */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 $ac_includes_default
22180 #include <$ac_header>
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184 (eval $ac_compile) 2>conftest.er1
22185 ac_status=$?
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } &&
22191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest.$ac_objext'
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22203 ac_header_compiler=yes
22204 else
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207
22208 ac_header_compiler=no
22209 fi
22210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22212 echo "${ECHO_T}$ac_header_compiler" >&6
22213
22214 # Is the header present?
22215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 #include <$ac_header>
22224 _ACEOF
22225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22227 ac_status=$?
22228 grep -v '^ *+' conftest.er1 >conftest.err
22229 rm -f conftest.er1
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } >/dev/null; then
22233 if test -s conftest.err; then
22234 ac_cpp_err=$ac_c_preproc_warn_flag
22235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22236 else
22237 ac_cpp_err=
22238 fi
22239 else
22240 ac_cpp_err=yes
22241 fi
22242 if test -z "$ac_cpp_err"; then
22243 ac_header_preproc=yes
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248 ac_header_preproc=no
22249 fi
22250 rm -f conftest.err conftest.$ac_ext
22251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22252 echo "${ECHO_T}$ac_header_preproc" >&6
22253
22254 # So? What about this header?
22255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22256 yes:no: )
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22261 ac_header_preproc=yes
22262 ;;
22263 no:yes:* )
22264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22276 (
22277 cat <<\_ASBOX
22278 ## ------------------------------------------ ##
22279 ## Report this to the AC_PACKAGE_NAME lists. ##
22280 ## ------------------------------------------ ##
22281 _ASBOX
22282 ) |
22283 sed "s/^/$as_me: WARNING: /" >&2
22284 ;;
22285 esac
22286 echo "$as_me:$LINENO: checking for $ac_header" >&5
22287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 eval "$as_ac_Header=\$ac_header_preproc"
22292 fi
22293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22295
22296 fi
22297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22298 cat >>confdefs.h <<_ACEOF
22299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22300 _ACEOF
22301
22302 fi
22303
22304 done
22305
22306 #AC_CHECK_HEADERS(ssl.h)
22307
22308 # Checks for typedefs, structures, and compiler characteristics.
22309 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22310 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22311 if test "${ac_cv_header_stat_broken+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 #include <sys/types.h>
22321 #include <sys/stat.h>
22322
22323 #if defined(S_ISBLK) && defined(S_IFDIR)
22324 # if S_ISBLK (S_IFDIR)
22325 You lose.
22326 # endif
22327 #endif
22328
22329 #if defined(S_ISBLK) && defined(S_IFCHR)
22330 # if S_ISBLK (S_IFCHR)
22331 You lose.
22332 # endif
22333 #endif
22334
22335 #if defined(S_ISLNK) && defined(S_IFREG)
22336 # if S_ISLNK (S_IFREG)
22337 You lose.
22338 # endif
22339 #endif
22340
22341 #if defined(S_ISSOCK) && defined(S_IFREG)
22342 # if S_ISSOCK (S_IFREG)
22343 You lose.
22344 # endif
22345 #endif
22346
22347 _ACEOF
22348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22349 $EGREP "You lose" >/dev/null 2>&1; then
22350 ac_cv_header_stat_broken=yes
22351 else
22352 ac_cv_header_stat_broken=no
22353 fi
22354 rm -f conftest*
22355
22356 fi
22357 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22358 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22359 if test $ac_cv_header_stat_broken = yes; then
22360
22361 cat >>confdefs.h <<\_ACEOF
22362 #define STAT_MACROS_BROKEN 1
22363 _ACEOF
22364
22365 fi
22366
22367 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22368 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
22369 if test "${ac_cv_header_stdbool_h+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372 cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h. */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22378
22379 #include <stdbool.h>
22380 #ifndef bool
22381 # error bool is not defined
22382 #endif
22383 #ifndef false
22384 # error false is not defined
22385 #endif
22386 #if false
22387 # error false is not 0
22388 #endif
22389 #ifndef true
22390 # error true is not defined
22391 #endif
22392 #if true != 1
22393 # error true is not 1
22394 #endif
22395 #ifndef __bool_true_false_are_defined
22396 # error __bool_true_false_are_defined is not defined
22397 #endif
22398
22399 struct s { _Bool s: 1; _Bool t; } s;
22400
22401 char a[true == 1 ? 1 : -1];
22402 char b[false == 0 ? 1 : -1];
22403 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22404 char d[(bool) -0.5 == true ? 1 : -1];
22405 bool e = &s;
22406 char f[(_Bool) -0.0 == false ? 1 : -1];
22407 char g[true];
22408 char h[sizeof (_Bool)];
22409 char i[sizeof s.t];
22410
22411 int
22412 main ()
22413 {
22414 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
22415 ;
22416 return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22421 (eval $ac_compile) 2>conftest.er1
22422 ac_status=$?
22423 grep -v '^ *+' conftest.er1 >conftest.err
22424 rm -f conftest.er1
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } &&
22428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; } &&
22434 { ac_try='test -s conftest.$ac_objext'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 ac_cv_header_stdbool_h=yes
22441 else
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22444
22445 ac_cv_header_stdbool_h=no
22446 fi
22447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22448 fi
22449 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22450 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
22451 echo "$as_me:$LINENO: checking for _Bool" >&5
22452 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
22453 if test "${ac_cv_type__Bool+set}" = set; then
22454 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 else
22456 cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h. */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22462 $ac_includes_default
22463 int
22464 main ()
22465 {
22466 if ((_Bool *) 0)
22467 return 0;
22468 if (sizeof (_Bool))
22469 return 0;
22470 ;
22471 return 0;
22472 }
22473 _ACEOF
22474 rm -f conftest.$ac_objext
22475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22476 (eval $ac_compile) 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } &&
22483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest.$ac_objext'
22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491 (eval $ac_try) 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); }; }; then
22495 ac_cv_type__Bool=yes
22496 else
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22499
22500 ac_cv_type__Bool=no
22501 fi
22502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22503 fi
22504 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22505 echo "${ECHO_T}$ac_cv_type__Bool" >&6
22506 if test $ac_cv_type__Bool = yes; then
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define HAVE__BOOL 1
22510 _ACEOF
22511
22512
22513 fi
22514
22515 if test $ac_cv_header_stdbool_h = yes; then
22516
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_STDBOOL_H 1
22519 _ACEOF
22520
22521 fi
22522
22523 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22524 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22525 if test "${ac_cv_c_const+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528 cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h. */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534
22535 int
22536 main ()
22537 {
22538 /* FIXME: Include the comments suggested by Paul. */
22539 #ifndef __cplusplus
22540 /* Ultrix mips cc rejects this. */
22541 typedef int charset[2];
22542 const charset x;
22543 /* SunOS 4.1.1 cc rejects this. */
22544 char const *const *ccp;
22545 char **p;
22546 /* NEC SVR4.0.2 mips cc rejects this. */
22547 struct point {int x, y;};
22548 static struct point const zero = {0,0};
22549 /* AIX XL C 1.02.0.0 rejects this.
22550 It does not let you subtract one const X* pointer from another in
22551 an arm of an if-expression whose if-part is not a constant
22552 expression */
22553 const char *g = "string";
22554 ccp = &g + (g ? g-g : 0);
22555 /* HPUX 7.0 cc rejects these. */
22556 ++ccp;
22557 p = (char**) ccp;
22558 ccp = (char const *const *) p;
22559 { /* SCO 3.2v4 cc rejects this. */
22560 char *t;
22561 char const *s = 0 ? (char *) 0 : (char const *) 0;
22562
22563 *t++ = 0;
22564 }
22565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22566 int x[] = {25, 17};
22567 const int *foo = &x[0];
22568 ++foo;
22569 }
22570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22571 typedef const int *iptr;
22572 iptr p = 0;
22573 ++p;
22574 }
22575 { /* AIX XL C 1.02.0.0 rejects this saying
22576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22577 struct s { int j; const int *ap[3]; };
22578 struct s *b; b->j = 5;
22579 }
22580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22581 const int foo = 10;
22582 }
22583 #endif
22584
22585 ;
22586 return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22591 (eval $ac_compile) 2>conftest.er1
22592 ac_status=$?
22593 grep -v '^ *+' conftest.er1 >conftest.err
22594 rm -f conftest.er1
22595 cat conftest.err >&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } &&
22598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; } &&
22604 { ac_try='test -s conftest.$ac_objext'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; }; then
22610 ac_cv_c_const=yes
22611 else
22612 echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ac_cv_c_const=no
22616 fi
22617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22618 fi
22619 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22620 echo "${ECHO_T}$ac_cv_c_const" >&6
22621 if test $ac_cv_c_const = no; then
22622
22623 cat >>confdefs.h <<\_ACEOF
22624 #define const
22625 _ACEOF
22626
22627 fi
22628
22629 echo "$as_me:$LINENO: checking for inline" >&5
22630 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22631 if test "${ac_cv_c_inline+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 else
22634 ac_cv_c_inline=no
22635 for ac_kw in inline __inline__ __inline; do
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 #ifndef __cplusplus
22643 typedef int foo_t;
22644 static $ac_kw foo_t static_foo () {return 0; }
22645 $ac_kw foo_t foo () {return 0; }
22646 #endif
22647
22648 _ACEOF
22649 rm -f conftest.$ac_objext
22650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22651 (eval $ac_compile) 2>conftest.er1
22652 ac_status=$?
22653 grep -v '^ *+' conftest.er1 >conftest.err
22654 rm -f conftest.er1
22655 cat conftest.err >&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } &&
22658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } &&
22664 { ac_try='test -s conftest.$ac_objext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 ac_cv_c_inline=$ac_kw; break
22671 else
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 fi
22676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22677 done
22678
22679 fi
22680 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22681 echo "${ECHO_T}$ac_cv_c_inline" >&6
22682
22683
22684 case $ac_cv_c_inline in
22685 inline | yes) ;;
22686 *)
22687 case $ac_cv_c_inline in
22688 no) ac_val=;;
22689 *) ac_val=$ac_cv_c_inline;;
22690 esac
22691 cat >>confdefs.h <<_ACEOF
22692 #ifndef __cplusplus
22693 #define inline $ac_val
22694 #endif
22695 _ACEOF
22696 ;;
22697 esac
22698
22699 echo "$as_me:$LINENO: checking for off_t" >&5
22700 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22701 if test "${ac_cv_type_off_t+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 $ac_includes_default
22711 int
22712 main ()
22713 {
22714 if ((off_t *) 0)
22715 return 0;
22716 if (sizeof (off_t))
22717 return 0;
22718 ;
22719 return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724 (eval $ac_compile) 2>conftest.er1
22725 ac_status=$?
22726 grep -v '^ *+' conftest.er1 >conftest.err
22727 rm -f conftest.er1
22728 cat conftest.err >&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); } &&
22731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } &&
22737 { ac_try='test -s conftest.$ac_objext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 ac_cv_type_off_t=yes
22744 else
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 ac_cv_type_off_t=no
22749 fi
22750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22751 fi
22752 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22753 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22754 if test $ac_cv_type_off_t = yes; then
22755 :
22756 else
22757
22758 cat >>confdefs.h <<_ACEOF
22759 #define off_t long
22760 _ACEOF
22761
22762 fi
22763
22764 echo "$as_me:$LINENO: checking for size_t" >&5
22765 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22766 if test "${ac_cv_type_size_t+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 $ac_includes_default
22776 int
22777 main ()
22778 {
22779 if ((size_t *) 0)
22780 return 0;
22781 if (sizeof (size_t))
22782 return 0;
22783 ;
22784 return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22789 (eval $ac_compile) 2>conftest.er1
22790 ac_status=$?
22791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
22796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; } &&
22802 { ac_try='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ac_cv_type_size_t=yes
22809 else
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813 ac_cv_type_size_t=no
22814 fi
22815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22816 fi
22817 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22818 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22819 if test $ac_cv_type_size_t = yes; then
22820 :
22821 else
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define size_t unsigned
22825 _ACEOF
22826
22827 fi
22828
22829 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22830 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
22831 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834 cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h. */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 $ac_includes_default
22841 int
22842 main ()
22843 {
22844 static struct stat ac_aggr;
22845 if (ac_aggr.st_blksize)
22846 return 0;
22847 ;
22848 return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22853 (eval $ac_compile) 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
22860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest.$ac_objext'
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 ac_cv_member_struct_stat_st_blksize=yes
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877 cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h. */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22883 $ac_includes_default
22884 int
22885 main ()
22886 {
22887 static struct stat ac_aggr;
22888 if (sizeof ac_aggr.st_blksize)
22889 return 0;
22890 ;
22891 return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext
22895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22896 (eval $ac_compile) 2>conftest.er1
22897 ac_status=$?
22898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } &&
22903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; } &&
22909 { ac_try='test -s conftest.$ac_objext'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22912 ac_status=$?
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; }; then
22915 ac_cv_member_struct_stat_st_blksize=yes
22916 else
22917 echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22919
22920 ac_cv_member_struct_stat_st_blksize=no
22921 fi
22922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22923 fi
22924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22925 fi
22926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22927 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
22928 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22929
22930 cat >>confdefs.h <<_ACEOF
22931 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22932 _ACEOF
22933
22934
22935 fi
22936
22937 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22938 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22939 if test "${ac_cv_header_time+set}" = set; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <sys/types.h>
22949 #include <sys/time.h>
22950 #include <time.h>
22951
22952 int
22953 main ()
22954 {
22955 if ((struct tm *) 0)
22956 return 0;
22957 ;
22958 return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22963 (eval $ac_compile) 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
22970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; } &&
22976 { ac_try='test -s conftest.$ac_objext'
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982 ac_cv_header_time=yes
22983 else
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 ac_cv_header_time=no
22988 fi
22989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22990 fi
22991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22992 echo "${ECHO_T}$ac_cv_header_time" >&6
22993 if test $ac_cv_header_time = yes; then
22994
22995 cat >>confdefs.h <<\_ACEOF
22996 #define TIME_WITH_SYS_TIME 1
22997 _ACEOF
22998
22999 fi
23000
23001 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23003 if test "${ac_cv_struct_tm+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23005 else
23006 cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h. */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 #include <sys/types.h>
23013 #include <time.h>
23014
23015 int
23016 main ()
23017 {
23018 struct tm *tp; tp->tm_sec;
23019 ;
23020 return 0;
23021 }
23022 _ACEOF
23023 rm -f conftest.$ac_objext
23024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23025 (eval $ac_compile) 2>conftest.er1
23026 ac_status=$?
23027 grep -v '^ *+' conftest.er1 >conftest.err
23028 rm -f conftest.er1
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } &&
23032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; } &&
23038 { ac_try='test -s conftest.$ac_objext'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ac_cv_struct_tm=time.h
23045 else
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ac_cv_struct_tm=sys/time.h
23050 fi
23051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23054 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23055 if test $ac_cv_struct_tm = sys/time.h; then
23056
23057 cat >>confdefs.h <<\_ACEOF
23058 #define TM_IN_SYS_TIME 1
23059 _ACEOF
23060
23061 fi
23062
23063 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
23064 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
23065 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h. */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 $ac_includes_default
23075 int
23076 main ()
23077 {
23078 if ((unsigned long long int *) 0)
23079 return 0;
23080 if (sizeof (unsigned long long int))
23081 return 0;
23082 ;
23083 return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23088 (eval $ac_compile) 2>conftest.er1
23089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
23095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest.$ac_objext'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_type_unsigned_long_long_int=yes
23108 else
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 ac_cv_type_unsigned_long_long_int=no
23113 fi
23114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
23117 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
23118
23119 echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
23120 echo $ECHO_N "checking size of unsigned long long int... $ECHO_C" >&6
23121 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23125 # The cast to unsigned long works around a bug in the HP C Compiler
23126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23128 # This bug is HP SR number 8606223364.
23129 if test "$cross_compiling" = yes; then
23130 # Depending upon the size, compute the lo and hi bounds.
23131 cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h. */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23137 $ac_includes_default
23138 int
23139 main ()
23140 {
23141 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long int))) >= 0)];
23142 test_array [0] = 0
23143
23144 ;
23145 return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23150 (eval $ac_compile) 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest.$ac_objext'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23166 ac_status=$?
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 ac_lo=0 ac_mid=0
23170 while :; do
23171 cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h. */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177 $ac_includes_default
23178 int
23179 main ()
23180 {
23181 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long int))) <= $ac_mid)];
23182 test_array [0] = 0
23183
23184 ;
23185 return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23190 (eval $ac_compile) 2>conftest.er1
23191 ac_status=$?
23192 grep -v '^ *+' conftest.er1 >conftest.err
23193 rm -f conftest.er1
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
23197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23200 ac_status=$?
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; } &&
23203 { ac_try='test -s conftest.$ac_objext'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23206 ac_status=$?
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_hi=$ac_mid; break
23210 else
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214 ac_lo=`expr $ac_mid + 1`
23215 if test $ac_lo -le $ac_mid; then
23216 ac_lo= ac_hi=
23217 break
23218 fi
23219 ac_mid=`expr 2 '*' $ac_mid + 1`
23220 fi
23221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23222 done
23223 else
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227 cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h. */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 $ac_includes_default
23234 int
23235 main ()
23236 {
23237 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long int))) < 0)];
23238 test_array [0] = 0
23239
23240 ;
23241 return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23246 (eval $ac_compile) 2>conftest.er1
23247 ac_status=$?
23248 grep -v '^ *+' conftest.er1 >conftest.err
23249 rm -f conftest.er1
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } &&
23253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; } &&
23259 { ac_try='test -s conftest.$ac_objext'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23262 ac_status=$?
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; }; then
23265 ac_hi=-1 ac_mid=-1
23266 while :; do
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 $ac_includes_default
23274 int
23275 main ()
23276 {
23277 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long int))) >= $ac_mid)];
23278 test_array [0] = 0
23279
23280 ;
23281 return 0;
23282 }
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286 (eval $ac_compile) 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
23293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23296 ac_status=$?
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_lo=$ac_mid; break
23306 else
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_hi=`expr '(' $ac_mid ')' - 1`
23311 if test $ac_mid -le $ac_hi; then
23312 ac_lo= ac_hi=
23313 break
23314 fi
23315 ac_mid=`expr 2 '*' $ac_mid`
23316 fi
23317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23318 done
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_lo= ac_hi=
23324 fi
23325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23326 fi
23327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23328 # Binary search between lo and hi bounds.
23329 while test "x$ac_lo" != "x$ac_hi"; do
23330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23338 int
23339 main ()
23340 {
23341 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long int))) <= $ac_mid)];
23342 test_array [0] = 0
23343
23344 ;
23345 return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23350 (eval $ac_compile) 2>conftest.er1
23351 ac_status=$?
23352 grep -v '^ *+' conftest.er1 >conftest.err
23353 rm -f conftest.er1
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest.$ac_objext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_hi=$ac_mid
23370 else
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_lo=`expr '(' $ac_mid ')' + 1`
23375 fi
23376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23377 done
23378 case $ac_lo in
23379 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
23380 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int), 77
23381 See \`config.log' for more details." >&5
23382 echo "$as_me: error: cannot compute sizeof (unsigned long long int), 77
23383 See \`config.log' for more details." >&2;}
23384 { (exit 1); exit 1; }; } ;;
23385 esac
23386 else
23387 if test "$cross_compiling" = yes; then
23388 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23389 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23390 { (exit 1); exit 1; }; }
23391 else
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23399 long longval () { return (long) (sizeof (unsigned long long int)); }
23400 unsigned long ulongval () { return (long) (sizeof (unsigned long long int)); }
23401 #include <stdio.h>
23402 #include <stdlib.h>
23403 int
23404 main ()
23405 {
23406
23407 FILE *f = fopen ("conftest.val", "w");
23408 if (! f)
23409 exit (1);
23410 if (((long) (sizeof (unsigned long long int))) < 0)
23411 {
23412 long i = longval ();
23413 if (i != ((long) (sizeof (unsigned long long int))))
23414 exit (1);
23415 fprintf (f, "%ld\n", i);
23416 }
23417 else
23418 {
23419 unsigned long i = ulongval ();
23420 if (i != ((long) (sizeof (unsigned long long int))))
23421 exit (1);
23422 fprintf (f, "%lu\n", i);
23423 }
23424 exit (ferror (f) || fclose (f) != 0);
23425
23426 ;
23427 return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest$ac_exeext
23431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23432 (eval $ac_link) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
23442 else
23443 echo "$as_me: program exited with status $ac_status" >&5
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447 ( exit $ac_status )
23448 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int), 77
23449 See \`config.log' for more details." >&5
23450 echo "$as_me: error: cannot compute sizeof (unsigned long long int), 77
23451 See \`config.log' for more details." >&2;}
23452 { (exit 1); exit 1; }; }
23453 fi
23454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23455 fi
23456 fi
23457 rm -f conftest.val
23458 else
23459 ac_cv_sizeof_unsigned_long_long_int=0
23460 fi
23461 fi
23462 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23463 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
23464 cat >>confdefs.h <<_ACEOF
23465 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
23466 _ACEOF
23467
23468
23469 echo "$as_me:$LINENO: checking for unsigned long int" >&5
23470 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6
23471 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h. */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 $ac_includes_default
23481 int
23482 main ()
23483 {
23484 if ((unsigned long int *) 0)
23485 return 0;
23486 if (sizeof (unsigned long int))
23487 return 0;
23488 ;
23489 return 0;
23490 }
23491 _ACEOF
23492 rm -f conftest.$ac_objext
23493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23494 (eval $ac_compile) 2>conftest.er1
23495 ac_status=$?
23496 grep -v '^ *+' conftest.er1 >conftest.err
23497 rm -f conftest.er1
23498 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } &&
23501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23504 ac_status=$?
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; } &&
23507 { ac_try='test -s conftest.$ac_objext'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; }; then
23513 ac_cv_type_unsigned_long_int=yes
23514 else
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518 ac_cv_type_unsigned_long_int=no
23519 fi
23520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23521 fi
23522 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
23523 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6
23524
23525 echo "$as_me:$LINENO: checking size of unsigned long int" >&5
23526 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6
23527 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530 if test "$ac_cv_type_unsigned_long_int" = yes; then
23531 # The cast to unsigned long works around a bug in the HP C Compiler
23532 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23533 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23534 # This bug is HP SR number 8606223364.
23535 if test "$cross_compiling" = yes; then
23536 # Depending upon the size, compute the lo and hi bounds.
23537 cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h. */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 $ac_includes_default
23544 int
23545 main ()
23546 {
23547 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)];
23548 test_array [0] = 0
23549
23550 ;
23551 return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23556 (eval $ac_compile) 2>conftest.er1
23557 ac_status=$?
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; } &&
23569 { ac_try='test -s conftest.$ac_objext'
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 ac_lo=0 ac_mid=0
23576 while :; do
23577 cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h. */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 $ac_includes_default
23584 int
23585 main ()
23586 {
23587 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
23588 test_array [0] = 0
23589
23590 ;
23591 return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest.$ac_objext
23595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23596 (eval $ac_compile) 2>conftest.er1
23597 ac_status=$?
23598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } &&
23603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; } &&
23609 { ac_try='test -s conftest.$ac_objext'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23615 ac_hi=$ac_mid; break
23616 else
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620 ac_lo=`expr $ac_mid + 1`
23621 if test $ac_lo -le $ac_mid; then
23622 ac_lo= ac_hi=
23623 break
23624 fi
23625 ac_mid=`expr 2 '*' $ac_mid + 1`
23626 fi
23627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23628 done
23629 else
23630 echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 $ac_includes_default
23640 int
23641 main ()
23642 {
23643 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)];
23644 test_array [0] = 0
23645
23646 ;
23647 return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23652 (eval $ac_compile) 2>conftest.er1
23653 ac_status=$?
23654 grep -v '^ *+' conftest.er1 >conftest.err
23655 rm -f conftest.er1
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; } &&
23665 { ac_try='test -s conftest.$ac_objext'
23666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667 (eval $ac_try) 2>&5
23668 ac_status=$?
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); }; }; then
23671 ac_hi=-1 ac_mid=-1
23672 while :; do
23673 cat >conftest.$ac_ext <<_ACEOF
23674 /* confdefs.h. */
23675 _ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h. */
23679 $ac_includes_default
23680 int
23681 main ()
23682 {
23683 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)];
23684 test_array [0] = 0
23685
23686 ;
23687 return 0;
23688 }
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23692 (eval $ac_compile) 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } &&
23699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest.$ac_objext'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 ac_lo=$ac_mid; break
23712 else
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716 ac_hi=`expr '(' $ac_mid ')' - 1`
23717 if test $ac_mid -le $ac_hi; then
23718 ac_lo= ac_hi=
23719 break
23720 fi
23721 ac_mid=`expr 2 '*' $ac_mid`
23722 fi
23723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23724 done
23725 else
23726 echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729 ac_lo= ac_hi=
23730 fi
23731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23732 fi
23733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23734 # Binary search between lo and hi bounds.
23735 while test "x$ac_lo" != "x$ac_hi"; do
23736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23737 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h. */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23743 $ac_includes_default
23744 int
23745 main ()
23746 {
23747 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
23748 test_array [0] = 0
23749
23750 ;
23751 return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext
23755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23756 (eval $ac_compile) 2>conftest.er1
23757 ac_status=$?
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } &&
23763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_hi=$ac_mid
23776 else
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 ac_lo=`expr '(' $ac_mid ')' + 1`
23781 fi
23782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23783 done
23784 case $ac_lo in
23785 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
23786 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
23787 See \`config.log' for more details." >&5
23788 echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
23789 See \`config.log' for more details." >&2;}
23790 { (exit 1); exit 1; }; } ;;
23791 esac
23792 else
23793 if test "$cross_compiling" = yes; then
23794 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23795 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23796 { (exit 1); exit 1; }; }
23797 else
23798 cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h. */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 $ac_includes_default
23805 long longval () { return (long) (sizeof (unsigned long int)); }
23806 unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
23807 #include <stdio.h>
23808 #include <stdlib.h>
23809 int
23810 main ()
23811 {
23812
23813 FILE *f = fopen ("conftest.val", "w");
23814 if (! f)
23815 exit (1);
23816 if (((long) (sizeof (unsigned long int))) < 0)
23817 {
23818 long i = longval ();
23819 if (i != ((long) (sizeof (unsigned long int))))
23820 exit (1);
23821 fprintf (f, "%ld\n", i);
23822 }
23823 else
23824 {
23825 unsigned long i = ulongval ();
23826 if (i != ((long) (sizeof (unsigned long int))))
23827 exit (1);
23828 fprintf (f, "%lu\n", i);
23829 }
23830 exit (ferror (f) || fclose (f) != 0);
23831
23832 ;
23833 return 0;
23834 }
23835 _ACEOF
23836 rm -f conftest$ac_exeext
23837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23838 (eval $ac_link) 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843 (eval $ac_try) 2>&5
23844 ac_status=$?
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); }; }; then
23847 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
23848 else
23849 echo "$as_me: program exited with status $ac_status" >&5
23850 echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ( exit $ac_status )
23854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
23855 See \`config.log' for more details." >&5
23856 echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
23857 See \`config.log' for more details." >&2;}
23858 { (exit 1); exit 1; }; }
23859 fi
23860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23861 fi
23862 fi
23863 rm -f conftest.val
23864 else
23865 ac_cv_sizeof_unsigned_long_int=0
23866 fi
23867 fi
23868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23869 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
23870 cat >>confdefs.h <<_ACEOF
23871 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
23872 _ACEOF
23873
23874
23875 echo "$as_me:$LINENO: checking for unsigned int" >&5
23876 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
23877 if test "${ac_cv_type_unsigned_int+set}" = set; then
23878 echo $ECHO_N "(cached) $ECHO_C" >&6
23879 else
23880 cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h. */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 $ac_includes_default
23887 int
23888 main ()
23889 {
23890 if ((unsigned int *) 0)
23891 return 0;
23892 if (sizeof (unsigned int))
23893 return 0;
23894 ;
23895 return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext
23899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23900 (eval $ac_compile) 2>conftest.er1
23901 ac_status=$?
23902 grep -v '^ *+' conftest.er1 >conftest.err
23903 rm -f conftest.er1
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } &&
23907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919 ac_cv_type_unsigned_int=yes
23920 else
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23923
23924 ac_cv_type_unsigned_int=no
23925 fi
23926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23927 fi
23928 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23929 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
23930
23931 echo "$as_me:$LINENO: checking size of unsigned int" >&5
23932 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
23933 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936 if test "$ac_cv_type_unsigned_int" = yes; then
23937 # The cast to unsigned long works around a bug in the HP C Compiler
23938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23940 # This bug is HP SR number 8606223364.
23941 if test "$cross_compiling" = yes; then
23942 # Depending upon the size, compute the lo and hi bounds.
23943 cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h. */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23949 $ac_includes_default
23950 int
23951 main ()
23952 {
23953 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
23954 test_array [0] = 0
23955
23956 ;
23957 return 0;
23958 }
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23962 (eval $ac_compile) 2>conftest.er1
23963 ac_status=$?
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
23969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 ac_lo=0 ac_mid=0
23982 while :; do
23983 cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h. */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 int
23991 main ()
23992 {
23993 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23994 test_array [0] = 0
23995
23996 ;
23997 return 0;
23998 }
23999 _ACEOF
24000 rm -f conftest.$ac_objext
24001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24002 (eval $ac_compile) 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } &&
24009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; } &&
24015 { ac_try='test -s conftest.$ac_objext'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_hi=$ac_mid; break
24022 else
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_lo=`expr $ac_mid + 1`
24027 if test $ac_lo -le $ac_mid; then
24028 ac_lo= ac_hi=
24029 break
24030 fi
24031 ac_mid=`expr 2 '*' $ac_mid + 1`
24032 fi
24033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24034 done
24035 else
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h. */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 $ac_includes_default
24046 int
24047 main ()
24048 {
24049 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
24050 test_array [0] = 0
24051
24052 ;
24053 return 0;
24054 }
24055 _ACEOF
24056 rm -f conftest.$ac_objext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24058 (eval $ac_compile) 2>conftest.er1
24059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
24065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; } &&
24071 { ac_try='test -s conftest.$ac_objext'
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; }; then
24077 ac_hi=-1 ac_mid=-1
24078 while :; do
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h. */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 $ac_includes_default
24086 int
24087 main ()
24088 {
24089 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
24090 test_array [0] = 0
24091
24092 ;
24093 return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24098 (eval $ac_compile) 2>conftest.er1
24099 ac_status=$?
24100 grep -v '^ *+' conftest.er1 >conftest.err
24101 rm -f conftest.er1
24102 cat conftest.err >&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } &&
24105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; } &&
24111 { ac_try='test -s conftest.$ac_objext'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; }; then
24117 ac_lo=$ac_mid; break
24118 else
24119 echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_hi=`expr '(' $ac_mid ')' - 1`
24123 if test $ac_mid -le $ac_hi; then
24124 ac_lo= ac_hi=
24125 break
24126 fi
24127 ac_mid=`expr 2 '*' $ac_mid`
24128 fi
24129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24130 done
24131 else
24132 echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135 ac_lo= ac_hi=
24136 fi
24137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24138 fi
24139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24140 # Binary search between lo and hi bounds.
24141 while test "x$ac_lo" != "x$ac_hi"; do
24142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h. */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 $ac_includes_default
24150 int
24151 main ()
24152 {
24153 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
24154 test_array [0] = 0
24155
24156 ;
24157 return 0;
24158 }
24159 _ACEOF
24160 rm -f conftest.$ac_objext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24162 (eval $ac_compile) 2>conftest.er1
24163 ac_status=$?
24164 grep -v '^ *+' conftest.er1 >conftest.err
24165 rm -f conftest.er1
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } &&
24169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest.$ac_objext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24181 ac_hi=$ac_mid
24182 else
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 ac_lo=`expr '(' $ac_mid ')' + 1`
24187 fi
24188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24189 done
24190 case $ac_lo in
24191 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
24193 See \`config.log' for more details." >&5
24194 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
24195 See \`config.log' for more details." >&2;}
24196 { (exit 1); exit 1; }; } ;;
24197 esac
24198 else
24199 if test "$cross_compiling" = yes; then
24200 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24201 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24202 { (exit 1); exit 1; }; }
24203 else
24204 cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h. */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 $ac_includes_default
24211 long longval () { return (long) (sizeof (unsigned int)); }
24212 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
24213 #include <stdio.h>
24214 #include <stdlib.h>
24215 int
24216 main ()
24217 {
24218
24219 FILE *f = fopen ("conftest.val", "w");
24220 if (! f)
24221 exit (1);
24222 if (((long) (sizeof (unsigned int))) < 0)
24223 {
24224 long i = longval ();
24225 if (i != ((long) (sizeof (unsigned int))))
24226 exit (1);
24227 fprintf (f, "%ld\n", i);
24228 }
24229 else
24230 {
24231 unsigned long i = ulongval ();
24232 if (i != ((long) (sizeof (unsigned int))))
24233 exit (1);
24234 fprintf (f, "%lu\n", i);
24235 }
24236 exit (ferror (f) || fclose (f) != 0);
24237
24238 ;
24239 return 0;
24240 }
24241 _ACEOF
24242 rm -f conftest$ac_exeext
24243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24244 (eval $ac_link) 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24254 else
24255 echo "$as_me: program exited with status $ac_status" >&5
24256 echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.$ac_ext >&5
24258
24259 ( exit $ac_status )
24260 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
24261 See \`config.log' for more details." >&5
24262 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
24263 See \`config.log' for more details." >&2;}
24264 { (exit 1); exit 1; }; }
24265 fi
24266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24267 fi
24268 fi
24269 rm -f conftest.val
24270 else
24271 ac_cv_sizeof_unsigned_int=0
24272 fi
24273 fi
24274 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24275 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
24276 cat >>confdefs.h <<_ACEOF
24277 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24278 _ACEOF
24279
24280
24281 echo "$as_me:$LINENO: checking for unsigned short int" >&5
24282 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6
24283 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286 cat >conftest.$ac_ext <<_ACEOF
24287 /* confdefs.h. */
24288 _ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24292 $ac_includes_default
24293 int
24294 main ()
24295 {
24296 if ((unsigned short int *) 0)
24297 return 0;
24298 if (sizeof (unsigned short int))
24299 return 0;
24300 ;
24301 return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest.$ac_objext
24305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24306 (eval $ac_compile) 2>conftest.er1
24307 ac_status=$?
24308 grep -v '^ *+' conftest.er1 >conftest.err
24309 rm -f conftest.er1
24310 cat conftest.err >&5
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } &&
24313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } &&
24319 { ac_try='test -s conftest.$ac_objext'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; }; then
24325 ac_cv_type_unsigned_short_int=yes
24326 else
24327 echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24329
24330 ac_cv_type_unsigned_short_int=no
24331 fi
24332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24333 fi
24334 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
24335 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6
24336
24337 echo "$as_me:$LINENO: checking size of unsigned short int" >&5
24338 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6
24339 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 else
24342 if test "$ac_cv_type_unsigned_short_int" = yes; then
24343 # The cast to unsigned long works around a bug in the HP C Compiler
24344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24346 # This bug is HP SR number 8606223364.
24347 if test "$cross_compiling" = yes; then
24348 # Depending upon the size, compute the lo and hi bounds.
24349 cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h. */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 $ac_includes_default
24356 int
24357 main ()
24358 {
24359 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)];
24360 test_array [0] = 0
24361
24362 ;
24363 return 0;
24364 }
24365 _ACEOF
24366 rm -f conftest.$ac_objext
24367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24368 (eval $ac_compile) 2>conftest.er1
24369 ac_status=$?
24370 grep -v '^ *+' conftest.er1 >conftest.err
24371 rm -f conftest.er1
24372 cat conftest.err >&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } &&
24375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; } &&
24381 { ac_try='test -s conftest.$ac_objext'
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 ac_lo=0 ac_mid=0
24388 while :; do
24389 cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h. */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h. */
24395 $ac_includes_default
24396 int
24397 main ()
24398 {
24399 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
24400 test_array [0] = 0
24401
24402 ;
24403 return 0;
24404 }
24405 _ACEOF
24406 rm -f conftest.$ac_objext
24407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24408 (eval $ac_compile) 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } &&
24415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24417 (eval $ac_try) 2>&5
24418 ac_status=$?
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); }; } &&
24421 { ac_try='test -s conftest.$ac_objext'
24422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24423 (eval $ac_try) 2>&5
24424 ac_status=$?
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); }; }; then
24427 ac_hi=$ac_mid; break
24428 else
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24431
24432 ac_lo=`expr $ac_mid + 1`
24433 if test $ac_lo -le $ac_mid; then
24434 ac_lo= ac_hi=
24435 break
24436 fi
24437 ac_mid=`expr 2 '*' $ac_mid + 1`
24438 fi
24439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24440 done
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h. */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24451 $ac_includes_default
24452 int
24453 main ()
24454 {
24455 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)];
24456 test_array [0] = 0
24457
24458 ;
24459 return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464 (eval $ac_compile) 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
24471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest.$ac_objext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_hi=-1 ac_mid=-1
24484 while :; do
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24492 int
24493 main ()
24494 {
24495 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)];
24496 test_array [0] = 0
24497
24498 ;
24499 return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24504 (eval $ac_compile) 2>conftest.er1
24505 ac_status=$?
24506 grep -v '^ *+' conftest.er1 >conftest.err
24507 rm -f conftest.er1
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } &&
24511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; } &&
24517 { ac_try='test -s conftest.$ac_objext'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24520 ac_status=$?
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; }; then
24523 ac_lo=$ac_mid; break
24524 else
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24527
24528 ac_hi=`expr '(' $ac_mid ')' - 1`
24529 if test $ac_mid -le $ac_hi; then
24530 ac_lo= ac_hi=
24531 break
24532 fi
24533 ac_mid=`expr 2 '*' $ac_mid`
24534 fi
24535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24536 done
24537 else
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541 ac_lo= ac_hi=
24542 fi
24543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24544 fi
24545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24546 # Binary search between lo and hi bounds.
24547 while test "x$ac_lo" != "x$ac_hi"; do
24548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 $ac_includes_default
24556 int
24557 main ()
24558 {
24559 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
24560 test_array [0] = 0
24561
24562 ;
24563 return 0;
24564 }
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24568 (eval $ac_compile) 2>conftest.er1
24569 ac_status=$?
24570 grep -v '^ *+' conftest.er1 >conftest.err
24571 rm -f conftest.er1
24572 cat conftest.err >&5
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); } &&
24575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577 (eval $ac_try) 2>&5
24578 ac_status=$?
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); }; } &&
24581 { ac_try='test -s conftest.$ac_objext'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24587 ac_hi=$ac_mid
24588 else
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 ac_lo=`expr '(' $ac_mid ')' + 1`
24593 fi
24594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24595 done
24596 case $ac_lo in
24597 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
24598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
24599 See \`config.log' for more details." >&5
24600 echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
24601 See \`config.log' for more details." >&2;}
24602 { (exit 1); exit 1; }; } ;;
24603 esac
24604 else
24605 if test "$cross_compiling" = yes; then
24606 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24607 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24608 { (exit 1); exit 1; }; }
24609 else
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h. */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24616 $ac_includes_default
24617 long longval () { return (long) (sizeof (unsigned short int)); }
24618 unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
24619 #include <stdio.h>
24620 #include <stdlib.h>
24621 int
24622 main ()
24623 {
24624
24625 FILE *f = fopen ("conftest.val", "w");
24626 if (! f)
24627 exit (1);
24628 if (((long) (sizeof (unsigned short int))) < 0)
24629 {
24630 long i = longval ();
24631 if (i != ((long) (sizeof (unsigned short int))))
24632 exit (1);
24633 fprintf (f, "%ld\n", i);
24634 }
24635 else
24636 {
24637 unsigned long i = ulongval ();
24638 if (i != ((long) (sizeof (unsigned short int))))
24639 exit (1);
24640 fprintf (f, "%lu\n", i);
24641 }
24642 exit (ferror (f) || fclose (f) != 0);
24643
24644 ;
24645 return 0;
24646 }
24647 _ACEOF
24648 rm -f conftest$ac_exeext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24650 (eval $ac_link) 2>&5
24651 ac_status=$?
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); }; }; then
24659 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
24660 else
24661 echo "$as_me: program exited with status $ac_status" >&5
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 ( exit $ac_status )
24666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
24667 See \`config.log' for more details." >&5
24668 echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
24669 See \`config.log' for more details." >&2;}
24670 { (exit 1); exit 1; }; }
24671 fi
24672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24673 fi
24674 fi
24675 rm -f conftest.val
24676 else
24677 ac_cv_sizeof_unsigned_short_int=0
24678 fi
24679 fi
24680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
24681 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
24682 cat >>confdefs.h <<_ACEOF
24683 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
24684 _ACEOF
24685
24686
24687 echo "$as_me:$LINENO: checking for unsigned char" >&5
24688 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
24689 if test "${ac_cv_type_unsigned_char+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692 cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h. */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24699 int
24700 main ()
24701 {
24702 if ((unsigned char *) 0)
24703 return 0;
24704 if (sizeof (unsigned char))
24705 return 0;
24706 ;
24707 return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24712 (eval $ac_compile) 2>conftest.er1
24713 ac_status=$?
24714 grep -v '^ *+' conftest.er1 >conftest.err
24715 rm -f conftest.er1
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } &&
24719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; } &&
24725 { ac_try='test -s conftest.$ac_objext'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 ac_cv_type_unsigned_char=yes
24732 else
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736 ac_cv_type_unsigned_char=no
24737 fi
24738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24739 fi
24740 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
24741 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
24742
24743 echo "$as_me:$LINENO: checking size of unsigned char" >&5
24744 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
24745 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748 if test "$ac_cv_type_unsigned_char" = yes; then
24749 # The cast to unsigned long works around a bug in the HP C Compiler
24750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24752 # This bug is HP SR number 8606223364.
24753 if test "$cross_compiling" = yes; then
24754 # Depending upon the size, compute the lo and hi bounds.
24755 cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h. */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 $ac_includes_default
24762 int
24763 main ()
24764 {
24765 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
24766 test_array [0] = 0
24767
24768 ;
24769 return 0;
24770 }
24771 _ACEOF
24772 rm -f conftest.$ac_objext
24773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24774 (eval $ac_compile) 2>conftest.er1
24775 ac_status=$?
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } &&
24781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; } &&
24787 { ac_try='test -s conftest.$ac_objext'
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; }; then
24793 ac_lo=0 ac_mid=0
24794 while :; do
24795 cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h. */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h. */
24801 $ac_includes_default
24802 int
24803 main ()
24804 {
24805 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
24806 test_array [0] = 0
24807
24808 ;
24809 return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24814 (eval $ac_compile) 2>conftest.er1
24815 ac_status=$?
24816 grep -v '^ *+' conftest.er1 >conftest.err
24817 rm -f conftest.er1
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } &&
24821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823 (eval $ac_try) 2>&5
24824 ac_status=$?
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); }; } &&
24827 { ac_try='test -s conftest.$ac_objext'
24828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; }; then
24833 ac_hi=$ac_mid; break
24834 else
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838 ac_lo=`expr $ac_mid + 1`
24839 if test $ac_lo -le $ac_mid; then
24840 ac_lo= ac_hi=
24841 break
24842 fi
24843 ac_mid=`expr 2 '*' $ac_mid + 1`
24844 fi
24845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24846 done
24847 else
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h. */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 $ac_includes_default
24858 int
24859 main ()
24860 {
24861 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
24862 test_array [0] = 0
24863
24864 ;
24865 return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24870 (eval $ac_compile) 2>conftest.er1
24871 ac_status=$?
24872 grep -v '^ *+' conftest.er1 >conftest.err
24873 rm -f conftest.er1
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } &&
24877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; } &&
24883 { ac_try='test -s conftest.$ac_objext'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; }; then
24889 ac_hi=-1 ac_mid=-1
24890 while :; do
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h. */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 $ac_includes_default
24898 int
24899 main ()
24900 {
24901 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
24902 test_array [0] = 0
24903
24904 ;
24905 return 0;
24906 }
24907 _ACEOF
24908 rm -f conftest.$ac_objext
24909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24910 (eval $ac_compile) 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
24917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; } &&
24923 { ac_try='test -s conftest.$ac_objext'
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; }; then
24929 ac_lo=$ac_mid; break
24930 else
24931 echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24933
24934 ac_hi=`expr '(' $ac_mid ')' - 1`
24935 if test $ac_mid -le $ac_hi; then
24936 ac_lo= ac_hi=
24937 break
24938 fi
24939 ac_mid=`expr 2 '*' $ac_mid`
24940 fi
24941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24942 done
24943 else
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947 ac_lo= ac_hi=
24948 fi
24949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24950 fi
24951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24952 # Binary search between lo and hi bounds.
24953 while test "x$ac_lo" != "x$ac_hi"; do
24954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h. */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24961 $ac_includes_default
24962 int
24963 main ()
24964 {
24965 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
24966 test_array [0] = 0
24967
24968 ;
24969 return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974 (eval $ac_compile) 2>conftest.er1
24975 ac_status=$?
24976 grep -v '^ *+' conftest.er1 >conftest.err
24977 rm -f conftest.er1
24978 cat conftest.err >&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } &&
24981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); }; } &&
24987 { ac_try='test -s conftest.$ac_objext'
24988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989 (eval $ac_try) 2>&5
24990 ac_status=$?
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); }; }; then
24993 ac_hi=$ac_mid
24994 else
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24997
24998 ac_lo=`expr '(' $ac_mid ')' + 1`
24999 fi
25000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25001 done
25002 case $ac_lo in
25003 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
25004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
25005 See \`config.log' for more details." >&5
25006 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
25007 See \`config.log' for more details." >&2;}
25008 { (exit 1); exit 1; }; } ;;
25009 esac
25010 else
25011 if test "$cross_compiling" = yes; then
25012 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25013 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25014 { (exit 1); exit 1; }; }
25015 else
25016 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h. */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 $ac_includes_default
25023 long longval () { return (long) (sizeof (unsigned char)); }
25024 unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
25025 #include <stdio.h>
25026 #include <stdlib.h>
25027 int
25028 main ()
25029 {
25030
25031 FILE *f = fopen ("conftest.val", "w");
25032 if (! f)
25033 exit (1);
25034 if (((long) (sizeof (unsigned char))) < 0)
25035 {
25036 long i = longval ();
25037 if (i != ((long) (sizeof (unsigned char))))
25038 exit (1);
25039 fprintf (f, "%ld\n", i);
25040 }
25041 else
25042 {
25043 unsigned long i = ulongval ();
25044 if (i != ((long) (sizeof (unsigned char))))
25045 exit (1);
25046 fprintf (f, "%lu\n", i);
25047 }
25048 exit (ferror (f) || fclose (f) != 0);
25049
25050 ;
25051 return 0;
25052 }
25053 _ACEOF
25054 rm -f conftest$ac_exeext
25055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25056 (eval $ac_link) 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; }; then
25065 ac_cv_sizeof_unsigned_char=`cat conftest.val`
25066 else
25067 echo "$as_me: program exited with status $ac_status" >&5
25068 echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25070
25071 ( exit $ac_status )
25072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
25073 See \`config.log' for more details." >&5
25074 echo "$as_me: error: cannot compute sizeof (unsigned char), 77
25075 See \`config.log' for more details." >&2;}
25076 { (exit 1); exit 1; }; }
25077 fi
25078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25079 fi
25080 fi
25081 rm -f conftest.val
25082 else
25083 ac_cv_sizeof_unsigned_char=0
25084 fi
25085 fi
25086 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
25087 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
25088 cat >>confdefs.h <<_ACEOF
25089 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
25090 _ACEOF
25091
25092
25093
25094 # Checks for library functions.
25095 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25096 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
25097 if test "${ac_cv_func_closedir_void+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 if test "$cross_compiling" = yes; then
25101 ac_cv_func_closedir_void=yes
25102 else
25103 cat >conftest.$ac_ext <<_ACEOF
25104 /* confdefs.h. */
25105 _ACEOF
25106 cat confdefs.h >>conftest.$ac_ext
25107 cat >>conftest.$ac_ext <<_ACEOF
25108 /* end confdefs.h. */
25109 $ac_includes_default
25110 #include <$ac_header_dirent>
25111 #ifndef __cplusplus
25112 int closedir ();
25113 #endif
25114
25115 int
25116 main ()
25117 {
25118 exit (closedir (opendir (".")) != 0);
25119 ;
25120 return 0;
25121 }
25122 _ACEOF
25123 rm -f conftest$ac_exeext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25125 (eval $ac_link) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; }; then
25134 ac_cv_func_closedir_void=no
25135 else
25136 echo "$as_me: program exited with status $ac_status" >&5
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ( exit $ac_status )
25141 ac_cv_func_closedir_void=yes
25142 fi
25143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25144 fi
25145 fi
25146 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25147 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
25148 if test $ac_cv_func_closedir_void = yes; then
25149
25150 cat >>confdefs.h <<\_ACEOF
25151 #define CLOSEDIR_VOID 1
25152 _ACEOF
25153
25154 fi
25155
25156 #AC_FUNC_ERROR_AT_LINE
25157 #AC_FUNC_LSTAT
25158 #AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
25159
25160 for ac_header in stdlib.h
25161 do
25162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25164 echo "$as_me:$LINENO: checking for $ac_header" >&5
25165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25167 echo $ECHO_N "(cached) $ECHO_C" >&6
25168 fi
25169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25171 else
25172 # Is the header compilable?
25173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h. */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 $ac_includes_default
25182 #include <$ac_header>
25183 _ACEOF
25184 rm -f conftest.$ac_objext
25185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25186 (eval $ac_compile) 2>conftest.er1
25187 ac_status=$?
25188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } &&
25193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest.$ac_objext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_header_compiler=yes
25206 else
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 ac_header_compiler=no
25211 fi
25212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25214 echo "${ECHO_T}$ac_header_compiler" >&6
25215
25216 # Is the header present?
25217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25219 cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h. */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h. */
25225 #include <$ac_header>
25226 _ACEOF
25227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25229 ac_status=$?
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } >/dev/null; then
25235 if test -s conftest.err; then
25236 ac_cpp_err=$ac_c_preproc_warn_flag
25237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25238 else
25239 ac_cpp_err=
25240 fi
25241 else
25242 ac_cpp_err=yes
25243 fi
25244 if test -z "$ac_cpp_err"; then
25245 ac_header_preproc=yes
25246 else
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ac_header_preproc=no
25251 fi
25252 rm -f conftest.err conftest.$ac_ext
25253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25254 echo "${ECHO_T}$ac_header_preproc" >&6
25255
25256 # So? What about this header?
25257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25258 yes:no: )
25259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25263 ac_header_preproc=yes
25264 ;;
25265 no:yes:* )
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25278 (
25279 cat <<\_ASBOX
25280 ## ------------------------------------------ ##
25281 ## Report this to the AC_PACKAGE_NAME lists. ##
25282 ## ------------------------------------------ ##
25283 _ASBOX
25284 ) |
25285 sed "s/^/$as_me: WARNING: /" >&2
25286 ;;
25287 esac
25288 echo "$as_me:$LINENO: checking for $ac_header" >&5
25289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 else
25293 eval "$as_ac_Header=\$ac_header_preproc"
25294 fi
25295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25297
25298 fi
25299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25300 cat >>confdefs.h <<_ACEOF
25301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25302 _ACEOF
25303
25304 fi
25305
25306 done
25307
25308 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
25309 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
25310 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313 if test "$cross_compiling" = yes; then
25314 ac_cv_func_malloc_0_nonnull=no
25315 else
25316 cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h. */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 #if STDC_HEADERS || HAVE_STDLIB_H
25323 # include <stdlib.h>
25324 #else
25325 char *malloc ();
25326 #endif
25327
25328 int
25329 main ()
25330 {
25331 exit (malloc (0) ? 0 : 1);
25332 ;
25333 return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest$ac_exeext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338 (eval $ac_link) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_cv_func_malloc_0_nonnull=yes
25348 else
25349 echo "$as_me: program exited with status $ac_status" >&5
25350 echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 ( exit $ac_status )
25354 ac_cv_func_malloc_0_nonnull=no
25355 fi
25356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25357 fi
25358 fi
25359 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
25360 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
25361 if test $ac_cv_func_malloc_0_nonnull = yes; then
25362
25363 cat >>confdefs.h <<\_ACEOF
25364 #define HAVE_MALLOC 1
25365 _ACEOF
25366
25367 else
25368 cat >>confdefs.h <<\_ACEOF
25369 #define HAVE_MALLOC 0
25370 _ACEOF
25371
25372 case $LIBOBJS in
25373 "malloc.$ac_objext" | \
25374 *" malloc.$ac_objext" | \
25375 "malloc.$ac_objext "* | \
25376 *" malloc.$ac_objext "* ) ;;
25377 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
25378 esac
25379
25380
25381 cat >>confdefs.h <<\_ACEOF
25382 #define malloc rpl_malloc
25383 _ACEOF
25384
25385 fi
25386
25387
25388
25389
25390 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25391 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
25392 if test "${ac_cv_func_mbrtowc+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395 cat >conftest.$ac_ext <<_ACEOF
25396 /* confdefs.h. */
25397 _ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h. */
25401 #include <wchar.h>
25402 int
25403 main ()
25404 {
25405 mbstate_t state; return ! (sizeof state && mbrtowc);
25406 ;
25407 return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext conftest$ac_exeext
25411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25412 (eval $ac_link) 2>conftest.er1
25413 ac_status=$?
25414 grep -v '^ *+' conftest.er1 >conftest.err
25415 rm -f conftest.er1
25416 cat conftest.err >&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); } &&
25419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; } &&
25425 { ac_try='test -s conftest$ac_exeext'
25426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25431 ac_cv_func_mbrtowc=yes
25432 else
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436 ac_cv_func_mbrtowc=no
25437 fi
25438 rm -f conftest.err conftest.$ac_objext \
25439 conftest$ac_exeext conftest.$ac_ext
25440 fi
25441 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
25442 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
25443 if test $ac_cv_func_mbrtowc = yes; then
25444
25445 cat >>confdefs.h <<\_ACEOF
25446 #define HAVE_MBRTOWC 1
25447 _ACEOF
25448
25449 fi
25450
25451 echo "$as_me:$LINENO: checking for working memcmp" >&5
25452 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25453 if test "${ac_cv_func_memcmp_working+set}" = set; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456 if test "$cross_compiling" = yes; then
25457 ac_cv_func_memcmp_working=no
25458 else
25459 cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h. */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 $ac_includes_default
25466 int
25467 main ()
25468 {
25469
25470 /* Some versions of memcmp are not 8-bit clean. */
25471 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25472 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25473 exit (1);
25474
25475 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25476 or more and with at least one buffer not starting on a 4-byte boundary.
25477 William Lewis provided this test program. */
25478 {
25479 char foo[21];
25480 char bar[21];
25481 int i;
25482 for (i = 0; i < 4; i++)
25483 {
25484 char *a = foo + i;
25485 char *b = bar + i;
25486 strcpy (a, "--------01111111");
25487 strcpy (b, "--------10000000");
25488 if (memcmp (a, b, 16) >= 0)
25489 exit (1);
25490 }
25491 exit (0);
25492 }
25493
25494 ;
25495 return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest$ac_exeext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25500 (eval $ac_link) 2>&5
25501 ac_status=$?
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 ac_cv_func_memcmp_working=yes
25510 else
25511 echo "$as_me: program exited with status $ac_status" >&5
25512 echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515 ( exit $ac_status )
25516 ac_cv_func_memcmp_working=no
25517 fi
25518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 fi
25520 fi
25521 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25522 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25523 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25524 "memcmp.$ac_objext" | \
25525 *" memcmp.$ac_objext" | \
25526 "memcmp.$ac_objext "* | \
25527 *" memcmp.$ac_objext "* ) ;;
25528 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25529 esac
25530
25531
25532
25533
25534 for ac_header in stdlib.h unistd.h
25535 do
25536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25538 echo "$as_me:$LINENO: checking for $ac_header" >&5
25539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 fi
25543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25545 else
25546 # Is the header compilable?
25547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h. */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 $ac_includes_default
25556 #include <$ac_header>
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25560 (eval $ac_compile) 2>conftest.er1
25561 ac_status=$?
25562 grep -v '^ *+' conftest.er1 >conftest.err
25563 rm -f conftest.er1
25564 cat conftest.err >&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } &&
25567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; } &&
25573 { ac_try='test -s conftest.$ac_objext'
25574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; }; then
25579 ac_header_compiler=yes
25580 else
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 ac_header_compiler=no
25585 fi
25586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25588 echo "${ECHO_T}$ac_header_compiler" >&6
25589
25590 # Is the header present?
25591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25593 cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h. */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25599 #include <$ac_header>
25600 _ACEOF
25601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25603 ac_status=$?
25604 grep -v '^ *+' conftest.er1 >conftest.err
25605 rm -f conftest.er1
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } >/dev/null; then
25609 if test -s conftest.err; then
25610 ac_cpp_err=$ac_c_preproc_warn_flag
25611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25612 else
25613 ac_cpp_err=
25614 fi
25615 else
25616 ac_cpp_err=yes
25617 fi
25618 if test -z "$ac_cpp_err"; then
25619 ac_header_preproc=yes
25620 else
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624 ac_header_preproc=no
25625 fi
25626 rm -f conftest.err conftest.$ac_ext
25627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25628 echo "${ECHO_T}$ac_header_preproc" >&6
25629
25630 # So? What about this header?
25631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25632 yes:no: )
25633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25637 ac_header_preproc=yes
25638 ;;
25639 no:yes:* )
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25652 (
25653 cat <<\_ASBOX
25654 ## ------------------------------------------ ##
25655 ## Report this to the AC_PACKAGE_NAME lists. ##
25656 ## ------------------------------------------ ##
25657 _ASBOX
25658 ) |
25659 sed "s/^/$as_me: WARNING: /" >&2
25660 ;;
25661 esac
25662 echo "$as_me:$LINENO: checking for $ac_header" >&5
25663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667 eval "$as_ac_Header=\$ac_header_preproc"
25668 fi
25669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25671
25672 fi
25673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25674 cat >>confdefs.h <<_ACEOF
25675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25676 _ACEOF
25677
25678 fi
25679
25680 done
25681
25682
25683 for ac_func in getpagesize
25684 do
25685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25686 echo "$as_me:$LINENO: checking for $ac_func" >&5
25687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25688 if eval "test \"\${$as_ac_var+set}\" = set"; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691 cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h. */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h. */
25697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25699 #define $ac_func innocuous_$ac_func
25700
25701 /* System header to define __stub macros and hopefully few prototypes,
25702 which can conflict with char $ac_func (); below.
25703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25704 <limits.h> exists even on freestanding compilers. */
25705
25706 #ifdef __STDC__
25707 # include <limits.h>
25708 #else
25709 # include <assert.h>
25710 #endif
25711
25712 #undef $ac_func
25713
25714 /* Override any gcc2 internal prototype to avoid an error. */
25715 #ifdef __cplusplus
25716 extern "C"
25717 {
25718 #endif
25719 /* We use char because int might match the return type of a gcc2
25720 builtin and then its argument prototype would still apply. */
25721 char $ac_func ();
25722 /* The GNU C library defines this for functions which it implements
25723 to always fail with ENOSYS. Some functions are actually named
25724 something starting with __ and the normal name is an alias. */
25725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25726 choke me
25727 #else
25728 char (*f) () = $ac_func;
25729 #endif
25730 #ifdef __cplusplus
25731 }
25732 #endif
25733
25734 int
25735 main ()
25736 {
25737 return f != $ac_func;
25738 ;
25739 return 0;
25740 }
25741 _ACEOF
25742 rm -f conftest.$ac_objext conftest$ac_exeext
25743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25744 (eval $ac_link) 2>conftest.er1
25745 ac_status=$?
25746 grep -v '^ *+' conftest.er1 >conftest.err
25747 rm -f conftest.er1
25748 cat conftest.err >&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } &&
25751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; } &&
25757 { ac_try='test -s conftest$ac_exeext'
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; }; then
25763 eval "$as_ac_var=yes"
25764 else
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768 eval "$as_ac_var=no"
25769 fi
25770 rm -f conftest.err conftest.$ac_objext \
25771 conftest$ac_exeext conftest.$ac_ext
25772 fi
25773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25775 if test `eval echo '${'$as_ac_var'}'` = yes; then
25776 cat >>confdefs.h <<_ACEOF
25777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25778 _ACEOF
25779
25780 fi
25781 done
25782
25783 echo "$as_me:$LINENO: checking for working mmap" >&5
25784 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25785 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25786 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 else
25788 if test "$cross_compiling" = yes; then
25789 ac_cv_func_mmap_fixed_mapped=no
25790 else
25791 cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h. */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 $ac_includes_default
25798 /* malloc might have been renamed as rpl_malloc. */
25799 #undef malloc
25800
25801 /* Thanks to Mike Haertel and Jim Avera for this test.
25802 Here is a matrix of mmap possibilities:
25803 mmap private not fixed
25804 mmap private fixed at somewhere currently unmapped
25805 mmap private fixed at somewhere already mapped
25806 mmap shared not fixed
25807 mmap shared fixed at somewhere currently unmapped
25808 mmap shared fixed at somewhere already mapped
25809 For private mappings, we should verify that changes cannot be read()
25810 back from the file, nor mmap's back from the file at a different
25811 address. (There have been systems where private was not correctly
25812 implemented like the infamous i386 svr4.0, and systems where the
25813 VM page cache was not coherent with the file system buffer cache
25814 like early versions of FreeBSD and possibly contemporary NetBSD.)
25815 For shared mappings, we should conversely verify that changes get
25816 propagated back to all the places they're supposed to be.
25817
25818 Grep wants private fixed already mapped.
25819 The main things grep needs to know about mmap are:
25820 * does it exist and is it safe to write into the mmap'd area
25821 * how to use it (BSD variants) */
25822
25823 #include <fcntl.h>
25824 #include <sys/mman.h>
25825
25826 #if !STDC_HEADERS && !HAVE_STDLIB_H
25827 char *malloc ();
25828 #endif
25829
25830 /* This mess was copied from the GNU getpagesize.h. */
25831 #if !HAVE_GETPAGESIZE
25832 /* Assume that all systems that can run configure have sys/param.h. */
25833 # if !HAVE_SYS_PARAM_H
25834 # define HAVE_SYS_PARAM_H 1
25835 # endif
25836
25837 # ifdef _SC_PAGESIZE
25838 # define getpagesize() sysconf(_SC_PAGESIZE)
25839 # else /* no _SC_PAGESIZE */
25840 # if HAVE_SYS_PARAM_H
25841 # include <sys/param.h>
25842 # ifdef EXEC_PAGESIZE
25843 # define getpagesize() EXEC_PAGESIZE
25844 # else /* no EXEC_PAGESIZE */
25845 # ifdef NBPG
25846 # define getpagesize() NBPG * CLSIZE
25847 # ifndef CLSIZE
25848 # define CLSIZE 1
25849 # endif /* no CLSIZE */
25850 # else /* no NBPG */
25851 # ifdef NBPC
25852 # define getpagesize() NBPC
25853 # else /* no NBPC */
25854 # ifdef PAGESIZE
25855 # define getpagesize() PAGESIZE
25856 # endif /* PAGESIZE */
25857 # endif /* no NBPC */
25858 # endif /* no NBPG */
25859 # endif /* no EXEC_PAGESIZE */
25860 # else /* no HAVE_SYS_PARAM_H */
25861 # define getpagesize() 8192 /* punt totally */
25862 # endif /* no HAVE_SYS_PARAM_H */
25863 # endif /* no _SC_PAGESIZE */
25864
25865 #endif /* no HAVE_GETPAGESIZE */
25866
25867 int
25868 main ()
25869 {
25870 char *data, *data2, *data3;
25871 int i, pagesize;
25872 int fd;
25873
25874 pagesize = getpagesize ();
25875
25876 /* First, make a file with some known garbage in it. */
25877 data = (char *) malloc (pagesize);
25878 if (!data)
25879 exit (1);
25880 for (i = 0; i < pagesize; ++i)
25881 *(data + i) = rand ();
25882 umask (0);
25883 fd = creat ("conftest.mmap", 0600);
25884 if (fd < 0)
25885 exit (1);
25886 if (write (fd, data, pagesize) != pagesize)
25887 exit (1);
25888 close (fd);
25889
25890 /* Next, try to mmap the file at a fixed address which already has
25891 something else allocated at it. If we can, also make sure that
25892 we see the same garbage. */
25893 fd = open ("conftest.mmap", O_RDWR);
25894 if (fd < 0)
25895 exit (1);
25896 data2 = (char *) malloc (2 * pagesize);
25897 if (!data2)
25898 exit (1);
25899 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25900 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25901 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25902 exit (1);
25903 for (i = 0; i < pagesize; ++i)
25904 if (*(data + i) != *(data2 + i))
25905 exit (1);
25906
25907 /* Finally, make sure that changes to the mapped area do not
25908 percolate back to the file as seen by read(). (This is a bug on
25909 some variants of i386 svr4.0.) */
25910 for (i = 0; i < pagesize; ++i)
25911 *(data2 + i) = *(data2 + i) + 1;
25912 data3 = (char *) malloc (pagesize);
25913 if (!data3)
25914 exit (1);
25915 if (read (fd, data3, pagesize) != pagesize)
25916 exit (1);
25917 for (i = 0; i < pagesize; ++i)
25918 if (*(data + i) != *(data3 + i))
25919 exit (1);
25920 close (fd);
25921 exit (0);
25922 }
25923 _ACEOF
25924 rm -f conftest$ac_exeext
25925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25926 (eval $ac_link) 2>&5
25927 ac_status=$?
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; }; then
25935 ac_cv_func_mmap_fixed_mapped=yes
25936 else
25937 echo "$as_me: program exited with status $ac_status" >&5
25938 echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25940
25941 ( exit $ac_status )
25942 ac_cv_func_mmap_fixed_mapped=no
25943 fi
25944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25945 fi
25946 fi
25947 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25948 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25949 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25950
25951 cat >>confdefs.h <<\_ACEOF
25952 #define HAVE_MMAP 1
25953 _ACEOF
25954
25955 fi
25956 rm -f conftest.mmap
25957
25958
25959 for ac_header in stdlib.h
25960 do
25961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25963 echo "$as_me:$LINENO: checking for $ac_header" >&5
25964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25966 echo $ECHO_N "(cached) $ECHO_C" >&6
25967 fi
25968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25970 else
25971 # Is the header compilable?
25972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25974 cat >conftest.$ac_ext <<_ACEOF
25975 /* confdefs.h. */
25976 _ACEOF
25977 cat confdefs.h >>conftest.$ac_ext
25978 cat >>conftest.$ac_ext <<_ACEOF
25979 /* end confdefs.h. */
25980 $ac_includes_default
25981 #include <$ac_header>
25982 _ACEOF
25983 rm -f conftest.$ac_objext
25984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25985 (eval $ac_compile) 2>conftest.er1
25986 ac_status=$?
25987 grep -v '^ *+' conftest.er1 >conftest.err
25988 rm -f conftest.er1
25989 cat conftest.err >&5
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } &&
25992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); }; } &&
25998 { ac_try='test -s conftest.$ac_objext'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
26004 ac_header_compiler=yes
26005 else
26006 echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26008
26009 ac_header_compiler=no
26010 fi
26011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26013 echo "${ECHO_T}$ac_header_compiler" >&6
26014
26015 # Is the header present?
26016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h. */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h. */
26024 #include <$ac_header>
26025 _ACEOF
26026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } >/dev/null; then
26034 if test -s conftest.err; then
26035 ac_cpp_err=$ac_c_preproc_warn_flag
26036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26037 else
26038 ac_cpp_err=
26039 fi
26040 else
26041 ac_cpp_err=yes
26042 fi
26043 if test -z "$ac_cpp_err"; then
26044 ac_header_preproc=yes
26045 else
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049 ac_header_preproc=no
26050 fi
26051 rm -f conftest.err conftest.$ac_ext
26052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26053 echo "${ECHO_T}$ac_header_preproc" >&6
26054
26055 # So? What about this header?
26056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26057 yes:no: )
26058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26062 ac_header_preproc=yes
26063 ;;
26064 no:yes:* )
26065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26077 (
26078 cat <<\_ASBOX
26079 ## ------------------------------------------ ##
26080 ## Report this to the AC_PACKAGE_NAME lists. ##
26081 ## ------------------------------------------ ##
26082 _ASBOX
26083 ) |
26084 sed "s/^/$as_me: WARNING: /" >&2
26085 ;;
26086 esac
26087 echo "$as_me:$LINENO: checking for $ac_header" >&5
26088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092 eval "$as_ac_Header=\$ac_header_preproc"
26093 fi
26094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26096
26097 fi
26098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26101 _ACEOF
26102
26103 fi
26104
26105 done
26106
26107 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
26108 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
26109 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112 if test "$cross_compiling" = yes; then
26113 ac_cv_func_realloc_0_nonnull=no
26114 else
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h. */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 #if STDC_HEADERS || HAVE_STDLIB_H
26122 # include <stdlib.h>
26123 #else
26124 char *realloc ();
26125 #endif
26126
26127 int
26128 main ()
26129 {
26130 exit (realloc (0, 0) ? 0 : 1);
26131 ;
26132 return 0;
26133 }
26134 _ACEOF
26135 rm -f conftest$ac_exeext
26136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26137 (eval $ac_link) 2>&5
26138 ac_status=$?
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; }; then
26146 ac_cv_func_realloc_0_nonnull=yes
26147 else
26148 echo "$as_me: program exited with status $ac_status" >&5
26149 echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152 ( exit $ac_status )
26153 ac_cv_func_realloc_0_nonnull=no
26154 fi
26155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26156 fi
26157 fi
26158 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
26159 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
26160 if test $ac_cv_func_realloc_0_nonnull = yes; then
26161
26162 cat >>confdefs.h <<\_ACEOF
26163 #define HAVE_REALLOC 1
26164 _ACEOF
26165
26166 else
26167 cat >>confdefs.h <<\_ACEOF
26168 #define HAVE_REALLOC 0
26169 _ACEOF
26170
26171 case $LIBOBJS in
26172 "realloc.$ac_objext" | \
26173 *" realloc.$ac_objext" | \
26174 "realloc.$ac_objext "* | \
26175 *" realloc.$ac_objext "* ) ;;
26176 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
26177 esac
26178
26179
26180 cat >>confdefs.h <<\_ACEOF
26181 #define realloc rpl_realloc
26182 _ACEOF
26183
26184 fi
26185
26186
26187
26188
26189
26190 for ac_header in sys/select.h sys/socket.h
26191 do
26192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26194 echo "$as_me:$LINENO: checking for $ac_header" >&5
26195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26197 echo $ECHO_N "(cached) $ECHO_C" >&6
26198 fi
26199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26201 else
26202 # Is the header compilable?
26203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26205 cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h. */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26211 $ac_includes_default
26212 #include <$ac_header>
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26216 (eval $ac_compile) 2>conftest.er1
26217 ac_status=$?
26218 grep -v '^ *+' conftest.er1 >conftest.err
26219 rm -f conftest.er1
26220 cat conftest.err >&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); } &&
26223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5
26226 ac_status=$?
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; } &&
26229 { ac_try='test -s conftest.$ac_objext'
26230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231 (eval $ac_try) 2>&5
26232 ac_status=$?
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); }; }; then
26235 ac_header_compiler=yes
26236 else
26237 echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240 ac_header_compiler=no
26241 fi
26242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26244 echo "${ECHO_T}$ac_header_compiler" >&6
26245
26246 # Is the header present?
26247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26249 cat >conftest.$ac_ext <<_ACEOF
26250 /* confdefs.h. */
26251 _ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h. */
26255 #include <$ac_header>
26256 _ACEOF
26257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26259 ac_status=$?
26260 grep -v '^ *+' conftest.er1 >conftest.err
26261 rm -f conftest.er1
26262 cat conftest.err >&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); } >/dev/null; then
26265 if test -s conftest.err; then
26266 ac_cpp_err=$ac_c_preproc_warn_flag
26267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26268 else
26269 ac_cpp_err=
26270 fi
26271 else
26272 ac_cpp_err=yes
26273 fi
26274 if test -z "$ac_cpp_err"; then
26275 ac_header_preproc=yes
26276 else
26277 echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280 ac_header_preproc=no
26281 fi
26282 rm -f conftest.err conftest.$ac_ext
26283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26284 echo "${ECHO_T}$ac_header_preproc" >&6
26285
26286 # So? What about this header?
26287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26288 yes:no: )
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26293 ac_header_preproc=yes
26294 ;;
26295 no:yes:* )
26296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26308 (
26309 cat <<\_ASBOX
26310 ## ------------------------------------------ ##
26311 ## Report this to the AC_PACKAGE_NAME lists. ##
26312 ## ------------------------------------------ ##
26313 _ASBOX
26314 ) |
26315 sed "s/^/$as_me: WARNING: /" >&2
26316 ;;
26317 esac
26318 echo "$as_me:$LINENO: checking for $ac_header" >&5
26319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26321 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 else
26323 eval "$as_ac_Header=\$ac_header_preproc"
26324 fi
26325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26327
26328 fi
26329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26330 cat >>confdefs.h <<_ACEOF
26331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26332 _ACEOF
26333
26334 fi
26335
26336 done
26337
26338 echo "$as_me:$LINENO: checking types of arguments for select" >&5
26339 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
26340 if test "${ac_cv_func_select_args+set}" = set; then
26341 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 else
26343 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26344 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
26345 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26346 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h. */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 $ac_includes_default
26353 #if HAVE_SYS_SELECT_H
26354 # include <sys/select.h>
26355 #endif
26356 #if HAVE_SYS_SOCKET_H
26357 # include <sys/socket.h>
26358 #endif
26359
26360 int
26361 main ()
26362 {
26363 extern int select ($ac_arg1,
26364 $ac_arg234, $ac_arg234, $ac_arg234,
26365 $ac_arg5);
26366 ;
26367 return 0;
26368 }
26369 _ACEOF
26370 rm -f conftest.$ac_objext
26371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26372 (eval $ac_compile) 2>conftest.er1
26373 ac_status=$?
26374 grep -v '^ *+' conftest.er1 >conftest.err
26375 rm -f conftest.er1
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } &&
26379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; } &&
26385 { ac_try='test -s conftest.$ac_objext'
26386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); }; }; then
26391 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26392 else
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26395
26396 fi
26397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26398 done
26399 done
26400 done
26401 # Provide a safe default value.
26402 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26403
26404 fi
26405 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26406 echo "${ECHO_T}$ac_cv_func_select_args" >&6
26407 ac_save_IFS=$IFS; IFS=','
26408 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26409 IFS=$ac_save_IFS
26410 shift
26411
26412 cat >>confdefs.h <<_ACEOF
26413 #define SELECT_TYPE_ARG1 $1
26414 _ACEOF
26415
26416
26417 cat >>confdefs.h <<_ACEOF
26418 #define SELECT_TYPE_ARG234 ($2)
26419 _ACEOF
26420
26421
26422 cat >>confdefs.h <<_ACEOF
26423 #define SELECT_TYPE_ARG5 ($3)
26424 _ACEOF
26425
26426 rm -f conftest*
26427
26428 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26429 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26430 if test "${ac_cv_type_signal+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433 cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h. */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 #include <sys/types.h>
26440 #include <signal.h>
26441 #ifdef signal
26442 # undef signal
26443 #endif
26444 #ifdef __cplusplus
26445 extern "C" void (*signal (int, void (*)(int)))(int);
26446 #else
26447 void (*signal ()) ();
26448 #endif
26449
26450 int
26451 main ()
26452 {
26453 int i;
26454 ;
26455 return 0;
26456 }
26457 _ACEOF
26458 rm -f conftest.$ac_objext
26459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460 (eval $ac_compile) 2>conftest.er1
26461 ac_status=$?
26462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
26467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest.$ac_objext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 ac_cv_type_signal=void
26480 else
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 ac_cv_type_signal=int
26485 fi
26486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26487 fi
26488 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26489 echo "${ECHO_T}$ac_cv_type_signal" >&6
26490
26491 cat >>confdefs.h <<_ACEOF
26492 #define RETSIGTYPE $ac_cv_type_signal
26493 _ACEOF
26494
26495
26496 #AC_FUNC_STAT
26497
26498 for ac_func in strftime
26499 do
26500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26501 echo "$as_me:$LINENO: checking for $ac_func" >&5
26502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26503 if eval "test \"\${$as_ac_var+set}\" = set"; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506 cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h. */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h. */
26512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26514 #define $ac_func innocuous_$ac_func
26515
26516 /* System header to define __stub macros and hopefully few prototypes,
26517 which can conflict with char $ac_func (); below.
26518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26519 <limits.h> exists even on freestanding compilers. */
26520
26521 #ifdef __STDC__
26522 # include <limits.h>
26523 #else
26524 # include <assert.h>
26525 #endif
26526
26527 #undef $ac_func
26528
26529 /* Override any gcc2 internal prototype to avoid an error. */
26530 #ifdef __cplusplus
26531 extern "C"
26532 {
26533 #endif
26534 /* We use char because int might match the return type of a gcc2
26535 builtin and then its argument prototype would still apply. */
26536 char $ac_func ();
26537 /* The GNU C library defines this for functions which it implements
26538 to always fail with ENOSYS. Some functions are actually named
26539 something starting with __ and the normal name is an alias. */
26540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26541 choke me
26542 #else
26543 char (*f) () = $ac_func;
26544 #endif
26545 #ifdef __cplusplus
26546 }
26547 #endif
26548
26549 int
26550 main ()
26551 {
26552 return f != $ac_func;
26553 ;
26554 return 0;
26555 }
26556 _ACEOF
26557 rm -f conftest.$ac_objext conftest$ac_exeext
26558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26559 (eval $ac_link) 2>conftest.er1
26560 ac_status=$?
26561 grep -v '^ *+' conftest.er1 >conftest.err
26562 rm -f conftest.er1
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
26566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; } &&
26572 { ac_try='test -s conftest$ac_exeext'
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26575 ac_status=$?
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 eval "$as_ac_var=yes"
26579 else
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 eval "$as_ac_var=no"
26584 fi
26585 rm -f conftest.err conftest.$ac_objext \
26586 conftest$ac_exeext conftest.$ac_ext
26587 fi
26588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26590 if test `eval echo '${'$as_ac_var'}'` = yes; then
26591 cat >>confdefs.h <<_ACEOF
26592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26593 _ACEOF
26594
26595 else
26596 # strftime is in -lintl on SCO UNIX.
26597 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
26598 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
26599 if test "${ac_cv_lib_intl_strftime+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602 ac_check_lib_save_LIBS=$LIBS
26603 LIBS="-lintl $LIBS"
26604 cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h. */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610
26611 /* Override any gcc2 internal prototype to avoid an error. */
26612 #ifdef __cplusplus
26613 extern "C"
26614 #endif
26615 /* We use char because int might match the return type of a gcc2
26616 builtin and then its argument prototype would still apply. */
26617 char strftime ();
26618 int
26619 main ()
26620 {
26621 strftime ();
26622 ;
26623 return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628 (eval $ac_link) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; } &&
26641 { ac_try='test -s conftest$ac_exeext'
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }; then
26647 ac_cv_lib_intl_strftime=yes
26648 else
26649 echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26651
26652 ac_cv_lib_intl_strftime=no
26653 fi
26654 rm -f conftest.err conftest.$ac_objext \
26655 conftest$ac_exeext conftest.$ac_ext
26656 LIBS=$ac_check_lib_save_LIBS
26657 fi
26658 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
26659 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
26660 if test $ac_cv_lib_intl_strftime = yes; then
26661 cat >>confdefs.h <<\_ACEOF
26662 #define HAVE_STRFTIME 1
26663 _ACEOF
26664
26665 LIBS="-lintl $LIBS"
26666 fi
26667
26668 fi
26669 done
26670
26671
26672
26673 for ac_func in strptime
26674 do
26675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26676 echo "$as_me:$LINENO: checking for $ac_func" >&5
26677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26678 if eval "test \"\${$as_ac_var+set}\" = set"; then
26679 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 else
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h. */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26689 #define $ac_func innocuous_$ac_func
26690
26691 /* System header to define __stub macros and hopefully few prototypes,
26692 which can conflict with char $ac_func (); below.
26693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26694 <limits.h> exists even on freestanding compilers. */
26695
26696 #ifdef __STDC__
26697 # include <limits.h>
26698 #else
26699 # include <assert.h>
26700 #endif
26701
26702 #undef $ac_func
26703
26704 /* Override any gcc2 internal prototype to avoid an error. */
26705 #ifdef __cplusplus
26706 extern "C"
26707 {
26708 #endif
26709 /* We use char because int might match the return type of a gcc2
26710 builtin and then its argument prototype would still apply. */
26711 char $ac_func ();
26712 /* The GNU C library defines this for functions which it implements
26713 to always fail with ENOSYS. Some functions are actually named
26714 something starting with __ and the normal name is an alias. */
26715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26716 choke me
26717 #else
26718 char (*f) () = $ac_func;
26719 #endif
26720 #ifdef __cplusplus
26721 }
26722 #endif
26723
26724 int
26725 main ()
26726 {
26727 return f != $ac_func;
26728 ;
26729 return 0;
26730 }
26731 _ACEOF
26732 rm -f conftest.$ac_objext conftest$ac_exeext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26734 (eval $ac_link) 2>conftest.er1
26735 ac_status=$?
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
26741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26744 ac_status=$?
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; } &&
26747 { ac_try='test -s conftest$ac_exeext'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26753 eval "$as_ac_var=yes"
26754 else
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758 eval "$as_ac_var=no"
26759 fi
26760 rm -f conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
26762 fi
26763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26765 if test `eval echo '${'$as_ac_var'}'` = yes; then
26766 cat >>confdefs.h <<_ACEOF
26767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26768 _ACEOF
26769
26770 fi
26771 done
26772
26773 echo "$as_me:$LINENO: checking for strptime declaration in time.h" >&5
26774 echo $ECHO_N "checking for strptime declaration in time.h... $ECHO_C" >&6
26775 cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h. */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 #include <time.h>
26782
26783 _ACEOF
26784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26785 $EGREP "strptime" >/dev/null 2>&1; then
26786
26787
26788 cat >>confdefs.h <<\_ACEOF
26789 #define HAVE_STRPTIME_DECL
26790 _ACEOF
26791
26792 echo "$as_me:$LINENO: result: yes" >&5
26793 echo "${ECHO_T}yes" >&6
26794 else
26795 echo "$as_me:$LINENO: result: no" >&5
26796 echo "${ECHO_T}no" >&6
26797
26798 fi
26799 rm -f conftest*
26800
26801
26802
26803 for ac_func in vprintf
26804 do
26805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26806 echo "$as_me:$LINENO: checking for $ac_func" >&5
26807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26808 if eval "test \"\${$as_ac_var+set}\" = set"; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h. */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26819 #define $ac_func innocuous_$ac_func
26820
26821 /* System header to define __stub macros and hopefully few prototypes,
26822 which can conflict with char $ac_func (); below.
26823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824 <limits.h> exists even on freestanding compilers. */
26825
26826 #ifdef __STDC__
26827 # include <limits.h>
26828 #else
26829 # include <assert.h>
26830 #endif
26831
26832 #undef $ac_func
26833
26834 /* Override any gcc2 internal prototype to avoid an error. */
26835 #ifdef __cplusplus
26836 extern "C"
26837 {
26838 #endif
26839 /* We use char because int might match the return type of a gcc2
26840 builtin and then its argument prototype would still apply. */
26841 char $ac_func ();
26842 /* The GNU C library defines this for functions which it implements
26843 to always fail with ENOSYS. Some functions are actually named
26844 something starting with __ and the normal name is an alias. */
26845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26846 choke me
26847 #else
26848 char (*f) () = $ac_func;
26849 #endif
26850 #ifdef __cplusplus
26851 }
26852 #endif
26853
26854 int
26855 main ()
26856 {
26857 return f != $ac_func;
26858 ;
26859 return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext conftest$ac_exeext
26863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26864 (eval $ac_link) 2>conftest.er1
26865 ac_status=$?
26866 grep -v '^ *+' conftest.er1 >conftest.err
26867 rm -f conftest.er1
26868 cat conftest.err >&5
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); } &&
26871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876 (exit $ac_status); }; } &&
26877 { ac_try='test -s conftest$ac_exeext'
26878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); }; }; then
26883 eval "$as_ac_var=yes"
26884 else
26885 echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26887
26888 eval "$as_ac_var=no"
26889 fi
26890 rm -f conftest.err conftest.$ac_objext \
26891 conftest$ac_exeext conftest.$ac_ext
26892 fi
26893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26895 if test `eval echo '${'$as_ac_var'}'` = yes; then
26896 cat >>confdefs.h <<_ACEOF
26897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26898 _ACEOF
26899
26900 echo "$as_me:$LINENO: checking for _doprnt" >&5
26901 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26902 if test "${ac_cv_func__doprnt+set}" = set; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26904 else
26905 cat >conftest.$ac_ext <<_ACEOF
26906 /* confdefs.h. */
26907 _ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h. */
26911 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26913 #define _doprnt innocuous__doprnt
26914
26915 /* System header to define __stub macros and hopefully few prototypes,
26916 which can conflict with char _doprnt (); below.
26917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26918 <limits.h> exists even on freestanding compilers. */
26919
26920 #ifdef __STDC__
26921 # include <limits.h>
26922 #else
26923 # include <assert.h>
26924 #endif
26925
26926 #undef _doprnt
26927
26928 /* Override any gcc2 internal prototype to avoid an error. */
26929 #ifdef __cplusplus
26930 extern "C"
26931 {
26932 #endif
26933 /* We use char because int might match the return type of a gcc2
26934 builtin and then its argument prototype would still apply. */
26935 char _doprnt ();
26936 /* The GNU C library defines this for functions which it implements
26937 to always fail with ENOSYS. Some functions are actually named
26938 something starting with __ and the normal name is an alias. */
26939 #if defined (__stub__doprnt) || defined (__stub____doprnt)
26940 choke me
26941 #else
26942 char (*f) () = _doprnt;
26943 #endif
26944 #ifdef __cplusplus
26945 }
26946 #endif
26947
26948 int
26949 main ()
26950 {
26951 return f != _doprnt;
26952 ;
26953 return 0;
26954 }
26955 _ACEOF
26956 rm -f conftest.$ac_objext conftest$ac_exeext
26957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26958 (eval $ac_link) 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
26965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest$ac_exeext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_func__doprnt=yes
26978 else
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26981
26982 ac_cv_func__doprnt=no
26983 fi
26984 rm -f conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
26986 fi
26987 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26988 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26989 if test $ac_cv_func__doprnt = yes; then
26990
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_DOPRNT 1
26993 _ACEOF
26994
26995 fi
26996
26997 fi
26998 done
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029 for ac_func in alarm btowc bzero ftime getcwd gettimeofday localtime_r memcmp memcpy memmove memset mkstemp munmap pstat_getdynamic raise re_comp regcomp select setlocale strchr strcspn strdup strerror strrchr strstr strtol strtoul timegm
27030 do
27031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27032 echo "$as_me:$LINENO: checking for $ac_func" >&5
27033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27034 if eval "test \"\${$as_ac_var+set}\" = set"; then
27035 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 else
27037 cat >conftest.$ac_ext <<_ACEOF
27038 /* confdefs.h. */
27039 _ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h. */
27043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27045 #define $ac_func innocuous_$ac_func
27046
27047 /* System header to define __stub macros and hopefully few prototypes,
27048 which can conflict with char $ac_func (); below.
27049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27050 <limits.h> exists even on freestanding compilers. */
27051
27052 #ifdef __STDC__
27053 # include <limits.h>
27054 #else
27055 # include <assert.h>
27056 #endif
27057
27058 #undef $ac_func
27059
27060 /* Override any gcc2 internal prototype to avoid an error. */
27061 #ifdef __cplusplus
27062 extern "C"
27063 {
27064 #endif
27065 /* We use char because int might match the return type of a gcc2
27066 builtin and then its argument prototype would still apply. */
27067 char $ac_func ();
27068 /* The GNU C library defines this for functions which it implements
27069 to always fail with ENOSYS. Some functions are actually named
27070 something starting with __ and the normal name is an alias. */
27071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27072 choke me
27073 #else
27074 char (*f) () = $ac_func;
27075 #endif
27076 #ifdef __cplusplus
27077 }
27078 #endif
27079
27080 int
27081 main ()
27082 {
27083 return f != $ac_func;
27084 ;
27085 return 0;
27086 }
27087 _ACEOF
27088 rm -f conftest.$ac_objext conftest$ac_exeext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090 (eval $ac_link) 2>conftest.er1
27091 ac_status=$?
27092 grep -v '^ *+' conftest.er1 >conftest.err
27093 rm -f conftest.er1
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } &&
27097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 (eval $ac_try) 2>&5
27100 ac_status=$?
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest$ac_exeext'
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; }; then
27109 eval "$as_ac_var=yes"
27110 else
27111 echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27113
27114 eval "$as_ac_var=no"
27115 fi
27116 rm -f conftest.err conftest.$ac_objext \
27117 conftest$ac_exeext conftest.$ac_ext
27118 fi
27119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27121 if test `eval echo '${'$as_ac_var'}'` = yes; then
27122 cat >>confdefs.h <<_ACEOF
27123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27124 _ACEOF
27125
27126 fi
27127 done
27128
27129
27130
27131 for ac_func in snprintf vsnprintf
27132 do
27133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27134 echo "$as_me:$LINENO: checking for $ac_func" >&5
27135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27136 if eval "test \"\${$as_ac_var+set}\" = set"; then
27137 echo $ECHO_N "(cached) $ECHO_C" >&6
27138 else
27139 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h. */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27147 #define $ac_func innocuous_$ac_func
27148
27149 /* System header to define __stub macros and hopefully few prototypes,
27150 which can conflict with char $ac_func (); below.
27151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27152 <limits.h> exists even on freestanding compilers. */
27153
27154 #ifdef __STDC__
27155 # include <limits.h>
27156 #else
27157 # include <assert.h>
27158 #endif
27159
27160 #undef $ac_func
27161
27162 /* Override any gcc2 internal prototype to avoid an error. */
27163 #ifdef __cplusplus
27164 extern "C"
27165 {
27166 #endif
27167 /* We use char because int might match the return type of a gcc2
27168 builtin and then its argument prototype would still apply. */
27169 char $ac_func ();
27170 /* The GNU C library defines this for functions which it implements
27171 to always fail with ENOSYS. Some functions are actually named
27172 something starting with __ and the normal name is an alias. */
27173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27174 choke me
27175 #else
27176 char (*f) () = $ac_func;
27177 #endif
27178 #ifdef __cplusplus
27179 }
27180 #endif
27181
27182 int
27183 main ()
27184 {
27185 return f != $ac_func;
27186 ;
27187 return 0;
27188 }
27189 _ACEOF
27190 rm -f conftest.$ac_objext conftest$ac_exeext
27191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27192 (eval $ac_link) 2>conftest.er1
27193 ac_status=$?
27194 grep -v '^ *+' conftest.er1 >conftest.err
27195 rm -f conftest.er1
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } &&
27199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
27206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27207 (eval $ac_try) 2>&5
27208 ac_status=$?
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; }; then
27211 eval "$as_ac_var=yes"
27212 else
27213 echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27215
27216 eval "$as_ac_var=no"
27217 fi
27218 rm -f conftest.err conftest.$ac_objext \
27219 conftest$ac_exeext conftest.$ac_ext
27220 fi
27221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27223 if test `eval echo '${'$as_ac_var'}'` = yes; then
27224 cat >>confdefs.h <<_ACEOF
27225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27226 _ACEOF
27227
27228 else
27229 case $LIBOBJS in
27230 "$ac_func.$ac_objext" | \
27231 *" $ac_func.$ac_objext" | \
27232 "$ac_func.$ac_objext "* | \
27233 *" $ac_func.$ac_objext "* ) ;;
27234 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27235 esac
27236
27237 fi
27238 done
27239
27240
27241
27242 # More header checks--here use C++
27243 ac_ext=cc
27244 ac_cpp='$CXXCPP $CPPFLAGS'
27245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27248
27249 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27250 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27251 if test "${ac_cv_cxx_namespaces+set}" = set; then
27252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253 else
27254
27255
27256 ac_ext=cc
27257 ac_cpp='$CXXCPP $CPPFLAGS'
27258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27261
27262 cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h. */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 namespace Outer { namespace Inner { int i = 0; }}
27269 int
27270 main ()
27271 {
27272 using namespace Outer::Inner; return i;
27273 ;
27274 return 0;
27275 }
27276 _ACEOF
27277 rm -f conftest.$ac_objext
27278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27279 (eval $ac_compile) 2>conftest.er1
27280 ac_status=$?
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288 (eval $ac_try) 2>&5
27289 ac_status=$?
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; } &&
27292 { ac_try='test -s conftest.$ac_objext'
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
27298 ac_cv_cxx_namespaces=yes
27299 else
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303 ac_cv_cxx_namespaces=no
27304 fi
27305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27306 ac_ext=cc
27307 ac_cpp='$CXXCPP $CPPFLAGS'
27308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27311
27312
27313 fi
27314 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27315 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27316 if test "$ac_cv_cxx_namespaces" = yes; then
27317
27318 cat >>confdefs.h <<\_ACEOF
27319 #define HAVE_NAMESPACES
27320 _ACEOF
27321
27322 fi
27323
27324 echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
27325 echo $ECHO_N "checking whether the compiler supports ISO C++ standard library... $ECHO_C" >&6
27326 if test "${ac_cv_cxx_have_std+set}" = set; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27328 else
27329
27330
27331
27332 ac_ext=cc
27333 ac_cpp='$CXXCPP $CPPFLAGS'
27334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27337
27338 cat >conftest.$ac_ext <<_ACEOF
27339 /* confdefs.h. */
27340 _ACEOF
27341 cat confdefs.h >>conftest.$ac_ext
27342 cat >>conftest.$ac_ext <<_ACEOF
27343 /* end confdefs.h. */
27344 #include <iostream>
27345 #include <map>
27346 #include <iomanip>
27347 #include <cmath>
27348 #ifdef HAVE_NAMESPACES
27349 using namespace std;
27350 #endif
27351 int
27352 main ()
27353 {
27354 return 0;
27355 ;
27356 return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext
27360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27361 (eval $ac_compile) 2>conftest.er1
27362 ac_status=$?
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } &&
27368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest.$ac_objext'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 ac_cv_cxx_have_std=yes
27381 else
27382 echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27384
27385 ac_cv_cxx_have_std=no
27386 fi
27387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27388 ac_ext=cc
27389 ac_cpp='$CXXCPP $CPPFLAGS'
27390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27393
27394
27395 fi
27396 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std" >&5
27397 echo "${ECHO_T}$ac_cv_cxx_have_std" >&6
27398 if test "$ac_cv_cxx_have_std" = yes; then
27399
27400 cat >>confdefs.h <<\_ACEOF
27401 #define HAVE_STD
27402 _ACEOF
27403
27404 fi
27405
27406
27407 echo "$as_me:$LINENO: checking whether we need gethostname() prototype?" >&5
27408 echo $ECHO_N "checking whether we need gethostname() prototype?... $ECHO_C" >&6
27409 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h. */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27415
27416 #include <unistd.h>
27417 #include <stdio.h>
27418 #include <sys/types.h>
27419 #include <sys/socket.h>
27420 #include <netinet/in.h>
27421 #include <sys/ioctl.h>
27422 #include <sys/uio.h>
27423 #include <sys/file.h>
27424 #include <fcntl.h>
27425 #include <netdb.h>
27426 #include <stdlib.h>
27427 extern "C" int gethostname(char *, int);
27428
27429 int
27430 main ()
27431 {
27432
27433 gethostname("sdsu.edu", (int) 8);
27434
27435 ;
27436 return 0;
27437 }
27438 _ACEOF
27439 rm -f conftest.$ac_objext
27440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27441 (eval $ac_compile) 2>conftest.er1
27442 ac_status=$?
27443 grep -v '^ *+' conftest.er1 >conftest.err
27444 rm -f conftest.er1
27445 cat conftest.err >&5
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); } &&
27448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450 (eval $ac_try) 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; } &&
27454 { ac_try='test -s conftest.$ac_objext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 echo "$as_me:$LINENO: result: yes" >&5
27461 echo "${ECHO_T}yes" >&6;
27462 cat >>confdefs.h <<\_ACEOF
27463 #define NEED_PROTO_GETHOSTNAME
27464 _ACEOF
27465
27466 else
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27469
27470 echo "$as_me:$LINENO: result: no" >&5
27471 echo "${ECHO_T}no" >&6
27472 fi
27473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27474
27475 # We're still using the C++ compiler for this test
27476 echo "$as_me:$LINENO: checking how to call getpeername?" >&5
27477 echo $ECHO_N "checking how to call getpeername?... $ECHO_C" >&6
27478 for sock_t in 'struct sockaddr' 'void'; do
27479 for getpeername_length_t in 'size_t' 'int' 'unsigned int' 'long unsigned int' 'socklen_t'
27480 do
27481 cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h. */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h. */
27487 #include <sys/types.h>
27488 #include <sys/socket.h>
27489 extern "C" int getpeername(int, $sock_t *, $getpeername_length_t *);
27490 $sock_t s; $getpeername_length_t l;
27491 int
27492 main ()
27493 {
27494 getpeername(0, &s, &l);
27495 ;
27496 return 0;
27497 }
27498 _ACEOF
27499 rm -f conftest.$ac_objext
27500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27501 (eval $ac_compile) 2>conftest.er1
27502 ac_status=$?
27503 grep -v '^ *+' conftest.er1 >conftest.err
27504 rm -f conftest.er1
27505 cat conftest.err >&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); } &&
27508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510 (eval $ac_try) 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; } &&
27514 { ac_try='test -s conftest.$ac_objext'
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; }; then
27520 ac_found=yes ; break 2
27521 else
27522 echo "$as_me: failed program was:" >&5
27523 sed 's/^/| /' conftest.$ac_ext >&5
27524
27525 ac_found=no
27526 fi
27527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27528 done
27529 done
27530
27531 if test "$ac_found" = no
27532 then
27533 { echo "$as_me:$LINENO: WARNING: can't determine, using size_t" >&5
27534 echo "$as_me: WARNING: can't determine, using size_t" >&2;}
27535 getpeername_length_t="size_t"
27536 else
27537 echo "$as_me:$LINENO: result: $getpeername_length_t" >&5
27538 echo "${ECHO_T}$getpeername_length_t" >&6
27539 fi
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define GETPEERNAME_LENGTH_T $getpeername_length_t
27543 _ACEOF
27544
27545
27546 echo "$as_me:$LINENO: checking how to call select?" >&5
27547 echo $ECHO_N "checking how to call select?... $ECHO_C" >&6
27548 for fd_set_t in 'fd_set' 'int'
27549 do
27550 for timeval_t in 'struct timeval' 'const struct timeval'
27551 do
27552 cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h. */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h. */
27558 #include <sys/time.h>
27559 #include <sys/types.h>
27560 #include <unistd.h>
27561 extern "C" int select(int, $fd_set_t *, $fd_set_t *, $fd_set_t *, $timeval_t *);
27562 $fd_set_t fd;
27563 int
27564 main ()
27565 {
27566 select(0, &fd, 0, 0, 0);
27567 ;
27568 return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext
27572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27573 (eval $ac_compile) 2>conftest.er1
27574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest.$ac_objext'
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 ac_found=yes ; break 2
27593 else
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597 ac_found=no
27598 fi
27599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27600 done
27601 done
27602
27603 if test "$ac_found" = no
27604 then
27605 { echo "$as_me:$LINENO: WARNING: can't determine argument type using int" >&5
27606 echo "$as_me: WARNING: can't determine argument type using int" >&2;}
27607 fd_set_t="int"
27608 else
27609 echo "$as_me:$LINENO: result: $fd_set_t" >&5
27610 echo "${ECHO_T}$fd_set_t" >&6
27611 fi
27612
27613 cat >>confdefs.h <<_ACEOF
27614 #define FD_SET_T $fd_set_t
27615 _ACEOF
27616
27617
27618 # Replacements for the library functions (i.e. regex)
27619 # Regex is compiled by the C compiler so we need to do it before we switch
27620 if test $WITH_RX = yes; then
27621
27622 if test "${ac_cv_header_rxposix_h+set}" = set; then
27623 echo "$as_me:$LINENO: checking for rxposix.h" >&5
27624 echo $ECHO_N "checking for rxposix.h... $ECHO_C" >&6
27625 if test "${ac_cv_header_rxposix_h+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 fi
27628 echo "$as_me:$LINENO: result: $ac_cv_header_rxposix_h" >&5
27629 echo "${ECHO_T}$ac_cv_header_rxposix_h" >&6
27630 else
27631 # Is the header compilable?
27632 echo "$as_me:$LINENO: checking rxposix.h usability" >&5
27633 echo $ECHO_N "checking rxposix.h usability... $ECHO_C" >&6
27634 cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h. */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 $ac_includes_default
27641 #include <rxposix.h>
27642 _ACEOF
27643 rm -f conftest.$ac_objext
27644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27645 (eval $ac_compile) 2>conftest.er1
27646 ac_status=$?
27647 grep -v '^ *+' conftest.er1 >conftest.err
27648 rm -f conftest.er1
27649 cat conftest.err >&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } &&
27652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest.$ac_objext'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27661 ac_status=$?
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 ac_header_compiler=yes
27665 else
27666 echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669 ac_header_compiler=no
27670 fi
27671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27673 echo "${ECHO_T}$ac_header_compiler" >&6
27674
27675 # Is the header present?
27676 echo "$as_me:$LINENO: checking rxposix.h presence" >&5
27677 echo $ECHO_N "checking rxposix.h presence... $ECHO_C" >&6
27678 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h. */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27684 #include <rxposix.h>
27685 _ACEOF
27686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27688 ac_status=$?
27689 grep -v '^ *+' conftest.er1 >conftest.err
27690 rm -f conftest.er1
27691 cat conftest.err >&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } >/dev/null; then
27694 if test -s conftest.err; then
27695 ac_cpp_err=$ac_cxx_preproc_warn_flag
27696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27697 else
27698 ac_cpp_err=
27699 fi
27700 else
27701 ac_cpp_err=yes
27702 fi
27703 if test -z "$ac_cpp_err"; then
27704 ac_header_preproc=yes
27705 else
27706 echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27708
27709 ac_header_preproc=no
27710 fi
27711 rm -f conftest.err conftest.$ac_ext
27712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27713 echo "${ECHO_T}$ac_header_preproc" >&6
27714
27715 # So? What about this header?
27716 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27717 yes:no: )
27718 { echo "$as_me:$LINENO: WARNING: rxposix.h: accepted by the compiler, rejected by the preprocessor!" >&5
27719 echo "$as_me: WARNING: rxposix.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: rxposix.h: proceeding with the compiler's result" >&5
27721 echo "$as_me: WARNING: rxposix.h: proceeding with the compiler's result" >&2;}
27722 ac_header_preproc=yes
27723 ;;
27724 no:yes:* )
27725 { echo "$as_me:$LINENO: WARNING: rxposix.h: present but cannot be compiled" >&5
27726 echo "$as_me: WARNING: rxposix.h: present but cannot be compiled" >&2;}
27727 { echo "$as_me:$LINENO: WARNING: rxposix.h: check for missing prerequisite headers?" >&5
27728 echo "$as_me: WARNING: rxposix.h: check for missing prerequisite headers?" >&2;}
27729 { echo "$as_me:$LINENO: WARNING: rxposix.h: see the Autoconf documentation" >&5
27730 echo "$as_me: WARNING: rxposix.h: see the Autoconf documentation" >&2;}
27731 { echo "$as_me:$LINENO: WARNING: rxposix.h: section \"Present But Cannot Be Compiled\"" >&5
27732 echo "$as_me: WARNING: rxposix.h: section \"Present But Cannot Be Compiled\"" >&2;}
27733 { echo "$as_me:$LINENO: WARNING: rxposix.h: proceeding with the preprocessor's result" >&5
27734 echo "$as_me: WARNING: rxposix.h: proceeding with the preprocessor's result" >&2;}
27735 { echo "$as_me:$LINENO: WARNING: rxposix.h: in the future, the compiler will take precedence" >&5
27736 echo "$as_me: WARNING: rxposix.h: in the future, the compiler will take precedence" >&2;}
27737 (
27738 cat <<\_ASBOX
27739 ## ------------------------------------------ ##
27740 ## Report this to the AC_PACKAGE_NAME lists. ##
27741 ## ------------------------------------------ ##
27742 _ASBOX
27743 ) |
27744 sed "s/^/$as_me: WARNING: /" >&2
27745 ;;
27746 esac
27747 echo "$as_me:$LINENO: checking for rxposix.h" >&5
27748 echo $ECHO_N "checking for rxposix.h... $ECHO_C" >&6
27749 if test "${ac_cv_header_rxposix_h+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27751 else
27752 ac_cv_header_rxposix_h=$ac_header_preproc
27753 fi
27754 echo "$as_me:$LINENO: result: $ac_cv_header_rxposix_h" >&5
27755 echo "${ECHO_T}$ac_cv_header_rxposix_h" >&6
27756
27757 fi
27758 if test $ac_cv_header_rxposix_h = yes; then
27759
27760 cat >>confdefs.h <<\_ACEOF
27761 #define USE_RX
27762 _ACEOF
27763
27764 else
27765 WITH_RX='no'
27766 fi
27767
27768
27769 fi
27770 if test $WITH_RX = no; then
27771 echo "$as_me:$LINENO: checking if we should use the included regex?" >&5
27772 echo $ECHO_N "checking if we should use the included regex?... $ECHO_C" >&6
27773 OLD_CFLAGS=$CFLAGS
27774 CFLAGS="$CFLAGS -I${srcdir}/htlib"
27775
27776 if test "$cross_compiling" = yes; then
27777 echo "$as_me:$LINENO: result: unknown" >&5
27778 echo "${ECHO_T}unknown" >&6;
27779 cat >>confdefs.h <<\_ACEOF
27780 #define HAVE_BROKEN_REGEX
27781 _ACEOF
27782
27783 else
27784 cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h. */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h. */
27790
27791 #include "${srcdir}/htlib/regex.c"
27792 int main() {
27793 regex_t re;
27794 return regcomp(&re, "ht.*Dig", REG_ICASE);
27795 }
27796
27797 _ACEOF
27798 rm -f conftest$ac_exeext
27799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27800 (eval $ac_link) 2>&5
27801 ac_status=$?
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; }; then
27809 echo "$as_me:$LINENO: result: yes" >&5
27810 echo "${ECHO_T}yes" >&6;case $LIBOBJS in
27811 "regex.$ac_objext" | \
27812 *" regex.$ac_objext" | \
27813 "regex.$ac_objext "* | \
27814 *" regex.$ac_objext "* ) ;;
27815 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
27816 esac
27817
27818 else
27819 echo "$as_me: program exited with status $ac_status" >&5
27820 echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27822
27823 ( exit $ac_status )
27824 echo "$as_me:$LINENO: result: no" >&5
27825 echo "${ECHO_T}no" >&6;
27826 cat >>confdefs.h <<\_ACEOF
27827 #define HAVE_BROKEN_REGEX
27828 _ACEOF
27829
27830 fi
27831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27832 fi
27833 CFLAGS=$OLD_CFLAGS
27834 fi
27835
27836 # Enable big files?
27837 echo "$as_me:$LINENO: checking if --enable-bigfile option specified" >&5
27838 echo $ECHO_N "checking if --enable-bigfile option specified... $ECHO_C" >&6
27839 # Check whether --enable-bigfile or --disable-bigfile was given.
27840 if test "${enable_bigfile+set}" = set; then
27841 enableval="$enable_bigfile"
27842 db_cv_bigfile="$enable_bigfile"
27843 else
27844 db_cv_bigfile="yes"
27845 fi;
27846 echo "$as_me:$LINENO: result: $db_cv_bigfile" >&5
27847 echo "${ECHO_T}$db_cv_bigfile" >&6
27848
27849 # Vendors are doing 64-bit lseek in different ways.
27850 # Linux, AIX, HP/UX and Solaris all use _FILE_OFFSET_BITS to specify a "big-file"
27851 # environment.
27852 if test "$db_cv_bigfile" = yes; then
27853 case "$host_os" in
27854 bsdi*|aix*|hpux*|solaris*)
27855 cat >>confdefs.h <<\_ACEOF
27856 #define HAVE_FILE_OFFSET_BITS
27857 _ACEOF
27858 ;;
27859 linux*)
27860 cat >>confdefs.h <<\_ACEOF
27861 #define HAVE_FILE_OFFSET_BITS
27862 _ACEOF
27863
27864
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_LARGEFILE_SOURCE
27867 _ACEOF
27868
27869 ;;
27870 esac
27871 fi
27872
27873 # Add the -mimpure-text option on Solaris with GCC and libstc++ that is not shared
27874 if test "$GXX" = "yes"
27875 then
27876 case "$host" in
27877 *-sun-solaris* ) extra_ldflags="-mimpure-text";;
27878 esac
27879 fi
27880
27881
27882 # Define to the syslog level for htsearch logging
27883
27884 cat >>confdefs.h <<\_ACEOF
27885 #define LOG_LEVEL LOG_INFO
27886 _ACEOF
27887
27888
27889 # Define to the syslog facility for htsearch logging
27890
27891 cat >>confdefs.h <<\_ACEOF
27892 #define LOG_FACILITY LOG_LOCAL5
27893 _ACEOF
27894
27895
27896 # Any remaining tests probably want the C compiler
27897 ac_ext=c
27898 ac_cpp='$CPP $CPPFLAGS'
27899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27902
27903 if test ! -d "./db"; then
27904 mkdir db
27905 fi
27906
27907 if test x$htdig_cv_tests = xyes
27908 then
27909 echo "$as_me:$LINENO: checking user name" >&5
27910 echo $ECHO_N "checking user name... $ECHO_C" >&6
27911 test -n "$LOGNAME" && USER=$LOGNAME
27912
27913 echo "$as_me:$LINENO: result: $USER" >&5
27914 echo "${ECHO_T}$USER" >&6
27915
27916 #
27917 # Handle user hints
27918 #
27919
27920 echo "$as_me:$LINENO: checking if apache is wanted" >&5
27921 echo $ECHO_N "checking if apache is wanted... $ECHO_C" >&6
27922
27923 # Check whether --with-apache or --without-apache was given.
27924 if test "${with_apache+set}" = set; then
27925 withval="$with_apache"
27926
27927 #
27928 # Run this if -with or -without was specified
27929 #
27930 if test "$withval" != no ; then
27931 echo "$as_me:$LINENO: result: yes" >&5
27932 echo "${ECHO_T}yes" >&6
27933 APACHE_WANTED=yes
27934 if test "$withval" != yes ; then
27935 APACHE="$withval"
27936 fi
27937 else
27938 APACHE_WANTED=no
27939 echo "$as_me:$LINENO: result: no" >&5
27940 echo "${ECHO_T}no" >&6
27941 fi
27942
27943 else
27944
27945 #
27946 # Run this if nothing was said
27947 #
27948 APACHE_WANTED=yes
27949 echo "$as_me:$LINENO: result: yes" >&5
27950 echo "${ECHO_T}yes" >&6
27951
27952 fi;
27953 #
27954 # Now we know if we want apache or not, only go further if
27955 # it's wanted.
27956 #
27957 if test "$APACHE_WANTED" = yes ; then
27958 #
27959 # If not specified by caller, search in standard places
27960 #
27961 if test -z "$APACHE" ; then
27962 for ac_prog in httpd apache
27963 do
27964 # Extract the first word of "$ac_prog", so it can be a program name with args.
27965 set dummy $ac_prog; ac_word=$2
27966 echo "$as_me:$LINENO: checking for $ac_word" >&5
27967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27968 if test "${ac_cv_path_APACHE+set}" = set; then
27969 echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971 case $APACHE in
27972 [\\/]* | ?:[\\/]*)
27973 ac_cv_path_APACHE="$APACHE" # Let the user override the test with a path.
27974 ;;
27975 *)
27976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27977 as_dummy="/usr/local/apache/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/apache/bin"
27978 for as_dir in $as_dummy
27979 do
27980 IFS=$as_save_IFS
27981 test -z "$as_dir" && as_dir=.
27982 for ac_exec_ext in '' $ac_executable_extensions; do
27983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27984 ac_cv_path_APACHE="$as_dir/$ac_word$ac_exec_ext"
27985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27986 break 2
27987 fi
27988 done
27989 done
27990
27991 ;;
27992 esac
27993 fi
27994 APACHE=$ac_cv_path_APACHE
27995
27996 if test -n "$APACHE"; then
27997 echo "$as_me:$LINENO: result: $APACHE" >&5
27998 echo "${ECHO_T}$APACHE" >&6
27999 else
28000 echo "$as_me:$LINENO: result: no" >&5
28001 echo "${ECHO_T}no" >&6
28002 fi
28003
28004 test -n "$APACHE" && break
28005 done
28006
28007 fi
28008
28009 if test -z "$APACHE" ; then
28010 { { echo "$as_me:$LINENO: error: \"apache server executable not found\"" >&5
28011 echo "$as_me: error: \"apache server executable not found\"" >&2;}
28012 { (exit 1); exit 1; }; };
28013 fi
28014 #
28015 # Collect apache version number. If for nothing else, this
28016 # guaranties that httpd is a working apache executable.
28017 # (Want at least 3 chars in version, to skip "(Mandrake Linux/4mdk)")
28018 #
28019 APACHE_READABLE_VERSION=`$APACHE -v | grep 'Server version' | sed -e 's;.*/\([0-9\.][0-9\.][0-9\.][0-9\.]*\).*;\1;'`
28020 APACHE_VERSION=`echo $APACHE_READABLE_VERSION | sed -e 's/\.//g'`
28021 if test -z "$APACHE_VERSION" ; then
28022 { { echo "$as_me:$LINENO: error: \"could not determine apache version number\"" >&5
28023 echo "$as_me: error: \"could not determine apache version number\"" >&2;}
28024 { (exit 1); exit 1; }; };
28025 fi
28026 APACHE_MAJOR=`expr $APACHE_VERSION : '\(..\)'`
28027 APACHE_MINOR=`expr $APACHE_VERSION : '..\(.*\)'`
28028 #
28029 # Check that apache version matches requested version or above
28030 #
28031 if test -n "1.3.1" ; then
28032 echo "$as_me:$LINENO: checking apache version >= 1.3.1" >&5
28033 echo $ECHO_N "checking apache version >= 1.3.1... $ECHO_C" >&6
28034 APACHE_REQUEST=`echo 1.3.1 | sed -e 's/\.//g'`
28035 APACHE_REQUEST_MAJOR=`expr $APACHE_REQUEST : '\(..\)'`
28036 APACHE_REQUEST_MINOR=`expr $APACHE_REQUEST : '..\(.*\)'`
28037 if test "$APACHE_MAJOR" -lt "$APACHE_REQUEST_MAJOR" -o "$APACHE_MINOR" -lt "$APACHE_REQUEST_MINOR" ; then
28038 echo "$as_me:$LINENO: result: no" >&5
28039 echo "${ECHO_T}no" >&6
28040 { { echo "$as_me:$LINENO: error: apache version is $APACHE_READABLE_VERSION" >&5
28041 echo "$as_me: error: apache version is $APACHE_READABLE_VERSION" >&2;}
28042 { (exit 1); exit 1; }; }
28043 else
28044 echo "$as_me:$LINENO: result: yes" >&5
28045 echo "${ECHO_T}yes" >&6
28046 fi
28047 fi
28048 #
28049 # Find out if .so modules are in libexec/module.so or modules/module.so
28050 #
28051 HTTP_ROOT=`$APACHE -V | grep HTTPD_ROOT | sed -e 's/.*"\(.*\)"/\1/'`
28052 echo "$as_me:$LINENO: checking apache modules" >&5
28053 echo $ECHO_N "checking apache modules... $ECHO_C" >&6
28054 for dir in libexec modules lib/apache libexec/httpd lib/apache/1.3
28055 do
28056 if test -f $HTTP_ROOT/$dir/mod_env.*
28057 then
28058 APACHE_MODULES=$dir
28059 fi
28060 done
28061 if test -z "$APACHE_MODULES"
28062 then
28063 echo "$as_me:$LINENO: result: not found" >&5
28064 echo "${ECHO_T}not found" >&6
28065 else
28066 echo "$as_me:$LINENO: result: in $HTTP_ROOT/$APACHE_MODULES" >&5
28067 echo "${ECHO_T}in $HTTP_ROOT/$APACHE_MODULES" >&6
28068 fi
28069
28070 fi
28071
28072 fi
28073
28074 echo configuring ht://Dig version $VERSION
28075
28076
28077
28078 subdirs="$subdirs db"
28079
28080
28081 ### HACK: copied from autoconf output, to ensure the expansion below works
28082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28083 # Let make expand exec_prefix.
28084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28085
28086 # expand variables which appear in attrs.html and the man pages
28087 while echo $bindir | grep '\$' >/dev/null ; do
28088 eval "bindir=$bindir"
28089 done
28090 while echo $COMMON_DIR | grep '\$' >/dev/null ; do
28091 eval "COMMON_DIR=$COMMON_DIR"
28092 done
28093 while echo $CONFIG_DIR | grep '\$' >/dev/null ; do
28094 eval "CONFIG_DIR=$CONFIG_DIR"
28095 done
28096 while echo $DEFAULT_CONFIG_FILE | grep '\$' >/dev/null ; do
28097 eval "DEFAULT_CONFIG_FILE=$DEFAULT_CONFIG_FILE"
28098 done
28099 while echo $DATABASE_DIR | grep '\$' >/dev/null ; do
28100 eval "DATABASE_DIR=$DATABASE_DIR"
28101 done
28102 while echo $IMAGE_URL_PREFIX | grep '\$' >/dev/null ; do
28103 eval "IMAGE_URL_PREFIX=$IMAGE_URL_PREFIX"
28104 done
28105 while echo $VERSION | grep '\$' >/dev/null ; do
28106 eval "VERSION=$VERSION"
28107 done
28108
28109 ac_config_files="$ac_config_files Makefile htcommon/Makefile htdb/Makefile htdig/Makefile htdoc/Makefile htdoc/attrs.html installdir/htdig.1 installdir/htdig-pdfparser.1 installdir/htfuzzy.1 installdir/htmerge.1 installdir/htpurge.1 installdir/htstat.1 installdir/htdigconfig.8 installdir/htdump.1 installdir/htload.1 installdir/htnotify.1 installdir/htsearch.1 installdir/rundig.1 htfuzzy/Makefile htlib/Makefile htnet/Makefile htsearch/Makefile httools/Makefile htword/Makefile include/Makefile installdir/Makefile test/Makefile test/test_functions"
28110
28111 cat >confcache <<\_ACEOF
28112 # This file is a shell script that caches the results of configure
28113 # tests run on this system so they can be shared between configure
28114 # scripts and configure runs, see configure's option --config-cache.
28115 # It is not useful on other systems. If it contains results you don't
28116 # want to keep, you may remove or edit it.
28117 #
28118 # config.status only pays attention to the cache file if you give it
28119 # the --recheck option to rerun configure.
28120 #
28121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28123 # following values.
28124
28125 _ACEOF
28126
28127 # The following way of writing the cache mishandles newlines in values,
28128 # but we know of no workaround that is simple, portable, and efficient.
28129 # So, don't put newlines in cache variables' values.
28130 # Ultrix sh set writes to stderr and can't be redirected directly,
28131 # and sets the high bit in the cache file unless we assign to the vars.
28132 {
28133 (set) 2>&1 |
28134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28135 *ac_space=\ *)
28136 # `set' does not quote correctly, so add quotes (double-quote
28137 # substitution turns \\\\ into \\, and sed turns \\ into \).
28138 sed -n \
28139 "s/'/'\\\\''/g;
28140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28141 ;;
28142 *)
28143 # `set' quotes correctly as required by POSIX, so do not add quotes.
28144 sed -n \
28145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28146 ;;
28147 esac;
28148 } |
28149 sed '
28150 t clear
28151 : clear
28152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28153 t end
28154 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28155 : end' >>confcache
28156 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28157 if test -w $cache_file; then
28158 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28159 cat confcache >$cache_file
28160 else
28161 echo "not updating unwritable cache $cache_file"
28162 fi
28163 fi
28164 rm -f confcache
28165
28166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28167 # Let make expand exec_prefix.
28168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28169
28170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28172 # trailing colons and then remove the whole line if VPATH becomes empty
28173 # (actually we leave an empty line to preserve line numbers).
28174 if test "x$srcdir" = x.; then
28175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28176 s/:*\$(srcdir):*/:/;
28177 s/:*\${srcdir}:*/:/;
28178 s/:*@srcdir@:*/:/;
28179 s/^\([^=]*=[ ]*\):*/\1/;
28180 s/:*$//;
28181 s/^[^=]*=[ ]*$//;
28182 }'
28183 fi
28184
28185 DEFS=-DHAVE_CONFIG_H
28186
28187 ac_libobjs=
28188 ac_ltlibobjs=
28189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28190 # 1. Remove the extension, and $U if already installed.
28191 ac_i=`echo "$ac_i" |
28192 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28193 # 2. Add them.
28194 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28195 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28196 done
28197 LIBOBJS=$ac_libobjs
28198
28199 LTLIBOBJS=$ac_ltlibobjs
28200
28201
28202 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28203 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28204 Usually this means the macro was only invoked conditionally." >&5
28205 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28206 Usually this means the macro was only invoked conditionally." >&2;}
28207 { (exit 1); exit 1; }; }
28208 fi
28209 if test -z "${TESTS_TRUE}" && test -z "${TESTS_FALSE}"; then
28210 { { echo "$as_me:$LINENO: error: conditional \"TESTS\" was never defined.
28211 Usually this means the macro was only invoked conditionally." >&5
28212 echo "$as_me: error: conditional \"TESTS\" was never defined.
28213 Usually this means the macro was only invoked conditionally." >&2;}
28214 { (exit 1); exit 1; }; }
28215 fi
28216 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28217 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28218 Usually this means the macro was only invoked conditionally." >&5
28219 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28220 Usually this means the macro was only invoked conditionally." >&2;}
28221 { (exit 1); exit 1; }; }
28222 fi
28223 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28224 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28225 Usually this means the macro was only invoked conditionally." >&5
28226 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28227 Usually this means the macro was only invoked conditionally." >&2;}
28228 { (exit 1); exit 1; }; }
28229 fi
28230 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28231 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28232 Usually this means the macro was only invoked conditionally." >&5
28233 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28234 Usually this means the macro was only invoked conditionally." >&2;}
28235 { (exit 1); exit 1; }; }
28236 fi
28237
28238 : ${CONFIG_STATUS=./config.status}
28239 ac_clean_files_save=$ac_clean_files
28240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28243 cat >$CONFIG_STATUS <<_ACEOF
28244 #! $SHELL
28245 # Generated by $as_me.
28246 # Run this file to recreate the current configuration.
28247 # Compiler output produced by configure, useful for debugging
28248 # configure, is in config.log if it exists.
28249
28250 debug=false
28251 ac_cs_recheck=false
28252 ac_cs_silent=false
28253 SHELL=\${CONFIG_SHELL-$SHELL}
28254 _ACEOF
28255
28256 cat >>$CONFIG_STATUS <<\_ACEOF
28257 ## --------------------- ##
28258 ## M4sh Initialization. ##
28259 ## --------------------- ##
28260
28261 # Be Bourne compatible
28262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28263 emulate sh
28264 NULLCMD=:
28265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28266 # is contrary to our usage. Disable this feature.
28267 alias -g '${1+"$@"}'='"$@"'
28268 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28269 set -o posix
28270 fi
28271 DUALCASE=1; export DUALCASE # for MKS sh
28272
28273 # Support unset when possible.
28274 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28275 as_unset=unset
28276 else
28277 as_unset=false
28278 fi
28279
28280
28281 # Work around bugs in pre-3.0 UWIN ksh.
28282 $as_unset ENV MAIL MAILPATH
28283 PS1='$ '
28284 PS2='> '
28285 PS4='+ '
28286
28287 # NLS nuisances.
28288 for as_var in \
28289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28291 LC_TELEPHONE LC_TIME
28292 do
28293 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28294 eval $as_var=C; export $as_var
28295 else
28296 $as_unset $as_var
28297 fi
28298 done
28299
28300 # Required to use basename.
28301 if expr a : '\(a\)' >/dev/null 2>&1; then
28302 as_expr=expr
28303 else
28304 as_expr=false
28305 fi
28306
28307 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28308 as_basename=basename
28309 else
28310 as_basename=false
28311 fi
28312
28313
28314 # Name of the executable.
28315 as_me=`$as_basename "$0" ||
28316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28317 X"$0" : 'X\(//\)$' \| \
28318 X"$0" : 'X\(/\)$' \| \
28319 . : '\(.\)' 2>/dev/null ||
28320 echo X/"$0" |
28321 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28322 /^X\/\(\/\/\)$/{ s//\1/; q; }
28323 /^X\/\(\/\).*/{ s//\1/; q; }
28324 s/.*/./; q'`
28325
28326
28327 # PATH needs CR, and LINENO needs CR and PATH.
28328 # Avoid depending upon Character Ranges.
28329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28332 as_cr_digits='0123456789'
28333 as_cr_alnum=$as_cr_Letters$as_cr_digits
28334
28335 # The user is always right.
28336 if test "${PATH_SEPARATOR+set}" != set; then
28337 echo "#! /bin/sh" >conf$$.sh
28338 echo "exit 0" >>conf$$.sh
28339 chmod +x conf$$.sh
28340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28341 PATH_SEPARATOR=';'
28342 else
28343 PATH_SEPARATOR=:
28344 fi
28345 rm -f conf$$.sh
28346 fi
28347
28348
28349 as_lineno_1=$LINENO
28350 as_lineno_2=$LINENO
28351 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28352 test "x$as_lineno_1" != "x$as_lineno_2" &&
28353 test "x$as_lineno_3" = "x$as_lineno_2" || {
28354 # Find who we are. Look in the path if we contain no path at all
28355 # relative or not.
28356 case $0 in
28357 *[\\/]* ) as_myself=$0 ;;
28358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28359 for as_dir in $PATH
28360 do
28361 IFS=$as_save_IFS
28362 test -z "$as_dir" && as_dir=.
28363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28364 done
28365
28366 ;;
28367 esac
28368 # We did not find ourselves, most probably we were run as `sh COMMAND'
28369 # in which case we are not to be found in the path.
28370 if test "x$as_myself" = x; then
28371 as_myself=$0
28372 fi
28373 if test ! -f "$as_myself"; then
28374 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28375 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28376 { (exit 1); exit 1; }; }
28377 fi
28378 case $CONFIG_SHELL in
28379 '')
28380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28381 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28382 do
28383 IFS=$as_save_IFS
28384 test -z "$as_dir" && as_dir=.
28385 for as_base in sh bash ksh sh5; do
28386 case $as_dir in
28387 /*)
28388 if ("$as_dir/$as_base" -c '
28389 as_lineno_1=$LINENO
28390 as_lineno_2=$LINENO
28391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28392 test "x$as_lineno_1" != "x$as_lineno_2" &&
28393 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28394 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28395 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28396 CONFIG_SHELL=$as_dir/$as_base
28397 export CONFIG_SHELL
28398 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28399 fi;;
28400 esac
28401 done
28402 done
28403 ;;
28404 esac
28405
28406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28407 # uniformly replaced by the line number. The first 'sed' inserts a
28408 # line-number line before each line; the second 'sed' does the real
28409 # work. The second script uses 'N' to pair each line-number line
28410 # with the numbered line, and appends trailing '-' during
28411 # substitution so that $LINENO is not a special case at line end.
28412 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28413 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28414 sed '=' <$as_myself |
28415 sed '
28416 N
28417 s,$,-,
28418 : loop
28419 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28420 t loop
28421 s,-$,,
28422 s,^['$as_cr_digits']*\n,,
28423 ' >$as_me.lineno &&
28424 chmod +x $as_me.lineno ||
28425 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28426 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28427 { (exit 1); exit 1; }; }
28428
28429 # Don't try to exec as it changes $[0], causing all sort of problems
28430 # (the dirname of $[0] is not the place where we might find the
28431 # original and so on. Autoconf is especially sensible to this).
28432 . ./$as_me.lineno
28433 # Exit status is that of the last command.
28434 exit
28435 }
28436
28437
28438 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28439 *c*,-n*) ECHO_N= ECHO_C='
28440 ' ECHO_T=' ' ;;
28441 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28442 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28443 esac
28444
28445 if expr a : '\(a\)' >/dev/null 2>&1; then
28446 as_expr=expr
28447 else
28448 as_expr=false
28449 fi
28450
28451 rm -f conf$$ conf$$.exe conf$$.file
28452 echo >conf$$.file
28453 if ln -s conf$$.file conf$$ 2>/dev/null; then
28454 # We could just check for DJGPP; but this test a) works b) is more generic
28455 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28456 if test -f conf$$.exe; then
28457 # Don't use ln at all; we don't have any links
28458 as_ln_s='cp -p'
28459 else
28460 as_ln_s='ln -s'
28461 fi
28462 elif ln conf$$.file conf$$ 2>/dev/null; then
28463 as_ln_s=ln
28464 else
28465 as_ln_s='cp -p'
28466 fi
28467 rm -f conf$$ conf$$.exe conf$$.file
28468
28469 if mkdir -p . 2>/dev/null; then
28470 as_mkdir_p=:
28471 else
28472 test -d ./-p && rmdir ./-p
28473 as_mkdir_p=false
28474 fi
28475
28476 as_executable_p="test -f"
28477
28478 # Sed expression to map a string onto a valid CPP name.
28479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28480
28481 # Sed expression to map a string onto a valid variable name.
28482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28483
28484
28485 # IFS
28486 # We need space, tab and new line, in precisely that order.
28487 as_nl='
28488 '
28489 IFS=" $as_nl"
28490
28491 # CDPATH.
28492 $as_unset CDPATH
28493
28494 exec 6>&1
28495
28496 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28497 # report actual input values of CONFIG_FILES etc. instead of their
28498 # values after options handling. Logging --version etc. is OK.
28499 exec 5>>config.log
28500 {
28501 echo
28502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28503 ## Running $as_me. ##
28504 _ASBOX
28505 } >&5
28506 cat >&5 <<_CSEOF
28507
28508 This file was extended by $as_me, which was
28509 generated by GNU Autoconf 2.59. Invocation command line was
28510
28511 CONFIG_FILES = $CONFIG_FILES
28512 CONFIG_HEADERS = $CONFIG_HEADERS
28513 CONFIG_LINKS = $CONFIG_LINKS
28514 CONFIG_COMMANDS = $CONFIG_COMMANDS
28515 $ $0 $@
28516
28517 _CSEOF
28518 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28519 echo >&5
28520 _ACEOF
28521
28522 # Files that config.status was made for.
28523 if test -n "$ac_config_files"; then
28524 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28525 fi
28526
28527 if test -n "$ac_config_headers"; then
28528 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28529 fi
28530
28531 if test -n "$ac_config_links"; then
28532 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28533 fi
28534
28535 if test -n "$ac_config_commands"; then
28536 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28537 fi
28538
28539 cat >>$CONFIG_STATUS <<\_ACEOF
28540
28541 ac_cs_usage="\
28542 \`$as_me' instantiates files from templates according to the
28543 current configuration.
28544
28545 Usage: $0 [OPTIONS] [FILE]...
28546
28547 -h, --help print this help, then exit
28548 -V, --version print version number, then exit
28549 -q, --quiet do not print progress messages
28550 -d, --debug don't remove temporary files
28551 --recheck update $as_me by reconfiguring in the same conditions
28552 --file=FILE[:TEMPLATE]
28553 instantiate the configuration file FILE
28554 --header=FILE[:TEMPLATE]
28555 instantiate the configuration header FILE
28556
28557 Configuration files:
28558 $config_files
28559
28560 Configuration headers:
28561 $config_headers
28562
28563 Configuration commands:
28564 $config_commands
28565
28566 Report bugs to <[email protected]>."
28567 _ACEOF
28568
28569 cat >>$CONFIG_STATUS <<_ACEOF
28570 ac_cs_version="\\
28571 config.status
28572 configured by $0, generated by GNU Autoconf 2.59,
28573 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28574
28575 Copyright (C) 2003 Free Software Foundation, Inc.
28576 This config.status script is free software; the Free Software Foundation
28577 gives unlimited permission to copy, distribute and modify it."
28578 srcdir=$srcdir
28579 INSTALL="$INSTALL"
28580 _ACEOF
28581
28582 cat >>$CONFIG_STATUS <<\_ACEOF
28583 # If no file are specified by the user, then we need to provide default
28584 # value. By we need to know if files were specified by the user.
28585 ac_need_defaults=:
28586 while test $# != 0
28587 do
28588 case $1 in
28589 --*=*)
28590 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28591 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28592 ac_shift=:
28593 ;;
28594 -*)
28595 ac_option=$1
28596 ac_optarg=$2
28597 ac_shift=shift
28598 ;;
28599 *) # This is not an option, so the user has probably given explicit
28600 # arguments.
28601 ac_option=$1
28602 ac_need_defaults=false;;
28603 esac
28604
28605 case $ac_option in
28606 # Handling of the options.
28607 _ACEOF
28608 cat >>$CONFIG_STATUS <<\_ACEOF
28609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28610 ac_cs_recheck=: ;;
28611 --version | --vers* | -V )
28612 echo "$ac_cs_version"; exit 0 ;;
28613 --he | --h)
28614 # Conflict between --help and --header
28615 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28616 Try \`$0 --help' for more information." >&5
28617 echo "$as_me: error: ambiguous option: $1
28618 Try \`$0 --help' for more information." >&2;}
28619 { (exit 1); exit 1; }; };;
28620 --help | --hel | -h )
28621 echo "$ac_cs_usage"; exit 0 ;;
28622 --debug | --d* | -d )
28623 debug=: ;;
28624 --file | --fil | --fi | --f )
28625 $ac_shift
28626 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28627 ac_need_defaults=false;;
28628 --header | --heade | --head | --hea )
28629 $ac_shift
28630 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28631 ac_need_defaults=false;;
28632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28633 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28634 ac_cs_silent=: ;;
28635
28636 # This is an error.
28637 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28638 Try \`$0 --help' for more information." >&5
28639 echo "$as_me: error: unrecognized option: $1
28640 Try \`$0 --help' for more information." >&2;}
28641 { (exit 1); exit 1; }; } ;;
28642
28643 *) ac_config_targets="$ac_config_targets $1" ;;
28644
28645 esac
28646 shift
28647 done
28648
28649 ac_configure_extra_args=
28650
28651 if $ac_cs_silent; then
28652 exec 6>/dev/null
28653 ac_configure_extra_args="$ac_configure_extra_args --silent"
28654 fi
28655
28656 _ACEOF
28657 cat >>$CONFIG_STATUS <<_ACEOF
28658 if \$ac_cs_recheck; then
28659 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28660 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28661 fi
28662
28663 _ACEOF
28664
28665 cat >>$CONFIG_STATUS <<_ACEOF
28666 #
28667 # INIT-COMMANDS section.
28668 #
28669
28670 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28671
28672 _ACEOF
28673
28674
28675
28676 cat >>$CONFIG_STATUS <<\_ACEOF
28677 for ac_config_target in $ac_config_targets
28678 do
28679 case "$ac_config_target" in
28680 # Handling of arguments.
28681 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28682 "htcommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES htcommon/Makefile" ;;
28683 "htdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdb/Makefile" ;;
28684 "htdig/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdig/Makefile" ;;
28685 "htdoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES htdoc/Makefile" ;;
28686 "htdoc/attrs.html" ) CONFIG_FILES="$CONFIG_FILES htdoc/attrs.html" ;;
28687 "installdir/htdig.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htdig.1" ;;
28688 "installdir/htdig-pdfparser.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htdig-pdfparser.1" ;;
28689 "installdir/htfuzzy.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htfuzzy.1" ;;
28690 "installdir/htmerge.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htmerge.1" ;;
28691 "installdir/htpurge.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htpurge.1" ;;
28692 "installdir/htstat.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htstat.1" ;;
28693 "installdir/htdigconfig.8" ) CONFIG_FILES="$CONFIG_FILES installdir/htdigconfig.8" ;;
28694 "installdir/htdump.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htdump.1" ;;
28695 "installdir/htload.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htload.1" ;;
28696 "installdir/htnotify.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htnotify.1" ;;
28697 "installdir/htsearch.1" ) CONFIG_FILES="$CONFIG_FILES installdir/htsearch.1" ;;
28698 "installdir/rundig.1" ) CONFIG_FILES="$CONFIG_FILES installdir/rundig.1" ;;
28699 "htfuzzy/Makefile" ) CONFIG_FILES="$CONFIG_FILES htfuzzy/Makefile" ;;
28700 "htlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES htlib/Makefile" ;;
28701 "htnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES htnet/Makefile" ;;
28702 "htsearch/Makefile" ) CONFIG_FILES="$CONFIG_FILES htsearch/Makefile" ;;
28703 "httools/Makefile" ) CONFIG_FILES="$CONFIG_FILES httools/Makefile" ;;
28704 "htword/Makefile" ) CONFIG_FILES="$CONFIG_FILES htword/Makefile" ;;
28705 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28706 "installdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES installdir/Makefile" ;;
28707 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
28708 "test/test_functions" ) CONFIG_FILES="$CONFIG_FILES test/test_functions" ;;
28709 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28710 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28711 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28712 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28713 { (exit 1); exit 1; }; };;
28714 esac
28715 done
28716
28717 # If the user did not use the arguments to specify the items to instantiate,
28718 # then the envvar interface is used. Set only those that are not.
28719 # We use the long form for the default assignment because of an extremely
28720 # bizarre bug on SunOS 4.1.3.
28721 if $ac_need_defaults; then
28722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28725 fi
28726
28727 # Have a temporary directory for convenience. Make it in the build tree
28728 # simply because there is no reason to put it here, and in addition,
28729 # creating and moving files from /tmp can sometimes cause problems.
28730 # Create a temporary directory, and hook for its removal unless debugging.
28731 $debug ||
28732 {
28733 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28734 trap '{ (exit 1); exit 1; }' 1 2 13 15
28735 }
28736
28737 # Create a (secure) tmp directory for tmp files.
28738
28739 {
28740 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28741 test -n "$tmp" && test -d "$tmp"
28742 } ||
28743 {
28744 tmp=./confstat$$-$RANDOM
28745 (umask 077 && mkdir $tmp)
28746 } ||
28747 {
28748 echo "$me: cannot create a temporary directory in ." >&2
28749 { (exit 1); exit 1; }
28750 }
28751
28752 _ACEOF
28753
28754 cat >>$CONFIG_STATUS <<_ACEOF
28755
28756 #
28757 # CONFIG_FILES section.
28758 #
28759
28760 # No need to generate the scripts if there are no CONFIG_FILES.
28761 # This happens for instance when ./config.status config.h
28762 if test -n "\$CONFIG_FILES"; then
28763 # Protect against being on the right side of a sed subst in config.status.
28764 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28765 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28766 s,@SHELL@,$SHELL,;t t
28767 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28768 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28769 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28770 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28771 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28772 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28773 s,@exec_prefix@,$exec_prefix,;t t
28774 s,@prefix@,$prefix,;t t
28775 s,@program_transform_name@,$program_transform_name,;t t
28776 s,@bindir@,$bindir,;t t
28777 s,@sbindir@,$sbindir,;t t
28778 s,@libexecdir@,$libexecdir,;t t
28779 s,@datadir@,$datadir,;t t
28780 s,@sysconfdir@,$sysconfdir,;t t
28781 s,@sharedstatedir@,$sharedstatedir,;t t
28782 s,@localstatedir@,$localstatedir,;t t
28783 s,@libdir@,$libdir,;t t
28784 s,@includedir@,$includedir,;t t
28785 s,@oldincludedir@,$oldincludedir,;t t
28786 s,@infodir@,$infodir,;t t
28787 s,@mandir@,$mandir,;t t
28788 s,@build_alias@,$build_alias,;t t
28789 s,@host_alias@,$host_alias,;t t
28790 s,@target_alias@,$target_alias,;t t
28791 s,@DEFS@,$DEFS,;t t
28792 s,@ECHO_C@,$ECHO_C,;t t
28793 s,@ECHO_N@,$ECHO_N,;t t
28794 s,@ECHO_T@,$ECHO_T,;t t
28795 s,@LIBS@,$LIBS,;t t
28796 s,@HTDIG_MAJOR_VERSION@,$HTDIG_MAJOR_VERSION,;t t
28797 s,@HTDIG_MINOR_VERSION@,$HTDIG_MINOR_VERSION,;t t
28798 s,@HTDIG_MICRO_VERSION@,$HTDIG_MICRO_VERSION,;t t
28799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28802 s,@CYGPATH_W@,$CYGPATH_W,;t t
28803 s,@PACKAGE@,$PACKAGE,;t t
28804 s,@VERSION@,$VERSION,;t t
28805 s,@ACLOCAL@,$ACLOCAL,;t t
28806 s,@AUTOCONF@,$AUTOCONF,;t t
28807 s,@AUTOMAKE@,$AUTOMAKE,;t t
28808 s,@AUTOHEADER@,$AUTOHEADER,;t t
28809 s,@MAKEINFO@,$MAKEINFO,;t t
28810 s,@AMTAR@,$AMTAR,;t t
28811 s,@install_sh@,$install_sh,;t t
28812 s,@STRIP@,$STRIP,;t t
28813 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28814 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28815 s,@AWK@,$AWK,;t t
28816 s,@SET_MAKE@,$SET_MAKE,;t t
28817 s,@am__leading_dot@,$am__leading_dot,;t t
28818 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28819 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28820 s,@MAINT@,$MAINT,;t t
28821 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
28822 s,@DEFAULT_CONFIG_FILE@,$DEFAULT_CONFIG_FILE,;t t
28823 s,@COMMON_DIR@,$COMMON_DIR,;t t
28824 s,@DATABASE_DIR@,$DATABASE_DIR,;t t
28825 s,@CGIBIN_DIR@,$CGIBIN_DIR,;t t
28826 s,@SEARCH_DIR@,$SEARCH_DIR,;t t
28827 s,@SEARCH_FORM@,$SEARCH_FORM,;t t
28828 s,@IMAGE_DIR@,$IMAGE_DIR,;t t
28829 s,@IMAGE_URL_PREFIX@,$IMAGE_URL_PREFIX,;t t
28830 s,@TESTS_TRUE@,$TESTS_TRUE,;t t
28831 s,@TESTS_FALSE@,$TESTS_FALSE,;t t
28832 s,@CXX@,$CXX,;t t
28833 s,@CXXFLAGS@,$CXXFLAGS,;t t
28834 s,@LDFLAGS@,$LDFLAGS,;t t
28835 s,@CPPFLAGS@,$CPPFLAGS,;t t
28836 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28837 s,@EXEEXT@,$EXEEXT,;t t
28838 s,@OBJEXT@,$OBJEXT,;t t
28839 s,@DEPDIR@,$DEPDIR,;t t
28840 s,@am__include@,$am__include,;t t
28841 s,@am__quote@,$am__quote,;t t
28842 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28843 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28844 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28845 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28846 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28847 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28848 s,@CC@,$CC,;t t
28849 s,@CFLAGS@,$CFLAGS,;t t
28850 s,@ac_ct_CC@,$ac_ct_CC,;t t
28851 s,@CCDEPMODE@,$CCDEPMODE,;t t
28852 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28853 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28854 s,@CPP@,$CPP,;t t
28855 s,@EGREP@,$EGREP,;t t
28856 s,@LEX@,$LEX,;t t
28857 s,@LEXLIB@,$LEXLIB,;t t
28858 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
28859 s,@YACC@,$YACC,;t t
28860 s,@LN_S@,$LN_S,;t t
28861 s,@build@,$build,;t t
28862 s,@build_cpu@,$build_cpu,;t t
28863 s,@build_vendor@,$build_vendor,;t t
28864 s,@build_os@,$build_os,;t t
28865 s,@host@,$host,;t t
28866 s,@host_cpu@,$host_cpu,;t t
28867 s,@host_vendor@,$host_vendor,;t t
28868 s,@host_os@,$host_os,;t t
28869 s,@ECHO@,$ECHO,;t t
28870 s,@AR@,$AR,;t t
28871 s,@ac_ct_AR@,$ac_ct_AR,;t t
28872 s,@RANLIB@,$RANLIB,;t t
28873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28874 s,@CXXCPP@,$CXXCPP,;t t
28875 s,@F77@,$F77,;t t
28876 s,@FFLAGS@,$FFLAGS,;t t
28877 s,@ac_ct_F77@,$ac_ct_F77,;t t
28878 s,@LIBTOOL@,$LIBTOOL,;t t
28879 s,@SED@,$SED,;t t
28880 s,@PERL@,$PERL,;t t
28881 s,@FIND@,$FIND,;t t
28882 s,@GUNZIP@,$GUNZIP,;t t
28883 s,@RRDTOOL@,$RRDTOOL,;t t
28884 s,@TAR@,$TAR,;t t
28885 s,@MV@,$MV,;t t
28886 s,@SENDMAIL@,$SENDMAIL,;t t
28887 s,@TIME@,$TIME,;t t
28888 s,@TIMEV@,$TIMEV,;t t
28889 s,@HAVE_SSL@,$HAVE_SSL,;t t
28890 s,@ALLOCA@,$ALLOCA,;t t
28891 s,@LIBOBJS@,$LIBOBJS,;t t
28892 s,@extra_ldflags@,$extra_ldflags,;t t
28893 s,@USER@,$USER,;t t
28894 s,@APACHE@,$APACHE,;t t
28895 s,@APACHE_MODULES@,$APACHE_MODULES,;t t
28896 s,@subdirs@,$subdirs,;t t
28897 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28898 CEOF
28899
28900 _ACEOF
28901
28902 cat >>$CONFIG_STATUS <<\_ACEOF
28903 # Split the substitutions into bite-sized pieces for seds with
28904 # small command number limits, like on Digital OSF/1 and HP-UX.
28905 ac_max_sed_lines=48
28906 ac_sed_frag=1 # Number of current file.
28907 ac_beg=1 # First line for current file.
28908 ac_end=$ac_max_sed_lines # Line after last line for current file.
28909 ac_more_lines=:
28910 ac_sed_cmds=
28911 while $ac_more_lines; do
28912 if test $ac_beg -gt 1; then
28913 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28914 else
28915 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28916 fi
28917 if test ! -s $tmp/subs.frag; then
28918 ac_more_lines=false
28919 else
28920 # The purpose of the label and of the branching condition is to
28921 # speed up the sed processing (if there are no `@' at all, there
28922 # is no need to browse any of the substitutions).
28923 # These are the two extra sed commands mentioned above.
28924 (echo ':t
28925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28926 if test -z "$ac_sed_cmds"; then
28927 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28928 else
28929 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28930 fi
28931 ac_sed_frag=`expr $ac_sed_frag + 1`
28932 ac_beg=$ac_end
28933 ac_end=`expr $ac_end + $ac_max_sed_lines`
28934 fi
28935 done
28936 if test -z "$ac_sed_cmds"; then
28937 ac_sed_cmds=cat
28938 fi
28939 fi # test -n "$CONFIG_FILES"
28940
28941 _ACEOF
28942 cat >>$CONFIG_STATUS <<\_ACEOF
28943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28945 case $ac_file in
28946 - | *:- | *:-:* ) # input from stdin
28947 cat >$tmp/stdin
28948 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28950 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28952 * ) ac_file_in=$ac_file.in ;;
28953 esac
28954
28955 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28956 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28958 X"$ac_file" : 'X\(//\)[^/]' \| \
28959 X"$ac_file" : 'X\(//\)$' \| \
28960 X"$ac_file" : 'X\(/\)' \| \
28961 . : '\(.\)' 2>/dev/null ||
28962 echo X"$ac_file" |
28963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28965 /^X\(\/\/\)$/{ s//\1/; q; }
28966 /^X\(\/\).*/{ s//\1/; q; }
28967 s/.*/./; q'`
28968 { if $as_mkdir_p; then
28969 mkdir -p "$ac_dir"
28970 else
28971 as_dir="$ac_dir"
28972 as_dirs=
28973 while test ! -d "$as_dir"; do
28974 as_dirs="$as_dir $as_dirs"
28975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28977 X"$as_dir" : 'X\(//\)[^/]' \| \
28978 X"$as_dir" : 'X\(//\)$' \| \
28979 X"$as_dir" : 'X\(/\)' \| \
28980 . : '\(.\)' 2>/dev/null ||
28981 echo X"$as_dir" |
28982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28984 /^X\(\/\/\)$/{ s//\1/; q; }
28985 /^X\(\/\).*/{ s//\1/; q; }
28986 s/.*/./; q'`
28987 done
28988 test ! -n "$as_dirs" || mkdir $as_dirs
28989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28991 { (exit 1); exit 1; }; }; }
28992
28993 ac_builddir=.
28994
28995 if test "$ac_dir" != .; then
28996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28997 # A "../" for each directory in $ac_dir_suffix.
28998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28999 else
29000 ac_dir_suffix= ac_top_builddir=
29001 fi
29002
29003 case $srcdir in
29004 .) # No --srcdir option. We are building in place.
29005 ac_srcdir=.
29006 if test -z "$ac_top_builddir"; then
29007 ac_top_srcdir=.
29008 else
29009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29010 fi ;;
29011 [\\/]* | ?:[\\/]* ) # Absolute path.
29012 ac_srcdir=$srcdir$ac_dir_suffix;
29013 ac_top_srcdir=$srcdir ;;
29014 *) # Relative path.
29015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29017 esac
29018
29019 # Do not use `cd foo && pwd` to compute absolute paths, because
29020 # the directories may not exist.
29021 case `pwd` in
29022 .) ac_abs_builddir="$ac_dir";;
29023 *)
29024 case "$ac_dir" in
29025 .) ac_abs_builddir=`pwd`;;
29026 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29027 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29028 esac;;
29029 esac
29030 case $ac_abs_builddir in
29031 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29032 *)
29033 case ${ac_top_builddir}. in
29034 .) ac_abs_top_builddir=$ac_abs_builddir;;
29035 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29036 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29037 esac;;
29038 esac
29039 case $ac_abs_builddir in
29040 .) ac_abs_srcdir=$ac_srcdir;;
29041 *)
29042 case $ac_srcdir in
29043 .) ac_abs_srcdir=$ac_abs_builddir;;
29044 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29045 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29046 esac;;
29047 esac
29048 case $ac_abs_builddir in
29049 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29050 *)
29051 case $ac_top_srcdir in
29052 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29053 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29054 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29055 esac;;
29056 esac
29057
29058
29059 case $INSTALL in
29060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29061 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29062 esac
29063
29064 # Let's still pretend it is `configure' which instantiates (i.e., don't
29065 # use $as_me), people would be surprised to read:
29066 # /* config.h. Generated by config.status. */
29067 if test x"$ac_file" = x-; then
29068 configure_input=
29069 else
29070 configure_input="$ac_file. "
29071 fi
29072 configure_input=$configure_input"Generated from `echo $ac_file_in |
29073 sed 's,.*/,,'` by configure."
29074
29075 # First look for the input files in the build tree, otherwise in the
29076 # src tree.
29077 ac_file_inputs=`IFS=:
29078 for f in $ac_file_in; do
29079 case $f in
29080 -) echo $tmp/stdin ;;
29081 [\\/$]*)
29082 # Absolute (can't be DOS-style, as IFS=:)
29083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29084 echo "$as_me: error: cannot find input file: $f" >&2;}
29085 { (exit 1); exit 1; }; }
29086 echo "$f";;
29087 *) # Relative
29088 if test -f "$f"; then
29089 # Build tree
29090 echo "$f"
29091 elif test -f "$srcdir/$f"; then
29092 # Source tree
29093 echo "$srcdir/$f"
29094 else
29095 # /dev/null tree
29096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29097 echo "$as_me: error: cannot find input file: $f" >&2;}
29098 { (exit 1); exit 1; }; }
29099 fi;;
29100 esac
29101 done` || { (exit 1); exit 1; }
29102
29103 if test x"$ac_file" != x-; then
29104 { echo "$as_me:$LINENO: creating $ac_file" >&5
29105 echo "$as_me: creating $ac_file" >&6;}
29106 rm -f "$ac_file"
29107 fi
29108 _ACEOF
29109 cat >>$CONFIG_STATUS <<_ACEOF
29110 sed "$ac_vpsub
29111 $extrasub
29112 _ACEOF
29113 cat >>$CONFIG_STATUS <<\_ACEOF
29114 :t
29115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29116 s,@configure_input@,$configure_input,;t t
29117 s,@srcdir@,$ac_srcdir,;t t
29118 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29119 s,@top_srcdir@,$ac_top_srcdir,;t t
29120 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29121 s,@builddir@,$ac_builddir,;t t
29122 s,@abs_builddir@,$ac_abs_builddir,;t t
29123 s,@top_builddir@,$ac_top_builddir,;t t
29124 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29125 s,@INSTALL@,$ac_INSTALL,;t t
29126 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29127 rm -f $tmp/stdin
29128 if test x"$ac_file" != x-; then
29129 mv $tmp/out $ac_file
29130 else
29131 cat $tmp/out
29132 rm -f $tmp/out
29133 fi
29134
29135 done
29136 _ACEOF
29137 cat >>$CONFIG_STATUS <<\_ACEOF
29138
29139 #
29140 # CONFIG_HEADER section.
29141 #
29142
29143 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29144 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29145 #
29146 # ac_d sets the value in "#define NAME VALUE" lines.
29147 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29148 ac_dB='[ ].*$,\1#\2'
29149 ac_dC=' '
29150 ac_dD=',;t'
29151 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29152 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29153 ac_uB='$,\1#\2define\3'
29154 ac_uC=' '
29155 ac_uD=',;t'
29156
29157 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29159 case $ac_file in
29160 - | *:- | *:-:* ) # input from stdin
29161 cat >$tmp/stdin
29162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29166 * ) ac_file_in=$ac_file.in ;;
29167 esac
29168
29169 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29170 echo "$as_me: creating $ac_file" >&6;}
29171
29172 # First look for the input files in the build tree, otherwise in the
29173 # src tree.
29174 ac_file_inputs=`IFS=:
29175 for f in $ac_file_in; do
29176 case $f in
29177 -) echo $tmp/stdin ;;
29178 [\\/$]*)
29179 # Absolute (can't be DOS-style, as IFS=:)
29180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29181 echo "$as_me: error: cannot find input file: $f" >&2;}
29182 { (exit 1); exit 1; }; }
29183 # Do quote $f, to prevent DOS paths from being IFS'd.
29184 echo "$f";;
29185 *) # Relative
29186 if test -f "$f"; then
29187 # Build tree
29188 echo "$f"
29189 elif test -f "$srcdir/$f"; then
29190 # Source tree
29191 echo "$srcdir/$f"
29192 else
29193 # /dev/null tree
29194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29195 echo "$as_me: error: cannot find input file: $f" >&2;}
29196 { (exit 1); exit 1; }; }
29197 fi;;
29198 esac
29199 done` || { (exit 1); exit 1; }
29200 # Remove the trailing spaces.
29201 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29202
29203 _ACEOF
29204
29205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29206 # `conftest.undefs', that substitutes the proper values into
29207 # config.h.in to produce config.h. The first handles `#define'
29208 # templates, and the second `#undef' templates.
29209 # And first: Protect against being on the right side of a sed subst in
29210 # config.status. Protect against being in an unquoted here document
29211 # in config.status.
29212 rm -f conftest.defines conftest.undefs
29213 # Using a here document instead of a string reduces the quoting nightmare.
29214 # Putting comments in sed scripts is not portable.
29215 #
29216 # `end' is used to avoid that the second main sed command (meant for
29217 # 0-ary CPP macros) applies to n-ary macro definitions.
29218 # See the Autoconf documentation for `clear'.
29219 cat >confdef2sed.sed <<\_ACEOF
29220 s/[\\&,]/\\&/g
29221 s,[\\$`],\\&,g
29222 t clear
29223 : clear
29224 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29225 t end
29226 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29227 : end
29228 _ACEOF
29229 # If some macros were called several times there might be several times
29230 # the same #defines, which is useless. Nevertheless, we may not want to
29231 # sort them, since we want the *last* AC-DEFINE to be honored.
29232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29234 rm -f confdef2sed.sed
29235
29236 # This sed command replaces #undef with comments. This is necessary, for
29237 # example, in the case of _POSIX_SOURCE, which is predefined and required
29238 # on some systems where configure will not decide to define it.
29239 cat >>conftest.undefs <<\_ACEOF
29240 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29241 _ACEOF
29242
29243 # Break up conftest.defines because some shells have a limit on the size
29244 # of here documents, and old seds have small limits too (100 cmds).
29245 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29246 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29247 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29248 echo ' :' >>$CONFIG_STATUS
29249 rm -f conftest.tail
29250 while grep . conftest.defines >/dev/null
29251 do
29252 # Write a limited-size here document to $tmp/defines.sed.
29253 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29254 # Speed up: don't consider the non `#define' lines.
29255 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29256 # Work around the forget-to-reset-the-flag bug.
29257 echo 't clr' >>$CONFIG_STATUS
29258 echo ': clr' >>$CONFIG_STATUS
29259 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29260 echo 'CEOF
29261 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29262 rm -f $tmp/in
29263 mv $tmp/out $tmp/in
29264 ' >>$CONFIG_STATUS
29265 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29266 rm -f conftest.defines
29267 mv conftest.tail conftest.defines
29268 done
29269 rm -f conftest.defines
29270 echo ' fi # grep' >>$CONFIG_STATUS
29271 echo >>$CONFIG_STATUS
29272
29273 # Break up conftest.undefs because some shells have a limit on the size
29274 # of here documents, and old seds have small limits too (100 cmds).
29275 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29276 rm -f conftest.tail
29277 while grep . conftest.undefs >/dev/null
29278 do
29279 # Write a limited-size here document to $tmp/undefs.sed.
29280 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29281 # Speed up: don't consider the non `#undef'
29282 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29283 # Work around the forget-to-reset-the-flag bug.
29284 echo 't clr' >>$CONFIG_STATUS
29285 echo ': clr' >>$CONFIG_STATUS
29286 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29287 echo 'CEOF
29288 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29289 rm -f $tmp/in
29290 mv $tmp/out $tmp/in
29291 ' >>$CONFIG_STATUS
29292 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29293 rm -f conftest.undefs
29294 mv conftest.tail conftest.undefs
29295 done
29296 rm -f conftest.undefs
29297
29298 cat >>$CONFIG_STATUS <<\_ACEOF
29299 # Let's still pretend it is `configure' which instantiates (i.e., don't
29300 # use $as_me), people would be surprised to read:
29301 # /* config.h. Generated by config.status. */
29302 if test x"$ac_file" = x-; then
29303 echo "/* Generated by configure. */" >$tmp/config.h
29304 else
29305 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29306 fi
29307 cat $tmp/in >>$tmp/config.h
29308 rm -f $tmp/in
29309 if test x"$ac_file" != x-; then
29310 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29312 echo "$as_me: $ac_file is unchanged" >&6;}
29313 else
29314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29316 X"$ac_file" : 'X\(//\)[^/]' \| \
29317 X"$ac_file" : 'X\(//\)$' \| \
29318 X"$ac_file" : 'X\(/\)' \| \
29319 . : '\(.\)' 2>/dev/null ||
29320 echo X"$ac_file" |
29321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29323 /^X\(\/\/\)$/{ s//\1/; q; }
29324 /^X\(\/\).*/{ s//\1/; q; }
29325 s/.*/./; q'`
29326 { if $as_mkdir_p; then
29327 mkdir -p "$ac_dir"
29328 else
29329 as_dir="$ac_dir"
29330 as_dirs=
29331 while test ! -d "$as_dir"; do
29332 as_dirs="$as_dir $as_dirs"
29333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29335 X"$as_dir" : 'X\(//\)[^/]' \| \
29336 X"$as_dir" : 'X\(//\)$' \| \
29337 X"$as_dir" : 'X\(/\)' \| \
29338 . : '\(.\)' 2>/dev/null ||
29339 echo X"$as_dir" |
29340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29342 /^X\(\/\/\)$/{ s//\1/; q; }
29343 /^X\(\/\).*/{ s//\1/; q; }
29344 s/.*/./; q'`
29345 done
29346 test ! -n "$as_dirs" || mkdir $as_dirs
29347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29349 { (exit 1); exit 1; }; }; }
29350
29351 rm -f $ac_file
29352 mv $tmp/config.h $ac_file
29353 fi
29354 else
29355 cat $tmp/config.h
29356 rm -f $tmp/config.h
29357 fi
29358 # Compute $ac_file's index in $config_headers.
29359 _am_stamp_count=1
29360 for _am_header in $config_headers :; do
29361 case $_am_header in
29362 $ac_file | $ac_file:* )
29363 break ;;
29364 * )
29365 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29366 esac
29367 done
29368 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29369 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29370 X$ac_file : 'X\(//\)[^/]' \| \
29371 X$ac_file : 'X\(//\)$' \| \
29372 X$ac_file : 'X\(/\)' \| \
29373 . : '\(.\)' 2>/dev/null ||
29374 echo X$ac_file |
29375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29377 /^X\(\/\/\)$/{ s//\1/; q; }
29378 /^X\(\/\).*/{ s//\1/; q; }
29379 s/.*/./; q'`/stamp-h$_am_stamp_count
29380 done
29381 _ACEOF
29382 cat >>$CONFIG_STATUS <<\_ACEOF
29383
29384 #
29385 # CONFIG_COMMANDS section.
29386 #
29387 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29388 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29389 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29390 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29391 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392 X"$ac_dest" : 'X\(//\)[^/]' \| \
29393 X"$ac_dest" : 'X\(//\)$' \| \
29394 X"$ac_dest" : 'X\(/\)' \| \
29395 . : '\(.\)' 2>/dev/null ||
29396 echo X"$ac_dest" |
29397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29399 /^X\(\/\/\)$/{ s//\1/; q; }
29400 /^X\(\/\).*/{ s//\1/; q; }
29401 s/.*/./; q'`
29402 { if $as_mkdir_p; then
29403 mkdir -p "$ac_dir"
29404 else
29405 as_dir="$ac_dir"
29406 as_dirs=
29407 while test ! -d "$as_dir"; do
29408 as_dirs="$as_dir $as_dirs"
29409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29411 X"$as_dir" : 'X\(//\)[^/]' \| \
29412 X"$as_dir" : 'X\(//\)$' \| \
29413 X"$as_dir" : 'X\(/\)' \| \
29414 . : '\(.\)' 2>/dev/null ||
29415 echo X"$as_dir" |
29416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29418 /^X\(\/\/\)$/{ s//\1/; q; }
29419 /^X\(\/\).*/{ s//\1/; q; }
29420 s/.*/./; q'`
29421 done
29422 test ! -n "$as_dirs" || mkdir $as_dirs
29423 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29424 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29425 { (exit 1); exit 1; }; }; }
29426
29427 ac_builddir=.
29428
29429 if test "$ac_dir" != .; then
29430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29431 # A "../" for each directory in $ac_dir_suffix.
29432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29433 else
29434 ac_dir_suffix= ac_top_builddir=
29435 fi
29436
29437 case $srcdir in
29438 .) # No --srcdir option. We are building in place.
29439 ac_srcdir=.
29440 if test -z "$ac_top_builddir"; then
29441 ac_top_srcdir=.
29442 else
29443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29444 fi ;;
29445 [\\/]* | ?:[\\/]* ) # Absolute path.
29446 ac_srcdir=$srcdir$ac_dir_suffix;
29447 ac_top_srcdir=$srcdir ;;
29448 *) # Relative path.
29449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29450 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29451 esac
29452
29453 # Do not use `cd foo && pwd` to compute absolute paths, because
29454 # the directories may not exist.
29455 case `pwd` in
29456 .) ac_abs_builddir="$ac_dir";;
29457 *)
29458 case "$ac_dir" in
29459 .) ac_abs_builddir=`pwd`;;
29460 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29461 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29462 esac;;
29463 esac
29464 case $ac_abs_builddir in
29465 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29466 *)
29467 case ${ac_top_builddir}. in
29468 .) ac_abs_top_builddir=$ac_abs_builddir;;
29469 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29470 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29471 esac;;
29472 esac
29473 case $ac_abs_builddir in
29474 .) ac_abs_srcdir=$ac_srcdir;;
29475 *)
29476 case $ac_srcdir in
29477 .) ac_abs_srcdir=$ac_abs_builddir;;
29478 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29479 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29480 esac;;
29481 esac
29482 case $ac_abs_builddir in
29483 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29484 *)
29485 case $ac_top_srcdir in
29486 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29487 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29488 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29489 esac;;
29490 esac
29491
29492
29493 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29494 echo "$as_me: executing $ac_dest commands" >&6;}
29495 case $ac_dest in
29496 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29497 # Strip MF so we end up with the name of the file.
29498 mf=`echo "$mf" | sed -e 's/:.*$//'`
29499 # Check whether this is an Automake generated Makefile or not.
29500 # We used to match only the files named `Makefile.in', but
29501 # some people rename them; so instead we look at the file content.
29502 # Grep'ing the first line is not enough: some people post-process
29503 # each Makefile.in and add a new line on top of each file to say so.
29504 # So let's grep whole file.
29505 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29506 dirpart=`(dirname "$mf") 2>/dev/null ||
29507 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29508 X"$mf" : 'X\(//\)[^/]' \| \
29509 X"$mf" : 'X\(//\)$' \| \
29510 X"$mf" : 'X\(/\)' \| \
29511 . : '\(.\)' 2>/dev/null ||
29512 echo X"$mf" |
29513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29515 /^X\(\/\/\)$/{ s//\1/; q; }
29516 /^X\(\/\).*/{ s//\1/; q; }
29517 s/.*/./; q'`
29518 else
29519 continue
29520 fi
29521 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
29522 # Extract the definition of DEP_FILES from the Makefile without
29523 # running `make'.
29524 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
29525 test -z "$DEPDIR" && continue
29526 # When using ansi2knr, U may be empty or an underscore; expand it
29527 U=`sed -n -e '/^U = / s///p' < "$mf"`
29528 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
29529 # We invoke sed twice because it is the simplest approach to
29530 # changing $(DEPDIR) to its actual value in the expansion.
29531 for file in `sed -n -e '
29532 /^DEP_FILES = .*\\\\$/ {
29533 s/^DEP_FILES = //
29534 :loop
29535 s/\\\\$//
29536 p
29537 n
29538 /\\\\$/ b loop
29539 p
29540 }
29541 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
29542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29543 # Make sure the directory exists.
29544 test -f "$dirpart/$file" && continue
29545 fdir=`(dirname "$file") 2>/dev/null ||
29546 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29547 X"$file" : 'X\(//\)[^/]' \| \
29548 X"$file" : 'X\(//\)$' \| \
29549 X"$file" : 'X\(/\)' \| \
29550 . : '\(.\)' 2>/dev/null ||
29551 echo X"$file" |
29552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29554 /^X\(\/\/\)$/{ s//\1/; q; }
29555 /^X\(\/\).*/{ s//\1/; q; }
29556 s/.*/./; q'`
29557 { if $as_mkdir_p; then
29558 mkdir -p $dirpart/$fdir
29559 else
29560 as_dir=$dirpart/$fdir
29561 as_dirs=
29562 while test ! -d "$as_dir"; do
29563 as_dirs="$as_dir $as_dirs"
29564 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29566 X"$as_dir" : 'X\(//\)[^/]' \| \
29567 X"$as_dir" : 'X\(//\)$' \| \
29568 X"$as_dir" : 'X\(/\)' \| \
29569 . : '\(.\)' 2>/dev/null ||
29570 echo X"$as_dir" |
29571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29573 /^X\(\/\/\)$/{ s//\1/; q; }
29574 /^X\(\/\).*/{ s//\1/; q; }
29575 s/.*/./; q'`
29576 done
29577 test ! -n "$as_dirs" || mkdir $as_dirs
29578 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29579 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29580 { (exit 1); exit 1; }; }; }
29581
29582 # echo "creating $dirpart/$file"
29583 echo '# dummy' > "$dirpart/$file"
29584 done
29585 done
29586 ;;
29587 esac
29588 done
29589 _ACEOF
29590
29591 cat >>$CONFIG_STATUS <<\_ACEOF
29592
29593 { (exit 0); exit 0; }
29594 _ACEOF
29595 chmod +x $CONFIG_STATUS
29596 ac_clean_files=$ac_clean_files_save
29597
29598
29599 # configure is writing to config.log, and then calls config.status.
29600 # config.status does its own redirection, appending to config.log.
29601 # Unfortunately, on DOS this fails, as config.log is still kept open
29602 # by configure, so config.status won't be able to write to it; its
29603 # output is simply discarded. So we exec the FD to /dev/null,
29604 # effectively closing config.log, so it can be properly (re)opened and
29605 # appended to by config.status. When coming back to configure, we
29606 # need to make the FD available again.
29607 if test "$no_create" != yes; then
29608 ac_cs_success=:
29609 ac_config_status_args=
29610 test "$silent" = yes &&
29611 ac_config_status_args="$ac_config_status_args --quiet"
29612 exec 5>/dev/null
29613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29614 exec 5>>config.log
29615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29616 # would make configure fail if this is the last instruction.
29617 $ac_cs_success || { (exit 1); exit 1; }
29618 fi
29619
29620 #
29621 # CONFIG_SUBDIRS section.
29622 #
29623 if test "$no_recursion" != yes; then
29624
29625 # Remove --cache-file and --srcdir arguments so they do not pile up.
29626 ac_sub_configure_args=
29627 ac_prev=
29628 for ac_arg in $ac_configure_args; do
29629 if test -n "$ac_prev"; then
29630 ac_prev=
29631 continue
29632 fi
29633 case $ac_arg in
29634 -cache-file | --cache-file | --cache-fil | --cache-fi \
29635 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29636 ac_prev=cache_file ;;
29637 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29638 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29639 | --c=*)
29640 ;;
29641 --config-cache | -C)
29642 ;;
29643 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29644 ac_prev=srcdir ;;
29645 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29646 ;;
29647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29648 ac_prev=prefix ;;
29649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29650 ;;
29651 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
29652 esac
29653 done
29654
29655 # Always prepend --prefix to ensure using the same prefix
29656 # in subdir configurations.
29657 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
29658
29659 ac_popdir=`pwd`
29660 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
29661
29662 # Do not complain, so a configure script can configure whichever
29663 # parts of a large source tree are present.
29664 test -d $srcdir/$ac_dir || continue
29665
29666 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
29667 echo "$as_me: configuring in $ac_dir" >&6;}
29668 { if $as_mkdir_p; then
29669 mkdir -p "$ac_dir"
29670 else
29671 as_dir="$ac_dir"
29672 as_dirs=
29673 while test ! -d "$as_dir"; do
29674 as_dirs="$as_dir $as_dirs"
29675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29677 X"$as_dir" : 'X\(//\)[^/]' \| \
29678 X"$as_dir" : 'X\(//\)$' \| \
29679 X"$as_dir" : 'X\(/\)' \| \
29680 . : '\(.\)' 2>/dev/null ||
29681 echo X"$as_dir" |
29682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29684 /^X\(\/\/\)$/{ s//\1/; q; }
29685 /^X\(\/\).*/{ s//\1/; q; }
29686 s/.*/./; q'`
29687 done
29688 test ! -n "$as_dirs" || mkdir $as_dirs
29689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29691 { (exit 1); exit 1; }; }; }
29692
29693 ac_builddir=.
29694
29695 if test "$ac_dir" != .; then
29696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29697 # A "../" for each directory in $ac_dir_suffix.
29698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29699 else
29700 ac_dir_suffix= ac_top_builddir=
29701 fi
29702
29703 case $srcdir in
29704 .) # No --srcdir option. We are building in place.
29705 ac_srcdir=.
29706 if test -z "$ac_top_builddir"; then
29707 ac_top_srcdir=.
29708 else
29709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29710 fi ;;
29711 [\\/]* | ?:[\\/]* ) # Absolute path.
29712 ac_srcdir=$srcdir$ac_dir_suffix;
29713 ac_top_srcdir=$srcdir ;;
29714 *) # Relative path.
29715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29717 esac
29718
29719 # Do not use `cd foo && pwd` to compute absolute paths, because
29720 # the directories may not exist.
29721 case `pwd` in
29722 .) ac_abs_builddir="$ac_dir";;
29723 *)
29724 case "$ac_dir" in
29725 .) ac_abs_builddir=`pwd`;;
29726 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29727 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29728 esac;;
29729 esac
29730 case $ac_abs_builddir in
29731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29732 *)
29733 case ${ac_top_builddir}. in
29734 .) ac_abs_top_builddir=$ac_abs_builddir;;
29735 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29736 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29737 esac;;
29738 esac
29739 case $ac_abs_builddir in
29740 .) ac_abs_srcdir=$ac_srcdir;;
29741 *)
29742 case $ac_srcdir in
29743 .) ac_abs_srcdir=$ac_abs_builddir;;
29744 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29745 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29746 esac;;
29747 esac
29748 case $ac_abs_builddir in
29749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29750 *)
29751 case $ac_top_srcdir in
29752 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29753 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29754 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29755 esac;;
29756 esac
29757
29758
29759 cd $ac_dir
29760
29761 # Check for guested configure; otherwise get Cygnus style configure.
29762 if test -f $ac_srcdir/configure.gnu; then
29763 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
29764 elif test -f $ac_srcdir/configure; then
29765 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
29766 elif test -f $ac_srcdir/configure.in; then
29767 ac_sub_configure=$ac_configure
29768 else
29769 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
29770 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29771 ac_sub_configure=
29772 fi
29773
29774 # The recursion is here.
29775 if test -n "$ac_sub_configure"; then
29776 # Make the cache file name correct relative to the subdirectory.
29777 case $cache_file in
29778 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29779 *) # Relative path.
29780 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
29781 esac
29782
29783 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
29784 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29785 # The eval makes quoting arguments work.
29786 eval $ac_sub_configure $ac_sub_configure_args \
29787 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
29788 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
29789 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
29790 { (exit 1); exit 1; }; }
29791 fi
29792
29793 cd "$ac_popdir"
29794 done
29795 fi
29796
29797
29798 echo ""
29799 echo ""
29800 echo "Now you must run 'make' followed by 'make install'"
29801 echo ""