comparison spandsp-0.0.3/spandsp-0.0.3/configure @ 5:f762bf195c4b

import spandsp-0.0.3
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 16:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
4:26cd8f1ef0b1 5:f762bf195c4b
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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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="src/tone_generate.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 SPANDSP_LT_CURRENT SPANDSP_LT_REVISION SPANDSP_LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS COND_DOC_TRUE COND_DOC_FALSE COND_TESTS_TRUE COND_TESTS_FALSE COND_ITUTESTS_TRUE COND_ITUTESTS_FALSE COND_MMX_TRUE COND_MMX_FALSE COND_SSE_TRUE COND_SSE_FALSE TESTLIBS COMP_VENDOR_CFLAGS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804 done
805
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826 do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-doc Build the documentation
1036 --enable-tests Build the test programs
1037 --enable-itutests Build TIFF test files for some ITU test images
1038 --enable-mmx Enable MMX support
1039 --enable-sse Enable SSE support
1040
1041 Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
1049
1050 Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CPP C preprocessor
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 _ACEOF
1068 fi
1069
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082 ac_dir_suffix= ac_top_builddir=
1083 fi
1084
1085 case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100
1101 # Do not use `cd foo && pwd` to compute absolute paths, because
1102 # the directories may not exist.
1103 case `pwd` in
1104 .) ac_abs_builddir="$ac_dir";;
1105 *)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1123 *)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138 esac
1139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd "$ac_popdir"
1156 done
1157 fi
1158
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1161 cat <<\_ACEOF
1162
1163 Copyright (C) 2003 Free Software Foundation, Inc.
1164 This configure script is free software; the Free Software Foundation
1165 gives unlimited permission to copy, distribute and modify it.
1166 _ACEOF
1167 exit 0
1168 fi
1169 exec 5>config.log
1170 cat >&5 <<_ACEOF
1171 This file contains any messages produced by compilers while
1172 running configure, to aid debugging if configure makes a mistake.
1173
1174 It was created by $as_me, which was
1175 generated by GNU Autoconf 2.59. Invocation command line was
1176
1177 $ $0 $@
1178
1179 _ACEOF
1180 {
1181 cat <<_ASUNAME
1182 ## --------- ##
1183 ## Platform. ##
1184 ## --------- ##
1185
1186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194
1195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202
1203 _ASUNAME
1204
1205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206 for as_dir in $PATH
1207 do
1208 IFS=$as_save_IFS
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1211 done
1212
1213 } >&5
1214
1215 cat >&5 <<_ACEOF
1216
1217
1218 ## ----------- ##
1219 ## Core tests. ##
1220 ## ----------- ##
1221
1222 _ACEOF
1223
1224
1225 # Keep a trace of the command line.
1226 # Strip out --no-create and --no-recursion so they do not pile up.
1227 # Strip out --silent because we don't want to record it for future runs.
1228 # Also quote any args containing shell meta-characters.
1229 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_configure_args=
1231 ac_configure_args0=
1232 ac_configure_args1=
1233 ac_sep=
1234 ac_must_keep_next=false
1235 for ac_pass in 1 2
1236 do
1237 for ac_arg
1238 do
1239 case $ac_arg in
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 continue ;;
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 esac
1247 case $ac_pass in
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 2)
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
1252 ac_must_keep_next=false # Got value, back to normal.
1253 else
1254 case $ac_arg in
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 esac
1262 ;;
1263 -* ) ac_must_keep_next=true ;;
1264 esac
1265 fi
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1268 ac_sep=" "
1269 ;;
1270 esac
1271 done
1272 done
1273 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276 # When interrupted or exit'd, cleanup temporary files, and complete
1277 # config.log. We remove comments because anyway the quotes in there
1278 # would cause problems or look ugly.
1279 # WARNING: Be sure not to use single quotes in there, as some shells,
1280 # such as our DU 5.0 friend, will then `close' the trap.
1281 trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1283 {
1284 echo
1285
1286 cat <<\_ASBOX
1287 ## ---------------- ##
1288 ## Cache variables. ##
1289 ## ---------------- ##
1290 _ASBOX
1291 echo
1292 # The following way of writing the cache mishandles newlines in values,
1293 {
1294 (set) 2>&1 |
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 *ac_space=\ *)
1297 sed -n \
1298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1300 ;;
1301 *)
1302 sed -n \
1303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1304 ;;
1305 esac;
1306 }
1307 echo
1308
1309 cat <<\_ASBOX
1310 ## ----------------- ##
1311 ## Output variables. ##
1312 ## ----------------- ##
1313 _ASBOX
1314 echo
1315 for ac_var in $ac_subst_vars
1316 do
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1319 done | sort
1320 echo
1321
1322 if test -n "$ac_subst_files"; then
1323 cat <<\_ASBOX
1324 ## ------------- ##
1325 ## Output files. ##
1326 ## ------------- ##
1327 _ASBOX
1328 echo
1329 for ac_var in $ac_subst_files
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1335 fi
1336
1337 if test -s confdefs.h; then
1338 cat <<\_ASBOX
1339 ## ----------- ##
1340 ## confdefs.h. ##
1341 ## ----------- ##
1342 _ASBOX
1343 echo
1344 sed "/^$/d" confdefs.h | sort
1345 echo
1346 fi
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1350 } >&5
1351 rm -f core *.core &&
1352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 exit $exit_status
1354 ' 0
1355 for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357 done
1358 ac_signal=0
1359
1360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1361 rm -rf conftest* confdefs.h
1362 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363 echo >confdefs.h
1364
1365 # Predefined preprocessor variables.
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_NAME "$PACKAGE_NAME"
1369 _ACEOF
1370
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_STRING "$PACKAGE_STRING"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389 _ACEOF
1390
1391
1392 # Let the site file select an alternate cache file if it wants to.
1393 # Prefer explicitly selected file to automatically selected ones.
1394 if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 else
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 fi
1400 fi
1401 for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404 echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1406 . "$ac_site_file"
1407 fi
1408 done
1409
1410 if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415 echo "$as_me: loading cache $cache_file" >&6;}
1416 case $cache_file in
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1419 esac
1420 fi
1421 else
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423 echo "$as_me: creating cache $cache_file" >&6;}
1424 >$cache_file
1425 fi
1426
1427 # Check that the precious variables saved in the cache have kept the same
1428 # value.
1429 ac_cache_corrupted=false
1430 for ac_var in `(set) 2>&1 |
1431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1437 set,)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,set)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,);;
1446 *)
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1451 echo "$as_me: former value: $ac_old_val" >&2;}
1452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1453 echo "$as_me: current value: $ac_new_val" >&2;}
1454 ac_cache_corrupted=:
1455 fi;;
1456 esac
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1459 case $ac_new_val in
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1463 esac
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 esac
1468 fi
1469 done
1470 if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1476 fi
1477
1478 ac_ext=c
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505 SPANDSP_MAJOR_VERSION=0
1506 SPANDSP_MINOR_VERSION=0
1507 SPANDSP_MICRO_VERSION=3
1508
1509 SPANDSP_LT_CURRENT=0
1510 SPANDSP_LT_REVISION=2
1511 SPANDSP_LT_AGE=0
1512
1513 VERSION=$SPANDSP_MAJOR_VERSION.$SPANDSP_MINOR_VERSION.$SPANDSP_MICRO_VERSION
1514 PACKAGE=spandsp
1515
1516
1517
1518
1519
1520
1521 ac_aux_dir=
1522 for ac_dir in config $srcdir/config; do
1523 if test -f $ac_dir/install-sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 break
1527 elif test -f $ac_dir/install.sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 break
1531 elif test -f $ac_dir/shtool; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 break
1535 fi
1536 done
1537 if test -z "$ac_aux_dir"; then
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1539 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1540 { (exit 1); exit 1; }; }
1541 fi
1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546 ac_config_headers="$ac_config_headers src/config.h:config-h.in"
1547
1548 am__api_version="1.9"
1549 # Find a good install program. We prefer a C program (faster),
1550 # so one script is as good as another. But avoid the broken or
1551 # incompatible versions:
1552 # SysV /etc/install, /usr/sbin/install
1553 # SunOS /usr/etc/install
1554 # IRIX /sbin/install
1555 # AIX /bin/install
1556 # AmigaOS /C/install, which installs bootblocks on floppy discs
1557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1560 # OS/2's system install, which has a completely different semantic
1561 # ./install, which can be erroneously created by make from ./install.sh.
1562 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1563 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1564 if test -z "$INSTALL"; then
1565 if test "${ac_cv_path_install+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 # Account for people who put trailing slashes in PATH elements.
1574 case $as_dir/ in
1575 ./ | .// | /cC/* | \
1576 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1577 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1578 /usr/ucb/* ) ;;
1579 *)
1580 # OSF1 and SCO ODT 3.0 have their own names for install.
1581 # Don't use installbsd from OSF since it installs stuff as root
1582 # by default.
1583 for ac_prog in ginstall scoinst install; do
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1586 if test $ac_prog = install &&
1587 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588 # AIX install. It has an incompatible calling convention.
1589 :
1590 elif test $ac_prog = install &&
1591 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1592 # program-specific install script used by HP pwplus--don't use.
1593 :
1594 else
1595 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1596 break 3
1597 fi
1598 fi
1599 done
1600 done
1601 ;;
1602 esac
1603 done
1604
1605
1606 fi
1607 if test "${ac_cv_path_install+set}" = set; then
1608 INSTALL=$ac_cv_path_install
1609 else
1610 # As a last resort, use the slow shell script. We don't cache a
1611 # path for INSTALL within a source directory, because that will
1612 # break other packages using the cache if that directory is
1613 # removed, or if the path is relative.
1614 INSTALL=$ac_install_sh
1615 fi
1616 fi
1617 echo "$as_me:$LINENO: result: $INSTALL" >&5
1618 echo "${ECHO_T}$INSTALL" >&6
1619
1620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1621 # It thinks the first close brace ends the variable substitution.
1622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1623
1624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1625
1626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1627
1628 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1629 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1630 # Just in case
1631 sleep 1
1632 echo timestamp > conftest.file
1633 # Do `set' in a subshell so we don't clobber the current shell's
1634 # arguments. Must try -L first in case configure is actually a
1635 # symlink; some systems play weird games with the mod time of symlinks
1636 # (eg FreeBSD returns the mod time of the symlink's containing
1637 # directory).
1638 if (
1639 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1640 if test "$*" = "X"; then
1641 # -L didn't work.
1642 set X `ls -t $srcdir/configure conftest.file`
1643 fi
1644 rm -f conftest.file
1645 if test "$*" != "X $srcdir/configure conftest.file" \
1646 && test "$*" != "X conftest.file $srcdir/configure"; then
1647
1648 # If neither matched, then we have a broken ls. This can happen
1649 # if, for instance, CONFIG_SHELL is bash and it inherits a
1650 # broken ls alias from the environment. This has actually
1651 # happened. Such a system could not be considered "sane".
1652 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1653 alias in your environment" >&5
1654 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1655 alias in your environment" >&2;}
1656 { (exit 1); exit 1; }; }
1657 fi
1658
1659 test "$2" = conftest.file
1660 )
1661 then
1662 # Ok.
1663 :
1664 else
1665 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1666 Check your system clock" >&5
1667 echo "$as_me: error: newly created file is older than distributed files!
1668 Check your system clock" >&2;}
1669 { (exit 1); exit 1; }; }
1670 fi
1671 echo "$as_me:$LINENO: result: yes" >&5
1672 echo "${ECHO_T}yes" >&6
1673 test "$program_prefix" != NONE &&
1674 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1675 # Use a double $ so make ignores it.
1676 test "$program_suffix" != NONE &&
1677 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1678 # Double any \ or $. echo might interpret backslashes.
1679 # By default was `s,x,x', remove it if useless.
1680 cat <<\_ACEOF >conftest.sed
1681 s/[\\$]/&&/g;s/;s,x,x,$//
1682 _ACEOF
1683 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1684 rm conftest.sed
1685
1686 # expand $ac_aux_dir to an absolute path
1687 am_aux_dir=`cd $ac_aux_dir && pwd`
1688
1689 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1690 # Use eval to expand $SHELL
1691 if eval "$MISSING --run true"; then
1692 am_missing_run="$MISSING --run "
1693 else
1694 am_missing_run=
1695 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1696 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1697 fi
1698
1699 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1700 # We used to keeping the `.' as first argument, in order to
1701 # allow $(mkdir_p) to be used without argument. As in
1702 # $(mkdir_p) $(somedir)
1703 # where $(somedir) is conditionally defined. However this is wrong
1704 # for two reasons:
1705 # 1. if the package is installed by a user who cannot write `.'
1706 # make install will fail,
1707 # 2. the above comment should most certainly read
1708 # $(mkdir_p) $(DESTDIR)$(somedir)
1709 # so it does not work when $(somedir) is undefined and
1710 # $(DESTDIR) is not.
1711 # To support the latter case, we have to write
1712 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1713 # so the `.' trick is pointless.
1714 mkdir_p='mkdir -p --'
1715 else
1716 # On NextStep and OpenStep, the `mkdir' command does not
1717 # recognize any option. It will interpret all options as
1718 # directories to create, and then abort because `.' already
1719 # exists.
1720 for d in ./-p ./--version;
1721 do
1722 test -d $d && rmdir $d
1723 done
1724 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1725 if test -f "$ac_aux_dir/mkinstalldirs"; then
1726 mkdir_p='$(mkinstalldirs)'
1727 else
1728 mkdir_p='$(install_sh) -d'
1729 fi
1730 fi
1731
1732 for ac_prog in gawk mawk nawk awk
1733 do
1734 # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_AWK+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741 if test -n "$AWK"; then
1742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747 IFS=$as_save_IFS
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_AWK="$ac_prog"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 break 2
1754 fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 AWK=$ac_cv_prog_AWK
1761 if test -n "$AWK"; then
1762 echo "$as_me:$LINENO: result: $AWK" >&5
1763 echo "${ECHO_T}$AWK" >&6
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769 test -n "$AWK" && break
1770 done
1771
1772 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1773 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1774 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1775 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 cat >conftest.make <<\_ACEOF
1779 all:
1780 @echo 'ac_maketemp="$(MAKE)"'
1781 _ACEOF
1782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1783 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1784 if test -n "$ac_maketemp"; then
1785 eval ac_cv_prog_make_${ac_make}_set=yes
1786 else
1787 eval ac_cv_prog_make_${ac_make}_set=no
1788 fi
1789 rm -f conftest.make
1790 fi
1791 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1792 echo "$as_me:$LINENO: result: yes" >&5
1793 echo "${ECHO_T}yes" >&6
1794 SET_MAKE=
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1798 SET_MAKE="MAKE=${MAKE-make}"
1799 fi
1800
1801 rm -rf .tst 2>/dev/null
1802 mkdir .tst 2>/dev/null
1803 if test -d .tst; then
1804 am__leading_dot=.
1805 else
1806 am__leading_dot=_
1807 fi
1808 rmdir .tst 2>/dev/null
1809
1810 # test to see if srcdir already configured
1811 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1812 test -f $srcdir/config.status; then
1813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1814 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1815 { (exit 1); exit 1; }; }
1816 fi
1817
1818 # test whether we have cygpath
1819 if test -z "$CYGPATH_W"; then
1820 if (cygpath --version) >/dev/null 2>/dev/null; then
1821 CYGPATH_W='cygpath -w'
1822 else
1823 CYGPATH_W=echo
1824 fi
1825 fi
1826
1827
1828 # Define the identity of the package.
1829 PACKAGE=$PACKAGE
1830 VERSION=$VERSION
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE "$PACKAGE"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define VERSION "$VERSION"
1840 _ACEOF
1841
1842 # Some tools Automake needs.
1843
1844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1845
1846
1847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1848
1849
1850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1851
1852
1853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1854
1855
1856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1857
1858 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1859
1860 # Installed binaries are usually stripped using `strip' when the user
1861 # run `make install-strip'. However `strip' might not be the right
1862 # tool to use in cross-compilation environments, therefore Automake
1863 # will honor the `STRIP' environment variable to overrule this program.
1864 if test "$cross_compiling" != no; then
1865 if test -n "$ac_tool_prefix"; then
1866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1867 set dummy ${ac_tool_prefix}strip; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_STRIP+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$STRIP"; then
1874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887 done
1888 done
1889
1890 fi
1891 fi
1892 STRIP=$ac_cv_prog_STRIP
1893 if test -n "$STRIP"; then
1894 echo "$as_me:$LINENO: result: $STRIP" >&5
1895 echo "${ECHO_T}$STRIP" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1899 fi
1900
1901 fi
1902 if test -z "$ac_cv_prog_STRIP"; then
1903 ac_ct_STRIP=$STRIP
1904 # Extract the first word of "strip", so it can be a program name with args.
1905 set dummy strip; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 if test -n "$ac_ct_STRIP"; then
1912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_ac_ct_STRIP="strip"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1924 fi
1925 done
1926 done
1927
1928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1929 fi
1930 fi
1931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1932 if test -n "$ac_ct_STRIP"; then
1933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1934 echo "${ECHO_T}$ac_ct_STRIP" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 STRIP=$ac_ct_STRIP
1941 else
1942 STRIP="$ac_cv_prog_STRIP"
1943 fi
1944
1945 fi
1946 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1947
1948 # We need awk for the "check" target. The system "awk" is bad on
1949 # some platforms.
1950 # Always define AMTAR for backward compatibility.
1951
1952 AMTAR=${AMTAR-"${am_missing_run}tar"}
1953
1954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1955
1956
1957
1958
1959
1960
1961 # Make sure we can run config.sub.
1962 $ac_config_sub sun4 >/dev/null 2>&1 ||
1963 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1964 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1965 { (exit 1); exit 1; }; }
1966
1967 echo "$as_me:$LINENO: checking build system type" >&5
1968 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1969 if test "${ac_cv_build+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 ac_cv_build_alias=$build_alias
1973 test -z "$ac_cv_build_alias" &&
1974 ac_cv_build_alias=`$ac_config_guess`
1975 test -z "$ac_cv_build_alias" &&
1976 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1977 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1978 { (exit 1); exit 1; }; }
1979 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1980 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1981 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1983
1984 fi
1985 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1986 echo "${ECHO_T}$ac_cv_build" >&6
1987 build=$ac_cv_build
1988 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1989 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1990 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1991
1992
1993 echo "$as_me:$LINENO: checking host system type" >&5
1994 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1995 if test "${ac_cv_host+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 ac_cv_host_alias=$host_alias
1999 test -z "$ac_cv_host_alias" &&
2000 ac_cv_host_alias=$ac_cv_build_alias
2001 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2002 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2003 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2004 { (exit 1); exit 1; }; }
2005
2006 fi
2007 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2008 echo "${ECHO_T}$ac_cv_host" >&6
2009 host=$ac_cv_host
2010 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2011 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2012 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2013
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2023 echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2051 else
2052 echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 fi
2057 if test -z "$ac_cv_prog_CC"; then
2058 ac_ct_CC=$CC
2059 # Extract the first word of "gcc", so it can be a program name with args.
2060 set dummy gcc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$ac_ct_CC"; then
2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_ac_ct_CC="gcc"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2079 fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2086 if test -n "$ac_ct_CC"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2088 echo "${ECHO_T}$ac_ct_CC" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 CC=$ac_ct_CC
2095 else
2096 CC="$ac_cv_prog_CC"
2097 fi
2098
2099 if test -z "$CC"; then
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}cc; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_CC="${ac_tool_prefix}cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122 done
2123 done
2124
2125 fi
2126 fi
2127 CC=$ac_cv_prog_CC
2128 if test -n "$CC"; then
2129 echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2134 fi
2135
2136 fi
2137 if test -z "$ac_cv_prog_CC"; then
2138 ac_ct_CC=$CC
2139 # Extract the first word of "cc", so it can be a program name with args.
2140 set dummy cc; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$ac_ct_CC"; then
2147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156 ac_cv_prog_ac_ct_CC="cc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162
2163 fi
2164 fi
2165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166 if test -n "$ac_ct_CC"; then
2167 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168 echo "${ECHO_T}$ac_ct_CC" >&6
2169 else
2170 echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2172 fi
2173
2174 CC=$ac_ct_CC
2175 else
2176 CC="$ac_cv_prog_CC"
2177 fi
2178
2179 fi
2180 if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191 ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2202 fi
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207 done
2208 done
2209
2210 if test $ac_prog_rejected = yes; then
2211 # We found a bogon in the path, so make sure we never use it.
2212 set dummy $ac_cv_prog_CC
2213 shift
2214 if test $# != 0; then
2215 # We chose a different compiler from the bogus one.
2216 # However, it has the same basename, so the bogon will be chosen
2217 # first if we set CC to just the basename; use the full file name.
2218 shift
2219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 fi
2221 fi
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 for ac_prog in cl
2237 do
2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261
2262 fi
2263 fi
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2271 fi
2272
2273 test -n "$CC" && break
2274 done
2275 fi
2276 if test -z "$CC"; then
2277 ac_ct_CC=$CC
2278 for ac_prog in cl
2279 do
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2289 else
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 ac_cv_prog_ac_ct_CC="$ac_prog"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301 done
2302 done
2303
2304 fi
2305 fi
2306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307 if test -n "$ac_ct_CC"; then
2308 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309 echo "${ECHO_T}$ac_ct_CC" >&6
2310 else
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2313 fi
2314
2315 test -n "$ac_ct_CC" && break
2316 done
2317
2318 CC=$ac_ct_CC
2319 fi
2320
2321 fi
2322
2323
2324 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: no acceptable C compiler found in \$PATH
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2329
2330 # Provide some information about the compiler.
2331 echo "$as_me:$LINENO:" \
2332 "checking for C compiler version" >&5
2333 ac_compiler=`set X $ac_compile; echo $2`
2334 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2335 (eval $ac_compiler --version </dev/null >&5) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2340 (eval $ac_compiler -v </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2345 (eval $ac_compiler -V </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2356
2357 int
2358 main ()
2359 {
2360
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2372 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2374 (eval $ac_link_default) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 # Find the output, starting from the most likely. This scheme is
2379 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2380 # resort.
2381
2382 # Be careful to initialize this variable, since it used to be cached.
2383 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2384 ac_cv_exeext=
2385 # b.out is created by i960 compilers.
2386 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2387 do
2388 test -f "$ac_file" || continue
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2391 ;;
2392 conftest.$ac_ext )
2393 # This is the source file.
2394 ;;
2395 [ab].out )
2396 # We found the default executable, but exeext='' is most
2397 # certainly right.
2398 break;;
2399 *.* )
2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401 # FIXME: I believe we export ac_cv_exeext for Libtool,
2402 # but it would be cool to find out if it's true. Does anybody
2403 # maintain Libtool? --akim.
2404 export ac_cv_exeext
2405 break;;
2406 * )
2407 break;;
2408 esac
2409 done
2410 else
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: C compiler cannot create executables
2417 See \`config.log' for more details." >&2;}
2418 { (exit 77); exit 77; }; }
2419 fi
2420
2421 ac_exeext=$ac_cv_exeext
2422 echo "$as_me:$LINENO: result: $ac_file" >&5
2423 echo "${ECHO_T}$ac_file" >&6
2424
2425 # Check the compiler produces executables we can run. If not, either
2426 # the compiler is broken, or we cross compile.
2427 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2428 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2429 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2430 # If not cross compiling, check that we can run a simple program.
2431 if test "$cross_compiling" != yes; then
2432 if { ac_try='./$ac_file'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 cross_compiling=no
2439 else
2440 if test "$cross_compiling" = maybe; then
2441 cross_compiling=yes
2442 else
2443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2444 If you meant to cross compile, use \`--host'.
2445 See \`config.log' for more details." >&5
2446 echo "$as_me: error: cannot run C compiled programs.
2447 If you meant to cross compile, use \`--host'.
2448 See \`config.log' for more details." >&2;}
2449 { (exit 1); exit 1; }; }
2450 fi
2451 fi
2452 fi
2453 echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6
2455
2456 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 # Check the compiler produces executables we can run. If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2461 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2462 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2463 echo "${ECHO_T}$cross_compiling" >&6
2464
2465 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2466 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2468 (eval $ac_link) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2474 # work properly (i.e., refer to `conftest.exe'), while it won't with
2475 # `rm'.
2476 for ac_file in conftest.exe conftest conftest.*; do
2477 test -f "$ac_file" || continue
2478 case $ac_file in
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2481 export ac_cv_exeext
2482 break;;
2483 * ) break;;
2484 esac
2485 done
2486 else
2487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2490 See \`config.log' for more details." >&2;}
2491 { (exit 1); exit 1; }; }
2492 fi
2493
2494 rm -f conftest$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2496 echo "${ECHO_T}$ac_cv_exeext" >&6
2497
2498 rm -f conftest.$ac_ext
2499 EXEEXT=$ac_cv_exeext
2500 ac_exeext=$EXEEXT
2501 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2503 if test "${ac_cv_objext+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h. */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2512
2513 int
2514 main ()
2515 {
2516
2517 ;
2518 return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.o conftest.obj
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; then
2527 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2528 case $ac_file in
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2531 break;;
2532 esac
2533 done
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&5
2540 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543 fi
2544
2545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2546 fi
2547 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2548 echo "${ECHO_T}$ac_cv_objext" >&6
2549 OBJEXT=$ac_cv_objext
2550 ac_objext=$OBJEXT
2551 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2552 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562
2563 int
2564 main ()
2565 {
2566 #ifndef __GNUC__
2567 choke me
2568 #endif
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_compiler_gnu=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_compiler_gnu=no
2601 fi
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 CFLAGS="-g"
2612 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2613 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2614 if test "${ac_cv_prog_cc_g+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623
2624 int
2625 main ()
2626 {
2627
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634 (eval $ac_compile) 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cc_g=yes
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 ac_cv_prog_cc_g=no
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2668 CFLAGS="-g -O2"
2669 else
2670 CFLAGS="-g"
2671 fi
2672 else
2673 if test "$GCC" = yes; then
2674 CFLAGS="-O2"
2675 else
2676 CFLAGS=
2677 fi
2678 fi
2679 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2680 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2681 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_cv_prog_cc_stdc=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700 char **p;
2701 int i;
2702 {
2703 return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707 char *s;
2708 va_list v;
2709 va_start (v,p);
2710 s = g (p, va_arg (v,int));
2711 va_end (v);
2712 return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std1 is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std1. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 int test (int i, double x);
2725 struct s1 {int (*f) (int a);};
2726 struct s2 {int (*f) (double a);};
2727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 int argc;
2729 char **argv;
2730 int
2731 main ()
2732 {
2733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 # Don't try gcc -ansi; that turns off useful extensions and
2739 # breaks some systems' header files.
2740 # AIX -qlanglvl=ansi
2741 # Ultrix and OSF/1 -std1
2742 # HP-UX 10.20 and later -Ae
2743 # HP-UX older versions -Aa -D_HPUX_SOURCE
2744 # SVR4 -Xc -D__EXTENSIONS__
2745 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 do
2747 CC="$ac_save_CC $ac_arg"
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv_prog_cc_stdc=$ac_arg
2770 break
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 fi
2776 rm -f conftest.err conftest.$ac_objext
2777 done
2778 rm -f conftest.$ac_ext conftest.$ac_objext
2779 CC=$ac_save_CC
2780
2781 fi
2782
2783 case "x$ac_cv_prog_cc_stdc" in
2784 x|xno)
2785 echo "$as_me:$LINENO: result: none needed" >&5
2786 echo "${ECHO_T}none needed" >&6 ;;
2787 *)
2788 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2790 CC="$CC $ac_cv_prog_cc_stdc" ;;
2791 esac
2792
2793 # Some people use a C++ compiler to compile C. Since we use `exit',
2794 # in C++ we need to declare it. In case someone uses the same compiler
2795 # for both compiling C and C++ we need to have the C++ compiler decide
2796 # the declaration of exit, since it's the most demanding environment.
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #ifndef __cplusplus
2799 choke me
2800 #endif
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 for ac_declaration in \
2824 '' \
2825 'extern "C" void std::exit (int) throw (); using std::exit;' \
2826 'extern "C" void std::exit (int); using std::exit;' \
2827 'extern "C" void exit (int) throw ();' \
2828 'extern "C" void exit (int);' \
2829 'void exit (int);'
2830 do
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 $ac_declaration
2838 #include <stdlib.h>
2839 int
2840 main ()
2841 {
2842 exit (42);
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 :
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 continue
2874 fi
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2882 $ac_declaration
2883 int
2884 main ()
2885 {
2886 exit (42);
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 break
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917 fi
2918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919 done
2920 rm -f conftest*
2921 if test -n "$ac_declaration"; then
2922 echo '#ifdef __cplusplus' >>confdefs.h
2923 echo $ac_declaration >>confdefs.h
2924 echo '#endif' >>confdefs.h
2925 fi
2926
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 fi
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 DEPDIR="${am__leading_dot}deps"
2939
2940 ac_config_commands="$ac_config_commands depfiles"
2941
2942
2943 am_make=${MAKE-make}
2944 cat > confinc << 'END'
2945 am__doit:
2946 @echo done
2947 .PHONY: am__doit
2948 END
2949 # If we don't find an include directive, just comment out the code.
2950 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2951 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2952 am__include="#"
2953 am__quote=
2954 _am_result=none
2955 # First try GNU make style include.
2956 echo "include confinc" > confmf
2957 # We grep out `Entering directory' and `Leaving directory'
2958 # messages which can occur if `w' ends up in MAKEFLAGS.
2959 # In particular we don't look at `^make:' because GNU make might
2960 # be invoked under some other name (usually "gmake"), in which
2961 # case it prints its new name instead of `make'.
2962 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 am__include=include
2964 am__quote=
2965 _am_result=GNU
2966 fi
2967 # Now try BSD make style include.
2968 if test "$am__include" = "#"; then
2969 echo '.include "confinc"' > confmf
2970 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2971 am__include=.include
2972 am__quote="\""
2973 _am_result=BSD
2974 fi
2975 fi
2976
2977
2978 echo "$as_me:$LINENO: result: $_am_result" >&5
2979 echo "${ECHO_T}$_am_result" >&6
2980 rm -f confinc confmf
2981
2982 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2983 if test "${enable_dependency_tracking+set}" = set; then
2984 enableval="$enable_dependency_tracking"
2985
2986 fi;
2987 if test "x$enable_dependency_tracking" != xno; then
2988 am_depcomp="$ac_aux_dir/depcomp"
2989 AMDEPBACKSLASH='\'
2990 fi
2991
2992
2993 if test "x$enable_dependency_tracking" != xno; then
2994 AMDEP_TRUE=
2995 AMDEP_FALSE='#'
2996 else
2997 AMDEP_TRUE='#'
2998 AMDEP_FALSE=
2999 fi
3000
3001
3002
3003
3004 depcc="$CC" am_compiler_list=
3005
3006 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3007 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3008 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3012 # We make a subdir and do the tests there. Otherwise we can end up
3013 # making bogus files that we don't know about and never remove. For
3014 # instance it was reported that on HP-UX the gcc test will end up
3015 # making a dummy file named `D' -- because `-MD' means `put the output
3016 # in D'.
3017 mkdir conftest.dir
3018 # Copy depcomp to subdir because otherwise we won't find it if we're
3019 # using a relative directory.
3020 cp "$am_depcomp" conftest.dir
3021 cd conftest.dir
3022 # We will build objects and dependencies in a subdirectory because
3023 # it helps to detect inapplicable dependency modes. For instance
3024 # both Tru64's cc and ICC support -MD to output dependencies as a
3025 # side effect of compilation, but ICC will put the dependencies in
3026 # the current directory while Tru64 will put them in the object
3027 # directory.
3028 mkdir sub
3029
3030 am_cv_CC_dependencies_compiler_type=none
3031 if test "$am_compiler_list" = ""; then
3032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3033 fi
3034 for depmode in $am_compiler_list; do
3035 # Setup a source with many dependencies, because some compilers
3036 # like to wrap large dependency lists on column 80 (with \), and
3037 # we should not choose a depcomp mode which is confused by this.
3038 #
3039 # We need to recreate these files for each test, as the compiler may
3040 # overwrite some of them when testing with obscure command lines.
3041 # This happens at least with the AIX C compiler.
3042 : > sub/conftest.c
3043 for i in 1 2 3 4 5 6; do
3044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3046 # Solaris 8's {/usr,}/bin/sh.
3047 touch sub/conftst$i.h
3048 done
3049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3050
3051 case $depmode in
3052 nosideeffect)
3053 # after this tag, mechanisms are not by side-effect, so they'll
3054 # only be used when explicitly requested
3055 if test "x$enable_dependency_tracking" = xyes; then
3056 continue
3057 else
3058 break
3059 fi
3060 ;;
3061 none) break ;;
3062 esac
3063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3064 # mode. It turns out that the SunPro C++ compiler does not properly
3065 # handle `-M -o', and we need to detect this.
3066 if depmode=$depmode \
3067 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3069 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3070 >/dev/null 2>conftest.err &&
3071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3072 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3074 # icc doesn't choke on unknown options, it will just issue warnings
3075 # or remarks (even with -Werror). So we grep stderr for any message
3076 # that says an option was ignored or not supported.
3077 # When given -MP, icc 7.0 and 7.1 complain thusly:
3078 # icc: Command line warning: ignoring option '-M'; no argument required
3079 # The diagnosis changed in icc 8.0:
3080 # icc: Command line remark: option '-MP' not supported
3081 if (grep 'ignoring option' conftest.err ||
3082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3083 am_cv_CC_dependencies_compiler_type=$depmode
3084 break
3085 fi
3086 fi
3087 done
3088
3089 cd ..
3090 rm -rf conftest.dir
3091 else
3092 am_cv_CC_dependencies_compiler_type=none
3093 fi
3094
3095 fi
3096 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3097 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3099
3100
3101
3102 if
3103 test "x$enable_dependency_tracking" != xno \
3104 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3105 am__fastdepCC_TRUE=
3106 am__fastdepCC_FALSE='#'
3107 else
3108 am__fastdepCC_TRUE='#'
3109 am__fastdepCC_FALSE=
3110 fi
3111
3112
3113 ac_ext=cc
3114 ac_cpp='$CXXCPP $CPPFLAGS'
3115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3118 if test -n "$ac_tool_prefix"; then
3119 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3120 do
3121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_CXX+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if test -n "$CXX"; then
3129 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144
3145 fi
3146 fi
3147 CXX=$ac_cv_prog_CXX
3148 if test -n "$CXX"; then
3149 echo "$as_me:$LINENO: result: $CXX" >&5
3150 echo "${ECHO_T}$CXX" >&6
3151 else
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3154 fi
3155
3156 test -n "$CXX" && break
3157 done
3158 fi
3159 if test -z "$CXX"; then
3160 ac_ct_CXX=$CXX
3161 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170 if test -n "$ac_ct_CXX"; then
3171 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_CXX="$ac_prog"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186
3187 fi
3188 fi
3189 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3190 if test -n "$ac_ct_CXX"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3192 echo "${ECHO_T}$ac_ct_CXX" >&6
3193 else
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196 fi
3197
3198 test -n "$ac_ct_CXX" && break
3199 done
3200 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3201
3202 CXX=$ac_ct_CXX
3203 fi
3204
3205
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO:" \
3208 "checking for C++ compiler version" >&5
3209 ac_compiler=`set X $ac_compile; echo $2`
3210 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3211 (eval $ac_compiler --version </dev/null >&5) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }
3215 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3216 (eval $ac_compiler -v </dev/null >&5) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }
3220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3221 (eval $ac_compiler -V </dev/null >&5) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }
3225
3226 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3227 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3228 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237
3238 int
3239 main ()
3240 {
3241 #ifndef __GNUC__
3242 choke me
3243 #endif
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_compiler_gnu=yes
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 ac_compiler_gnu=no
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3282 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3283 GXX=`test $ac_compiler_gnu = yes && echo yes`
3284 ac_test_CXXFLAGS=${CXXFLAGS+set}
3285 ac_save_CXXFLAGS=$CXXFLAGS
3286 CXXFLAGS="-g"
3287 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3288 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3289 if test "${ac_cv_prog_cxx_g+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 int
3300 main ()
3301 {
3302
3303 ;
3304 return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_prog_cxx_g=yes
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ac_cv_prog_cxx_g=no
3334 fi
3335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3339 if test "$ac_test_CXXFLAGS" = set; then
3340 CXXFLAGS=$ac_save_CXXFLAGS
3341 elif test $ac_cv_prog_cxx_g = yes; then
3342 if test "$GXX" = yes; then
3343 CXXFLAGS="-g -O2"
3344 else
3345 CXXFLAGS="-g"
3346 fi
3347 else
3348 if test "$GXX" = yes; then
3349 CXXFLAGS="-O2"
3350 else
3351 CXXFLAGS=
3352 fi
3353 fi
3354 for ac_declaration in \
3355 '' \
3356 'extern "C" void std::exit (int) throw (); using std::exit;' \
3357 'extern "C" void std::exit (int); using std::exit;' \
3358 'extern "C" void exit (int) throw ();' \
3359 'extern "C" void exit (int);' \
3360 'void exit (int);'
3361 do
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 $ac_declaration
3369 #include <stdlib.h>
3370 int
3371 main ()
3372 {
3373 exit (42);
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 :
3400 else
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 continue
3405 fi
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h. */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 $ac_declaration
3414 int
3415 main ()
3416 {
3417 exit (42);
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 fi
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 done
3451 rm -f conftest*
3452 if test -n "$ac_declaration"; then
3453 echo '#ifdef __cplusplus' >>confdefs.h
3454 echo $ac_declaration >>confdefs.h
3455 echo '#endif' >>confdefs.h
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464 depcc="$CXX" am_compiler_list=
3465
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3476 # in D'.
3477 mkdir conftest.dir
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3481 cd conftest.dir
3482 # We will build objects and dependencies in a subdirectory because
3483 # it helps to detect inapplicable dependency modes. For instance
3484 # both Tru64's cc and ICC support -MD to output dependencies as a
3485 # side effect of compilation, but ICC will put the dependencies in
3486 # the current directory while Tru64 will put them in the object
3487 # directory.
3488 mkdir sub
3489
3490 am_cv_CXX_dependencies_compiler_type=none
3491 if test "$am_compiler_list" = ""; then
3492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3493 fi
3494 for depmode in $am_compiler_list; do
3495 # Setup a source with many dependencies, because some compilers
3496 # like to wrap large dependency lists on column 80 (with \), and
3497 # we should not choose a depcomp mode which is confused by this.
3498 #
3499 # We need to recreate these files for each test, as the compiler may
3500 # overwrite some of them when testing with obscure command lines.
3501 # This happens at least with the AIX C compiler.
3502 : > sub/conftest.c
3503 for i in 1 2 3 4 5 6; do
3504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506 # Solaris 8's {/usr,}/bin/sh.
3507 touch sub/conftst$i.h
3508 done
3509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3510
3511 case $depmode in
3512 nosideeffect)
3513 # after this tag, mechanisms are not by side-effect, so they'll
3514 # only be used when explicitly requested
3515 if test "x$enable_dependency_tracking" = xyes; then
3516 continue
3517 else
3518 break
3519 fi
3520 ;;
3521 none) break ;;
3522 esac
3523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524 # mode. It turns out that the SunPro C++ compiler does not properly
3525 # handle `-M -o', and we need to detect this.
3526 if depmode=$depmode \
3527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3530 >/dev/null 2>conftest.err &&
3531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3532 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3534 # icc doesn't choke on unknown options, it will just issue warnings
3535 # or remarks (even with -Werror). So we grep stderr for any message
3536 # that says an option was ignored or not supported.
3537 # When given -MP, icc 7.0 and 7.1 complain thusly:
3538 # icc: Command line warning: ignoring option '-M'; no argument required
3539 # The diagnosis changed in icc 8.0:
3540 # icc: Command line remark: option '-MP' not supported
3541 if (grep 'ignoring option' conftest.err ||
3542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3543 am_cv_CXX_dependencies_compiler_type=$depmode
3544 break
3545 fi
3546 fi
3547 done
3548
3549 cd ..
3550 rm -rf conftest.dir
3551 else
3552 am_cv_CXX_dependencies_compiler_type=none
3553 fi
3554
3555 fi
3556 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3557 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3558 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3559
3560
3561
3562 if
3563 test "x$enable_dependency_tracking" != xno \
3564 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3565 am__fastdepCXX_TRUE=
3566 am__fastdepCXX_FALSE='#'
3567 else
3568 am__fastdepCXX_TRUE='#'
3569 am__fastdepCXX_FALSE=
3570 fi
3571
3572
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3581 # On Suns, sometimes $CPP names a directory.
3582 if test -n "$CPP" && test -d "$CPP"; then
3583 CPP=
3584 fi
3585 if test -z "$CPP"; then
3586 if test "${ac_cv_prog_CPP+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 # Double quotes because CPP needs to be expanded
3590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3591 do
3592 ac_preproc_ok=false
3593 for ac_c_preproc_warn_flag in '' yes
3594 do
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error" is here to catch this case.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #ifdef __STDC__
3608 # include <limits.h>
3609 #else
3610 # include <assert.h>
3611 #endif
3612 Syntax error
3613 _ACEOF
3614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 else
3626 ac_cpp_err=
3627 fi
3628 else
3629 ac_cpp_err=yes
3630 fi
3631 if test -z "$ac_cpp_err"; then
3632 :
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 # Broken: fails on valid input.
3638 continue
3639 fi
3640 rm -f conftest.err conftest.$ac_ext
3641
3642 # OK, works on sane cases. Now check whether non-existent headers
3643 # can be detected and how.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <ac_nonexistent.h>
3651 _ACEOF
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
3661 ac_cpp_err=$ac_c_preproc_warn_flag
3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3663 else
3664 ac_cpp_err=
3665 fi
3666 else
3667 ac_cpp_err=yes
3668 fi
3669 if test -z "$ac_cpp_err"; then
3670 # Broken: success on invalid input.
3671 continue
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Passes both tests.
3677 ac_preproc_ok=:
3678 break
3679 fi
3680 rm -f conftest.err conftest.$ac_ext
3681
3682 done
3683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3684 rm -f conftest.err conftest.$ac_ext
3685 if $ac_preproc_ok; then
3686 break
3687 fi
3688
3689 done
3690 ac_cv_prog_CPP=$CPP
3691
3692 fi
3693 CPP=$ac_cv_prog_CPP
3694 else
3695 ac_cv_prog_CPP=$CPP
3696 fi
3697 echo "$as_me:$LINENO: result: $CPP" >&5
3698 echo "${ECHO_T}$CPP" >&6
3699 ac_preproc_ok=false
3700 for ac_c_preproc_warn_flag in '' yes
3701 do
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 Syntax error
3720 _ACEOF
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev/null; then
3729 if test -s conftest.err; then
3730 ac_cpp_err=$ac_c_preproc_warn_flag
3731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732 else
3733 ac_cpp_err=
3734 fi
3735 else
3736 ac_cpp_err=yes
3737 fi
3738 if test -z "$ac_cpp_err"; then
3739 :
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 # Broken: fails on valid input.
3745 continue
3746 fi
3747 rm -f conftest.err conftest.$ac_ext
3748
3749 # OK, works on sane cases. Now check whether non-existent headers
3750 # can be detected and how.
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <ac_nonexistent.h>
3758 _ACEOF
3759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null; then
3767 if test -s conftest.err; then
3768 ac_cpp_err=$ac_c_preproc_warn_flag
3769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3770 else
3771 ac_cpp_err=
3772 fi
3773 else
3774 ac_cpp_err=yes
3775 fi
3776 if test -z "$ac_cpp_err"; then
3777 # Broken: success on invalid input.
3778 continue
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3782
3783 # Passes both tests.
3784 ac_preproc_ok=:
3785 break
3786 fi
3787 rm -f conftest.err conftest.$ac_ext
3788
3789 done
3790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3791 rm -f conftest.err conftest.$ac_ext
3792 if $ac_preproc_ok; then
3793 :
3794 else
3795 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3796 See \`config.log' for more details." >&5
3797 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3798 See \`config.log' for more details." >&2;}
3799 { (exit 1); exit 1; }; }
3800 fi
3801
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808
3809 echo "$as_me:$LINENO: checking for egrep" >&5
3810 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3811 if test "${ac_cv_prog_egrep+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3815 then ac_cv_prog_egrep='grep -E'
3816 else ac_cv_prog_egrep='egrep'
3817 fi
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3820 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3821 EGREP=$ac_cv_prog_egrep
3822
3823
3824 if test $ac_cv_c_compiler_gnu = yes; then
3825 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3826 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3827 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 ac_pattern="Autoconf.*'x'"
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <sgtty.h>
3838 Autoconf TIOCGETP
3839 _ACEOF
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3842 ac_cv_prog_gcc_traditional=yes
3843 else
3844 ac_cv_prog_gcc_traditional=no
3845 fi
3846 rm -f conftest*
3847
3848
3849 if test $ac_cv_prog_gcc_traditional = no; then
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <termio.h>
3857 Autoconf TCGETA
3858 _ACEOF
3859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3861 ac_cv_prog_gcc_traditional=yes
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3868 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3869 if test $ac_cv_prog_gcc_traditional = yes; then
3870 CC="$CC -traditional"
3871 fi
3872 fi
3873
3874 # Check whether --enable-shared or --disable-shared was given.
3875 if test "${enable_shared+set}" = set; then
3876 enableval="$enable_shared"
3877 p=${PACKAGE-default}
3878 case $enableval in
3879 yes) enable_shared=yes ;;
3880 no) enable_shared=no ;;
3881 *)
3882 enable_shared=no
3883 # Look at the argument we got. We use all the common list separators.
3884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3885 for pkg in $enableval; do
3886 IFS="$lt_save_ifs"
3887 if test "X$pkg" = "X$p"; then
3888 enable_shared=yes
3889 fi
3890 done
3891 IFS="$lt_save_ifs"
3892 ;;
3893 esac
3894 else
3895 enable_shared=yes
3896 fi;
3897
3898 # Check whether --enable-static or --disable-static was given.
3899 if test "${enable_static+set}" = set; then
3900 enableval="$enable_static"
3901 p=${PACKAGE-default}
3902 case $enableval in
3903 yes) enable_static=yes ;;
3904 no) enable_static=no ;;
3905 *)
3906 enable_static=no
3907 # Look at the argument we got. We use all the common list separators.
3908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3909 for pkg in $enableval; do
3910 IFS="$lt_save_ifs"
3911 if test "X$pkg" = "X$p"; then
3912 enable_static=yes
3913 fi
3914 done
3915 IFS="$lt_save_ifs"
3916 ;;
3917 esac
3918 else
3919 enable_static=yes
3920 fi;
3921
3922 # Check whether --enable-fast-install or --disable-fast-install was given.
3923 if test "${enable_fast_install+set}" = set; then
3924 enableval="$enable_fast_install"
3925 p=${PACKAGE-default}
3926 case $enableval in
3927 yes) enable_fast_install=yes ;;
3928 no) enable_fast_install=no ;;
3929 *)
3930 enable_fast_install=no
3931 # Look at the argument we got. We use all the common list separators.
3932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3933 for pkg in $enableval; do
3934 IFS="$lt_save_ifs"
3935 if test "X$pkg" = "X$p"; then
3936 enable_fast_install=yes
3937 fi
3938 done
3939 IFS="$lt_save_ifs"
3940 ;;
3941 esac
3942 else
3943 enable_fast_install=yes
3944 fi;
3945
3946 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3947 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3948 if test "${lt_cv_path_SED+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 # Loop through the user's path and test for sed and gsed.
3952 # Then use that list of sed's as ones to test for truncation.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for lt_ac_prog in sed gsed; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3961 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3962 fi
3963 done
3964 done
3965 done
3966 lt_ac_max=0
3967 lt_ac_count=0
3968 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3969 # along with /bin/sed that truncates output.
3970 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3971 test ! -f $lt_ac_sed && continue
3972 cat /dev/null > conftest.in
3973 lt_ac_count=0
3974 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3975 # Check for GNU sed and select it if it is found.
3976 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3977 lt_cv_path_SED=$lt_ac_sed
3978 break
3979 fi
3980 while true; do
3981 cat conftest.in conftest.in >conftest.tmp
3982 mv conftest.tmp conftest.in
3983 cp conftest.in conftest.nl
3984 echo >>conftest.nl
3985 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3986 cmp -s conftest.out conftest.nl || break
3987 # 10000 chars as input seems more than enough
3988 test $lt_ac_count -gt 10 && break
3989 lt_ac_count=`expr $lt_ac_count + 1`
3990 if test $lt_ac_count -gt $lt_ac_max; then
3991 lt_ac_max=$lt_ac_count
3992 lt_cv_path_SED=$lt_ac_sed
3993 fi
3994 done
3995 done
3996
3997 fi
3998
3999 SED=$lt_cv_path_SED
4000 echo "$as_me:$LINENO: result: $SED" >&5
4001 echo "${ECHO_T}$SED" >&6
4002
4003
4004 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4005 if test "${with_gnu_ld+set}" = set; then
4006 withval="$with_gnu_ld"
4007 test "$withval" = no || with_gnu_ld=yes
4008 else
4009 with_gnu_ld=no
4010 fi;
4011 ac_prog=ld
4012 if test "$GCC" = yes; then
4013 # Check if gcc -print-prog-name=ld gives a path.
4014 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4015 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4016 case $host in
4017 *-*-mingw*)
4018 # gcc leaves a trailing carriage return which upsets mingw
4019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4020 *)
4021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4022 esac
4023 case $ac_prog in
4024 # Accept absolute paths.
4025 [\\/]* | ?:[\\/]*)
4026 re_direlt='/[^/][^/]*/\.\./'
4027 # Canonicalize the pathname of ld
4028 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4030 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4031 done
4032 test -z "$LD" && LD="$ac_prog"
4033 ;;
4034 "")
4035 # If it fails, then pretend we aren't using GCC.
4036 ac_prog=ld
4037 ;;
4038 *)
4039 # If it is relative, then search for the first ld in PATH.
4040 with_gnu_ld=unknown
4041 ;;
4042 esac
4043 elif test "$with_gnu_ld" = yes; then
4044 echo "$as_me:$LINENO: checking for GNU ld" >&5
4045 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4046 else
4047 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4048 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4049 fi
4050 if test "${lt_cv_path_LD+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 if test -z "$LD"; then
4054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4055 for ac_dir in $PATH; do
4056 IFS="$lt_save_ifs"
4057 test -z "$ac_dir" && ac_dir=.
4058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4059 lt_cv_path_LD="$ac_dir/$ac_prog"
4060 # Check to see if the program is GNU ld. I'd rather use --version,
4061 # but apparently some GNU ld's only accept -v.
4062 # Break only if it was the GNU/non-GNU ld that we prefer.
4063 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
4065 test "$with_gnu_ld" != no && break
4066 ;;
4067 *)
4068 test "$with_gnu_ld" != yes && break
4069 ;;
4070 esac
4071 fi
4072 done
4073 IFS="$lt_save_ifs"
4074 else
4075 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4076 fi
4077 fi
4078
4079 LD="$lt_cv_path_LD"
4080 if test -n "$LD"; then
4081 echo "$as_me:$LINENO: result: $LD" >&5
4082 echo "${ECHO_T}$LD" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4086 fi
4087 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4088 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4089 { (exit 1); exit 1; }; }
4090 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4091 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4092 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4096 case `$LD -v 2>&1 </dev/null` in
4097 *GNU* | *'with BFD'*)
4098 lt_cv_prog_gnu_ld=yes
4099 ;;
4100 *)
4101 lt_cv_prog_gnu_ld=no
4102 ;;
4103 esac
4104 fi
4105 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4106 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4107 with_gnu_ld=$lt_cv_prog_gnu_ld
4108
4109
4110 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4111 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4112 if test "${lt_cv_ld_reload_flag+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 lt_cv_ld_reload_flag='-r'
4116 fi
4117 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4118 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4119 reload_flag=$lt_cv_ld_reload_flag
4120 case $reload_flag in
4121 "" | " "*) ;;
4122 *) reload_flag=" $reload_flag" ;;
4123 esac
4124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4125 case $host_os in
4126 darwin*)
4127 if test "$GCC" = yes; then
4128 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4129 else
4130 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4131 fi
4132 ;;
4133 esac
4134
4135 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4136 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4137 if test "${lt_cv_path_NM+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if test -n "$NM"; then
4141 # Let the user override the test.
4142 lt_cv_path_NM="$NM"
4143 else
4144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4145 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4146 IFS="$lt_save_ifs"
4147 test -z "$ac_dir" && ac_dir=.
4148 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4150 # Check to see if the nm accepts a BSD-compat flag.
4151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4152 # nm: unknown option "B" ignored
4153 # Tru64's nm complains that /dev/null is an invalid object file
4154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4155 */dev/null* | *'Invalid file or object type'*)
4156 lt_cv_path_NM="$tmp_nm -B"
4157 break
4158 ;;
4159 *)
4160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4161 */dev/null*)
4162 lt_cv_path_NM="$tmp_nm -p"
4163 break
4164 ;;
4165 *)
4166 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4167 continue # so that we can try to find one that supports BSD flags
4168 ;;
4169 esac
4170 esac
4171 fi
4172 done
4173 IFS="$lt_save_ifs"
4174 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4175 fi
4176 fi
4177 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4178 echo "${ECHO_T}$lt_cv_path_NM" >&6
4179 NM="$lt_cv_path_NM"
4180
4181 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4182 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4183 LN_S=$as_ln_s
4184 if test "$LN_S" = "ln -s"; then
4185 echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4189 echo "${ECHO_T}no, using $LN_S" >&6
4190 fi
4191
4192 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4193 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4194 if test "${lt_cv_deplibs_check_method+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 lt_cv_file_magic_cmd='$MAGIC_CMD'
4198 lt_cv_file_magic_test_file=
4199 lt_cv_deplibs_check_method='unknown'
4200 # Need to set the preceding variable on all platforms that support
4201 # interlibrary dependencies.
4202 # 'none' -- dependencies not supported.
4203 # `unknown' -- same as none, but documents that we really don't know.
4204 # 'pass_all' -- all dependencies passed with no checks.
4205 # 'test_compile' -- check by making test program.
4206 # 'file_magic [[regex]]' -- check by looking for files in library path
4207 # which responds to the $file_magic_cmd with a given extended regex.
4208 # If you have `file' or equivalent on your system and you're not sure
4209 # whether `pass_all' will *always* work, you probably want this one.
4210
4211 case $host_os in
4212 aix4* | aix5*)
4213 lt_cv_deplibs_check_method=pass_all
4214 ;;
4215
4216 beos*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219
4220 bsdi[45]*)
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4222 lt_cv_file_magic_cmd='/usr/bin/file -L'
4223 lt_cv_file_magic_test_file=/shlib/libc.so
4224 ;;
4225
4226 cygwin*)
4227 # func_win32_libid is a shell function defined in ltmain.sh
4228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4229 lt_cv_file_magic_cmd='func_win32_libid'
4230 ;;
4231
4232 mingw* | pw32*)
4233 # Base MSYS/MinGW do not provide the 'file' command needed by
4234 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4235 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4236 lt_cv_file_magic_cmd='$OBJDUMP -f'
4237 ;;
4238
4239 darwin* | rhapsody*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243 freebsd* | kfreebsd*-gnu | dragonfly*)
4244 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4245 case $host_cpu in
4246 i*86 )
4247 # Not sure whether the presence of OpenBSD here was a mistake.
4248 # Let's accept both of them until this is cleared up.
4249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4250 lt_cv_file_magic_cmd=/usr/bin/file
4251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4252 ;;
4253 esac
4254 else
4255 lt_cv_deplibs_check_method=pass_all
4256 fi
4257 ;;
4258
4259 gnu*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262
4263 hpux10.20* | hpux11*)
4264 lt_cv_file_magic_cmd=/usr/bin/file
4265 case "$host_cpu" in
4266 ia64*)
4267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4269 ;;
4270 hppa*64*)
4271 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]'
4272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4273 ;;
4274 *)
4275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4277 ;;
4278 esac
4279 ;;
4280
4281 irix5* | irix6* | nonstopux*)
4282 case $LD in
4283 *-32|*"-32 ") libmagic=32-bit;;
4284 *-n32|*"-n32 ") libmagic=N32;;
4285 *-64|*"-64 ") libmagic=64-bit;;
4286 *) libmagic=never-match;;
4287 esac
4288 lt_cv_deplibs_check_method=pass_all
4289 ;;
4290
4291 # This must be Linux ELF.
4292 linux*)
4293 lt_cv_deplibs_check_method=pass_all
4294 ;;
4295
4296 netbsd*)
4297 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4299 else
4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4301 fi
4302 ;;
4303
4304 newos6*)
4305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4306 lt_cv_file_magic_cmd=/usr/bin/file
4307 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4308 ;;
4309
4310 nto-qnx*)
4311 lt_cv_deplibs_check_method=unknown
4312 ;;
4313
4314 openbsd*)
4315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4317 else
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 fi
4320 ;;
4321
4322 osf3* | osf4* | osf5*)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325
4326 sco3.2v5*)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329
4330 solaris*)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333
4334 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4335 case $host_vendor in
4336 motorola)
4337 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]'
4338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4339 ;;
4340 ncr)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 sequent)
4344 lt_cv_file_magic_cmd='/bin/file'
4345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4346 ;;
4347 sni)
4348 lt_cv_file_magic_cmd='/bin/file'
4349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4350 lt_cv_file_magic_test_file=/lib/libc.so
4351 ;;
4352 siemens)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
4355 esac
4356 ;;
4357
4358 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4359 lt_cv_deplibs_check_method=pass_all
4360 ;;
4361 esac
4362
4363 fi
4364 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4365 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4366 file_magic_cmd=$lt_cv_file_magic_cmd
4367 deplibs_check_method=$lt_cv_deplibs_check_method
4368 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4369
4370
4371
4372
4373 # If no C compiler was specified, use CC.
4374 LTCC=${LTCC-"$CC"}
4375
4376 # Allow CC to be a program name with arguments.
4377 compiler=$CC
4378
4379 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4380 if test "${enable_libtool_lock+set}" = set; then
4381 enableval="$enable_libtool_lock"
4382
4383 fi;
4384 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4385
4386 # Some flags need to be propagated to the compiler or linker for good
4387 # libtool support.
4388 case $host in
4389 ia64-*-hpux*)
4390 # Find out which ABI we are using.
4391 echo 'int i;' > conftest.$ac_ext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; then
4397 case `/usr/bin/file conftest.$ac_objext` in
4398 *ELF-32*)
4399 HPUX_IA64_MODE="32"
4400 ;;
4401 *ELF-64*)
4402 HPUX_IA64_MODE="64"
4403 ;;
4404 esac
4405 fi
4406 rm -rf conftest*
4407 ;;
4408 *-*-irix6*)
4409 # Find out which ABI we are using.
4410 echo '#line 4410 "configure"' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 if test "$lt_cv_prog_gnu_ld" = yes; then
4417 case `/usr/bin/file conftest.$ac_objext` in
4418 *32-bit*)
4419 LD="${LD-ld} -melf32bsmip"
4420 ;;
4421 *N32*)
4422 LD="${LD-ld} -melf32bmipn32"
4423 ;;
4424 *64-bit*)
4425 LD="${LD-ld} -melf64bmip"
4426 ;;
4427 esac
4428 else
4429 case `/usr/bin/file conftest.$ac_objext` in
4430 *32-bit*)
4431 LD="${LD-ld} -32"
4432 ;;
4433 *N32*)
4434 LD="${LD-ld} -n32"
4435 ;;
4436 *64-bit*)
4437 LD="${LD-ld} -64"
4438 ;;
4439 esac
4440 fi
4441 fi
4442 rm -rf conftest*
4443 ;;
4444
4445 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4446 # Find out which ABI we are using.
4447 echo 'int i;' > conftest.$ac_ext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; then
4453 case "`/usr/bin/file conftest.o`" in
4454 *32-bit*)
4455 case $host in
4456 x86_64-*linux*)
4457 LD="${LD-ld} -m elf_i386"
4458 ;;
4459 ppc64-*linux*|powerpc64-*linux*)
4460 LD="${LD-ld} -m elf32ppclinux"
4461 ;;
4462 s390x-*linux*)
4463 LD="${LD-ld} -m elf_s390"
4464 ;;
4465 sparc64-*linux*)
4466 LD="${LD-ld} -m elf32_sparc"
4467 ;;
4468 esac
4469 ;;
4470 *64-bit*)
4471 case $host in
4472 x86_64-*linux*)
4473 LD="${LD-ld} -m elf_x86_64"
4474 ;;
4475 ppc*-*linux*|powerpc*-*linux*)
4476 LD="${LD-ld} -m elf64ppc"
4477 ;;
4478 s390*-*linux*)
4479 LD="${LD-ld} -m elf64_s390"
4480 ;;
4481 sparc*-*linux*)
4482 LD="${LD-ld} -m elf64_sparc"
4483 ;;
4484 esac
4485 ;;
4486 esac
4487 fi
4488 rm -rf conftest*
4489 ;;
4490
4491 *-*-sco3.2v5*)
4492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4493 SAVE_CFLAGS="$CFLAGS"
4494 CFLAGS="$CFLAGS -belf"
4495 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4496 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4497 if test "${lt_cv_cc_needs_belf+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512
4513 int
4514 main ()
4515 {
4516
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext conftest$ac_exeext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523 (eval $ac_link) 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 lt_cv_cc_needs_belf=yes
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 lt_cv_cc_needs_belf=no
4548 fi
4549 rm -f conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext conftest.$ac_ext
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557 fi
4558 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4559 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4562 CFLAGS="$SAVE_CFLAGS"
4563 fi
4564 ;;
4565
4566 esac
4567
4568 need_locks="$enable_libtool_lock"
4569
4570
4571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4573 if test "${ac_cv_header_stdc+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <stdlib.h>
4583 #include <stdarg.h>
4584 #include <string.h>
4585 #include <float.h>
4586
4587 int
4588 main ()
4589 {
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_header_stdc=yes
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ac_cv_header_stdc=no
4622 fi
4623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625 if test $ac_cv_header_stdc = yes; then
4626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 #include <string.h>
4634
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev/null 2>&1; then
4638 :
4639 else
4640 ac_cv_header_stdc=no
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645
4646 if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <stdlib.h>
4655
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "free" >/dev/null 2>&1; then
4659 :
4660 else
4661 ac_cv_header_stdc=no
4662 fi
4663 rm -f conftest*
4664
4665 fi
4666
4667 if test $ac_cv_header_stdc = yes; then
4668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4669 if test "$cross_compiling" = yes; then
4670 :
4671 else
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <ctype.h>
4679 #if ((' ' & 0x0FF) == 0x020)
4680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682 #else
4683 # define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688 #endif
4689
4690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691 int
4692 main ()
4693 {
4694 int i;
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4698 exit(2);
4699 exit (0);
4700 }
4701 _ACEOF
4702 rm -f conftest$ac_exeext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 :
4714 else
4715 echo "$as_me: program exited with status $ac_status" >&5
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ( exit $ac_status )
4720 ac_cv_header_stdc=no
4721 fi
4722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 fi
4725 fi
4726 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4727 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4728 if test $ac_cv_header_stdc = yes; then
4729
4730 cat >>confdefs.h <<\_ACEOF
4731 #define STDC_HEADERS 1
4732 _ACEOF
4733
4734 fi
4735
4736 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747 inttypes.h stdint.h unistd.h
4748 do
4749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750 echo "$as_me:$LINENO: checking for $ac_header" >&5
4751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4762
4763 #include <$ac_header>
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_Header=yes"
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 eval "$as_ac_Header=no"
4792 fi
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4798 cat >>confdefs.h <<_ACEOF
4799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 _ACEOF
4801
4802 fi
4803
4804 done
4805
4806
4807
4808 for ac_header in dlfcn.h
4809 do
4810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 fi
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 else
4820 # Is the header compilable?
4821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 $ac_includes_default
4830 #include <$ac_header>
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_header_compiler=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_header_compiler=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4862 echo "${ECHO_T}$ac_header_compiler" >&6
4863
4864 # Is the header present?
4865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <$ac_header>
4874 _ACEOF
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_c_preproc_warn_flag
4885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4886 else
4887 ac_cpp_err=
4888 fi
4889 else
4890 ac_cpp_err=yes
4891 fi
4892 if test -z "$ac_cpp_err"; then
4893 ac_header_preproc=yes
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 ac_header_preproc=no
4899 fi
4900 rm -f conftest.err conftest.$ac_ext
4901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4902 echo "${ECHO_T}$ac_header_preproc" >&6
4903
4904 # So? What about this header?
4905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4906 yes:no: )
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4911 ac_header_preproc=yes
4912 ;;
4913 no:yes:* )
4914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4926 (
4927 cat <<\_ASBOX
4928 ## ------------------------------------------ ##
4929 ## Report this to the AC_PACKAGE_NAME lists. ##
4930 ## ------------------------------------------ ##
4931 _ASBOX
4932 ) |
4933 sed "s/^/$as_me: WARNING: /" >&2
4934 ;;
4935 esac
4936 echo "$as_me:$LINENO: checking for $ac_header" >&5
4937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 eval "$as_ac_Header=\$ac_header_preproc"
4942 fi
4943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4945
4946 fi
4947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4948 cat >>confdefs.h <<_ACEOF
4949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 _ACEOF
4951
4952 fi
4953
4954 done
4955
4956
4957
4958 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4959 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4960 (test "X$CXX" != "Xg++"))) ; then
4961 ac_ext=cc
4962 ac_cpp='$CXXCPP $CPPFLAGS'
4963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4967 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4968 if test -z "$CXXCPP"; then
4969 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 # Double quotes because CXXCPP needs to be expanded
4973 for CXXCPP in "$CXX -E" "/lib/cpp"
4974 do
4975 ac_preproc_ok=false
4976 for ac_cxx_preproc_warn_flag in '' yes
4977 do
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #ifdef __STDC__
4991 # include <limits.h>
4992 #else
4993 # include <assert.h>
4994 #endif
4995 Syntax error
4996 _ACEOF
4997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_cxx_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5008 else
5009 ac_cpp_err=
5010 fi
5011 else
5012 ac_cpp_err=yes
5013 fi
5014 if test -z "$ac_cpp_err"; then
5015 :
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 # Broken: fails on valid input.
5021 continue
5022 fi
5023 rm -f conftest.err conftest.$ac_ext
5024
5025 # OK, works on sane cases. Now check whether non-existent headers
5026 # can be detected and how.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #include <ac_nonexistent.h>
5034 _ACEOF
5035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null; then
5043 if test -s conftest.err; then
5044 ac_cpp_err=$ac_cxx_preproc_warn_flag
5045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5046 else
5047 ac_cpp_err=
5048 fi
5049 else
5050 ac_cpp_err=yes
5051 fi
5052 if test -z "$ac_cpp_err"; then
5053 # Broken: success on invalid input.
5054 continue
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 # Passes both tests.
5060 ac_preproc_ok=:
5061 break
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064
5065 done
5066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5067 rm -f conftest.err conftest.$ac_ext
5068 if $ac_preproc_ok; then
5069 break
5070 fi
5071
5072 done
5073 ac_cv_prog_CXXCPP=$CXXCPP
5074
5075 fi
5076 CXXCPP=$ac_cv_prog_CXXCPP
5077 else
5078 ac_cv_prog_CXXCPP=$CXXCPP
5079 fi
5080 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5081 echo "${ECHO_T}$CXXCPP" >&6
5082 ac_preproc_ok=false
5083 for ac_cxx_preproc_warn_flag in '' yes
5084 do
5085 # Use a header file that comes with gcc, so configuring glibc
5086 # with a fresh cross-compiler works.
5087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 # <limits.h> exists even on freestanding compilers.
5089 # On the NeXT, cc -E runs the code through the compiler's parser,
5090 # not just through cpp. "Syntax error" is here to catch this case.
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #ifdef __STDC__
5098 # include <limits.h>
5099 #else
5100 # include <assert.h>
5101 #endif
5102 Syntax error
5103 _ACEOF
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_cxx_preproc_warn_flag
5114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5115 else
5116 ac_cpp_err=
5117 fi
5118 else
5119 ac_cpp_err=yes
5120 fi
5121 if test -z "$ac_cpp_err"; then
5122 :
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 # Broken: fails on valid input.
5128 continue
5129 fi
5130 rm -f conftest.err conftest.$ac_ext
5131
5132 # OK, works on sane cases. Now check whether non-existent headers
5133 # can be detected and how.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5144 ac_status=$?
5145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } >/dev/null; then
5150 if test -s conftest.err; then
5151 ac_cpp_err=$ac_cxx_preproc_warn_flag
5152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5153 else
5154 ac_cpp_err=
5155 fi
5156 else
5157 ac_cpp_err=yes
5158 fi
5159 if test -z "$ac_cpp_err"; then
5160 # Broken: success on invalid input.
5161 continue
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166 # Passes both tests.
5167 ac_preproc_ok=:
5168 break
5169 fi
5170 rm -f conftest.err conftest.$ac_ext
5171
5172 done
5173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174 rm -f conftest.err conftest.$ac_ext
5175 if $ac_preproc_ok; then
5176 :
5177 else
5178 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5179 See \`config.log' for more details." >&5
5180 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5181 See \`config.log' for more details." >&2;}
5182 { (exit 1); exit 1; }; }
5183 fi
5184
5185 ac_ext=cc
5186 ac_cpp='$CXXCPP $CPPFLAGS'
5187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5190
5191 fi
5192
5193
5194 ac_ext=f
5195 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5196 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200 do
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_F77+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$F77"; then
5209 ac_cv_prog_F77="$F77" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224
5225 fi
5226 fi
5227 F77=$ac_cv_prog_F77
5228 if test -n "$F77"; then
5229 echo "$as_me:$LINENO: result: $F77" >&5
5230 echo "${ECHO_T}$F77" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5234 fi
5235
5236 test -n "$F77" && break
5237 done
5238 fi
5239 if test -z "$F77"; then
5240 ac_ct_F77=$F77
5241 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5242 do
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 if test -n "$ac_ct_F77"; then
5251 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_ac_ct_F77="$ac_prog"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266
5267 fi
5268 fi
5269 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5270 if test -n "$ac_ct_F77"; then
5271 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5272 echo "${ECHO_T}$ac_ct_F77" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278 test -n "$ac_ct_F77" && break
5279 done
5280
5281 F77=$ac_ct_F77
5282 fi
5283
5284
5285 # Provide some information about the compiler.
5286 echo "$as_me:5286:" \
5287 "checking for Fortran 77 compiler version" >&5
5288 ac_compiler=`set X $ac_compile; echo $2`
5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5290 (eval $ac_compiler --version </dev/null >&5) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5294 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5295 (eval $ac_compiler -v </dev/null >&5) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5300 (eval $ac_compiler -V </dev/null >&5) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }
5304 rm -f a.out
5305
5306 # If we don't use `.F' as extension, the preprocessor is not run on the
5307 # input file. (Note that this only needs to work for GNU compilers.)
5308 ac_save_ext=$ac_ext
5309 ac_ext=F
5310 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5311 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5312 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 cat >conftest.$ac_ext <<_ACEOF
5316 program main
5317 #ifndef __GNUC__
5318 choke me
5319 #endif
5320
5321 end
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_compiler_gnu=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_compiler_gnu=no
5350 fi
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5353
5354 fi
5355 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5357 ac_ext=$ac_save_ext
5358 ac_test_FFLAGS=${FFLAGS+set}
5359 ac_save_FFLAGS=$FFLAGS
5360 FFLAGS=
5361 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5362 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5363 if test "${ac_cv_prog_f77_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 FFLAGS=-g
5367 cat >conftest.$ac_ext <<_ACEOF
5368 program main
5369
5370 end
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_prog_f77_g=yes
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 ac_cv_prog_f77_g=no
5399 fi
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5404 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5405 if test "$ac_test_FFLAGS" = set; then
5406 FFLAGS=$ac_save_FFLAGS
5407 elif test $ac_cv_prog_f77_g = yes; then
5408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5409 FFLAGS="-g -O2"
5410 else
5411 FFLAGS="-g"
5412 fi
5413 else
5414 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5415 FFLAGS="-O2"
5416 else
5417 FFLAGS=
5418 fi
5419 fi
5420
5421 G77=`test $ac_compiler_gnu = yes && echo yes`
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427
5428
5429
5430 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5431
5432 # find the maximum length of command line arguments
5433 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5434 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5435 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 i=0
5439 teststring="ABCD"
5440
5441 case $build_os in
5442 msdosdjgpp*)
5443 # On DJGPP, this test can blow up pretty badly due to problems in libc
5444 # (any single argument exceeding 2000 bytes causes a buffer overrun
5445 # during glob expansion). Even if it were fixed, the result of this
5446 # check would be larger than it should be.
5447 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5448 ;;
5449
5450 gnu*)
5451 # Under GNU Hurd, this test is not required because there is
5452 # no limit to the length of command line arguments.
5453 # Libtool will interpret -1 as no limit whatsoever
5454 lt_cv_sys_max_cmd_len=-1;
5455 ;;
5456
5457 cygwin* | mingw*)
5458 # On Win9x/ME, this test blows up -- it succeeds, but takes
5459 # about 5 minutes as the teststring grows exponentially.
5460 # Worse, since 9x/ME are not pre-emptively multitasking,
5461 # you end up with a "frozen" computer, even though with patience
5462 # the test eventually succeeds (with a max line length of 256k).
5463 # Instead, let's just punt: use the minimum linelength reported by
5464 # all of the supported platforms: 8192 (on NT/2K/XP).
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 amigaos*)
5469 # On AmigaOS with pdksh, this test takes hours, literally.
5470 # So we just punt and use a minimum line length of 8192.
5471 lt_cv_sys_max_cmd_len=8192;
5472 ;;
5473
5474 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5475 # This has been around since 386BSD, at least. Likely further.
5476 if test -x /sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5478 elif test -x /usr/sbin/sysctl; then
5479 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5480 else
5481 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5482 fi
5483 # And add a safety zone
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5486 ;;
5487 osf*)
5488 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5489 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5490 # nice to cause kernel panics so lets avoid the loop below.
5491 # First set a reasonable default.
5492 lt_cv_sys_max_cmd_len=16384
5493 #
5494 if test -x /sbin/sysconfig; then
5495 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5496 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5497 esac
5498 fi
5499 ;;
5500 *)
5501 # If test is not a shell built-in, we'll probably end up computing a
5502 # maximum length that is only half of the actual maximum length, but
5503 # we can't tell.
5504 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5505 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5506 = "XX$teststring") >/dev/null 2>&1 &&
5507 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5508 lt_cv_sys_max_cmd_len=$new_result &&
5509 test $i != 17 # 1/2 MB should be enough
5510 do
5511 i=`expr $i + 1`
5512 teststring=$teststring$teststring
5513 done
5514 teststring=
5515 # Add a significant safety factor because C++ compilers can tack on massive
5516 # amounts of additional arguments before passing them to the linker.
5517 # It appears as though 1/2 is a usable value.
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 ;;
5520 esac
5521
5522 fi
5523
5524 if test -n $lt_cv_sys_max_cmd_len ; then
5525 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5526 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5527 else
5528 echo "$as_me:$LINENO: result: none" >&5
5529 echo "${ECHO_T}none" >&6
5530 fi
5531
5532
5533
5534
5535 # Check for command to grab the raw symbol name followed by C symbol from nm.
5536 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5537 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541
5542 # These are sane defaults that work on at least a few old systems.
5543 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5544
5545 # Character class describing NM global symbol codes.
5546 symcode='[BCDEGRST]'
5547
5548 # Regexp to match symbols that can be accessed directly from C.
5549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5550
5551 # Transform an extracted symbol line into a proper C declaration
5552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5553
5554 # Transform an extracted symbol line into symbol name and symbol address
5555 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'"
5556
5557 # Define system-specific variables.
5558 case $host_os in
5559 aix*)
5560 symcode='[BCDT]'
5561 ;;
5562 cygwin* | mingw* | pw32*)
5563 symcode='[ABCDGISTW]'
5564 ;;
5565 hpux*) # Its linker distinguishes data from code symbols
5566 if test "$host_cpu" = ia64; then
5567 symcode='[ABCDEGRST]'
5568 fi
5569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5570 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'"
5571 ;;
5572 linux*)
5573 if test "$host_cpu" = ia64; then
5574 symcode='[ABCDGIRSTW]'
5575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5576 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'"
5577 fi
5578 ;;
5579 irix* | nonstopux*)
5580 symcode='[BCDEGRST]'
5581 ;;
5582 osf*)
5583 symcode='[BCDEGQRST]'
5584 ;;
5585 solaris* | sysv5*)
5586 symcode='[BDRT]'
5587 ;;
5588 sysv4)
5589 symcode='[DFNSTU]'
5590 ;;
5591 esac
5592
5593 # Handle CRLF in mingw tool chain
5594 opt_cr=
5595 case $build_os in
5596 mingw*)
5597 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5598 ;;
5599 esac
5600
5601 # If we're using GNU nm, then use its standard symbol codes.
5602 case `$NM -V 2>&1` in
5603 *GNU* | *'with BFD'*)
5604 symcode='[ABCDGIRSTW]' ;;
5605 esac
5606
5607 # Try without a prefix undercore, then with it.
5608 for ac_symprfx in "" "_"; do
5609
5610 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5611 symxfrm="\\1 $ac_symprfx\\2 \\2"
5612
5613 # Write the raw and C identifiers.
5614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5615
5616 # Check to see that the pipe works correctly.
5617 pipe_works=no
5618
5619 rm -f conftest*
5620 cat > conftest.$ac_ext <<EOF
5621 #ifdef __cplusplus
5622 extern "C" {
5623 #endif
5624 char nm_test_var;
5625 void nm_test_func(){}
5626 #ifdef __cplusplus
5627 }
5628 #endif
5629 int main(){nm_test_var='a';nm_test_func();return(0);}
5630 EOF
5631
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; then
5637 # Now try to grab the symbols.
5638 nlist=conftest.nm
5639 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && test -s "$nlist"; then
5644 # Try sorting and uniquifying the output.
5645 if sort "$nlist" | uniq > "$nlist"T; then
5646 mv -f "$nlist"T "$nlist"
5647 else
5648 rm -f "$nlist"T
5649 fi
5650
5651 # Make sure that we snagged all the symbols we need.
5652 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5653 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5654 cat <<EOF > conftest.$ac_ext
5655 #ifdef __cplusplus
5656 extern "C" {
5657 #endif
5658
5659 EOF
5660 # Now generate the symbol file.
5661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5662
5663 cat <<EOF >> conftest.$ac_ext
5664 #if defined (__STDC__) && __STDC__
5665 # define lt_ptr_t void *
5666 #else
5667 # define lt_ptr_t char *
5668 # define const
5669 #endif
5670
5671 /* The mapping between symbol names and symbols. */
5672 const struct {
5673 const char *name;
5674 lt_ptr_t address;
5675 }
5676 lt_preloaded_symbols[] =
5677 {
5678 EOF
5679 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5680 cat <<\EOF >> conftest.$ac_ext
5681 {0, (lt_ptr_t) 0}
5682 };
5683
5684 #ifdef __cplusplus
5685 }
5686 #endif
5687 EOF
5688 # Now try linking the two files.
5689 mv conftest.$ac_objext conftstm.$ac_objext
5690 lt_save_LIBS="$LIBS"
5691 lt_save_CFLAGS="$CFLAGS"
5692 LIBS="conftstm.$ac_objext"
5693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5699 pipe_works=yes
5700 fi
5701 LIBS="$lt_save_LIBS"
5702 CFLAGS="$lt_save_CFLAGS"
5703 else
5704 echo "cannot find nm_test_func in $nlist" >&5
5705 fi
5706 else
5707 echo "cannot find nm_test_var in $nlist" >&5
5708 fi
5709 else
5710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5711 fi
5712 else
5713 echo "$progname: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 fi
5716 rm -f conftest* conftst*
5717
5718 # Do not use the global_symbol_pipe unless it works.
5719 if test "$pipe_works" = yes; then
5720 break
5721 else
5722 lt_cv_sys_global_symbol_pipe=
5723 fi
5724 done
5725
5726 fi
5727
5728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5729 lt_cv_sys_global_symbol_to_cdecl=
5730 fi
5731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732 echo "$as_me:$LINENO: result: failed" >&5
5733 echo "${ECHO_T}failed" >&6
5734 else
5735 echo "$as_me:$LINENO: result: ok" >&5
5736 echo "${ECHO_T}ok" >&6
5737 fi
5738
5739 echo "$as_me:$LINENO: checking for objdir" >&5
5740 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5741 if test "${lt_cv_objdir+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744 rm -f .libs 2>/dev/null
5745 mkdir .libs 2>/dev/null
5746 if test -d .libs; then
5747 lt_cv_objdir=.libs
5748 else
5749 # MS-DOS does not allow filenames that begin with a dot.
5750 lt_cv_objdir=_libs
5751 fi
5752 rmdir .libs 2>/dev/null
5753 fi
5754 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5755 echo "${ECHO_T}$lt_cv_objdir" >&6
5756 objdir=$lt_cv_objdir
5757
5758
5759
5760
5761
5762 case $host_os in
5763 aix3*)
5764 # AIX sometimes has problems with the GCC collect2 program. For some
5765 # reason, if we set the COLLECT_NAMES environment variable, the problems
5766 # vanish in a puff of smoke.
5767 if test "X${COLLECT_NAMES+set}" != Xset; then
5768 COLLECT_NAMES=
5769 export COLLECT_NAMES
5770 fi
5771 ;;
5772 esac
5773
5774 # Sed substitution that helps us do robust quoting. It backslashifies
5775 # metacharacters that are still active within double-quoted strings.
5776 Xsed='sed -e 1s/^X//'
5777 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5778
5779 # Same as above, but do not quote variable references.
5780 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5781
5782 # Sed substitution to delay expansion of an escaped shell variable in a
5783 # double_quote_subst'ed string.
5784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5785
5786 # Sed substitution to avoid accidental globbing in evaled expressions
5787 no_glob_subst='s/\*/\\\*/g'
5788
5789 # Constants:
5790 rm="rm -f"
5791
5792 # Global variables:
5793 default_ofile=libtool
5794 can_build_shared=yes
5795
5796 # All known linkers require a `.a' archive for static linking (except M$VC,
5797 # which needs '.lib').
5798 libext=a
5799 ltmain="$ac_aux_dir/ltmain.sh"
5800 ofile="$default_ofile"
5801 with_gnu_ld="$lt_cv_prog_gnu_ld"
5802
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}ar; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_AR+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 if test -n "$AR"; then
5812 ac_cv_prog_AR="$AR" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_AR="${ac_tool_prefix}ar"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825 done
5826 done
5827
5828 fi
5829 fi
5830 AR=$ac_cv_prog_AR
5831 if test -n "$AR"; then
5832 echo "$as_me:$LINENO: result: $AR" >&5
5833 echo "${ECHO_T}$AR" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839 fi
5840 if test -z "$ac_cv_prog_AR"; then
5841 ac_ct_AR=$AR
5842 # Extract the first word of "ar", so it can be a program name with args.
5843 set dummy ar; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 if test -n "$ac_ct_AR"; then
5850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_AR="ar"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863 done
5864 done
5865
5866 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5867 fi
5868 fi
5869 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5870 if test -n "$ac_ct_AR"; then
5871 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5872 echo "${ECHO_T}$ac_ct_AR" >&6
5873 else
5874 echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5876 fi
5877
5878 AR=$ac_ct_AR
5879 else
5880 AR="$ac_cv_prog_AR"
5881 fi
5882
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_RANLIB+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 if test -n "$RANLIB"; then
5892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905 done
5906 done
5907
5908 fi
5909 fi
5910 RANLIB=$ac_cv_prog_RANLIB
5911 if test -n "$RANLIB"; then
5912 echo "$as_me:$LINENO: result: $RANLIB" >&5
5913 echo "${ECHO_T}$RANLIB" >&6
5914 else
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919 fi
5920 if test -z "$ac_cv_prog_RANLIB"; then
5921 ac_ct_RANLIB=$RANLIB
5922 # Extract the first word of "ranlib", so it can be a program name with args.
5923 set dummy ranlib; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 if test -n "$ac_ct_RANLIB"; then
5930 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_RANLIB="ranlib"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943 done
5944 done
5945
5946 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5947 fi
5948 fi
5949 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5950 if test -n "$ac_ct_RANLIB"; then
5951 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5952 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5953 else
5954 echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958 RANLIB=$ac_ct_RANLIB
5959 else
5960 RANLIB="$ac_cv_prog_RANLIB"
5961 fi
5962
5963 if test -n "$ac_tool_prefix"; then
5964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5965 set dummy ${ac_tool_prefix}strip; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_STRIP+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 if test -n "$STRIP"; then
5972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987
5988 fi
5989 fi
5990 STRIP=$ac_cv_prog_STRIP
5991 if test -n "$STRIP"; then
5992 echo "$as_me:$LINENO: result: $STRIP" >&5
5993 echo "${ECHO_T}$STRIP" >&6
5994 else
5995 echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6
5997 fi
5998
5999 fi
6000 if test -z "$ac_cv_prog_STRIP"; then
6001 ac_ct_STRIP=$STRIP
6002 # Extract the first word of "strip", so it can be a program name with args.
6003 set dummy strip; ac_word=$2
6004 echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 if test -n "$ac_ct_STRIP"; then
6010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_ac_ct_STRIP="strip"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025
6026 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6027 fi
6028 fi
6029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6030 if test -n "$ac_ct_STRIP"; then
6031 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6032 echo "${ECHO_T}$ac_ct_STRIP" >&6
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6036 fi
6037
6038 STRIP=$ac_ct_STRIP
6039 else
6040 STRIP="$ac_cv_prog_STRIP"
6041 fi
6042
6043
6044 old_CC="$CC"
6045 old_CFLAGS="$CFLAGS"
6046
6047 # Set sane defaults for various variables
6048 test -z "$AR" && AR=ar
6049 test -z "$AR_FLAGS" && AR_FLAGS=cru
6050 test -z "$AS" && AS=as
6051 test -z "$CC" && CC=cc
6052 test -z "$LTCC" && LTCC=$CC
6053 test -z "$DLLTOOL" && DLLTOOL=dlltool
6054 test -z "$LD" && LD=ld
6055 test -z "$LN_S" && LN_S="ln -s"
6056 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6057 test -z "$NM" && NM=nm
6058 test -z "$SED" && SED=sed
6059 test -z "$OBJDUMP" && OBJDUMP=objdump
6060 test -z "$RANLIB" && RANLIB=:
6061 test -z "$STRIP" && STRIP=:
6062 test -z "$ac_objext" && ac_objext=o
6063
6064 # Determine commands to create old-style static archives.
6065 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6066 old_postinstall_cmds='chmod 644 $oldlib'
6067 old_postuninstall_cmds=
6068
6069 if test -n "$RANLIB"; then
6070 case $host_os in
6071 openbsd*)
6072 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6073 ;;
6074 *)
6075 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6076 ;;
6077 esac
6078 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6079 fi
6080
6081 for cc_temp in $compiler""; do
6082 case $cc_temp in
6083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6085 \-*) ;;
6086 *) break;;
6087 esac
6088 done
6089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6090
6091
6092 # Only perform the check for file, if the check method requires it
6093 case $deplibs_check_method in
6094 file_magic*)
6095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6096 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6097 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 case $MAGIC_CMD in
6102 [\\/*] | ?:[\\/]*)
6103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6104 ;;
6105 *)
6106 lt_save_MAGIC_CMD="$MAGIC_CMD"
6107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6109 for ac_dir in $ac_dummy; do
6110 IFS="$lt_save_ifs"
6111 test -z "$ac_dir" && ac_dir=.
6112 if test -f $ac_dir/${ac_tool_prefix}file; then
6113 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6114 if test -n "$file_magic_test_file"; then
6115 case $deplibs_check_method in
6116 "file_magic "*)
6117 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120 $EGREP "$file_magic_regex" > /dev/null; then
6121 :
6122 else
6123 cat <<EOF 1>&2
6124
6125 *** Warning: the command libtool uses to detect shared libraries,
6126 *** $file_magic_cmd, produces output that libtool cannot recognize.
6127 *** The result is that libtool may fail to recognize shared libraries
6128 *** as such. This will affect the creation of libtool libraries that
6129 *** depend on shared libraries, but programs linked with such libtool
6130 *** libraries will work regardless of this problem. Nevertheless, you
6131 *** may want to report the problem to your system manager and/or to
6132 *** bug-libtool@gnu.org
6133
6134 EOF
6135 fi ;;
6136 esac
6137 fi
6138 break
6139 fi
6140 done
6141 IFS="$lt_save_ifs"
6142 MAGIC_CMD="$lt_save_MAGIC_CMD"
6143 ;;
6144 esac
6145 fi
6146
6147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6148 if test -n "$MAGIC_CMD"; then
6149 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6150 echo "${ECHO_T}$MAGIC_CMD" >&6
6151 else
6152 echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6
6154 fi
6155
6156 if test -z "$lt_cv_path_MAGIC_CMD"; then
6157 if test -n "$ac_tool_prefix"; then
6158 echo "$as_me:$LINENO: checking for file" >&5
6159 echo $ECHO_N "checking for file... $ECHO_C" >&6
6160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 case $MAGIC_CMD in
6164 [\\/*] | ?:[\\/]*)
6165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6166 ;;
6167 *)
6168 lt_save_MAGIC_CMD="$MAGIC_CMD"
6169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6171 for ac_dir in $ac_dummy; do
6172 IFS="$lt_save_ifs"
6173 test -z "$ac_dir" && ac_dir=.
6174 if test -f $ac_dir/file; then
6175 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6176 if test -n "$file_magic_test_file"; then
6177 case $deplibs_check_method in
6178 "file_magic "*)
6179 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6182 $EGREP "$file_magic_regex" > /dev/null; then
6183 :
6184 else
6185 cat <<EOF 1>&2
6186
6187 *** Warning: the command libtool uses to detect shared libraries,
6188 *** $file_magic_cmd, produces output that libtool cannot recognize.
6189 *** The result is that libtool may fail to recognize shared libraries
6190 *** as such. This will affect the creation of libtool libraries that
6191 *** depend on shared libraries, but programs linked with such libtool
6192 *** libraries will work regardless of this problem. Nevertheless, you
6193 *** may want to report the problem to your system manager and/or to
6194 *** bug-libtool@gnu.org
6195
6196 EOF
6197 fi ;;
6198 esac
6199 fi
6200 break
6201 fi
6202 done
6203 IFS="$lt_save_ifs"
6204 MAGIC_CMD="$lt_save_MAGIC_CMD"
6205 ;;
6206 esac
6207 fi
6208
6209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6210 if test -n "$MAGIC_CMD"; then
6211 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6212 echo "${ECHO_T}$MAGIC_CMD" >&6
6213 else
6214 echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6
6216 fi
6217
6218 else
6219 MAGIC_CMD=:
6220 fi
6221 fi
6222
6223 fi
6224 ;;
6225 esac
6226
6227 enable_dlopen=no
6228 enable_win32_dll=no
6229
6230 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6231 if test "${enable_libtool_lock+set}" = set; then
6232 enableval="$enable_libtool_lock"
6233
6234 fi;
6235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6236
6237
6238 # Check whether --with-pic or --without-pic was given.
6239 if test "${with_pic+set}" = set; then
6240 withval="$with_pic"
6241 pic_mode="$withval"
6242 else
6243 pic_mode=default
6244 fi;
6245 test -z "$pic_mode" && pic_mode=default
6246
6247 # Use C for the default configuration in the libtool script
6248 tagname=
6249 lt_save_CC="$CC"
6250 ac_ext=c
6251 ac_cpp='$CPP $CPPFLAGS'
6252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6255
6256
6257 # Source file extension for C test sources.
6258 ac_ext=c
6259
6260 # Object file extension for compiled C test sources.
6261 objext=o
6262 objext=$objext
6263
6264 # Code to be used in simple compile tests
6265 lt_simple_compile_test_code="int some_variable = 0;\n"
6266
6267 # Code to be used in simple link tests
6268 lt_simple_link_test_code='int main(){return(0);}\n'
6269
6270
6271 # If no C compiler was specified, use CC.
6272 LTCC=${LTCC-"$CC"}
6273
6274 # Allow CC to be a program name with arguments.
6275 compiler=$CC
6276
6277
6278 # save warnings/boilerplate of simple test code
6279 ac_outfile=conftest.$ac_objext
6280 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6281 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6282 _lt_compiler_boilerplate=`cat conftest.err`
6283 $rm conftest*
6284
6285 ac_outfile=conftest.$ac_objext
6286 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6287 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6288 _lt_linker_boilerplate=`cat conftest.err`
6289 $rm conftest*
6290
6291
6292 #
6293 # Check for any special shared library compilation flags.
6294 #
6295 lt_prog_cc_shlib=
6296 if test "$GCC" = no; then
6297 case $host_os in
6298 sco3.2v5*)
6299 lt_prog_cc_shlib='-belf'
6300 ;;
6301 esac
6302 fi
6303 if test -n "$lt_prog_cc_shlib"; then
6304 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6305 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6306 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6307 else
6308 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6309 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6310 lt_cv_prog_cc_can_build_shared=no
6311 fi
6312 fi
6313
6314
6315 #
6316 # Check to make sure the static flag actually works.
6317 #
6318 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6319 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6320 if test "${lt_prog_compiler_static_works+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 lt_prog_compiler_static_works=no
6324 save_LDFLAGS="$LDFLAGS"
6325 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6326 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6327 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6328 # The compiler can only warn and ignore the option if not recognized
6329 # So say no if there are warnings
6330 if test -s conftest.err; then
6331 # Append any errors to the config.log.
6332 cat conftest.err 1>&5
6333 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6334 $SED '/^$/d' conftest.err >conftest.er2
6335 if diff conftest.exp conftest.er2 >/dev/null; then
6336 lt_prog_compiler_static_works=yes
6337 fi
6338 else
6339 lt_prog_compiler_static_works=yes
6340 fi
6341 fi
6342 $rm conftest*
6343 LDFLAGS="$save_LDFLAGS"
6344
6345 fi
6346 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6347 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6348
6349 if test x"$lt_prog_compiler_static_works" = xyes; then
6350 :
6351 else
6352 lt_prog_compiler_static=
6353 fi
6354
6355
6356
6357
6358 lt_prog_compiler_no_builtin_flag=
6359
6360 if test "$GCC" = yes; then
6361 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6362
6363
6364 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6365 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6366 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 lt_cv_prog_compiler_rtti_exceptions=no
6370 ac_outfile=conftest.$ac_objext
6371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6372 lt_compiler_flag="-fno-rtti -fno-exceptions"
6373 # Insert the option either (1) after the last *FLAGS variable, or
6374 # (2) before a word containing "conftest.", or (3) at the end.
6375 # Note that $ac_compile itself does not contain backslashes and begins
6376 # with a dollar sign (not a hyphen), so the echo should work correctly.
6377 # The option is referenced via a variable to avoid confusing sed.
6378 lt_compile=`echo "$ac_compile" | $SED \
6379 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6381 -e 's:$: $lt_compiler_flag:'`
6382 (eval echo "\"\$as_me:6382: $lt_compile\"" >&5)
6383 (eval "$lt_compile" 2>conftest.err)
6384 ac_status=$?
6385 cat conftest.err >&5
6386 echo "$as_me:6386: \$? = $ac_status" >&5
6387 if (exit $ac_status) && test -s "$ac_outfile"; then
6388 # The compiler can only warn and ignore the option if not recognized
6389 # So say no if there are warnings other than the usual output.
6390 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6391 $SED '/^$/d' conftest.err >conftest.er2
6392 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6393 lt_cv_prog_compiler_rtti_exceptions=yes
6394 fi
6395 fi
6396 $rm conftest*
6397
6398 fi
6399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6400 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6401
6402 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6403 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6404 else
6405 :
6406 fi
6407
6408 fi
6409
6410 lt_prog_compiler_wl=
6411 lt_prog_compiler_pic=
6412 lt_prog_compiler_static=
6413
6414 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6415 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6416
6417 if test "$GCC" = yes; then
6418 lt_prog_compiler_wl='-Wl,'
6419 lt_prog_compiler_static='-static'
6420
6421 case $host_os in
6422 aix*)
6423 # All AIX code is PIC.
6424 if test "$host_cpu" = ia64; then
6425 # AIX 5 now supports IA64 processor
6426 lt_prog_compiler_static='-Bstatic'
6427 fi
6428 ;;
6429
6430 amigaos*)
6431 # FIXME: we need at least 68020 code to build shared libraries, but
6432 # adding the `-m68020' flag to GCC prevents building anything better,
6433 # like `-m68040'.
6434 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6435 ;;
6436
6437 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6438 # PIC is the default for these OSes.
6439 ;;
6440
6441 mingw* | pw32* | os2*)
6442 # This hack is so that the source file can tell whether it is being
6443 # built for inclusion in a dll (and should export symbols for example).
6444 lt_prog_compiler_pic='-DDLL_EXPORT'
6445 ;;
6446
6447 darwin* | rhapsody*)
6448 # PIC is the default on this platform
6449 # Common symbols not allowed in MH_DYLIB files
6450 lt_prog_compiler_pic='-fno-common'
6451 ;;
6452
6453 msdosdjgpp*)
6454 # Just because we use GCC doesn't mean we suddenly get shared libraries
6455 # on systems that don't support them.
6456 lt_prog_compiler_can_build_shared=no
6457 enable_shared=no
6458 ;;
6459
6460 sysv4*MP*)
6461 if test -d /usr/nec; then
6462 lt_prog_compiler_pic=-Kconform_pic
6463 fi
6464 ;;
6465
6466 hpux*)
6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6468 # not for PA HP-UX.
6469 case "$host_cpu" in
6470 hppa*64*|ia64*)
6471 # +Z the default
6472 ;;
6473 *)
6474 lt_prog_compiler_pic='-fPIC'
6475 ;;
6476 esac
6477 ;;
6478
6479 *)
6480 lt_prog_compiler_pic='-fPIC'
6481 ;;
6482 esac
6483 else
6484 # PORTME Check for flag to pass linker flags through the system compiler.
6485 case $host_os in
6486 aix*)
6487 lt_prog_compiler_wl='-Wl,'
6488 if test "$host_cpu" = ia64; then
6489 # AIX 5 now supports IA64 processor
6490 lt_prog_compiler_static='-Bstatic'
6491 else
6492 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6493 fi
6494 ;;
6495 darwin*)
6496 # PIC is the default on this platform
6497 # Common symbols not allowed in MH_DYLIB files
6498 case $cc_basename in
6499 xlc*)
6500 lt_prog_compiler_pic='-qnocommon'
6501 lt_prog_compiler_wl='-Wl,'
6502 ;;
6503 esac
6504 ;;
6505
6506 mingw* | pw32* | os2*)
6507 # This hack is so that the source file can tell whether it is being
6508 # built for inclusion in a dll (and should export symbols for example).
6509 lt_prog_compiler_pic='-DDLL_EXPORT'
6510 ;;
6511
6512 hpux9* | hpux10* | hpux11*)
6513 lt_prog_compiler_wl='-Wl,'
6514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6515 # not for PA HP-UX.
6516 case "$host_cpu" in
6517 hppa*64*|ia64*)
6518 # +Z the default
6519 ;;
6520 *)
6521 lt_prog_compiler_pic='+Z'
6522 ;;
6523 esac
6524 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6525 lt_prog_compiler_static='${wl}-a ${wl}archive'
6526 ;;
6527
6528 irix5* | irix6* | nonstopux*)
6529 lt_prog_compiler_wl='-Wl,'
6530 # PIC (with -KPIC) is the default.
6531 lt_prog_compiler_static='-non_shared'
6532 ;;
6533
6534 newsos6)
6535 lt_prog_compiler_pic='-KPIC'
6536 lt_prog_compiler_static='-Bstatic'
6537 ;;
6538
6539 linux*)
6540 case $cc_basename in
6541 icc* | ecc*)
6542 lt_prog_compiler_wl='-Wl,'
6543 lt_prog_compiler_pic='-KPIC'
6544 lt_prog_compiler_static='-static'
6545 ;;
6546 pgcc* | pgf77* | pgf90*)
6547 # Portland Group compilers (*not* the Pentium gcc compiler,
6548 # which looks to be a dead project)
6549 lt_prog_compiler_wl='-Wl,'
6550 lt_prog_compiler_pic='-fpic'
6551 lt_prog_compiler_static='-static'
6552 ;;
6553 ccc*)
6554 lt_prog_compiler_wl='-Wl,'
6555 # All Alpha code is PIC.
6556 lt_prog_compiler_static='-non_shared'
6557 ;;
6558 esac
6559 ;;
6560
6561 osf3* | osf4* | osf5*)
6562 lt_prog_compiler_wl='-Wl,'
6563 # All OSF/1 code is PIC.
6564 lt_prog_compiler_static='-non_shared'
6565 ;;
6566
6567 sco3.2v5*)
6568 lt_prog_compiler_pic='-Kpic'
6569 lt_prog_compiler_static='-dn'
6570 ;;
6571
6572 solaris*)
6573 lt_prog_compiler_pic='-KPIC'
6574 lt_prog_compiler_static='-Bstatic'
6575 case $cc_basename in
6576 f77* | f90* | f95*)
6577 lt_prog_compiler_wl='-Qoption ld ';;
6578 *)
6579 lt_prog_compiler_wl='-Wl,';;
6580 esac
6581 ;;
6582
6583 sunos4*)
6584 lt_prog_compiler_wl='-Qoption ld '
6585 lt_prog_compiler_pic='-PIC'
6586 lt_prog_compiler_static='-Bstatic'
6587 ;;
6588
6589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6590 lt_prog_compiler_wl='-Wl,'
6591 lt_prog_compiler_pic='-KPIC'
6592 lt_prog_compiler_static='-Bstatic'
6593 ;;
6594
6595 sysv4*MP*)
6596 if test -d /usr/nec ;then
6597 lt_prog_compiler_pic='-Kconform_pic'
6598 lt_prog_compiler_static='-Bstatic'
6599 fi
6600 ;;
6601
6602 unicos*)
6603 lt_prog_compiler_wl='-Wl,'
6604 lt_prog_compiler_can_build_shared=no
6605 ;;
6606
6607 uts4*)
6608 lt_prog_compiler_pic='-pic'
6609 lt_prog_compiler_static='-Bstatic'
6610 ;;
6611
6612 *)
6613 lt_prog_compiler_can_build_shared=no
6614 ;;
6615 esac
6616 fi
6617
6618 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6619 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6620
6621 #
6622 # Check to make sure the PIC flag actually works.
6623 #
6624 if test -n "$lt_prog_compiler_pic"; then
6625
6626 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6627 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6628 if test "${lt_prog_compiler_pic_works+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 lt_prog_compiler_pic_works=no
6632 ac_outfile=conftest.$ac_objext
6633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6634 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6635 # Insert the option either (1) after the last *FLAGS variable, or
6636 # (2) before a word containing "conftest.", or (3) at the end.
6637 # Note that $ac_compile itself does not contain backslashes and begins
6638 # with a dollar sign (not a hyphen), so the echo should work correctly.
6639 # The option is referenced via a variable to avoid confusing sed.
6640 lt_compile=`echo "$ac_compile" | $SED \
6641 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6643 -e 's:$: $lt_compiler_flag:'`
6644 (eval echo "\"\$as_me:6644: $lt_compile\"" >&5)
6645 (eval "$lt_compile" 2>conftest.err)
6646 ac_status=$?
6647 cat conftest.err >&5
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 if (exit $ac_status) && test -s "$ac_outfile"; then
6650 # The compiler can only warn and ignore the option if not recognized
6651 # So say no if there are warnings other than the usual output.
6652 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6653 $SED '/^$/d' conftest.err >conftest.er2
6654 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6655 lt_prog_compiler_pic_works=yes
6656 fi
6657 fi
6658 $rm conftest*
6659
6660 fi
6661 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6662 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6663
6664 if test x"$lt_prog_compiler_pic_works" = xyes; then
6665 case $lt_prog_compiler_pic in
6666 "" | " "*) ;;
6667 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6668 esac
6669 else
6670 lt_prog_compiler_pic=
6671 lt_prog_compiler_can_build_shared=no
6672 fi
6673
6674 fi
6675 case "$host_os" in
6676 # For platforms which do not support PIC, -DPIC is meaningless:
6677 *djgpp*)
6678 lt_prog_compiler_pic=
6679 ;;
6680 *)
6681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6682 ;;
6683 esac
6684
6685 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6686 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6687 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 lt_cv_prog_compiler_c_o=no
6691 $rm -r conftest 2>/dev/null
6692 mkdir conftest
6693 cd conftest
6694 mkdir out
6695 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6696
6697 lt_compiler_flag="-o out/conftest2.$ac_objext"
6698 # Insert the option either (1) after the last *FLAGS variable, or
6699 # (2) before a word containing "conftest.", or (3) at the end.
6700 # Note that $ac_compile itself does not contain backslashes and begins
6701 # with a dollar sign (not a hyphen), so the echo should work correctly.
6702 lt_compile=`echo "$ac_compile" | $SED \
6703 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6705 -e 's:$: $lt_compiler_flag:'`
6706 (eval echo "\"\$as_me:6706: $lt_compile\"" >&5)
6707 (eval "$lt_compile" 2>out/conftest.err)
6708 ac_status=$?
6709 cat out/conftest.err >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6712 then
6713 # The compiler can only warn and ignore the option if not recognized
6714 # So say no if there are warnings
6715 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6716 $SED '/^$/d' out/conftest.err >out/conftest.er2
6717 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6718 lt_cv_prog_compiler_c_o=yes
6719 fi
6720 fi
6721 chmod u+w .
6722 $rm conftest*
6723 # SGI C++ compiler will create directory out/ii_files/ for
6724 # template instantiation
6725 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6726 $rm out/* && rmdir out
6727 cd ..
6728 rmdir conftest
6729 $rm conftest*
6730
6731 fi
6732 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6734
6735
6736 hard_links="nottested"
6737 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6738 # do not overwrite the value of need_locks provided by the user
6739 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6741 hard_links=yes
6742 $rm conftest*
6743 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6744 touch conftest.a
6745 ln conftest.a conftest.b 2>&5 || hard_links=no
6746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6747 echo "$as_me:$LINENO: result: $hard_links" >&5
6748 echo "${ECHO_T}$hard_links" >&6
6749 if test "$hard_links" = no; then
6750 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6752 need_locks=warn
6753 fi
6754 else
6755 need_locks=no
6756 fi
6757
6758 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6760
6761 runpath_var=
6762 allow_undefined_flag=
6763 enable_shared_with_static_runtimes=no
6764 archive_cmds=
6765 archive_expsym_cmds=
6766 old_archive_From_new_cmds=
6767 old_archive_from_expsyms_cmds=
6768 export_dynamic_flag_spec=
6769 whole_archive_flag_spec=
6770 thread_safe_flag_spec=
6771 hardcode_libdir_flag_spec=
6772 hardcode_libdir_flag_spec_ld=
6773 hardcode_libdir_separator=
6774 hardcode_direct=no
6775 hardcode_minus_L=no
6776 hardcode_shlibpath_var=unsupported
6777 link_all_deplibs=unknown
6778 hardcode_automatic=no
6779 module_cmds=
6780 module_expsym_cmds=
6781 always_export_symbols=no
6782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6783 # include_expsyms should be a list of space-separated symbols to be *always*
6784 # included in the symbol list
6785 include_expsyms=
6786 # exclude_expsyms can be an extended regexp of symbols to exclude
6787 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6788 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6789 # as well as any symbol that contains `d'.
6790 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6792 # platforms (ab)use it in PIC code, but their linkers get confused if
6793 # the symbol is explicitly referenced. Since portable code cannot
6794 # rely on this symbol name, it's probably fine to never include it in
6795 # preloaded symbol tables.
6796 extract_expsyms_cmds=
6797 # Just being paranoid about ensuring that cc_basename is set.
6798 for cc_temp in $compiler""; do
6799 case $cc_temp in
6800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6802 \-*) ;;
6803 *) break;;
6804 esac
6805 done
6806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6807
6808 case $host_os in
6809 cygwin* | mingw* | pw32*)
6810 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6811 # When not using gcc, we currently assume that we are using
6812 # Microsoft Visual C++.
6813 if test "$GCC" != yes; then
6814 with_gnu_ld=no
6815 fi
6816 ;;
6817 openbsd*)
6818 with_gnu_ld=no
6819 ;;
6820 esac
6821
6822 ld_shlibs=yes
6823 if test "$with_gnu_ld" = yes; then
6824 # If archive_cmds runs LD, not CC, wlarc should be empty
6825 wlarc='${wl}'
6826
6827 # Set some defaults for GNU ld with shared library support. These
6828 # are reset later if shared libraries are not supported. Putting them
6829 # here allows them to be overridden if necessary.
6830 runpath_var=LD_RUN_PATH
6831 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6832 export_dynamic_flag_spec='${wl}--export-dynamic'
6833 # ancient GNU ld didn't support --whole-archive et. al.
6834 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6836 else
6837 whole_archive_flag_spec=
6838 fi
6839 supports_anon_versioning=no
6840 case `$LD -v 2>/dev/null` in
6841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6844 *\ 2.11.*) ;; # other 2.11 versions
6845 *) supports_anon_versioning=yes ;;
6846 esac
6847
6848 # See if GNU ld supports shared libraries.
6849 case $host_os in
6850 aix3* | aix4* | aix5*)
6851 # On AIX/PPC, the GNU linker is very broken
6852 if test "$host_cpu" != ia64; then
6853 ld_shlibs=no
6854 cat <<EOF 1>&2
6855
6856 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6857 *** to be unable to reliably create shared libraries on AIX.
6858 *** Therefore, libtool is disabling shared libraries support. If you
6859 *** really care for shared libraries, you may want to modify your PATH
6860 *** so that a non-GNU linker is found, and then restart.
6861
6862 EOF
6863 fi
6864 ;;
6865
6866 amigaos*)
6867 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)'
6868 hardcode_libdir_flag_spec='-L$libdir'
6869 hardcode_minus_L=yes
6870
6871 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6872 # that the semantics of dynamic libraries on AmigaOS, at least up
6873 # to version 4, is to share data among multiple programs linked
6874 # with the same dynamic library. Since this doesn't match the
6875 # behavior of shared libraries on other platforms, we can't use
6876 # them.
6877 ld_shlibs=no
6878 ;;
6879
6880 beos*)
6881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6882 allow_undefined_flag=unsupported
6883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6884 # support --undefined. This deserves some investigation. FIXME
6885 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6886 else
6887 ld_shlibs=no
6888 fi
6889 ;;
6890
6891 cygwin* | mingw* | pw32*)
6892 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6893 # as there is no search path for DLLs.
6894 hardcode_libdir_flag_spec='-L$libdir'
6895 allow_undefined_flag=unsupported
6896 always_export_symbols=no
6897 enable_shared_with_static_runtimes=yes
6898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6899
6900 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6902 # If the export-symbols file already is a .def file (1st line
6903 # is EXPORTS), use it as is; otherwise, prepend...
6904 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6905 cp $export_symbols $output_objdir/$soname.def;
6906 else
6907 echo EXPORTS > $output_objdir/$soname.def;
6908 cat $export_symbols >> $output_objdir/$soname.def;
6909 fi~
6910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6911 else
6912 ld_shlibs=no
6913 fi
6914 ;;
6915
6916 linux*)
6917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6918 tmp_addflag=
6919 case $cc_basename,$host_cpu in
6920 pgcc*) # Portland Group C compiler
6921 whole_archive_flag_spec=
6922 ;;
6923 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6924 whole_archive_flag_spec=
6925 tmp_addflag=' -fpic -Mnomain' ;;
6926 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6927 tmp_addflag=' -i_dynamic' ;;
6928 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6929 tmp_addflag=' -i_dynamic -nofor_main' ;;
6930 ifc* | ifort*) # Intel Fortran compiler
6931 tmp_addflag=' -nofor_main' ;;
6932 esac
6933 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934
6935 if test $supports_anon_versioning = yes; then
6936 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6938 $echo "local: *; };" >> $output_objdir/$libname.ver~
6939 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6940 fi
6941 else
6942 ld_shlibs=no
6943 fi
6944 ;;
6945
6946 netbsd*)
6947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6948 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6949 wlarc=
6950 else
6951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6953 fi
6954 ;;
6955
6956 solaris* | sysv5*)
6957 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6958 ld_shlibs=no
6959 cat <<EOF 1>&2
6960
6961 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6962 *** create shared libraries on Solaris systems. Therefore, libtool
6963 *** is disabling shared libraries support. We urge you to upgrade GNU
6964 *** binutils to release 2.9.1 or newer. Another option is to modify
6965 *** your PATH or compiler configuration so that the native linker is
6966 *** used, and then restart.
6967
6968 EOF
6969 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6972 else
6973 ld_shlibs=no
6974 fi
6975 ;;
6976
6977 sunos4*)
6978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6979 wlarc=
6980 hardcode_direct=yes
6981 hardcode_shlibpath_var=no
6982 ;;
6983
6984 *)
6985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6988 else
6989 ld_shlibs=no
6990 fi
6991 ;;
6992 esac
6993
6994 if test "$ld_shlibs" = no; then
6995 runpath_var=
6996 hardcode_libdir_flag_spec=
6997 export_dynamic_flag_spec=
6998 whole_archive_flag_spec=
6999 fi
7000 else
7001 # PORTME fill in a description of your system's linker (not GNU ld)
7002 case $host_os in
7003 aix3*)
7004 allow_undefined_flag=unsupported
7005 always_export_symbols=yes
7006 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'
7007 # Note: this linker hardcodes the directories in LIBPATH if there
7008 # are no directories specified by -L.
7009 hardcode_minus_L=yes
7010 if test "$GCC" = yes && test -z "$link_static_flag"; then
7011 # Neither direct hardcoding nor static linking is supported with a
7012 # broken collect2.
7013 hardcode_direct=unsupported
7014 fi
7015 ;;
7016
7017 aix4* | aix5*)
7018 if test "$host_cpu" = ia64; then
7019 # On IA64, the linker does run time linking by default, so we don't
7020 # have to do anything special.
7021 aix_use_runtimelinking=no
7022 exp_sym_flag='-Bexport'
7023 no_entry_flag=""
7024 else
7025 # If we're using GNU nm, then we don't want the "-C" option.
7026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7028 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'
7029 else
7030 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'
7031 fi
7032 aix_use_runtimelinking=no
7033
7034 # Test if we are trying to use run time linking or normal
7035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7036 # need to do runtime linking.
7037 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7038 for ld_flag in $LDFLAGS; do
7039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7040 aix_use_runtimelinking=yes
7041 break
7042 fi
7043 done
7044 esac
7045
7046 exp_sym_flag='-bexport'
7047 no_entry_flag='-bnoentry'
7048 fi
7049
7050 # When large executables or shared objects are built, AIX ld can
7051 # have problems creating the table of contents. If linking a library
7052 # or program results in "error TOC overflow" add -mminimal-toc to
7053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7055
7056 archive_cmds=''
7057 hardcode_direct=yes
7058 hardcode_libdir_separator=':'
7059 link_all_deplibs=yes
7060
7061 if test "$GCC" = yes; then
7062 case $host_os in aix4.[012]|aix4.[012].*)
7063 # We only want to do this on AIX 4.2 and lower, the check
7064 # below for broken collect2 doesn't work under 4.3+
7065 collect2name=`${CC} -print-prog-name=collect2`
7066 if test -f "$collect2name" && \
7067 strings "$collect2name" | grep resolve_lib_name >/dev/null
7068 then
7069 # We have reworked collect2
7070 hardcode_direct=yes
7071 else
7072 # We have old collect2
7073 hardcode_direct=unsupported
7074 # It fails to find uninstalled libraries when the uninstalled
7075 # path is not listed in the libpath. Setting hardcode_minus_L
7076 # to unsupported forces relinking
7077 hardcode_minus_L=yes
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 hardcode_libdir_separator=
7080 fi
7081 esac
7082 shared_flag='-shared'
7083 if test "$aix_use_runtimelinking" = yes; then
7084 shared_flag="$shared_flag "'${wl}-G'
7085 fi
7086 else
7087 # not using gcc
7088 if test "$host_cpu" = ia64; then
7089 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7090 # chokes on -Wl,-G. The following line is correct:
7091 shared_flag='-G'
7092 else
7093 if test "$aix_use_runtimelinking" = yes; then
7094 shared_flag='${wl}-G'
7095 else
7096 shared_flag='${wl}-bM:SRE'
7097 fi
7098 fi
7099 fi
7100
7101 # It seems that -bexpall does not export symbols beginning with
7102 # underscore (_), so it is better to generate a list of symbols to export.
7103 always_export_symbols=yes
7104 if test "$aix_use_runtimelinking" = yes; then
7105 # Warning - without using the other runtime loading flags (-brtl),
7106 # -berok will link without error, but may produce a broken library.
7107 allow_undefined_flag='-berok'
7108 # Determine the default libpath from the value encoded in an empty executable.
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126 (eval $ac_link) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145
7146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7147 }'`
7148 # Check for a 64-bit object if we didn't find anything.
7149 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; }
7150 }'`; fi
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 fi
7156 rm -f conftest.err conftest.$ac_objext \
7157 conftest$ac_exeext conftest.$ac_ext
7158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7159
7160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7161 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"
7162 else
7163 if test "$host_cpu" = ia64; then
7164 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7165 allow_undefined_flag="-z nodefs"
7166 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"
7167 else
7168 # Determine the default libpath from the value encoded in an empty executable.
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175
7176 int
7177 main ()
7178 {
7179
7180 ;
7181 return 0;
7182 }
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205
7206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7207 }'`
7208 # Check for a 64-bit object if we didn't find anything.
7209 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; }
7210 }'`; fi
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 fi
7216 rm -f conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7219
7220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7221 # Warning - without using the other run time loading flags,
7222 # -berok will link without error, but may produce a broken library.
7223 no_undefined_flag=' ${wl}-bernotok'
7224 allow_undefined_flag=' ${wl}-berok'
7225 # -bexpall does not export symbols beginning with underscore (_)
7226 always_export_symbols=yes
7227 # Exported symbols can be pulled into shared objects from archives
7228 whole_archive_flag_spec=' '
7229 archive_cmds_need_lc=yes
7230 # This is similar to how AIX traditionally builds it's shared libraries.
7231 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'
7232 fi
7233 fi
7234 ;;
7235
7236 amigaos*)
7237 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)'
7238 hardcode_libdir_flag_spec='-L$libdir'
7239 hardcode_minus_L=yes
7240 # see comment about different semantics on the GNU ld section
7241 ld_shlibs=no
7242 ;;
7243
7244 bsdi[45]*)
7245 export_dynamic_flag_spec=-rdynamic
7246 ;;
7247
7248 cygwin* | mingw* | pw32*)
7249 # When not using gcc, we currently assume that we are using
7250 # Microsoft Visual C++.
7251 # hardcode_libdir_flag_spec is actually meaningless, as there is
7252 # no search path for DLLs.
7253 hardcode_libdir_flag_spec=' '
7254 allow_undefined_flag=unsupported
7255 # Tell ltmain to make .lib files, not .a files.
7256 libext=lib
7257 # Tell ltmain to make .dll files, not .so files.
7258 shrext_cmds=".dll"
7259 # FIXME: Setting linknames here is a bad hack.
7260 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7261 # The linker will automatically build a .lib file if we build a DLL.
7262 old_archive_From_new_cmds='true'
7263 # FIXME: Should let the user specify the lib program.
7264 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7265 fix_srcfile_path='`cygpath -w "$srcfile"`'
7266 enable_shared_with_static_runtimes=yes
7267 ;;
7268
7269 darwin* | rhapsody*)
7270 case "$host_os" in
7271 rhapsody* | darwin1.[012])
7272 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7273 ;;
7274 *) # Darwin 1.3 on
7275 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7276 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7277 else
7278 case ${MACOSX_DEPLOYMENT_TARGET} in
7279 10.[012])
7280 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7281 ;;
7282 10.*)
7283 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7284 ;;
7285 esac
7286 fi
7287 ;;
7288 esac
7289 archive_cmds_need_lc=no
7290 hardcode_direct=no
7291 hardcode_automatic=yes
7292 hardcode_shlibpath_var=unsupported
7293 whole_archive_flag_spec=''
7294 link_all_deplibs=yes
7295 if test "$GCC" = yes ; then
7296 output_verbose_link_cmd='echo'
7297 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7298 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7299 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7300 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}'
7301 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}'
7302 else
7303 case $cc_basename in
7304 xlc*)
7305 output_verbose_link_cmd='echo'
7306 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7307 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7309 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7310 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}'
7311 ;;
7312 *)
7313 ld_shlibs=no
7314 ;;
7315 esac
7316 fi
7317 ;;
7318
7319 dgux*)
7320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321 hardcode_libdir_flag_spec='-L$libdir'
7322 hardcode_shlibpath_var=no
7323 ;;
7324
7325 freebsd1*)
7326 ld_shlibs=no
7327 ;;
7328
7329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7330 # support. Future versions do this automatically, but an explicit c++rt0.o
7331 # does not break anything, and helps significantly (at the cost of a little
7332 # extra space).
7333 freebsd2.2*)
7334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7335 hardcode_libdir_flag_spec='-R$libdir'
7336 hardcode_direct=yes
7337 hardcode_shlibpath_var=no
7338 ;;
7339
7340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7341 freebsd2*)
7342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343 hardcode_direct=yes
7344 hardcode_minus_L=yes
7345 hardcode_shlibpath_var=no
7346 ;;
7347
7348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7349 freebsd* | kfreebsd*-gnu | dragonfly*)
7350 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7351 hardcode_libdir_flag_spec='-R$libdir'
7352 hardcode_direct=yes
7353 hardcode_shlibpath_var=no
7354 ;;
7355
7356 hpux9*)
7357 if test "$GCC" = yes; then
7358 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'
7359 else
7360 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'
7361 fi
7362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7363 hardcode_libdir_separator=:
7364 hardcode_direct=yes
7365
7366 # hardcode_minus_L: Not really in the search PATH,
7367 # but as the default location of the library.
7368 hardcode_minus_L=yes
7369 export_dynamic_flag_spec='${wl}-E'
7370 ;;
7371
7372 hpux10* | hpux11*)
7373 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7374 case "$host_cpu" in
7375 hppa*64*|ia64*)
7376 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7377 ;;
7378 *)
7379 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7380 ;;
7381 esac
7382 else
7383 case "$host_cpu" in
7384 hppa*64*|ia64*)
7385 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7386 ;;
7387 *)
7388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7389 ;;
7390 esac
7391 fi
7392 if test "$with_gnu_ld" = no; then
7393 case "$host_cpu" in
7394 hppa*64*)
7395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7396 hardcode_libdir_flag_spec_ld='+b $libdir'
7397 hardcode_libdir_separator=:
7398 hardcode_direct=no
7399 hardcode_shlibpath_var=no
7400 ;;
7401 ia64*)
7402 hardcode_libdir_flag_spec='-L$libdir'
7403 hardcode_direct=no
7404 hardcode_shlibpath_var=no
7405
7406 # hardcode_minus_L: Not really in the search PATH,
7407 # but as the default location of the library.
7408 hardcode_minus_L=yes
7409 ;;
7410 *)
7411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7412 hardcode_libdir_separator=:
7413 hardcode_direct=yes
7414 export_dynamic_flag_spec='${wl}-E'
7415
7416 # hardcode_minus_L: Not really in the search PATH,
7417 # but as the default location of the library.
7418 hardcode_minus_L=yes
7419 ;;
7420 esac
7421 fi
7422 ;;
7423
7424 irix5* | irix6* | nonstopux*)
7425 if test "$GCC" = yes; then
7426 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'
7427 else
7428 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'
7429 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7430 fi
7431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7432 hardcode_libdir_separator=:
7433 link_all_deplibs=yes
7434 ;;
7435
7436 netbsd*)
7437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7439 else
7440 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7441 fi
7442 hardcode_libdir_flag_spec='-R$libdir'
7443 hardcode_direct=yes
7444 hardcode_shlibpath_var=no
7445 ;;
7446
7447 newsos6)
7448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7449 hardcode_direct=yes
7450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7451 hardcode_libdir_separator=:
7452 hardcode_shlibpath_var=no
7453 ;;
7454
7455 openbsd*)
7456 hardcode_direct=yes
7457 hardcode_shlibpath_var=no
7458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7460 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7462 export_dynamic_flag_spec='${wl}-E'
7463 else
7464 case $host_os in
7465 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7467 hardcode_libdir_flag_spec='-R$libdir'
7468 ;;
7469 *)
7470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7472 ;;
7473 esac
7474 fi
7475 ;;
7476
7477 os2*)
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_minus_L=yes
7480 allow_undefined_flag=unsupported
7481 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'
7482 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7483 ;;
7484
7485 osf3*)
7486 if test "$GCC" = yes; then
7487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7488 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'
7489 else
7490 allow_undefined_flag=' -expect_unresolved \*'
7491 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'
7492 fi
7493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7494 hardcode_libdir_separator=:
7495 ;;
7496
7497 osf4* | osf5*) # as osf3* with the addition of -msym flag
7498 if test "$GCC" = yes; then
7499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7500 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'
7501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7502 else
7503 allow_undefined_flag=' -expect_unresolved \*'
7504 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'
7505 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7506 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7507
7508 # Both c and cxx compiler support -rpath directly
7509 hardcode_libdir_flag_spec='-rpath $libdir'
7510 fi
7511 hardcode_libdir_separator=:
7512 ;;
7513
7514 sco3.2v5*)
7515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7516 hardcode_shlibpath_var=no
7517 export_dynamic_flag_spec='${wl}-Bexport'
7518 runpath_var=LD_RUN_PATH
7519 hardcode_runpath_var=yes
7520 ;;
7521
7522 solaris*)
7523 no_undefined_flag=' -z text'
7524 if test "$GCC" = yes; then
7525 wlarc='${wl}'
7526 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7527 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7528 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7529 else
7530 wlarc=''
7531 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7532 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7534 fi
7535 hardcode_libdir_flag_spec='-R$libdir'
7536 hardcode_shlibpath_var=no
7537 case $host_os in
7538 solaris2.[0-5] | solaris2.[0-5].*) ;;
7539 *)
7540 # The compiler driver will combine linker options so we
7541 # cannot just pass the convience library names through
7542 # without $wl, iff we do not link with $LD.
7543 # Luckily, gcc supports the same syntax we need for Sun Studio.
7544 # Supported since Solaris 2.6 (maybe 2.5.1?)
7545 case $wlarc in
7546 '')
7547 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7548 *)
7549 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7550 esac ;;
7551 esac
7552 link_all_deplibs=yes
7553 ;;
7554
7555 sunos4*)
7556 if test "x$host_vendor" = xsequent; then
7557 # Use $CC to link under sequent, because it throws in some extra .o
7558 # files that make .init and .fini sections work.
7559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7560 else
7561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7562 fi
7563 hardcode_libdir_flag_spec='-L$libdir'
7564 hardcode_direct=yes
7565 hardcode_minus_L=yes
7566 hardcode_shlibpath_var=no
7567 ;;
7568
7569 sysv4)
7570 case $host_vendor in
7571 sni)
7572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7573 hardcode_direct=yes # is this really true???
7574 ;;
7575 siemens)
7576 ## LD is ld it makes a PLAMLIB
7577 ## CC just makes a GrossModule.
7578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7579 reload_cmds='$CC -r -o $output$reload_objs'
7580 hardcode_direct=no
7581 ;;
7582 motorola)
7583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7585 ;;
7586 esac
7587 runpath_var='LD_RUN_PATH'
7588 hardcode_shlibpath_var=no
7589 ;;
7590
7591 sysv4.3*)
7592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593 hardcode_shlibpath_var=no
7594 export_dynamic_flag_spec='-Bexport'
7595 ;;
7596
7597 sysv4*MP*)
7598 if test -d /usr/nec; then
7599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_shlibpath_var=no
7601 runpath_var=LD_RUN_PATH
7602 hardcode_runpath_var=yes
7603 ld_shlibs=yes
7604 fi
7605 ;;
7606
7607 sysv4.2uw2*)
7608 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7609 hardcode_direct=yes
7610 hardcode_minus_L=no
7611 hardcode_shlibpath_var=no
7612 hardcode_runpath_var=yes
7613 runpath_var=LD_RUN_PATH
7614 ;;
7615
7616 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7617 no_undefined_flag='${wl}-z ${wl}text'
7618 if test "$GCC" = yes; then
7619 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7620 else
7621 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7622 fi
7623 runpath_var='LD_RUN_PATH'
7624 hardcode_shlibpath_var=no
7625 ;;
7626
7627 sysv5*)
7628 no_undefined_flag=' -z text'
7629 # $CC -shared without GNU ld will not create a library from C++
7630 # object files and a static libstdc++, better avoid it by now
7631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7632 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7634 hardcode_libdir_flag_spec=
7635 hardcode_shlibpath_var=no
7636 runpath_var='LD_RUN_PATH'
7637 ;;
7638
7639 uts4*)
7640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7641 hardcode_libdir_flag_spec='-L$libdir'
7642 hardcode_shlibpath_var=no
7643 ;;
7644
7645 *)
7646 ld_shlibs=no
7647 ;;
7648 esac
7649 fi
7650
7651 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7652 echo "${ECHO_T}$ld_shlibs" >&6
7653 test "$ld_shlibs" = no && can_build_shared=no
7654
7655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7656 if test "$GCC" = yes; then
7657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7658 fi
7659
7660 #
7661 # Do we need to explicitly link libc?
7662 #
7663 case "x$archive_cmds_need_lc" in
7664 x|xyes)
7665 # Assume -lc should be added
7666 archive_cmds_need_lc=yes
7667
7668 if test "$enable_shared" = yes && test "$GCC" = yes; then
7669 case $archive_cmds in
7670 *'~'*)
7671 # FIXME: we may have to deal with multi-command sequences.
7672 ;;
7673 '$CC '*)
7674 # Test whether the compiler implicitly links with -lc since on some
7675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7676 # to ld, don't add -lc before -lgcc.
7677 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7678 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7679 $rm conftest*
7680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7681
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } 2>conftest.err; then
7687 soname=conftest
7688 lib=conftest
7689 libobjs=conftest.$ac_objext
7690 deplibs=
7691 wl=$lt_prog_compiler_wl
7692 compiler_flags=-v
7693 linker_flags=-v
7694 verstring=
7695 output_objdir=.
7696 libname=conftest
7697 lt_save_allow_undefined_flag=$allow_undefined_flag
7698 allow_undefined_flag=
7699 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7700 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }
7704 then
7705 archive_cmds_need_lc=no
7706 else
7707 archive_cmds_need_lc=yes
7708 fi
7709 allow_undefined_flag=$lt_save_allow_undefined_flag
7710 else
7711 cat conftest.err 1>&5
7712 fi
7713 $rm conftest*
7714 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7715 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7716 ;;
7717 esac
7718 fi
7719 ;;
7720 esac
7721
7722 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7723 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7724 library_names_spec=
7725 libname_spec='lib$name'
7726 soname_spec=
7727 shrext_cmds=".so"
7728 postinstall_cmds=
7729 postuninstall_cmds=
7730 finish_cmds=
7731 finish_eval=
7732 shlibpath_var=
7733 shlibpath_overrides_runpath=unknown
7734 version_type=none
7735 dynamic_linker="$host_os ld.so"
7736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7737 if test "$GCC" = yes; then
7738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7739 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7740 # if the path contains ";" then we assume it to be the separator
7741 # otherwise default to the standard path separator (i.e. ":") - it is
7742 # assumed that no part of a normal pathname contains ";" but that should
7743 # okay in the real world where ";" in dirpaths is itself problematic.
7744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7745 else
7746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7747 fi
7748 else
7749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7750 fi
7751 need_lib_prefix=unknown
7752 hardcode_into_libs=no
7753
7754 # when you set need_version to no, make sure it does not cause -set_version
7755 # flags to be left without arguments
7756 need_version=unknown
7757
7758 case $host_os in
7759 aix3*)
7760 version_type=linux
7761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7762 shlibpath_var=LIBPATH
7763
7764 # AIX 3 has no versioning support, so we append a major version to the name.
7765 soname_spec='${libname}${release}${shared_ext}$major'
7766 ;;
7767
7768 aix4* | aix5*)
7769 version_type=linux
7770 need_lib_prefix=no
7771 need_version=no
7772 hardcode_into_libs=yes
7773 if test "$host_cpu" = ia64; then
7774 # AIX 5 supports IA64
7775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7776 shlibpath_var=LD_LIBRARY_PATH
7777 else
7778 # With GCC up to 2.95.x, collect2 would create an import file
7779 # for dependence libraries. The import file would start with
7780 # the line `#! .'. This would cause the generated library to
7781 # depend on `.', always an invalid library. This was fixed in
7782 # development snapshots of GCC prior to 3.0.
7783 case $host_os in
7784 aix4 | aix4.[01] | aix4.[01].*)
7785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7786 echo ' yes '
7787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7788 :
7789 else
7790 can_build_shared=no
7791 fi
7792 ;;
7793 esac
7794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7795 # soname into executable. Probably we can add versioning support to
7796 # collect2, so additional links can be useful in future.
7797 if test "$aix_use_runtimelinking" = yes; then
7798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7799 # instead of lib<name>.a to let people know that these are not
7800 # typical AIX shared libraries.
7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802 else
7803 # We preserve .a as extension for shared libraries through AIX4.2
7804 # and later when we are not doing run time linking.
7805 library_names_spec='${libname}${release}.a $libname.a'
7806 soname_spec='${libname}${release}${shared_ext}$major'
7807 fi
7808 shlibpath_var=LIBPATH
7809 fi
7810 ;;
7811
7812 amigaos*)
7813 library_names_spec='$libname.ixlibrary $libname.a'
7814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7815 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'
7816 ;;
7817
7818 beos*)
7819 library_names_spec='${libname}${shared_ext}'
7820 dynamic_linker="$host_os ld.so"
7821 shlibpath_var=LIBRARY_PATH
7822 ;;
7823
7824 bsdi[45]*)
7825 version_type=linux
7826 need_version=no
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7828 soname_spec='${libname}${release}${shared_ext}$major'
7829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7830 shlibpath_var=LD_LIBRARY_PATH
7831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7833 # the default ld.so.conf also contains /usr/contrib/lib and
7834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7835 # libtool to hard-code these into programs
7836 ;;
7837
7838 cygwin* | mingw* | pw32*)
7839 version_type=windows
7840 shrext_cmds=".dll"
7841 need_version=no
7842 need_lib_prefix=no
7843
7844 case $GCC,$host_os in
7845 yes,cygwin* | yes,mingw* | yes,pw32*)
7846 library_names_spec='$libname.dll.a'
7847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7848 postinstall_cmds='base_file=`basename \${file}`~
7849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7850 dldir=$destdir/`dirname \$dlpath`~
7851 test -d \$dldir || mkdir -p \$dldir~
7852 $install_prog $dir/$dlname \$dldir/$dlname'
7853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7854 dlpath=$dir/\$dldll~
7855 $rm \$dlpath'
7856 shlibpath_overrides_runpath=yes
7857
7858 case $host_os in
7859 cygwin*)
7860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7863 ;;
7864 mingw*)
7865 # MinGW DLLs use traditional 'lib' prefix
7866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7869 # It is most probably a Windows format PATH printed by
7870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7871 # path with ; separators, and with drive letters. We can handle the
7872 # drive letters (cygwin fileutils understands them), so leave them,
7873 # especially as we might pass files found there to a mingw objdump,
7874 # which wouldn't understand a cygwinified path. Ahh.
7875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7876 else
7877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7878 fi
7879 ;;
7880 pw32*)
7881 # pw32 DLLs use 'pw' prefix rather than 'lib'
7882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7883 ;;
7884 esac
7885 ;;
7886
7887 *)
7888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7889 ;;
7890 esac
7891 dynamic_linker='Win32 ld.exe'
7892 # FIXME: first we should search . and the directory the executable is in
7893 shlibpath_var=PATH
7894 ;;
7895
7896 darwin* | rhapsody*)
7897 dynamic_linker="$host_os dyld"
7898 version_type=darwin
7899 need_lib_prefix=no
7900 need_version=no
7901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7902 soname_spec='${libname}${release}${major}$shared_ext'
7903 shlibpath_overrides_runpath=yes
7904 shlibpath_var=DYLD_LIBRARY_PATH
7905 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7906 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7907 if test "$GCC" = yes; then
7908 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"`
7909 else
7910 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7911 fi
7912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7913 ;;
7914
7915 dgux*)
7916 version_type=linux
7917 need_lib_prefix=no
7918 need_version=no
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7920 soname_spec='${libname}${release}${shared_ext}$major'
7921 shlibpath_var=LD_LIBRARY_PATH
7922 ;;
7923
7924 freebsd1*)
7925 dynamic_linker=no
7926 ;;
7927
7928 kfreebsd*-gnu)
7929 version_type=linux
7930 need_lib_prefix=no
7931 need_version=no
7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
7934 shlibpath_var=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath=no
7936 hardcode_into_libs=yes
7937 dynamic_linker='GNU ld.so'
7938 ;;
7939
7940 freebsd* | dragonfly*)
7941 # DragonFly does not have aout. When/if they implement a new
7942 # versioning mechanism, adjust this.
7943 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7944 version_type=freebsd-$objformat
7945 case $version_type in
7946 freebsd-elf*)
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7948 need_version=no
7949 need_lib_prefix=no
7950 ;;
7951 freebsd-*)
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7953 need_version=yes
7954 ;;
7955 esac
7956 shlibpath_var=LD_LIBRARY_PATH
7957 case $host_os in
7958 freebsd2*)
7959 shlibpath_overrides_runpath=yes
7960 ;;
7961 freebsd3.[01]* | freebsdelf3.[01]*)
7962 shlibpath_overrides_runpath=yes
7963 hardcode_into_libs=yes
7964 ;;
7965 *) # from 3.2 on
7966 shlibpath_overrides_runpath=no
7967 hardcode_into_libs=yes
7968 ;;
7969 esac
7970 ;;
7971
7972 gnu*)
7973 version_type=linux
7974 need_lib_prefix=no
7975 need_version=no
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 hardcode_into_libs=yes
7980 ;;
7981
7982 hpux9* | hpux10* | hpux11*)
7983 # Give a soname corresponding to the major version so that dld.sl refuses to
7984 # link against other versions.
7985 version_type=sunos
7986 need_lib_prefix=no
7987 need_version=no
7988 case "$host_cpu" in
7989 ia64*)
7990 shrext_cmds='.so'
7991 hardcode_into_libs=yes
7992 dynamic_linker="$host_os dld.so"
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7996 soname_spec='${libname}${release}${shared_ext}$major'
7997 if test "X$HPUX_IA64_MODE" = X32; then
7998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7999 else
8000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8001 fi
8002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8003 ;;
8004 hppa*64*)
8005 shrext_cmds='.sl'
8006 hardcode_into_libs=yes
8007 dynamic_linker="$host_os dld.sl"
8008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8014 ;;
8015 *)
8016 shrext_cmds='.sl'
8017 dynamic_linker="$host_os dld.sl"
8018 shlibpath_var=SHLIB_PATH
8019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 ;;
8023 esac
8024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8025 postinstall_cmds='chmod 555 $lib'
8026 ;;
8027
8028 irix5* | irix6* | nonstopux*)
8029 case $host_os in
8030 nonstopux*) version_type=nonstopux ;;
8031 *)
8032 if test "$lt_cv_prog_gnu_ld" = yes; then
8033 version_type=linux
8034 else
8035 version_type=irix
8036 fi ;;
8037 esac
8038 need_lib_prefix=no
8039 need_version=no
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8042 case $host_os in
8043 irix5* | nonstopux*)
8044 libsuff= shlibsuff=
8045 ;;
8046 *)
8047 case $LD in # libtool.m4 will add one of these switches to LD
8048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8049 libsuff= shlibsuff= libmagic=32-bit;;
8050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8051 libsuff=32 shlibsuff=N32 libmagic=N32;;
8052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8054 *) libsuff= shlibsuff= libmagic=never-match;;
8055 esac
8056 ;;
8057 esac
8058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8059 shlibpath_overrides_runpath=no
8060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8062 hardcode_into_libs=yes
8063 ;;
8064
8065 # No shared lib support for Linux oldld, aout, or coff.
8066 linux*oldld* | linux*aout* | linux*coff*)
8067 dynamic_linker=no
8068 ;;
8069
8070 # This must be Linux ELF.
8071 linux*)
8072 version_type=linux
8073 need_lib_prefix=no
8074 need_version=no
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8078 shlibpath_var=LD_LIBRARY_PATH
8079 shlibpath_overrides_runpath=no
8080 # This implies no fast_install, which is unacceptable.
8081 # Some rework will be needed to allow for fast_install
8082 # before this can be enabled.
8083 hardcode_into_libs=yes
8084
8085 # find out which ABI we are using
8086 libsuff=
8087 case "$host_cpu" in
8088 x86_64*|s390x*|powerpc64*)
8089 echo '#line 8089 "configure"' > conftest.$ac_ext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; then
8095 case `/usr/bin/file conftest.$ac_objext` in
8096 *64-bit*)
8097 libsuff=64
8098 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8099 ;;
8100 esac
8101 fi
8102 rm -rf conftest*
8103 ;;
8104 esac
8105
8106 # Append ld.so.conf contents to the search path
8107 if test -f /etc/ld.so.conf; then
8108 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8109 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8110 fi
8111
8112 # We used to test for /lib/ld.so.1 and disable shared libraries on
8113 # powerpc, because MkLinux only supported shared libraries with the
8114 # GNU dynamic linker. Since this was broken with cross compilers,
8115 # most powerpc-linux boxes support dynamic linking these days and
8116 # people can always --disable-shared, the test was removed, and we
8117 # assume the GNU/Linux dynamic linker is in use.
8118 dynamic_linker='GNU/Linux ld.so'
8119 ;;
8120
8121 knetbsd*-gnu)
8122 version_type=linux
8123 need_lib_prefix=no
8124 need_version=no
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 shlibpath_var=LD_LIBRARY_PATH
8128 shlibpath_overrides_runpath=no
8129 hardcode_into_libs=yes
8130 dynamic_linker='GNU ld.so'
8131 ;;
8132
8133 netbsd*)
8134 version_type=sunos
8135 need_lib_prefix=no
8136 need_version=no
8137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8140 dynamic_linker='NetBSD (a.out) ld.so'
8141 else
8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 dynamic_linker='NetBSD ld.elf_so'
8145 fi
8146 shlibpath_var=LD_LIBRARY_PATH
8147 shlibpath_overrides_runpath=yes
8148 hardcode_into_libs=yes
8149 ;;
8150
8151 newsos6)
8152 version_type=linux
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 shlibpath_var=LD_LIBRARY_PATH
8155 shlibpath_overrides_runpath=yes
8156 ;;
8157
8158 nto-qnx*)
8159 version_type=linux
8160 need_lib_prefix=no
8161 need_version=no
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 shlibpath_var=LD_LIBRARY_PATH
8165 shlibpath_overrides_runpath=yes
8166 ;;
8167
8168 openbsd*)
8169 version_type=sunos
8170 need_lib_prefix=no
8171 need_version=no
8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8174 shlibpath_var=LD_LIBRARY_PATH
8175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8176 case $host_os in
8177 openbsd2.[89] | openbsd2.[89].*)
8178 shlibpath_overrides_runpath=no
8179 ;;
8180 *)
8181 shlibpath_overrides_runpath=yes
8182 ;;
8183 esac
8184 else
8185 shlibpath_overrides_runpath=yes
8186 fi
8187 ;;
8188
8189 os2*)
8190 libname_spec='$name'
8191 shrext_cmds=".dll"
8192 need_lib_prefix=no
8193 library_names_spec='$libname${shared_ext} $libname.a'
8194 dynamic_linker='OS/2 ld.exe'
8195 shlibpath_var=LIBPATH
8196 ;;
8197
8198 osf3* | osf4* | osf5*)
8199 version_type=osf
8200 need_lib_prefix=no
8201 need_version=no
8202 soname_spec='${libname}${release}${shared_ext}$major'
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8204 shlibpath_var=LD_LIBRARY_PATH
8205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8207 ;;
8208
8209 sco3.2v5*)
8210 version_type=osf
8211 soname_spec='${libname}${release}${shared_ext}$major'
8212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8213 shlibpath_var=LD_LIBRARY_PATH
8214 ;;
8215
8216 solaris*)
8217 version_type=linux
8218 need_lib_prefix=no
8219 need_version=no
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 shlibpath_overrides_runpath=yes
8224 hardcode_into_libs=yes
8225 # ldd complains unless libraries are executable
8226 postinstall_cmds='chmod +x $lib'
8227 ;;
8228
8229 sunos4*)
8230 version_type=sunos
8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8233 shlibpath_var=LD_LIBRARY_PATH
8234 shlibpath_overrides_runpath=yes
8235 if test "$with_gnu_ld" = yes; then
8236 need_lib_prefix=no
8237 fi
8238 need_version=yes
8239 ;;
8240
8241 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8242 version_type=linux
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 soname_spec='${libname}${release}${shared_ext}$major'
8245 shlibpath_var=LD_LIBRARY_PATH
8246 case $host_vendor in
8247 sni)
8248 shlibpath_overrides_runpath=no
8249 need_lib_prefix=no
8250 export_dynamic_flag_spec='${wl}-Blargedynsym'
8251 runpath_var=LD_RUN_PATH
8252 ;;
8253 siemens)
8254 need_lib_prefix=no
8255 ;;
8256 motorola)
8257 need_lib_prefix=no
8258 need_version=no
8259 shlibpath_overrides_runpath=no
8260 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8261 ;;
8262 esac
8263 ;;
8264
8265 sysv4*MP*)
8266 if test -d /usr/nec ;then
8267 version_type=linux
8268 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8269 soname_spec='$libname${shared_ext}.$major'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 fi
8272 ;;
8273
8274 uts4*)
8275 version_type=linux
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8277 soname_spec='${libname}${release}${shared_ext}$major'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 ;;
8280
8281 *)
8282 dynamic_linker=no
8283 ;;
8284 esac
8285 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8286 echo "${ECHO_T}$dynamic_linker" >&6
8287 test "$dynamic_linker" = no && can_build_shared=no
8288
8289 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8291 hardcode_action=
8292 if test -n "$hardcode_libdir_flag_spec" || \
8293 test -n "$runpath_var" || \
8294 test "X$hardcode_automatic" = "Xyes" ; then
8295
8296 # We can hardcode non-existant directories.
8297 if test "$hardcode_direct" != no &&
8298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8299 # have to relink, otherwise we might link with an installed library
8300 # when we should be linking with a yet-to-be-installed one
8301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8302 test "$hardcode_minus_L" != no; then
8303 # Linking always hardcodes the temporary library directory.
8304 hardcode_action=relink
8305 else
8306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8307 hardcode_action=immediate
8308 fi
8309 else
8310 # We cannot hardcode anything, or else we can only hardcode existing
8311 # directories.
8312 hardcode_action=unsupported
8313 fi
8314 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8315 echo "${ECHO_T}$hardcode_action" >&6
8316
8317 if test "$hardcode_action" = relink; then
8318 # Fast installation is not supported
8319 enable_fast_install=no
8320 elif test "$shlibpath_overrides_runpath" = yes ||
8321 test "$enable_shared" = no; then
8322 # Fast installation is not necessary
8323 enable_fast_install=needless
8324 fi
8325
8326 striplib=
8327 old_striplib=
8328 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8329 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8330 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8333 echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8335 else
8336 # FIXME - insert some real tests, host_os isn't really good enough
8337 case $host_os in
8338 darwin*)
8339 if test -n "$STRIP" ; then
8340 striplib="$STRIP -x"
8341 echo "$as_me:$LINENO: result: yes" >&5
8342 echo "${ECHO_T}yes" >&6
8343 else
8344 echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6
8346 fi
8347 ;;
8348 *)
8349 echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6
8351 ;;
8352 esac
8353 fi
8354
8355 if test "x$enable_dlopen" != xyes; then
8356 enable_dlopen=unknown
8357 enable_dlopen_self=unknown
8358 enable_dlopen_self_static=unknown
8359 else
8360 lt_cv_dlopen=no
8361 lt_cv_dlopen_libs=
8362
8363 case $host_os in
8364 beos*)
8365 lt_cv_dlopen="load_add_on"
8366 lt_cv_dlopen_libs=
8367 lt_cv_dlopen_self=yes
8368 ;;
8369
8370 mingw* | pw32*)
8371 lt_cv_dlopen="LoadLibrary"
8372 lt_cv_dlopen_libs=
8373 ;;
8374
8375 cygwin*)
8376 lt_cv_dlopen="dlopen"
8377 lt_cv_dlopen_libs=
8378 ;;
8379
8380 darwin*)
8381 # if libdl is installed we need to link against it
8382 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8383 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8384 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 ac_check_lib_save_LIBS=$LIBS
8388 LIBS="-ldl $LIBS"
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395
8396 /* Override any gcc2 internal prototype to avoid an error. */
8397 #ifdef __cplusplus
8398 extern "C"
8399 #endif
8400 /* We use char because int might match the return type of a gcc2
8401 builtin and then its argument prototype would still apply. */
8402 char dlopen ();
8403 int
8404 main ()
8405 {
8406 dlopen ();
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413 (eval $ac_link) 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_dl_dlopen=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_lib_dl_dlopen=no
8438 fi
8439 rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8444 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8445 if test $ac_cv_lib_dl_dlopen = yes; then
8446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8447 else
8448
8449 lt_cv_dlopen="dyld"
8450 lt_cv_dlopen_libs=
8451 lt_cv_dlopen_self=yes
8452
8453 fi
8454
8455 ;;
8456
8457 *)
8458 echo "$as_me:$LINENO: checking for shl_load" >&5
8459 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8460 if test "${ac_cv_func_shl_load+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h. */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8471 #define shl_load innocuous_shl_load
8472
8473 /* System header to define __stub macros and hopefully few prototypes,
8474 which can conflict with char shl_load (); below.
8475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8476 <limits.h> exists even on freestanding compilers. */
8477
8478 #ifdef __STDC__
8479 # include <limits.h>
8480 #else
8481 # include <assert.h>
8482 #endif
8483
8484 #undef shl_load
8485
8486 /* Override any gcc2 internal prototype to avoid an error. */
8487 #ifdef __cplusplus
8488 extern "C"
8489 {
8490 #endif
8491 /* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
8493 char shl_load ();
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8498 choke me
8499 #else
8500 char (*f) () = shl_load;
8501 #endif
8502 #ifdef __cplusplus
8503 }
8504 #endif
8505
8506 int
8507 main ()
8508 {
8509 return f != shl_load;
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest$ac_exeext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_func_shl_load=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_cv_func_shl_load=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8546 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8547 if test $ac_cv_func_shl_load = yes; then
8548 lt_cv_dlopen="shl_load"
8549 else
8550 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8551 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8552 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 ac_check_lib_save_LIBS=$LIBS
8556 LIBS="-ldld $LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char shl_load ();
8571 int
8572 main ()
8573 {
8574 shl_load ();
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_lib_dld_shl_load=yes
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 ac_cv_lib_dld_shl_load=no
8606 fi
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8610 fi
8611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8613 if test $ac_cv_lib_dld_shl_load = yes; then
8614 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8615 else
8616 echo "$as_me:$LINENO: checking for dlopen" >&5
8617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8618 if test "${ac_cv_func_dlopen+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8629 #define dlopen innocuous_dlopen
8630
8631 /* System header to define __stub macros and hopefully few prototypes,
8632 which can conflict with char dlopen (); below.
8633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634 <limits.h> exists even on freestanding compilers. */
8635
8636 #ifdef __STDC__
8637 # include <limits.h>
8638 #else
8639 # include <assert.h>
8640 #endif
8641
8642 #undef dlopen
8643
8644 /* Override any gcc2 internal prototype to avoid an error. */
8645 #ifdef __cplusplus
8646 extern "C"
8647 {
8648 #endif
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8651 char dlopen ();
8652 /* The GNU C library defines this for functions which it implements
8653 to always fail with ENOSYS. Some functions are actually named
8654 something starting with __ and the normal name is an alias. */
8655 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8656 choke me
8657 #else
8658 char (*f) () = dlopen;
8659 #endif
8660 #ifdef __cplusplus
8661 }
8662 #endif
8663
8664 int
8665 main ()
8666 {
8667 return f != dlopen;
8668 ;
8669 return 0;
8670 }
8671 _ACEOF
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_func_dlopen=yes
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_func_dlopen=no
8699 fi
8700 rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 fi
8703 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8705 if test $ac_cv_func_dlopen = yes; then
8706 lt_cv_dlopen="dlopen"
8707 else
8708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713 ac_check_lib_save_LIBS=$LIBS
8714 LIBS="-ldl $LIBS"
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721
8722 /* Override any gcc2 internal prototype to avoid an error. */
8723 #ifdef __cplusplus
8724 extern "C"
8725 #endif
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8728 char dlopen ();
8729 int
8730 main ()
8731 {
8732 dlopen ();
8733 ;
8734 return 0;
8735 }
8736 _ACEOF
8737 rm -f conftest.$ac_objext conftest$ac_exeext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8739 (eval $ac_link) 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; } &&
8752 { ac_try='test -s conftest$ac_exeext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_lib_dl_dlopen=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_cv_lib_dl_dlopen=no
8764 fi
8765 rm -f conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8768 fi
8769 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8770 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8771 if test $ac_cv_lib_dl_dlopen = yes; then
8772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8773 else
8774 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8775 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8776 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 ac_check_lib_save_LIBS=$LIBS
8780 LIBS="-lsvld $LIBS"
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787
8788 /* Override any gcc2 internal prototype to avoid an error. */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8794 char dlopen ();
8795 int
8796 main ()
8797 {
8798 dlopen ();
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 (eval $ac_try) 2>&5
8821 ac_status=$?
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_lib_svld_dlopen=yes
8825 else
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ac_cv_lib_svld_dlopen=no
8830 fi
8831 rm -f conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8834 fi
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8836 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8837 if test $ac_cv_lib_svld_dlopen = yes; then
8838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8839 else
8840 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8841 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-ldld $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char dld_link ();
8861 int
8862 main ()
8863 {
8864 dld_link ();
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_lib_dld_dld_link=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_cv_lib_dld_dld_link=no
8896 fi
8897 rm -f conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 LIBS=$ac_check_lib_save_LIBS
8900 fi
8901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8902 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8903 if test $ac_cv_lib_dld_dld_link = yes; then
8904 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8905 fi
8906
8907
8908 fi
8909
8910
8911 fi
8912
8913
8914 fi
8915
8916
8917 fi
8918
8919
8920 fi
8921
8922 ;;
8923 esac
8924
8925 if test "x$lt_cv_dlopen" != xno; then
8926 enable_dlopen=yes
8927 else
8928 enable_dlopen=no
8929 fi
8930
8931 case $lt_cv_dlopen in
8932 dlopen)
8933 save_CPPFLAGS="$CPPFLAGS"
8934 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8935
8936 save_LDFLAGS="$LDFLAGS"
8937 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8938
8939 save_LIBS="$LIBS"
8940 LIBS="$lt_cv_dlopen_libs $LIBS"
8941
8942 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8943 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8944 if test "${lt_cv_dlopen_self+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 if test "$cross_compiling" = yes; then :
8948 lt_cv_dlopen_self=cross
8949 else
8950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8951 lt_status=$lt_dlunknown
8952 cat > conftest.$ac_ext <<EOF
8953 #line 8953 "configure"
8954 #include "confdefs.h"
8955
8956 #if HAVE_DLFCN_H
8957 #include <dlfcn.h>
8958 #endif
8959
8960 #include <stdio.h>
8961
8962 #ifdef RTLD_GLOBAL
8963 # define LT_DLGLOBAL RTLD_GLOBAL
8964 #else
8965 # ifdef DL_GLOBAL
8966 # define LT_DLGLOBAL DL_GLOBAL
8967 # else
8968 # define LT_DLGLOBAL 0
8969 # endif
8970 #endif
8971
8972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8973 find out it does not work in some platform. */
8974 #ifndef LT_DLLAZY_OR_NOW
8975 # ifdef RTLD_LAZY
8976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8977 # else
8978 # ifdef DL_LAZY
8979 # define LT_DLLAZY_OR_NOW DL_LAZY
8980 # else
8981 # ifdef RTLD_NOW
8982 # define LT_DLLAZY_OR_NOW RTLD_NOW
8983 # else
8984 # ifdef DL_NOW
8985 # define LT_DLLAZY_OR_NOW DL_NOW
8986 # else
8987 # define LT_DLLAZY_OR_NOW 0
8988 # endif
8989 # endif
8990 # endif
8991 # endif
8992 #endif
8993
8994 #ifdef __cplusplus
8995 extern "C" void exit (int);
8996 #endif
8997
8998 void fnord() { int i=42;}
8999 int main ()
9000 {
9001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9002 int status = $lt_dlunknown;
9003
9004 if (self)
9005 {
9006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9007 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9008 /* dlclose (self); */
9009 }
9010
9011 exit (status);
9012 }
9013 EOF
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9019 (./conftest; exit; ) 2>/dev/null
9020 lt_status=$?
9021 case x$lt_status in
9022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9024 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9025 esac
9026 else :
9027 # compilation failed
9028 lt_cv_dlopen_self=no
9029 fi
9030 fi
9031 rm -fr conftest*
9032
9033
9034 fi
9035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9037
9038 if test "x$lt_cv_dlopen_self" = xyes; then
9039 LDFLAGS="$LDFLAGS $link_static_flag"
9040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9042 if test "${lt_cv_dlopen_self_static+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 if test "$cross_compiling" = yes; then :
9046 lt_cv_dlopen_self_static=cross
9047 else
9048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9049 lt_status=$lt_dlunknown
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9053
9054 #if HAVE_DLFCN_H
9055 #include <dlfcn.h>
9056 #endif
9057
9058 #include <stdio.h>
9059
9060 #ifdef RTLD_GLOBAL
9061 # define LT_DLGLOBAL RTLD_GLOBAL
9062 #else
9063 # ifdef DL_GLOBAL
9064 # define LT_DLGLOBAL DL_GLOBAL
9065 # else
9066 # define LT_DLGLOBAL 0
9067 # endif
9068 #endif
9069
9070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9071 find out it does not work in some platform. */
9072 #ifndef LT_DLLAZY_OR_NOW
9073 # ifdef RTLD_LAZY
9074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9075 # else
9076 # ifdef DL_LAZY
9077 # define LT_DLLAZY_OR_NOW DL_LAZY
9078 # else
9079 # ifdef RTLD_NOW
9080 # define LT_DLLAZY_OR_NOW RTLD_NOW
9081 # else
9082 # ifdef DL_NOW
9083 # define LT_DLLAZY_OR_NOW DL_NOW
9084 # else
9085 # define LT_DLLAZY_OR_NOW 0
9086 # endif
9087 # endif
9088 # endif
9089 # endif
9090 #endif
9091
9092 #ifdef __cplusplus
9093 extern "C" void exit (int);
9094 #endif
9095
9096 void fnord() { int i=42;}
9097 int main ()
9098 {
9099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9100 int status = $lt_dlunknown;
9101
9102 if (self)
9103 {
9104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9106 /* dlclose (self); */
9107 }
9108
9109 exit (status);
9110 }
9111 EOF
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9117 (./conftest; exit; ) 2>/dev/null
9118 lt_status=$?
9119 case x$lt_status in
9120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9122 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9123 esac
9124 else :
9125 # compilation failed
9126 lt_cv_dlopen_self_static=no
9127 fi
9128 fi
9129 rm -fr conftest*
9130
9131
9132 fi
9133 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9134 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9135 fi
9136
9137 CPPFLAGS="$save_CPPFLAGS"
9138 LDFLAGS="$save_LDFLAGS"
9139 LIBS="$save_LIBS"
9140 ;;
9141 esac
9142
9143 case $lt_cv_dlopen_self in
9144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9145 *) enable_dlopen_self=unknown ;;
9146 esac
9147
9148 case $lt_cv_dlopen_self_static in
9149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9150 *) enable_dlopen_self_static=unknown ;;
9151 esac
9152 fi
9153
9154
9155 # Report which librarie types wil actually be built
9156 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9157 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9158 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9159 echo "${ECHO_T}$can_build_shared" >&6
9160
9161 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9162 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9163 test "$can_build_shared" = "no" && enable_shared=no
9164
9165 # On AIX, shared libraries and static libraries use the same namespace, and
9166 # are all built from PIC.
9167 case "$host_os" in
9168 aix3*)
9169 test "$enable_shared" = yes && enable_static=no
9170 if test -n "$RANLIB"; then
9171 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9172 postinstall_cmds='$RANLIB $lib'
9173 fi
9174 ;;
9175
9176 aix4* | aix5*)
9177 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9178 test "$enable_shared" = yes && enable_static=no
9179 fi
9180 ;;
9181 esac
9182 echo "$as_me:$LINENO: result: $enable_shared" >&5
9183 echo "${ECHO_T}$enable_shared" >&6
9184
9185 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9186 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9187 # Make sure either enable_shared or enable_static is yes.
9188 test "$enable_shared" = yes || enable_static=yes
9189 echo "$as_me:$LINENO: result: $enable_static" >&5
9190 echo "${ECHO_T}$enable_static" >&6
9191
9192 # The else clause should only fire when bootstrapping the
9193 # libtool distribution, otherwise you forgot to ship ltmain.sh
9194 # with your package, and you will get complaints that there are
9195 # no rules to generate ltmain.sh.
9196 if test -f "$ltmain"; then
9197 # See if we are running on zsh, and set the options which allow our commands through
9198 # without removal of \ escapes.
9199 if test -n "${ZSH_VERSION+set}" ; then
9200 setopt NO_GLOB_SUBST
9201 fi
9202 # Now quote all the things that may contain metacharacters while being
9203 # careful not to overquote the AC_SUBSTed values. We take copies of the
9204 # variables and quote the copies for generation of the libtool script.
9205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9206 SED SHELL STRIP \
9207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9209 deplibs_check_method reload_flag reload_cmds need_locks \
9210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9211 lt_cv_sys_global_symbol_to_c_name_address \
9212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9213 old_postinstall_cmds old_postuninstall_cmds \
9214 compiler \
9215 CC \
9216 LD \
9217 lt_prog_compiler_wl \
9218 lt_prog_compiler_pic \
9219 lt_prog_compiler_static \
9220 lt_prog_compiler_no_builtin_flag \
9221 export_dynamic_flag_spec \
9222 thread_safe_flag_spec \
9223 whole_archive_flag_spec \
9224 enable_shared_with_static_runtimes \
9225 old_archive_cmds \
9226 old_archive_from_new_cmds \
9227 predep_objects \
9228 postdep_objects \
9229 predeps \
9230 postdeps \
9231 compiler_lib_search_path \
9232 archive_cmds \
9233 archive_expsym_cmds \
9234 postinstall_cmds \
9235 postuninstall_cmds \
9236 old_archive_from_expsyms_cmds \
9237 allow_undefined_flag \
9238 no_undefined_flag \
9239 export_symbols_cmds \
9240 hardcode_libdir_flag_spec \
9241 hardcode_libdir_flag_spec_ld \
9242 hardcode_libdir_separator \
9243 hardcode_automatic \
9244 module_cmds \
9245 module_expsym_cmds \
9246 lt_cv_prog_compiler_c_o \
9247 exclude_expsyms \
9248 include_expsyms; do
9249
9250 case $var in
9251 old_archive_cmds | \
9252 old_archive_from_new_cmds | \
9253 archive_cmds | \
9254 archive_expsym_cmds | \
9255 module_cmds | \
9256 module_expsym_cmds | \
9257 old_archive_from_expsyms_cmds | \
9258 export_symbols_cmds | \
9259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9260 postinstall_cmds | postuninstall_cmds | \
9261 old_postinstall_cmds | old_postuninstall_cmds | \
9262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9263 # Double-quote double-evaled strings.
9264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9265 ;;
9266 *)
9267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9268 ;;
9269 esac
9270 done
9271
9272 case $lt_echo in
9273 *'\$0 --fallback-echo"')
9274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9275 ;;
9276 esac
9277
9278 cfgfile="${ofile}T"
9279 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9280 $rm -f "$cfgfile"
9281 { echo "$as_me:$LINENO: creating $ofile" >&5
9282 echo "$as_me: creating $ofile" >&6;}
9283
9284 cat <<__EOF__ >> "$cfgfile"
9285 #! $SHELL
9286
9287 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9288 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9290 #
9291 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9292 # Free Software Foundation, Inc.
9293 #
9294 # This file is part of GNU Libtool:
9295 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9296 #
9297 # This program is free software; you can redistribute it and/or modify
9298 # it under the terms of the GNU General Public License as published by
9299 # the Free Software Foundation; either version 2 of the License, or
9300 # (at your option) any later version.
9301 #
9302 # This program is distributed in the hope that it will be useful, but
9303 # WITHOUT ANY WARRANTY; without even the implied warranty of
9304 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9305 # General Public License for more details.
9306 #
9307 # You should have received a copy of the GNU General Public License
9308 # along with this program; if not, write to the Free Software
9309 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9310 #
9311 # As a special exception to the GNU General Public License, if you
9312 # distribute this file as part of a program that contains a
9313 # configuration script generated by Autoconf, you may include it under
9314 # the same distribution terms that you use for the rest of that program.
9315
9316 # A sed program that does not truncate output.
9317 SED=$lt_SED
9318
9319 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9320 Xsed="$SED -e 1s/^X//"
9321
9322 # The HP-UX ksh and POSIX shell print the target directory to stdout
9323 # if CDPATH is set.
9324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9325
9326 # The names of the tagged configurations supported by this script.
9327 available_tags=
9328
9329 # ### BEGIN LIBTOOL CONFIG
9330
9331 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9332
9333 # Shell to use when invoking shell scripts.
9334 SHELL=$lt_SHELL
9335
9336 # Whether or not to build shared libraries.
9337 build_libtool_libs=$enable_shared
9338
9339 # Whether or not to build static libraries.
9340 build_old_libs=$enable_static
9341
9342 # Whether or not to add -lc for building shared libraries.
9343 build_libtool_need_lc=$archive_cmds_need_lc
9344
9345 # Whether or not to disallow shared libs when runtime libs are static
9346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9347
9348 # Whether or not to optimize for fast installation.
9349 fast_install=$enable_fast_install
9350
9351 # The host system.
9352 host_alias=$host_alias
9353 host=$host
9354 host_os=$host_os
9355
9356 # The build system.
9357 build_alias=$build_alias
9358 build=$build
9359 build_os=$build_os
9360
9361 # An echo program that does not interpret backslashes.
9362 echo=$lt_echo
9363
9364 # The archiver.
9365 AR=$lt_AR
9366 AR_FLAGS=$lt_AR_FLAGS
9367
9368 # A C compiler.
9369 LTCC=$lt_LTCC
9370
9371 # A language-specific compiler.
9372 CC=$lt_compiler
9373
9374 # Is the compiler the GNU C compiler?
9375 with_gcc=$GCC
9376
9377 # An ERE matcher.
9378 EGREP=$lt_EGREP
9379
9380 # The linker used to build libraries.
9381 LD=$lt_LD
9382
9383 # Whether we need hard or soft links.
9384 LN_S=$lt_LN_S
9385
9386 # A BSD-compatible nm program.
9387 NM=$lt_NM
9388
9389 # A symbol stripping program
9390 STRIP=$lt_STRIP
9391
9392 # Used to examine libraries when file_magic_cmd begins "file"
9393 MAGIC_CMD=$MAGIC_CMD
9394
9395 # Used on cygwin: DLL creation program.
9396 DLLTOOL="$DLLTOOL"
9397
9398 # Used on cygwin: object dumper.
9399 OBJDUMP="$OBJDUMP"
9400
9401 # Used on cygwin: assembler.
9402 AS="$AS"
9403
9404 # The name of the directory that contains temporary libtool files.
9405 objdir=$objdir
9406
9407 # How to create reloadable object files.
9408 reload_flag=$lt_reload_flag
9409 reload_cmds=$lt_reload_cmds
9410
9411 # How to pass a linker flag through the compiler.
9412 wl=$lt_lt_prog_compiler_wl
9413
9414 # Object file suffix (normally "o").
9415 objext="$ac_objext"
9416
9417 # Old archive suffix (normally "a").
9418 libext="$libext"
9419
9420 # Shared library suffix (normally ".so").
9421 shrext_cmds='$shrext_cmds'
9422
9423 # Executable file suffix (normally "").
9424 exeext="$exeext"
9425
9426 # Additional compiler flags for building library objects.
9427 pic_flag=$lt_lt_prog_compiler_pic
9428 pic_mode=$pic_mode
9429
9430 # What is the maximum length of a command?
9431 max_cmd_len=$lt_cv_sys_max_cmd_len
9432
9433 # Does compiler simultaneously support -c and -o options?
9434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9435
9436 # Must we lock files when doing compilation?
9437 need_locks=$lt_need_locks
9438
9439 # Do we need the lib prefix for modules?
9440 need_lib_prefix=$need_lib_prefix
9441
9442 # Do we need a version for libraries?
9443 need_version=$need_version
9444
9445 # Whether dlopen is supported.
9446 dlopen_support=$enable_dlopen
9447
9448 # Whether dlopen of programs is supported.
9449 dlopen_self=$enable_dlopen_self
9450
9451 # Whether dlopen of statically linked programs is supported.
9452 dlopen_self_static=$enable_dlopen_self_static
9453
9454 # Compiler flag to prevent dynamic linking.
9455 link_static_flag=$lt_lt_prog_compiler_static
9456
9457 # Compiler flag to turn off builtin functions.
9458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9459
9460 # Compiler flag to allow reflexive dlopens.
9461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9462
9463 # Compiler flag to generate shared objects directly from archives.
9464 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9465
9466 # Compiler flag to generate thread-safe objects.
9467 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9468
9469 # Library versioning type.
9470 version_type=$version_type
9471
9472 # Format of library name prefix.
9473 libname_spec=$lt_libname_spec
9474
9475 # List of archive names. First name is the real one, the rest are links.
9476 # The last name is the one that the linker finds with -lNAME.
9477 library_names_spec=$lt_library_names_spec
9478
9479 # The coded name of the library, if different from the real name.
9480 soname_spec=$lt_soname_spec
9481
9482 # Commands used to build and install an old-style archive.
9483 RANLIB=$lt_RANLIB
9484 old_archive_cmds=$lt_old_archive_cmds
9485 old_postinstall_cmds=$lt_old_postinstall_cmds
9486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9487
9488 # Create an old-style archive from a shared archive.
9489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9490
9491 # Create a temporary old-style archive to link instead of a shared archive.
9492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9493
9494 # Commands used to build and install a shared archive.
9495 archive_cmds=$lt_archive_cmds
9496 archive_expsym_cmds=$lt_archive_expsym_cmds
9497 postinstall_cmds=$lt_postinstall_cmds
9498 postuninstall_cmds=$lt_postuninstall_cmds
9499
9500 # Commands used to build a loadable module (assumed same as above if empty)
9501 module_cmds=$lt_module_cmds
9502 module_expsym_cmds=$lt_module_expsym_cmds
9503
9504 # Commands to strip libraries.
9505 old_striplib=$lt_old_striplib
9506 striplib=$lt_striplib
9507
9508 # Dependencies to place before the objects being linked to create a
9509 # shared library.
9510 predep_objects=$lt_predep_objects
9511
9512 # Dependencies to place after the objects being linked to create a
9513 # shared library.
9514 postdep_objects=$lt_postdep_objects
9515
9516 # Dependencies to place before the objects being linked to create a
9517 # shared library.
9518 predeps=$lt_predeps
9519
9520 # Dependencies to place after the objects being linked to create a
9521 # shared library.
9522 postdeps=$lt_postdeps
9523
9524 # The library search path used internally by the compiler when linking
9525 # a shared library.
9526 compiler_lib_search_path=$lt_compiler_lib_search_path
9527
9528 # Method to check whether dependent libraries are shared objects.
9529 deplibs_check_method=$lt_deplibs_check_method
9530
9531 # Command to use when deplibs_check_method == file_magic.
9532 file_magic_cmd=$lt_file_magic_cmd
9533
9534 # Flag that allows shared libraries with undefined symbols to be built.
9535 allow_undefined_flag=$lt_allow_undefined_flag
9536
9537 # Flag that forces no undefined symbols.
9538 no_undefined_flag=$lt_no_undefined_flag
9539
9540 # Commands used to finish a libtool library installation in a directory.
9541 finish_cmds=$lt_finish_cmds
9542
9543 # Same as above, but a single script fragment to be evaled but not shown.
9544 finish_eval=$lt_finish_eval
9545
9546 # Take the output of nm and produce a listing of raw symbols and C names.
9547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9548
9549 # Transform the output of nm in a proper C declaration
9550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9551
9552 # Transform the output of nm in a C name address pair
9553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9554
9555 # This is the shared library runtime path variable.
9556 runpath_var=$runpath_var
9557
9558 # This is the shared library path variable.
9559 shlibpath_var=$shlibpath_var
9560
9561 # Is shlibpath searched before the hard-coded library search path?
9562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9563
9564 # How to hardcode a shared library path into an executable.
9565 hardcode_action=$hardcode_action
9566
9567 # Whether we should hardcode library paths into libraries.
9568 hardcode_into_libs=$hardcode_into_libs
9569
9570 # Flag to hardcode \$libdir into a binary during linking.
9571 # This must work even if \$libdir does not exist.
9572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9573
9574 # If ld is used when linking, flag to hardcode \$libdir into
9575 # a binary during linking. This must work even if \$libdir does
9576 # not exist.
9577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9578
9579 # Whether we need a single -rpath flag with a separated argument.
9580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9581
9582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9583 # resulting binary.
9584 hardcode_direct=$hardcode_direct
9585
9586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9587 # resulting binary.
9588 hardcode_minus_L=$hardcode_minus_L
9589
9590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9591 # the resulting binary.
9592 hardcode_shlibpath_var=$hardcode_shlibpath_var
9593
9594 # Set to yes if building a shared library automatically hardcodes DIR into the library
9595 # and all subsequent libraries and executables linked against it.
9596 hardcode_automatic=$hardcode_automatic
9597
9598 # Variables whose values should be saved in libtool wrapper scripts and
9599 # restored at relink time.
9600 variables_saved_for_relink="$variables_saved_for_relink"
9601
9602 # Whether libtool must link a program against all its dependency libraries.
9603 link_all_deplibs=$link_all_deplibs
9604
9605 # Compile-time system search path for libraries
9606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9607
9608 # Run-time system search path for libraries
9609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9610
9611 # Fix the shell variable \$srcfile for the compiler.
9612 fix_srcfile_path="$fix_srcfile_path"
9613
9614 # Set to yes if exported symbols are required.
9615 always_export_symbols=$always_export_symbols
9616
9617 # The commands to list exported symbols.
9618 export_symbols_cmds=$lt_export_symbols_cmds
9619
9620 # The commands to extract the exported symbol list from a shared archive.
9621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9622
9623 # Symbols that should not be listed in the preloaded symbols.
9624 exclude_expsyms=$lt_exclude_expsyms
9625
9626 # Symbols that must always be exported.
9627 include_expsyms=$lt_include_expsyms
9628
9629 # ### END LIBTOOL CONFIG
9630
9631 __EOF__
9632
9633
9634 case $host_os in
9635 aix3*)
9636 cat <<\EOF >> "$cfgfile"
9637
9638 # AIX sometimes has problems with the GCC collect2 program. For some
9639 # reason, if we set the COLLECT_NAMES environment variable, the problems
9640 # vanish in a puff of smoke.
9641 if test "X${COLLECT_NAMES+set}" != Xset; then
9642 COLLECT_NAMES=
9643 export COLLECT_NAMES
9644 fi
9645 EOF
9646 ;;
9647 esac
9648
9649 # We use sed instead of cat because bash on DJGPP gets confused if
9650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9651 # text mode, it properly converts lines to CR/LF. This bash problem
9652 # is reportedly fixed, but why not run on old versions too?
9653 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9654
9655 mv -f "$cfgfile" "$ofile" || \
9656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9657 chmod +x "$ofile"
9658
9659 else
9660 # If there is no Makefile yet, we rely on a make rule to execute
9661 # `config.status --recheck' to rerun these tests and create the
9662 # libtool script then.
9663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9664 if test -f "$ltmain_in"; then
9665 test -f Makefile && make "$ltmain"
9666 fi
9667 fi
9668
9669
9670 ac_ext=c
9671 ac_cpp='$CPP $CPPFLAGS'
9672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9675
9676 CC="$lt_save_CC"
9677
9678
9679 # Check whether --with-tags or --without-tags was given.
9680 if test "${with_tags+set}" = set; then
9681 withval="$with_tags"
9682 tagnames="$withval"
9683 fi;
9684
9685 if test -f "$ltmain" && test -n "$tagnames"; then
9686 if test ! -f "${ofile}"; then
9687 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9688 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9689 fi
9690
9691 if test -z "$LTCC"; then
9692 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9693 if test -z "$LTCC"; then
9694 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9695 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9696 else
9697 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9698 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9699 fi
9700 fi
9701
9702 # Extract list of available tagged configurations in $ofile.
9703 # Note that this assumes the entire list is on one line.
9704 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9705
9706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9707 for tagname in $tagnames; do
9708 IFS="$lt_save_ifs"
9709 # Check whether tagname contains only valid characters
9710 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9711 "") ;;
9712 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9713 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9714 { (exit 1); exit 1; }; }
9715 ;;
9716 esac
9717
9718 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9719 then
9720 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9721 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9722 { (exit 1); exit 1; }; }
9723 fi
9724
9725 # Update the list of available tags.
9726 if test -n "$tagname"; then
9727 echo appending configuration tag \"$tagname\" to $ofile
9728
9729 case $tagname in
9730 CXX)
9731 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9732 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9733 (test "X$CXX" != "Xg++"))) ; then
9734 ac_ext=cc
9735 ac_cpp='$CXXCPP $CPPFLAGS'
9736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9739
9740
9741
9742
9743 archive_cmds_need_lc_CXX=no
9744 allow_undefined_flag_CXX=
9745 always_export_symbols_CXX=no
9746 archive_expsym_cmds_CXX=
9747 export_dynamic_flag_spec_CXX=
9748 hardcode_direct_CXX=no
9749 hardcode_libdir_flag_spec_CXX=
9750 hardcode_libdir_flag_spec_ld_CXX=
9751 hardcode_libdir_separator_CXX=
9752 hardcode_minus_L_CXX=no
9753 hardcode_automatic_CXX=no
9754 module_cmds_CXX=
9755 module_expsym_cmds_CXX=
9756 link_all_deplibs_CXX=unknown
9757 old_archive_cmds_CXX=$old_archive_cmds
9758 no_undefined_flag_CXX=
9759 whole_archive_flag_spec_CXX=
9760 enable_shared_with_static_runtimes_CXX=no
9761
9762 # Dependencies to place before and after the object being linked:
9763 predep_objects_CXX=
9764 postdep_objects_CXX=
9765 predeps_CXX=
9766 postdeps_CXX=
9767 compiler_lib_search_path_CXX=
9768
9769 # Source file extension for C++ test sources.
9770 ac_ext=cc
9771
9772 # Object file extension for compiled C++ test sources.
9773 objext=o
9774 objext_CXX=$objext
9775
9776 # Code to be used in simple compile tests
9777 lt_simple_compile_test_code="int some_variable = 0;\n"
9778
9779 # Code to be used in simple link tests
9780 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9781
9782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9783
9784 # If no C compiler was specified, use CC.
9785 LTCC=${LTCC-"$CC"}
9786
9787 # Allow CC to be a program name with arguments.
9788 compiler=$CC
9789
9790
9791 # save warnings/boilerplate of simple test code
9792 ac_outfile=conftest.$ac_objext
9793 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9795 _lt_compiler_boilerplate=`cat conftest.err`
9796 $rm conftest*
9797
9798 ac_outfile=conftest.$ac_objext
9799 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9801 _lt_linker_boilerplate=`cat conftest.err`
9802 $rm conftest*
9803
9804
9805 # Allow CC to be a program name with arguments.
9806 lt_save_CC=$CC
9807 lt_save_LD=$LD
9808 lt_save_GCC=$GCC
9809 GCC=$GXX
9810 lt_save_with_gnu_ld=$with_gnu_ld
9811 lt_save_path_LD=$lt_cv_path_LD
9812 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9813 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9814 else
9815 unset lt_cv_prog_gnu_ld
9816 fi
9817 if test -n "${lt_cv_path_LDCXX+set}"; then
9818 lt_cv_path_LD=$lt_cv_path_LDCXX
9819 else
9820 unset lt_cv_path_LD
9821 fi
9822 test -z "${LDCXX+set}" || LD=$LDCXX
9823 CC=${CXX-"c++"}
9824 compiler=$CC
9825 compiler_CXX=$CC
9826 for cc_temp in $compiler""; do
9827 case $cc_temp in
9828 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9829 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9830 \-*) ;;
9831 *) break;;
9832 esac
9833 done
9834 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9835
9836
9837 # We don't want -fno-exception wen compiling C++ code, so set the
9838 # no_builtin_flag separately
9839 if test "$GXX" = yes; then
9840 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9841 else
9842 lt_prog_compiler_no_builtin_flag_CXX=
9843 fi
9844
9845 if test "$GXX" = yes; then
9846 # Set up default GNU C++ configuration
9847
9848
9849 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9850 if test "${with_gnu_ld+set}" = set; then
9851 withval="$with_gnu_ld"
9852 test "$withval" = no || with_gnu_ld=yes
9853 else
9854 with_gnu_ld=no
9855 fi;
9856 ac_prog=ld
9857 if test "$GCC" = yes; then
9858 # Check if gcc -print-prog-name=ld gives a path.
9859 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9860 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9861 case $host in
9862 *-*-mingw*)
9863 # gcc leaves a trailing carriage return which upsets mingw
9864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9865 *)
9866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9867 esac
9868 case $ac_prog in
9869 # Accept absolute paths.
9870 [\\/]* | ?:[\\/]*)
9871 re_direlt='/[^/][^/]*/\.\./'
9872 # Canonicalize the pathname of ld
9873 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9874 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9875 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9876 done
9877 test -z "$LD" && LD="$ac_prog"
9878 ;;
9879 "")
9880 # If it fails, then pretend we aren't using GCC.
9881 ac_prog=ld
9882 ;;
9883 *)
9884 # If it is relative, then search for the first ld in PATH.
9885 with_gnu_ld=unknown
9886 ;;
9887 esac
9888 elif test "$with_gnu_ld" = yes; then
9889 echo "$as_me:$LINENO: checking for GNU ld" >&5
9890 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9891 else
9892 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9893 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9894 fi
9895 if test "${lt_cv_path_LD+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 if test -z "$LD"; then
9899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9900 for ac_dir in $PATH; do
9901 IFS="$lt_save_ifs"
9902 test -z "$ac_dir" && ac_dir=.
9903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9904 lt_cv_path_LD="$ac_dir/$ac_prog"
9905 # Check to see if the program is GNU ld. I'd rather use --version,
9906 # but apparently some GNU ld's only accept -v.
9907 # Break only if it was the GNU/non-GNU ld that we prefer.
9908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9909 *GNU* | *'with BFD'*)
9910 test "$with_gnu_ld" != no && break
9911 ;;
9912 *)
9913 test "$with_gnu_ld" != yes && break
9914 ;;
9915 esac
9916 fi
9917 done
9918 IFS="$lt_save_ifs"
9919 else
9920 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9921 fi
9922 fi
9923
9924 LD="$lt_cv_path_LD"
9925 if test -n "$LD"; then
9926 echo "$as_me:$LINENO: result: $LD" >&5
9927 echo "${ECHO_T}$LD" >&6
9928 else
9929 echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6
9931 fi
9932 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9933 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9934 { (exit 1); exit 1; }; }
9935 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9936 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9937 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9941 case `$LD -v 2>&1 </dev/null` in
9942 *GNU* | *'with BFD'*)
9943 lt_cv_prog_gnu_ld=yes
9944 ;;
9945 *)
9946 lt_cv_prog_gnu_ld=no
9947 ;;
9948 esac
9949 fi
9950 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9951 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9952 with_gnu_ld=$lt_cv_prog_gnu_ld
9953
9954
9955
9956 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9957 # archiving commands below assume that GNU ld is being used.
9958 if test "$with_gnu_ld" = yes; then
9959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 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'
9961
9962 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9964
9965 # If archive_cmds runs LD, not CC, wlarc should be empty
9966 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9967 # investigate it a little bit more. (MM)
9968 wlarc='${wl}'
9969
9970 # ancient GNU ld didn't support --whole-archive et. al.
9971 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9972 grep 'no-whole-archive' > /dev/null; then
9973 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9974 else
9975 whole_archive_flag_spec_CXX=
9976 fi
9977 else
9978 with_gnu_ld=no
9979 wlarc=
9980
9981 # A generic and very simple default shared library creation
9982 # command for GNU C++ for the case where it uses the native
9983 # linker, instead of GNU ld. If possible, this setting should
9984 # overridden to take advantage of the native linker features on
9985 # the platform it is being used on.
9986 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9987 fi
9988
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9993
9994 else
9995 GXX=no
9996 with_gnu_ld=no
9997 wlarc=
9998 fi
9999
10000 # PORTME: fill in a description of your system's C++ link characteristics
10001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10003 ld_shlibs_CXX=yes
10004 case $host_os in
10005 aix3*)
10006 # FIXME: insert proper C++ library support
10007 ld_shlibs_CXX=no
10008 ;;
10009 aix4* | aix5*)
10010 if test "$host_cpu" = ia64; then
10011 # On IA64, the linker does run time linking by default, so we don't
10012 # have to do anything special.
10013 aix_use_runtimelinking=no
10014 exp_sym_flag='-Bexport'
10015 no_entry_flag=""
10016 else
10017 aix_use_runtimelinking=no
10018
10019 # Test if we are trying to use run time linking or normal
10020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021 # need to do runtime linking.
10022 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10023 for ld_flag in $LDFLAGS; do
10024 case $ld_flag in
10025 *-brtl*)
10026 aix_use_runtimelinking=yes
10027 break
10028 ;;
10029 esac
10030 done
10031 esac
10032
10033 exp_sym_flag='-bexport'
10034 no_entry_flag='-bnoentry'
10035 fi
10036
10037 # When large executables or shared objects are built, AIX ld can
10038 # have problems creating the table of contents. If linking a library
10039 # or program results in "error TOC overflow" add -mminimal-toc to
10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10042
10043 archive_cmds_CXX=''
10044 hardcode_direct_CXX=yes
10045 hardcode_libdir_separator_CXX=':'
10046 link_all_deplibs_CXX=yes
10047
10048 if test "$GXX" = yes; then
10049 case $host_os in aix4.[012]|aix4.[012].*)
10050 # We only want to do this on AIX 4.2 and lower, the check
10051 # below for broken collect2 doesn't work under 4.3+
10052 collect2name=`${CC} -print-prog-name=collect2`
10053 if test -f "$collect2name" && \
10054 strings "$collect2name" | grep resolve_lib_name >/dev/null
10055 then
10056 # We have reworked collect2
10057 hardcode_direct_CXX=yes
10058 else
10059 # We have old collect2
10060 hardcode_direct_CXX=unsupported
10061 # It fails to find uninstalled libraries when the uninstalled
10062 # path is not listed in the libpath. Setting hardcode_minus_L
10063 # to unsupported forces relinking
10064 hardcode_minus_L_CXX=yes
10065 hardcode_libdir_flag_spec_CXX='-L$libdir'
10066 hardcode_libdir_separator_CXX=
10067 fi
10068 esac
10069 shared_flag='-shared'
10070 if test "$aix_use_runtimelinking" = yes; then
10071 shared_flag="$shared_flag "'${wl}-G'
10072 fi
10073 else
10074 # not using gcc
10075 if test "$host_cpu" = ia64; then
10076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10077 # chokes on -Wl,-G. The following line is correct:
10078 shared_flag='-G'
10079 else
10080 if test "$aix_use_runtimelinking" = yes; then
10081 shared_flag='${wl}-G'
10082 else
10083 shared_flag='${wl}-bM:SRE'
10084 fi
10085 fi
10086 fi
10087
10088 # It seems that -bexpall does not export symbols beginning with
10089 # underscore (_), so it is better to generate a list of symbols to export.
10090 always_export_symbols_CXX=yes
10091 if test "$aix_use_runtimelinking" = yes; then
10092 # Warning - without using the other runtime loading flags (-brtl),
10093 # -berok will link without error, but may produce a broken library.
10094 allow_undefined_flag_CXX='-berok'
10095 # Determine the default libpath from the value encoded in an empty executable.
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102
10103 int
10104 main ()
10105 {
10106
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest$ac_exeext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132
10133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10134 }'`
10135 # Check for a 64-bit object if we didn't find anything.
10136 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; }
10137 }'`; fi
10138 else
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142 fi
10143 rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10146
10147 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10148
10149 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"
10150 else
10151 if test "$host_cpu" = ia64; then
10152 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10153 allow_undefined_flag_CXX="-z nodefs"
10154 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"
10155 else
10156 # Determine the default libpath from the value encoded in an empty executable.
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163
10164 int
10165 main ()
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193
10194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10195 }'`
10196 # Check for a 64-bit object if we didn't find anything.
10197 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; }
10198 }'`; fi
10199 else
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 fi
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10207
10208 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10209 # Warning - without using the other run time loading flags,
10210 # -berok will link without error, but may produce a broken library.
10211 no_undefined_flag_CXX=' ${wl}-bernotok'
10212 allow_undefined_flag_CXX=' ${wl}-berok'
10213 # -bexpall does not export symbols beginning with underscore (_)
10214 always_export_symbols_CXX=yes
10215 # Exported symbols can be pulled into shared objects from archives
10216 whole_archive_flag_spec_CXX=' '
10217 archive_cmds_need_lc_CXX=yes
10218 # This is similar to how AIX traditionally builds it's shared libraries.
10219 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'
10220 fi
10221 fi
10222 ;;
10223 chorus*)
10224 case $cc_basename in
10225 *)
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 esac
10230 ;;
10231
10232
10233 cygwin* | mingw* | pw32*)
10234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10235 # as there is no search path for DLLs.
10236 hardcode_libdir_flag_spec_CXX='-L$libdir'
10237 allow_undefined_flag_CXX=unsupported
10238 always_export_symbols_CXX=no
10239 enable_shared_with_static_runtimes_CXX=yes
10240
10241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10242 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'
10243 # If the export-symbols file already is a .def file (1st line
10244 # is EXPORTS), use it as is; otherwise, prepend...
10245 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10246 cp $export_symbols $output_objdir/$soname.def;
10247 else
10248 echo EXPORTS > $output_objdir/$soname.def;
10249 cat $export_symbols >> $output_objdir/$soname.def;
10250 fi~
10251 $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'
10252 else
10253 ld_shlibs_CXX=no
10254 fi
10255 ;;
10256 darwin* | rhapsody*)
10257 case "$host_os" in
10258 rhapsody* | darwin1.[012])
10259 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10260 ;;
10261 *) # Darwin 1.3 on
10262 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10263 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10264 else
10265 case ${MACOSX_DEPLOYMENT_TARGET} in
10266 10.[012])
10267 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10268 ;;
10269 10.*)
10270 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10271 ;;
10272 esac
10273 fi
10274 ;;
10275 esac
10276 archive_cmds_need_lc_CXX=no
10277 hardcode_direct_CXX=no
10278 hardcode_automatic_CXX=yes
10279 hardcode_shlibpath_var_CXX=unsupported
10280 whole_archive_flag_spec_CXX=''
10281 link_all_deplibs_CXX=yes
10282
10283 if test "$GXX" = yes ; then
10284 lt_int_apple_cc_single_mod=no
10285 output_verbose_link_cmd='echo'
10286 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10287 lt_int_apple_cc_single_mod=yes
10288 fi
10289 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10290 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10291 else
10292 archive_cmds_CXX='$CC -r -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'
10293 fi
10294 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10296 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10297 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}'
10298 else
10299 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10300 fi
10301 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}'
10302 else
10303 case $cc_basename in
10304 xlc*)
10305 output_verbose_link_cmd='echo'
10306 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10307 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10309 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10310 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}'
10311 ;;
10312 *)
10313 ld_shlibs_CXX=no
10314 ;;
10315 esac
10316 fi
10317 ;;
10318
10319 dgux*)
10320 case $cc_basename in
10321 ec++*)
10322 # FIXME: insert proper C++ library support
10323 ld_shlibs_CXX=no
10324 ;;
10325 ghcx*)
10326 # Green Hills C++ Compiler
10327 # FIXME: insert proper C++ library support
10328 ld_shlibs_CXX=no
10329 ;;
10330 *)
10331 # FIXME: insert proper C++ library support
10332 ld_shlibs_CXX=no
10333 ;;
10334 esac
10335 ;;
10336 freebsd[12]*)
10337 # C++ shared libraries reported to be fairly broken before switch to ELF
10338 ld_shlibs_CXX=no
10339 ;;
10340 freebsd-elf*)
10341 archive_cmds_need_lc_CXX=no
10342 ;;
10343 freebsd* | kfreebsd*-gnu | dragonfly*)
10344 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10345 # conventions
10346 ld_shlibs_CXX=yes
10347 ;;
10348 gnu*)
10349 ;;
10350 hpux9*)
10351 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10352 hardcode_libdir_separator_CXX=:
10353 export_dynamic_flag_spec_CXX='${wl}-E'
10354 hardcode_direct_CXX=yes
10355 hardcode_minus_L_CXX=yes # Not in the search PATH,
10356 # but as the default
10357 # location of the library.
10358
10359 case $cc_basename in
10360 CC*)
10361 # FIXME: insert proper C++ library support
10362 ld_shlibs_CXX=no
10363 ;;
10364 aCC*)
10365 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'
10366 # Commands to make compiler produce verbose output that lists
10367 # what "hidden" libraries, object files and flags are used when
10368 # linking a shared library.
10369 #
10370 # There doesn't appear to be a way to prevent this compiler from
10371 # explicitly linking system object files so we need to strip them
10372 # from the output so that they don't get included in the library
10373 # dependencies.
10374 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'
10375 ;;
10376 *)
10377 if test "$GXX" = yes; then
10378 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'
10379 else
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 fi
10383 ;;
10384 esac
10385 ;;
10386 hpux10*|hpux11*)
10387 if test $with_gnu_ld = no; then
10388 case "$host_cpu" in
10389 hppa*64*)
10390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10392 hardcode_libdir_separator_CXX=:
10393 ;;
10394 ia64*)
10395 hardcode_libdir_flag_spec_CXX='-L$libdir'
10396 ;;
10397 *)
10398 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10399 hardcode_libdir_separator_CXX=:
10400 export_dynamic_flag_spec_CXX='${wl}-E'
10401 ;;
10402 esac
10403 fi
10404 case "$host_cpu" in
10405 hppa*64*)
10406 hardcode_direct_CXX=no
10407 hardcode_shlibpath_var_CXX=no
10408 ;;
10409 ia64*)
10410 hardcode_direct_CXX=no
10411 hardcode_shlibpath_var_CXX=no
10412 hardcode_minus_L_CXX=yes # Not in the search PATH,
10413 # but as the default
10414 # location of the library.
10415 ;;
10416 *)
10417 hardcode_direct_CXX=yes
10418 hardcode_minus_L_CXX=yes # Not in the search PATH,
10419 # but as the default
10420 # location of the library.
10421 ;;
10422 esac
10423
10424 case $cc_basename in
10425 CC*)
10426 # FIXME: insert proper C++ library support
10427 ld_shlibs_CXX=no
10428 ;;
10429 aCC*)
10430 case "$host_cpu" in
10431 hppa*64*|ia64*)
10432 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10433 ;;
10434 *)
10435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10436 ;;
10437 esac
10438 # Commands to make compiler produce verbose output that lists
10439 # what "hidden" libraries, object files and flags are used when
10440 # linking a shared library.
10441 #
10442 # There doesn't appear to be a way to prevent this compiler from
10443 # explicitly linking system object files so we need to strip them
10444 # from the output so that they don't get included in the library
10445 # dependencies.
10446 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'
10447 ;;
10448 *)
10449 if test "$GXX" = yes; then
10450 if test $with_gnu_ld = no; then
10451 case "$host_cpu" in
10452 ia64*|hppa*64*)
10453 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10454 ;;
10455 *)
10456 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'
10457 ;;
10458 esac
10459 fi
10460 else
10461 # FIXME: insert proper C++ library support
10462 ld_shlibs_CXX=no
10463 fi
10464 ;;
10465 esac
10466 ;;
10467 irix5* | irix6*)
10468 case $cc_basename in
10469 CC*)
10470 # SGI C++
10471 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 ${output_objdir}/so_locations -o $lib'
10472
10473 # Archives containing C++ object files must be created using
10474 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10475 # necessary to make sure instantiated templates are included
10476 # in the archive.
10477 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10478 ;;
10479 *)
10480 if test "$GXX" = yes; then
10481 if test "$with_gnu_ld" = no; then
10482 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}${output_objdir}/so_locations -o $lib'
10483 else
10484 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'
10485 fi
10486 fi
10487 link_all_deplibs_CXX=yes
10488 ;;
10489 esac
10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10491 hardcode_libdir_separator_CXX=:
10492 ;;
10493 linux*)
10494 case $cc_basename in
10495 KCC*)
10496 # Kuck and Associates, Inc. (KAI) C++ Compiler
10497
10498 # KCC will only create a shared library if the output file
10499 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10500 # to its proper name (with version) after linking.
10501 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'
10502 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'
10503 # Commands to make compiler produce verbose output that lists
10504 # what "hidden" libraries, object files and flags are used when
10505 # linking a shared library.
10506 #
10507 # There doesn't appear to be a way to prevent this compiler from
10508 # explicitly linking system object files so we need to strip them
10509 # from the output so that they don't get included in the library
10510 # dependencies.
10511 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'
10512
10513 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10515
10516 # Archives containing C++ object files must be created using
10517 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10518 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10519 ;;
10520 icpc*)
10521 # Intel C++
10522 with_gnu_ld=yes
10523 # version 8.0 and above of icpc choke on multiply defined symbols
10524 # if we add $predep_objects and $postdep_objects, however 7.1 and
10525 # earlier do not add the objects themselves.
10526 case `$CC -V 2>&1` in
10527 *"Version 7."*)
10528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529 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'
10530 ;;
10531 *) # Version 8.0 or newer
10532 tmp_idyn=
10533 case $host_cpu in
10534 ia64*) tmp_idyn=' -i_dynamic';;
10535 esac
10536 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10537 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10538 ;;
10539 esac
10540 archive_cmds_need_lc_CXX=no
10541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10543 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10544 ;;
10545 pgCC*)
10546 # Portland Group C++ compiler
10547 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10548 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'
10549
10550 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10551 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10552 whole_archive_flag_spec_CXX=''
10553 ;;
10554 cxx*)
10555 # Compaq C++
10556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10557 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'
10558
10559 runpath_var=LD_RUN_PATH
10560 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10561 hardcode_libdir_separator_CXX=:
10562
10563 # Commands to make compiler produce verbose output that lists
10564 # what "hidden" libraries, object files and flags are used when
10565 # linking a shared library.
10566 #
10567 # There doesn't appear to be a way to prevent this compiler from
10568 # explicitly linking system object files so we need to strip them
10569 # from the output so that they don't get included in the library
10570 # dependencies.
10571 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'
10572 ;;
10573 esac
10574 ;;
10575 lynxos*)
10576 # FIXME: insert proper C++ library support
10577 ld_shlibs_CXX=no
10578 ;;
10579 m88k*)
10580 # FIXME: insert proper C++ library support
10581 ld_shlibs_CXX=no
10582 ;;
10583 mvs*)
10584 case $cc_basename in
10585 cxx*)
10586 # FIXME: insert proper C++ library support
10587 ld_shlibs_CXX=no
10588 ;;
10589 *)
10590 # FIXME: insert proper C++ library support
10591 ld_shlibs_CXX=no
10592 ;;
10593 esac
10594 ;;
10595 netbsd*)
10596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10597 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10598 wlarc=
10599 hardcode_libdir_flag_spec_CXX='-R$libdir'
10600 hardcode_direct_CXX=yes
10601 hardcode_shlibpath_var_CXX=no
10602 fi
10603 # Workaround some broken pre-1.5 toolchains
10604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10605 ;;
10606 openbsd2*)
10607 # C++ shared libraries are fairly broken
10608 ld_shlibs_CXX=no
10609 ;;
10610 openbsd*)
10611 hardcode_direct_CXX=yes
10612 hardcode_shlibpath_var_CXX=no
10613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10617 export_dynamic_flag_spec_CXX='${wl}-E'
10618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10619 fi
10620 output_verbose_link_cmd='echo'
10621 ;;
10622 osf3*)
10623 case $cc_basename in
10624 KCC*)
10625 # Kuck and Associates, Inc. (KAI) C++ Compiler
10626
10627 # KCC will only create a shared library if the output file
10628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10629 # to its proper name (with version) after linking.
10630 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'
10631
10632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10633 hardcode_libdir_separator_CXX=:
10634
10635 # Archives containing C++ object files must be created using
10636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10637 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10638
10639 ;;
10640 RCC*)
10641 # Rational C++ 2.4.1
10642 # FIXME: insert proper C++ library support
10643 ld_shlibs_CXX=no
10644 ;;
10645 cxx*)
10646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10647 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 ${output_objdir}/so_locations -o $lib'
10648
10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator_CXX=:
10651
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10655 #
10656 # There doesn't appear to be a way to prevent this compiler from
10657 # explicitly linking system object files so we need to strip them
10658 # from the output so that they don't get included in the library
10659 # dependencies.
10660 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'
10661 ;;
10662 *)
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10665 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}${output_objdir}/so_locations -o $lib'
10666
10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator_CXX=:
10669
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10674
10675 else
10676 # FIXME: insert proper C++ library support
10677 ld_shlibs_CXX=no
10678 fi
10679 ;;
10680 esac
10681 ;;
10682 osf4* | osf5*)
10683 case $cc_basename in
10684 KCC*)
10685 # Kuck and Associates, Inc. (KAI) C++ Compiler
10686
10687 # KCC will only create a shared library if the output file
10688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689 # to its proper name (with version) after linking.
10690 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'
10691
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693 hardcode_libdir_separator_CXX=:
10694
10695 # Archives containing C++ object files must be created using
10696 # the KAI C++ compiler.
10697 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10698 ;;
10699 RCC*)
10700 # Rational C++ 2.4.1
10701 # FIXME: insert proper C++ library support
10702 ld_shlibs_CXX=no
10703 ;;
10704 cxx*)
10705 allow_undefined_flag_CXX=' -expect_unresolved \*'
10706 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 ${output_objdir}/so_locations -o $lib'
10707 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10708 echo "-hidden">> $lib.exp~
10709 $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 ${output_objdir}/so_locations -o $lib~
10710 $rm $lib.exp'
10711
10712 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10713 hardcode_libdir_separator_CXX=:
10714
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10718 #
10719 # There doesn't appear to be a way to prevent this compiler from
10720 # explicitly linking system object files so we need to strip them
10721 # from the output so that they don't get included in the library
10722 # dependencies.
10723 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'
10724 ;;
10725 *)
10726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10728 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}${output_objdir}/so_locations -o $lib'
10729
10730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator_CXX=:
10732
10733 # Commands to make compiler produce verbose output that lists
10734 # what "hidden" libraries, object files and flags are used when
10735 # linking a shared library.
10736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10737
10738 else
10739 # FIXME: insert proper C++ library support
10740 ld_shlibs_CXX=no
10741 fi
10742 ;;
10743 esac
10744 ;;
10745 psos*)
10746 # FIXME: insert proper C++ library support
10747 ld_shlibs_CXX=no
10748 ;;
10749 sco*)
10750 archive_cmds_need_lc_CXX=no
10751 case $cc_basename in
10752 CC*)
10753 # FIXME: insert proper C++ library support
10754 ld_shlibs_CXX=no
10755 ;;
10756 *)
10757 # FIXME: insert proper C++ library support
10758 ld_shlibs_CXX=no
10759 ;;
10760 esac
10761 ;;
10762 sunos4*)
10763 case $cc_basename in
10764 CC*)
10765 # Sun C++ 4.x
10766 # FIXME: insert proper C++ library support
10767 ld_shlibs_CXX=no
10768 ;;
10769 lcc*)
10770 # Lucid
10771 # FIXME: insert proper C++ library support
10772 ld_shlibs_CXX=no
10773 ;;
10774 *)
10775 # FIXME: insert proper C++ library support
10776 ld_shlibs_CXX=no
10777 ;;
10778 esac
10779 ;;
10780 solaris*)
10781 case $cc_basename in
10782 CC*)
10783 # Sun C++ 4.2, 5.x and Centerline C++
10784 no_undefined_flag_CXX=' -zdefs'
10785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787 $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'
10788
10789 hardcode_libdir_flag_spec_CXX='-R$libdir'
10790 hardcode_shlibpath_var_CXX=no
10791 case $host_os in
10792 solaris2.[0-5] | solaris2.[0-5].*) ;;
10793 *)
10794 # The C++ compiler is used as linker so we must use $wl
10795 # flag to pass the commands to the underlying system
10796 # linker. We must also pass each convience library through
10797 # to the system linker between allextract/defaultextract.
10798 # The C++ compiler will combine linker options so we
10799 # cannot just pass the convience library names through
10800 # without $wl.
10801 # Supported since Solaris 2.6 (maybe 2.5.1?)
10802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10803 ;;
10804 esac
10805 link_all_deplibs_CXX=yes
10806
10807 # Commands to make compiler produce verbose output that lists
10808 # what "hidden" libraries, object files and flags are used when
10809 # linking a shared library.
10810 #
10811 # There doesn't appear to be a way to prevent this compiler from
10812 # explicitly linking system object files so we need to strip them
10813 # from the output so that they don't get included in the library
10814 # dependencies.
10815 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'
10816
10817 # Archives containing C++ object files must be created using
10818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10819 # necessary to make sure instantiated templates are included
10820 # in the archive.
10821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10822 ;;
10823 gcx*)
10824 # Green Hills C++ Compiler
10825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10826
10827 # The C++ compiler must be used to create the archive.
10828 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10829 ;;
10830 *)
10831 # GNU C++ compiler with Solaris linker
10832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10833 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10834 if $CC --version | grep -v '^2\.7' > /dev/null; then
10835 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10837 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10838
10839 # Commands to make compiler produce verbose output that lists
10840 # what "hidden" libraries, object files and flags are used when
10841 # linking a shared library.
10842 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10843 else
10844 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10845 # platform.
10846 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10848 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10849
10850 # Commands to make compiler produce verbose output that lists
10851 # what "hidden" libraries, object files and flags are used when
10852 # linking a shared library.
10853 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10854 fi
10855
10856 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10857 fi
10858 ;;
10859 esac
10860 ;;
10861 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10862 archive_cmds_need_lc_CXX=no
10863 ;;
10864 tandem*)
10865 case $cc_basename in
10866 NCC*)
10867 # NonStop-UX NCC 3.20
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10870 ;;
10871 *)
10872 # FIXME: insert proper C++ library support
10873 ld_shlibs_CXX=no
10874 ;;
10875 esac
10876 ;;
10877 vxworks*)
10878 # FIXME: insert proper C++ library support
10879 ld_shlibs_CXX=no
10880 ;;
10881 *)
10882 # FIXME: insert proper C++ library support
10883 ld_shlibs_CXX=no
10884 ;;
10885 esac
10886 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10888 test "$ld_shlibs_CXX" = no && can_build_shared=no
10889
10890 GCC_CXX="$GXX"
10891 LD_CXX="$LD"
10892
10893
10894 cat > conftest.$ac_ext <<EOF
10895 class Foo
10896 {
10897 public:
10898 Foo (void) { a = 0; }
10899 private:
10900 int a;
10901 };
10902 EOF
10903
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; then
10909 # Parse the compiler output and extract the necessary
10910 # objects, libraries and library flags.
10911
10912 # Sentinel used to keep track of whether or not we are before
10913 # the conftest object file.
10914 pre_test_object_deps_done=no
10915
10916 # The `*' in the case matches for architectures that use `case' in
10917 # $output_verbose_cmd can trigger glob expansion during the loop
10918 # eval without this substitution.
10919 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10920
10921 for p in `eval $output_verbose_link_cmd`; do
10922 case $p in
10923
10924 -L* | -R* | -l*)
10925 # Some compilers place space between "-{L,R}" and the path.
10926 # Remove the space.
10927 if test $p = "-L" \
10928 || test $p = "-R"; then
10929 prev=$p
10930 continue
10931 else
10932 prev=
10933 fi
10934
10935 if test "$pre_test_object_deps_done" = no; then
10936 case $p in
10937 -L* | -R*)
10938 # Internal compiler library paths should come after those
10939 # provided the user. The postdeps already come after the
10940 # user supplied libs so there is no need to process them.
10941 if test -z "$compiler_lib_search_path_CXX"; then
10942 compiler_lib_search_path_CXX="${prev}${p}"
10943 else
10944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10945 fi
10946 ;;
10947 # The "-l" case would never come before the object being
10948 # linked, so don't bother handling this case.
10949 esac
10950 else
10951 if test -z "$postdeps_CXX"; then
10952 postdeps_CXX="${prev}${p}"
10953 else
10954 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10955 fi
10956 fi
10957 ;;
10958
10959 *.$objext)
10960 # This assumes that the test object file only shows up
10961 # once in the compiler output.
10962 if test "$p" = "conftest.$objext"; then
10963 pre_test_object_deps_done=yes
10964 continue
10965 fi
10966
10967 if test "$pre_test_object_deps_done" = no; then
10968 if test -z "$predep_objects_CXX"; then
10969 predep_objects_CXX="$p"
10970 else
10971 predep_objects_CXX="$predep_objects_CXX $p"
10972 fi
10973 else
10974 if test -z "$postdep_objects_CXX"; then
10975 postdep_objects_CXX="$p"
10976 else
10977 postdep_objects_CXX="$postdep_objects_CXX $p"
10978 fi
10979 fi
10980 ;;
10981
10982 *) ;; # Ignore the rest.
10983
10984 esac
10985 done
10986
10987 # Clean up.
10988 rm -f a.out a.exe
10989 else
10990 echo "libtool.m4: error: problem compiling CXX test program"
10991 fi
10992
10993 $rm -f confest.$objext
10994
10995 case " $postdeps_CXX " in
10996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10997 esac
10998
10999 lt_prog_compiler_wl_CXX=
11000 lt_prog_compiler_pic_CXX=
11001 lt_prog_compiler_static_CXX=
11002
11003 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11005
11006 # C++ specific cases for pic, static, wl, etc.
11007 if test "$GXX" = yes; then
11008 lt_prog_compiler_wl_CXX='-Wl,'
11009 lt_prog_compiler_static_CXX='-static'
11010
11011 case $host_os in
11012 aix*)
11013 # All AIX code is PIC.
11014 if test "$host_cpu" = ia64; then
11015 # AIX 5 now supports IA64 processor
11016 lt_prog_compiler_static_CXX='-Bstatic'
11017 fi
11018 ;;
11019 amigaos*)
11020 # FIXME: we need at least 68020 code to build shared libraries, but
11021 # adding the `-m68020' flag to GCC prevents building anything better,
11022 # like `-m68040'.
11023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11024 ;;
11025 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11026 # PIC is the default for these OSes.
11027 ;;
11028 mingw* | os2* | pw32*)
11029 # This hack is so that the source file can tell whether it is being
11030 # built for inclusion in a dll (and should export symbols for example).
11031 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11032 ;;
11033 darwin* | rhapsody*)
11034 # PIC is the default on this platform
11035 # Common symbols not allowed in MH_DYLIB files
11036 lt_prog_compiler_pic_CXX='-fno-common'
11037 ;;
11038 *djgpp*)
11039 # DJGPP does not support shared libraries at all
11040 lt_prog_compiler_pic_CXX=
11041 ;;
11042 sysv4*MP*)
11043 if test -d /usr/nec; then
11044 lt_prog_compiler_pic_CXX=-Kconform_pic
11045 fi
11046 ;;
11047 hpux*)
11048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11049 # not for PA HP-UX.
11050 case "$host_cpu" in
11051 hppa*64*|ia64*)
11052 ;;
11053 *)
11054 lt_prog_compiler_pic_CXX='-fPIC'
11055 ;;
11056 esac
11057 ;;
11058 *)
11059 lt_prog_compiler_pic_CXX='-fPIC'
11060 ;;
11061 esac
11062 else
11063 case $host_os in
11064 aix4* | aix5*)
11065 # All AIX code is PIC.
11066 if test "$host_cpu" = ia64; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static_CXX='-Bstatic'
11069 else
11070 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11071 fi
11072 ;;
11073 chorus*)
11074 case $cc_basename in
11075 cxch68*)
11076 # Green Hills C++ Compiler
11077 # _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"
11078 ;;
11079 esac
11080 ;;
11081 darwin*)
11082 # PIC is the default on this platform
11083 # Common symbols not allowed in MH_DYLIB files
11084 case $cc_basename in
11085 xlc*)
11086 lt_prog_compiler_pic_CXX='-qnocommon'
11087 lt_prog_compiler_wl_CXX='-Wl,'
11088 ;;
11089 esac
11090 ;;
11091 dgux*)
11092 case $cc_basename in
11093 ec++*)
11094 lt_prog_compiler_pic_CXX='-KPIC'
11095 ;;
11096 ghcx*)
11097 # Green Hills C++ Compiler
11098 lt_prog_compiler_pic_CXX='-pic'
11099 ;;
11100 *)
11101 ;;
11102 esac
11103 ;;
11104 freebsd* | kfreebsd*-gnu | dragonfly*)
11105 # FreeBSD uses GNU C++
11106 ;;
11107 hpux9* | hpux10* | hpux11*)
11108 case $cc_basename in
11109 CC*)
11110 lt_prog_compiler_wl_CXX='-Wl,'
11111 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11112 if test "$host_cpu" != ia64; then
11113 lt_prog_compiler_pic_CXX='+Z'
11114 fi
11115 ;;
11116 aCC*)
11117 lt_prog_compiler_wl_CXX='-Wl,'
11118 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11119 case "$host_cpu" in
11120 hppa*64*|ia64*)
11121 # +Z the default
11122 ;;
11123 *)
11124 lt_prog_compiler_pic_CXX='+Z'
11125 ;;
11126 esac
11127 ;;
11128 *)
11129 ;;
11130 esac
11131 ;;
11132 irix5* | irix6* | nonstopux*)
11133 case $cc_basename in
11134 CC*)
11135 lt_prog_compiler_wl_CXX='-Wl,'
11136 lt_prog_compiler_static_CXX='-non_shared'
11137 # CC pic flag -KPIC is the default.
11138 ;;
11139 *)
11140 ;;
11141 esac
11142 ;;
11143 linux*)
11144 case $cc_basename in
11145 KCC*)
11146 # KAI C++ Compiler
11147 lt_prog_compiler_wl_CXX='--backend -Wl,'
11148 lt_prog_compiler_pic_CXX='-fPIC'
11149 ;;
11150 icpc* | ecpc*)
11151 # Intel C++
11152 lt_prog_compiler_wl_CXX='-Wl,'
11153 lt_prog_compiler_pic_CXX='-KPIC'
11154 lt_prog_compiler_static_CXX='-static'
11155 ;;
11156 pgCC*)
11157 # Portland Group C++ compiler.
11158 lt_prog_compiler_wl_CXX='-Wl,'
11159 lt_prog_compiler_pic_CXX='-fpic'
11160 lt_prog_compiler_static_CXX='-static'
11161 ;;
11162 cxx*)
11163 # Compaq C++
11164 # Make sure the PIC flag is empty. It appears that all Alpha
11165 # Linux and Compaq Tru64 Unix objects are PIC.
11166 lt_prog_compiler_pic_CXX=
11167 lt_prog_compiler_static_CXX='-non_shared'
11168 ;;
11169 *)
11170 ;;
11171 esac
11172 ;;
11173 lynxos*)
11174 ;;
11175 m88k*)
11176 ;;
11177 mvs*)
11178 case $cc_basename in
11179 cxx*)
11180 lt_prog_compiler_pic_CXX='-W c,exportall'
11181 ;;
11182 *)
11183 ;;
11184 esac
11185 ;;
11186 netbsd*)
11187 ;;
11188 osf3* | osf4* | osf5*)
11189 case $cc_basename in
11190 KCC*)
11191 lt_prog_compiler_wl_CXX='--backend -Wl,'
11192 ;;
11193 RCC*)
11194 # Rational C++ 2.4.1
11195 lt_prog_compiler_pic_CXX='-pic'
11196 ;;
11197 cxx*)
11198 # Digital/Compaq C++
11199 lt_prog_compiler_wl_CXX='-Wl,'
11200 # Make sure the PIC flag is empty. It appears that all Alpha
11201 # Linux and Compaq Tru64 Unix objects are PIC.
11202 lt_prog_compiler_pic_CXX=
11203 lt_prog_compiler_static_CXX='-non_shared'
11204 ;;
11205 *)
11206 ;;
11207 esac
11208 ;;
11209 psos*)
11210 ;;
11211 sco*)
11212 case $cc_basename in
11213 CC*)
11214 lt_prog_compiler_pic_CXX='-fPIC'
11215 ;;
11216 *)
11217 ;;
11218 esac
11219 ;;
11220 solaris*)
11221 case $cc_basename in
11222 CC*)
11223 # Sun C++ 4.2, 5.x and Centerline C++
11224 lt_prog_compiler_pic_CXX='-KPIC'
11225 lt_prog_compiler_static_CXX='-Bstatic'
11226 lt_prog_compiler_wl_CXX='-Qoption ld '
11227 ;;
11228 gcx*)
11229 # Green Hills C++ Compiler
11230 lt_prog_compiler_pic_CXX='-PIC'
11231 ;;
11232 *)
11233 ;;
11234 esac
11235 ;;
11236 sunos4*)
11237 case $cc_basename in
11238 CC*)
11239 # Sun C++ 4.x
11240 lt_prog_compiler_pic_CXX='-pic'
11241 lt_prog_compiler_static_CXX='-Bstatic'
11242 ;;
11243 lcc*)
11244 # Lucid
11245 lt_prog_compiler_pic_CXX='-pic'
11246 ;;
11247 *)
11248 ;;
11249 esac
11250 ;;
11251 tandem*)
11252 case $cc_basename in
11253 NCC*)
11254 # NonStop-UX NCC 3.20
11255 lt_prog_compiler_pic_CXX='-KPIC'
11256 ;;
11257 *)
11258 ;;
11259 esac
11260 ;;
11261 unixware*)
11262 ;;
11263 vxworks*)
11264 ;;
11265 *)
11266 lt_prog_compiler_can_build_shared_CXX=no
11267 ;;
11268 esac
11269 fi
11270
11271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11272 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11273
11274 #
11275 # Check to make sure the PIC flag actually works.
11276 #
11277 if test -n "$lt_prog_compiler_pic_CXX"; then
11278
11279 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11280 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11281 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 lt_prog_compiler_pic_works_CXX=no
11285 ac_outfile=conftest.$ac_objext
11286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11287 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11288 # Insert the option either (1) after the last *FLAGS variable, or
11289 # (2) before a word containing "conftest.", or (3) at the end.
11290 # Note that $ac_compile itself does not contain backslashes and begins
11291 # with a dollar sign (not a hyphen), so the echo should work correctly.
11292 # The option is referenced via a variable to avoid confusing sed.
11293 lt_compile=`echo "$ac_compile" | $SED \
11294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11296 -e 's:$: $lt_compiler_flag:'`
11297 (eval echo "\"\$as_me:11297: $lt_compile\"" >&5)
11298 (eval "$lt_compile" 2>conftest.err)
11299 ac_status=$?
11300 cat conftest.err >&5
11301 echo "$as_me:11301: \$? = $ac_status" >&5
11302 if (exit $ac_status) && test -s "$ac_outfile"; then
11303 # The compiler can only warn and ignore the option if not recognized
11304 # So say no if there are warnings other than the usual output.
11305 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11306 $SED '/^$/d' conftest.err >conftest.er2
11307 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11308 lt_prog_compiler_pic_works_CXX=yes
11309 fi
11310 fi
11311 $rm conftest*
11312
11313 fi
11314 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11315 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11316
11317 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11318 case $lt_prog_compiler_pic_CXX in
11319 "" | " "*) ;;
11320 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11321 esac
11322 else
11323 lt_prog_compiler_pic_CXX=
11324 lt_prog_compiler_can_build_shared_CXX=no
11325 fi
11326
11327 fi
11328 case "$host_os" in
11329 # For platforms which do not support PIC, -DPIC is meaningless:
11330 *djgpp*)
11331 lt_prog_compiler_pic_CXX=
11332 ;;
11333 *)
11334 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11335 ;;
11336 esac
11337
11338 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11340 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 lt_cv_prog_compiler_c_o_CXX=no
11344 $rm -r conftest 2>/dev/null
11345 mkdir conftest
11346 cd conftest
11347 mkdir out
11348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11349
11350 lt_compiler_flag="-o out/conftest2.$ac_objext"
11351 # Insert the option either (1) after the last *FLAGS variable, or
11352 # (2) before a word containing "conftest.", or (3) at the end.
11353 # Note that $ac_compile itself does not contain backslashes and begins
11354 # with a dollar sign (not a hyphen), so the echo should work correctly.
11355 lt_compile=`echo "$ac_compile" | $SED \
11356 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11358 -e 's:$: $lt_compiler_flag:'`
11359 (eval echo "\"\$as_me:11359: $lt_compile\"" >&5)
11360 (eval "$lt_compile" 2>out/conftest.err)
11361 ac_status=$?
11362 cat out/conftest.err >&5
11363 echo "$as_me:11363: \$? = $ac_status" >&5
11364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11365 then
11366 # The compiler can only warn and ignore the option if not recognized
11367 # So say no if there are warnings
11368 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11369 $SED '/^$/d' out/conftest.err >out/conftest.er2
11370 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11371 lt_cv_prog_compiler_c_o_CXX=yes
11372 fi
11373 fi
11374 chmod u+w .
11375 $rm conftest*
11376 # SGI C++ compiler will create directory out/ii_files/ for
11377 # template instantiation
11378 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11379 $rm out/* && rmdir out
11380 cd ..
11381 rmdir conftest
11382 $rm conftest*
11383
11384 fi
11385 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11387
11388
11389 hard_links="nottested"
11390 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11391 # do not overwrite the value of need_locks provided by the user
11392 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11394 hard_links=yes
11395 $rm conftest*
11396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11397 touch conftest.a
11398 ln conftest.a conftest.b 2>&5 || hard_links=no
11399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11400 echo "$as_me:$LINENO: result: $hard_links" >&5
11401 echo "${ECHO_T}$hard_links" >&6
11402 if test "$hard_links" = no; then
11403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11405 need_locks=warn
11406 fi
11407 else
11408 need_locks=no
11409 fi
11410
11411 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11413
11414 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11415 case $host_os in
11416 aix4* | aix5*)
11417 # If we're using GNU nm, then we don't want the "-C" option.
11418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11419 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11420 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'
11421 else
11422 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'
11423 fi
11424 ;;
11425 pw32*)
11426 export_symbols_cmds_CXX="$ltdll_cmds"
11427 ;;
11428 cygwin* | mingw*)
11429 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11430 ;;
11431 *)
11432 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433 ;;
11434 esac
11435
11436 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11437 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11438 test "$ld_shlibs_CXX" = no && can_build_shared=no
11439
11440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11441 if test "$GCC" = yes; then
11442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11443 fi
11444
11445 #
11446 # Do we need to explicitly link libc?
11447 #
11448 case "x$archive_cmds_need_lc_CXX" in
11449 x|xyes)
11450 # Assume -lc should be added
11451 archive_cmds_need_lc_CXX=yes
11452
11453 if test "$enable_shared" = yes && test "$GCC" = yes; then
11454 case $archive_cmds_CXX in
11455 *'~'*)
11456 # FIXME: we may have to deal with multi-command sequences.
11457 ;;
11458 '$CC '*)
11459 # Test whether the compiler implicitly links with -lc since on some
11460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11461 # to ld, don't add -lc before -lgcc.
11462 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11464 $rm conftest*
11465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11466
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468 (eval $ac_compile) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } 2>conftest.err; then
11472 soname=conftest
11473 lib=conftest
11474 libobjs=conftest.$ac_objext
11475 deplibs=
11476 wl=$lt_prog_compiler_wl_CXX
11477 compiler_flags=-v
11478 linker_flags=-v
11479 verstring=
11480 output_objdir=.
11481 libname=conftest
11482 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11483 allow_undefined_flag_CXX=
11484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11485 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }
11489 then
11490 archive_cmds_need_lc_CXX=no
11491 else
11492 archive_cmds_need_lc_CXX=yes
11493 fi
11494 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11495 else
11496 cat conftest.err 1>&5
11497 fi
11498 $rm conftest*
11499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11500 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11501 ;;
11502 esac
11503 fi
11504 ;;
11505 esac
11506
11507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11509 library_names_spec=
11510 libname_spec='lib$name'
11511 soname_spec=
11512 shrext_cmds=".so"
11513 postinstall_cmds=
11514 postuninstall_cmds=
11515 finish_cmds=
11516 finish_eval=
11517 shlibpath_var=
11518 shlibpath_overrides_runpath=unknown
11519 version_type=none
11520 dynamic_linker="$host_os ld.so"
11521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11522 if test "$GCC" = yes; then
11523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11525 # if the path contains ";" then we assume it to be the separator
11526 # otherwise default to the standard path separator (i.e. ":") - it is
11527 # assumed that no part of a normal pathname contains ";" but that should
11528 # okay in the real world where ";" in dirpaths is itself problematic.
11529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11530 else
11531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11532 fi
11533 else
11534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11535 fi
11536 need_lib_prefix=unknown
11537 hardcode_into_libs=no
11538
11539 # when you set need_version to no, make sure it does not cause -set_version
11540 # flags to be left without arguments
11541 need_version=unknown
11542
11543 case $host_os in
11544 aix3*)
11545 version_type=linux
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11547 shlibpath_var=LIBPATH
11548
11549 # AIX 3 has no versioning support, so we append a major version to the name.
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 ;;
11552
11553 aix4* | aix5*)
11554 version_type=linux
11555 need_lib_prefix=no
11556 need_version=no
11557 hardcode_into_libs=yes
11558 if test "$host_cpu" = ia64; then
11559 # AIX 5 supports IA64
11560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 else
11563 # With GCC up to 2.95.x, collect2 would create an import file
11564 # for dependence libraries. The import file would start with
11565 # the line `#! .'. This would cause the generated library to
11566 # depend on `.', always an invalid library. This was fixed in
11567 # development snapshots of GCC prior to 3.0.
11568 case $host_os in
11569 aix4 | aix4.[01] | aix4.[01].*)
11570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11571 echo ' yes '
11572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11573 :
11574 else
11575 can_build_shared=no
11576 fi
11577 ;;
11578 esac
11579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11580 # soname into executable. Probably we can add versioning support to
11581 # collect2, so additional links can be useful in future.
11582 if test "$aix_use_runtimelinking" = yes; then
11583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11584 # instead of lib<name>.a to let people know that these are not
11585 # typical AIX shared libraries.
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 else
11588 # We preserve .a as extension for shared libraries through AIX4.2
11589 # and later when we are not doing run time linking.
11590 library_names_spec='${libname}${release}.a $libname.a'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 fi
11593 shlibpath_var=LIBPATH
11594 fi
11595 ;;
11596
11597 amigaos*)
11598 library_names_spec='$libname.ixlibrary $libname.a'
11599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11600 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'
11601 ;;
11602
11603 beos*)
11604 library_names_spec='${libname}${shared_ext}'
11605 dynamic_linker="$host_os ld.so"
11606 shlibpath_var=LIBRARY_PATH
11607 ;;
11608
11609 bsdi[45]*)
11610 version_type=linux
11611 need_version=no
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11618 # the default ld.so.conf also contains /usr/contrib/lib and
11619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11620 # libtool to hard-code these into programs
11621 ;;
11622
11623 cygwin* | mingw* | pw32*)
11624 version_type=windows
11625 shrext_cmds=".dll"
11626 need_version=no
11627 need_lib_prefix=no
11628
11629 case $GCC,$host_os in
11630 yes,cygwin* | yes,mingw* | yes,pw32*)
11631 library_names_spec='$libname.dll.a'
11632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11633 postinstall_cmds='base_file=`basename \${file}`~
11634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11635 dldir=$destdir/`dirname \$dlpath`~
11636 test -d \$dldir || mkdir -p \$dldir~
11637 $install_prog $dir/$dlname \$dldir/$dlname'
11638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11639 dlpath=$dir/\$dldll~
11640 $rm \$dlpath'
11641 shlibpath_overrides_runpath=yes
11642
11643 case $host_os in
11644 cygwin*)
11645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11648 ;;
11649 mingw*)
11650 # MinGW DLLs use traditional 'lib' prefix
11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11654 # It is most probably a Windows format PATH printed by
11655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11656 # path with ; separators, and with drive letters. We can handle the
11657 # drive letters (cygwin fileutils understands them), so leave them,
11658 # especially as we might pass files found there to a mingw objdump,
11659 # which wouldn't understand a cygwinified path. Ahh.
11660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11661 else
11662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11663 fi
11664 ;;
11665 pw32*)
11666 # pw32 DLLs use 'pw' prefix rather than 'lib'
11667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668 ;;
11669 esac
11670 ;;
11671
11672 *)
11673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11674 ;;
11675 esac
11676 dynamic_linker='Win32 ld.exe'
11677 # FIXME: first we should search . and the directory the executable is in
11678 shlibpath_var=PATH
11679 ;;
11680
11681 darwin* | rhapsody*)
11682 dynamic_linker="$host_os dyld"
11683 version_type=darwin
11684 need_lib_prefix=no
11685 need_version=no
11686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11687 soname_spec='${libname}${release}${major}$shared_ext'
11688 shlibpath_overrides_runpath=yes
11689 shlibpath_var=DYLD_LIBRARY_PATH
11690 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11692 if test "$GCC" = yes; then
11693 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"`
11694 else
11695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11696 fi
11697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11698 ;;
11699
11700 dgux*)
11701 version_type=linux
11702 need_lib_prefix=no
11703 need_version=no
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 ;;
11708
11709 freebsd1*)
11710 dynamic_linker=no
11711 ;;
11712
11713 kfreebsd*-gnu)
11714 version_type=linux
11715 need_lib_prefix=no
11716 need_version=no
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11718 soname_spec='${libname}${release}${shared_ext}$major'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721 hardcode_into_libs=yes
11722 dynamic_linker='GNU ld.so'
11723 ;;
11724
11725 freebsd* | dragonfly*)
11726 # DragonFly does not have aout. When/if they implement a new
11727 # versioning mechanism, adjust this.
11728 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11729 version_type=freebsd-$objformat
11730 case $version_type in
11731 freebsd-elf*)
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11733 need_version=no
11734 need_lib_prefix=no
11735 ;;
11736 freebsd-*)
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11738 need_version=yes
11739 ;;
11740 esac
11741 shlibpath_var=LD_LIBRARY_PATH
11742 case $host_os in
11743 freebsd2*)
11744 shlibpath_overrides_runpath=yes
11745 ;;
11746 freebsd3.[01]* | freebsdelf3.[01]*)
11747 shlibpath_overrides_runpath=yes
11748 hardcode_into_libs=yes
11749 ;;
11750 *) # from 3.2 on
11751 shlibpath_overrides_runpath=no
11752 hardcode_into_libs=yes
11753 ;;
11754 esac
11755 ;;
11756
11757 gnu*)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 hardcode_into_libs=yes
11765 ;;
11766
11767 hpux9* | hpux10* | hpux11*)
11768 # Give a soname corresponding to the major version so that dld.sl refuses to
11769 # link against other versions.
11770 version_type=sunos
11771 need_lib_prefix=no
11772 need_version=no
11773 case "$host_cpu" in
11774 ia64*)
11775 shrext_cmds='.so'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.so"
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 if test "X$HPUX_IA64_MODE" = X32; then
11783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11784 else
11785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11786 fi
11787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11788 ;;
11789 hppa*64*)
11790 shrext_cmds='.sl'
11791 hardcode_into_libs=yes
11792 dynamic_linker="$host_os dld.sl"
11793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11799 ;;
11800 *)
11801 shrext_cmds='.sl'
11802 dynamic_linker="$host_os dld.sl"
11803 shlibpath_var=SHLIB_PATH
11804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 ;;
11808 esac
11809 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810 postinstall_cmds='chmod 555 $lib'
11811 ;;
11812
11813 irix5* | irix6* | nonstopux*)
11814 case $host_os in
11815 nonstopux*) version_type=nonstopux ;;
11816 *)
11817 if test "$lt_cv_prog_gnu_ld" = yes; then
11818 version_type=linux
11819 else
11820 version_type=irix
11821 fi ;;
11822 esac
11823 need_lib_prefix=no
11824 need_version=no
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827 case $host_os in
11828 irix5* | nonstopux*)
11829 libsuff= shlibsuff=
11830 ;;
11831 *)
11832 case $LD in # libtool.m4 will add one of these switches to LD
11833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834 libsuff= shlibsuff= libmagic=32-bit;;
11835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836 libsuff=32 shlibsuff=N32 libmagic=N32;;
11837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839 *) libsuff= shlibsuff= libmagic=never-match;;
11840 esac
11841 ;;
11842 esac
11843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844 shlibpath_overrides_runpath=no
11845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847 hardcode_into_libs=yes
11848 ;;
11849
11850 # No shared lib support for Linux oldld, aout, or coff.
11851 linux*oldld* | linux*aout* | linux*coff*)
11852 dynamic_linker=no
11853 ;;
11854
11855 # This must be Linux ELF.
11856 linux*)
11857 version_type=linux
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=no
11865 # This implies no fast_install, which is unacceptable.
11866 # Some rework will be needed to allow for fast_install
11867 # before this can be enabled.
11868 hardcode_into_libs=yes
11869
11870 # find out which ABI we are using
11871 libsuff=
11872 case "$host_cpu" in
11873 x86_64*|s390x*|powerpc64*)
11874 echo '#line 11874 "configure"' > conftest.$ac_ext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876 (eval $ac_compile) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; then
11880 case `/usr/bin/file conftest.$ac_objext` in
11881 *64-bit*)
11882 libsuff=64
11883 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11884 ;;
11885 esac
11886 fi
11887 rm -rf conftest*
11888 ;;
11889 esac
11890
11891 # Append ld.so.conf contents to the search path
11892 if test -f /etc/ld.so.conf; then
11893 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11894 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11895 fi
11896
11897 # We used to test for /lib/ld.so.1 and disable shared libraries on
11898 # powerpc, because MkLinux only supported shared libraries with the
11899 # GNU dynamic linker. Since this was broken with cross compilers,
11900 # most powerpc-linux boxes support dynamic linking these days and
11901 # people can always --disable-shared, the test was removed, and we
11902 # assume the GNU/Linux dynamic linker is in use.
11903 dynamic_linker='GNU/Linux ld.so'
11904 ;;
11905
11906 knetbsd*-gnu)
11907 version_type=linux
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 shlibpath_var=LD_LIBRARY_PATH
11913 shlibpath_overrides_runpath=no
11914 hardcode_into_libs=yes
11915 dynamic_linker='GNU ld.so'
11916 ;;
11917
11918 netbsd*)
11919 version_type=sunos
11920 need_lib_prefix=no
11921 need_version=no
11922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11925 dynamic_linker='NetBSD (a.out) ld.so'
11926 else
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11928 soname_spec='${libname}${release}${shared_ext}$major'
11929 dynamic_linker='NetBSD ld.elf_so'
11930 fi
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=yes
11933 hardcode_into_libs=yes
11934 ;;
11935
11936 newsos6)
11937 version_type=linux
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=yes
11941 ;;
11942
11943 nto-qnx*)
11944 version_type=linux
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11951 ;;
11952
11953 openbsd*)
11954 version_type=sunos
11955 need_lib_prefix=no
11956 need_version=no
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11961 case $host_os in
11962 openbsd2.[89] | openbsd2.[89].*)
11963 shlibpath_overrides_runpath=no
11964 ;;
11965 *)
11966 shlibpath_overrides_runpath=yes
11967 ;;
11968 esac
11969 else
11970 shlibpath_overrides_runpath=yes
11971 fi
11972 ;;
11973
11974 os2*)
11975 libname_spec='$name'
11976 shrext_cmds=".dll"
11977 need_lib_prefix=no
11978 library_names_spec='$libname${shared_ext} $libname.a'
11979 dynamic_linker='OS/2 ld.exe'
11980 shlibpath_var=LIBPATH
11981 ;;
11982
11983 osf3* | osf4* | osf5*)
11984 version_type=osf
11985 need_lib_prefix=no
11986 need_version=no
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11992 ;;
11993
11994 sco3.2v5*)
11995 version_type=osf
11996 soname_spec='${libname}${release}${shared_ext}$major'
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 ;;
12000
12001 solaris*)
12002 version_type=linux
12003 need_lib_prefix=no
12004 need_version=no
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12010 # ldd complains unless libraries are executable
12011 postinstall_cmds='chmod +x $lib'
12012 ;;
12013
12014 sunos4*)
12015 version_type=sunos
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 shlibpath_overrides_runpath=yes
12020 if test "$with_gnu_ld" = yes; then
12021 need_lib_prefix=no
12022 fi
12023 need_version=yes
12024 ;;
12025
12026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12027 version_type=linux
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 case $host_vendor in
12032 sni)
12033 shlibpath_overrides_runpath=no
12034 need_lib_prefix=no
12035 export_dynamic_flag_spec='${wl}-Blargedynsym'
12036 runpath_var=LD_RUN_PATH
12037 ;;
12038 siemens)
12039 need_lib_prefix=no
12040 ;;
12041 motorola)
12042 need_lib_prefix=no
12043 need_version=no
12044 shlibpath_overrides_runpath=no
12045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12046 ;;
12047 esac
12048 ;;
12049
12050 sysv4*MP*)
12051 if test -d /usr/nec ;then
12052 version_type=linux
12053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12054 soname_spec='$libname${shared_ext}.$major'
12055 shlibpath_var=LD_LIBRARY_PATH
12056 fi
12057 ;;
12058
12059 uts4*)
12060 version_type=linux
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 ;;
12065
12066 *)
12067 dynamic_linker=no
12068 ;;
12069 esac
12070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12071 echo "${ECHO_T}$dynamic_linker" >&6
12072 test "$dynamic_linker" = no && can_build_shared=no
12073
12074 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12075 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12076 hardcode_action_CXX=
12077 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12078 test -n "$runpath_var_CXX" || \
12079 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12080
12081 # We can hardcode non-existant directories.
12082 if test "$hardcode_direct_CXX" != no &&
12083 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12084 # have to relink, otherwise we might link with an installed library
12085 # when we should be linking with a yet-to-be-installed one
12086 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12087 test "$hardcode_minus_L_CXX" != no; then
12088 # Linking always hardcodes the temporary library directory.
12089 hardcode_action_CXX=relink
12090 else
12091 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12092 hardcode_action_CXX=immediate
12093 fi
12094 else
12095 # We cannot hardcode anything, or else we can only hardcode existing
12096 # directories.
12097 hardcode_action_CXX=unsupported
12098 fi
12099 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12100 echo "${ECHO_T}$hardcode_action_CXX" >&6
12101
12102 if test "$hardcode_action_CXX" = relink; then
12103 # Fast installation is not supported
12104 enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106 test "$enable_shared" = no; then
12107 # Fast installation is not necessary
12108 enable_fast_install=needless
12109 fi
12110
12111 striplib=
12112 old_striplib=
12113 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12114 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12115 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12116 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12117 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12118 echo "$as_me:$LINENO: result: yes" >&5
12119 echo "${ECHO_T}yes" >&6
12120 else
12121 # FIXME - insert some real tests, host_os isn't really good enough
12122 case $host_os in
12123 darwin*)
12124 if test -n "$STRIP" ; then
12125 striplib="$STRIP -x"
12126 echo "$as_me:$LINENO: result: yes" >&5
12127 echo "${ECHO_T}yes" >&6
12128 else
12129 echo "$as_me:$LINENO: result: no" >&5
12130 echo "${ECHO_T}no" >&6
12131 fi
12132 ;;
12133 *)
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 ;;
12137 esac
12138 fi
12139
12140 if test "x$enable_dlopen" != xyes; then
12141 enable_dlopen=unknown
12142 enable_dlopen_self=unknown
12143 enable_dlopen_self_static=unknown
12144 else
12145 lt_cv_dlopen=no
12146 lt_cv_dlopen_libs=
12147
12148 case $host_os in
12149 beos*)
12150 lt_cv_dlopen="load_add_on"
12151 lt_cv_dlopen_libs=
12152 lt_cv_dlopen_self=yes
12153 ;;
12154
12155 mingw* | pw32*)
12156 lt_cv_dlopen="LoadLibrary"
12157 lt_cv_dlopen_libs=
12158 ;;
12159
12160 cygwin*)
12161 lt_cv_dlopen="dlopen"
12162 lt_cv_dlopen_libs=
12163 ;;
12164
12165 darwin*)
12166 # if libdl is installed we need to link against it
12167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12168 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-ldl $LIBS"
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 /* We use char because int might match the return type of a gcc2
12186 builtin and then its argument prototype would still apply. */
12187 char dlopen ();
12188 int
12189 main ()
12190 {
12191 dlopen ();
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198 (eval $ac_link) 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_lib_dl_dlopen=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_cv_lib_dl_dlopen=no
12223 fi
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12230 if test $ac_cv_lib_dl_dlopen = yes; then
12231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12232 else
12233
12234 lt_cv_dlopen="dyld"
12235 lt_cv_dlopen_libs=
12236 lt_cv_dlopen_self=yes
12237
12238 fi
12239
12240 ;;
12241
12242 *)
12243 echo "$as_me:$LINENO: checking for shl_load" >&5
12244 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12245 if test "${ac_cv_func_shl_load+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12256 #define shl_load innocuous_shl_load
12257
12258 /* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char shl_load (); below.
12260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261 <limits.h> exists even on freestanding compilers. */
12262
12263 #ifdef __STDC__
12264 # include <limits.h>
12265 #else
12266 # include <assert.h>
12267 #endif
12268
12269 #undef shl_load
12270
12271 /* Override any gcc2 internal prototype to avoid an error. */
12272 #ifdef __cplusplus
12273 extern "C"
12274 {
12275 #endif
12276 /* We use char because int might match the return type of a gcc2
12277 builtin and then its argument prototype would still apply. */
12278 char shl_load ();
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12283 choke me
12284 #else
12285 char (*f) () = shl_load;
12286 #endif
12287 #ifdef __cplusplus
12288 }
12289 #endif
12290
12291 int
12292 main ()
12293 {
12294 return f != shl_load;
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_func_shl_load=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_func_shl_load=no
12326 fi
12327 rm -f conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 fi
12330 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12331 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12332 if test $ac_cv_func_shl_load = yes; then
12333 lt_cv_dlopen="shl_load"
12334 else
12335 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12336 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12337 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-ldld $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348
12349 /* Override any gcc2 internal prototype to avoid an error. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12355 char shl_load ();
12356 int
12357 main ()
12358 {
12359 shl_load ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_lib_dld_shl_load=yes
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_lib_dld_shl_load=no
12391 fi
12392 rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 LIBS=$ac_check_lib_save_LIBS
12395 fi
12396 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12397 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12398 if test $ac_cv_lib_dld_shl_load = yes; then
12399 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12400 else
12401 echo "$as_me:$LINENO: checking for dlopen" >&5
12402 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12403 if test "${ac_cv_func_dlopen+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12414 #define dlopen innocuous_dlopen
12415
12416 /* System header to define __stub macros and hopefully few prototypes,
12417 which can conflict with char dlopen (); below.
12418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12419 <limits.h> exists even on freestanding compilers. */
12420
12421 #ifdef __STDC__
12422 # include <limits.h>
12423 #else
12424 # include <assert.h>
12425 #endif
12426
12427 #undef dlopen
12428
12429 /* Override any gcc2 internal prototype to avoid an error. */
12430 #ifdef __cplusplus
12431 extern "C"
12432 {
12433 #endif
12434 /* We use char because int might match the return type of a gcc2
12435 builtin and then its argument prototype would still apply. */
12436 char dlopen ();
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12441 choke me
12442 #else
12443 char (*f) () = dlopen;
12444 #endif
12445 #ifdef __cplusplus
12446 }
12447 #endif
12448
12449 int
12450 main ()
12451 {
12452 return f != dlopen;
12453 ;
12454 return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12459 (eval $ac_link) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
12478 ac_cv_func_dlopen=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_cv_func_dlopen=no
12484 fi
12485 rm -f conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 fi
12488 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12489 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12490 if test $ac_cv_func_dlopen = yes; then
12491 lt_cv_dlopen="dlopen"
12492 else
12493 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12494 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12495 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 ac_check_lib_save_LIBS=$LIBS
12499 LIBS="-ldl $LIBS"
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506
12507 /* Override any gcc2 internal prototype to avoid an error. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 /* We use char because int might match the return type of a gcc2
12512 builtin and then its argument prototype would still apply. */
12513 char dlopen ();
12514 int
12515 main ()
12516 {
12517 dlopen ();
12518 ;
12519 return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12524 (eval $ac_link) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_lib_dl_dlopen=yes
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_cv_lib_dl_dlopen=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12553 fi
12554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12556 if test $ac_cv_lib_dl_dlopen = yes; then
12557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12558 else
12559 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12560 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12561 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lsvld $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572
12573 /* Override any gcc2 internal prototype to avoid an error. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 /* We use char because int might match the return type of a gcc2
12578 builtin and then its argument prototype would still apply. */
12579 char dlopen ();
12580 int
12581 main ()
12582 {
12583 dlopen ();
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590 (eval $ac_link) 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest$ac_exeext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_lib_svld_dlopen=yes
12610 else
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_cv_lib_svld_dlopen=no
12615 fi
12616 rm -f conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12621 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12622 if test $ac_cv_lib_svld_dlopen = yes; then
12623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12624 else
12625 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12626 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12627 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-ldld $LIBS"
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h. */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char dld_link ();
12646 int
12647 main ()
12648 {
12649 dld_link ();
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest$ac_exeext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_lib_dld_dld_link=yes
12676 else
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_cv_lib_dld_dld_link=no
12681 fi
12682 rm -f conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12685 fi
12686 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12688 if test $ac_cv_lib_dld_dld_link = yes; then
12689 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12690 fi
12691
12692
12693 fi
12694
12695
12696 fi
12697
12698
12699 fi
12700
12701
12702 fi
12703
12704
12705 fi
12706
12707 ;;
12708 esac
12709
12710 if test "x$lt_cv_dlopen" != xno; then
12711 enable_dlopen=yes
12712 else
12713 enable_dlopen=no
12714 fi
12715
12716 case $lt_cv_dlopen in
12717 dlopen)
12718 save_CPPFLAGS="$CPPFLAGS"
12719 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12720
12721 save_LDFLAGS="$LDFLAGS"
12722 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12723
12724 save_LIBS="$LIBS"
12725 LIBS="$lt_cv_dlopen_libs $LIBS"
12726
12727 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12728 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12729 if test "${lt_cv_dlopen_self+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 if test "$cross_compiling" = yes; then :
12733 lt_cv_dlopen_self=cross
12734 else
12735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12736 lt_status=$lt_dlunknown
12737 cat > conftest.$ac_ext <<EOF
12738 #line 12738 "configure"
12739 #include "confdefs.h"
12740
12741 #if HAVE_DLFCN_H
12742 #include <dlfcn.h>
12743 #endif
12744
12745 #include <stdio.h>
12746
12747 #ifdef RTLD_GLOBAL
12748 # define LT_DLGLOBAL RTLD_GLOBAL
12749 #else
12750 # ifdef DL_GLOBAL
12751 # define LT_DLGLOBAL DL_GLOBAL
12752 # else
12753 # define LT_DLGLOBAL 0
12754 # endif
12755 #endif
12756
12757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12758 find out it does not work in some platform. */
12759 #ifndef LT_DLLAZY_OR_NOW
12760 # ifdef RTLD_LAZY
12761 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12762 # else
12763 # ifdef DL_LAZY
12764 # define LT_DLLAZY_OR_NOW DL_LAZY
12765 # else
12766 # ifdef RTLD_NOW
12767 # define LT_DLLAZY_OR_NOW RTLD_NOW
12768 # else
12769 # ifdef DL_NOW
12770 # define LT_DLLAZY_OR_NOW DL_NOW
12771 # else
12772 # define LT_DLLAZY_OR_NOW 0
12773 # endif
12774 # endif
12775 # endif
12776 # endif
12777 #endif
12778
12779 #ifdef __cplusplus
12780 extern "C" void exit (int);
12781 #endif
12782
12783 void fnord() { int i=42;}
12784 int main ()
12785 {
12786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12787 int status = $lt_dlunknown;
12788
12789 if (self)
12790 {
12791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793 /* dlclose (self); */
12794 }
12795
12796 exit (status);
12797 }
12798 EOF
12799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12800 (eval $ac_link) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12804 (./conftest; exit; ) 2>/dev/null
12805 lt_status=$?
12806 case x$lt_status in
12807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12809 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12810 esac
12811 else :
12812 # compilation failed
12813 lt_cv_dlopen_self=no
12814 fi
12815 fi
12816 rm -fr conftest*
12817
12818
12819 fi
12820 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12821 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12822
12823 if test "x$lt_cv_dlopen_self" = xyes; then
12824 LDFLAGS="$LDFLAGS $link_static_flag"
12825 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12826 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12827 if test "${lt_cv_dlopen_self_static+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 if test "$cross_compiling" = yes; then :
12831 lt_cv_dlopen_self_static=cross
12832 else
12833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12834 lt_status=$lt_dlunknown
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12836 "configure"
12837 #include "confdefs.h"
12838
12839 #if HAVE_DLFCN_H
12840 #include <dlfcn.h>
12841 #endif
12842
12843 #include <stdio.h>
12844
12845 #ifdef RTLD_GLOBAL
12846 # define LT_DLGLOBAL RTLD_GLOBAL
12847 #else
12848 # ifdef DL_GLOBAL
12849 # define LT_DLGLOBAL DL_GLOBAL
12850 # else
12851 # define LT_DLGLOBAL 0
12852 # endif
12853 #endif
12854
12855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12856 find out it does not work in some platform. */
12857 #ifndef LT_DLLAZY_OR_NOW
12858 # ifdef RTLD_LAZY
12859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12860 # else
12861 # ifdef DL_LAZY
12862 # define LT_DLLAZY_OR_NOW DL_LAZY
12863 # else
12864 # ifdef RTLD_NOW
12865 # define LT_DLLAZY_OR_NOW RTLD_NOW
12866 # else
12867 # ifdef DL_NOW
12868 # define LT_DLLAZY_OR_NOW DL_NOW
12869 # else
12870 # define LT_DLLAZY_OR_NOW 0
12871 # endif
12872 # endif
12873 # endif
12874 # endif
12875 #endif
12876
12877 #ifdef __cplusplus
12878 extern "C" void exit (int);
12879 #endif
12880
12881 void fnord() { int i=42;}
12882 int main ()
12883 {
12884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12885 int status = $lt_dlunknown;
12886
12887 if (self)
12888 {
12889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12891 /* dlclose (self); */
12892 }
12893
12894 exit (status);
12895 }
12896 EOF
12897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898 (eval $ac_link) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12902 (./conftest; exit; ) 2>/dev/null
12903 lt_status=$?
12904 case x$lt_status in
12905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12907 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12908 esac
12909 else :
12910 # compilation failed
12911 lt_cv_dlopen_self_static=no
12912 fi
12913 fi
12914 rm -fr conftest*
12915
12916
12917 fi
12918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12919 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12920 fi
12921
12922 CPPFLAGS="$save_CPPFLAGS"
12923 LDFLAGS="$save_LDFLAGS"
12924 LIBS="$save_LIBS"
12925 ;;
12926 esac
12927
12928 case $lt_cv_dlopen_self in
12929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12930 *) enable_dlopen_self=unknown ;;
12931 esac
12932
12933 case $lt_cv_dlopen_self_static in
12934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12935 *) enable_dlopen_self_static=unknown ;;
12936 esac
12937 fi
12938
12939
12940 # The else clause should only fire when bootstrapping the
12941 # libtool distribution, otherwise you forgot to ship ltmain.sh
12942 # with your package, and you will get complaints that there are
12943 # no rules to generate ltmain.sh.
12944 if test -f "$ltmain"; then
12945 # See if we are running on zsh, and set the options which allow our commands through
12946 # without removal of \ escapes.
12947 if test -n "${ZSH_VERSION+set}" ; then
12948 setopt NO_GLOB_SUBST
12949 fi
12950 # Now quote all the things that may contain metacharacters while being
12951 # careful not to overquote the AC_SUBSTed values. We take copies of the
12952 # variables and quote the copies for generation of the libtool script.
12953 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12954 SED SHELL STRIP \
12955 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12956 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12957 deplibs_check_method reload_flag reload_cmds need_locks \
12958 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12959 lt_cv_sys_global_symbol_to_c_name_address \
12960 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12961 old_postinstall_cmds old_postuninstall_cmds \
12962 compiler_CXX \
12963 CC_CXX \
12964 LD_CXX \
12965 lt_prog_compiler_wl_CXX \
12966 lt_prog_compiler_pic_CXX \
12967 lt_prog_compiler_static_CXX \
12968 lt_prog_compiler_no_builtin_flag_CXX \
12969 export_dynamic_flag_spec_CXX \
12970 thread_safe_flag_spec_CXX \
12971 whole_archive_flag_spec_CXX \
12972 enable_shared_with_static_runtimes_CXX \
12973 old_archive_cmds_CXX \
12974 old_archive_from_new_cmds_CXX \
12975 predep_objects_CXX \
12976 postdep_objects_CXX \
12977 predeps_CXX \
12978 postdeps_CXX \
12979 compiler_lib_search_path_CXX \
12980 archive_cmds_CXX \
12981 archive_expsym_cmds_CXX \
12982 postinstall_cmds_CXX \
12983 postuninstall_cmds_CXX \
12984 old_archive_from_expsyms_cmds_CXX \
12985 allow_undefined_flag_CXX \
12986 no_undefined_flag_CXX \
12987 export_symbols_cmds_CXX \
12988 hardcode_libdir_flag_spec_CXX \
12989 hardcode_libdir_flag_spec_ld_CXX \
12990 hardcode_libdir_separator_CXX \
12991 hardcode_automatic_CXX \
12992 module_cmds_CXX \
12993 module_expsym_cmds_CXX \
12994 lt_cv_prog_compiler_c_o_CXX \
12995 exclude_expsyms_CXX \
12996 include_expsyms_CXX; do
12997
12998 case $var in
12999 old_archive_cmds_CXX | \
13000 old_archive_from_new_cmds_CXX | \
13001 archive_cmds_CXX | \
13002 archive_expsym_cmds_CXX | \
13003 module_cmds_CXX | \
13004 module_expsym_cmds_CXX | \
13005 old_archive_from_expsyms_cmds_CXX | \
13006 export_symbols_cmds_CXX | \
13007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13008 postinstall_cmds | postuninstall_cmds | \
13009 old_postinstall_cmds | old_postuninstall_cmds | \
13010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13011 # Double-quote double-evaled strings.
13012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13013 ;;
13014 *)
13015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13016 ;;
13017 esac
13018 done
13019
13020 case $lt_echo in
13021 *'\$0 --fallback-echo"')
13022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13023 ;;
13024 esac
13025
13026 cfgfile="$ofile"
13027
13028 cat <<__EOF__ >> "$cfgfile"
13029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13030
13031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13032
13033 # Shell to use when invoking shell scripts.
13034 SHELL=$lt_SHELL
13035
13036 # Whether or not to build shared libraries.
13037 build_libtool_libs=$enable_shared
13038
13039 # Whether or not to build static libraries.
13040 build_old_libs=$enable_static
13041
13042 # Whether or not to add -lc for building shared libraries.
13043 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13044
13045 # Whether or not to disallow shared libs when runtime libs are static
13046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13047
13048 # Whether or not to optimize for fast installation.
13049 fast_install=$enable_fast_install
13050
13051 # The host system.
13052 host_alias=$host_alias
13053 host=$host
13054 host_os=$host_os
13055
13056 # The build system.
13057 build_alias=$build_alias
13058 build=$build
13059 build_os=$build_os
13060
13061 # An echo program that does not interpret backslashes.
13062 echo=$lt_echo
13063
13064 # The archiver.
13065 AR=$lt_AR
13066 AR_FLAGS=$lt_AR_FLAGS
13067
13068 # A C compiler.
13069 LTCC=$lt_LTCC
13070
13071 # A language-specific compiler.
13072 CC=$lt_compiler_CXX
13073
13074 # Is the compiler the GNU C compiler?
13075 with_gcc=$GCC_CXX
13076
13077 # An ERE matcher.
13078 EGREP=$lt_EGREP
13079
13080 # The linker used to build libraries.
13081 LD=$lt_LD_CXX
13082
13083 # Whether we need hard or soft links.
13084 LN_S=$lt_LN_S
13085
13086 # A BSD-compatible nm program.
13087 NM=$lt_NM
13088
13089 # A symbol stripping program
13090 STRIP=$lt_STRIP
13091
13092 # Used to examine libraries when file_magic_cmd begins "file"
13093 MAGIC_CMD=$MAGIC_CMD
13094
13095 # Used on cygwin: DLL creation program.
13096 DLLTOOL="$DLLTOOL"
13097
13098 # Used on cygwin: object dumper.
13099 OBJDUMP="$OBJDUMP"
13100
13101 # Used on cygwin: assembler.
13102 AS="$AS"
13103
13104 # The name of the directory that contains temporary libtool files.
13105 objdir=$objdir
13106
13107 # How to create reloadable object files.
13108 reload_flag=$lt_reload_flag
13109 reload_cmds=$lt_reload_cmds
13110
13111 # How to pass a linker flag through the compiler.
13112 wl=$lt_lt_prog_compiler_wl_CXX
13113
13114 # Object file suffix (normally "o").
13115 objext="$ac_objext"
13116
13117 # Old archive suffix (normally "a").
13118 libext="$libext"
13119
13120 # Shared library suffix (normally ".so").
13121 shrext_cmds='$shrext_cmds'
13122
13123 # Executable file suffix (normally "").
13124 exeext="$exeext"
13125
13126 # Additional compiler flags for building library objects.
13127 pic_flag=$lt_lt_prog_compiler_pic_CXX
13128 pic_mode=$pic_mode
13129
13130 # What is the maximum length of a command?
13131 max_cmd_len=$lt_cv_sys_max_cmd_len
13132
13133 # Does compiler simultaneously support -c and -o options?
13134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13135
13136 # Must we lock files when doing compilation?
13137 need_locks=$lt_need_locks
13138
13139 # Do we need the lib prefix for modules?
13140 need_lib_prefix=$need_lib_prefix
13141
13142 # Do we need a version for libraries?
13143 need_version=$need_version
13144
13145 # Whether dlopen is supported.
13146 dlopen_support=$enable_dlopen
13147
13148 # Whether dlopen of programs is supported.
13149 dlopen_self=$enable_dlopen_self
13150
13151 # Whether dlopen of statically linked programs is supported.
13152 dlopen_self_static=$enable_dlopen_self_static
13153
13154 # Compiler flag to prevent dynamic linking.
13155 link_static_flag=$lt_lt_prog_compiler_static_CXX
13156
13157 # Compiler flag to turn off builtin functions.
13158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13159
13160 # Compiler flag to allow reflexive dlopens.
13161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13162
13163 # Compiler flag to generate shared objects directly from archives.
13164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13165
13166 # Compiler flag to generate thread-safe objects.
13167 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13168
13169 # Library versioning type.
13170 version_type=$version_type
13171
13172 # Format of library name prefix.
13173 libname_spec=$lt_libname_spec
13174
13175 # List of archive names. First name is the real one, the rest are links.
13176 # The last name is the one that the linker finds with -lNAME.
13177 library_names_spec=$lt_library_names_spec
13178
13179 # The coded name of the library, if different from the real name.
13180 soname_spec=$lt_soname_spec
13181
13182 # Commands used to build and install an old-style archive.
13183 RANLIB=$lt_RANLIB
13184 old_archive_cmds=$lt_old_archive_cmds_CXX
13185 old_postinstall_cmds=$lt_old_postinstall_cmds
13186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13187
13188 # Create an old-style archive from a shared archive.
13189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13190
13191 # Create a temporary old-style archive to link instead of a shared archive.
13192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13193
13194 # Commands used to build and install a shared archive.
13195 archive_cmds=$lt_archive_cmds_CXX
13196 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13197 postinstall_cmds=$lt_postinstall_cmds
13198 postuninstall_cmds=$lt_postuninstall_cmds
13199
13200 # Commands used to build a loadable module (assumed same as above if empty)
13201 module_cmds=$lt_module_cmds_CXX
13202 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13203
13204 # Commands to strip libraries.
13205 old_striplib=$lt_old_striplib
13206 striplib=$lt_striplib
13207
13208 # Dependencies to place before the objects being linked to create a
13209 # shared library.
13210 predep_objects=$lt_predep_objects_CXX
13211
13212 # Dependencies to place after the objects being linked to create a
13213 # shared library.
13214 postdep_objects=$lt_postdep_objects_CXX
13215
13216 # Dependencies to place before the objects being linked to create a
13217 # shared library.
13218 predeps=$lt_predeps_CXX
13219
13220 # Dependencies to place after the objects being linked to create a
13221 # shared library.
13222 postdeps=$lt_postdeps_CXX
13223
13224 # The library search path used internally by the compiler when linking
13225 # a shared library.
13226 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13227
13228 # Method to check whether dependent libraries are shared objects.
13229 deplibs_check_method=$lt_deplibs_check_method
13230
13231 # Command to use when deplibs_check_method == file_magic.
13232 file_magic_cmd=$lt_file_magic_cmd
13233
13234 # Flag that allows shared libraries with undefined symbols to be built.
13235 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13236
13237 # Flag that forces no undefined symbols.
13238 no_undefined_flag=$lt_no_undefined_flag_CXX
13239
13240 # Commands used to finish a libtool library installation in a directory.
13241 finish_cmds=$lt_finish_cmds
13242
13243 # Same as above, but a single script fragment to be evaled but not shown.
13244 finish_eval=$lt_finish_eval
13245
13246 # Take the output of nm and produce a listing of raw symbols and C names.
13247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13248
13249 # Transform the output of nm in a proper C declaration
13250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13251
13252 # Transform the output of nm in a C name address pair
13253 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13254
13255 # This is the shared library runtime path variable.
13256 runpath_var=$runpath_var
13257
13258 # This is the shared library path variable.
13259 shlibpath_var=$shlibpath_var
13260
13261 # Is shlibpath searched before the hard-coded library search path?
13262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13263
13264 # How to hardcode a shared library path into an executable.
13265 hardcode_action=$hardcode_action_CXX
13266
13267 # Whether we should hardcode library paths into libraries.
13268 hardcode_into_libs=$hardcode_into_libs
13269
13270 # Flag to hardcode \$libdir into a binary during linking.
13271 # This must work even if \$libdir does not exist.
13272 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13273
13274 # If ld is used when linking, flag to hardcode \$libdir into
13275 # a binary during linking. This must work even if \$libdir does
13276 # not exist.
13277 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13278
13279 # Whether we need a single -rpath flag with a separated argument.
13280 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13281
13282 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13283 # resulting binary.
13284 hardcode_direct=$hardcode_direct_CXX
13285
13286 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13287 # resulting binary.
13288 hardcode_minus_L=$hardcode_minus_L_CXX
13289
13290 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13291 # the resulting binary.
13292 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13293
13294 # Set to yes if building a shared library automatically hardcodes DIR into the library
13295 # and all subsequent libraries and executables linked against it.
13296 hardcode_automatic=$hardcode_automatic_CXX
13297
13298 # Variables whose values should be saved in libtool wrapper scripts and
13299 # restored at relink time.
13300 variables_saved_for_relink="$variables_saved_for_relink"
13301
13302 # Whether libtool must link a program against all its dependency libraries.
13303 link_all_deplibs=$link_all_deplibs_CXX
13304
13305 # Compile-time system search path for libraries
13306 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13307
13308 # Run-time system search path for libraries
13309 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13310
13311 # Fix the shell variable \$srcfile for the compiler.
13312 fix_srcfile_path="$fix_srcfile_path_CXX"
13313
13314 # Set to yes if exported symbols are required.
13315 always_export_symbols=$always_export_symbols_CXX
13316
13317 # The commands to list exported symbols.
13318 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13319
13320 # The commands to extract the exported symbol list from a shared archive.
13321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13322
13323 # Symbols that should not be listed in the preloaded symbols.
13324 exclude_expsyms=$lt_exclude_expsyms_CXX
13325
13326 # Symbols that must always be exported.
13327 include_expsyms=$lt_include_expsyms_CXX
13328
13329 # ### END LIBTOOL TAG CONFIG: $tagname
13330
13331 __EOF__
13332
13333
13334 else
13335 # If there is no Makefile yet, we rely on a make rule to execute
13336 # `config.status --recheck' to rerun these tests and create the
13337 # libtool script then.
13338 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13339 if test -f "$ltmain_in"; then
13340 test -f Makefile && make "$ltmain"
13341 fi
13342 fi
13343
13344
13345 ac_ext=c
13346 ac_cpp='$CPP $CPPFLAGS'
13347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13350
13351 CC=$lt_save_CC
13352 LDCXX=$LD
13353 LD=$lt_save_LD
13354 GCC=$lt_save_GCC
13355 with_gnu_ldcxx=$with_gnu_ld
13356 with_gnu_ld=$lt_save_with_gnu_ld
13357 lt_cv_path_LDCXX=$lt_cv_path_LD
13358 lt_cv_path_LD=$lt_save_path_LD
13359 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13360 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13361
13362 else
13363 tagname=""
13364 fi
13365 ;;
13366
13367 F77)
13368 if test -n "$F77" && test "X$F77" != "Xno"; then
13369
13370 ac_ext=f
13371 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13372 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13374
13375
13376 archive_cmds_need_lc_F77=no
13377 allow_undefined_flag_F77=
13378 always_export_symbols_F77=no
13379 archive_expsym_cmds_F77=
13380 export_dynamic_flag_spec_F77=
13381 hardcode_direct_F77=no
13382 hardcode_libdir_flag_spec_F77=
13383 hardcode_libdir_flag_spec_ld_F77=
13384 hardcode_libdir_separator_F77=
13385 hardcode_minus_L_F77=no
13386 hardcode_automatic_F77=no
13387 module_cmds_F77=
13388 module_expsym_cmds_F77=
13389 link_all_deplibs_F77=unknown
13390 old_archive_cmds_F77=$old_archive_cmds
13391 no_undefined_flag_F77=
13392 whole_archive_flag_spec_F77=
13393 enable_shared_with_static_runtimes_F77=no
13394
13395 # Source file extension for f77 test sources.
13396 ac_ext=f
13397
13398 # Object file extension for compiled f77 test sources.
13399 objext=o
13400 objext_F77=$objext
13401
13402 # Code to be used in simple compile tests
13403 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13404
13405 # Code to be used in simple link tests
13406 lt_simple_link_test_code=" program t\n end\n"
13407
13408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13409
13410 # If no C compiler was specified, use CC.
13411 LTCC=${LTCC-"$CC"}
13412
13413 # Allow CC to be a program name with arguments.
13414 compiler=$CC
13415
13416
13417 # save warnings/boilerplate of simple test code
13418 ac_outfile=conftest.$ac_objext
13419 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13421 _lt_compiler_boilerplate=`cat conftest.err`
13422 $rm conftest*
13423
13424 ac_outfile=conftest.$ac_objext
13425 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13427 _lt_linker_boilerplate=`cat conftest.err`
13428 $rm conftest*
13429
13430
13431 # Allow CC to be a program name with arguments.
13432 lt_save_CC="$CC"
13433 CC=${F77-"f77"}
13434 compiler=$CC
13435 compiler_F77=$CC
13436 for cc_temp in $compiler""; do
13437 case $cc_temp in
13438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13440 \-*) ;;
13441 *) break;;
13442 esac
13443 done
13444 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13445
13446
13447 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13448 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13449 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13450 echo "${ECHO_T}$can_build_shared" >&6
13451
13452 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13453 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13454 test "$can_build_shared" = "no" && enable_shared=no
13455
13456 # On AIX, shared libraries and static libraries use the same namespace, and
13457 # are all built from PIC.
13458 case "$host_os" in
13459 aix3*)
13460 test "$enable_shared" = yes && enable_static=no
13461 if test -n "$RANLIB"; then
13462 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13463 postinstall_cmds='$RANLIB $lib'
13464 fi
13465 ;;
13466 aix4* | aix5*)
13467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13468 test "$enable_shared" = yes && enable_static=no
13469 fi
13470 ;;
13471 esac
13472 echo "$as_me:$LINENO: result: $enable_shared" >&5
13473 echo "${ECHO_T}$enable_shared" >&6
13474
13475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13476 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13477 # Make sure either enable_shared or enable_static is yes.
13478 test "$enable_shared" = yes || enable_static=yes
13479 echo "$as_me:$LINENO: result: $enable_static" >&5
13480 echo "${ECHO_T}$enable_static" >&6
13481
13482 test "$ld_shlibs_F77" = no && can_build_shared=no
13483
13484 GCC_F77="$G77"
13485 LD_F77="$LD"
13486
13487 lt_prog_compiler_wl_F77=
13488 lt_prog_compiler_pic_F77=
13489 lt_prog_compiler_static_F77=
13490
13491 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13492 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13493
13494 if test "$GCC" = yes; then
13495 lt_prog_compiler_wl_F77='-Wl,'
13496 lt_prog_compiler_static_F77='-static'
13497
13498 case $host_os in
13499 aix*)
13500 # All AIX code is PIC.
13501 if test "$host_cpu" = ia64; then
13502 # AIX 5 now supports IA64 processor
13503 lt_prog_compiler_static_F77='-Bstatic'
13504 fi
13505 ;;
13506
13507 amigaos*)
13508 # FIXME: we need at least 68020 code to build shared libraries, but
13509 # adding the `-m68020' flag to GCC prevents building anything better,
13510 # like `-m68040'.
13511 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13512 ;;
13513
13514 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13515 # PIC is the default for these OSes.
13516 ;;
13517
13518 mingw* | pw32* | os2*)
13519 # This hack is so that the source file can tell whether it is being
13520 # built for inclusion in a dll (and should export symbols for example).
13521 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13522 ;;
13523
13524 darwin* | rhapsody*)
13525 # PIC is the default on this platform
13526 # Common symbols not allowed in MH_DYLIB files
13527 lt_prog_compiler_pic_F77='-fno-common'
13528 ;;
13529
13530 msdosdjgpp*)
13531 # Just because we use GCC doesn't mean we suddenly get shared libraries
13532 # on systems that don't support them.
13533 lt_prog_compiler_can_build_shared_F77=no
13534 enable_shared=no
13535 ;;
13536
13537 sysv4*MP*)
13538 if test -d /usr/nec; then
13539 lt_prog_compiler_pic_F77=-Kconform_pic
13540 fi
13541 ;;
13542
13543 hpux*)
13544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13545 # not for PA HP-UX.
13546 case "$host_cpu" in
13547 hppa*64*|ia64*)
13548 # +Z the default
13549 ;;
13550 *)
13551 lt_prog_compiler_pic_F77='-fPIC'
13552 ;;
13553 esac
13554 ;;
13555
13556 *)
13557 lt_prog_compiler_pic_F77='-fPIC'
13558 ;;
13559 esac
13560 else
13561 # PORTME Check for flag to pass linker flags through the system compiler.
13562 case $host_os in
13563 aix*)
13564 lt_prog_compiler_wl_F77='-Wl,'
13565 if test "$host_cpu" = ia64; then
13566 # AIX 5 now supports IA64 processor
13567 lt_prog_compiler_static_F77='-Bstatic'
13568 else
13569 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13570 fi
13571 ;;
13572 darwin*)
13573 # PIC is the default on this platform
13574 # Common symbols not allowed in MH_DYLIB files
13575 case $cc_basename in
13576 xlc*)
13577 lt_prog_compiler_pic_F77='-qnocommon'
13578 lt_prog_compiler_wl_F77='-Wl,'
13579 ;;
13580 esac
13581 ;;
13582
13583 mingw* | pw32* | os2*)
13584 # This hack is so that the source file can tell whether it is being
13585 # built for inclusion in a dll (and should export symbols for example).
13586 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13587 ;;
13588
13589 hpux9* | hpux10* | hpux11*)
13590 lt_prog_compiler_wl_F77='-Wl,'
13591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13592 # not for PA HP-UX.
13593 case "$host_cpu" in
13594 hppa*64*|ia64*)
13595 # +Z the default
13596 ;;
13597 *)
13598 lt_prog_compiler_pic_F77='+Z'
13599 ;;
13600 esac
13601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13602 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13603 ;;
13604
13605 irix5* | irix6* | nonstopux*)
13606 lt_prog_compiler_wl_F77='-Wl,'
13607 # PIC (with -KPIC) is the default.
13608 lt_prog_compiler_static_F77='-non_shared'
13609 ;;
13610
13611 newsos6)
13612 lt_prog_compiler_pic_F77='-KPIC'
13613 lt_prog_compiler_static_F77='-Bstatic'
13614 ;;
13615
13616 linux*)
13617 case $cc_basename in
13618 icc* | ecc*)
13619 lt_prog_compiler_wl_F77='-Wl,'
13620 lt_prog_compiler_pic_F77='-KPIC'
13621 lt_prog_compiler_static_F77='-static'
13622 ;;
13623 pgcc* | pgf77* | pgf90*)
13624 # Portland Group compilers (*not* the Pentium gcc compiler,
13625 # which looks to be a dead project)
13626 lt_prog_compiler_wl_F77='-Wl,'
13627 lt_prog_compiler_pic_F77='-fpic'
13628 lt_prog_compiler_static_F77='-static'
13629 ;;
13630 ccc*)
13631 lt_prog_compiler_wl_F77='-Wl,'
13632 # All Alpha code is PIC.
13633 lt_prog_compiler_static_F77='-non_shared'
13634 ;;
13635 esac
13636 ;;
13637
13638 osf3* | osf4* | osf5*)
13639 lt_prog_compiler_wl_F77='-Wl,'
13640 # All OSF/1 code is PIC.
13641 lt_prog_compiler_static_F77='-non_shared'
13642 ;;
13643
13644 sco3.2v5*)
13645 lt_prog_compiler_pic_F77='-Kpic'
13646 lt_prog_compiler_static_F77='-dn'
13647 ;;
13648
13649 solaris*)
13650 lt_prog_compiler_pic_F77='-KPIC'
13651 lt_prog_compiler_static_F77='-Bstatic'
13652 case $cc_basename in
13653 f77* | f90* | f95*)
13654 lt_prog_compiler_wl_F77='-Qoption ld ';;
13655 *)
13656 lt_prog_compiler_wl_F77='-Wl,';;
13657 esac
13658 ;;
13659
13660 sunos4*)
13661 lt_prog_compiler_wl_F77='-Qoption ld '
13662 lt_prog_compiler_pic_F77='-PIC'
13663 lt_prog_compiler_static_F77='-Bstatic'
13664 ;;
13665
13666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13667 lt_prog_compiler_wl_F77='-Wl,'
13668 lt_prog_compiler_pic_F77='-KPIC'
13669 lt_prog_compiler_static_F77='-Bstatic'
13670 ;;
13671
13672 sysv4*MP*)
13673 if test -d /usr/nec ;then
13674 lt_prog_compiler_pic_F77='-Kconform_pic'
13675 lt_prog_compiler_static_F77='-Bstatic'
13676 fi
13677 ;;
13678
13679 unicos*)
13680 lt_prog_compiler_wl_F77='-Wl,'
13681 lt_prog_compiler_can_build_shared_F77=no
13682 ;;
13683
13684 uts4*)
13685 lt_prog_compiler_pic_F77='-pic'
13686 lt_prog_compiler_static_F77='-Bstatic'
13687 ;;
13688
13689 *)
13690 lt_prog_compiler_can_build_shared_F77=no
13691 ;;
13692 esac
13693 fi
13694
13695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13696 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13697
13698 #
13699 # Check to make sure the PIC flag actually works.
13700 #
13701 if test -n "$lt_prog_compiler_pic_F77"; then
13702
13703 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13704 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13705 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708 lt_prog_compiler_pic_works_F77=no
13709 ac_outfile=conftest.$ac_objext
13710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13711 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13712 # Insert the option either (1) after the last *FLAGS variable, or
13713 # (2) before a word containing "conftest.", or (3) at the end.
13714 # Note that $ac_compile itself does not contain backslashes and begins
13715 # with a dollar sign (not a hyphen), so the echo should work correctly.
13716 # The option is referenced via a variable to avoid confusing sed.
13717 lt_compile=`echo "$ac_compile" | $SED \
13718 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13720 -e 's:$: $lt_compiler_flag:'`
13721 (eval echo "\"\$as_me:13721: $lt_compile\"" >&5)
13722 (eval "$lt_compile" 2>conftest.err)
13723 ac_status=$?
13724 cat conftest.err >&5
13725 echo "$as_me:13725: \$? = $ac_status" >&5
13726 if (exit $ac_status) && test -s "$ac_outfile"; then
13727 # The compiler can only warn and ignore the option if not recognized
13728 # So say no if there are warnings other than the usual output.
13729 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13730 $SED '/^$/d' conftest.err >conftest.er2
13731 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13732 lt_prog_compiler_pic_works_F77=yes
13733 fi
13734 fi
13735 $rm conftest*
13736
13737 fi
13738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13739 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13740
13741 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13742 case $lt_prog_compiler_pic_F77 in
13743 "" | " "*) ;;
13744 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13745 esac
13746 else
13747 lt_prog_compiler_pic_F77=
13748 lt_prog_compiler_can_build_shared_F77=no
13749 fi
13750
13751 fi
13752 case "$host_os" in
13753 # For platforms which do not support PIC, -DPIC is meaningless:
13754 *djgpp*)
13755 lt_prog_compiler_pic_F77=
13756 ;;
13757 *)
13758 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13759 ;;
13760 esac
13761
13762 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13763 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13764 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767 lt_cv_prog_compiler_c_o_F77=no
13768 $rm -r conftest 2>/dev/null
13769 mkdir conftest
13770 cd conftest
13771 mkdir out
13772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13773
13774 lt_compiler_flag="-o out/conftest2.$ac_objext"
13775 # Insert the option either (1) after the last *FLAGS variable, or
13776 # (2) before a word containing "conftest.", or (3) at the end.
13777 # Note that $ac_compile itself does not contain backslashes and begins
13778 # with a dollar sign (not a hyphen), so the echo should work correctly.
13779 lt_compile=`echo "$ac_compile" | $SED \
13780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782 -e 's:$: $lt_compiler_flag:'`
13783 (eval echo "\"\$as_me:13783: $lt_compile\"" >&5)
13784 (eval "$lt_compile" 2>out/conftest.err)
13785 ac_status=$?
13786 cat out/conftest.err >&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13789 then
13790 # The compiler can only warn and ignore the option if not recognized
13791 # So say no if there are warnings
13792 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13793 $SED '/^$/d' out/conftest.err >out/conftest.er2
13794 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13795 lt_cv_prog_compiler_c_o_F77=yes
13796 fi
13797 fi
13798 chmod u+w .
13799 $rm conftest*
13800 # SGI C++ compiler will create directory out/ii_files/ for
13801 # template instantiation
13802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13803 $rm out/* && rmdir out
13804 cd ..
13805 rmdir conftest
13806 $rm conftest*
13807
13808 fi
13809 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13810 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13811
13812
13813 hard_links="nottested"
13814 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13815 # do not overwrite the value of need_locks provided by the user
13816 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13817 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13818 hard_links=yes
13819 $rm conftest*
13820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13821 touch conftest.a
13822 ln conftest.a conftest.b 2>&5 || hard_links=no
13823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13824 echo "$as_me:$LINENO: result: $hard_links" >&5
13825 echo "${ECHO_T}$hard_links" >&6
13826 if test "$hard_links" = no; then
13827 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13828 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13829 need_locks=warn
13830 fi
13831 else
13832 need_locks=no
13833 fi
13834
13835 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13836 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13837
13838 runpath_var=
13839 allow_undefined_flag_F77=
13840 enable_shared_with_static_runtimes_F77=no
13841 archive_cmds_F77=
13842 archive_expsym_cmds_F77=
13843 old_archive_From_new_cmds_F77=
13844 old_archive_from_expsyms_cmds_F77=
13845 export_dynamic_flag_spec_F77=
13846 whole_archive_flag_spec_F77=
13847 thread_safe_flag_spec_F77=
13848 hardcode_libdir_flag_spec_F77=
13849 hardcode_libdir_flag_spec_ld_F77=
13850 hardcode_libdir_separator_F77=
13851 hardcode_direct_F77=no
13852 hardcode_minus_L_F77=no
13853 hardcode_shlibpath_var_F77=unsupported
13854 link_all_deplibs_F77=unknown
13855 hardcode_automatic_F77=no
13856 module_cmds_F77=
13857 module_expsym_cmds_F77=
13858 always_export_symbols_F77=no
13859 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13860 # include_expsyms should be a list of space-separated symbols to be *always*
13861 # included in the symbol list
13862 include_expsyms_F77=
13863 # exclude_expsyms can be an extended regexp of symbols to exclude
13864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13866 # as well as any symbol that contains `d'.
13867 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13869 # platforms (ab)use it in PIC code, but their linkers get confused if
13870 # the symbol is explicitly referenced. Since portable code cannot
13871 # rely on this symbol name, it's probably fine to never include it in
13872 # preloaded symbol tables.
13873 extract_expsyms_cmds=
13874 # Just being paranoid about ensuring that cc_basename is set.
13875 for cc_temp in $compiler""; do
13876 case $cc_temp in
13877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13879 \-*) ;;
13880 *) break;;
13881 esac
13882 done
13883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13884
13885 case $host_os in
13886 cygwin* | mingw* | pw32*)
13887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13888 # When not using gcc, we currently assume that we are using
13889 # Microsoft Visual C++.
13890 if test "$GCC" != yes; then
13891 with_gnu_ld=no
13892 fi
13893 ;;
13894 openbsd*)
13895 with_gnu_ld=no
13896 ;;
13897 esac
13898
13899 ld_shlibs_F77=yes
13900 if test "$with_gnu_ld" = yes; then
13901 # If archive_cmds runs LD, not CC, wlarc should be empty
13902 wlarc='${wl}'
13903
13904 # Set some defaults for GNU ld with shared library support. These
13905 # are reset later if shared libraries are not supported. Putting them
13906 # here allows them to be overridden if necessary.
13907 runpath_var=LD_RUN_PATH
13908 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13909 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13910 # ancient GNU ld didn't support --whole-archive et. al.
13911 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13912 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13913 else
13914 whole_archive_flag_spec_F77=
13915 fi
13916 supports_anon_versioning=no
13917 case `$LD -v 2>/dev/null` in
13918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13921 *\ 2.11.*) ;; # other 2.11 versions
13922 *) supports_anon_versioning=yes ;;
13923 esac
13924
13925 # See if GNU ld supports shared libraries.
13926 case $host_os in
13927 aix3* | aix4* | aix5*)
13928 # On AIX/PPC, the GNU linker is very broken
13929 if test "$host_cpu" != ia64; then
13930 ld_shlibs_F77=no
13931 cat <<EOF 1>&2
13932
13933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13934 *** to be unable to reliably create shared libraries on AIX.
13935 *** Therefore, libtool is disabling shared libraries support. If you
13936 *** really care for shared libraries, you may want to modify your PATH
13937 *** so that a non-GNU linker is found, and then restart.
13938
13939 EOF
13940 fi
13941 ;;
13942
13943 amigaos*)
13944 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)'
13945 hardcode_libdir_flag_spec_F77='-L$libdir'
13946 hardcode_minus_L_F77=yes
13947
13948 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13949 # that the semantics of dynamic libraries on AmigaOS, at least up
13950 # to version 4, is to share data among multiple programs linked
13951 # with the same dynamic library. Since this doesn't match the
13952 # behavior of shared libraries on other platforms, we can't use
13953 # them.
13954 ld_shlibs_F77=no
13955 ;;
13956
13957 beos*)
13958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13959 allow_undefined_flag_F77=unsupported
13960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13961 # support --undefined. This deserves some investigation. FIXME
13962 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 else
13964 ld_shlibs_F77=no
13965 fi
13966 ;;
13967
13968 cygwin* | mingw* | pw32*)
13969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13970 # as there is no search path for DLLs.
13971 hardcode_libdir_flag_spec_F77='-L$libdir'
13972 allow_undefined_flag_F77=unsupported
13973 always_export_symbols_F77=no
13974 enable_shared_with_static_runtimes_F77=yes
13975 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13976
13977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13978 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13979 # If the export-symbols file already is a .def file (1st line
13980 # is EXPORTS), use it as is; otherwise, prepend...
13981 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13982 cp $export_symbols $output_objdir/$soname.def;
13983 else
13984 echo EXPORTS > $output_objdir/$soname.def;
13985 cat $export_symbols >> $output_objdir/$soname.def;
13986 fi~
13987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13988 else
13989 ld_shlibs_F77=no
13990 fi
13991 ;;
13992
13993 linux*)
13994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13995 tmp_addflag=
13996 case $cc_basename,$host_cpu in
13997 pgcc*) # Portland Group C compiler
13998 whole_archive_flag_spec_F77=
13999 ;;
14000 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14001 whole_archive_flag_spec_F77=
14002 tmp_addflag=' -fpic -Mnomain' ;;
14003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14004 tmp_addflag=' -i_dynamic' ;;
14005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14006 tmp_addflag=' -i_dynamic -nofor_main' ;;
14007 ifc* | ifort*) # Intel Fortran compiler
14008 tmp_addflag=' -nofor_main' ;;
14009 esac
14010 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011
14012 if test $supports_anon_versioning = yes; then
14013 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14015 $echo "local: *; };" >> $output_objdir/$libname.ver~
14016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14017 fi
14018 else
14019 ld_shlibs_F77=no
14020 fi
14021 ;;
14022
14023 netbsd*)
14024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14025 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14026 wlarc=
14027 else
14028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14029 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14030 fi
14031 ;;
14032
14033 solaris* | sysv5*)
14034 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14035 ld_shlibs_F77=no
14036 cat <<EOF 1>&2
14037
14038 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14039 *** create shared libraries on Solaris systems. Therefore, libtool
14040 *** is disabling shared libraries support. We urge you to upgrade GNU
14041 *** binutils to release 2.9.1 or newer. Another option is to modify
14042 *** your PATH or compiler configuration so that the native linker is
14043 *** used, and then restart.
14044
14045 EOF
14046 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049 else
14050 ld_shlibs_F77=no
14051 fi
14052 ;;
14053
14054 sunos4*)
14055 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14056 wlarc=
14057 hardcode_direct_F77=yes
14058 hardcode_shlibpath_var_F77=no
14059 ;;
14060
14061 *)
14062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14064 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14065 else
14066 ld_shlibs_F77=no
14067 fi
14068 ;;
14069 esac
14070
14071 if test "$ld_shlibs_F77" = no; then
14072 runpath_var=
14073 hardcode_libdir_flag_spec_F77=
14074 export_dynamic_flag_spec_F77=
14075 whole_archive_flag_spec_F77=
14076 fi
14077 else
14078 # PORTME fill in a description of your system's linker (not GNU ld)
14079 case $host_os in
14080 aix3*)
14081 allow_undefined_flag_F77=unsupported
14082 always_export_symbols_F77=yes
14083 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'
14084 # Note: this linker hardcodes the directories in LIBPATH if there
14085 # are no directories specified by -L.
14086 hardcode_minus_L_F77=yes
14087 if test "$GCC" = yes && test -z "$link_static_flag"; then
14088 # Neither direct hardcoding nor static linking is supported with a
14089 # broken collect2.
14090 hardcode_direct_F77=unsupported
14091 fi
14092 ;;
14093
14094 aix4* | aix5*)
14095 if test "$host_cpu" = ia64; then
14096 # On IA64, the linker does run time linking by default, so we don't
14097 # have to do anything special.
14098 aix_use_runtimelinking=no
14099 exp_sym_flag='-Bexport'
14100 no_entry_flag=""
14101 else
14102 # If we're using GNU nm, then we don't want the "-C" option.
14103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14104 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14105 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'
14106 else
14107 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'
14108 fi
14109 aix_use_runtimelinking=no
14110
14111 # Test if we are trying to use run time linking or normal
14112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14113 # need to do runtime linking.
14114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14115 for ld_flag in $LDFLAGS; do
14116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14117 aix_use_runtimelinking=yes
14118 break
14119 fi
14120 done
14121 esac
14122
14123 exp_sym_flag='-bexport'
14124 no_entry_flag='-bnoentry'
14125 fi
14126
14127 # When large executables or shared objects are built, AIX ld can
14128 # have problems creating the table of contents. If linking a library
14129 # or program results in "error TOC overflow" add -mminimal-toc to
14130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14132
14133 archive_cmds_F77=''
14134 hardcode_direct_F77=yes
14135 hardcode_libdir_separator_F77=':'
14136 link_all_deplibs_F77=yes
14137
14138 if test "$GCC" = yes; then
14139 case $host_os in aix4.[012]|aix4.[012].*)
14140 # We only want to do this on AIX 4.2 and lower, the check
14141 # below for broken collect2 doesn't work under 4.3+
14142 collect2name=`${CC} -print-prog-name=collect2`
14143 if test -f "$collect2name" && \
14144 strings "$collect2name" | grep resolve_lib_name >/dev/null
14145 then
14146 # We have reworked collect2
14147 hardcode_direct_F77=yes
14148 else
14149 # We have old collect2
14150 hardcode_direct_F77=unsupported
14151 # It fails to find uninstalled libraries when the uninstalled
14152 # path is not listed in the libpath. Setting hardcode_minus_L
14153 # to unsupported forces relinking
14154 hardcode_minus_L_F77=yes
14155 hardcode_libdir_flag_spec_F77='-L$libdir'
14156 hardcode_libdir_separator_F77=
14157 fi
14158 esac
14159 shared_flag='-shared'
14160 if test "$aix_use_runtimelinking" = yes; then
14161 shared_flag="$shared_flag "'${wl}-G'
14162 fi
14163 else
14164 # not using gcc
14165 if test "$host_cpu" = ia64; then
14166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14167 # chokes on -Wl,-G. The following line is correct:
14168 shared_flag='-G'
14169 else
14170 if test "$aix_use_runtimelinking" = yes; then
14171 shared_flag='${wl}-G'
14172 else
14173 shared_flag='${wl}-bM:SRE'
14174 fi
14175 fi
14176 fi
14177
14178 # It seems that -bexpall does not export symbols beginning with
14179 # underscore (_), so it is better to generate a list of symbols to export.
14180 always_export_symbols_F77=yes
14181 if test "$aix_use_runtimelinking" = yes; then
14182 # Warning - without using the other runtime loading flags (-brtl),
14183 # -berok will link without error, but may produce a broken library.
14184 allow_undefined_flag_F77='-berok'
14185 # Determine the default libpath from the value encoded in an empty executable.
14186 cat >conftest.$ac_ext <<_ACEOF
14187 program main
14188
14189 end
14190 _ACEOF
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14193 (eval $ac_link) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212
14213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14214 }'`
14215 # Check for a 64-bit object if we didn't find anything.
14216 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; }
14217 }'`; fi
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 fi
14223 rm -f conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14226
14227 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14228 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"
14229 else
14230 if test "$host_cpu" = ia64; then
14231 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14232 allow_undefined_flag_F77="-z nodefs"
14233 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"
14234 else
14235 # Determine the default libpath from the value encoded in an empty executable.
14236 cat >conftest.$ac_ext <<_ACEOF
14237 program main
14238
14239 end
14240 _ACEOF
14241 rm -f conftest.$ac_objext conftest$ac_exeext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest$ac_exeext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14259 ac_status=$?
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262
14263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14264 }'`
14265 # Check for a 64-bit object if we didn't find anything.
14266 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; }
14267 }'`; fi
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 fi
14273 rm -f conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14276
14277 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14278 # Warning - without using the other run time loading flags,
14279 # -berok will link without error, but may produce a broken library.
14280 no_undefined_flag_F77=' ${wl}-bernotok'
14281 allow_undefined_flag_F77=' ${wl}-berok'
14282 # -bexpall does not export symbols beginning with underscore (_)
14283 always_export_symbols_F77=yes
14284 # Exported symbols can be pulled into shared objects from archives
14285 whole_archive_flag_spec_F77=' '
14286 archive_cmds_need_lc_F77=yes
14287 # This is similar to how AIX traditionally builds it's shared libraries.
14288 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'
14289 fi
14290 fi
14291 ;;
14292
14293 amigaos*)
14294 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)'
14295 hardcode_libdir_flag_spec_F77='-L$libdir'
14296 hardcode_minus_L_F77=yes
14297 # see comment about different semantics on the GNU ld section
14298 ld_shlibs_F77=no
14299 ;;
14300
14301 bsdi[45]*)
14302 export_dynamic_flag_spec_F77=-rdynamic
14303 ;;
14304
14305 cygwin* | mingw* | pw32*)
14306 # When not using gcc, we currently assume that we are using
14307 # Microsoft Visual C++.
14308 # hardcode_libdir_flag_spec is actually meaningless, as there is
14309 # no search path for DLLs.
14310 hardcode_libdir_flag_spec_F77=' '
14311 allow_undefined_flag_F77=unsupported
14312 # Tell ltmain to make .lib files, not .a files.
14313 libext=lib
14314 # Tell ltmain to make .dll files, not .so files.
14315 shrext_cmds=".dll"
14316 # FIXME: Setting linknames here is a bad hack.
14317 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14318 # The linker will automatically build a .lib file if we build a DLL.
14319 old_archive_From_new_cmds_F77='true'
14320 # FIXME: Should let the user specify the lib program.
14321 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14322 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14323 enable_shared_with_static_runtimes_F77=yes
14324 ;;
14325
14326 darwin* | rhapsody*)
14327 case "$host_os" in
14328 rhapsody* | darwin1.[012])
14329 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14330 ;;
14331 *) # Darwin 1.3 on
14332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14333 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14334 else
14335 case ${MACOSX_DEPLOYMENT_TARGET} in
14336 10.[012])
14337 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14338 ;;
14339 10.*)
14340 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14341 ;;
14342 esac
14343 fi
14344 ;;
14345 esac
14346 archive_cmds_need_lc_F77=no
14347 hardcode_direct_F77=no
14348 hardcode_automatic_F77=yes
14349 hardcode_shlibpath_var_F77=unsupported
14350 whole_archive_flag_spec_F77=''
14351 link_all_deplibs_F77=yes
14352 if test "$GCC" = yes ; then
14353 output_verbose_link_cmd='echo'
14354 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14355 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14357 archive_expsym_cmds_F77='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}'
14358 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}'
14359 else
14360 case $cc_basename in
14361 xlc*)
14362 output_verbose_link_cmd='echo'
14363 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14364 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14366 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14367 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}'
14368 ;;
14369 *)
14370 ld_shlibs_F77=no
14371 ;;
14372 esac
14373 fi
14374 ;;
14375
14376 dgux*)
14377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14378 hardcode_libdir_flag_spec_F77='-L$libdir'
14379 hardcode_shlibpath_var_F77=no
14380 ;;
14381
14382 freebsd1*)
14383 ld_shlibs_F77=no
14384 ;;
14385
14386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14387 # support. Future versions do this automatically, but an explicit c++rt0.o
14388 # does not break anything, and helps significantly (at the cost of a little
14389 # extra space).
14390 freebsd2.2*)
14391 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14392 hardcode_libdir_flag_spec_F77='-R$libdir'
14393 hardcode_direct_F77=yes
14394 hardcode_shlibpath_var_F77=no
14395 ;;
14396
14397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14398 freebsd2*)
14399 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14400 hardcode_direct_F77=yes
14401 hardcode_minus_L_F77=yes
14402 hardcode_shlibpath_var_F77=no
14403 ;;
14404
14405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14406 freebsd* | kfreebsd*-gnu | dragonfly*)
14407 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14408 hardcode_libdir_flag_spec_F77='-R$libdir'
14409 hardcode_direct_F77=yes
14410 hardcode_shlibpath_var_F77=no
14411 ;;
14412
14413 hpux9*)
14414 if test "$GCC" = yes; then
14415 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'
14416 else
14417 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'
14418 fi
14419 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14420 hardcode_libdir_separator_F77=:
14421 hardcode_direct_F77=yes
14422
14423 # hardcode_minus_L: Not really in the search PATH,
14424 # but as the default location of the library.
14425 hardcode_minus_L_F77=yes
14426 export_dynamic_flag_spec_F77='${wl}-E'
14427 ;;
14428
14429 hpux10* | hpux11*)
14430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14431 case "$host_cpu" in
14432 hppa*64*|ia64*)
14433 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14434 ;;
14435 *)
14436 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14437 ;;
14438 esac
14439 else
14440 case "$host_cpu" in
14441 hppa*64*|ia64*)
14442 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14443 ;;
14444 *)
14445 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14446 ;;
14447 esac
14448 fi
14449 if test "$with_gnu_ld" = no; then
14450 case "$host_cpu" in
14451 hppa*64*)
14452 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14453 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14454 hardcode_libdir_separator_F77=:
14455 hardcode_direct_F77=no
14456 hardcode_shlibpath_var_F77=no
14457 ;;
14458 ia64*)
14459 hardcode_libdir_flag_spec_F77='-L$libdir'
14460 hardcode_direct_F77=no
14461 hardcode_shlibpath_var_F77=no
14462
14463 # hardcode_minus_L: Not really in the search PATH,
14464 # but as the default location of the library.
14465 hardcode_minus_L_F77=yes
14466 ;;
14467 *)
14468 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14469 hardcode_libdir_separator_F77=:
14470 hardcode_direct_F77=yes
14471 export_dynamic_flag_spec_F77='${wl}-E'
14472
14473 # hardcode_minus_L: Not really in the search PATH,
14474 # but as the default location of the library.
14475 hardcode_minus_L_F77=yes
14476 ;;
14477 esac
14478 fi
14479 ;;
14480
14481 irix5* | irix6* | nonstopux*)
14482 if test "$GCC" = yes; then
14483 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'
14484 else
14485 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'
14486 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14487 fi
14488 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14489 hardcode_libdir_separator_F77=:
14490 link_all_deplibs_F77=yes
14491 ;;
14492
14493 netbsd*)
14494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14495 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14496 else
14497 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14498 fi
14499 hardcode_libdir_flag_spec_F77='-R$libdir'
14500 hardcode_direct_F77=yes
14501 hardcode_shlibpath_var_F77=no
14502 ;;
14503
14504 newsos6)
14505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_direct_F77=yes
14507 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14508 hardcode_libdir_separator_F77=:
14509 hardcode_shlibpath_var_F77=no
14510 ;;
14511
14512 openbsd*)
14513 hardcode_direct_F77=yes
14514 hardcode_shlibpath_var_F77=no
14515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14516 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14518 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14519 export_dynamic_flag_spec_F77='${wl}-E'
14520 else
14521 case $host_os in
14522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14523 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_libdir_flag_spec_F77='-R$libdir'
14525 ;;
14526 *)
14527 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14528 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14529 ;;
14530 esac
14531 fi
14532 ;;
14533
14534 os2*)
14535 hardcode_libdir_flag_spec_F77='-L$libdir'
14536 hardcode_minus_L_F77=yes
14537 allow_undefined_flag_F77=unsupported
14538 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'
14539 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14540 ;;
14541
14542 osf3*)
14543 if test "$GCC" = yes; then
14544 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14545 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'
14546 else
14547 allow_undefined_flag_F77=' -expect_unresolved \*'
14548 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'
14549 fi
14550 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14551 hardcode_libdir_separator_F77=:
14552 ;;
14553
14554 osf4* | osf5*) # as osf3* with the addition of -msym flag
14555 if test "$GCC" = yes; then
14556 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14557 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'
14558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14559 else
14560 allow_undefined_flag_F77=' -expect_unresolved \*'
14561 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'
14562 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~
14563 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14564
14565 # Both c and cxx compiler support -rpath directly
14566 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14567 fi
14568 hardcode_libdir_separator_F77=:
14569 ;;
14570
14571 sco3.2v5*)
14572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14573 hardcode_shlibpath_var_F77=no
14574 export_dynamic_flag_spec_F77='${wl}-Bexport'
14575 runpath_var=LD_RUN_PATH
14576 hardcode_runpath_var=yes
14577 ;;
14578
14579 solaris*)
14580 no_undefined_flag_F77=' -z text'
14581 if test "$GCC" = yes; then
14582 wlarc='${wl}'
14583 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14584 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14586 else
14587 wlarc=''
14588 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14589 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14591 fi
14592 hardcode_libdir_flag_spec_F77='-R$libdir'
14593 hardcode_shlibpath_var_F77=no
14594 case $host_os in
14595 solaris2.[0-5] | solaris2.[0-5].*) ;;
14596 *)
14597 # The compiler driver will combine linker options so we
14598 # cannot just pass the convience library names through
14599 # without $wl, iff we do not link with $LD.
14600 # Luckily, gcc supports the same syntax we need for Sun Studio.
14601 # Supported since Solaris 2.6 (maybe 2.5.1?)
14602 case $wlarc in
14603 '')
14604 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14605 *)
14606 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14607 esac ;;
14608 esac
14609 link_all_deplibs_F77=yes
14610 ;;
14611
14612 sunos4*)
14613 if test "x$host_vendor" = xsequent; then
14614 # Use $CC to link under sequent, because it throws in some extra .o
14615 # files that make .init and .fini sections work.
14616 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14617 else
14618 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14619 fi
14620 hardcode_libdir_flag_spec_F77='-L$libdir'
14621 hardcode_direct_F77=yes
14622 hardcode_minus_L_F77=yes
14623 hardcode_shlibpath_var_F77=no
14624 ;;
14625
14626 sysv4)
14627 case $host_vendor in
14628 sni)
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630 hardcode_direct_F77=yes # is this really true???
14631 ;;
14632 siemens)
14633 ## LD is ld it makes a PLAMLIB
14634 ## CC just makes a GrossModule.
14635 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14636 reload_cmds_F77='$CC -r -o $output$reload_objs'
14637 hardcode_direct_F77=no
14638 ;;
14639 motorola)
14640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14642 ;;
14643 esac
14644 runpath_var='LD_RUN_PATH'
14645 hardcode_shlibpath_var_F77=no
14646 ;;
14647
14648 sysv4.3*)
14649 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_shlibpath_var_F77=no
14651 export_dynamic_flag_spec_F77='-Bexport'
14652 ;;
14653
14654 sysv4*MP*)
14655 if test -d /usr/nec; then
14656 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14657 hardcode_shlibpath_var_F77=no
14658 runpath_var=LD_RUN_PATH
14659 hardcode_runpath_var=yes
14660 ld_shlibs_F77=yes
14661 fi
14662 ;;
14663
14664 sysv4.2uw2*)
14665 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct_F77=yes
14667 hardcode_minus_L_F77=no
14668 hardcode_shlibpath_var_F77=no
14669 hardcode_runpath_var=yes
14670 runpath_var=LD_RUN_PATH
14671 ;;
14672
14673 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14674 no_undefined_flag_F77='${wl}-z ${wl}text'
14675 if test "$GCC" = yes; then
14676 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14677 else
14678 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14679 fi
14680 runpath_var='LD_RUN_PATH'
14681 hardcode_shlibpath_var_F77=no
14682 ;;
14683
14684 sysv5*)
14685 no_undefined_flag_F77=' -z text'
14686 # $CC -shared without GNU ld will not create a library from C++
14687 # object files and a static libstdc++, better avoid it by now
14688 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14689 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14690 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14691 hardcode_libdir_flag_spec_F77=
14692 hardcode_shlibpath_var_F77=no
14693 runpath_var='LD_RUN_PATH'
14694 ;;
14695
14696 uts4*)
14697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 hardcode_shlibpath_var_F77=no
14700 ;;
14701
14702 *)
14703 ld_shlibs_F77=no
14704 ;;
14705 esac
14706 fi
14707
14708 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14709 echo "${ECHO_T}$ld_shlibs_F77" >&6
14710 test "$ld_shlibs_F77" = no && can_build_shared=no
14711
14712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14713 if test "$GCC" = yes; then
14714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14715 fi
14716
14717 #
14718 # Do we need to explicitly link libc?
14719 #
14720 case "x$archive_cmds_need_lc_F77" in
14721 x|xyes)
14722 # Assume -lc should be added
14723 archive_cmds_need_lc_F77=yes
14724
14725 if test "$enable_shared" = yes && test "$GCC" = yes; then
14726 case $archive_cmds_F77 in
14727 *'~'*)
14728 # FIXME: we may have to deal with multi-command sequences.
14729 ;;
14730 '$CC '*)
14731 # Test whether the compiler implicitly links with -lc since on some
14732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14733 # to ld, don't add -lc before -lgcc.
14734 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14735 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14736 $rm conftest*
14737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14738
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740 (eval $ac_compile) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } 2>conftest.err; then
14744 soname=conftest
14745 lib=conftest
14746 libobjs=conftest.$ac_objext
14747 deplibs=
14748 wl=$lt_prog_compiler_wl_F77
14749 compiler_flags=-v
14750 linker_flags=-v
14751 verstring=
14752 output_objdir=.
14753 libname=conftest
14754 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14755 allow_undefined_flag_F77=
14756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14757 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }
14761 then
14762 archive_cmds_need_lc_F77=no
14763 else
14764 archive_cmds_need_lc_F77=yes
14765 fi
14766 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14767 else
14768 cat conftest.err 1>&5
14769 fi
14770 $rm conftest*
14771 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14772 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14773 ;;
14774 esac
14775 fi
14776 ;;
14777 esac
14778
14779 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14781 library_names_spec=
14782 libname_spec='lib$name'
14783 soname_spec=
14784 shrext_cmds=".so"
14785 postinstall_cmds=
14786 postuninstall_cmds=
14787 finish_cmds=
14788 finish_eval=
14789 shlibpath_var=
14790 shlibpath_overrides_runpath=unknown
14791 version_type=none
14792 dynamic_linker="$host_os ld.so"
14793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14794 if test "$GCC" = yes; then
14795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14797 # if the path contains ";" then we assume it to be the separator
14798 # otherwise default to the standard path separator (i.e. ":") - it is
14799 # assumed that no part of a normal pathname contains ";" but that should
14800 # okay in the real world where ";" in dirpaths is itself problematic.
14801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14802 else
14803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14804 fi
14805 else
14806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14807 fi
14808 need_lib_prefix=unknown
14809 hardcode_into_libs=no
14810
14811 # when you set need_version to no, make sure it does not cause -set_version
14812 # flags to be left without arguments
14813 need_version=unknown
14814
14815 case $host_os in
14816 aix3*)
14817 version_type=linux
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14819 shlibpath_var=LIBPATH
14820
14821 # AIX 3 has no versioning support, so we append a major version to the name.
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 ;;
14824
14825 aix4* | aix5*)
14826 version_type=linux
14827 need_lib_prefix=no
14828 need_version=no
14829 hardcode_into_libs=yes
14830 if test "$host_cpu" = ia64; then
14831 # AIX 5 supports IA64
14832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 else
14835 # With GCC up to 2.95.x, collect2 would create an import file
14836 # for dependence libraries. The import file would start with
14837 # the line `#! .'. This would cause the generated library to
14838 # depend on `.', always an invalid library. This was fixed in
14839 # development snapshots of GCC prior to 3.0.
14840 case $host_os in
14841 aix4 | aix4.[01] | aix4.[01].*)
14842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14843 echo ' yes '
14844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14845 :
14846 else
14847 can_build_shared=no
14848 fi
14849 ;;
14850 esac
14851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14852 # soname into executable. Probably we can add versioning support to
14853 # collect2, so additional links can be useful in future.
14854 if test "$aix_use_runtimelinking" = yes; then
14855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14856 # instead of lib<name>.a to let people know that these are not
14857 # typical AIX shared libraries.
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 else
14860 # We preserve .a as extension for shared libraries through AIX4.2
14861 # and later when we are not doing run time linking.
14862 library_names_spec='${libname}${release}.a $libname.a'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 fi
14865 shlibpath_var=LIBPATH
14866 fi
14867 ;;
14868
14869 amigaos*)
14870 library_names_spec='$libname.ixlibrary $libname.a'
14871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14872 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'
14873 ;;
14874
14875 beos*)
14876 library_names_spec='${libname}${shared_ext}'
14877 dynamic_linker="$host_os ld.so"
14878 shlibpath_var=LIBRARY_PATH
14879 ;;
14880
14881 bsdi[45]*)
14882 version_type=linux
14883 need_version=no
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14890 # the default ld.so.conf also contains /usr/contrib/lib and
14891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14892 # libtool to hard-code these into programs
14893 ;;
14894
14895 cygwin* | mingw* | pw32*)
14896 version_type=windows
14897 shrext_cmds=".dll"
14898 need_version=no
14899 need_lib_prefix=no
14900
14901 case $GCC,$host_os in
14902 yes,cygwin* | yes,mingw* | yes,pw32*)
14903 library_names_spec='$libname.dll.a'
14904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14905 postinstall_cmds='base_file=`basename \${file}`~
14906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14907 dldir=$destdir/`dirname \$dlpath`~
14908 test -d \$dldir || mkdir -p \$dldir~
14909 $install_prog $dir/$dlname \$dldir/$dlname'
14910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14911 dlpath=$dir/\$dldll~
14912 $rm \$dlpath'
14913 shlibpath_overrides_runpath=yes
14914
14915 case $host_os in
14916 cygwin*)
14917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14920 ;;
14921 mingw*)
14922 # MinGW DLLs use traditional 'lib' prefix
14923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14925 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14926 # It is most probably a Windows format PATH printed by
14927 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14928 # path with ; separators, and with drive letters. We can handle the
14929 # drive letters (cygwin fileutils understands them), so leave them,
14930 # especially as we might pass files found there to a mingw objdump,
14931 # which wouldn't understand a cygwinified path. Ahh.
14932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14933 else
14934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14935 fi
14936 ;;
14937 pw32*)
14938 # pw32 DLLs use 'pw' prefix rather than 'lib'
14939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14940 ;;
14941 esac
14942 ;;
14943
14944 *)
14945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14946 ;;
14947 esac
14948 dynamic_linker='Win32 ld.exe'
14949 # FIXME: first we should search . and the directory the executable is in
14950 shlibpath_var=PATH
14951 ;;
14952
14953 darwin* | rhapsody*)
14954 dynamic_linker="$host_os dyld"
14955 version_type=darwin
14956 need_lib_prefix=no
14957 need_version=no
14958 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14959 soname_spec='${libname}${release}${major}$shared_ext'
14960 shlibpath_overrides_runpath=yes
14961 shlibpath_var=DYLD_LIBRARY_PATH
14962 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14963 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14964 if test "$GCC" = yes; then
14965 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"`
14966 else
14967 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14968 fi
14969 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14970 ;;
14971
14972 dgux*)
14973 version_type=linux
14974 need_lib_prefix=no
14975 need_version=no
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 ;;
14980
14981 freebsd1*)
14982 dynamic_linker=no
14983 ;;
14984
14985 kfreebsd*-gnu)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 shlibpath_overrides_runpath=no
14993 hardcode_into_libs=yes
14994 dynamic_linker='GNU ld.so'
14995 ;;
14996
14997 freebsd* | dragonfly*)
14998 # DragonFly does not have aout. When/if they implement a new
14999 # versioning mechanism, adjust this.
15000 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15001 version_type=freebsd-$objformat
15002 case $version_type in
15003 freebsd-elf*)
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15005 need_version=no
15006 need_lib_prefix=no
15007 ;;
15008 freebsd-*)
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15010 need_version=yes
15011 ;;
15012 esac
15013 shlibpath_var=LD_LIBRARY_PATH
15014 case $host_os in
15015 freebsd2*)
15016 shlibpath_overrides_runpath=yes
15017 ;;
15018 freebsd3.[01]* | freebsdelf3.[01]*)
15019 shlibpath_overrides_runpath=yes
15020 hardcode_into_libs=yes
15021 ;;
15022 *) # from 3.2 on
15023 shlibpath_overrides_runpath=no
15024 hardcode_into_libs=yes
15025 ;;
15026 esac
15027 ;;
15028
15029 gnu*)
15030 version_type=linux
15031 need_lib_prefix=no
15032 need_version=no
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 shlibpath_var=LD_LIBRARY_PATH
15036 hardcode_into_libs=yes
15037 ;;
15038
15039 hpux9* | hpux10* | hpux11*)
15040 # Give a soname corresponding to the major version so that dld.sl refuses to
15041 # link against other versions.
15042 version_type=sunos
15043 need_lib_prefix=no
15044 need_version=no
15045 case "$host_cpu" in
15046 ia64*)
15047 shrext_cmds='.so'
15048 hardcode_into_libs=yes
15049 dynamic_linker="$host_os dld.so"
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053 soname_spec='${libname}${release}${shared_ext}$major'
15054 if test "X$HPUX_IA64_MODE" = X32; then
15055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15056 else
15057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15058 fi
15059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15060 ;;
15061 hppa*64*)
15062 shrext_cmds='.sl'
15063 hardcode_into_libs=yes
15064 dynamic_linker="$host_os dld.sl"
15065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15071 ;;
15072 *)
15073 shrext_cmds='.sl'
15074 dynamic_linker="$host_os dld.sl"
15075 shlibpath_var=SHLIB_PATH
15076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 ;;
15080 esac
15081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15082 postinstall_cmds='chmod 555 $lib'
15083 ;;
15084
15085 irix5* | irix6* | nonstopux*)
15086 case $host_os in
15087 nonstopux*) version_type=nonstopux ;;
15088 *)
15089 if test "$lt_cv_prog_gnu_ld" = yes; then
15090 version_type=linux
15091 else
15092 version_type=irix
15093 fi ;;
15094 esac
15095 need_lib_prefix=no
15096 need_version=no
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15099 case $host_os in
15100 irix5* | nonstopux*)
15101 libsuff= shlibsuff=
15102 ;;
15103 *)
15104 case $LD in # libtool.m4 will add one of these switches to LD
15105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15106 libsuff= shlibsuff= libmagic=32-bit;;
15107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15108 libsuff=32 shlibsuff=N32 libmagic=N32;;
15109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15111 *) libsuff= shlibsuff= libmagic=never-match;;
15112 esac
15113 ;;
15114 esac
15115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15116 shlibpath_overrides_runpath=no
15117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15119 hardcode_into_libs=yes
15120 ;;
15121
15122 # No shared lib support for Linux oldld, aout, or coff.
15123 linux*oldld* | linux*aout* | linux*coff*)
15124 dynamic_linker=no
15125 ;;
15126
15127 # This must be Linux ELF.
15128 linux*)
15129 version_type=linux
15130 need_lib_prefix=no
15131 need_version=no
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 shlibpath_overrides_runpath=no
15137 # This implies no fast_install, which is unacceptable.
15138 # Some rework will be needed to allow for fast_install
15139 # before this can be enabled.
15140 hardcode_into_libs=yes
15141
15142 # find out which ABI we are using
15143 libsuff=
15144 case "$host_cpu" in
15145 x86_64*|s390x*|powerpc64*)
15146 echo '#line 15146 "configure"' > conftest.$ac_ext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148 (eval $ac_compile) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; then
15152 case `/usr/bin/file conftest.$ac_objext` in
15153 *64-bit*)
15154 libsuff=64
15155 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15156 ;;
15157 esac
15158 fi
15159 rm -rf conftest*
15160 ;;
15161 esac
15162
15163 # Append ld.so.conf contents to the search path
15164 if test -f /etc/ld.so.conf; then
15165 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15166 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15167 fi
15168
15169 # We used to test for /lib/ld.so.1 and disable shared libraries on
15170 # powerpc, because MkLinux only supported shared libraries with the
15171 # GNU dynamic linker. Since this was broken with cross compilers,
15172 # most powerpc-linux boxes support dynamic linking these days and
15173 # people can always --disable-shared, the test was removed, and we
15174 # assume the GNU/Linux dynamic linker is in use.
15175 dynamic_linker='GNU/Linux ld.so'
15176 ;;
15177
15178 knetbsd*-gnu)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=no
15186 hardcode_into_libs=yes
15187 dynamic_linker='GNU ld.so'
15188 ;;
15189
15190 netbsd*)
15191 version_type=sunos
15192 need_lib_prefix=no
15193 need_version=no
15194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15197 dynamic_linker='NetBSD (a.out) ld.so'
15198 else
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 dynamic_linker='NetBSD ld.elf_so'
15202 fi
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=yes
15205 hardcode_into_libs=yes
15206 ;;
15207
15208 newsos6)
15209 version_type=linux
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 ;;
15214
15215 nto-qnx*)
15216 version_type=linux
15217 need_lib_prefix=no
15218 need_version=no
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 ;;
15224
15225 openbsd*)
15226 version_type=sunos
15227 need_lib_prefix=no
15228 need_version=no
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15233 case $host_os in
15234 openbsd2.[89] | openbsd2.[89].*)
15235 shlibpath_overrides_runpath=no
15236 ;;
15237 *)
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240 esac
15241 else
15242 shlibpath_overrides_runpath=yes
15243 fi
15244 ;;
15245
15246 os2*)
15247 libname_spec='$name'
15248 shrext_cmds=".dll"
15249 need_lib_prefix=no
15250 library_names_spec='$libname${shared_ext} $libname.a'
15251 dynamic_linker='OS/2 ld.exe'
15252 shlibpath_var=LIBPATH
15253 ;;
15254
15255 osf3* | osf4* | osf5*)
15256 version_type=osf
15257 need_lib_prefix=no
15258 need_version=no
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15264 ;;
15265
15266 sco3.2v5*)
15267 version_type=osf
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 ;;
15272
15273 solaris*)
15274 version_type=linux
15275 need_lib_prefix=no
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15281 hardcode_into_libs=yes
15282 # ldd complains unless libraries are executable
15283 postinstall_cmds='chmod +x $lib'
15284 ;;
15285
15286 sunos4*)
15287 version_type=sunos
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 shlibpath_overrides_runpath=yes
15292 if test "$with_gnu_ld" = yes; then
15293 need_lib_prefix=no
15294 fi
15295 need_version=yes
15296 ;;
15297
15298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15299 version_type=linux
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301 soname_spec='${libname}${release}${shared_ext}$major'
15302 shlibpath_var=LD_LIBRARY_PATH
15303 case $host_vendor in
15304 sni)
15305 shlibpath_overrides_runpath=no
15306 need_lib_prefix=no
15307 export_dynamic_flag_spec='${wl}-Blargedynsym'
15308 runpath_var=LD_RUN_PATH
15309 ;;
15310 siemens)
15311 need_lib_prefix=no
15312 ;;
15313 motorola)
15314 need_lib_prefix=no
15315 need_version=no
15316 shlibpath_overrides_runpath=no
15317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15318 ;;
15319 esac
15320 ;;
15321
15322 sysv4*MP*)
15323 if test -d /usr/nec ;then
15324 version_type=linux
15325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15326 soname_spec='$libname${shared_ext}.$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 fi
15329 ;;
15330
15331 uts4*)
15332 version_type=linux
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 ;;
15337
15338 *)
15339 dynamic_linker=no
15340 ;;
15341 esac
15342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15343 echo "${ECHO_T}$dynamic_linker" >&6
15344 test "$dynamic_linker" = no && can_build_shared=no
15345
15346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15348 hardcode_action_F77=
15349 if test -n "$hardcode_libdir_flag_spec_F77" || \
15350 test -n "$runpath_var_F77" || \
15351 test "X$hardcode_automatic_F77" = "Xyes" ; then
15352
15353 # We can hardcode non-existant directories.
15354 if test "$hardcode_direct_F77" != no &&
15355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15356 # have to relink, otherwise we might link with an installed library
15357 # when we should be linking with a yet-to-be-installed one
15358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15359 test "$hardcode_minus_L_F77" != no; then
15360 # Linking always hardcodes the temporary library directory.
15361 hardcode_action_F77=relink
15362 else
15363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15364 hardcode_action_F77=immediate
15365 fi
15366 else
15367 # We cannot hardcode anything, or else we can only hardcode existing
15368 # directories.
15369 hardcode_action_F77=unsupported
15370 fi
15371 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15372 echo "${ECHO_T}$hardcode_action_F77" >&6
15373
15374 if test "$hardcode_action_F77" = relink; then
15375 # Fast installation is not supported
15376 enable_fast_install=no
15377 elif test "$shlibpath_overrides_runpath" = yes ||
15378 test "$enable_shared" = no; then
15379 # Fast installation is not necessary
15380 enable_fast_install=needless
15381 fi
15382
15383 striplib=
15384 old_striplib=
15385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15390 echo "$as_me:$LINENO: result: yes" >&5
15391 echo "${ECHO_T}yes" >&6
15392 else
15393 # FIXME - insert some real tests, host_os isn't really good enough
15394 case $host_os in
15395 darwin*)
15396 if test -n "$STRIP" ; then
15397 striplib="$STRIP -x"
15398 echo "$as_me:$LINENO: result: yes" >&5
15399 echo "${ECHO_T}yes" >&6
15400 else
15401 echo "$as_me:$LINENO: result: no" >&5
15402 echo "${ECHO_T}no" >&6
15403 fi
15404 ;;
15405 *)
15406 echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15408 ;;
15409 esac
15410 fi
15411
15412
15413
15414 # The else clause should only fire when bootstrapping the
15415 # libtool distribution, otherwise you forgot to ship ltmain.sh
15416 # with your package, and you will get complaints that there are
15417 # no rules to generate ltmain.sh.
15418 if test -f "$ltmain"; then
15419 # See if we are running on zsh, and set the options which allow our commands through
15420 # without removal of \ escapes.
15421 if test -n "${ZSH_VERSION+set}" ; then
15422 setopt NO_GLOB_SUBST
15423 fi
15424 # Now quote all the things that may contain metacharacters while being
15425 # careful not to overquote the AC_SUBSTed values. We take copies of the
15426 # variables and quote the copies for generation of the libtool script.
15427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15428 SED SHELL STRIP \
15429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15431 deplibs_check_method reload_flag reload_cmds need_locks \
15432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15433 lt_cv_sys_global_symbol_to_c_name_address \
15434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15435 old_postinstall_cmds old_postuninstall_cmds \
15436 compiler_F77 \
15437 CC_F77 \
15438 LD_F77 \
15439 lt_prog_compiler_wl_F77 \
15440 lt_prog_compiler_pic_F77 \
15441 lt_prog_compiler_static_F77 \
15442 lt_prog_compiler_no_builtin_flag_F77 \
15443 export_dynamic_flag_spec_F77 \
15444 thread_safe_flag_spec_F77 \
15445 whole_archive_flag_spec_F77 \
15446 enable_shared_with_static_runtimes_F77 \
15447 old_archive_cmds_F77 \
15448 old_archive_from_new_cmds_F77 \
15449 predep_objects_F77 \
15450 postdep_objects_F77 \
15451 predeps_F77 \
15452 postdeps_F77 \
15453 compiler_lib_search_path_F77 \
15454 archive_cmds_F77 \
15455 archive_expsym_cmds_F77 \
15456 postinstall_cmds_F77 \
15457 postuninstall_cmds_F77 \
15458 old_archive_from_expsyms_cmds_F77 \
15459 allow_undefined_flag_F77 \
15460 no_undefined_flag_F77 \
15461 export_symbols_cmds_F77 \
15462 hardcode_libdir_flag_spec_F77 \
15463 hardcode_libdir_flag_spec_ld_F77 \
15464 hardcode_libdir_separator_F77 \
15465 hardcode_automatic_F77 \
15466 module_cmds_F77 \
15467 module_expsym_cmds_F77 \
15468 lt_cv_prog_compiler_c_o_F77 \
15469 exclude_expsyms_F77 \
15470 include_expsyms_F77; do
15471
15472 case $var in
15473 old_archive_cmds_F77 | \
15474 old_archive_from_new_cmds_F77 | \
15475 archive_cmds_F77 | \
15476 archive_expsym_cmds_F77 | \
15477 module_cmds_F77 | \
15478 module_expsym_cmds_F77 | \
15479 old_archive_from_expsyms_cmds_F77 | \
15480 export_symbols_cmds_F77 | \
15481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15482 postinstall_cmds | postuninstall_cmds | \
15483 old_postinstall_cmds | old_postuninstall_cmds | \
15484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15485 # Double-quote double-evaled strings.
15486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15487 ;;
15488 *)
15489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15490 ;;
15491 esac
15492 done
15493
15494 case $lt_echo in
15495 *'\$0 --fallback-echo"')
15496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15497 ;;
15498 esac
15499
15500 cfgfile="$ofile"
15501
15502 cat <<__EOF__ >> "$cfgfile"
15503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15504
15505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15506
15507 # Shell to use when invoking shell scripts.
15508 SHELL=$lt_SHELL
15509
15510 # Whether or not to build shared libraries.
15511 build_libtool_libs=$enable_shared
15512
15513 # Whether or not to build static libraries.
15514 build_old_libs=$enable_static
15515
15516 # Whether or not to add -lc for building shared libraries.
15517 build_libtool_need_lc=$archive_cmds_need_lc_F77
15518
15519 # Whether or not to disallow shared libs when runtime libs are static
15520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15521
15522 # Whether or not to optimize for fast installation.
15523 fast_install=$enable_fast_install
15524
15525 # The host system.
15526 host_alias=$host_alias
15527 host=$host
15528 host_os=$host_os
15529
15530 # The build system.
15531 build_alias=$build_alias
15532 build=$build
15533 build_os=$build_os
15534
15535 # An echo program that does not interpret backslashes.
15536 echo=$lt_echo
15537
15538 # The archiver.
15539 AR=$lt_AR
15540 AR_FLAGS=$lt_AR_FLAGS
15541
15542 # A C compiler.
15543 LTCC=$lt_LTCC
15544
15545 # A language-specific compiler.
15546 CC=$lt_compiler_F77
15547
15548 # Is the compiler the GNU C compiler?
15549 with_gcc=$GCC_F77
15550
15551 # An ERE matcher.
15552 EGREP=$lt_EGREP
15553
15554 # The linker used to build libraries.
15555 LD=$lt_LD_F77
15556
15557 # Whether we need hard or soft links.
15558 LN_S=$lt_LN_S
15559
15560 # A BSD-compatible nm program.
15561 NM=$lt_NM
15562
15563 # A symbol stripping program
15564 STRIP=$lt_STRIP
15565
15566 # Used to examine libraries when file_magic_cmd begins "file"
15567 MAGIC_CMD=$MAGIC_CMD
15568
15569 # Used on cygwin: DLL creation program.
15570 DLLTOOL="$DLLTOOL"
15571
15572 # Used on cygwin: object dumper.
15573 OBJDUMP="$OBJDUMP"
15574
15575 # Used on cygwin: assembler.
15576 AS="$AS"
15577
15578 # The name of the directory that contains temporary libtool files.
15579 objdir=$objdir
15580
15581 # How to create reloadable object files.
15582 reload_flag=$lt_reload_flag
15583 reload_cmds=$lt_reload_cmds
15584
15585 # How to pass a linker flag through the compiler.
15586 wl=$lt_lt_prog_compiler_wl_F77
15587
15588 # Object file suffix (normally "o").
15589 objext="$ac_objext"
15590
15591 # Old archive suffix (normally "a").
15592 libext="$libext"
15593
15594 # Shared library suffix (normally ".so").
15595 shrext_cmds='$shrext_cmds'
15596
15597 # Executable file suffix (normally "").
15598 exeext="$exeext"
15599
15600 # Additional compiler flags for building library objects.
15601 pic_flag=$lt_lt_prog_compiler_pic_F77
15602 pic_mode=$pic_mode
15603
15604 # What is the maximum length of a command?
15605 max_cmd_len=$lt_cv_sys_max_cmd_len
15606
15607 # Does compiler simultaneously support -c and -o options?
15608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15609
15610 # Must we lock files when doing compilation?
15611 need_locks=$lt_need_locks
15612
15613 # Do we need the lib prefix for modules?
15614 need_lib_prefix=$need_lib_prefix
15615
15616 # Do we need a version for libraries?
15617 need_version=$need_version
15618
15619 # Whether dlopen is supported.
15620 dlopen_support=$enable_dlopen
15621
15622 # Whether dlopen of programs is supported.
15623 dlopen_self=$enable_dlopen_self
15624
15625 # Whether dlopen of statically linked programs is supported.
15626 dlopen_self_static=$enable_dlopen_self_static
15627
15628 # Compiler flag to prevent dynamic linking.
15629 link_static_flag=$lt_lt_prog_compiler_static_F77
15630
15631 # Compiler flag to turn off builtin functions.
15632 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15633
15634 # Compiler flag to allow reflexive dlopens.
15635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15636
15637 # Compiler flag to generate shared objects directly from archives.
15638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15639
15640 # Compiler flag to generate thread-safe objects.
15641 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15642
15643 # Library versioning type.
15644 version_type=$version_type
15645
15646 # Format of library name prefix.
15647 libname_spec=$lt_libname_spec
15648
15649 # List of archive names. First name is the real one, the rest are links.
15650 # The last name is the one that the linker finds with -lNAME.
15651 library_names_spec=$lt_library_names_spec
15652
15653 # The coded name of the library, if different from the real name.
15654 soname_spec=$lt_soname_spec
15655
15656 # Commands used to build and install an old-style archive.
15657 RANLIB=$lt_RANLIB
15658 old_archive_cmds=$lt_old_archive_cmds_F77
15659 old_postinstall_cmds=$lt_old_postinstall_cmds
15660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15661
15662 # Create an old-style archive from a shared archive.
15663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15664
15665 # Create a temporary old-style archive to link instead of a shared archive.
15666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15667
15668 # Commands used to build and install a shared archive.
15669 archive_cmds=$lt_archive_cmds_F77
15670 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15671 postinstall_cmds=$lt_postinstall_cmds
15672 postuninstall_cmds=$lt_postuninstall_cmds
15673
15674 # Commands used to build a loadable module (assumed same as above if empty)
15675 module_cmds=$lt_module_cmds_F77
15676 module_expsym_cmds=$lt_module_expsym_cmds_F77
15677
15678 # Commands to strip libraries.
15679 old_striplib=$lt_old_striplib
15680 striplib=$lt_striplib
15681
15682 # Dependencies to place before the objects being linked to create a
15683 # shared library.
15684 predep_objects=$lt_predep_objects_F77
15685
15686 # Dependencies to place after the objects being linked to create a
15687 # shared library.
15688 postdep_objects=$lt_postdep_objects_F77
15689
15690 # Dependencies to place before the objects being linked to create a
15691 # shared library.
15692 predeps=$lt_predeps_F77
15693
15694 # Dependencies to place after the objects being linked to create a
15695 # shared library.
15696 postdeps=$lt_postdeps_F77
15697
15698 # The library search path used internally by the compiler when linking
15699 # a shared library.
15700 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15701
15702 # Method to check whether dependent libraries are shared objects.
15703 deplibs_check_method=$lt_deplibs_check_method
15704
15705 # Command to use when deplibs_check_method == file_magic.
15706 file_magic_cmd=$lt_file_magic_cmd
15707
15708 # Flag that allows shared libraries with undefined symbols to be built.
15709 allow_undefined_flag=$lt_allow_undefined_flag_F77
15710
15711 # Flag that forces no undefined symbols.
15712 no_undefined_flag=$lt_no_undefined_flag_F77
15713
15714 # Commands used to finish a libtool library installation in a directory.
15715 finish_cmds=$lt_finish_cmds
15716
15717 # Same as above, but a single script fragment to be evaled but not shown.
15718 finish_eval=$lt_finish_eval
15719
15720 # Take the output of nm and produce a listing of raw symbols and C names.
15721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15722
15723 # Transform the output of nm in a proper C declaration
15724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15725
15726 # Transform the output of nm in a C name address pair
15727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15728
15729 # This is the shared library runtime path variable.
15730 runpath_var=$runpath_var
15731
15732 # This is the shared library path variable.
15733 shlibpath_var=$shlibpath_var
15734
15735 # Is shlibpath searched before the hard-coded library search path?
15736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15737
15738 # How to hardcode a shared library path into an executable.
15739 hardcode_action=$hardcode_action_F77
15740
15741 # Whether we should hardcode library paths into libraries.
15742 hardcode_into_libs=$hardcode_into_libs
15743
15744 # Flag to hardcode \$libdir into a binary during linking.
15745 # This must work even if \$libdir does not exist.
15746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15747
15748 # If ld is used when linking, flag to hardcode \$libdir into
15749 # a binary during linking. This must work even if \$libdir does
15750 # not exist.
15751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15752
15753 # Whether we need a single -rpath flag with a separated argument.
15754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15755
15756 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15757 # resulting binary.
15758 hardcode_direct=$hardcode_direct_F77
15759
15760 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15761 # resulting binary.
15762 hardcode_minus_L=$hardcode_minus_L_F77
15763
15764 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15765 # the resulting binary.
15766 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15767
15768 # Set to yes if building a shared library automatically hardcodes DIR into the library
15769 # and all subsequent libraries and executables linked against it.
15770 hardcode_automatic=$hardcode_automatic_F77
15771
15772 # Variables whose values should be saved in libtool wrapper scripts and
15773 # restored at relink time.
15774 variables_saved_for_relink="$variables_saved_for_relink"
15775
15776 # Whether libtool must link a program against all its dependency libraries.
15777 link_all_deplibs=$link_all_deplibs_F77
15778
15779 # Compile-time system search path for libraries
15780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15781
15782 # Run-time system search path for libraries
15783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15784
15785 # Fix the shell variable \$srcfile for the compiler.
15786 fix_srcfile_path="$fix_srcfile_path_F77"
15787
15788 # Set to yes if exported symbols are required.
15789 always_export_symbols=$always_export_symbols_F77
15790
15791 # The commands to list exported symbols.
15792 export_symbols_cmds=$lt_export_symbols_cmds_F77
15793
15794 # The commands to extract the exported symbol list from a shared archive.
15795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15796
15797 # Symbols that should not be listed in the preloaded symbols.
15798 exclude_expsyms=$lt_exclude_expsyms_F77
15799
15800 # Symbols that must always be exported.
15801 include_expsyms=$lt_include_expsyms_F77
15802
15803 # ### END LIBTOOL TAG CONFIG: $tagname
15804
15805 __EOF__
15806
15807
15808 else
15809 # If there is no Makefile yet, we rely on a make rule to execute
15810 # `config.status --recheck' to rerun these tests and create the
15811 # libtool script then.
15812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15813 if test -f "$ltmain_in"; then
15814 test -f Makefile && make "$ltmain"
15815 fi
15816 fi
15817
15818
15819 ac_ext=c
15820 ac_cpp='$CPP $CPPFLAGS'
15821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15824
15825 CC="$lt_save_CC"
15826
15827 else
15828 tagname=""
15829 fi
15830 ;;
15831
15832 GCJ)
15833 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15834
15835
15836
15837 # Source file extension for Java test sources.
15838 ac_ext=java
15839
15840 # Object file extension for compiled Java test sources.
15841 objext=o
15842 objext_GCJ=$objext
15843
15844 # Code to be used in simple compile tests
15845 lt_simple_compile_test_code="class foo {}\n"
15846
15847 # Code to be used in simple link tests
15848 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15849
15850 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15851
15852 # If no C compiler was specified, use CC.
15853 LTCC=${LTCC-"$CC"}
15854
15855 # Allow CC to be a program name with arguments.
15856 compiler=$CC
15857
15858
15859 # save warnings/boilerplate of simple test code
15860 ac_outfile=conftest.$ac_objext
15861 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15863 _lt_compiler_boilerplate=`cat conftest.err`
15864 $rm conftest*
15865
15866 ac_outfile=conftest.$ac_objext
15867 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15869 _lt_linker_boilerplate=`cat conftest.err`
15870 $rm conftest*
15871
15872
15873 # Allow CC to be a program name with arguments.
15874 lt_save_CC="$CC"
15875 CC=${GCJ-"gcj"}
15876 compiler=$CC
15877 compiler_GCJ=$CC
15878 for cc_temp in $compiler""; do
15879 case $cc_temp in
15880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15882 \-*) ;;
15883 *) break;;
15884 esac
15885 done
15886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15887
15888
15889 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15890 archive_cmds_need_lc_GCJ=no
15891
15892 old_archive_cmds_GCJ=$old_archive_cmds
15893
15894
15895 lt_prog_compiler_no_builtin_flag_GCJ=
15896
15897 if test "$GCC" = yes; then
15898 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15899
15900
15901 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15902 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15903 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906 lt_cv_prog_compiler_rtti_exceptions=no
15907 ac_outfile=conftest.$ac_objext
15908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15909 lt_compiler_flag="-fno-rtti -fno-exceptions"
15910 # Insert the option either (1) after the last *FLAGS variable, or
15911 # (2) before a word containing "conftest.", or (3) at the end.
15912 # Note that $ac_compile itself does not contain backslashes and begins
15913 # with a dollar sign (not a hyphen), so the echo should work correctly.
15914 # The option is referenced via a variable to avoid confusing sed.
15915 lt_compile=`echo "$ac_compile" | $SED \
15916 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15918 -e 's:$: $lt_compiler_flag:'`
15919 (eval echo "\"\$as_me:15919: $lt_compile\"" >&5)
15920 (eval "$lt_compile" 2>conftest.err)
15921 ac_status=$?
15922 cat conftest.err >&5
15923 echo "$as_me:15923: \$? = $ac_status" >&5
15924 if (exit $ac_status) && test -s "$ac_outfile"; then
15925 # The compiler can only warn and ignore the option if not recognized
15926 # So say no if there are warnings other than the usual output.
15927 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15928 $SED '/^$/d' conftest.err >conftest.er2
15929 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15930 lt_cv_prog_compiler_rtti_exceptions=yes
15931 fi
15932 fi
15933 $rm conftest*
15934
15935 fi
15936 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15937 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15938
15939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15940 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15941 else
15942 :
15943 fi
15944
15945 fi
15946
15947 lt_prog_compiler_wl_GCJ=
15948 lt_prog_compiler_pic_GCJ=
15949 lt_prog_compiler_static_GCJ=
15950
15951 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15953
15954 if test "$GCC" = yes; then
15955 lt_prog_compiler_wl_GCJ='-Wl,'
15956 lt_prog_compiler_static_GCJ='-static'
15957
15958 case $host_os in
15959 aix*)
15960 # All AIX code is PIC.
15961 if test "$host_cpu" = ia64; then
15962 # AIX 5 now supports IA64 processor
15963 lt_prog_compiler_static_GCJ='-Bstatic'
15964 fi
15965 ;;
15966
15967 amigaos*)
15968 # FIXME: we need at least 68020 code to build shared libraries, but
15969 # adding the `-m68020' flag to GCC prevents building anything better,
15970 # like `-m68040'.
15971 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15972 ;;
15973
15974 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15975 # PIC is the default for these OSes.
15976 ;;
15977
15978 mingw* | pw32* | os2*)
15979 # This hack is so that the source file can tell whether it is being
15980 # built for inclusion in a dll (and should export symbols for example).
15981 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15982 ;;
15983
15984 darwin* | rhapsody*)
15985 # PIC is the default on this platform
15986 # Common symbols not allowed in MH_DYLIB files
15987 lt_prog_compiler_pic_GCJ='-fno-common'
15988 ;;
15989
15990 msdosdjgpp*)
15991 # Just because we use GCC doesn't mean we suddenly get shared libraries
15992 # on systems that don't support them.
15993 lt_prog_compiler_can_build_shared_GCJ=no
15994 enable_shared=no
15995 ;;
15996
15997 sysv4*MP*)
15998 if test -d /usr/nec; then
15999 lt_prog_compiler_pic_GCJ=-Kconform_pic
16000 fi
16001 ;;
16002
16003 hpux*)
16004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16005 # not for PA HP-UX.
16006 case "$host_cpu" in
16007 hppa*64*|ia64*)
16008 # +Z the default
16009 ;;
16010 *)
16011 lt_prog_compiler_pic_GCJ='-fPIC'
16012 ;;
16013 esac
16014 ;;
16015
16016 *)
16017 lt_prog_compiler_pic_GCJ='-fPIC'
16018 ;;
16019 esac
16020 else
16021 # PORTME Check for flag to pass linker flags through the system compiler.
16022 case $host_os in
16023 aix*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 if test "$host_cpu" = ia64; then
16026 # AIX 5 now supports IA64 processor
16027 lt_prog_compiler_static_GCJ='-Bstatic'
16028 else
16029 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16030 fi
16031 ;;
16032 darwin*)
16033 # PIC is the default on this platform
16034 # Common symbols not allowed in MH_DYLIB files
16035 case $cc_basename in
16036 xlc*)
16037 lt_prog_compiler_pic_GCJ='-qnocommon'
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 ;;
16040 esac
16041 ;;
16042
16043 mingw* | pw32* | os2*)
16044 # This hack is so that the source file can tell whether it is being
16045 # built for inclusion in a dll (and should export symbols for example).
16046 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16047 ;;
16048
16049 hpux9* | hpux10* | hpux11*)
16050 lt_prog_compiler_wl_GCJ='-Wl,'
16051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16052 # not for PA HP-UX.
16053 case "$host_cpu" in
16054 hppa*64*|ia64*)
16055 # +Z the default
16056 ;;
16057 *)
16058 lt_prog_compiler_pic_GCJ='+Z'
16059 ;;
16060 esac
16061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16062 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16063 ;;
16064
16065 irix5* | irix6* | nonstopux*)
16066 lt_prog_compiler_wl_GCJ='-Wl,'
16067 # PIC (with -KPIC) is the default.
16068 lt_prog_compiler_static_GCJ='-non_shared'
16069 ;;
16070
16071 newsos6)
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 ;;
16075
16076 linux*)
16077 case $cc_basename in
16078 icc* | ecc*)
16079 lt_prog_compiler_wl_GCJ='-Wl,'
16080 lt_prog_compiler_pic_GCJ='-KPIC'
16081 lt_prog_compiler_static_GCJ='-static'
16082 ;;
16083 pgcc* | pgf77* | pgf90*)
16084 # Portland Group compilers (*not* the Pentium gcc compiler,
16085 # which looks to be a dead project)
16086 lt_prog_compiler_wl_GCJ='-Wl,'
16087 lt_prog_compiler_pic_GCJ='-fpic'
16088 lt_prog_compiler_static_GCJ='-static'
16089 ;;
16090 ccc*)
16091 lt_prog_compiler_wl_GCJ='-Wl,'
16092 # All Alpha code is PIC.
16093 lt_prog_compiler_static_GCJ='-non_shared'
16094 ;;
16095 esac
16096 ;;
16097
16098 osf3* | osf4* | osf5*)
16099 lt_prog_compiler_wl_GCJ='-Wl,'
16100 # All OSF/1 code is PIC.
16101 lt_prog_compiler_static_GCJ='-non_shared'
16102 ;;
16103
16104 sco3.2v5*)
16105 lt_prog_compiler_pic_GCJ='-Kpic'
16106 lt_prog_compiler_static_GCJ='-dn'
16107 ;;
16108
16109 solaris*)
16110 lt_prog_compiler_pic_GCJ='-KPIC'
16111 lt_prog_compiler_static_GCJ='-Bstatic'
16112 case $cc_basename in
16113 f77* | f90* | f95*)
16114 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16115 *)
16116 lt_prog_compiler_wl_GCJ='-Wl,';;
16117 esac
16118 ;;
16119
16120 sunos4*)
16121 lt_prog_compiler_wl_GCJ='-Qoption ld '
16122 lt_prog_compiler_pic_GCJ='-PIC'
16123 lt_prog_compiler_static_GCJ='-Bstatic'
16124 ;;
16125
16126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16127 lt_prog_compiler_wl_GCJ='-Wl,'
16128 lt_prog_compiler_pic_GCJ='-KPIC'
16129 lt_prog_compiler_static_GCJ='-Bstatic'
16130 ;;
16131
16132 sysv4*MP*)
16133 if test -d /usr/nec ;then
16134 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16135 lt_prog_compiler_static_GCJ='-Bstatic'
16136 fi
16137 ;;
16138
16139 unicos*)
16140 lt_prog_compiler_wl_GCJ='-Wl,'
16141 lt_prog_compiler_can_build_shared_GCJ=no
16142 ;;
16143
16144 uts4*)
16145 lt_prog_compiler_pic_GCJ='-pic'
16146 lt_prog_compiler_static_GCJ='-Bstatic'
16147 ;;
16148
16149 *)
16150 lt_prog_compiler_can_build_shared_GCJ=no
16151 ;;
16152 esac
16153 fi
16154
16155 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16156 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16157
16158 #
16159 # Check to make sure the PIC flag actually works.
16160 #
16161 if test -n "$lt_prog_compiler_pic_GCJ"; then
16162
16163 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16164 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16165 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168 lt_prog_compiler_pic_works_GCJ=no
16169 ac_outfile=conftest.$ac_objext
16170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16171 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16172 # Insert the option either (1) after the last *FLAGS variable, or
16173 # (2) before a word containing "conftest.", or (3) at the end.
16174 # Note that $ac_compile itself does not contain backslashes and begins
16175 # with a dollar sign (not a hyphen), so the echo should work correctly.
16176 # The option is referenced via a variable to avoid confusing sed.
16177 lt_compile=`echo "$ac_compile" | $SED \
16178 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16180 -e 's:$: $lt_compiler_flag:'`
16181 (eval echo "\"\$as_me:16181: $lt_compile\"" >&5)
16182 (eval "$lt_compile" 2>conftest.err)
16183 ac_status=$?
16184 cat conftest.err >&5
16185 echo "$as_me:16185: \$? = $ac_status" >&5
16186 if (exit $ac_status) && test -s "$ac_outfile"; then
16187 # The compiler can only warn and ignore the option if not recognized
16188 # So say no if there are warnings other than the usual output.
16189 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16190 $SED '/^$/d' conftest.err >conftest.er2
16191 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16192 lt_prog_compiler_pic_works_GCJ=yes
16193 fi
16194 fi
16195 $rm conftest*
16196
16197 fi
16198 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16199 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16200
16201 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16202 case $lt_prog_compiler_pic_GCJ in
16203 "" | " "*) ;;
16204 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16205 esac
16206 else
16207 lt_prog_compiler_pic_GCJ=
16208 lt_prog_compiler_can_build_shared_GCJ=no
16209 fi
16210
16211 fi
16212 case "$host_os" in
16213 # For platforms which do not support PIC, -DPIC is meaningless:
16214 *djgpp*)
16215 lt_prog_compiler_pic_GCJ=
16216 ;;
16217 *)
16218 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16219 ;;
16220 esac
16221
16222 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16223 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16224 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227 lt_cv_prog_compiler_c_o_GCJ=no
16228 $rm -r conftest 2>/dev/null
16229 mkdir conftest
16230 cd conftest
16231 mkdir out
16232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16233
16234 lt_compiler_flag="-o out/conftest2.$ac_objext"
16235 # Insert the option either (1) after the last *FLAGS variable, or
16236 # (2) before a word containing "conftest.", or (3) at the end.
16237 # Note that $ac_compile itself does not contain backslashes and begins
16238 # with a dollar sign (not a hyphen), so the echo should work correctly.
16239 lt_compile=`echo "$ac_compile" | $SED \
16240 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16242 -e 's:$: $lt_compiler_flag:'`
16243 (eval echo "\"\$as_me:16243: $lt_compile\"" >&5)
16244 (eval "$lt_compile" 2>out/conftest.err)
16245 ac_status=$?
16246 cat out/conftest.err >&5
16247 echo "$as_me:16247: \$? = $ac_status" >&5
16248 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16249 then
16250 # The compiler can only warn and ignore the option if not recognized
16251 # So say no if there are warnings
16252 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16253 $SED '/^$/d' out/conftest.err >out/conftest.er2
16254 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16255 lt_cv_prog_compiler_c_o_GCJ=yes
16256 fi
16257 fi
16258 chmod u+w .
16259 $rm conftest*
16260 # SGI C++ compiler will create directory out/ii_files/ for
16261 # template instantiation
16262 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16263 $rm out/* && rmdir out
16264 cd ..
16265 rmdir conftest
16266 $rm conftest*
16267
16268 fi
16269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16271
16272
16273 hard_links="nottested"
16274 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16275 # do not overwrite the value of need_locks provided by the user
16276 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16278 hard_links=yes
16279 $rm conftest*
16280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281 touch conftest.a
16282 ln conftest.a conftest.b 2>&5 || hard_links=no
16283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16284 echo "$as_me:$LINENO: result: $hard_links" >&5
16285 echo "${ECHO_T}$hard_links" >&6
16286 if test "$hard_links" = no; then
16287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16289 need_locks=warn
16290 fi
16291 else
16292 need_locks=no
16293 fi
16294
16295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16297
16298 runpath_var=
16299 allow_undefined_flag_GCJ=
16300 enable_shared_with_static_runtimes_GCJ=no
16301 archive_cmds_GCJ=
16302 archive_expsym_cmds_GCJ=
16303 old_archive_From_new_cmds_GCJ=
16304 old_archive_from_expsyms_cmds_GCJ=
16305 export_dynamic_flag_spec_GCJ=
16306 whole_archive_flag_spec_GCJ=
16307 thread_safe_flag_spec_GCJ=
16308 hardcode_libdir_flag_spec_GCJ=
16309 hardcode_libdir_flag_spec_ld_GCJ=
16310 hardcode_libdir_separator_GCJ=
16311 hardcode_direct_GCJ=no
16312 hardcode_minus_L_GCJ=no
16313 hardcode_shlibpath_var_GCJ=unsupported
16314 link_all_deplibs_GCJ=unknown
16315 hardcode_automatic_GCJ=no
16316 module_cmds_GCJ=
16317 module_expsym_cmds_GCJ=
16318 always_export_symbols_GCJ=no
16319 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16320 # include_expsyms should be a list of space-separated symbols to be *always*
16321 # included in the symbol list
16322 include_expsyms_GCJ=
16323 # exclude_expsyms can be an extended regexp of symbols to exclude
16324 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16326 # as well as any symbol that contains `d'.
16327 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16329 # platforms (ab)use it in PIC code, but their linkers get confused if
16330 # the symbol is explicitly referenced. Since portable code cannot
16331 # rely on this symbol name, it's probably fine to never include it in
16332 # preloaded symbol tables.
16333 extract_expsyms_cmds=
16334 # Just being paranoid about ensuring that cc_basename is set.
16335 for cc_temp in $compiler""; do
16336 case $cc_temp in
16337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339 \-*) ;;
16340 *) break;;
16341 esac
16342 done
16343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16344
16345 case $host_os in
16346 cygwin* | mingw* | pw32*)
16347 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16348 # When not using gcc, we currently assume that we are using
16349 # Microsoft Visual C++.
16350 if test "$GCC" != yes; then
16351 with_gnu_ld=no
16352 fi
16353 ;;
16354 openbsd*)
16355 with_gnu_ld=no
16356 ;;
16357 esac
16358
16359 ld_shlibs_GCJ=yes
16360 if test "$with_gnu_ld" = yes; then
16361 # If archive_cmds runs LD, not CC, wlarc should be empty
16362 wlarc='${wl}'
16363
16364 # Set some defaults for GNU ld with shared library support. These
16365 # are reset later if shared libraries are not supported. Putting them
16366 # here allows them to be overridden if necessary.
16367 runpath_var=LD_RUN_PATH
16368 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16369 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16370 # ancient GNU ld didn't support --whole-archive et. al.
16371 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16372 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16373 else
16374 whole_archive_flag_spec_GCJ=
16375 fi
16376 supports_anon_versioning=no
16377 case `$LD -v 2>/dev/null` in
16378 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16379 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16380 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16381 *\ 2.11.*) ;; # other 2.11 versions
16382 *) supports_anon_versioning=yes ;;
16383 esac
16384
16385 # See if GNU ld supports shared libraries.
16386 case $host_os in
16387 aix3* | aix4* | aix5*)
16388 # On AIX/PPC, the GNU linker is very broken
16389 if test "$host_cpu" != ia64; then
16390 ld_shlibs_GCJ=no
16391 cat <<EOF 1>&2
16392
16393 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16394 *** to be unable to reliably create shared libraries on AIX.
16395 *** Therefore, libtool is disabling shared libraries support. If you
16396 *** really care for shared libraries, you may want to modify your PATH
16397 *** so that a non-GNU linker is found, and then restart.
16398
16399 EOF
16400 fi
16401 ;;
16402
16403 amigaos*)
16404 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)'
16405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406 hardcode_minus_L_GCJ=yes
16407
16408 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16409 # that the semantics of dynamic libraries on AmigaOS, at least up
16410 # to version 4, is to share data among multiple programs linked
16411 # with the same dynamic library. Since this doesn't match the
16412 # behavior of shared libraries on other platforms, we can't use
16413 # them.
16414 ld_shlibs_GCJ=no
16415 ;;
16416
16417 beos*)
16418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419 allow_undefined_flag_GCJ=unsupported
16420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16421 # support --undefined. This deserves some investigation. FIXME
16422 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 else
16424 ld_shlibs_GCJ=no
16425 fi
16426 ;;
16427
16428 cygwin* | mingw* | pw32*)
16429 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16430 # as there is no search path for DLLs.
16431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432 allow_undefined_flag_GCJ=unsupported
16433 always_export_symbols_GCJ=no
16434 enable_shared_with_static_runtimes_GCJ=yes
16435 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16436
16437 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16439 # If the export-symbols file already is a .def file (1st line
16440 # is EXPORTS), use it as is; otherwise, prepend...
16441 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16442 cp $export_symbols $output_objdir/$soname.def;
16443 else
16444 echo EXPORTS > $output_objdir/$soname.def;
16445 cat $export_symbols >> $output_objdir/$soname.def;
16446 fi~
16447 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16448 else
16449 ld_shlibs_GCJ=no
16450 fi
16451 ;;
16452
16453 linux*)
16454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16455 tmp_addflag=
16456 case $cc_basename,$host_cpu in
16457 pgcc*) # Portland Group C compiler
16458 whole_archive_flag_spec_GCJ=
16459 ;;
16460 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16461 whole_archive_flag_spec_GCJ=
16462 tmp_addflag=' -fpic -Mnomain' ;;
16463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16464 tmp_addflag=' -i_dynamic' ;;
16465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16466 tmp_addflag=' -i_dynamic -nofor_main' ;;
16467 ifc* | ifort*) # Intel Fortran compiler
16468 tmp_addflag=' -nofor_main' ;;
16469 esac
16470 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471
16472 if test $supports_anon_versioning = yes; then
16473 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16475 $echo "local: *; };" >> $output_objdir/$libname.ver~
16476 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16477 fi
16478 else
16479 ld_shlibs_GCJ=no
16480 fi
16481 ;;
16482
16483 netbsd*)
16484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16485 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16486 wlarc=
16487 else
16488 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16489 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16490 fi
16491 ;;
16492
16493 solaris* | sysv5*)
16494 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16495 ld_shlibs_GCJ=no
16496 cat <<EOF 1>&2
16497
16498 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16499 *** create shared libraries on Solaris systems. Therefore, libtool
16500 *** is disabling shared libraries support. We urge you to upgrade GNU
16501 *** binutils to release 2.9.1 or newer. Another option is to modify
16502 *** your PATH or compiler configuration so that the native linker is
16503 *** used, and then restart.
16504
16505 EOF
16506 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16509 else
16510 ld_shlibs_GCJ=no
16511 fi
16512 ;;
16513
16514 sunos4*)
16515 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16516 wlarc=
16517 hardcode_direct_GCJ=yes
16518 hardcode_shlibpath_var_GCJ=no
16519 ;;
16520
16521 *)
16522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16524 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16525 else
16526 ld_shlibs_GCJ=no
16527 fi
16528 ;;
16529 esac
16530
16531 if test "$ld_shlibs_GCJ" = no; then
16532 runpath_var=
16533 hardcode_libdir_flag_spec_GCJ=
16534 export_dynamic_flag_spec_GCJ=
16535 whole_archive_flag_spec_GCJ=
16536 fi
16537 else
16538 # PORTME fill in a description of your system's linker (not GNU ld)
16539 case $host_os in
16540 aix3*)
16541 allow_undefined_flag_GCJ=unsupported
16542 always_export_symbols_GCJ=yes
16543 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'
16544 # Note: this linker hardcodes the directories in LIBPATH if there
16545 # are no directories specified by -L.
16546 hardcode_minus_L_GCJ=yes
16547 if test "$GCC" = yes && test -z "$link_static_flag"; then
16548 # Neither direct hardcoding nor static linking is supported with a
16549 # broken collect2.
16550 hardcode_direct_GCJ=unsupported
16551 fi
16552 ;;
16553
16554 aix4* | aix5*)
16555 if test "$host_cpu" = ia64; then
16556 # On IA64, the linker does run time linking by default, so we don't
16557 # have to do anything special.
16558 aix_use_runtimelinking=no
16559 exp_sym_flag='-Bexport'
16560 no_entry_flag=""
16561 else
16562 # If we're using GNU nm, then we don't want the "-C" option.
16563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16565 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'
16566 else
16567 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'
16568 fi
16569 aix_use_runtimelinking=no
16570
16571 # Test if we are trying to use run time linking or normal
16572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16573 # need to do runtime linking.
16574 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16575 for ld_flag in $LDFLAGS; do
16576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16577 aix_use_runtimelinking=yes
16578 break
16579 fi
16580 done
16581 esac
16582
16583 exp_sym_flag='-bexport'
16584 no_entry_flag='-bnoentry'
16585 fi
16586
16587 # When large executables or shared objects are built, AIX ld can
16588 # have problems creating the table of contents. If linking a library
16589 # or program results in "error TOC overflow" add -mminimal-toc to
16590 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16591 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16592
16593 archive_cmds_GCJ=''
16594 hardcode_direct_GCJ=yes
16595 hardcode_libdir_separator_GCJ=':'
16596 link_all_deplibs_GCJ=yes
16597
16598 if test "$GCC" = yes; then
16599 case $host_os in aix4.[012]|aix4.[012].*)
16600 # We only want to do this on AIX 4.2 and lower, the check
16601 # below for broken collect2 doesn't work under 4.3+
16602 collect2name=`${CC} -print-prog-name=collect2`
16603 if test -f "$collect2name" && \
16604 strings "$collect2name" | grep resolve_lib_name >/dev/null
16605 then
16606 # We have reworked collect2
16607 hardcode_direct_GCJ=yes
16608 else
16609 # We have old collect2
16610 hardcode_direct_GCJ=unsupported
16611 # It fails to find uninstalled libraries when the uninstalled
16612 # path is not listed in the libpath. Setting hardcode_minus_L
16613 # to unsupported forces relinking
16614 hardcode_minus_L_GCJ=yes
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 hardcode_libdir_separator_GCJ=
16617 fi
16618 esac
16619 shared_flag='-shared'
16620 if test "$aix_use_runtimelinking" = yes; then
16621 shared_flag="$shared_flag "'${wl}-G'
16622 fi
16623 else
16624 # not using gcc
16625 if test "$host_cpu" = ia64; then
16626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16627 # chokes on -Wl,-G. The following line is correct:
16628 shared_flag='-G'
16629 else
16630 if test "$aix_use_runtimelinking" = yes; then
16631 shared_flag='${wl}-G'
16632 else
16633 shared_flag='${wl}-bM:SRE'
16634 fi
16635 fi
16636 fi
16637
16638 # It seems that -bexpall does not export symbols beginning with
16639 # underscore (_), so it is better to generate a list of symbols to export.
16640 always_export_symbols_GCJ=yes
16641 if test "$aix_use_runtimelinking" = yes; then
16642 # Warning - without using the other runtime loading flags (-brtl),
16643 # -berok will link without error, but may produce a broken library.
16644 allow_undefined_flag_GCJ='-berok'
16645 # Determine the default libpath from the value encoded in an empty executable.
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652
16653 int
16654 main ()
16655 {
16656
16657 ;
16658 return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663 (eval $ac_link) 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682
16683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16684 }'`
16685 # Check for a 64-bit object if we didn't find anything.
16686 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; }
16687 }'`; fi
16688 else
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16691
16692 fi
16693 rm -f conftest.err conftest.$ac_objext \
16694 conftest$ac_exeext conftest.$ac_ext
16695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16696
16697 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16698 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"
16699 else
16700 if test "$host_cpu" = ia64; then
16701 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16702 allow_undefined_flag_GCJ="-z nodefs"
16703 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"
16704 else
16705 # Determine the default libpath from the value encoded in an empty executable.
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712
16713 int
16714 main ()
16715 {
16716
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723 (eval $ac_link) 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest$ac_exeext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742
16743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16744 }'`
16745 # Check for a 64-bit object if we didn't find anything.
16746 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; }
16747 }'`; fi
16748 else
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 fi
16753 rm -f conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16756
16757 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16758 # Warning - without using the other run time loading flags,
16759 # -berok will link without error, but may produce a broken library.
16760 no_undefined_flag_GCJ=' ${wl}-bernotok'
16761 allow_undefined_flag_GCJ=' ${wl}-berok'
16762 # -bexpall does not export symbols beginning with underscore (_)
16763 always_export_symbols_GCJ=yes
16764 # Exported symbols can be pulled into shared objects from archives
16765 whole_archive_flag_spec_GCJ=' '
16766 archive_cmds_need_lc_GCJ=yes
16767 # This is similar to how AIX traditionally builds it's shared libraries.
16768 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'
16769 fi
16770 fi
16771 ;;
16772
16773 amigaos*)
16774 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)'
16775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16776 hardcode_minus_L_GCJ=yes
16777 # see comment about different semantics on the GNU ld section
16778 ld_shlibs_GCJ=no
16779 ;;
16780
16781 bsdi[45]*)
16782 export_dynamic_flag_spec_GCJ=-rdynamic
16783 ;;
16784
16785 cygwin* | mingw* | pw32*)
16786 # When not using gcc, we currently assume that we are using
16787 # Microsoft Visual C++.
16788 # hardcode_libdir_flag_spec is actually meaningless, as there is
16789 # no search path for DLLs.
16790 hardcode_libdir_flag_spec_GCJ=' '
16791 allow_undefined_flag_GCJ=unsupported
16792 # Tell ltmain to make .lib files, not .a files.
16793 libext=lib
16794 # Tell ltmain to make .dll files, not .so files.
16795 shrext_cmds=".dll"
16796 # FIXME: Setting linknames here is a bad hack.
16797 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16798 # The linker will automatically build a .lib file if we build a DLL.
16799 old_archive_From_new_cmds_GCJ='true'
16800 # FIXME: Should let the user specify the lib program.
16801 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16802 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16803 enable_shared_with_static_runtimes_GCJ=yes
16804 ;;
16805
16806 darwin* | rhapsody*)
16807 case "$host_os" in
16808 rhapsody* | darwin1.[012])
16809 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16810 ;;
16811 *) # Darwin 1.3 on
16812 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16813 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16814 else
16815 case ${MACOSX_DEPLOYMENT_TARGET} in
16816 10.[012])
16817 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16818 ;;
16819 10.*)
16820 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16821 ;;
16822 esac
16823 fi
16824 ;;
16825 esac
16826 archive_cmds_need_lc_GCJ=no
16827 hardcode_direct_GCJ=no
16828 hardcode_automatic_GCJ=yes
16829 hardcode_shlibpath_var_GCJ=unsupported
16830 whole_archive_flag_spec_GCJ=''
16831 link_all_deplibs_GCJ=yes
16832 if test "$GCC" = yes ; then
16833 output_verbose_link_cmd='echo'
16834 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16835 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16837 archive_expsym_cmds_GCJ='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}'
16838 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}'
16839 else
16840 case $cc_basename in
16841 xlc*)
16842 output_verbose_link_cmd='echo'
16843 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16844 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16846 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16847 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}'
16848 ;;
16849 *)
16850 ld_shlibs_GCJ=no
16851 ;;
16852 esac
16853 fi
16854 ;;
16855
16856 dgux*)
16857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16859 hardcode_shlibpath_var_GCJ=no
16860 ;;
16861
16862 freebsd1*)
16863 ld_shlibs_GCJ=no
16864 ;;
16865
16866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16867 # support. Future versions do this automatically, but an explicit c++rt0.o
16868 # does not break anything, and helps significantly (at the cost of a little
16869 # extra space).
16870 freebsd2.2*)
16871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16872 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16873 hardcode_direct_GCJ=yes
16874 hardcode_shlibpath_var_GCJ=no
16875 ;;
16876
16877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16878 freebsd2*)
16879 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16880 hardcode_direct_GCJ=yes
16881 hardcode_minus_L_GCJ=yes
16882 hardcode_shlibpath_var_GCJ=no
16883 ;;
16884
16885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16886 freebsd* | kfreebsd*-gnu | dragonfly*)
16887 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16888 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16889 hardcode_direct_GCJ=yes
16890 hardcode_shlibpath_var_GCJ=no
16891 ;;
16892
16893 hpux9*)
16894 if test "$GCC" = yes; then
16895 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'
16896 else
16897 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'
16898 fi
16899 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16900 hardcode_libdir_separator_GCJ=:
16901 hardcode_direct_GCJ=yes
16902
16903 # hardcode_minus_L: Not really in the search PATH,
16904 # but as the default location of the library.
16905 hardcode_minus_L_GCJ=yes
16906 export_dynamic_flag_spec_GCJ='${wl}-E'
16907 ;;
16908
16909 hpux10* | hpux11*)
16910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16911 case "$host_cpu" in
16912 hppa*64*|ia64*)
16913 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 ;;
16915 *)
16916 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16917 ;;
16918 esac
16919 else
16920 case "$host_cpu" in
16921 hppa*64*|ia64*)
16922 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16923 ;;
16924 *)
16925 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16926 ;;
16927 esac
16928 fi
16929 if test "$with_gnu_ld" = no; then
16930 case "$host_cpu" in
16931 hppa*64*)
16932 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16933 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16934 hardcode_libdir_separator_GCJ=:
16935 hardcode_direct_GCJ=no
16936 hardcode_shlibpath_var_GCJ=no
16937 ;;
16938 ia64*)
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_direct_GCJ=no
16941 hardcode_shlibpath_var_GCJ=no
16942
16943 # hardcode_minus_L: Not really in the search PATH,
16944 # but as the default location of the library.
16945 hardcode_minus_L_GCJ=yes
16946 ;;
16947 *)
16948 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16949 hardcode_libdir_separator_GCJ=:
16950 hardcode_direct_GCJ=yes
16951 export_dynamic_flag_spec_GCJ='${wl}-E'
16952
16953 # hardcode_minus_L: Not really in the search PATH,
16954 # but as the default location of the library.
16955 hardcode_minus_L_GCJ=yes
16956 ;;
16957 esac
16958 fi
16959 ;;
16960
16961 irix5* | irix6* | nonstopux*)
16962 if test "$GCC" = yes; then
16963 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'
16964 else
16965 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'
16966 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16967 fi
16968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16969 hardcode_libdir_separator_GCJ=:
16970 link_all_deplibs_GCJ=yes
16971 ;;
16972
16973 netbsd*)
16974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16975 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16976 else
16977 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16978 fi
16979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16980 hardcode_direct_GCJ=yes
16981 hardcode_shlibpath_var_GCJ=no
16982 ;;
16983
16984 newsos6)
16985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct_GCJ=yes
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988 hardcode_libdir_separator_GCJ=:
16989 hardcode_shlibpath_var_GCJ=no
16990 ;;
16991
16992 openbsd*)
16993 hardcode_direct_GCJ=yes
16994 hardcode_shlibpath_var_GCJ=no
16995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16999 export_dynamic_flag_spec_GCJ='${wl}-E'
17000 else
17001 case $host_os in
17002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17005 ;;
17006 *)
17007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17009 ;;
17010 esac
17011 fi
17012 ;;
17013
17014 os2*)
17015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17016 hardcode_minus_L_GCJ=yes
17017 allow_undefined_flag_GCJ=unsupported
17018 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'
17019 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17020 ;;
17021
17022 osf3*)
17023 if test "$GCC" = yes; then
17024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17025 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'
17026 else
17027 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17028 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'
17029 fi
17030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17031 hardcode_libdir_separator_GCJ=:
17032 ;;
17033
17034 osf4* | osf5*) # as osf3* with the addition of -msym flag
17035 if test "$GCC" = yes; then
17036 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17037 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'
17038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17039 else
17040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17041 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'
17042 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~
17043 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17044
17045 # Both c and cxx compiler support -rpath directly
17046 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17047 fi
17048 hardcode_libdir_separator_GCJ=:
17049 ;;
17050
17051 sco3.2v5*)
17052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17053 hardcode_shlibpath_var_GCJ=no
17054 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17055 runpath_var=LD_RUN_PATH
17056 hardcode_runpath_var=yes
17057 ;;
17058
17059 solaris*)
17060 no_undefined_flag_GCJ=' -z text'
17061 if test "$GCC" = yes; then
17062 wlarc='${wl}'
17063 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17065 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17066 else
17067 wlarc=''
17068 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17069 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17071 fi
17072 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17073 hardcode_shlibpath_var_GCJ=no
17074 case $host_os in
17075 solaris2.[0-5] | solaris2.[0-5].*) ;;
17076 *)
17077 # The compiler driver will combine linker options so we
17078 # cannot just pass the convience library names through
17079 # without $wl, iff we do not link with $LD.
17080 # Luckily, gcc supports the same syntax we need for Sun Studio.
17081 # Supported since Solaris 2.6 (maybe 2.5.1?)
17082 case $wlarc in
17083 '')
17084 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17085 *)
17086 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17087 esac ;;
17088 esac
17089 link_all_deplibs_GCJ=yes
17090 ;;
17091
17092 sunos4*)
17093 if test "x$host_vendor" = xsequent; then
17094 # Use $CC to link under sequent, because it throws in some extra .o
17095 # files that make .init and .fini sections work.
17096 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17097 else
17098 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17099 fi
17100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17101 hardcode_direct_GCJ=yes
17102 hardcode_minus_L_GCJ=yes
17103 hardcode_shlibpath_var_GCJ=no
17104 ;;
17105
17106 sysv4)
17107 case $host_vendor in
17108 sni)
17109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_direct_GCJ=yes # is this really true???
17111 ;;
17112 siemens)
17113 ## LD is ld it makes a PLAMLIB
17114 ## CC just makes a GrossModule.
17115 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17116 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17117 hardcode_direct_GCJ=no
17118 ;;
17119 motorola)
17120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17121 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17122 ;;
17123 esac
17124 runpath_var='LD_RUN_PATH'
17125 hardcode_shlibpath_var_GCJ=no
17126 ;;
17127
17128 sysv4.3*)
17129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17130 hardcode_shlibpath_var_GCJ=no
17131 export_dynamic_flag_spec_GCJ='-Bexport'
17132 ;;
17133
17134 sysv4*MP*)
17135 if test -d /usr/nec; then
17136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17137 hardcode_shlibpath_var_GCJ=no
17138 runpath_var=LD_RUN_PATH
17139 hardcode_runpath_var=yes
17140 ld_shlibs_GCJ=yes
17141 fi
17142 ;;
17143
17144 sysv4.2uw2*)
17145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17146 hardcode_direct_GCJ=yes
17147 hardcode_minus_L_GCJ=no
17148 hardcode_shlibpath_var_GCJ=no
17149 hardcode_runpath_var=yes
17150 runpath_var=LD_RUN_PATH
17151 ;;
17152
17153 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17154 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17155 if test "$GCC" = yes; then
17156 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17157 else
17158 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17159 fi
17160 runpath_var='LD_RUN_PATH'
17161 hardcode_shlibpath_var_GCJ=no
17162 ;;
17163
17164 sysv5*)
17165 no_undefined_flag_GCJ=' -z text'
17166 # $CC -shared without GNU ld will not create a library from C++
17167 # object files and a static libstdc++, better avoid it by now
17168 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17171 hardcode_libdir_flag_spec_GCJ=
17172 hardcode_shlibpath_var_GCJ=no
17173 runpath_var='LD_RUN_PATH'
17174 ;;
17175
17176 uts4*)
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17179 hardcode_shlibpath_var_GCJ=no
17180 ;;
17181
17182 *)
17183 ld_shlibs_GCJ=no
17184 ;;
17185 esac
17186 fi
17187
17188 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17189 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17190 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17191
17192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17193 if test "$GCC" = yes; then
17194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17195 fi
17196
17197 #
17198 # Do we need to explicitly link libc?
17199 #
17200 case "x$archive_cmds_need_lc_GCJ" in
17201 x|xyes)
17202 # Assume -lc should be added
17203 archive_cmds_need_lc_GCJ=yes
17204
17205 if test "$enable_shared" = yes && test "$GCC" = yes; then
17206 case $archive_cmds_GCJ in
17207 *'~'*)
17208 # FIXME: we may have to deal with multi-command sequences.
17209 ;;
17210 '$CC '*)
17211 # Test whether the compiler implicitly links with -lc since on some
17212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17213 # to ld, don't add -lc before -lgcc.
17214 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17215 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17216 $rm conftest*
17217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17218
17219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17220 (eval $ac_compile) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } 2>conftest.err; then
17224 soname=conftest
17225 lib=conftest
17226 libobjs=conftest.$ac_objext
17227 deplibs=
17228 wl=$lt_prog_compiler_wl_GCJ
17229 compiler_flags=-v
17230 linker_flags=-v
17231 verstring=
17232 output_objdir=.
17233 libname=conftest
17234 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17235 allow_undefined_flag_GCJ=
17236 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17237 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }
17241 then
17242 archive_cmds_need_lc_GCJ=no
17243 else
17244 archive_cmds_need_lc_GCJ=yes
17245 fi
17246 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17247 else
17248 cat conftest.err 1>&5
17249 fi
17250 $rm conftest*
17251 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17252 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17253 ;;
17254 esac
17255 fi
17256 ;;
17257 esac
17258
17259 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17260 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17261 library_names_spec=
17262 libname_spec='lib$name'
17263 soname_spec=
17264 shrext_cmds=".so"
17265 postinstall_cmds=
17266 postuninstall_cmds=
17267 finish_cmds=
17268 finish_eval=
17269 shlibpath_var=
17270 shlibpath_overrides_runpath=unknown
17271 version_type=none
17272 dynamic_linker="$host_os ld.so"
17273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17274 if test "$GCC" = yes; then
17275 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17276 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17277 # if the path contains ";" then we assume it to be the separator
17278 # otherwise default to the standard path separator (i.e. ":") - it is
17279 # assumed that no part of a normal pathname contains ";" but that should
17280 # okay in the real world where ";" in dirpaths is itself problematic.
17281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17282 else
17283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17284 fi
17285 else
17286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17287 fi
17288 need_lib_prefix=unknown
17289 hardcode_into_libs=no
17290
17291 # when you set need_version to no, make sure it does not cause -set_version
17292 # flags to be left without arguments
17293 need_version=unknown
17294
17295 case $host_os in
17296 aix3*)
17297 version_type=linux
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17299 shlibpath_var=LIBPATH
17300
17301 # AIX 3 has no versioning support, so we append a major version to the name.
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 ;;
17304
17305 aix4* | aix5*)
17306 version_type=linux
17307 need_lib_prefix=no
17308 need_version=no
17309 hardcode_into_libs=yes
17310 if test "$host_cpu" = ia64; then
17311 # AIX 5 supports IA64
17312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 else
17315 # With GCC up to 2.95.x, collect2 would create an import file
17316 # for dependence libraries. The import file would start with
17317 # the line `#! .'. This would cause the generated library to
17318 # depend on `.', always an invalid library. This was fixed in
17319 # development snapshots of GCC prior to 3.0.
17320 case $host_os in
17321 aix4 | aix4.[01] | aix4.[01].*)
17322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17323 echo ' yes '
17324 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17325 :
17326 else
17327 can_build_shared=no
17328 fi
17329 ;;
17330 esac
17331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17332 # soname into executable. Probably we can add versioning support to
17333 # collect2, so additional links can be useful in future.
17334 if test "$aix_use_runtimelinking" = yes; then
17335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17336 # instead of lib<name>.a to let people know that these are not
17337 # typical AIX shared libraries.
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 else
17340 # We preserve .a as extension for shared libraries through AIX4.2
17341 # and later when we are not doing run time linking.
17342 library_names_spec='${libname}${release}.a $libname.a'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 fi
17345 shlibpath_var=LIBPATH
17346 fi
17347 ;;
17348
17349 amigaos*)
17350 library_names_spec='$libname.ixlibrary $libname.a'
17351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17352 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'
17353 ;;
17354
17355 beos*)
17356 library_names_spec='${libname}${shared_ext}'
17357 dynamic_linker="$host_os ld.so"
17358 shlibpath_var=LIBRARY_PATH
17359 ;;
17360
17361 bsdi[45]*)
17362 version_type=linux
17363 need_version=no
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17370 # the default ld.so.conf also contains /usr/contrib/lib and
17371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17372 # libtool to hard-code these into programs
17373 ;;
17374
17375 cygwin* | mingw* | pw32*)
17376 version_type=windows
17377 shrext_cmds=".dll"
17378 need_version=no
17379 need_lib_prefix=no
17380
17381 case $GCC,$host_os in
17382 yes,cygwin* | yes,mingw* | yes,pw32*)
17383 library_names_spec='$libname.dll.a'
17384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17385 postinstall_cmds='base_file=`basename \${file}`~
17386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17387 dldir=$destdir/`dirname \$dlpath`~
17388 test -d \$dldir || mkdir -p \$dldir~
17389 $install_prog $dir/$dlname \$dldir/$dlname'
17390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17391 dlpath=$dir/\$dldll~
17392 $rm \$dlpath'
17393 shlibpath_overrides_runpath=yes
17394
17395 case $host_os in
17396 cygwin*)
17397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17399 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17400 ;;
17401 mingw*)
17402 # MinGW DLLs use traditional 'lib' prefix
17403 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17404 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17405 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17406 # It is most probably a Windows format PATH printed by
17407 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17408 # path with ; separators, and with drive letters. We can handle the
17409 # drive letters (cygwin fileutils understands them), so leave them,
17410 # especially as we might pass files found there to a mingw objdump,
17411 # which wouldn't understand a cygwinified path. Ahh.
17412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17413 else
17414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17415 fi
17416 ;;
17417 pw32*)
17418 # pw32 DLLs use 'pw' prefix rather than 'lib'
17419 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17420 ;;
17421 esac
17422 ;;
17423
17424 *)
17425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17426 ;;
17427 esac
17428 dynamic_linker='Win32 ld.exe'
17429 # FIXME: first we should search . and the directory the executable is in
17430 shlibpath_var=PATH
17431 ;;
17432
17433 darwin* | rhapsody*)
17434 dynamic_linker="$host_os dyld"
17435 version_type=darwin
17436 need_lib_prefix=no
17437 need_version=no
17438 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17439 soname_spec='${libname}${release}${major}$shared_ext'
17440 shlibpath_overrides_runpath=yes
17441 shlibpath_var=DYLD_LIBRARY_PATH
17442 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17443 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17444 if test "$GCC" = yes; then
17445 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"`
17446 else
17447 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17448 fi
17449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17450 ;;
17451
17452 dgux*)
17453 version_type=linux
17454 need_lib_prefix=no
17455 need_version=no
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 ;;
17460
17461 freebsd1*)
17462 dynamic_linker=no
17463 ;;
17464
17465 kfreebsd*-gnu)
17466 version_type=linux
17467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath=no
17473 hardcode_into_libs=yes
17474 dynamic_linker='GNU ld.so'
17475 ;;
17476
17477 freebsd* | dragonfly*)
17478 # DragonFly does not have aout. When/if they implement a new
17479 # versioning mechanism, adjust this.
17480 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17481 version_type=freebsd-$objformat
17482 case $version_type in
17483 freebsd-elf*)
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17485 need_version=no
17486 need_lib_prefix=no
17487 ;;
17488 freebsd-*)
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17490 need_version=yes
17491 ;;
17492 esac
17493 shlibpath_var=LD_LIBRARY_PATH
17494 case $host_os in
17495 freebsd2*)
17496 shlibpath_overrides_runpath=yes
17497 ;;
17498 freebsd3.[01]* | freebsdelf3.[01]*)
17499 shlibpath_overrides_runpath=yes
17500 hardcode_into_libs=yes
17501 ;;
17502 *) # from 3.2 on
17503 shlibpath_overrides_runpath=no
17504 hardcode_into_libs=yes
17505 ;;
17506 esac
17507 ;;
17508
17509 gnu*)
17510 version_type=linux
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 hardcode_into_libs=yes
17517 ;;
17518
17519 hpux9* | hpux10* | hpux11*)
17520 # Give a soname corresponding to the major version so that dld.sl refuses to
17521 # link against other versions.
17522 version_type=sunos
17523 need_lib_prefix=no
17524 need_version=no
17525 case "$host_cpu" in
17526 ia64*)
17527 shrext_cmds='.so'
17528 hardcode_into_libs=yes
17529 dynamic_linker="$host_os dld.so"
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533 soname_spec='${libname}${release}${shared_ext}$major'
17534 if test "X$HPUX_IA64_MODE" = X32; then
17535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17536 else
17537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17538 fi
17539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17540 ;;
17541 hppa*64*)
17542 shrext_cmds='.sl'
17543 hardcode_into_libs=yes
17544 dynamic_linker="$host_os dld.sl"
17545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17551 ;;
17552 *)
17553 shrext_cmds='.sl'
17554 dynamic_linker="$host_os dld.sl"
17555 shlibpath_var=SHLIB_PATH
17556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 ;;
17560 esac
17561 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17562 postinstall_cmds='chmod 555 $lib'
17563 ;;
17564
17565 irix5* | irix6* | nonstopux*)
17566 case $host_os in
17567 nonstopux*) version_type=nonstopux ;;
17568 *)
17569 if test "$lt_cv_prog_gnu_ld" = yes; then
17570 version_type=linux
17571 else
17572 version_type=irix
17573 fi ;;
17574 esac
17575 need_lib_prefix=no
17576 need_version=no
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17579 case $host_os in
17580 irix5* | nonstopux*)
17581 libsuff= shlibsuff=
17582 ;;
17583 *)
17584 case $LD in # libtool.m4 will add one of these switches to LD
17585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17586 libsuff= shlibsuff= libmagic=32-bit;;
17587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17588 libsuff=32 shlibsuff=N32 libmagic=N32;;
17589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17591 *) libsuff= shlibsuff= libmagic=never-match;;
17592 esac
17593 ;;
17594 esac
17595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17596 shlibpath_overrides_runpath=no
17597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17599 hardcode_into_libs=yes
17600 ;;
17601
17602 # No shared lib support for Linux oldld, aout, or coff.
17603 linux*oldld* | linux*aout* | linux*coff*)
17604 dynamic_linker=no
17605 ;;
17606
17607 # This must be Linux ELF.
17608 linux*)
17609 version_type=linux
17610 need_lib_prefix=no
17611 need_version=no
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath=no
17617 # This implies no fast_install, which is unacceptable.
17618 # Some rework will be needed to allow for fast_install
17619 # before this can be enabled.
17620 hardcode_into_libs=yes
17621
17622 # find out which ABI we are using
17623 libsuff=
17624 case "$host_cpu" in
17625 x86_64*|s390x*|powerpc64*)
17626 echo '#line 17626 "configure"' > conftest.$ac_ext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628 (eval $ac_compile) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; then
17632 case `/usr/bin/file conftest.$ac_objext` in
17633 *64-bit*)
17634 libsuff=64
17635 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17636 ;;
17637 esac
17638 fi
17639 rm -rf conftest*
17640 ;;
17641 esac
17642
17643 # Append ld.so.conf contents to the search path
17644 if test -f /etc/ld.so.conf; then
17645 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17646 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17647 fi
17648
17649 # We used to test for /lib/ld.so.1 and disable shared libraries on
17650 # powerpc, because MkLinux only supported shared libraries with the
17651 # GNU dynamic linker. Since this was broken with cross compilers,
17652 # most powerpc-linux boxes support dynamic linking these days and
17653 # people can always --disable-shared, the test was removed, and we
17654 # assume the GNU/Linux dynamic linker is in use.
17655 dynamic_linker='GNU/Linux ld.so'
17656 ;;
17657
17658 knetbsd*-gnu)
17659 version_type=linux
17660 need_lib_prefix=no
17661 need_version=no
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=no
17666 hardcode_into_libs=yes
17667 dynamic_linker='GNU ld.so'
17668 ;;
17669
17670 netbsd*)
17671 version_type=sunos
17672 need_lib_prefix=no
17673 need_version=no
17674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17677 dynamic_linker='NetBSD (a.out) ld.so'
17678 else
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 dynamic_linker='NetBSD ld.elf_so'
17682 fi
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=yes
17685 hardcode_into_libs=yes
17686 ;;
17687
17688 newsos6)
17689 version_type=linux
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=yes
17693 ;;
17694
17695 nto-qnx*)
17696 version_type=linux
17697 need_lib_prefix=no
17698 need_version=no
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=yes
17703 ;;
17704
17705 openbsd*)
17706 version_type=sunos
17707 need_lib_prefix=no
17708 need_version=no
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17713 case $host_os in
17714 openbsd2.[89] | openbsd2.[89].*)
17715 shlibpath_overrides_runpath=no
17716 ;;
17717 *)
17718 shlibpath_overrides_runpath=yes
17719 ;;
17720 esac
17721 else
17722 shlibpath_overrides_runpath=yes
17723 fi
17724 ;;
17725
17726 os2*)
17727 libname_spec='$name'
17728 shrext_cmds=".dll"
17729 need_lib_prefix=no
17730 library_names_spec='$libname${shared_ext} $libname.a'
17731 dynamic_linker='OS/2 ld.exe'
17732 shlibpath_var=LIBPATH
17733 ;;
17734
17735 osf3* | osf4* | osf5*)
17736 version_type=osf
17737 need_lib_prefix=no
17738 need_version=no
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17744 ;;
17745
17746 sco3.2v5*)
17747 version_type=osf
17748 soname_spec='${libname}${release}${shared_ext}$major'
17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750 shlibpath_var=LD_LIBRARY_PATH
17751 ;;
17752
17753 solaris*)
17754 version_type=linux
17755 need_lib_prefix=no
17756 need_version=no
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=yes
17761 hardcode_into_libs=yes
17762 # ldd complains unless libraries are executable
17763 postinstall_cmds='chmod +x $lib'
17764 ;;
17765
17766 sunos4*)
17767 version_type=sunos
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 shlibpath_overrides_runpath=yes
17772 if test "$with_gnu_ld" = yes; then
17773 need_lib_prefix=no
17774 fi
17775 need_version=yes
17776 ;;
17777
17778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17779 version_type=linux
17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17781 soname_spec='${libname}${release}${shared_ext}$major'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 case $host_vendor in
17784 sni)
17785 shlibpath_overrides_runpath=no
17786 need_lib_prefix=no
17787 export_dynamic_flag_spec='${wl}-Blargedynsym'
17788 runpath_var=LD_RUN_PATH
17789 ;;
17790 siemens)
17791 need_lib_prefix=no
17792 ;;
17793 motorola)
17794 need_lib_prefix=no
17795 need_version=no
17796 shlibpath_overrides_runpath=no
17797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17798 ;;
17799 esac
17800 ;;
17801
17802 sysv4*MP*)
17803 if test -d /usr/nec ;then
17804 version_type=linux
17805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17806 soname_spec='$libname${shared_ext}.$major'
17807 shlibpath_var=LD_LIBRARY_PATH
17808 fi
17809 ;;
17810
17811 uts4*)
17812 version_type=linux
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec='${libname}${release}${shared_ext}$major'
17815 shlibpath_var=LD_LIBRARY_PATH
17816 ;;
17817
17818 *)
17819 dynamic_linker=no
17820 ;;
17821 esac
17822 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17823 echo "${ECHO_T}$dynamic_linker" >&6
17824 test "$dynamic_linker" = no && can_build_shared=no
17825
17826 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17827 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17828 hardcode_action_GCJ=
17829 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17830 test -n "$runpath_var_GCJ" || \
17831 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17832
17833 # We can hardcode non-existant directories.
17834 if test "$hardcode_direct_GCJ" != no &&
17835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17836 # have to relink, otherwise we might link with an installed library
17837 # when we should be linking with a yet-to-be-installed one
17838 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17839 test "$hardcode_minus_L_GCJ" != no; then
17840 # Linking always hardcodes the temporary library directory.
17841 hardcode_action_GCJ=relink
17842 else
17843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17844 hardcode_action_GCJ=immediate
17845 fi
17846 else
17847 # We cannot hardcode anything, or else we can only hardcode existing
17848 # directories.
17849 hardcode_action_GCJ=unsupported
17850 fi
17851 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17852 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17853
17854 if test "$hardcode_action_GCJ" = relink; then
17855 # Fast installation is not supported
17856 enable_fast_install=no
17857 elif test "$shlibpath_overrides_runpath" = yes ||
17858 test "$enable_shared" = no; then
17859 # Fast installation is not necessary
17860 enable_fast_install=needless
17861 fi
17862
17863 striplib=
17864 old_striplib=
17865 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17866 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17867 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17868 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17869 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17870 echo "$as_me:$LINENO: result: yes" >&5
17871 echo "${ECHO_T}yes" >&6
17872 else
17873 # FIXME - insert some real tests, host_os isn't really good enough
17874 case $host_os in
17875 darwin*)
17876 if test -n "$STRIP" ; then
17877 striplib="$STRIP -x"
17878 echo "$as_me:$LINENO: result: yes" >&5
17879 echo "${ECHO_T}yes" >&6
17880 else
17881 echo "$as_me:$LINENO: result: no" >&5
17882 echo "${ECHO_T}no" >&6
17883 fi
17884 ;;
17885 *)
17886 echo "$as_me:$LINENO: result: no" >&5
17887 echo "${ECHO_T}no" >&6
17888 ;;
17889 esac
17890 fi
17891
17892 if test "x$enable_dlopen" != xyes; then
17893 enable_dlopen=unknown
17894 enable_dlopen_self=unknown
17895 enable_dlopen_self_static=unknown
17896 else
17897 lt_cv_dlopen=no
17898 lt_cv_dlopen_libs=
17899
17900 case $host_os in
17901 beos*)
17902 lt_cv_dlopen="load_add_on"
17903 lt_cv_dlopen_libs=
17904 lt_cv_dlopen_self=yes
17905 ;;
17906
17907 mingw* | pw32*)
17908 lt_cv_dlopen="LoadLibrary"
17909 lt_cv_dlopen_libs=
17910 ;;
17911
17912 cygwin*)
17913 lt_cv_dlopen="dlopen"
17914 lt_cv_dlopen_libs=
17915 ;;
17916
17917 darwin*)
17918 # if libdl is installed we need to link against it
17919 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 else
17924 ac_check_lib_save_LIBS=$LIBS
17925 LIBS="-ldl $LIBS"
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932
17933 /* Override any gcc2 internal prototype to avoid an error. */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 /* We use char because int might match the return type of a gcc2
17938 builtin and then its argument prototype would still apply. */
17939 char dlopen ();
17940 int
17941 main ()
17942 {
17943 dlopen ();
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950 (eval $ac_link) 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest$ac_exeext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_lib_dl_dlopen=yes
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974 ac_cv_lib_dl_dlopen=no
17975 fi
17976 rm -f conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17979 fi
17980 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17981 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17982 if test $ac_cv_lib_dl_dlopen = yes; then
17983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17984 else
17985
17986 lt_cv_dlopen="dyld"
17987 lt_cv_dlopen_libs=
17988 lt_cv_dlopen_self=yes
17989
17990 fi
17991
17992 ;;
17993
17994 *)
17995 echo "$as_me:$LINENO: checking for shl_load" >&5
17996 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17997 if test "${ac_cv_func_shl_load+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18008 #define shl_load innocuous_shl_load
18009
18010 /* System header to define __stub macros and hopefully few prototypes,
18011 which can conflict with char shl_load (); below.
18012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013 <limits.h> exists even on freestanding compilers. */
18014
18015 #ifdef __STDC__
18016 # include <limits.h>
18017 #else
18018 # include <assert.h>
18019 #endif
18020
18021 #undef shl_load
18022
18023 /* Override any gcc2 internal prototype to avoid an error. */
18024 #ifdef __cplusplus
18025 extern "C"
18026 {
18027 #endif
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18030 char shl_load ();
18031 /* The GNU C library defines this for functions which it implements
18032 to always fail with ENOSYS. Some functions are actually named
18033 something starting with __ and the normal name is an alias. */
18034 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18035 choke me
18036 #else
18037 char (*f) () = shl_load;
18038 #endif
18039 #ifdef __cplusplus
18040 }
18041 #endif
18042
18043 int
18044 main ()
18045 {
18046 return f != shl_load;
18047 ;
18048 return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18053 (eval $ac_link) 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_func_shl_load=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_cv_func_shl_load=no
18078 fi
18079 rm -f conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18083 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18084 if test $ac_cv_func_shl_load = yes; then
18085 lt_cv_dlopen="shl_load"
18086 else
18087 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18088 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18089 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 ac_check_lib_save_LIBS=$LIBS
18093 LIBS="-ldld $LIBS"
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100
18101 /* Override any gcc2 internal prototype to avoid an error. */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 /* We use char because int might match the return type of a gcc2
18106 builtin and then its argument prototype would still apply. */
18107 char shl_load ();
18108 int
18109 main ()
18110 {
18111 shl_load ();
18112 ;
18113 return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest$ac_exeext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_cv_lib_dld_shl_load=yes
18138 else
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142 ac_cv_lib_dld_shl_load=no
18143 fi
18144 rm -f conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18147 fi
18148 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18149 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18150 if test $ac_cv_lib_dld_shl_load = yes; then
18151 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18152 else
18153 echo "$as_me:$LINENO: checking for dlopen" >&5
18154 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18155 if test "${ac_cv_func_dlopen+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18166 #define dlopen innocuous_dlopen
18167
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char dlopen (); below.
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 <limits.h> exists even on freestanding compilers. */
18172
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18178
18179 #undef dlopen
18180
18181 /* Override any gcc2 internal prototype to avoid an error. */
18182 #ifdef __cplusplus
18183 extern "C"
18184 {
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char dlopen ();
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18193 choke me
18194 #else
18195 char (*f) () = dlopen;
18196 #endif
18197 #ifdef __cplusplus
18198 }
18199 #endif
18200
18201 int
18202 main ()
18203 {
18204 return f != dlopen;
18205 ;
18206 return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest$ac_exeext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_cv_func_dlopen=yes
18231 else
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 ac_cv_func_dlopen=no
18236 fi
18237 rm -f conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239 fi
18240 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18241 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18242 if test $ac_cv_func_dlopen = yes; then
18243 lt_cv_dlopen="dlopen"
18244 else
18245 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 ac_check_lib_save_LIBS=$LIBS
18251 LIBS="-ldl $LIBS"
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h. */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258
18259 /* Override any gcc2 internal prototype to avoid an error. */
18260 #ifdef __cplusplus
18261 extern "C"
18262 #endif
18263 /* We use char because int might match the return type of a gcc2
18264 builtin and then its argument prototype would still apply. */
18265 char dlopen ();
18266 int
18267 main ()
18268 {
18269 dlopen ();
18270 ;
18271 return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext conftest$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest$ac_exeext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_lib_dl_dlopen=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 ac_cv_lib_dl_dlopen=no
18301 fi
18302 rm -f conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18305 fi
18306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18308 if test $ac_cv_lib_dl_dlopen = yes; then
18309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18310 else
18311 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lsvld $LIBS"
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324
18325 /* Override any gcc2 internal prototype to avoid an error. */
18326 #ifdef __cplusplus
18327 extern "C"
18328 #endif
18329 /* We use char because int might match the return type of a gcc2
18330 builtin and then its argument prototype would still apply. */
18331 char dlopen ();
18332 int
18333 main ()
18334 {
18335 dlopen ();
18336 ;
18337 return 0;
18338 }
18339 _ACEOF
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18342 (eval $ac_link) 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest$ac_exeext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_cv_lib_svld_dlopen=yes
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366 ac_cv_lib_svld_dlopen=no
18367 fi
18368 rm -f conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18371 fi
18372 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18373 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18374 if test $ac_cv_lib_svld_dlopen = yes; then
18375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18376 else
18377 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18378 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-ldld $LIBS"
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18390
18391 /* Override any gcc2 internal prototype to avoid an error. */
18392 #ifdef __cplusplus
18393 extern "C"
18394 #endif
18395 /* We use char because int might match the return type of a gcc2
18396 builtin and then its argument prototype would still apply. */
18397 char dld_link ();
18398 int
18399 main ()
18400 {
18401 dld_link ();
18402 ;
18403 return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18408 (eval $ac_link) 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; } &&
18421 { ac_try='test -s conftest$ac_exeext'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; }; then
18427 ac_cv_lib_dld_dld_link=yes
18428 else
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18431
18432 ac_cv_lib_dld_dld_link=no
18433 fi
18434 rm -f conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18437 fi
18438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18439 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18440 if test $ac_cv_lib_dld_dld_link = yes; then
18441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18442 fi
18443
18444
18445 fi
18446
18447
18448 fi
18449
18450
18451 fi
18452
18453
18454 fi
18455
18456
18457 fi
18458
18459 ;;
18460 esac
18461
18462 if test "x$lt_cv_dlopen" != xno; then
18463 enable_dlopen=yes
18464 else
18465 enable_dlopen=no
18466 fi
18467
18468 case $lt_cv_dlopen in
18469 dlopen)
18470 save_CPPFLAGS="$CPPFLAGS"
18471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18472
18473 save_LDFLAGS="$LDFLAGS"
18474 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18475
18476 save_LIBS="$LIBS"
18477 LIBS="$lt_cv_dlopen_libs $LIBS"
18478
18479 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18480 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18481 if test "${lt_cv_dlopen_self+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 if test "$cross_compiling" = yes; then :
18485 lt_cv_dlopen_self=cross
18486 else
18487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18488 lt_status=$lt_dlunknown
18489 cat > conftest.$ac_ext <<EOF
18490 #line 18490 "configure"
18491 #include "confdefs.h"
18492
18493 #if HAVE_DLFCN_H
18494 #include <dlfcn.h>
18495 #endif
18496
18497 #include <stdio.h>
18498
18499 #ifdef RTLD_GLOBAL
18500 # define LT_DLGLOBAL RTLD_GLOBAL
18501 #else
18502 # ifdef DL_GLOBAL
18503 # define LT_DLGLOBAL DL_GLOBAL
18504 # else
18505 # define LT_DLGLOBAL 0
18506 # endif
18507 #endif
18508
18509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18510 find out it does not work in some platform. */
18511 #ifndef LT_DLLAZY_OR_NOW
18512 # ifdef RTLD_LAZY
18513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18514 # else
18515 # ifdef DL_LAZY
18516 # define LT_DLLAZY_OR_NOW DL_LAZY
18517 # else
18518 # ifdef RTLD_NOW
18519 # define LT_DLLAZY_OR_NOW RTLD_NOW
18520 # else
18521 # ifdef DL_NOW
18522 # define LT_DLLAZY_OR_NOW DL_NOW
18523 # else
18524 # define LT_DLLAZY_OR_NOW 0
18525 # endif
18526 # endif
18527 # endif
18528 # endif
18529 #endif
18530
18531 #ifdef __cplusplus
18532 extern "C" void exit (int);
18533 #endif
18534
18535 void fnord() { int i=42;}
18536 int main ()
18537 {
18538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18539 int status = $lt_dlunknown;
18540
18541 if (self)
18542 {
18543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18545 /* dlclose (self); */
18546 }
18547
18548 exit (status);
18549 }
18550 EOF
18551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18552 (eval $ac_link) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18556 (./conftest; exit; ) 2>/dev/null
18557 lt_status=$?
18558 case x$lt_status in
18559 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18560 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18561 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18562 esac
18563 else :
18564 # compilation failed
18565 lt_cv_dlopen_self=no
18566 fi
18567 fi
18568 rm -fr conftest*
18569
18570
18571 fi
18572 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18573 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18574
18575 if test "x$lt_cv_dlopen_self" = xyes; then
18576 LDFLAGS="$LDFLAGS $link_static_flag"
18577 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18578 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18579 if test "${lt_cv_dlopen_self_static+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 if test "$cross_compiling" = yes; then :
18583 lt_cv_dlopen_self_static=cross
18584 else
18585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18586 lt_status=$lt_dlunknown
18587 cat > conftest.$ac_ext <<EOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18590
18591 #if HAVE_DLFCN_H
18592 #include <dlfcn.h>
18593 #endif
18594
18595 #include <stdio.h>
18596
18597 #ifdef RTLD_GLOBAL
18598 # define LT_DLGLOBAL RTLD_GLOBAL
18599 #else
18600 # ifdef DL_GLOBAL
18601 # define LT_DLGLOBAL DL_GLOBAL
18602 # else
18603 # define LT_DLGLOBAL 0
18604 # endif
18605 #endif
18606
18607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18608 find out it does not work in some platform. */
18609 #ifndef LT_DLLAZY_OR_NOW
18610 # ifdef RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18612 # else
18613 # ifdef DL_LAZY
18614 # define LT_DLLAZY_OR_NOW DL_LAZY
18615 # else
18616 # ifdef RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW RTLD_NOW
18618 # else
18619 # ifdef DL_NOW
18620 # define LT_DLLAZY_OR_NOW DL_NOW
18621 # else
18622 # define LT_DLLAZY_OR_NOW 0
18623 # endif
18624 # endif
18625 # endif
18626 # endif
18627 #endif
18628
18629 #ifdef __cplusplus
18630 extern "C" void exit (int);
18631 #endif
18632
18633 void fnord() { int i=42;}
18634 int main ()
18635 {
18636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18637 int status = $lt_dlunknown;
18638
18639 if (self)
18640 {
18641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18643 /* dlclose (self); */
18644 }
18645
18646 exit (status);
18647 }
18648 EOF
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18654 (./conftest; exit; ) 2>/dev/null
18655 lt_status=$?
18656 case x$lt_status in
18657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18659 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18660 esac
18661 else :
18662 # compilation failed
18663 lt_cv_dlopen_self_static=no
18664 fi
18665 fi
18666 rm -fr conftest*
18667
18668
18669 fi
18670 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18671 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18672 fi
18673
18674 CPPFLAGS="$save_CPPFLAGS"
18675 LDFLAGS="$save_LDFLAGS"
18676 LIBS="$save_LIBS"
18677 ;;
18678 esac
18679
18680 case $lt_cv_dlopen_self in
18681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18682 *) enable_dlopen_self=unknown ;;
18683 esac
18684
18685 case $lt_cv_dlopen_self_static in
18686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18687 *) enable_dlopen_self_static=unknown ;;
18688 esac
18689 fi
18690
18691
18692 # The else clause should only fire when bootstrapping the
18693 # libtool distribution, otherwise you forgot to ship ltmain.sh
18694 # with your package, and you will get complaints that there are
18695 # no rules to generate ltmain.sh.
18696 if test -f "$ltmain"; then
18697 # See if we are running on zsh, and set the options which allow our commands through
18698 # without removal of \ escapes.
18699 if test -n "${ZSH_VERSION+set}" ; then
18700 setopt NO_GLOB_SUBST
18701 fi
18702 # Now quote all the things that may contain metacharacters while being
18703 # careful not to overquote the AC_SUBSTed values. We take copies of the
18704 # variables and quote the copies for generation of the libtool script.
18705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18706 SED SHELL STRIP \
18707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18709 deplibs_check_method reload_flag reload_cmds need_locks \
18710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18711 lt_cv_sys_global_symbol_to_c_name_address \
18712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18713 old_postinstall_cmds old_postuninstall_cmds \
18714 compiler_GCJ \
18715 CC_GCJ \
18716 LD_GCJ \
18717 lt_prog_compiler_wl_GCJ \
18718 lt_prog_compiler_pic_GCJ \
18719 lt_prog_compiler_static_GCJ \
18720 lt_prog_compiler_no_builtin_flag_GCJ \
18721 export_dynamic_flag_spec_GCJ \
18722 thread_safe_flag_spec_GCJ \
18723 whole_archive_flag_spec_GCJ \
18724 enable_shared_with_static_runtimes_GCJ \
18725 old_archive_cmds_GCJ \
18726 old_archive_from_new_cmds_GCJ \
18727 predep_objects_GCJ \
18728 postdep_objects_GCJ \
18729 predeps_GCJ \
18730 postdeps_GCJ \
18731 compiler_lib_search_path_GCJ \
18732 archive_cmds_GCJ \
18733 archive_expsym_cmds_GCJ \
18734 postinstall_cmds_GCJ \
18735 postuninstall_cmds_GCJ \
18736 old_archive_from_expsyms_cmds_GCJ \
18737 allow_undefined_flag_GCJ \
18738 no_undefined_flag_GCJ \
18739 export_symbols_cmds_GCJ \
18740 hardcode_libdir_flag_spec_GCJ \
18741 hardcode_libdir_flag_spec_ld_GCJ \
18742 hardcode_libdir_separator_GCJ \
18743 hardcode_automatic_GCJ \
18744 module_cmds_GCJ \
18745 module_expsym_cmds_GCJ \
18746 lt_cv_prog_compiler_c_o_GCJ \
18747 exclude_expsyms_GCJ \
18748 include_expsyms_GCJ; do
18749
18750 case $var in
18751 old_archive_cmds_GCJ | \
18752 old_archive_from_new_cmds_GCJ | \
18753 archive_cmds_GCJ | \
18754 archive_expsym_cmds_GCJ | \
18755 module_cmds_GCJ | \
18756 module_expsym_cmds_GCJ | \
18757 old_archive_from_expsyms_cmds_GCJ | \
18758 export_symbols_cmds_GCJ | \
18759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18760 postinstall_cmds | postuninstall_cmds | \
18761 old_postinstall_cmds | old_postuninstall_cmds | \
18762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18763 # Double-quote double-evaled strings.
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18765 ;;
18766 *)
18767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18768 ;;
18769 esac
18770 done
18771
18772 case $lt_echo in
18773 *'\$0 --fallback-echo"')
18774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18775 ;;
18776 esac
18777
18778 cfgfile="$ofile"
18779
18780 cat <<__EOF__ >> "$cfgfile"
18781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18782
18783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18784
18785 # Shell to use when invoking shell scripts.
18786 SHELL=$lt_SHELL
18787
18788 # Whether or not to build shared libraries.
18789 build_libtool_libs=$enable_shared
18790
18791 # Whether or not to build static libraries.
18792 build_old_libs=$enable_static
18793
18794 # Whether or not to add -lc for building shared libraries.
18795 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18796
18797 # Whether or not to disallow shared libs when runtime libs are static
18798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18799
18800 # Whether or not to optimize for fast installation.
18801 fast_install=$enable_fast_install
18802
18803 # The host system.
18804 host_alias=$host_alias
18805 host=$host
18806 host_os=$host_os
18807
18808 # The build system.
18809 build_alias=$build_alias
18810 build=$build
18811 build_os=$build_os
18812
18813 # An echo program that does not interpret backslashes.
18814 echo=$lt_echo
18815
18816 # The archiver.
18817 AR=$lt_AR
18818 AR_FLAGS=$lt_AR_FLAGS
18819
18820 # A C compiler.
18821 LTCC=$lt_LTCC
18822
18823 # A language-specific compiler.
18824 CC=$lt_compiler_GCJ
18825
18826 # Is the compiler the GNU C compiler?
18827 with_gcc=$GCC_GCJ
18828
18829 # An ERE matcher.
18830 EGREP=$lt_EGREP
18831
18832 # The linker used to build libraries.
18833 LD=$lt_LD_GCJ
18834
18835 # Whether we need hard or soft links.
18836 LN_S=$lt_LN_S
18837
18838 # A BSD-compatible nm program.
18839 NM=$lt_NM
18840
18841 # A symbol stripping program
18842 STRIP=$lt_STRIP
18843
18844 # Used to examine libraries when file_magic_cmd begins "file"
18845 MAGIC_CMD=$MAGIC_CMD
18846
18847 # Used on cygwin: DLL creation program.
18848 DLLTOOL="$DLLTOOL"
18849
18850 # Used on cygwin: object dumper.
18851 OBJDUMP="$OBJDUMP"
18852
18853 # Used on cygwin: assembler.
18854 AS="$AS"
18855
18856 # The name of the directory that contains temporary libtool files.
18857 objdir=$objdir
18858
18859 # How to create reloadable object files.
18860 reload_flag=$lt_reload_flag
18861 reload_cmds=$lt_reload_cmds
18862
18863 # How to pass a linker flag through the compiler.
18864 wl=$lt_lt_prog_compiler_wl_GCJ
18865
18866 # Object file suffix (normally "o").
18867 objext="$ac_objext"
18868
18869 # Old archive suffix (normally "a").
18870 libext="$libext"
18871
18872 # Shared library suffix (normally ".so").
18873 shrext_cmds='$shrext_cmds'
18874
18875 # Executable file suffix (normally "").
18876 exeext="$exeext"
18877
18878 # Additional compiler flags for building library objects.
18879 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18880 pic_mode=$pic_mode
18881
18882 # What is the maximum length of a command?
18883 max_cmd_len=$lt_cv_sys_max_cmd_len
18884
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18887
18888 # Must we lock files when doing compilation?
18889 need_locks=$lt_need_locks
18890
18891 # Do we need the lib prefix for modules?
18892 need_lib_prefix=$need_lib_prefix
18893
18894 # Do we need a version for libraries?
18895 need_version=$need_version
18896
18897 # Whether dlopen is supported.
18898 dlopen_support=$enable_dlopen
18899
18900 # Whether dlopen of programs is supported.
18901 dlopen_self=$enable_dlopen_self
18902
18903 # Whether dlopen of statically linked programs is supported.
18904 dlopen_self_static=$enable_dlopen_self_static
18905
18906 # Compiler flag to prevent dynamic linking.
18907 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18908
18909 # Compiler flag to turn off builtin functions.
18910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18911
18912 # Compiler flag to allow reflexive dlopens.
18913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18914
18915 # Compiler flag to generate shared objects directly from archives.
18916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18917
18918 # Compiler flag to generate thread-safe objects.
18919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18920
18921 # Library versioning type.
18922 version_type=$version_type
18923
18924 # Format of library name prefix.
18925 libname_spec=$lt_libname_spec
18926
18927 # List of archive names. First name is the real one, the rest are links.
18928 # The last name is the one that the linker finds with -lNAME.
18929 library_names_spec=$lt_library_names_spec
18930
18931 # The coded name of the library, if different from the real name.
18932 soname_spec=$lt_soname_spec
18933
18934 # Commands used to build and install an old-style archive.
18935 RANLIB=$lt_RANLIB
18936 old_archive_cmds=$lt_old_archive_cmds_GCJ
18937 old_postinstall_cmds=$lt_old_postinstall_cmds
18938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18939
18940 # Create an old-style archive from a shared archive.
18941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18942
18943 # Create a temporary old-style archive to link instead of a shared archive.
18944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18945
18946 # Commands used to build and install a shared archive.
18947 archive_cmds=$lt_archive_cmds_GCJ
18948 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18949 postinstall_cmds=$lt_postinstall_cmds
18950 postuninstall_cmds=$lt_postuninstall_cmds
18951
18952 # Commands used to build a loadable module (assumed same as above if empty)
18953 module_cmds=$lt_module_cmds_GCJ
18954 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18955
18956 # Commands to strip libraries.
18957 old_striplib=$lt_old_striplib
18958 striplib=$lt_striplib
18959
18960 # Dependencies to place before the objects being linked to create a
18961 # shared library.
18962 predep_objects=$lt_predep_objects_GCJ
18963
18964 # Dependencies to place after the objects being linked to create a
18965 # shared library.
18966 postdep_objects=$lt_postdep_objects_GCJ
18967
18968 # Dependencies to place before the objects being linked to create a
18969 # shared library.
18970 predeps=$lt_predeps_GCJ
18971
18972 # Dependencies to place after the objects being linked to create a
18973 # shared library.
18974 postdeps=$lt_postdeps_GCJ
18975
18976 # The library search path used internally by the compiler when linking
18977 # a shared library.
18978 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18979
18980 # Method to check whether dependent libraries are shared objects.
18981 deplibs_check_method=$lt_deplibs_check_method
18982
18983 # Command to use when deplibs_check_method == file_magic.
18984 file_magic_cmd=$lt_file_magic_cmd
18985
18986 # Flag that allows shared libraries with undefined symbols to be built.
18987 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18988
18989 # Flag that forces no undefined symbols.
18990 no_undefined_flag=$lt_no_undefined_flag_GCJ
18991
18992 # Commands used to finish a libtool library installation in a directory.
18993 finish_cmds=$lt_finish_cmds
18994
18995 # Same as above, but a single script fragment to be evaled but not shown.
18996 finish_eval=$lt_finish_eval
18997
18998 # Take the output of nm and produce a listing of raw symbols and C names.
18999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19000
19001 # Transform the output of nm in a proper C declaration
19002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19003
19004 # Transform the output of nm in a C name address pair
19005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19006
19007 # This is the shared library runtime path variable.
19008 runpath_var=$runpath_var
19009
19010 # This is the shared library path variable.
19011 shlibpath_var=$shlibpath_var
19012
19013 # Is shlibpath searched before the hard-coded library search path?
19014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19015
19016 # How to hardcode a shared library path into an executable.
19017 hardcode_action=$hardcode_action_GCJ
19018
19019 # Whether we should hardcode library paths into libraries.
19020 hardcode_into_libs=$hardcode_into_libs
19021
19022 # Flag to hardcode \$libdir into a binary during linking.
19023 # This must work even if \$libdir does not exist.
19024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19025
19026 # If ld is used when linking, flag to hardcode \$libdir into
19027 # a binary during linking. This must work even if \$libdir does
19028 # not exist.
19029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19030
19031 # Whether we need a single -rpath flag with a separated argument.
19032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19033
19034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19035 # resulting binary.
19036 hardcode_direct=$hardcode_direct_GCJ
19037
19038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19039 # resulting binary.
19040 hardcode_minus_L=$hardcode_minus_L_GCJ
19041
19042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19043 # the resulting binary.
19044 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19045
19046 # Set to yes if building a shared library automatically hardcodes DIR into the library
19047 # and all subsequent libraries and executables linked against it.
19048 hardcode_automatic=$hardcode_automatic_GCJ
19049
19050 # Variables whose values should be saved in libtool wrapper scripts and
19051 # restored at relink time.
19052 variables_saved_for_relink="$variables_saved_for_relink"
19053
19054 # Whether libtool must link a program against all its dependency libraries.
19055 link_all_deplibs=$link_all_deplibs_GCJ
19056
19057 # Compile-time system search path for libraries
19058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19059
19060 # Run-time system search path for libraries
19061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19062
19063 # Fix the shell variable \$srcfile for the compiler.
19064 fix_srcfile_path="$fix_srcfile_path_GCJ"
19065
19066 # Set to yes if exported symbols are required.
19067 always_export_symbols=$always_export_symbols_GCJ
19068
19069 # The commands to list exported symbols.
19070 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19071
19072 # The commands to extract the exported symbol list from a shared archive.
19073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19074
19075 # Symbols that should not be listed in the preloaded symbols.
19076 exclude_expsyms=$lt_exclude_expsyms_GCJ
19077
19078 # Symbols that must always be exported.
19079 include_expsyms=$lt_include_expsyms_GCJ
19080
19081 # ### END LIBTOOL TAG CONFIG: $tagname
19082
19083 __EOF__
19084
19085
19086 else
19087 # If there is no Makefile yet, we rely on a make rule to execute
19088 # `config.status --recheck' to rerun these tests and create the
19089 # libtool script then.
19090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19091 if test -f "$ltmain_in"; then
19092 test -f Makefile && make "$ltmain"
19093 fi
19094 fi
19095
19096
19097 ac_ext=c
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103 CC="$lt_save_CC"
19104
19105 else
19106 tagname=""
19107 fi
19108 ;;
19109
19110 RC)
19111
19112
19113
19114 # Source file extension for RC test sources.
19115 ac_ext=rc
19116
19117 # Object file extension for compiled RC test sources.
19118 objext=o
19119 objext_RC=$objext
19120
19121 # Code to be used in simple compile tests
19122 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19123
19124 # Code to be used in simple link tests
19125 lt_simple_link_test_code="$lt_simple_compile_test_code"
19126
19127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19128
19129 # If no C compiler was specified, use CC.
19130 LTCC=${LTCC-"$CC"}
19131
19132 # Allow CC to be a program name with arguments.
19133 compiler=$CC
19134
19135
19136 # save warnings/boilerplate of simple test code
19137 ac_outfile=conftest.$ac_objext
19138 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19140 _lt_compiler_boilerplate=`cat conftest.err`
19141 $rm conftest*
19142
19143 ac_outfile=conftest.$ac_objext
19144 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19146 _lt_linker_boilerplate=`cat conftest.err`
19147 $rm conftest*
19148
19149
19150 # Allow CC to be a program name with arguments.
19151 lt_save_CC="$CC"
19152 CC=${RC-"windres"}
19153 compiler=$CC
19154 compiler_RC=$CC
19155 for cc_temp in $compiler""; do
19156 case $cc_temp in
19157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19159 \-*) ;;
19160 *) break;;
19161 esac
19162 done
19163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19164
19165 lt_cv_prog_compiler_c_o_RC=yes
19166
19167 # The else clause should only fire when bootstrapping the
19168 # libtool distribution, otherwise you forgot to ship ltmain.sh
19169 # with your package, and you will get complaints that there are
19170 # no rules to generate ltmain.sh.
19171 if test -f "$ltmain"; then
19172 # See if we are running on zsh, and set the options which allow our commands through
19173 # without removal of \ escapes.
19174 if test -n "${ZSH_VERSION+set}" ; then
19175 setopt NO_GLOB_SUBST
19176 fi
19177 # Now quote all the things that may contain metacharacters while being
19178 # careful not to overquote the AC_SUBSTed values. We take copies of the
19179 # variables and quote the copies for generation of the libtool script.
19180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19181 SED SHELL STRIP \
19182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19184 deplibs_check_method reload_flag reload_cmds need_locks \
19185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19186 lt_cv_sys_global_symbol_to_c_name_address \
19187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19188 old_postinstall_cmds old_postuninstall_cmds \
19189 compiler_RC \
19190 CC_RC \
19191 LD_RC \
19192 lt_prog_compiler_wl_RC \
19193 lt_prog_compiler_pic_RC \
19194 lt_prog_compiler_static_RC \
19195 lt_prog_compiler_no_builtin_flag_RC \
19196 export_dynamic_flag_spec_RC \
19197 thread_safe_flag_spec_RC \
19198 whole_archive_flag_spec_RC \
19199 enable_shared_with_static_runtimes_RC \
19200 old_archive_cmds_RC \
19201 old_archive_from_new_cmds_RC \
19202 predep_objects_RC \
19203 postdep_objects_RC \
19204 predeps_RC \
19205 postdeps_RC \
19206 compiler_lib_search_path_RC \
19207 archive_cmds_RC \
19208 archive_expsym_cmds_RC \
19209 postinstall_cmds_RC \
19210 postuninstall_cmds_RC \
19211 old_archive_from_expsyms_cmds_RC \
19212 allow_undefined_flag_RC \
19213 no_undefined_flag_RC \
19214 export_symbols_cmds_RC \
19215 hardcode_libdir_flag_spec_RC \
19216 hardcode_libdir_flag_spec_ld_RC \
19217 hardcode_libdir_separator_RC \
19218 hardcode_automatic_RC \
19219 module_cmds_RC \
19220 module_expsym_cmds_RC \
19221 lt_cv_prog_compiler_c_o_RC \
19222 exclude_expsyms_RC \
19223 include_expsyms_RC; do
19224
19225 case $var in
19226 old_archive_cmds_RC | \
19227 old_archive_from_new_cmds_RC | \
19228 archive_cmds_RC | \
19229 archive_expsym_cmds_RC | \
19230 module_cmds_RC | \
19231 module_expsym_cmds_RC | \
19232 old_archive_from_expsyms_cmds_RC | \
19233 export_symbols_cmds_RC | \
19234 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19235 postinstall_cmds | postuninstall_cmds | \
19236 old_postinstall_cmds | old_postuninstall_cmds | \
19237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19238 # Double-quote double-evaled strings.
19239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19240 ;;
19241 *)
19242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19243 ;;
19244 esac
19245 done
19246
19247 case $lt_echo in
19248 *'\$0 --fallback-echo"')
19249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19250 ;;
19251 esac
19252
19253 cfgfile="$ofile"
19254
19255 cat <<__EOF__ >> "$cfgfile"
19256 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19257
19258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19259
19260 # Shell to use when invoking shell scripts.
19261 SHELL=$lt_SHELL
19262
19263 # Whether or not to build shared libraries.
19264 build_libtool_libs=$enable_shared
19265
19266 # Whether or not to build static libraries.
19267 build_old_libs=$enable_static
19268
19269 # Whether or not to add -lc for building shared libraries.
19270 build_libtool_need_lc=$archive_cmds_need_lc_RC
19271
19272 # Whether or not to disallow shared libs when runtime libs are static
19273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19274
19275 # Whether or not to optimize for fast installation.
19276 fast_install=$enable_fast_install
19277
19278 # The host system.
19279 host_alias=$host_alias
19280 host=$host
19281 host_os=$host_os
19282
19283 # The build system.
19284 build_alias=$build_alias
19285 build=$build
19286 build_os=$build_os
19287
19288 # An echo program that does not interpret backslashes.
19289 echo=$lt_echo
19290
19291 # The archiver.
19292 AR=$lt_AR
19293 AR_FLAGS=$lt_AR_FLAGS
19294
19295 # A C compiler.
19296 LTCC=$lt_LTCC
19297
19298 # A language-specific compiler.
19299 CC=$lt_compiler_RC
19300
19301 # Is the compiler the GNU C compiler?
19302 with_gcc=$GCC_RC
19303
19304 # An ERE matcher.
19305 EGREP=$lt_EGREP
19306
19307 # The linker used to build libraries.
19308 LD=$lt_LD_RC
19309
19310 # Whether we need hard or soft links.
19311 LN_S=$lt_LN_S
19312
19313 # A BSD-compatible nm program.
19314 NM=$lt_NM
19315
19316 # A symbol stripping program
19317 STRIP=$lt_STRIP
19318
19319 # Used to examine libraries when file_magic_cmd begins "file"
19320 MAGIC_CMD=$MAGIC_CMD
19321
19322 # Used on cygwin: DLL creation program.
19323 DLLTOOL="$DLLTOOL"
19324
19325 # Used on cygwin: object dumper.
19326 OBJDUMP="$OBJDUMP"
19327
19328 # Used on cygwin: assembler.
19329 AS="$AS"
19330
19331 # The name of the directory that contains temporary libtool files.
19332 objdir=$objdir
19333
19334 # How to create reloadable object files.
19335 reload_flag=$lt_reload_flag
19336 reload_cmds=$lt_reload_cmds
19337
19338 # How to pass a linker flag through the compiler.
19339 wl=$lt_lt_prog_compiler_wl_RC
19340
19341 # Object file suffix (normally "o").
19342 objext="$ac_objext"
19343
19344 # Old archive suffix (normally "a").
19345 libext="$libext"
19346
19347 # Shared library suffix (normally ".so").
19348 shrext_cmds='$shrext_cmds'
19349
19350 # Executable file suffix (normally "").
19351 exeext="$exeext"
19352
19353 # Additional compiler flags for building library objects.
19354 pic_flag=$lt_lt_prog_compiler_pic_RC
19355 pic_mode=$pic_mode
19356
19357 # What is the maximum length of a command?
19358 max_cmd_len=$lt_cv_sys_max_cmd_len
19359
19360 # Does compiler simultaneously support -c and -o options?
19361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19362
19363 # Must we lock files when doing compilation?
19364 need_locks=$lt_need_locks
19365
19366 # Do we need the lib prefix for modules?
19367 need_lib_prefix=$need_lib_prefix
19368
19369 # Do we need a version for libraries?
19370 need_version=$need_version
19371
19372 # Whether dlopen is supported.
19373 dlopen_support=$enable_dlopen
19374
19375 # Whether dlopen of programs is supported.
19376 dlopen_self=$enable_dlopen_self
19377
19378 # Whether dlopen of statically linked programs is supported.
19379 dlopen_self_static=$enable_dlopen_self_static
19380
19381 # Compiler flag to prevent dynamic linking.
19382 link_static_flag=$lt_lt_prog_compiler_static_RC
19383
19384 # Compiler flag to turn off builtin functions.
19385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19386
19387 # Compiler flag to allow reflexive dlopens.
19388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19389
19390 # Compiler flag to generate shared objects directly from archives.
19391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19392
19393 # Compiler flag to generate thread-safe objects.
19394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19395
19396 # Library versioning type.
19397 version_type=$version_type
19398
19399 # Format of library name prefix.
19400 libname_spec=$lt_libname_spec
19401
19402 # List of archive names. First name is the real one, the rest are links.
19403 # The last name is the one that the linker finds with -lNAME.
19404 library_names_spec=$lt_library_names_spec
19405
19406 # The coded name of the library, if different from the real name.
19407 soname_spec=$lt_soname_spec
19408
19409 # Commands used to build and install an old-style archive.
19410 RANLIB=$lt_RANLIB
19411 old_archive_cmds=$lt_old_archive_cmds_RC
19412 old_postinstall_cmds=$lt_old_postinstall_cmds
19413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19414
19415 # Create an old-style archive from a shared archive.
19416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19417
19418 # Create a temporary old-style archive to link instead of a shared archive.
19419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19420
19421 # Commands used to build and install a shared archive.
19422 archive_cmds=$lt_archive_cmds_RC
19423 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19424 postinstall_cmds=$lt_postinstall_cmds
19425 postuninstall_cmds=$lt_postuninstall_cmds
19426
19427 # Commands used to build a loadable module (assumed same as above if empty)
19428 module_cmds=$lt_module_cmds_RC
19429 module_expsym_cmds=$lt_module_expsym_cmds_RC
19430
19431 # Commands to strip libraries.
19432 old_striplib=$lt_old_striplib
19433 striplib=$lt_striplib
19434
19435 # Dependencies to place before the objects being linked to create a
19436 # shared library.
19437 predep_objects=$lt_predep_objects_RC
19438
19439 # Dependencies to place after the objects being linked to create a
19440 # shared library.
19441 postdep_objects=$lt_postdep_objects_RC
19442
19443 # Dependencies to place before the objects being linked to create a
19444 # shared library.
19445 predeps=$lt_predeps_RC
19446
19447 # Dependencies to place after the objects being linked to create a
19448 # shared library.
19449 postdeps=$lt_postdeps_RC
19450
19451 # The library search path used internally by the compiler when linking
19452 # a shared library.
19453 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19454
19455 # Method to check whether dependent libraries are shared objects.
19456 deplibs_check_method=$lt_deplibs_check_method
19457
19458 # Command to use when deplibs_check_method == file_magic.
19459 file_magic_cmd=$lt_file_magic_cmd
19460
19461 # Flag that allows shared libraries with undefined symbols to be built.
19462 allow_undefined_flag=$lt_allow_undefined_flag_RC
19463
19464 # Flag that forces no undefined symbols.
19465 no_undefined_flag=$lt_no_undefined_flag_RC
19466
19467 # Commands used to finish a libtool library installation in a directory.
19468 finish_cmds=$lt_finish_cmds
19469
19470 # Same as above, but a single script fragment to be evaled but not shown.
19471 finish_eval=$lt_finish_eval
19472
19473 # Take the output of nm and produce a listing of raw symbols and C names.
19474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19475
19476 # Transform the output of nm in a proper C declaration
19477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19478
19479 # Transform the output of nm in a C name address pair
19480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19481
19482 # This is the shared library runtime path variable.
19483 runpath_var=$runpath_var
19484
19485 # This is the shared library path variable.
19486 shlibpath_var=$shlibpath_var
19487
19488 # Is shlibpath searched before the hard-coded library search path?
19489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19490
19491 # How to hardcode a shared library path into an executable.
19492 hardcode_action=$hardcode_action_RC
19493
19494 # Whether we should hardcode library paths into libraries.
19495 hardcode_into_libs=$hardcode_into_libs
19496
19497 # Flag to hardcode \$libdir into a binary during linking.
19498 # This must work even if \$libdir does not exist.
19499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19500
19501 # If ld is used when linking, flag to hardcode \$libdir into
19502 # a binary during linking. This must work even if \$libdir does
19503 # not exist.
19504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19505
19506 # Whether we need a single -rpath flag with a separated argument.
19507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19508
19509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19510 # resulting binary.
19511 hardcode_direct=$hardcode_direct_RC
19512
19513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19514 # resulting binary.
19515 hardcode_minus_L=$hardcode_minus_L_RC
19516
19517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19518 # the resulting binary.
19519 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19520
19521 # Set to yes if building a shared library automatically hardcodes DIR into the library
19522 # and all subsequent libraries and executables linked against it.
19523 hardcode_automatic=$hardcode_automatic_RC
19524
19525 # Variables whose values should be saved in libtool wrapper scripts and
19526 # restored at relink time.
19527 variables_saved_for_relink="$variables_saved_for_relink"
19528
19529 # Whether libtool must link a program against all its dependency libraries.
19530 link_all_deplibs=$link_all_deplibs_RC
19531
19532 # Compile-time system search path for libraries
19533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19534
19535 # Run-time system search path for libraries
19536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19537
19538 # Fix the shell variable \$srcfile for the compiler.
19539 fix_srcfile_path="$fix_srcfile_path_RC"
19540
19541 # Set to yes if exported symbols are required.
19542 always_export_symbols=$always_export_symbols_RC
19543
19544 # The commands to list exported symbols.
19545 export_symbols_cmds=$lt_export_symbols_cmds_RC
19546
19547 # The commands to extract the exported symbol list from a shared archive.
19548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19549
19550 # Symbols that should not be listed in the preloaded symbols.
19551 exclude_expsyms=$lt_exclude_expsyms_RC
19552
19553 # Symbols that must always be exported.
19554 include_expsyms=$lt_include_expsyms_RC
19555
19556 # ### END LIBTOOL TAG CONFIG: $tagname
19557
19558 __EOF__
19559
19560
19561 else
19562 # If there is no Makefile yet, we rely on a make rule to execute
19563 # `config.status --recheck' to rerun these tests and create the
19564 # libtool script then.
19565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19566 if test -f "$ltmain_in"; then
19567 test -f Makefile && make "$ltmain"
19568 fi
19569 fi
19570
19571
19572 ac_ext=c
19573 ac_cpp='$CPP $CPPFLAGS'
19574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19577
19578 CC="$lt_save_CC"
19579
19580 ;;
19581
19582 *)
19583 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19584 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19585 { (exit 1); exit 1; }; }
19586 ;;
19587 esac
19588
19589 # Append the new tag name to the list of available tags.
19590 if test -n "$tagname" ; then
19591 available_tags="$available_tags $tagname"
19592 fi
19593 fi
19594 done
19595 IFS="$lt_save_ifs"
19596
19597 # Now substitute the updated list of available tags.
19598 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19599 mv "${ofile}T" "$ofile"
19600 chmod +x "$ofile"
19601 else
19602 rm -f "${ofile}T"
19603 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19604 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19605 { (exit 1); exit 1; }; }
19606 fi
19607 fi
19608
19609
19610
19611 # This can be used to rebuild libtool when needed
19612 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19613
19614 # Always use our own libtool.
19615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19616
19617 # Prevent multiple expansion
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638 ac_ext=c
19639 ac_cpp='$CPP $CPPFLAGS'
19640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19643
19644
19645
19646 echo "$as_me:$LINENO: checking for C compiler vendor" >&5
19647 echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6
19648 if test "${ax_cv_c_compiler_vendor+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651 ax_cv_c_compiler_vendor=unknown
19652 # note: don't check for GCC first, since some other compilers define __GNUC__
19653 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
19654 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661
19662 int
19663 main ()
19664 {
19665
19666 #if !($vencpp)
19667 thisisanerror;
19668 #endif
19669
19670 ;
19671 return 0;
19672 }
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676 (eval $ac_compile) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
19696 else
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700 fi
19701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19702 done
19703
19704 fi
19705 echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5
19706 echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6
19707
19708
19709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19711 if test "${ac_cv_c_const+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720
19721 int
19722 main ()
19723 {
19724 /* FIXME: Include the comments suggested by Paul. */
19725 #ifndef __cplusplus
19726 /* Ultrix mips cc rejects this. */
19727 typedef int charset[2];
19728 const charset x;
19729 /* SunOS 4.1.1 cc rejects this. */
19730 char const *const *ccp;
19731 char **p;
19732 /* NEC SVR4.0.2 mips cc rejects this. */
19733 struct point {int x, y;};
19734 static struct point const zero = {0,0};
19735 /* AIX XL C 1.02.0.0 rejects this.
19736 It does not let you subtract one const X* pointer from another in
19737 an arm of an if-expression whose if-part is not a constant
19738 expression */
19739 const char *g = "string";
19740 ccp = &g + (g ? g-g : 0);
19741 /* HPUX 7.0 cc rejects these. */
19742 ++ccp;
19743 p = (char**) ccp;
19744 ccp = (char const *const *) p;
19745 { /* SCO 3.2v4 cc rejects this. */
19746 char *t;
19747 char const *s = 0 ? (char *) 0 : (char const *) 0;
19748
19749 *t++ = 0;
19750 }
19751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19752 int x[] = {25, 17};
19753 const int *foo = &x[0];
19754 ++foo;
19755 }
19756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19757 typedef const int *iptr;
19758 iptr p = 0;
19759 ++p;
19760 }
19761 { /* AIX XL C 1.02.0.0 rejects this saying
19762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19763 struct s { int j; const int *ap[3]; };
19764 struct s *b; b->j = 5;
19765 }
19766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19767 const int foo = 10;
19768 }
19769 #endif
19770
19771 ;
19772 return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19777 (eval $ac_compile) 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } &&
19784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_c_const=yes
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_c_const=no
19802 fi
19803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19804 fi
19805 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19806 echo "${ECHO_T}$ac_cv_c_const" >&6
19807 if test $ac_cv_c_const = no; then
19808
19809 cat >>confdefs.h <<\_ACEOF
19810 #define const
19811 _ACEOF
19812
19813 fi
19814
19815 echo "$as_me:$LINENO: checking for inline" >&5
19816 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19817 if test "${ac_cv_c_inline+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820 ac_cv_c_inline=no
19821 for ac_kw in inline __inline__ __inline; do
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #ifndef __cplusplus
19829 typedef int foo_t;
19830 static $ac_kw foo_t static_foo () {return 0; }
19831 $ac_kw foo_t foo () {return 0; }
19832 #endif
19833
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_cv_c_inline=$ac_kw; break
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 fi
19862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19863 done
19864
19865 fi
19866 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19867 echo "${ECHO_T}$ac_cv_c_inline" >&6
19868
19869
19870 case $ac_cv_c_inline in
19871 inline | yes) ;;
19872 *)
19873 case $ac_cv_c_inline in
19874 no) ac_val=;;
19875 *) ac_val=$ac_cv_c_inline;;
19876 esac
19877 cat >>confdefs.h <<_ACEOF
19878 #ifndef __cplusplus
19879 #define inline $ac_val
19880 #endif
19881 _ACEOF
19882 ;;
19883 esac
19884
19885 echo "$as_me:$LINENO: checking for working volatile" >&5
19886 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
19887 if test "${ac_cv_c_volatile+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890 cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h. */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896
19897 int
19898 main ()
19899 {
19900
19901 volatile int x;
19902 int * volatile y;
19903 ;
19904 return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>conftest.er1
19910 ac_status=$?
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest.$ac_objext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_c_volatile=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ac_cv_c_volatile=no
19934 fi
19935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19936 fi
19937 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
19938 echo "${ECHO_T}$ac_cv_c_volatile" >&6
19939 if test $ac_cv_c_volatile = no; then
19940
19941 cat >>confdefs.h <<\_ACEOF
19942 #define volatile
19943 _ACEOF
19944
19945 fi
19946
19947
19948 echo "$as_me:$LINENO: checking for long long" >&5
19949 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19950 if test "${ac_cv_type_long_long+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19960 int
19961 main ()
19962 {
19963 if ((long long *) 0)
19964 return 0;
19965 if (sizeof (long long))
19966 return 0;
19967 ;
19968 return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_type_long_long=yes
19993 else
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19996
19997 ac_cv_type_long_long=no
19998 fi
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000 fi
20001 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20002 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20003 if test $ac_cv_type_long_long = yes; then
20004
20005 cat >>confdefs.h <<_ACEOF
20006 #define HAVE_LONG_LONG 1
20007 _ACEOF
20008
20009
20010 fi
20011
20012 echo "$as_me:$LINENO: checking for long double" >&5
20013 echo $ECHO_N "checking for long double... $ECHO_C" >&6
20014 if test "${ac_cv_type_long_double+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h. */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 $ac_includes_default
20024 int
20025 main ()
20026 {
20027 if ((long double *) 0)
20028 return 0;
20029 if (sizeof (long double))
20030 return 0;
20031 ;
20032 return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_type_long_double=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_cv_type_long_double=no
20062 fi
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064 fi
20065 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20066 echo "${ECHO_T}$ac_cv_type_long_double" >&6
20067 if test $ac_cv_type_long_double = yes; then
20068
20069 cat >>confdefs.h <<_ACEOF
20070 #define HAVE_LONG_DOUBLE 1
20071 _ACEOF
20072
20073
20074 fi
20075
20076
20077 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20078 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20079 if test "${ac_cv_type_signal+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h. */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <sys/types.h>
20089 #include <signal.h>
20090 #ifdef signal
20091 # undef signal
20092 #endif
20093 #ifdef __cplusplus
20094 extern "C" void (*signal (int, void (*)(int)))(int);
20095 #else
20096 void (*signal ()) ();
20097 #endif
20098
20099 int
20100 main ()
20101 {
20102 int i;
20103 ;
20104 return 0;
20105 }
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_type_signal=void
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 ac_cv_type_signal=int
20134 fi
20135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20136 fi
20137 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20138 echo "${ECHO_T}$ac_cv_type_signal" >&6
20139
20140 cat >>confdefs.h <<_ACEOF
20141 #define RETSIGTYPE $ac_cv_type_signal
20142 _ACEOF
20143
20144
20145
20146 # Check whether --enable-doc or --disable-doc was given.
20147 if test "${enable_doc+set}" = set; then
20148 enableval="$enable_doc"
20149
20150 fi;
20151 # Check whether --enable-tests or --disable-tests was given.
20152 if test "${enable_tests+set}" = set; then
20153 enableval="$enable_tests"
20154
20155 fi;
20156 # Check whether --enable-itutests or --disable-itutests was given.
20157 if test "${enable_itutests+set}" = set; then
20158 enableval="$enable_itutests"
20159
20160 fi;
20161 # Check whether --enable-mmx or --disable-mmx was given.
20162 if test "${enable_mmx+set}" = set; then
20163 enableval="$enable_mmx"
20164
20165 fi;
20166 # Check whether --enable-sse or --disable-sse was given.
20167 if test "${enable_sse+set}" = set; then
20168 enableval="$enable_sse"
20169
20170 fi;
20171
20172 echo "$as_me:$LINENO: checking for error_at_line" >&5
20173 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
20174 if test "${ac_cv_lib_error_at_line+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h. */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 $ac_includes_default
20184 int
20185 main ()
20186 {
20187 error_at_line (0, 0, "", 0, "");
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20194 (eval $ac_link) 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_lib_error_at_line=yes
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ac_cv_lib_error_at_line=no
20219 fi
20220 rm -f conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 fi
20223 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20224 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
20225 if test $ac_cv_lib_error_at_line = no; then
20226 case $LIBOBJS in
20227 "error.$ac_objext" | \
20228 *" error.$ac_objext" | \
20229 "error.$ac_objext "* | \
20230 *" error.$ac_objext "* ) ;;
20231 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
20232 esac
20233
20234 fi
20235
20236
20237 for ac_func in vprintf
20238 do
20239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20240 echo "$as_me:$LINENO: checking for $ac_func" >&5
20241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20242 if eval "test \"\${$as_ac_var+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245 cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h. */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20253 #define $ac_func innocuous_$ac_func
20254
20255 /* System header to define __stub macros and hopefully few prototypes,
20256 which can conflict with char $ac_func (); below.
20257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20258 <limits.h> exists even on freestanding compilers. */
20259
20260 #ifdef __STDC__
20261 # include <limits.h>
20262 #else
20263 # include <assert.h>
20264 #endif
20265
20266 #undef $ac_func
20267
20268 /* Override any gcc2 internal prototype to avoid an error. */
20269 #ifdef __cplusplus
20270 extern "C"
20271 {
20272 #endif
20273 /* We use char because int might match the return type of a gcc2
20274 builtin and then its argument prototype would still apply. */
20275 char $ac_func ();
20276 /* The GNU C library defines this for functions which it implements
20277 to always fail with ENOSYS. Some functions are actually named
20278 something starting with __ and the normal name is an alias. */
20279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20280 choke me
20281 #else
20282 char (*f) () = $ac_func;
20283 #endif
20284 #ifdef __cplusplus
20285 }
20286 #endif
20287
20288 int
20289 main ()
20290 {
20291 return f != $ac_func;
20292 ;
20293 return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20298 (eval $ac_link) 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; } &&
20311 { ac_try='test -s conftest$ac_exeext'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 eval "$as_ac_var=yes"
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 eval "$as_ac_var=no"
20323 fi
20324 rm -f conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20326 fi
20327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20329 if test `eval echo '${'$as_ac_var'}'` = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20332 _ACEOF
20333
20334 echo "$as_me:$LINENO: checking for _doprnt" >&5
20335 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20336 if test "${ac_cv_func__doprnt+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20347 #define _doprnt innocuous__doprnt
20348
20349 /* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char _doprnt (); below.
20351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20352 <limits.h> exists even on freestanding compilers. */
20353
20354 #ifdef __STDC__
20355 # include <limits.h>
20356 #else
20357 # include <assert.h>
20358 #endif
20359
20360 #undef _doprnt
20361
20362 /* Override any gcc2 internal prototype to avoid an error. */
20363 #ifdef __cplusplus
20364 extern "C"
20365 {
20366 #endif
20367 /* We use char because int might match the return type of a gcc2
20368 builtin and then its argument prototype would still apply. */
20369 char _doprnt ();
20370 /* The GNU C library defines this for functions which it implements
20371 to always fail with ENOSYS. Some functions are actually named
20372 something starting with __ and the normal name is an alias. */
20373 #if defined (__stub__doprnt) || defined (__stub____doprnt)
20374 choke me
20375 #else
20376 char (*f) () = _doprnt;
20377 #endif
20378 #ifdef __cplusplus
20379 }
20380 #endif
20381
20382 int
20383 main ()
20384 {
20385 return f != _doprnt;
20386 ;
20387 return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest$ac_exeext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_cv_func__doprnt=yes
20412 else
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 ac_cv_func__doprnt=no
20417 fi
20418 rm -f conftest.err conftest.$ac_objext \
20419 conftest$ac_exeext conftest.$ac_ext
20420 fi
20421 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20422 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20423 if test $ac_cv_func__doprnt = yes; then
20424
20425 cat >>confdefs.h <<\_ACEOF
20426 #define HAVE_DOPRNT 1
20427 _ACEOF
20428
20429 fi
20430
20431 fi
20432 done
20433
20434
20435
20436 for ac_header in stdlib.h
20437 do
20438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20440 echo "$as_me:$LINENO: checking for $ac_header" >&5
20441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 fi
20445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20447 else
20448 # Is the header compilable?
20449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20458 #include <$ac_header>
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20462 (eval $ac_compile) 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 ac_header_compiler=yes
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 ac_header_compiler=no
20487 fi
20488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20490 echo "${ECHO_T}$ac_header_compiler" >&6
20491
20492 # Is the header present?
20493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20495 cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h. */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <$ac_header>
20502 _ACEOF
20503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } >/dev/null; then
20511 if test -s conftest.err; then
20512 ac_cpp_err=$ac_c_preproc_warn_flag
20513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20514 else
20515 ac_cpp_err=
20516 fi
20517 else
20518 ac_cpp_err=yes
20519 fi
20520 if test -z "$ac_cpp_err"; then
20521 ac_header_preproc=yes
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_header_preproc=no
20527 fi
20528 rm -f conftest.err conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20530 echo "${ECHO_T}$ac_header_preproc" >&6
20531
20532 # So? What about this header?
20533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20534 yes:no: )
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20539 ac_header_preproc=yes
20540 ;;
20541 no:yes:* )
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20554 (
20555 cat <<\_ASBOX
20556 ## ------------------------------------------ ##
20557 ## Report this to the AC_PACKAGE_NAME lists. ##
20558 ## ------------------------------------------ ##
20559 _ASBOX
20560 ) |
20561 sed "s/^/$as_me: WARNING: /" >&2
20562 ;;
20563 esac
20564 echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569 eval "$as_ac_Header=\$ac_header_preproc"
20570 fi
20571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20573
20574 fi
20575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20578 _ACEOF
20579
20580 fi
20581
20582 done
20583
20584 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20585 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20586 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 else
20589 if test "$cross_compiling" = yes; then
20590 ac_cv_func_malloc_0_nonnull=no
20591 else
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #if STDC_HEADERS || HAVE_STDLIB_H
20599 # include <stdlib.h>
20600 #else
20601 char *malloc ();
20602 #endif
20603
20604 int
20605 main ()
20606 {
20607 exit (malloc (0) ? 0 : 1);
20608 ;
20609 return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest$ac_exeext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614 (eval $ac_link) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_func_malloc_0_nonnull=yes
20624 else
20625 echo "$as_me: program exited with status $ac_status" >&5
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ( exit $ac_status )
20630 ac_cv_func_malloc_0_nonnull=no
20631 fi
20632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20633 fi
20634 fi
20635 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20636 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20637 if test $ac_cv_func_malloc_0_nonnull = yes; then
20638
20639 cat >>confdefs.h <<\_ACEOF
20640 #define HAVE_MALLOC 1
20641 _ACEOF
20642
20643 else
20644 cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_MALLOC 0
20646 _ACEOF
20647
20648 case $LIBOBJS in
20649 "malloc.$ac_objext" | \
20650 *" malloc.$ac_objext" | \
20651 "malloc.$ac_objext "* | \
20652 *" malloc.$ac_objext "* ) ;;
20653 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
20654 esac
20655
20656
20657 cat >>confdefs.h <<\_ACEOF
20658 #define malloc rpl_malloc
20659 _ACEOF
20660
20661 fi
20662
20663
20664
20665 echo "$as_me:$LINENO: checking for working memcmp" >&5
20666 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20667 if test "${ac_cv_func_memcmp_working+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670 if test "$cross_compiling" = yes; then
20671 ac_cv_func_memcmp_working=no
20672 else
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 $ac_includes_default
20680 int
20681 main ()
20682 {
20683
20684 /* Some versions of memcmp are not 8-bit clean. */
20685 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20686 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20687 exit (1);
20688
20689 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20690 or more and with at least one buffer not starting on a 4-byte boundary.
20691 William Lewis provided this test program. */
20692 {
20693 char foo[21];
20694 char bar[21];
20695 int i;
20696 for (i = 0; i < 4; i++)
20697 {
20698 char *a = foo + i;
20699 char *b = bar + i;
20700 strcpy (a, "--------01111111");
20701 strcpy (b, "--------10000000");
20702 if (memcmp (a, b, 16) >= 0)
20703 exit (1);
20704 }
20705 exit (0);
20706 }
20707
20708 ;
20709 return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest$ac_exeext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20714 (eval $ac_link) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_cv_func_memcmp_working=yes
20724 else
20725 echo "$as_me: program exited with status $ac_status" >&5
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729 ( exit $ac_status )
20730 ac_cv_func_memcmp_working=no
20731 fi
20732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20733 fi
20734 fi
20735 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20736 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20737 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20738 "memcmp.$ac_objext" | \
20739 *" memcmp.$ac_objext" | \
20740 "memcmp.$ac_objext "* | \
20741 *" memcmp.$ac_objext "* ) ;;
20742 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20743 esac
20744
20745
20746
20747 for ac_header in stdlib.h
20748 do
20749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20751 echo "$as_me:$LINENO: checking for $ac_header" >&5
20752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 fi
20756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20758 else
20759 # Is the header compilable?
20760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h. */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 $ac_includes_default
20769 #include <$ac_header>
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20773 (eval $ac_compile) 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_header_compiler=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_header_compiler=no
20798 fi
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20801 echo "${ECHO_T}$ac_header_compiler" >&6
20802
20803 # Is the header present?
20804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h. */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 #include <$ac_header>
20813 _ACEOF
20814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } >/dev/null; then
20822 if test -s conftest.err; then
20823 ac_cpp_err=$ac_c_preproc_warn_flag
20824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20825 else
20826 ac_cpp_err=
20827 fi
20828 else
20829 ac_cpp_err=yes
20830 fi
20831 if test -z "$ac_cpp_err"; then
20832 ac_header_preproc=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ac_header_preproc=no
20838 fi
20839 rm -f conftest.err conftest.$ac_ext
20840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20841 echo "${ECHO_T}$ac_header_preproc" >&6
20842
20843 # So? What about this header?
20844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20845 yes:no: )
20846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20850 ac_header_preproc=yes
20851 ;;
20852 no:yes:* )
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20865 (
20866 cat <<\_ASBOX
20867 ## ------------------------------------------ ##
20868 ## Report this to the AC_PACKAGE_NAME lists. ##
20869 ## ------------------------------------------ ##
20870 _ASBOX
20871 ) |
20872 sed "s/^/$as_me: WARNING: /" >&2
20873 ;;
20874 esac
20875 echo "$as_me:$LINENO: checking for $ac_header" >&5
20876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 else
20880 eval "$as_ac_Header=\$ac_header_preproc"
20881 fi
20882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20884
20885 fi
20886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20889 _ACEOF
20890
20891 fi
20892
20893 done
20894
20895 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20896 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20897 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900 if test "$cross_compiling" = yes; then
20901 ac_cv_func_realloc_0_nonnull=no
20902 else
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h. */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #if STDC_HEADERS || HAVE_STDLIB_H
20910 # include <stdlib.h>
20911 #else
20912 char *realloc ();
20913 #endif
20914
20915 int
20916 main ()
20917 {
20918 exit (realloc (0, 0) ? 0 : 1);
20919 ;
20920 return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest$ac_exeext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20925 (eval $ac_link) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 ac_cv_func_realloc_0_nonnull=yes
20935 else
20936 echo "$as_me: program exited with status $ac_status" >&5
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 ( exit $ac_status )
20941 ac_cv_func_realloc_0_nonnull=no
20942 fi
20943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20944 fi
20945 fi
20946 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20947 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20948 if test $ac_cv_func_realloc_0_nonnull = yes; then
20949
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_REALLOC 1
20952 _ACEOF
20953
20954 else
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_REALLOC 0
20957 _ACEOF
20958
20959 case $LIBOBJS in
20960 "realloc.$ac_objext" | \
20961 *" realloc.$ac_objext" | \
20962 "realloc.$ac_objext "* | \
20963 *" realloc.$ac_objext "* ) ;;
20964 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
20965 esac
20966
20967
20968 cat >>confdefs.h <<\_ACEOF
20969 #define realloc rpl_realloc
20970 _ACEOF
20971
20972 fi
20973
20974
20975
20976
20977
20978 for ac_header in sys/select.h sys/socket.h
20979 do
20980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20982 echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 fi
20987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20989 else
20990 # Is the header compilable?
20991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21000 #include <$ac_header>
21001 _ACEOF
21002 rm -f conftest.$ac_objext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21004 (eval $ac_compile) 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_header_compiler=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_header_compiler=no
21029 fi
21030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21032 echo "${ECHO_T}$ac_header_compiler" >&6
21033
21034 # Is the header present?
21035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <$ac_header>
21044 _ACEOF
21045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } >/dev/null; then
21053 if test -s conftest.err; then
21054 ac_cpp_err=$ac_c_preproc_warn_flag
21055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21056 else
21057 ac_cpp_err=
21058 fi
21059 else
21060 ac_cpp_err=yes
21061 fi
21062 if test -z "$ac_cpp_err"; then
21063 ac_header_preproc=yes
21064 else
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 ac_header_preproc=no
21069 fi
21070 rm -f conftest.err conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21072 echo "${ECHO_T}$ac_header_preproc" >&6
21073
21074 # So? What about this header?
21075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21076 yes:no: )
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21081 ac_header_preproc=yes
21082 ;;
21083 no:yes:* )
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21096 (
21097 cat <<\_ASBOX
21098 ## ------------------------------------------ ##
21099 ## Report this to the AC_PACKAGE_NAME lists. ##
21100 ## ------------------------------------------ ##
21101 _ASBOX
21102 ) |
21103 sed "s/^/$as_me: WARNING: /" >&2
21104 ;;
21105 esac
21106 echo "$as_me:$LINENO: checking for $ac_header" >&5
21107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 eval "$as_ac_Header=\$ac_header_preproc"
21112 fi
21113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21115
21116 fi
21117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21120 _ACEOF
21121
21122 fi
21123
21124 done
21125
21126 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21127 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21128 if test "${ac_cv_func_select_args+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21132 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21133 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21134 cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h. */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 $ac_includes_default
21141 #if HAVE_SYS_SELECT_H
21142 # include <sys/select.h>
21143 #endif
21144 #if HAVE_SYS_SOCKET_H
21145 # include <sys/socket.h>
21146 #endif
21147
21148 int
21149 main ()
21150 {
21151 extern int select ($ac_arg1,
21152 $ac_arg234, $ac_arg234, $ac_arg234,
21153 $ac_arg5);
21154 ;
21155 return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21180 else
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 fi
21185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21186 done
21187 done
21188 done
21189 # Provide a safe default value.
21190 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21191
21192 fi
21193 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21194 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21195 ac_save_IFS=$IFS; IFS=','
21196 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21197 IFS=$ac_save_IFS
21198 shift
21199
21200 cat >>confdefs.h <<_ACEOF
21201 #define SELECT_TYPE_ARG1 $1
21202 _ACEOF
21203
21204
21205 cat >>confdefs.h <<_ACEOF
21206 #define SELECT_TYPE_ARG234 ($2)
21207 _ACEOF
21208
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define SELECT_TYPE_ARG5 ($3)
21212 _ACEOF
21213
21214 rm -f conftest*
21215
21216
21217
21218 for ac_func in memmove
21219 do
21220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221 echo "$as_me:$LINENO: checking for $ac_func" >&5
21222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21223 if eval "test \"\${$as_ac_var+set}\" = set"; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21234 #define $ac_func innocuous_$ac_func
21235
21236 /* System header to define __stub macros and hopefully few prototypes,
21237 which can conflict with char $ac_func (); below.
21238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21239 <limits.h> exists even on freestanding compilers. */
21240
21241 #ifdef __STDC__
21242 # include <limits.h>
21243 #else
21244 # include <assert.h>
21245 #endif
21246
21247 #undef $ac_func
21248
21249 /* Override any gcc2 internal prototype to avoid an error. */
21250 #ifdef __cplusplus
21251 extern "C"
21252 {
21253 #endif
21254 /* We use char because int might match the return type of a gcc2
21255 builtin and then its argument prototype would still apply. */
21256 char $ac_func ();
21257 /* The GNU C library defines this for functions which it implements
21258 to always fail with ENOSYS. Some functions are actually named
21259 something starting with __ and the normal name is an alias. */
21260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21261 choke me
21262 #else
21263 char (*f) () = $ac_func;
21264 #endif
21265 #ifdef __cplusplus
21266 }
21267 #endif
21268
21269 int
21270 main ()
21271 {
21272 return f != $ac_func;
21273 ;
21274 return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext conftest$ac_exeext
21278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21279 (eval $ac_link) 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
21286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest$ac_exeext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 eval "$as_ac_var=yes"
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 eval "$as_ac_var=no"
21304 fi
21305 rm -f conftest.err conftest.$ac_objext \
21306 conftest$ac_exeext conftest.$ac_ext
21307 fi
21308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21310 if test `eval echo '${'$as_ac_var'}'` = yes; then
21311 cat >>confdefs.h <<_ACEOF
21312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21313 _ACEOF
21314
21315 fi
21316 done
21317
21318
21319 for ac_func in memset
21320 do
21321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21322 echo "$as_me:$LINENO: checking for $ac_func" >&5
21323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21324 if eval "test \"\${$as_ac_var+set}\" = set"; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21335 #define $ac_func innocuous_$ac_func
21336
21337 /* System header to define __stub macros and hopefully few prototypes,
21338 which can conflict with char $ac_func (); below.
21339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21340 <limits.h> exists even on freestanding compilers. */
21341
21342 #ifdef __STDC__
21343 # include <limits.h>
21344 #else
21345 # include <assert.h>
21346 #endif
21347
21348 #undef $ac_func
21349
21350 /* Override any gcc2 internal prototype to avoid an error. */
21351 #ifdef __cplusplus
21352 extern "C"
21353 {
21354 #endif
21355 /* We use char because int might match the return type of a gcc2
21356 builtin and then its argument prototype would still apply. */
21357 char $ac_func ();
21358 /* The GNU C library defines this for functions which it implements
21359 to always fail with ENOSYS. Some functions are actually named
21360 something starting with __ and the normal name is an alias. */
21361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21362 choke me
21363 #else
21364 char (*f) () = $ac_func;
21365 #endif
21366 #ifdef __cplusplus
21367 }
21368 #endif
21369
21370 int
21371 main ()
21372 {
21373 return f != $ac_func;
21374 ;
21375 return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest$ac_exeext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 eval "$as_ac_var=yes"
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 eval "$as_ac_var=no"
21405 fi
21406 rm -f conftest.err conftest.$ac_objext \
21407 conftest$ac_exeext conftest.$ac_ext
21408 fi
21409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21411 if test `eval echo '${'$as_ac_var'}'` = yes; then
21412 cat >>confdefs.h <<_ACEOF
21413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21414 _ACEOF
21415
21416 fi
21417 done
21418
21419
21420 for ac_func in pow
21421 do
21422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21423 echo "$as_me:$LINENO: checking for $ac_func" >&5
21424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21425 if eval "test \"\${$as_ac_var+set}\" = set"; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 else
21428 cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h. */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21436 #define $ac_func innocuous_$ac_func
21437
21438 /* System header to define __stub macros and hopefully few prototypes,
21439 which can conflict with char $ac_func (); below.
21440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21441 <limits.h> exists even on freestanding compilers. */
21442
21443 #ifdef __STDC__
21444 # include <limits.h>
21445 #else
21446 # include <assert.h>
21447 #endif
21448
21449 #undef $ac_func
21450
21451 /* Override any gcc2 internal prototype to avoid an error. */
21452 #ifdef __cplusplus
21453 extern "C"
21454 {
21455 #endif
21456 /* We use char because int might match the return type of a gcc2
21457 builtin and then its argument prototype would still apply. */
21458 char $ac_func ();
21459 /* The GNU C library defines this for functions which it implements
21460 to always fail with ENOSYS. Some functions are actually named
21461 something starting with __ and the normal name is an alias. */
21462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21463 choke me
21464 #else
21465 char (*f) () = $ac_func;
21466 #endif
21467 #ifdef __cplusplus
21468 }
21469 #endif
21470
21471 int
21472 main ()
21473 {
21474 return f != $ac_func;
21475 ;
21476 return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481 (eval $ac_link) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest$ac_exeext'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 eval "$as_ac_var=yes"
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 eval "$as_ac_var=no"
21506 fi
21507 rm -f conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21509 fi
21510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21512 if test `eval echo '${'$as_ac_var'}'` = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21515 _ACEOF
21516
21517 fi
21518 done
21519
21520
21521 for ac_func in sqrt
21522 do
21523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21524 echo "$as_me:$LINENO: checking for $ac_func" >&5
21525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21526 if eval "test \"\${$as_ac_var+set}\" = set"; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h. */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21537 #define $ac_func innocuous_$ac_func
21538
21539 /* System header to define __stub macros and hopefully few prototypes,
21540 which can conflict with char $ac_func (); below.
21541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21542 <limits.h> exists even on freestanding compilers. */
21543
21544 #ifdef __STDC__
21545 # include <limits.h>
21546 #else
21547 # include <assert.h>
21548 #endif
21549
21550 #undef $ac_func
21551
21552 /* Override any gcc2 internal prototype to avoid an error. */
21553 #ifdef __cplusplus
21554 extern "C"
21555 {
21556 #endif
21557 /* We use char because int might match the return type of a gcc2
21558 builtin and then its argument prototype would still apply. */
21559 char $ac_func ();
21560 /* The GNU C library defines this for functions which it implements
21561 to always fail with ENOSYS. Some functions are actually named
21562 something starting with __ and the normal name is an alias. */
21563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21564 choke me
21565 #else
21566 char (*f) () = $ac_func;
21567 #endif
21568 #ifdef __cplusplus
21569 }
21570 #endif
21571
21572 int
21573 main ()
21574 {
21575 return f != $ac_func;
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 eval "$as_ac_var=yes"
21602 else
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 eval "$as_ac_var=no"
21607 fi
21608 rm -f conftest.err conftest.$ac_objext \
21609 conftest$ac_exeext conftest.$ac_ext
21610 fi
21611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21613 if test `eval echo '${'$as_ac_var'}'` = yes; then
21614 cat >>confdefs.h <<_ACEOF
21615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21616 _ACEOF
21617
21618 fi
21619 done
21620
21621
21622 for ac_func in rint
21623 do
21624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21625 echo "$as_me:$LINENO: checking for $ac_func" >&5
21626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21627 if eval "test \"\${$as_ac_var+set}\" = set"; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630 cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h. */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21638 #define $ac_func innocuous_$ac_func
21639
21640 /* System header to define __stub macros and hopefully few prototypes,
21641 which can conflict with char $ac_func (); below.
21642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21643 <limits.h> exists even on freestanding compilers. */
21644
21645 #ifdef __STDC__
21646 # include <limits.h>
21647 #else
21648 # include <assert.h>
21649 #endif
21650
21651 #undef $ac_func
21652
21653 /* Override any gcc2 internal prototype to avoid an error. */
21654 #ifdef __cplusplus
21655 extern "C"
21656 {
21657 #endif
21658 /* We use char because int might match the return type of a gcc2
21659 builtin and then its argument prototype would still apply. */
21660 char $ac_func ();
21661 /* The GNU C library defines this for functions which it implements
21662 to always fail with ENOSYS. Some functions are actually named
21663 something starting with __ and the normal name is an alias. */
21664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21665 choke me
21666 #else
21667 char (*f) () = $ac_func;
21668 #endif
21669 #ifdef __cplusplus
21670 }
21671 #endif
21672
21673 int
21674 main ()
21675 {
21676 return f != $ac_func;
21677 ;
21678 return 0;
21679 }
21680 _ACEOF
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683 (eval $ac_link) 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
21690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702 eval "$as_ac_var=yes"
21703 else
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 eval "$as_ac_var=no"
21708 fi
21709 rm -f conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext conftest.$ac_ext
21711 fi
21712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21714 if test `eval echo '${'$as_ac_var'}'` = yes; then
21715 cat >>confdefs.h <<_ACEOF
21716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717 _ACEOF
21718
21719 fi
21720 done
21721
21722
21723 for ac_func in select
21724 do
21725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21726 echo "$as_me:$LINENO: checking for $ac_func" >&5
21727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21728 if eval "test \"\${$as_ac_var+set}\" = set"; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21739 #define $ac_func innocuous_$ac_func
21740
21741 /* System header to define __stub macros and hopefully few prototypes,
21742 which can conflict with char $ac_func (); below.
21743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21744 <limits.h> exists even on freestanding compilers. */
21745
21746 #ifdef __STDC__
21747 # include <limits.h>
21748 #else
21749 # include <assert.h>
21750 #endif
21751
21752 #undef $ac_func
21753
21754 /* Override any gcc2 internal prototype to avoid an error. */
21755 #ifdef __cplusplus
21756 extern "C"
21757 {
21758 #endif
21759 /* We use char because int might match the return type of a gcc2
21760 builtin and then its argument prototype would still apply. */
21761 char $ac_func ();
21762 /* The GNU C library defines this for functions which it implements
21763 to always fail with ENOSYS. Some functions are actually named
21764 something starting with __ and the normal name is an alias. */
21765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21766 choke me
21767 #else
21768 char (*f) () = $ac_func;
21769 #endif
21770 #ifdef __cplusplus
21771 }
21772 #endif
21773
21774 int
21775 main ()
21776 {
21777 return f != $ac_func;
21778 ;
21779 return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext conftest$ac_exeext
21783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21784 (eval $ac_link) 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; } &&
21797 { ac_try='test -s conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 eval "$as_ac_var=yes"
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808 eval "$as_ac_var=no"
21809 fi
21810 rm -f conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
21812 fi
21813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21815 if test `eval echo '${'$as_ac_var'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21818 _ACEOF
21819
21820 fi
21821 done
21822
21823
21824 for ac_func in strcasecmp
21825 do
21826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21827 echo "$as_me:$LINENO: checking for $ac_func" >&5
21828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21829 if eval "test \"\${$as_ac_var+set}\" = set"; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h. */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21840 #define $ac_func innocuous_$ac_func
21841
21842 /* System header to define __stub macros and hopefully few prototypes,
21843 which can conflict with char $ac_func (); below.
21844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21845 <limits.h> exists even on freestanding compilers. */
21846
21847 #ifdef __STDC__
21848 # include <limits.h>
21849 #else
21850 # include <assert.h>
21851 #endif
21852
21853 #undef $ac_func
21854
21855 /* Override any gcc2 internal prototype to avoid an error. */
21856 #ifdef __cplusplus
21857 extern "C"
21858 {
21859 #endif
21860 /* We use char because int might match the return type of a gcc2
21861 builtin and then its argument prototype would still apply. */
21862 char $ac_func ();
21863 /* The GNU C library defines this for functions which it implements
21864 to always fail with ENOSYS. Some functions are actually named
21865 something starting with __ and the normal name is an alias. */
21866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21867 choke me
21868 #else
21869 char (*f) () = $ac_func;
21870 #endif
21871 #ifdef __cplusplus
21872 }
21873 #endif
21874
21875 int
21876 main ()
21877 {
21878 return f != $ac_func;
21879 ;
21880 return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext conftest$ac_exeext
21884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21885 (eval $ac_link) 2>conftest.er1
21886 ac_status=$?
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
21892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } &&
21898 { ac_try='test -s conftest$ac_exeext'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 eval "$as_ac_var=yes"
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 eval "$as_ac_var=no"
21910 fi
21911 rm -f conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21913 fi
21914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21916 if test `eval echo '${'$as_ac_var'}'` = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21919 _ACEOF
21920
21921 fi
21922 done
21923
21924
21925 for ac_func in strchr
21926 do
21927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21928 echo "$as_me:$LINENO: checking for $ac_func" >&5
21929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21930 if eval "test \"\${$as_ac_var+set}\" = set"; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21941 #define $ac_func innocuous_$ac_func
21942
21943 /* System header to define __stub macros and hopefully few prototypes,
21944 which can conflict with char $ac_func (); below.
21945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21946 <limits.h> exists even on freestanding compilers. */
21947
21948 #ifdef __STDC__
21949 # include <limits.h>
21950 #else
21951 # include <assert.h>
21952 #endif
21953
21954 #undef $ac_func
21955
21956 /* Override any gcc2 internal prototype to avoid an error. */
21957 #ifdef __cplusplus
21958 extern "C"
21959 {
21960 #endif
21961 /* We use char because int might match the return type of a gcc2
21962 builtin and then its argument prototype would still apply. */
21963 char $ac_func ();
21964 /* The GNU C library defines this for functions which it implements
21965 to always fail with ENOSYS. Some functions are actually named
21966 something starting with __ and the normal name is an alias. */
21967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21968 choke me
21969 #else
21970 char (*f) () = $ac_func;
21971 #endif
21972 #ifdef __cplusplus
21973 }
21974 #endif
21975
21976 int
21977 main ()
21978 {
21979 return f != $ac_func;
21980 ;
21981 return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest$ac_exeext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005 eval "$as_ac_var=yes"
22006 else
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 eval "$as_ac_var=no"
22011 fi
22012 rm -f conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
22014 fi
22015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22017 if test `eval echo '${'$as_ac_var'}'` = yes; then
22018 cat >>confdefs.h <<_ACEOF
22019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22020 _ACEOF
22021
22022 fi
22023 done
22024
22025
22026 for ac_func in strdup
22027 do
22028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22029 echo "$as_me:$LINENO: checking for $ac_func" >&5
22030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22031 if eval "test \"\${$as_ac_var+set}\" = set"; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22042 #define $ac_func innocuous_$ac_func
22043
22044 /* System header to define __stub macros and hopefully few prototypes,
22045 which can conflict with char $ac_func (); below.
22046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22047 <limits.h> exists even on freestanding compilers. */
22048
22049 #ifdef __STDC__
22050 # include <limits.h>
22051 #else
22052 # include <assert.h>
22053 #endif
22054
22055 #undef $ac_func
22056
22057 /* Override any gcc2 internal prototype to avoid an error. */
22058 #ifdef __cplusplus
22059 extern "C"
22060 {
22061 #endif
22062 /* We use char because int might match the return type of a gcc2
22063 builtin and then its argument prototype would still apply. */
22064 char $ac_func ();
22065 /* The GNU C library defines this for functions which it implements
22066 to always fail with ENOSYS. Some functions are actually named
22067 something starting with __ and the normal name is an alias. */
22068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22069 choke me
22070 #else
22071 char (*f) () = $ac_func;
22072 #endif
22073 #ifdef __cplusplus
22074 }
22075 #endif
22076
22077 int
22078 main ()
22079 {
22080 return f != $ac_func;
22081 ;
22082 return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest$ac_exeext'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 eval "$as_ac_var=yes"
22107 else
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 eval "$as_ac_var=no"
22112 fi
22113 rm -f conftest.err conftest.$ac_objext \
22114 conftest$ac_exeext conftest.$ac_ext
22115 fi
22116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22118 if test `eval echo '${'$as_ac_var'}'` = yes; then
22119 cat >>confdefs.h <<_ACEOF
22120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22121 _ACEOF
22122
22123 fi
22124 done
22125
22126
22127 for ac_func in strerror
22128 do
22129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22130 echo "$as_me:$LINENO: checking for $ac_func" >&5
22131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22132 if eval "test \"\${$as_ac_var+set}\" = set"; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h. */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22143 #define $ac_func innocuous_$ac_func
22144
22145 /* System header to define __stub macros and hopefully few prototypes,
22146 which can conflict with char $ac_func (); below.
22147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22148 <limits.h> exists even on freestanding compilers. */
22149
22150 #ifdef __STDC__
22151 # include <limits.h>
22152 #else
22153 # include <assert.h>
22154 #endif
22155
22156 #undef $ac_func
22157
22158 /* Override any gcc2 internal prototype to avoid an error. */
22159 #ifdef __cplusplus
22160 extern "C"
22161 {
22162 #endif
22163 /* We use char because int might match the return type of a gcc2
22164 builtin and then its argument prototype would still apply. */
22165 char $ac_func ();
22166 /* The GNU C library defines this for functions which it implements
22167 to always fail with ENOSYS. Some functions are actually named
22168 something starting with __ and the normal name is an alias. */
22169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22170 choke me
22171 #else
22172 char (*f) () = $ac_func;
22173 #endif
22174 #ifdef __cplusplus
22175 }
22176 #endif
22177
22178 int
22179 main ()
22180 {
22181 return f != $ac_func;
22182 ;
22183 return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext conftest$ac_exeext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22188 (eval $ac_link) 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest$ac_exeext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 eval "$as_ac_var=yes"
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 eval "$as_ac_var=no"
22213 fi
22214 rm -f conftest.err conftest.$ac_objext \
22215 conftest$ac_exeext conftest.$ac_ext
22216 fi
22217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 _ACEOF
22223
22224 fi
22225 done
22226
22227
22228 for ac_func in strstr
22229 do
22230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22231 echo "$as_me:$LINENO: checking for $ac_func" >&5
22232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22233 if eval "test \"\${$as_ac_var+set}\" = set"; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22244 #define $ac_func innocuous_$ac_func
22245
22246 /* System header to define __stub macros and hopefully few prototypes,
22247 which can conflict with char $ac_func (); below.
22248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22249 <limits.h> exists even on freestanding compilers. */
22250
22251 #ifdef __STDC__
22252 # include <limits.h>
22253 #else
22254 # include <assert.h>
22255 #endif
22256
22257 #undef $ac_func
22258
22259 /* Override any gcc2 internal prototype to avoid an error. */
22260 #ifdef __cplusplus
22261 extern "C"
22262 {
22263 #endif
22264 /* We use char because int might match the return type of a gcc2
22265 builtin and then its argument prototype would still apply. */
22266 char $ac_func ();
22267 /* The GNU C library defines this for functions which it implements
22268 to always fail with ENOSYS. Some functions are actually named
22269 something starting with __ and the normal name is an alias. */
22270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22271 choke me
22272 #else
22273 char (*f) () = $ac_func;
22274 #endif
22275 #ifdef __cplusplus
22276 }
22277 #endif
22278
22279 int
22280 main ()
22281 {
22282 return f != $ac_func;
22283 ;
22284 return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22289 (eval $ac_link) 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest$ac_exeext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 eval "$as_ac_var=yes"
22309 else
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 eval "$as_ac_var=no"
22314 fi
22315 rm -f conftest.err conftest.$ac_objext \
22316 conftest$ac_exeext conftest.$ac_ext
22317 fi
22318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22320 if test `eval echo '${'$as_ac_var'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22323 _ACEOF
22324
22325 fi
22326 done
22327
22328
22329 for ac_func in strtol
22330 do
22331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 echo "$as_me:$LINENO: checking for $ac_func" >&5
22333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22334 if eval "test \"\${$as_ac_var+set}\" = set"; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h. */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22345 #define $ac_func innocuous_$ac_func
22346
22347 /* System header to define __stub macros and hopefully few prototypes,
22348 which can conflict with char $ac_func (); below.
22349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350 <limits.h> exists even on freestanding compilers. */
22351
22352 #ifdef __STDC__
22353 # include <limits.h>
22354 #else
22355 # include <assert.h>
22356 #endif
22357
22358 #undef $ac_func
22359
22360 /* Override any gcc2 internal prototype to avoid an error. */
22361 #ifdef __cplusplus
22362 extern "C"
22363 {
22364 #endif
22365 /* We use char because int might match the return type of a gcc2
22366 builtin and then its argument prototype would still apply. */
22367 char $ac_func ();
22368 /* The GNU C library defines this for functions which it implements
22369 to always fail with ENOSYS. Some functions are actually named
22370 something starting with __ and the normal name is an alias. */
22371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22372 choke me
22373 #else
22374 char (*f) () = $ac_func;
22375 #endif
22376 #ifdef __cplusplus
22377 }
22378 #endif
22379
22380 int
22381 main ()
22382 {
22383 return f != $ac_func;
22384 ;
22385 return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>conftest.er1
22391 ac_status=$?
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
22397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; } &&
22403 { ac_try='test -s conftest$ac_exeext'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 eval "$as_ac_var=yes"
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414 eval "$as_ac_var=no"
22415 fi
22416 rm -f conftest.err conftest.$ac_objext \
22417 conftest$ac_exeext conftest.$ac_ext
22418 fi
22419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22421 if test `eval echo '${'$as_ac_var'}'` = yes; then
22422 cat >>confdefs.h <<_ACEOF
22423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424 _ACEOF
22425
22426 fi
22427 done
22428
22429
22430 for ac_func in gettimeofday
22431 do
22432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22433 echo "$as_me:$LINENO: checking for $ac_func" >&5
22434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22435 if eval "test \"\${$as_ac_var+set}\" = set"; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 else
22438 cat >conftest.$ac_ext <<_ACEOF
22439 /* confdefs.h. */
22440 _ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22446 #define $ac_func innocuous_$ac_func
22447
22448 /* System header to define __stub macros and hopefully few prototypes,
22449 which can conflict with char $ac_func (); below.
22450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22451 <limits.h> exists even on freestanding compilers. */
22452
22453 #ifdef __STDC__
22454 # include <limits.h>
22455 #else
22456 # include <assert.h>
22457 #endif
22458
22459 #undef $ac_func
22460
22461 /* Override any gcc2 internal prototype to avoid an error. */
22462 #ifdef __cplusplus
22463 extern "C"
22464 {
22465 #endif
22466 /* We use char because int might match the return type of a gcc2
22467 builtin and then its argument prototype would still apply. */
22468 char $ac_func ();
22469 /* The GNU C library defines this for functions which it implements
22470 to always fail with ENOSYS. Some functions are actually named
22471 something starting with __ and the normal name is an alias. */
22472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22473 choke me
22474 #else
22475 char (*f) () = $ac_func;
22476 #endif
22477 #ifdef __cplusplus
22478 }
22479 #endif
22480
22481 int
22482 main ()
22483 {
22484 return f != $ac_func;
22485 ;
22486 return 0;
22487 }
22488 _ACEOF
22489 rm -f conftest.$ac_objext conftest$ac_exeext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491 (eval $ac_link) 2>conftest.er1
22492 ac_status=$?
22493 grep -v '^ *+' conftest.er1 >conftest.err
22494 rm -f conftest.er1
22495 cat conftest.err >&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
22498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; } &&
22504 { ac_try='test -s conftest$ac_exeext'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 eval "$as_ac_var=yes"
22511 else
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515 eval "$as_ac_var=no"
22516 fi
22517 rm -f conftest.err conftest.$ac_objext \
22518 conftest$ac_exeext conftest.$ac_ext
22519 fi
22520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22522 if test `eval echo '${'$as_ac_var'}'` = yes; then
22523 cat >>confdefs.h <<_ACEOF
22524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22525 _ACEOF
22526
22527 fi
22528 done
22529
22530
22531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22533 if test "${ac_cv_header_stdc+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h. */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <stdlib.h>
22543 #include <stdarg.h>
22544 #include <string.h>
22545 #include <float.h>
22546
22547 int
22548 main ()
22549 {
22550
22551 ;
22552 return 0;
22553 }
22554 _ACEOF
22555 rm -f conftest.$ac_objext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557 (eval $ac_compile) 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try='test -s conftest.$ac_objext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_cv_header_stdc=yes
22577 else
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 ac_cv_header_stdc=no
22582 fi
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584
22585 if test $ac_cv_header_stdc = yes; then
22586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22587 cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h. */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 #include <string.h>
22594
22595 _ACEOF
22596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22597 $EGREP "memchr" >/dev/null 2>&1; then
22598 :
22599 else
22600 ac_cv_header_stdc=no
22601 fi
22602 rm -f conftest*
22603
22604 fi
22605
22606 if test $ac_cv_header_stdc = yes; then
22607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 #include <stdlib.h>
22615
22616 _ACEOF
22617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22618 $EGREP "free" >/dev/null 2>&1; then
22619 :
22620 else
22621 ac_cv_header_stdc=no
22622 fi
22623 rm -f conftest*
22624
22625 fi
22626
22627 if test $ac_cv_header_stdc = yes; then
22628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22629 if test "$cross_compiling" = yes; then
22630 :
22631 else
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h. */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 #include <ctype.h>
22639 #if ((' ' & 0x0FF) == 0x020)
22640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22642 #else
22643 # define ISLOWER(c) \
22644 (('a' <= (c) && (c) <= 'i') \
22645 || ('j' <= (c) && (c) <= 'r') \
22646 || ('s' <= (c) && (c) <= 'z'))
22647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22648 #endif
22649
22650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22651 int
22652 main ()
22653 {
22654 int i;
22655 for (i = 0; i < 256; i++)
22656 if (XOR (islower (i), ISLOWER (i))
22657 || toupper (i) != TOUPPER (i))
22658 exit(2);
22659 exit (0);
22660 }
22661 _ACEOF
22662 rm -f conftest$ac_exeext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22664 (eval $ac_link) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 :
22674 else
22675 echo "$as_me: program exited with status $ac_status" >&5
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 ( exit $ac_status )
22680 ac_cv_header_stdc=no
22681 fi
22682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22683 fi
22684 fi
22685 fi
22686 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22687 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22688 if test $ac_cv_header_stdc = yes; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define STDC_HEADERS 1
22692 _ACEOF
22693
22694 fi
22695
22696 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22697 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
22698 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701 cat >conftest.$ac_ext <<_ACEOF
22702 /* confdefs.h. */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <sys/types.h>
22708 #include <sys/wait.h>
22709 #ifndef WEXITSTATUS
22710 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
22711 #endif
22712 #ifndef WIFEXITED
22713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22714 #endif
22715
22716 int
22717 main ()
22718 {
22719 int s;
22720 wait (&s);
22721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22722 ;
22723 return 0;
22724 }
22725 _ACEOF
22726 rm -f conftest.$ac_objext
22727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22728 (eval $ac_compile) 2>conftest.er1
22729 ac_status=$?
22730 grep -v '^ *+' conftest.er1 >conftest.err
22731 rm -f conftest.er1
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } &&
22735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22738 ac_status=$?
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; } &&
22741 { ac_try='test -s conftest.$ac_objext'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22747 ac_cv_header_sys_wait_h=yes
22748 else
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ac_cv_header_sys_wait_h=no
22753 fi
22754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22755 fi
22756 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22757 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
22758 if test $ac_cv_header_sys_wait_h = yes; then
22759
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_SYS_WAIT_H 1
22762 _ACEOF
22763
22764 fi
22765
22766 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22767 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22768 if test "${ac_cv_header_time+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22770 else
22771 cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h. */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 #include <sys/types.h>
22778 #include <sys/time.h>
22779 #include <time.h>
22780
22781 int
22782 main ()
22783 {
22784 if ((struct tm *) 0)
22785 return 0;
22786 ;
22787 return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22792 (eval $ac_compile) 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } &&
22799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; } &&
22805 { ac_try='test -s conftest.$ac_objext'
22806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807 (eval $ac_try) 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; }; then
22811 ac_cv_header_time=yes
22812 else
22813 echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 ac_cv_header_time=no
22817 fi
22818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22819 fi
22820 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22821 echo "${ECHO_T}$ac_cv_header_time" >&6
22822 if test $ac_cv_header_time = yes; then
22823
22824 cat >>confdefs.h <<\_ACEOF
22825 #define TIME_WITH_SYS_TIME 1
22826 _ACEOF
22827
22828 fi
22829
22830
22831 # Check for header files.
22832
22833 for ac_header in socket.h
22834 do
22835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22837 echo "$as_me:$LINENO: checking for $ac_header" >&5
22838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22841 fi
22842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22844 else
22845 # Is the header compilable?
22846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22848 cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h. */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 $ac_includes_default
22855 #include <$ac_header>
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22859 (eval $ac_compile) 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
22866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22872 { ac_try='test -s conftest.$ac_objext'
22873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874 (eval $ac_try) 2>&5
22875 ac_status=$?
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }; }; then
22878 ac_header_compiler=yes
22879 else
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883 ac_header_compiler=no
22884 fi
22885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22887 echo "${ECHO_T}$ac_header_compiler" >&6
22888
22889 # Is the header present?
22890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <$ac_header>
22899 _ACEOF
22900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } >/dev/null; then
22908 if test -s conftest.err; then
22909 ac_cpp_err=$ac_c_preproc_warn_flag
22910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22911 else
22912 ac_cpp_err=
22913 fi
22914 else
22915 ac_cpp_err=yes
22916 fi
22917 if test -z "$ac_cpp_err"; then
22918 ac_header_preproc=yes
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 ac_header_preproc=no
22924 fi
22925 rm -f conftest.err conftest.$ac_ext
22926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22927 echo "${ECHO_T}$ac_header_preproc" >&6
22928
22929 # So? What about this header?
22930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22931 yes:no: )
22932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22936 ac_header_preproc=yes
22937 ;;
22938 no:yes:* )
22939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22951 (
22952 cat <<\_ASBOX
22953 ## ------------------------------------------ ##
22954 ## Report this to the AC_PACKAGE_NAME lists. ##
22955 ## ------------------------------------------ ##
22956 _ASBOX
22957 ) |
22958 sed "s/^/$as_me: WARNING: /" >&2
22959 ;;
22960 esac
22961 echo "$as_me:$LINENO: checking for $ac_header" >&5
22962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966 eval "$as_ac_Header=\$ac_header_preproc"
22967 fi
22968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22970
22971 fi
22972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22973 cat >>confdefs.h <<_ACEOF
22974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22975 _ACEOF
22976
22977 fi
22978
22979 done
22980
22981
22982 for ac_header in inttypes.h
22983 do
22984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22986 echo "$as_me:$LINENO: checking for $ac_header" >&5
22987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 fi
22991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22993 else
22994 # Is the header compilable?
22995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h. */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 $ac_includes_default
23004 #include <$ac_header>
23005 _ACEOF
23006 rm -f conftest.$ac_objext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23008 (eval $ac_compile) 2>conftest.er1
23009 ac_status=$?
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23018 ac_status=$?
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; } &&
23021 { ac_try='test -s conftest.$ac_objext'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }; then
23027 ac_header_compiler=yes
23028 else
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032 ac_header_compiler=no
23033 fi
23034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23036 echo "${ECHO_T}$ac_header_compiler" >&6
23037
23038 # Is the header present?
23039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 #include <$ac_header>
23048 _ACEOF
23049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23051 ac_status=$?
23052 grep -v '^ *+' conftest.er1 >conftest.err
23053 rm -f conftest.er1
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } >/dev/null; then
23057 if test -s conftest.err; then
23058 ac_cpp_err=$ac_c_preproc_warn_flag
23059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23060 else
23061 ac_cpp_err=
23062 fi
23063 else
23064 ac_cpp_err=yes
23065 fi
23066 if test -z "$ac_cpp_err"; then
23067 ac_header_preproc=yes
23068 else
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23071
23072 ac_header_preproc=no
23073 fi
23074 rm -f conftest.err conftest.$ac_ext
23075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23076 echo "${ECHO_T}$ac_header_preproc" >&6
23077
23078 # So? What about this header?
23079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23080 yes:no: )
23081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23085 ac_header_preproc=yes
23086 ;;
23087 no:yes:* )
23088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23100 (
23101 cat <<\_ASBOX
23102 ## ------------------------------------------ ##
23103 ## Report this to the AC_PACKAGE_NAME lists. ##
23104 ## ------------------------------------------ ##
23105 _ASBOX
23106 ) |
23107 sed "s/^/$as_me: WARNING: /" >&2
23108 ;;
23109 esac
23110 echo "$as_me:$LINENO: checking for $ac_header" >&5
23111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115 eval "$as_ac_Header=\$ac_header_preproc"
23116 fi
23117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23119
23120 fi
23121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23122 cat >>confdefs.h <<_ACEOF
23123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23124 _ACEOF
23125
23126 fi
23127
23128 done
23129
23130
23131 for ac_header in unistd.h
23132 do
23133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23135 echo "$as_me:$LINENO: checking for $ac_header" >&5
23136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 fi
23140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23142 else
23143 # Is the header compilable?
23144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h. */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 $ac_includes_default
23153 #include <$ac_header>
23154 _ACEOF
23155 rm -f conftest.$ac_objext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23157 (eval $ac_compile) 2>conftest.er1
23158 ac_status=$?
23159 grep -v '^ *+' conftest.er1 >conftest.err
23160 rm -f conftest.er1
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } &&
23164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; } &&
23170 { ac_try='test -s conftest.$ac_objext'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 ac_header_compiler=yes
23177 else
23178 echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23180
23181 ac_header_compiler=no
23182 fi
23183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23185 echo "${ECHO_T}$ac_header_compiler" >&6
23186
23187 # Is the header present?
23188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h. */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 #include <$ac_header>
23197 _ACEOF
23198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23200 ac_status=$?
23201 grep -v '^ *+' conftest.er1 >conftest.err
23202 rm -f conftest.er1
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } >/dev/null; then
23206 if test -s conftest.err; then
23207 ac_cpp_err=$ac_c_preproc_warn_flag
23208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23209 else
23210 ac_cpp_err=
23211 fi
23212 else
23213 ac_cpp_err=yes
23214 fi
23215 if test -z "$ac_cpp_err"; then
23216 ac_header_preproc=yes
23217 else
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ac_header_preproc=no
23222 fi
23223 rm -f conftest.err conftest.$ac_ext
23224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23225 echo "${ECHO_T}$ac_header_preproc" >&6
23226
23227 # So? What about this header?
23228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23229 yes:no: )
23230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23234 ac_header_preproc=yes
23235 ;;
23236 no:yes:* )
23237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23249 (
23250 cat <<\_ASBOX
23251 ## ------------------------------------------ ##
23252 ## Report this to the AC_PACKAGE_NAME lists. ##
23253 ## ------------------------------------------ ##
23254 _ASBOX
23255 ) |
23256 sed "s/^/$as_me: WARNING: /" >&2
23257 ;;
23258 esac
23259 echo "$as_me:$LINENO: checking for $ac_header" >&5
23260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264 eval "$as_ac_Header=\$ac_header_preproc"
23265 fi
23266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23268
23269 fi
23270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23271 cat >>confdefs.h <<_ACEOF
23272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23273 _ACEOF
23274
23275 fi
23276
23277 done
23278
23279
23280 for ac_header in stdlib.h
23281 do
23282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23284 echo "$as_me:$LINENO: checking for $ac_header" >&5
23285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 fi
23289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23291 else
23292 # Is the header compilable?
23293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23295 cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h. */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23301 $ac_includes_default
23302 #include <$ac_header>
23303 _ACEOF
23304 rm -f conftest.$ac_objext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23306 (eval $ac_compile) 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } &&
23313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; } &&
23319 { ac_try='test -s conftest.$ac_objext'
23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ac_header_compiler=yes
23326 else
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 ac_header_compiler=no
23331 fi
23332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23334 echo "${ECHO_T}$ac_header_compiler" >&6
23335
23336 # Is the header present?
23337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h. */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345 #include <$ac_header>
23346 _ACEOF
23347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } >/dev/null; then
23355 if test -s conftest.err; then
23356 ac_cpp_err=$ac_c_preproc_warn_flag
23357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23358 else
23359 ac_cpp_err=
23360 fi
23361 else
23362 ac_cpp_err=yes
23363 fi
23364 if test -z "$ac_cpp_err"; then
23365 ac_header_preproc=yes
23366 else
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 ac_header_preproc=no
23371 fi
23372 rm -f conftest.err conftest.$ac_ext
23373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23374 echo "${ECHO_T}$ac_header_preproc" >&6
23375
23376 # So? What about this header?
23377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23378 yes:no: )
23379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23383 ac_header_preproc=yes
23384 ;;
23385 no:yes:* )
23386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23398 (
23399 cat <<\_ASBOX
23400 ## ------------------------------------------ ##
23401 ## Report this to the AC_PACKAGE_NAME lists. ##
23402 ## ------------------------------------------ ##
23403 _ASBOX
23404 ) |
23405 sed "s/^/$as_me: WARNING: /" >&2
23406 ;;
23407 esac
23408 echo "$as_me:$LINENO: checking for $ac_header" >&5
23409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413 eval "$as_ac_Header=\$ac_header_preproc"
23414 fi
23415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23417
23418 fi
23419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23420 cat >>confdefs.h <<_ACEOF
23421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23422 _ACEOF
23423
23424 fi
23425
23426 done
23427
23428
23429 for ac_header in string.h
23430 do
23431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23433 echo "$as_me:$LINENO: checking for $ac_header" >&5
23434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437 fi
23438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23440 else
23441 # Is the header compilable?
23442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23444 cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h. */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h. */
23450 $ac_includes_default
23451 #include <$ac_header>
23452 _ACEOF
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455 (eval $ac_compile) 2>conftest.er1
23456 ac_status=$?
23457 grep -v '^ *+' conftest.er1 >conftest.err
23458 rm -f conftest.er1
23459 cat conftest.err >&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } &&
23462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest.$ac_objext'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 ac_header_compiler=yes
23475 else
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479 ac_header_compiler=no
23480 fi
23481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23483 echo "${ECHO_T}$ac_header_compiler" >&6
23484
23485 # Is the header present?
23486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 #include <$ac_header>
23495 _ACEOF
23496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } >/dev/null; then
23504 if test -s conftest.err; then
23505 ac_cpp_err=$ac_c_preproc_warn_flag
23506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23507 else
23508 ac_cpp_err=
23509 fi
23510 else
23511 ac_cpp_err=yes
23512 fi
23513 if test -z "$ac_cpp_err"; then
23514 ac_header_preproc=yes
23515 else
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519 ac_header_preproc=no
23520 fi
23521 rm -f conftest.err conftest.$ac_ext
23522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23523 echo "${ECHO_T}$ac_header_preproc" >&6
23524
23525 # So? What about this header?
23526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23527 yes:no: )
23528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23532 ac_header_preproc=yes
23533 ;;
23534 no:yes:* )
23535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23547 (
23548 cat <<\_ASBOX
23549 ## ------------------------------------------ ##
23550 ## Report this to the AC_PACKAGE_NAME lists. ##
23551 ## ------------------------------------------ ##
23552 _ASBOX
23553 ) |
23554 sed "s/^/$as_me: WARNING: /" >&2
23555 ;;
23556 esac
23557 echo "$as_me:$LINENO: checking for $ac_header" >&5
23558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562 eval "$as_ac_Header=\$ac_header_preproc"
23563 fi
23564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23566
23567 fi
23568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23569 cat >>confdefs.h <<_ACEOF
23570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23571 _ACEOF
23572
23573 fi
23574
23575 done
23576
23577
23578 for ac_header in strings.h
23579 do
23580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23582 echo "$as_me:$LINENO: checking for $ac_header" >&5
23583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23586 fi
23587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23589 else
23590 # Is the header compilable?
23591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23593 cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h. */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23599 $ac_includes_default
23600 #include <$ac_header>
23601 _ACEOF
23602 rm -f conftest.$ac_objext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23604 (eval $ac_compile) 2>conftest.er1
23605 ac_status=$?
23606 grep -v '^ *+' conftest.er1 >conftest.err
23607 rm -f conftest.er1
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; }; then
23623 ac_header_compiler=yes
23624 else
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628 ac_header_compiler=no
23629 fi
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23632 echo "${ECHO_T}$ac_header_compiler" >&6
23633
23634 # Is the header present?
23635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23637 cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h. */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 #include <$ac_header>
23644 _ACEOF
23645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23647 ac_status=$?
23648 grep -v '^ *+' conftest.er1 >conftest.err
23649 rm -f conftest.er1
23650 cat conftest.err >&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } >/dev/null; then
23653 if test -s conftest.err; then
23654 ac_cpp_err=$ac_c_preproc_warn_flag
23655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23656 else
23657 ac_cpp_err=
23658 fi
23659 else
23660 ac_cpp_err=yes
23661 fi
23662 if test -z "$ac_cpp_err"; then
23663 ac_header_preproc=yes
23664 else
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_header_preproc=no
23669 fi
23670 rm -f conftest.err conftest.$ac_ext
23671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23672 echo "${ECHO_T}$ac_header_preproc" >&6
23673
23674 # So? What about this header?
23675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23676 yes:no: )
23677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23681 ac_header_preproc=yes
23682 ;;
23683 no:yes:* )
23684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23696 (
23697 cat <<\_ASBOX
23698 ## ------------------------------------------ ##
23699 ## Report this to the AC_PACKAGE_NAME lists. ##
23700 ## ------------------------------------------ ##
23701 _ASBOX
23702 ) |
23703 sed "s/^/$as_me: WARNING: /" >&2
23704 ;;
23705 esac
23706 echo "$as_me:$LINENO: checking for $ac_header" >&5
23707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23710 else
23711 eval "$as_ac_Header=\$ac_header_preproc"
23712 fi
23713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23715
23716 fi
23717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23718 cat >>confdefs.h <<_ACEOF
23719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23720 _ACEOF
23721
23722 fi
23723
23724 done
23725
23726
23727 for ac_header in malloc.h
23728 do
23729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23731 echo "$as_me:$LINENO: checking for $ac_header" >&5
23732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 fi
23736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23738 else
23739 # Is the header compilable?
23740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 #include <$ac_header>
23750 _ACEOF
23751 rm -f conftest.$ac_objext
23752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23753 (eval $ac_compile) 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
23760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_header_compiler=yes
23773 else
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_header_compiler=no
23778 fi
23779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23781 echo "${ECHO_T}$ac_header_compiler" >&6
23782
23783 # Is the header present?
23784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23786 cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h. */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 #include <$ac_header>
23793 _ACEOF
23794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23796 ac_status=$?
23797 grep -v '^ *+' conftest.er1 >conftest.err
23798 rm -f conftest.er1
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } >/dev/null; then
23802 if test -s conftest.err; then
23803 ac_cpp_err=$ac_c_preproc_warn_flag
23804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23805 else
23806 ac_cpp_err=
23807 fi
23808 else
23809 ac_cpp_err=yes
23810 fi
23811 if test -z "$ac_cpp_err"; then
23812 ac_header_preproc=yes
23813 else
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_header_preproc=no
23818 fi
23819 rm -f conftest.err conftest.$ac_ext
23820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23821 echo "${ECHO_T}$ac_header_preproc" >&6
23822
23823 # So? What about this header?
23824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23825 yes:no: )
23826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23830 ac_header_preproc=yes
23831 ;;
23832 no:yes:* )
23833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23845 (
23846 cat <<\_ASBOX
23847 ## ------------------------------------------ ##
23848 ## Report this to the AC_PACKAGE_NAME lists. ##
23849 ## ------------------------------------------ ##
23850 _ASBOX
23851 ) |
23852 sed "s/^/$as_me: WARNING: /" >&2
23853 ;;
23854 esac
23855 echo "$as_me:$LINENO: checking for $ac_header" >&5
23856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860 eval "$as_ac_Header=\$ac_header_preproc"
23861 fi
23862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23864
23865 fi
23866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23867 cat >>confdefs.h <<_ACEOF
23868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23869 _ACEOF
23870
23871 fi
23872
23873 done
23874
23875
23876 for ac_header in tgmath.h
23877 do
23878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23880 echo "$as_me:$LINENO: checking for $ac_header" >&5
23881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23884 fi
23885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23887 else
23888 # Is the header compilable?
23889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23891 cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h. */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23898 #include <$ac_header>
23899 _ACEOF
23900 rm -f conftest.$ac_objext
23901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23902 (eval $ac_compile) 2>conftest.er1
23903 ac_status=$?
23904 grep -v '^ *+' conftest.er1 >conftest.err
23905 rm -f conftest.er1
23906 cat conftest.err >&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
23909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; } &&
23915 { ac_try='test -s conftest.$ac_objext'
23916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917 (eval $ac_try) 2>&5
23918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; }; then
23921 ac_header_compiler=yes
23922 else
23923 echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926 ac_header_compiler=no
23927 fi
23928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23930 echo "${ECHO_T}$ac_header_compiler" >&6
23931
23932 # Is the header present?
23933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23935 cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h. */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 #include <$ac_header>
23942 _ACEOF
23943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } >/dev/null; then
23951 if test -s conftest.err; then
23952 ac_cpp_err=$ac_c_preproc_warn_flag
23953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23954 else
23955 ac_cpp_err=
23956 fi
23957 else
23958 ac_cpp_err=yes
23959 fi
23960 if test -z "$ac_cpp_err"; then
23961 ac_header_preproc=yes
23962 else
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23965
23966 ac_header_preproc=no
23967 fi
23968 rm -f conftest.err conftest.$ac_ext
23969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23970 echo "${ECHO_T}$ac_header_preproc" >&6
23971
23972 # So? What about this header?
23973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23974 yes:no: )
23975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23979 ac_header_preproc=yes
23980 ;;
23981 no:yes:* )
23982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23994 (
23995 cat <<\_ASBOX
23996 ## ------------------------------------------ ##
23997 ## Report this to the AC_PACKAGE_NAME lists. ##
23998 ## ------------------------------------------ ##
23999 _ASBOX
24000 ) |
24001 sed "s/^/$as_me: WARNING: /" >&2
24002 ;;
24003 esac
24004 echo "$as_me:$LINENO: checking for $ac_header" >&5
24005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24008 else
24009 eval "$as_ac_Header=\$ac_header_preproc"
24010 fi
24011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24013
24014 fi
24015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24016 cat >>confdefs.h <<_ACEOF
24017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24018 _ACEOF
24019
24020 fi
24021
24022 done
24023
24024
24025 for ac_header in math.h
24026 do
24027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24029 echo "$as_me:$LINENO: checking for $ac_header" >&5
24030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033 fi
24034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24036 else
24037 # Is the header compilable?
24038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24040 cat >conftest.$ac_ext <<_ACEOF
24041 /* confdefs.h. */
24042 _ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 $ac_includes_default
24047 #include <$ac_header>
24048 _ACEOF
24049 rm -f conftest.$ac_objext
24050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24051 (eval $ac_compile) 2>conftest.er1
24052 ac_status=$?
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } &&
24058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest.$ac_objext'
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 ac_header_compiler=yes
24071 else
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075 ac_header_compiler=no
24076 fi
24077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24079 echo "${ECHO_T}$ac_header_compiler" >&6
24080
24081 # Is the header present?
24082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h. */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 #include <$ac_header>
24091 _ACEOF
24092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } >/dev/null; then
24100 if test -s conftest.err; then
24101 ac_cpp_err=$ac_c_preproc_warn_flag
24102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24103 else
24104 ac_cpp_err=
24105 fi
24106 else
24107 ac_cpp_err=yes
24108 fi
24109 if test -z "$ac_cpp_err"; then
24110 ac_header_preproc=yes
24111 else
24112 echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24114
24115 ac_header_preproc=no
24116 fi
24117 rm -f conftest.err conftest.$ac_ext
24118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24119 echo "${ECHO_T}$ac_header_preproc" >&6
24120
24121 # So? What about this header?
24122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24123 yes:no: )
24124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24128 ac_header_preproc=yes
24129 ;;
24130 no:yes:* )
24131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24143 (
24144 cat <<\_ASBOX
24145 ## ------------------------------------------ ##
24146 ## Report this to the AC_PACKAGE_NAME lists. ##
24147 ## ------------------------------------------ ##
24148 _ASBOX
24149 ) |
24150 sed "s/^/$as_me: WARNING: /" >&2
24151 ;;
24152 esac
24153 echo "$as_me:$LINENO: checking for $ac_header" >&5
24154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24156 echo $ECHO_N "(cached) $ECHO_C" >&6
24157 else
24158 eval "$as_ac_Header=\$ac_header_preproc"
24159 fi
24160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24162
24163 fi
24164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24165 cat >>confdefs.h <<_ACEOF
24166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24167 _ACEOF
24168
24169 fi
24170
24171 done
24172
24173
24174 for ac_header in float.h
24175 do
24176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24178 echo "$as_me:$LINENO: checking for $ac_header" >&5
24179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 fi
24183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24185 else
24186 # Is the header compilable?
24187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 $ac_includes_default
24196 #include <$ac_header>
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24200 (eval $ac_compile) 2>conftest.er1
24201 ac_status=$?
24202 grep -v '^ *+' conftest.er1 >conftest.err
24203 rm -f conftest.er1
24204 cat conftest.err >&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); } &&
24207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; } &&
24213 { ac_try='test -s conftest.$ac_objext'
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; }; then
24219 ac_header_compiler=yes
24220 else
24221 echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224 ac_header_compiler=no
24225 fi
24226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24228 echo "${ECHO_T}$ac_header_compiler" >&6
24229
24230 # Is the header present?
24231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24233 cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h. */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 #include <$ac_header>
24240 _ACEOF
24241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24243 ac_status=$?
24244 grep -v '^ *+' conftest.er1 >conftest.err
24245 rm -f conftest.er1
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } >/dev/null; then
24249 if test -s conftest.err; then
24250 ac_cpp_err=$ac_c_preproc_warn_flag
24251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24252 else
24253 ac_cpp_err=
24254 fi
24255 else
24256 ac_cpp_err=yes
24257 fi
24258 if test -z "$ac_cpp_err"; then
24259 ac_header_preproc=yes
24260 else
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ac_header_preproc=no
24265 fi
24266 rm -f conftest.err conftest.$ac_ext
24267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24268 echo "${ECHO_T}$ac_header_preproc" >&6
24269
24270 # So? What about this header?
24271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24272 yes:no: )
24273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24277 ac_header_preproc=yes
24278 ;;
24279 no:yes:* )
24280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24292 (
24293 cat <<\_ASBOX
24294 ## ------------------------------------------ ##
24295 ## Report this to the AC_PACKAGE_NAME lists. ##
24296 ## ------------------------------------------ ##
24297 _ASBOX
24298 ) |
24299 sed "s/^/$as_me: WARNING: /" >&2
24300 ;;
24301 esac
24302 echo "$as_me:$LINENO: checking for $ac_header" >&5
24303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24305 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 else
24307 eval "$as_ac_Header=\$ac_header_preproc"
24308 fi
24309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24311
24312 fi
24313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24314 cat >>confdefs.h <<_ACEOF
24315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24316 _ACEOF
24317
24318 fi
24319
24320 done
24321
24322
24323 for ac_header in fcntl.h
24324 do
24325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24327 echo "$as_me:$LINENO: checking for $ac_header" >&5
24328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 fi
24332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24334 else
24335 # Is the header compilable?
24336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24338 cat >conftest.$ac_ext <<_ACEOF
24339 /* confdefs.h. */
24340 _ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24344 $ac_includes_default
24345 #include <$ac_header>
24346 _ACEOF
24347 rm -f conftest.$ac_objext
24348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24349 (eval $ac_compile) 2>conftest.er1
24350 ac_status=$?
24351 grep -v '^ *+' conftest.er1 >conftest.err
24352 rm -f conftest.er1
24353 cat conftest.err >&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } &&
24356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; } &&
24362 { ac_try='test -s conftest.$ac_objext'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; }; then
24368 ac_header_compiler=yes
24369 else
24370 echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24372
24373 ac_header_compiler=no
24374 fi
24375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24377 echo "${ECHO_T}$ac_header_compiler" >&6
24378
24379 # Is the header present?
24380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h. */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 #include <$ac_header>
24389 _ACEOF
24390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24392 ac_status=$?
24393 grep -v '^ *+' conftest.er1 >conftest.err
24394 rm -f conftest.er1
24395 cat conftest.err >&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } >/dev/null; then
24398 if test -s conftest.err; then
24399 ac_cpp_err=$ac_c_preproc_warn_flag
24400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24401 else
24402 ac_cpp_err=
24403 fi
24404 else
24405 ac_cpp_err=yes
24406 fi
24407 if test -z "$ac_cpp_err"; then
24408 ac_header_preproc=yes
24409 else
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24412
24413 ac_header_preproc=no
24414 fi
24415 rm -f conftest.err conftest.$ac_ext
24416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24417 echo "${ECHO_T}$ac_header_preproc" >&6
24418
24419 # So? What about this header?
24420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24421 yes:no: )
24422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24426 ac_header_preproc=yes
24427 ;;
24428 no:yes:* )
24429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24441 (
24442 cat <<\_ASBOX
24443 ## ------------------------------------------ ##
24444 ## Report this to the AC_PACKAGE_NAME lists. ##
24445 ## ------------------------------------------ ##
24446 _ASBOX
24447 ) |
24448 sed "s/^/$as_me: WARNING: /" >&2
24449 ;;
24450 esac
24451 echo "$as_me:$LINENO: checking for $ac_header" >&5
24452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24454 echo $ECHO_N "(cached) $ECHO_C" >&6
24455 else
24456 eval "$as_ac_Header=\$ac_header_preproc"
24457 fi
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24460
24461 fi
24462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24463 cat >>confdefs.h <<_ACEOF
24464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24465 _ACEOF
24466
24467 fi
24468
24469 done
24470
24471
24472 for ac_header in sys/time.h
24473 do
24474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24476 echo "$as_me:$LINENO: checking for $ac_header" >&5
24477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 fi
24481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24483 else
24484 # Is the header compilable?
24485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h. */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 $ac_includes_default
24494 #include <$ac_header>
24495 _ACEOF
24496 rm -f conftest.$ac_objext
24497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24498 (eval $ac_compile) 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } &&
24505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507 (eval $ac_try) 2>&5
24508 ac_status=$?
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; } &&
24511 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24517 ac_header_compiler=yes
24518 else
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522 ac_header_compiler=no
24523 fi
24524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24526 echo "${ECHO_T}$ac_header_compiler" >&6
24527
24528 # Is the header present?
24529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24531 cat >conftest.$ac_ext <<_ACEOF
24532 /* confdefs.h. */
24533 _ACEOF
24534 cat confdefs.h >>conftest.$ac_ext
24535 cat >>conftest.$ac_ext <<_ACEOF
24536 /* end confdefs.h. */
24537 #include <$ac_header>
24538 _ACEOF
24539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24541 ac_status=$?
24542 grep -v '^ *+' conftest.er1 >conftest.err
24543 rm -f conftest.er1
24544 cat conftest.err >&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } >/dev/null; then
24547 if test -s conftest.err; then
24548 ac_cpp_err=$ac_c_preproc_warn_flag
24549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24550 else
24551 ac_cpp_err=
24552 fi
24553 else
24554 ac_cpp_err=yes
24555 fi
24556 if test -z "$ac_cpp_err"; then
24557 ac_header_preproc=yes
24558 else
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24561
24562 ac_header_preproc=no
24563 fi
24564 rm -f conftest.err conftest.$ac_ext
24565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24566 echo "${ECHO_T}$ac_header_preproc" >&6
24567
24568 # So? What about this header?
24569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24570 yes:no: )
24571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24575 ac_header_preproc=yes
24576 ;;
24577 no:yes:* )
24578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24590 (
24591 cat <<\_ASBOX
24592 ## ------------------------------------------ ##
24593 ## Report this to the AC_PACKAGE_NAME lists. ##
24594 ## ------------------------------------------ ##
24595 _ASBOX
24596 ) |
24597 sed "s/^/$as_me: WARNING: /" >&2
24598 ;;
24599 esac
24600 echo "$as_me:$LINENO: checking for $ac_header" >&5
24601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 else
24605 eval "$as_ac_Header=\$ac_header_preproc"
24606 fi
24607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24609
24610 fi
24611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24612 cat >>confdefs.h <<_ACEOF
24613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24614 _ACEOF
24615
24616 fi
24617
24618 done
24619
24620
24621 for ac_header in sys/select.h
24622 do
24623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24625 echo "$as_me:$LINENO: checking for $ac_header" >&5
24626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 fi
24630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24632 else
24633 # Is the header compilable?
24634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24636 cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h. */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24642 $ac_includes_default
24643 #include <$ac_header>
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24647 (eval $ac_compile) 2>conftest.er1
24648 ac_status=$?
24649 grep -v '^ *+' conftest.er1 >conftest.err
24650 rm -f conftest.er1
24651 cat conftest.err >&5
24652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } &&
24654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; } &&
24660 { ac_try='test -s conftest.$ac_objext'
24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662 (eval $ac_try) 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; }; then
24666 ac_header_compiler=yes
24667 else
24668 echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671 ac_header_compiler=no
24672 fi
24673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24675 echo "${ECHO_T}$ac_header_compiler" >&6
24676
24677 # Is the header present?
24678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24680 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h. */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h. */
24686 #include <$ac_header>
24687 _ACEOF
24688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24690 ac_status=$?
24691 grep -v '^ *+' conftest.er1 >conftest.err
24692 rm -f conftest.er1
24693 cat conftest.err >&5
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); } >/dev/null; then
24696 if test -s conftest.err; then
24697 ac_cpp_err=$ac_c_preproc_warn_flag
24698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24699 else
24700 ac_cpp_err=
24701 fi
24702 else
24703 ac_cpp_err=yes
24704 fi
24705 if test -z "$ac_cpp_err"; then
24706 ac_header_preproc=yes
24707 else
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711 ac_header_preproc=no
24712 fi
24713 rm -f conftest.err conftest.$ac_ext
24714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24715 echo "${ECHO_T}$ac_header_preproc" >&6
24716
24717 # So? What about this header?
24718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24719 yes:no: )
24720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24724 ac_header_preproc=yes
24725 ;;
24726 no:yes:* )
24727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24739 (
24740 cat <<\_ASBOX
24741 ## ------------------------------------------ ##
24742 ## Report this to the AC_PACKAGE_NAME lists. ##
24743 ## ------------------------------------------ ##
24744 _ASBOX
24745 ) |
24746 sed "s/^/$as_me: WARNING: /" >&2
24747 ;;
24748 esac
24749 echo "$as_me:$LINENO: checking for $ac_header" >&5
24750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754 eval "$as_ac_Header=\$ac_header_preproc"
24755 fi
24756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24758
24759 fi
24760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24761 cat >>confdefs.h <<_ACEOF
24762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24763 _ACEOF
24764
24765 fi
24766
24767 done
24768
24769
24770 for ac_header in sys/ioctl.h
24771 do
24772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24774 echo "$as_me:$LINENO: checking for $ac_header" >&5
24775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24778 fi
24779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24781 else
24782 # Is the header compilable?
24783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24785 cat >conftest.$ac_ext <<_ACEOF
24786 /* confdefs.h. */
24787 _ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 $ac_includes_default
24792 #include <$ac_header>
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24796 (eval $ac_compile) 2>conftest.er1
24797 ac_status=$?
24798 grep -v '^ *+' conftest.er1 >conftest.err
24799 rm -f conftest.er1
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
24803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest.$ac_objext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 ac_header_compiler=yes
24816 else
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820 ac_header_compiler=no
24821 fi
24822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24824 echo "${ECHO_T}$ac_header_compiler" >&6
24825
24826 # Is the header present?
24827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24829 cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h. */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24835 #include <$ac_header>
24836 _ACEOF
24837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24839 ac_status=$?
24840 grep -v '^ *+' conftest.er1 >conftest.err
24841 rm -f conftest.er1
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } >/dev/null; then
24845 if test -s conftest.err; then
24846 ac_cpp_err=$ac_c_preproc_warn_flag
24847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24848 else
24849 ac_cpp_err=
24850 fi
24851 else
24852 ac_cpp_err=yes
24853 fi
24854 if test -z "$ac_cpp_err"; then
24855 ac_header_preproc=yes
24856 else
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860 ac_header_preproc=no
24861 fi
24862 rm -f conftest.err conftest.$ac_ext
24863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24864 echo "${ECHO_T}$ac_header_preproc" >&6
24865
24866 # So? What about this header?
24867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24868 yes:no: )
24869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24873 ac_header_preproc=yes
24874 ;;
24875 no:yes:* )
24876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24888 (
24889 cat <<\_ASBOX
24890 ## ------------------------------------------ ##
24891 ## Report this to the AC_PACKAGE_NAME lists. ##
24892 ## ------------------------------------------ ##
24893 _ASBOX
24894 ) |
24895 sed "s/^/$as_me: WARNING: /" >&2
24896 ;;
24897 esac
24898 echo "$as_me:$LINENO: checking for $ac_header" >&5
24899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 else
24903 eval "$as_ac_Header=\$ac_header_preproc"
24904 fi
24905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24907
24908 fi
24909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24910 cat >>confdefs.h <<_ACEOF
24911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24912 _ACEOF
24913
24914 fi
24915
24916 done
24917
24918
24919 for ac_header in sys/fcntl.h
24920 do
24921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24923 echo "$as_me:$LINENO: checking for $ac_header" >&5
24924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24926 echo $ECHO_N "(cached) $ECHO_C" >&6
24927 fi
24928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24930 else
24931 # Is the header compilable?
24932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24934 cat >conftest.$ac_ext <<_ACEOF
24935 /* confdefs.h. */
24936 _ACEOF
24937 cat confdefs.h >>conftest.$ac_ext
24938 cat >>conftest.$ac_ext <<_ACEOF
24939 /* end confdefs.h. */
24940 $ac_includes_default
24941 #include <$ac_header>
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945 (eval $ac_compile) 2>conftest.er1
24946 ac_status=$?
24947 grep -v '^ *+' conftest.er1 >conftest.err
24948 rm -f conftest.er1
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest.$ac_objext'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_header_compiler=yes
24965 else
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24968
24969 ac_header_compiler=no
24970 fi
24971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24973 echo "${ECHO_T}$ac_header_compiler" >&6
24974
24975 # Is the header present?
24976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24978 cat >conftest.$ac_ext <<_ACEOF
24979 /* confdefs.h. */
24980 _ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h. */
24984 #include <$ac_header>
24985 _ACEOF
24986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24988 ac_status=$?
24989 grep -v '^ *+' conftest.er1 >conftest.err
24990 rm -f conftest.er1
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } >/dev/null; then
24994 if test -s conftest.err; then
24995 ac_cpp_err=$ac_c_preproc_warn_flag
24996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24997 else
24998 ac_cpp_err=
24999 fi
25000 else
25001 ac_cpp_err=yes
25002 fi
25003 if test -z "$ac_cpp_err"; then
25004 ac_header_preproc=yes
25005 else
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009 ac_header_preproc=no
25010 fi
25011 rm -f conftest.err conftest.$ac_ext
25012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25013 echo "${ECHO_T}$ac_header_preproc" >&6
25014
25015 # So? What about this header?
25016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25017 yes:no: )
25018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25022 ac_header_preproc=yes
25023 ;;
25024 no:yes:* )
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25037 (
25038 cat <<\_ASBOX
25039 ## ------------------------------------------ ##
25040 ## Report this to the AC_PACKAGE_NAME lists. ##
25041 ## ------------------------------------------ ##
25042 _ASBOX
25043 ) |
25044 sed "s/^/$as_me: WARNING: /" >&2
25045 ;;
25046 esac
25047 echo "$as_me:$LINENO: checking for $ac_header" >&5
25048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25050 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052 eval "$as_ac_Header=\$ac_header_preproc"
25053 fi
25054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25056
25057 fi
25058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25061 _ACEOF
25062
25063 fi
25064
25065 done
25066
25067
25068 for ac_header in audiofile.h
25069 do
25070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25072 echo "$as_me:$LINENO: checking for $ac_header" >&5
25073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25076 fi
25077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25079 else
25080 # Is the header compilable?
25081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25083 cat >conftest.$ac_ext <<_ACEOF
25084 /* confdefs.h. */
25085 _ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h. */
25089 $ac_includes_default
25090 #include <$ac_header>
25091 _ACEOF
25092 rm -f conftest.$ac_objext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25094 (eval $ac_compile) 2>conftest.er1
25095 ac_status=$?
25096 grep -v '^ *+' conftest.er1 >conftest.err
25097 rm -f conftest.er1
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
25101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; } &&
25107 { ac_try='test -s conftest.$ac_objext'
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25110 ac_status=$?
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_header_compiler=yes
25114 else
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118 ac_header_compiler=no
25119 fi
25120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25122 echo "${ECHO_T}$ac_header_compiler" >&6
25123
25124 # Is the header present?
25125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25127 cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h. */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 #include <$ac_header>
25134 _ACEOF
25135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25137 ac_status=$?
25138 grep -v '^ *+' conftest.er1 >conftest.err
25139 rm -f conftest.er1
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } >/dev/null; then
25143 if test -s conftest.err; then
25144 ac_cpp_err=$ac_c_preproc_warn_flag
25145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25146 else
25147 ac_cpp_err=
25148 fi
25149 else
25150 ac_cpp_err=yes
25151 fi
25152 if test -z "$ac_cpp_err"; then
25153 ac_header_preproc=yes
25154 else
25155 echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158 ac_header_preproc=no
25159 fi
25160 rm -f conftest.err conftest.$ac_ext
25161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25162 echo "${ECHO_T}$ac_header_preproc" >&6
25163
25164 # So? What about this header?
25165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25166 yes:no: )
25167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25171 ac_header_preproc=yes
25172 ;;
25173 no:yes:* )
25174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25186 (
25187 cat <<\_ASBOX
25188 ## ------------------------------------------ ##
25189 ## Report this to the AC_PACKAGE_NAME lists. ##
25190 ## ------------------------------------------ ##
25191 _ASBOX
25192 ) |
25193 sed "s/^/$as_me: WARNING: /" >&2
25194 ;;
25195 esac
25196 echo "$as_me:$LINENO: checking for $ac_header" >&5
25197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25199 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 else
25201 eval "$as_ac_Header=\$ac_header_preproc"
25202 fi
25203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25205
25206 fi
25207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25208 cat >>confdefs.h <<_ACEOF
25209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25210 _ACEOF
25211
25212 fi
25213
25214 done
25215
25216
25217 for ac_header in fftw.h
25218 do
25219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25221 echo "$as_me:$LINENO: checking for $ac_header" >&5
25222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25225 fi
25226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25228 else
25229 # Is the header compilable?
25230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25232 cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h. */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 $ac_includes_default
25239 #include <$ac_header>
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243 (eval $ac_compile) 2>conftest.er1
25244 ac_status=$?
25245 grep -v '^ *+' conftest.er1 >conftest.err
25246 rm -f conftest.er1
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } &&
25250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest.$ac_objext'
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_header_compiler=yes
25263 else
25264 echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267 ac_header_compiler=no
25268 fi
25269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25271 echo "${ECHO_T}$ac_header_compiler" >&6
25272
25273 # Is the header present?
25274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282 #include <$ac_header>
25283 _ACEOF
25284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25286 ac_status=$?
25287 grep -v '^ *+' conftest.er1 >conftest.err
25288 rm -f conftest.er1
25289 cat conftest.err >&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } >/dev/null; then
25292 if test -s conftest.err; then
25293 ac_cpp_err=$ac_c_preproc_warn_flag
25294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25295 else
25296 ac_cpp_err=
25297 fi
25298 else
25299 ac_cpp_err=yes
25300 fi
25301 if test -z "$ac_cpp_err"; then
25302 ac_header_preproc=yes
25303 else
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307 ac_header_preproc=no
25308 fi
25309 rm -f conftest.err conftest.$ac_ext
25310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25311 echo "${ECHO_T}$ac_header_preproc" >&6
25312
25313 # So? What about this header?
25314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25315 yes:no: )
25316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25320 ac_header_preproc=yes
25321 ;;
25322 no:yes:* )
25323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25335 (
25336 cat <<\_ASBOX
25337 ## ------------------------------------------ ##
25338 ## Report this to the AC_PACKAGE_NAME lists. ##
25339 ## ------------------------------------------ ##
25340 _ASBOX
25341 ) |
25342 sed "s/^/$as_me: WARNING: /" >&2
25343 ;;
25344 esac
25345 echo "$as_me:$LINENO: checking for $ac_header" >&5
25346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350 eval "$as_ac_Header=\$ac_header_preproc"
25351 fi
25352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25354
25355 fi
25356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25357 cat >>confdefs.h <<_ACEOF
25358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25359 _ACEOF
25360
25361 fi
25362
25363 done
25364
25365
25366 for ac_header in fftw3.h
25367 do
25368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25370 echo "$as_me:$LINENO: checking for $ac_header" >&5
25371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374 fi
25375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25377 else
25378 # Is the header compilable?
25379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h. */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25388 #include <$ac_header>
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25392 (eval $ac_compile) 2>conftest.er1
25393 ac_status=$?
25394 grep -v '^ *+' conftest.er1 >conftest.err
25395 rm -f conftest.er1
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } &&
25399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; } &&
25405 { ac_try='test -s conftest.$ac_objext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 ac_header_compiler=yes
25412 else
25413 echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25415
25416 ac_header_compiler=no
25417 fi
25418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25420 echo "${ECHO_T}$ac_header_compiler" >&6
25421
25422 # Is the header present?
25423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25425 cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h. */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 #include <$ac_header>
25432 _ACEOF
25433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25435 ac_status=$?
25436 grep -v '^ *+' conftest.er1 >conftest.err
25437 rm -f conftest.er1
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } >/dev/null; then
25441 if test -s conftest.err; then
25442 ac_cpp_err=$ac_c_preproc_warn_flag
25443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25444 else
25445 ac_cpp_err=
25446 fi
25447 else
25448 ac_cpp_err=yes
25449 fi
25450 if test -z "$ac_cpp_err"; then
25451 ac_header_preproc=yes
25452 else
25453 echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 ac_header_preproc=no
25457 fi
25458 rm -f conftest.err conftest.$ac_ext
25459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25460 echo "${ECHO_T}$ac_header_preproc" >&6
25461
25462 # So? What about this header?
25463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25464 yes:no: )
25465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25469 ac_header_preproc=yes
25470 ;;
25471 no:yes:* )
25472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25484 (
25485 cat <<\_ASBOX
25486 ## ------------------------------------------ ##
25487 ## Report this to the AC_PACKAGE_NAME lists. ##
25488 ## ------------------------------------------ ##
25489 _ASBOX
25490 ) |
25491 sed "s/^/$as_me: WARNING: /" >&2
25492 ;;
25493 esac
25494 echo "$as_me:$LINENO: checking for $ac_header" >&5
25495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25498 else
25499 eval "$as_ac_Header=\$ac_header_preproc"
25500 fi
25501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25503
25504 fi
25505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25506 cat >>confdefs.h <<_ACEOF
25507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25508 _ACEOF
25509
25510 fi
25511
25512 done
25513
25514
25515 for ac_header in tiffio.h
25516 do
25517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25519 echo "$as_me:$LINENO: checking for $ac_header" >&5
25520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 fi
25524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25526 else
25527 # Is the header compilable?
25528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h. */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536 $ac_includes_default
25537 #include <$ac_header>
25538 _ACEOF
25539 rm -f conftest.$ac_objext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25541 (eval $ac_compile) 2>conftest.er1
25542 ac_status=$?
25543 grep -v '^ *+' conftest.er1 >conftest.err
25544 rm -f conftest.er1
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } &&
25548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; } &&
25554 { ac_try='test -s conftest.$ac_objext'
25555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); }; }; then
25560 ac_header_compiler=yes
25561 else
25562 echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25564
25565 ac_header_compiler=no
25566 fi
25567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25569 echo "${ECHO_T}$ac_header_compiler" >&6
25570
25571 # Is the header present?
25572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h. */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 #include <$ac_header>
25581 _ACEOF
25582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25584 ac_status=$?
25585 grep -v '^ *+' conftest.er1 >conftest.err
25586 rm -f conftest.er1
25587 cat conftest.err >&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); } >/dev/null; then
25590 if test -s conftest.err; then
25591 ac_cpp_err=$ac_c_preproc_warn_flag
25592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25593 else
25594 ac_cpp_err=
25595 fi
25596 else
25597 ac_cpp_err=yes
25598 fi
25599 if test -z "$ac_cpp_err"; then
25600 ac_header_preproc=yes
25601 else
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_header_preproc=no
25606 fi
25607 rm -f conftest.err conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25609 echo "${ECHO_T}$ac_header_preproc" >&6
25610
25611 # So? What about this header?
25612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25613 yes:no: )
25614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25618 ac_header_preproc=yes
25619 ;;
25620 no:yes:* )
25621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25633 (
25634 cat <<\_ASBOX
25635 ## ------------------------------------------ ##
25636 ## Report this to the AC_PACKAGE_NAME lists. ##
25637 ## ------------------------------------------ ##
25638 _ASBOX
25639 ) |
25640 sed "s/^/$as_me: WARNING: /" >&2
25641 ;;
25642 esac
25643 echo "$as_me:$LINENO: checking for $ac_header" >&5
25644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25646 echo $ECHO_N "(cached) $ECHO_C" >&6
25647 else
25648 eval "$as_ac_Header=\$ac_header_preproc"
25649 fi
25650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25652
25653 fi
25654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25655 cat >>confdefs.h <<_ACEOF
25656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25657 _ACEOF
25658
25659 fi
25660
25661 done
25662
25663
25664 for ac_header in pthread.h
25665 do
25666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25668 echo "$as_me:$LINENO: checking for $ac_header" >&5
25669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
25672 fi
25673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25675 else
25676 # Is the header compilable?
25677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25679 cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h. */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25685 $ac_includes_default
25686 #include <$ac_header>
25687 _ACEOF
25688 rm -f conftest.$ac_objext
25689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25690 (eval $ac_compile) 2>conftest.er1
25691 ac_status=$?
25692 grep -v '^ *+' conftest.er1 >conftest.err
25693 rm -f conftest.er1
25694 cat conftest.err >&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } &&
25697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); }; } &&
25703 { ac_try='test -s conftest.$ac_objext'
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; }; then
25709 ac_header_compiler=yes
25710 else
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714 ac_header_compiler=no
25715 fi
25716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25718 echo "${ECHO_T}$ac_header_compiler" >&6
25719
25720 # Is the header present?
25721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h. */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 #include <$ac_header>
25730 _ACEOF
25731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } >/dev/null; then
25739 if test -s conftest.err; then
25740 ac_cpp_err=$ac_c_preproc_warn_flag
25741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25742 else
25743 ac_cpp_err=
25744 fi
25745 else
25746 ac_cpp_err=yes
25747 fi
25748 if test -z "$ac_cpp_err"; then
25749 ac_header_preproc=yes
25750 else
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25753
25754 ac_header_preproc=no
25755 fi
25756 rm -f conftest.err conftest.$ac_ext
25757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25758 echo "${ECHO_T}$ac_header_preproc" >&6
25759
25760 # So? What about this header?
25761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25762 yes:no: )
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25767 ac_header_preproc=yes
25768 ;;
25769 no:yes:* )
25770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25782 (
25783 cat <<\_ASBOX
25784 ## ------------------------------------------ ##
25785 ## Report this to the AC_PACKAGE_NAME lists. ##
25786 ## ------------------------------------------ ##
25787 _ASBOX
25788 ) |
25789 sed "s/^/$as_me: WARNING: /" >&2
25790 ;;
25791 esac
25792 echo "$as_me:$LINENO: checking for $ac_header" >&5
25793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 else
25797 eval "$as_ac_Header=\$ac_header_preproc"
25798 fi
25799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25801
25802 fi
25803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25804 cat >>confdefs.h <<_ACEOF
25805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25806 _ACEOF
25807
25808 fi
25809
25810 done
25811
25812
25813 for ac_header in unicall.h
25814 do
25815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25817 echo "$as_me:$LINENO: checking for $ac_header" >&5
25818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25820 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 fi
25822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25824 else
25825 # Is the header compilable?
25826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25828 cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h. */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 $ac_includes_default
25835 #include <$ac_header>
25836 _ACEOF
25837 rm -f conftest.$ac_objext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839 (eval $ac_compile) 2>conftest.er1
25840 ac_status=$?
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
25846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; } &&
25852 { ac_try='test -s conftest.$ac_objext'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 ac_header_compiler=yes
25859 else
25860 echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25862
25863 ac_header_compiler=no
25864 fi
25865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25867 echo "${ECHO_T}$ac_header_compiler" >&6
25868
25869 # Is the header present?
25870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25872 cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h. */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h. */
25878 #include <$ac_header>
25879 _ACEOF
25880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25882 ac_status=$?
25883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } >/dev/null; then
25888 if test -s conftest.err; then
25889 ac_cpp_err=$ac_c_preproc_warn_flag
25890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25891 else
25892 ac_cpp_err=
25893 fi
25894 else
25895 ac_cpp_err=yes
25896 fi
25897 if test -z "$ac_cpp_err"; then
25898 ac_header_preproc=yes
25899 else
25900 echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25902
25903 ac_header_preproc=no
25904 fi
25905 rm -f conftest.err conftest.$ac_ext
25906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25907 echo "${ECHO_T}$ac_header_preproc" >&6
25908
25909 # So? What about this header?
25910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25911 yes:no: )
25912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25916 ac_header_preproc=yes
25917 ;;
25918 no:yes:* )
25919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25931 (
25932 cat <<\_ASBOX
25933 ## ------------------------------------------ ##
25934 ## Report this to the AC_PACKAGE_NAME lists. ##
25935 ## ------------------------------------------ ##
25936 _ASBOX
25937 ) |
25938 sed "s/^/$as_me: WARNING: /" >&2
25939 ;;
25940 esac
25941 echo "$as_me:$LINENO: checking for $ac_header" >&5
25942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25944 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 else
25946 eval "$as_ac_Header=\$ac_header_preproc"
25947 fi
25948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25950
25951 fi
25952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25953 cat >>confdefs.h <<_ACEOF
25954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25955 _ACEOF
25956
25957 fi
25958
25959 done
25960
25961
25962 for ac_header in X11/X.h
25963 do
25964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25966 echo "$as_me:$LINENO: checking for $ac_header" >&5
25967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25970 fi
25971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25973 else
25974 # Is the header compilable?
25975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25977 cat >conftest.$ac_ext <<_ACEOF
25978 /* confdefs.h. */
25979 _ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h. */
25983 $ac_includes_default
25984 #include <$ac_header>
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988 (eval $ac_compile) 2>conftest.er1
25989 ac_status=$?
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; } &&
26001 { ac_try='test -s conftest.$ac_objext'
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_header_compiler=yes
26008 else
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012 ac_header_compiler=no
26013 fi
26014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26016 echo "${ECHO_T}$ac_header_compiler" >&6
26017
26018 # Is the header present?
26019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h. */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 #include <$ac_header>
26028 _ACEOF
26029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26031 ac_status=$?
26032 grep -v '^ *+' conftest.er1 >conftest.err
26033 rm -f conftest.er1
26034 cat conftest.err >&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); } >/dev/null; then
26037 if test -s conftest.err; then
26038 ac_cpp_err=$ac_c_preproc_warn_flag
26039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26040 else
26041 ac_cpp_err=
26042 fi
26043 else
26044 ac_cpp_err=yes
26045 fi
26046 if test -z "$ac_cpp_err"; then
26047 ac_header_preproc=yes
26048 else
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 ac_header_preproc=no
26053 fi
26054 rm -f conftest.err conftest.$ac_ext
26055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26056 echo "${ECHO_T}$ac_header_preproc" >&6
26057
26058 # So? What about this header?
26059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26060 yes:no: )
26061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26065 ac_header_preproc=yes
26066 ;;
26067 no:yes:* )
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26080 (
26081 cat <<\_ASBOX
26082 ## ------------------------------------------ ##
26083 ## Report this to the AC_PACKAGE_NAME lists. ##
26084 ## ------------------------------------------ ##
26085 _ASBOX
26086 ) |
26087 sed "s/^/$as_me: WARNING: /" >&2
26088 ;;
26089 esac
26090 echo "$as_me:$LINENO: checking for $ac_header" >&5
26091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26093 echo $ECHO_N "(cached) $ECHO_C" >&6
26094 else
26095 eval "$as_ac_Header=\$ac_header_preproc"
26096 fi
26097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26099
26100 fi
26101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26102 cat >>confdefs.h <<_ACEOF
26103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26104 _ACEOF
26105
26106 fi
26107
26108 done
26109
26110
26111 # Determine XML2 include path
26112 echo "$as_me:$LINENO: checking for libxml/xmlmemory.h" >&5
26113 echo $ECHO_N "checking for libxml/xmlmemory.h... $ECHO_C" >&6
26114
26115 # Can we include headers using system include dirs?
26116 cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h. */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26122 #include <libxml/xmlmemory.h>
26123 int
26124 main ()
26125 {
26126 int a = 1;
26127 ;
26128 return 0;
26129 }
26130 _ACEOF
26131 rm -f conftest.$ac_objext
26132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26133 (eval $ac_compile) 2>conftest.er1
26134 ac_status=$?
26135 grep -v '^ *+' conftest.er1 >conftest.err
26136 rm -f conftest.er1
26137 cat conftest.err >&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
26140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
26146 { ac_try='test -s conftest.$ac_objext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 XML2_INCLUDE=" "
26153 else
26154 echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 XML2_INCLUDE=
26158
26159 fi
26160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26161
26162 # Hunt through several possible directories to find the includes for libxml2
26163 if test "x$XML2_INCLUDE" = "x"; then
26164 old_CPPFLAGS="$CPPFLAGS"
26165 for i in $xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2 ; do
26166 CPPFLAGS="$old_CPPFLAGS -I$i"
26167 cat >conftest.$ac_ext <<_ACEOF
26168 /* confdefs.h. */
26169 _ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h. */
26173 #include <libxml/xmlmemory.h>
26174 int
26175 main ()
26176 {
26177 int a = 1;
26178 ;
26179 return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest.$ac_objext
26183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26184 (eval $ac_compile) 2>conftest.er1
26185 ac_status=$?
26186 grep -v '^ *+' conftest.er1 >conftest.err
26187 rm -f conftest.er1
26188 cat conftest.err >&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
26191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest.$ac_objext'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26203 XML2_INCLUDE="-I$i"
26204 else
26205 echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 XML2_INCLUDE=
26209
26210 fi
26211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26212 if test "x$XML2_INCLUDE" != "x"; then
26213 break;
26214 fi
26215 done
26216 CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
26217 fi
26218
26219
26220 for ac_header in libxml/xmlmemory.h
26221 do
26222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26224 echo "$as_me:$LINENO: checking for $ac_header" >&5
26225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26227 echo $ECHO_N "(cached) $ECHO_C" >&6
26228 fi
26229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26231 else
26232 # Is the header compilable?
26233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26235 cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h. */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 $ac_includes_default
26242 #include <$ac_header>
26243 _ACEOF
26244 rm -f conftest.$ac_objext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26246 (eval $ac_compile) 2>conftest.er1
26247 ac_status=$?
26248 grep -v '^ *+' conftest.er1 >conftest.err
26249 rm -f conftest.er1
26250 cat conftest.err >&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
26253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 ac_header_compiler=yes
26266 else
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ac_header_compiler=no
26271 fi
26272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26274 echo "${ECHO_T}$ac_header_compiler" >&6
26275
26276 # Is the header present?
26277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h. */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 #include <$ac_header>
26286 _ACEOF
26287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26289 ac_status=$?
26290 grep -v '^ *+' conftest.er1 >conftest.err
26291 rm -f conftest.er1
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } >/dev/null; then
26295 if test -s conftest.err; then
26296 ac_cpp_err=$ac_c_preproc_warn_flag
26297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26298 else
26299 ac_cpp_err=
26300 fi
26301 else
26302 ac_cpp_err=yes
26303 fi
26304 if test -z "$ac_cpp_err"; then
26305 ac_header_preproc=yes
26306 else
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310 ac_header_preproc=no
26311 fi
26312 rm -f conftest.err conftest.$ac_ext
26313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26314 echo "${ECHO_T}$ac_header_preproc" >&6
26315
26316 # So? What about this header?
26317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26318 yes:no: )
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26323 ac_header_preproc=yes
26324 ;;
26325 no:yes:* )
26326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26338 (
26339 cat <<\_ASBOX
26340 ## ------------------------------------------ ##
26341 ## Report this to the AC_PACKAGE_NAME lists. ##
26342 ## ------------------------------------------ ##
26343 _ASBOX
26344 ) |
26345 sed "s/^/$as_me: WARNING: /" >&2
26346 ;;
26347 esac
26348 echo "$as_me:$LINENO: checking for $ac_header" >&5
26349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26351 echo $ECHO_N "(cached) $ECHO_C" >&6
26352 else
26353 eval "$as_ac_Header=\$ac_header_preproc"
26354 fi
26355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26357
26358 fi
26359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26360 cat >>confdefs.h <<_ACEOF
26361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26362 _ACEOF
26363
26364 fi
26365
26366 done
26367
26368
26369 for ac_header in libxml/parser.h
26370 do
26371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26373 echo "$as_me:$LINENO: checking for $ac_header" >&5
26374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377 fi
26378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26380 else
26381 # Is the header compilable?
26382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26384 cat >conftest.$ac_ext <<_ACEOF
26385 /* confdefs.h. */
26386 _ACEOF
26387 cat confdefs.h >>conftest.$ac_ext
26388 cat >>conftest.$ac_ext <<_ACEOF
26389 /* end confdefs.h. */
26390 $ac_includes_default
26391 #include <$ac_header>
26392 _ACEOF
26393 rm -f conftest.$ac_objext
26394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26395 (eval $ac_compile) 2>conftest.er1
26396 ac_status=$?
26397 grep -v '^ *+' conftest.er1 >conftest.err
26398 rm -f conftest.er1
26399 cat conftest.err >&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } &&
26402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; } &&
26408 { ac_try='test -s conftest.$ac_objext'
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; }; then
26414 ac_header_compiler=yes
26415 else
26416 echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26418
26419 ac_header_compiler=no
26420 fi
26421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26423 echo "${ECHO_T}$ac_header_compiler" >&6
26424
26425 # Is the header present?
26426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26428 cat >conftest.$ac_ext <<_ACEOF
26429 /* confdefs.h. */
26430 _ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26434 #include <$ac_header>
26435 _ACEOF
26436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26438 ac_status=$?
26439 grep -v '^ *+' conftest.er1 >conftest.err
26440 rm -f conftest.er1
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } >/dev/null; then
26444 if test -s conftest.err; then
26445 ac_cpp_err=$ac_c_preproc_warn_flag
26446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26447 else
26448 ac_cpp_err=
26449 fi
26450 else
26451 ac_cpp_err=yes
26452 fi
26453 if test -z "$ac_cpp_err"; then
26454 ac_header_preproc=yes
26455 else
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ac_header_preproc=no
26460 fi
26461 rm -f conftest.err conftest.$ac_ext
26462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26463 echo "${ECHO_T}$ac_header_preproc" >&6
26464
26465 # So? What about this header?
26466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26467 yes:no: )
26468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26472 ac_header_preproc=yes
26473 ;;
26474 no:yes:* )
26475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26487 (
26488 cat <<\_ASBOX
26489 ## ------------------------------------------ ##
26490 ## Report this to the AC_PACKAGE_NAME lists. ##
26491 ## ------------------------------------------ ##
26492 _ASBOX
26493 ) |
26494 sed "s/^/$as_me: WARNING: /" >&2
26495 ;;
26496 esac
26497 echo "$as_me:$LINENO: checking for $ac_header" >&5
26498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502 eval "$as_ac_Header=\$ac_header_preproc"
26503 fi
26504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26506
26507 fi
26508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26509 cat >>confdefs.h <<_ACEOF
26510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26511 _ACEOF
26512
26513 fi
26514
26515 done
26516
26517
26518 for ac_header in libxml/xinclude.h
26519 do
26520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26522 echo "$as_me:$LINENO: checking for $ac_header" >&5
26523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26526 fi
26527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26529 else
26530 # Is the header compilable?
26531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 $ac_includes_default
26540 #include <$ac_header>
26541 _ACEOF
26542 rm -f conftest.$ac_objext
26543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26544 (eval $ac_compile) 2>conftest.er1
26545 ac_status=$?
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
26551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest.$ac_objext'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 ac_header_compiler=yes
26564 else
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26567
26568 ac_header_compiler=no
26569 fi
26570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26572 echo "${ECHO_T}$ac_header_compiler" >&6
26573
26574 # Is the header present?
26575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h. */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 #include <$ac_header>
26584 _ACEOF
26585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26587 ac_status=$?
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } >/dev/null; then
26593 if test -s conftest.err; then
26594 ac_cpp_err=$ac_c_preproc_warn_flag
26595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26596 else
26597 ac_cpp_err=
26598 fi
26599 else
26600 ac_cpp_err=yes
26601 fi
26602 if test -z "$ac_cpp_err"; then
26603 ac_header_preproc=yes
26604 else
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608 ac_header_preproc=no
26609 fi
26610 rm -f conftest.err conftest.$ac_ext
26611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26612 echo "${ECHO_T}$ac_header_preproc" >&6
26613
26614 # So? What about this header?
26615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26616 yes:no: )
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26621 ac_header_preproc=yes
26622 ;;
26623 no:yes:* )
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26636 (
26637 cat <<\_ASBOX
26638 ## ------------------------------------------ ##
26639 ## Report this to the AC_PACKAGE_NAME lists. ##
26640 ## ------------------------------------------ ##
26641 _ASBOX
26642 ) |
26643 sed "s/^/$as_me: WARNING: /" >&2
26644 ;;
26645 esac
26646 echo "$as_me:$LINENO: checking for $ac_header" >&5
26647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651 eval "$as_ac_Header=\$ac_header_preproc"
26652 fi
26653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26655
26656 fi
26657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26658 cat >>confdefs.h <<_ACEOF
26659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26660 _ACEOF
26661
26662 fi
26663
26664 done
26665
26666
26667 ac_ext=cc
26668 ac_cpp='$CXXCPP $CPPFLAGS'
26669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26672
26673
26674
26675 for ac_header in FL/Fl.H
26676 do
26677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26679 echo "$as_me:$LINENO: checking for $ac_header" >&5
26680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 fi
26684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26686 else
26687 # Is the header compilable?
26688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26690 cat >conftest.$ac_ext <<_ACEOF
26691 /* confdefs.h. */
26692 _ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h. */
26696 $ac_includes_default
26697 #include <$ac_header>
26698 _ACEOF
26699 rm -f conftest.$ac_objext
26700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26701 (eval $ac_compile) 2>conftest.er1
26702 ac_status=$?
26703 grep -v '^ *+' conftest.er1 >conftest.err
26704 rm -f conftest.er1
26705 cat conftest.err >&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); } &&
26708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; } &&
26714 { ac_try='test -s conftest.$ac_objext'
26715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26716 (eval $ac_try) 2>&5
26717 ac_status=$?
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); }; }; then
26720 ac_header_compiler=yes
26721 else
26722 echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26724
26725 ac_header_compiler=no
26726 fi
26727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26729 echo "${ECHO_T}$ac_header_compiler" >&6
26730
26731 # Is the header present?
26732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26734 cat >conftest.$ac_ext <<_ACEOF
26735 /* confdefs.h. */
26736 _ACEOF
26737 cat confdefs.h >>conftest.$ac_ext
26738 cat >>conftest.$ac_ext <<_ACEOF
26739 /* end confdefs.h. */
26740 #include <$ac_header>
26741 _ACEOF
26742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26744 ac_status=$?
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } >/dev/null; then
26750 if test -s conftest.err; then
26751 ac_cpp_err=$ac_cxx_preproc_warn_flag
26752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26753 else
26754 ac_cpp_err=
26755 fi
26756 else
26757 ac_cpp_err=yes
26758 fi
26759 if test -z "$ac_cpp_err"; then
26760 ac_header_preproc=yes
26761 else
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26764
26765 ac_header_preproc=no
26766 fi
26767 rm -f conftest.err conftest.$ac_ext
26768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26769 echo "${ECHO_T}$ac_header_preproc" >&6
26770
26771 # So? What about this header?
26772 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26773 yes:no: )
26774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26778 ac_header_preproc=yes
26779 ;;
26780 no:yes:* )
26781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26793 (
26794 cat <<\_ASBOX
26795 ## ------------------------------------------ ##
26796 ## Report this to the AC_PACKAGE_NAME lists. ##
26797 ## ------------------------------------------ ##
26798 _ASBOX
26799 ) |
26800 sed "s/^/$as_me: WARNING: /" >&2
26801 ;;
26802 esac
26803 echo "$as_me:$LINENO: checking for $ac_header" >&5
26804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26806 echo $ECHO_N "(cached) $ECHO_C" >&6
26807 else
26808 eval "$as_ac_Header=\$ac_header_preproc"
26809 fi
26810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26812
26813 fi
26814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26815 cat >>confdefs.h <<_ACEOF
26816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26817 _ACEOF
26818
26819 fi
26820
26821 done
26822
26823
26824 for ac_header in FL/Fl_Overlay_Window.H
26825 do
26826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26828 echo "$as_me:$LINENO: checking for $ac_header" >&5
26829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831 echo $ECHO_N "(cached) $ECHO_C" >&6
26832 fi
26833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26835 else
26836 # Is the header compilable?
26837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26839 cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h. */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h. */
26845 $ac_includes_default
26846 #include <$ac_header>
26847 _ACEOF
26848 rm -f conftest.$ac_objext
26849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26850 (eval $ac_compile) 2>conftest.er1
26851 ac_status=$?
26852 grep -v '^ *+' conftest.er1 >conftest.err
26853 rm -f conftest.er1
26854 cat conftest.err >&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } &&
26857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; } &&
26863 { ac_try='test -s conftest.$ac_objext'
26864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865 (eval $ac_try) 2>&5
26866 ac_status=$?
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; }; then
26869 ac_header_compiler=yes
26870 else
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 ac_header_compiler=no
26875 fi
26876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26878 echo "${ECHO_T}$ac_header_compiler" >&6
26879
26880 # Is the header present?
26881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26883 cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h. */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26889 #include <$ac_header>
26890 _ACEOF
26891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26893 ac_status=$?
26894 grep -v '^ *+' conftest.er1 >conftest.err
26895 rm -f conftest.er1
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } >/dev/null; then
26899 if test -s conftest.err; then
26900 ac_cpp_err=$ac_cxx_preproc_warn_flag
26901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26902 else
26903 ac_cpp_err=
26904 fi
26905 else
26906 ac_cpp_err=yes
26907 fi
26908 if test -z "$ac_cpp_err"; then
26909 ac_header_preproc=yes
26910 else
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26913
26914 ac_header_preproc=no
26915 fi
26916 rm -f conftest.err conftest.$ac_ext
26917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26918 echo "${ECHO_T}$ac_header_preproc" >&6
26919
26920 # So? What about this header?
26921 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26922 yes:no: )
26923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26927 ac_header_preproc=yes
26928 ;;
26929 no:yes:* )
26930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26942 (
26943 cat <<\_ASBOX
26944 ## ------------------------------------------ ##
26945 ## Report this to the AC_PACKAGE_NAME lists. ##
26946 ## ------------------------------------------ ##
26947 _ASBOX
26948 ) |
26949 sed "s/^/$as_me: WARNING: /" >&2
26950 ;;
26951 esac
26952 echo "$as_me:$LINENO: checking for $ac_header" >&5
26953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26955 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 else
26957 eval "$as_ac_Header=\$ac_header_preproc"
26958 fi
26959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26961
26962 fi
26963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26964 cat >>confdefs.h <<_ACEOF
26965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26966 _ACEOF
26967
26968 fi
26969
26970 done
26971
26972
26973 for ac_header in FL/Fl_Light_Button.H
26974 do
26975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26977 echo "$as_me:$LINENO: checking for $ac_header" >&5
26978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26980 echo $ECHO_N "(cached) $ECHO_C" >&6
26981 fi
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26984 else
26985 # Is the header compilable?
26986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h. */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 $ac_includes_default
26995 #include <$ac_header>
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999 (eval $ac_compile) 2>conftest.er1
27000 ac_status=$?
27001 grep -v '^ *+' conftest.er1 >conftest.err
27002 rm -f conftest.er1
27003 cat conftest.err >&5
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); } &&
27006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; } &&
27012 { ac_try='test -s conftest.$ac_objext'
27013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014 (eval $ac_try) 2>&5
27015 ac_status=$?
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); }; }; then
27018 ac_header_compiler=yes
27019 else
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023 ac_header_compiler=no
27024 fi
27025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27027 echo "${ECHO_T}$ac_header_compiler" >&6
27028
27029 # Is the header present?
27030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27032 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038 #include <$ac_header>
27039 _ACEOF
27040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27042 ac_status=$?
27043 grep -v '^ *+' conftest.er1 >conftest.err
27044 rm -f conftest.er1
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } >/dev/null; then
27048 if test -s conftest.err; then
27049 ac_cpp_err=$ac_cxx_preproc_warn_flag
27050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27051 else
27052 ac_cpp_err=
27053 fi
27054 else
27055 ac_cpp_err=yes
27056 fi
27057 if test -z "$ac_cpp_err"; then
27058 ac_header_preproc=yes
27059 else
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063 ac_header_preproc=no
27064 fi
27065 rm -f conftest.err conftest.$ac_ext
27066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27067 echo "${ECHO_T}$ac_header_preproc" >&6
27068
27069 # So? What about this header?
27070 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27071 yes:no: )
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27076 ac_header_preproc=yes
27077 ;;
27078 no:yes:* )
27079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27091 (
27092 cat <<\_ASBOX
27093 ## ------------------------------------------ ##
27094 ## Report this to the AC_PACKAGE_NAME lists. ##
27095 ## ------------------------------------------ ##
27096 _ASBOX
27097 ) |
27098 sed "s/^/$as_me: WARNING: /" >&2
27099 ;;
27100 esac
27101 echo "$as_me:$LINENO: checking for $ac_header" >&5
27102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27105 else
27106 eval "$as_ac_Header=\$ac_header_preproc"
27107 fi
27108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27110
27111 fi
27112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27113 cat >>confdefs.h <<_ACEOF
27114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27115 _ACEOF
27116
27117 fi
27118
27119 done
27120
27121
27122 for ac_header in FL/fl_draw.H
27123 do
27124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27126 echo "$as_me:$LINENO: checking for $ac_header" >&5
27127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27129 echo $ECHO_N "(cached) $ECHO_C" >&6
27130 fi
27131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27133 else
27134 # Is the header compilable?
27135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27137 cat >conftest.$ac_ext <<_ACEOF
27138 /* confdefs.h. */
27139 _ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h. */
27143 $ac_includes_default
27144 #include <$ac_header>
27145 _ACEOF
27146 rm -f conftest.$ac_objext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27148 (eval $ac_compile) 2>conftest.er1
27149 ac_status=$?
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; } &&
27161 { ac_try='test -s conftest.$ac_objext'
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; }; then
27167 ac_header_compiler=yes
27168 else
27169 echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172 ac_header_compiler=no
27173 fi
27174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27176 echo "${ECHO_T}$ac_header_compiler" >&6
27177
27178 # Is the header present?
27179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27181 cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h. */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 #include <$ac_header>
27188 _ACEOF
27189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } >/dev/null; then
27197 if test -s conftest.err; then
27198 ac_cpp_err=$ac_cxx_preproc_warn_flag
27199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27200 else
27201 ac_cpp_err=
27202 fi
27203 else
27204 ac_cpp_err=yes
27205 fi
27206 if test -z "$ac_cpp_err"; then
27207 ac_header_preproc=yes
27208 else
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212 ac_header_preproc=no
27213 fi
27214 rm -f conftest.err conftest.$ac_ext
27215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27216 echo "${ECHO_T}$ac_header_preproc" >&6
27217
27218 # So? What about this header?
27219 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27220 yes:no: )
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27225 ac_header_preproc=yes
27226 ;;
27227 no:yes:* )
27228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27240 (
27241 cat <<\_ASBOX
27242 ## ------------------------------------------ ##
27243 ## Report this to the AC_PACKAGE_NAME lists. ##
27244 ## ------------------------------------------ ##
27245 _ASBOX
27246 ) |
27247 sed "s/^/$as_me: WARNING: /" >&2
27248 ;;
27249 esac
27250 echo "$as_me:$LINENO: checking for $ac_header" >&5
27251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27254 else
27255 eval "$as_ac_Header=\$ac_header_preproc"
27256 fi
27257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27259
27260 fi
27261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27262 cat >>confdefs.h <<_ACEOF
27263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27264 _ACEOF
27265
27266 fi
27267
27268 done
27269
27270
27271 for ac_header in FL/Fl_Cartesian.H
27272 do
27273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27275 echo "$as_me:$LINENO: checking for $ac_header" >&5
27276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27278 echo $ECHO_N "(cached) $ECHO_C" >&6
27279 fi
27280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27282 else
27283 # Is the header compilable?
27284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27286 cat >conftest.$ac_ext <<_ACEOF
27287 /* confdefs.h. */
27288 _ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27292 $ac_includes_default
27293 #include <$ac_header>
27294 _ACEOF
27295 rm -f conftest.$ac_objext
27296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27297 (eval $ac_compile) 2>conftest.er1
27298 ac_status=$?
27299 grep -v '^ *+' conftest.er1 >conftest.err
27300 rm -f conftest.er1
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest.$ac_objext'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 ac_header_compiler=yes
27317 else
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321 ac_header_compiler=no
27322 fi
27323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27325 echo "${ECHO_T}$ac_header_compiler" >&6
27326
27327 # Is the header present?
27328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27330 cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h. */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h. */
27336 #include <$ac_header>
27337 _ACEOF
27338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27340 ac_status=$?
27341 grep -v '^ *+' conftest.er1 >conftest.err
27342 rm -f conftest.er1
27343 cat conftest.err >&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } >/dev/null; then
27346 if test -s conftest.err; then
27347 ac_cpp_err=$ac_cxx_preproc_warn_flag
27348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27349 else
27350 ac_cpp_err=
27351 fi
27352 else
27353 ac_cpp_err=yes
27354 fi
27355 if test -z "$ac_cpp_err"; then
27356 ac_header_preproc=yes
27357 else
27358 echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27360
27361 ac_header_preproc=no
27362 fi
27363 rm -f conftest.err conftest.$ac_ext
27364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27365 echo "${ECHO_T}$ac_header_preproc" >&6
27366
27367 # So? What about this header?
27368 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27369 yes:no: )
27370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27374 ac_header_preproc=yes
27375 ;;
27376 no:yes:* )
27377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27389 (
27390 cat <<\_ASBOX
27391 ## ------------------------------------------ ##
27392 ## Report this to the AC_PACKAGE_NAME lists. ##
27393 ## ------------------------------------------ ##
27394 _ASBOX
27395 ) |
27396 sed "s/^/$as_me: WARNING: /" >&2
27397 ;;
27398 esac
27399 echo "$as_me:$LINENO: checking for $ac_header" >&5
27400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27403 else
27404 eval "$as_ac_Header=\$ac_header_preproc"
27405 fi
27406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27408
27409 fi
27410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27411 cat >>confdefs.h <<_ACEOF
27412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27413 _ACEOF
27414
27415 fi
27416
27417 done
27418
27419
27420 for ac_header in FL/Fl_Audio_Meter.H
27421 do
27422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27424 echo "$as_me:$LINENO: checking for $ac_header" >&5
27425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27428 fi
27429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27431 else
27432 # Is the header compilable?
27433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h. */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 $ac_includes_default
27442 #include <$ac_header>
27443 _ACEOF
27444 rm -f conftest.$ac_objext
27445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27446 (eval $ac_compile) 2>conftest.er1
27447 ac_status=$?
27448 grep -v '^ *+' conftest.er1 >conftest.err
27449 rm -f conftest.er1
27450 cat conftest.err >&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); } &&
27453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27455 (eval $ac_try) 2>&5
27456 ac_status=$?
27457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); }; } &&
27459 { ac_try='test -s conftest.$ac_objext'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 ac_header_compiler=yes
27466 else
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27469
27470 ac_header_compiler=no
27471 fi
27472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27474 echo "${ECHO_T}$ac_header_compiler" >&6
27475
27476 # Is the header present?
27477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27479 cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h. */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27485 #include <$ac_header>
27486 _ACEOF
27487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27489 ac_status=$?
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } >/dev/null; then
27495 if test -s conftest.err; then
27496 ac_cpp_err=$ac_cxx_preproc_warn_flag
27497 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27498 else
27499 ac_cpp_err=
27500 fi
27501 else
27502 ac_cpp_err=yes
27503 fi
27504 if test -z "$ac_cpp_err"; then
27505 ac_header_preproc=yes
27506 else
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510 ac_header_preproc=no
27511 fi
27512 rm -f conftest.err conftest.$ac_ext
27513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27514 echo "${ECHO_T}$ac_header_preproc" >&6
27515
27516 # So? What about this header?
27517 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27518 yes:no: )
27519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27523 ac_header_preproc=yes
27524 ;;
27525 no:yes:* )
27526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27538 (
27539 cat <<\_ASBOX
27540 ## ------------------------------------------ ##
27541 ## Report this to the AC_PACKAGE_NAME lists. ##
27542 ## ------------------------------------------ ##
27543 _ASBOX
27544 ) |
27545 sed "s/^/$as_me: WARNING: /" >&2
27546 ;;
27547 esac
27548 echo "$as_me:$LINENO: checking for $ac_header" >&5
27549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553 eval "$as_ac_Header=\$ac_header_preproc"
27554 fi
27555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27557
27558 fi
27559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27560 cat >>confdefs.h <<_ACEOF
27561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27562 _ACEOF
27563
27564 fi
27565
27566 done
27567
27568
27569 ac_ext=c
27570 ac_cpp='$CPP $CPPFLAGS'
27571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27574
27575 # X86_64 Linux machines have both 64 bit and 32 bit libraries. We need to choose the right set
27576 echo "$as_me:$LINENO: checking for /usr/X11R6/lib64" >&5
27577 echo $ECHO_N "checking for /usr/X11R6/lib64... $ECHO_C" >&6
27578 if test "${ac_cv_file__usr_X11R6_lib64+set}" = set; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27580 else
27581 test "$cross_compiling" = yes &&
27582 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27583 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27584 { (exit 1); exit 1; }; }
27585 if test -r "/usr/X11R6/lib64"; then
27586 ac_cv_file__usr_X11R6_lib64=yes
27587 else
27588 ac_cv_file__usr_X11R6_lib64=no
27589 fi
27590 fi
27591 echo "$as_me:$LINENO: result: $ac_cv_file__usr_X11R6_lib64" >&5
27592 echo "${ECHO_T}$ac_cv_file__usr_X11R6_lib64" >&6
27593 if test $ac_cv_file__usr_X11R6_lib64 = yes; then
27594 TESTLIBS="$TESTLIBS -L/usr/X11R6/lib64"
27595 else
27596 echo "$as_me:$LINENO: checking for /usr/X11R6/lib" >&5
27597 echo $ECHO_N "checking for /usr/X11R6/lib... $ECHO_C" >&6
27598 if test "${ac_cv_file__usr_X11R6_lib+set}" = set; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 else
27601 test "$cross_compiling" = yes &&
27602 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27603 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27604 { (exit 1); exit 1; }; }
27605 if test -r "/usr/X11R6/lib"; then
27606 ac_cv_file__usr_X11R6_lib=yes
27607 else
27608 ac_cv_file__usr_X11R6_lib=no
27609 fi
27610 fi
27611 echo "$as_me:$LINENO: result: $ac_cv_file__usr_X11R6_lib" >&5
27612 echo "${ECHO_T}$ac_cv_file__usr_X11R6_lib" >&6
27613 if test $ac_cv_file__usr_X11R6_lib = yes; then
27614 TESTLIBS="$TESTLIBS -L/usr/X11R6/lib"
27615 fi
27616
27617 fi
27618
27619
27620 # Checks for libraries.
27621 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
27622 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
27623 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626 ac_check_lib_save_LIBS=$LIBS
27627 LIBS="-lXft $TESTLIBS $LIBS"
27628 cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h. */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634
27635 /* Override any gcc2 internal prototype to avoid an error. */
27636 #ifdef __cplusplus
27637 extern "C"
27638 #endif
27639 /* We use char because int might match the return type of a gcc2
27640 builtin and then its argument prototype would still apply. */
27641 char XftFontOpen ();
27642 int
27643 main ()
27644 {
27645 XftFontOpen ();
27646 ;
27647 return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27652 (eval $ac_link) 2>conftest.er1
27653 ac_status=$?
27654 grep -v '^ *+' conftest.er1 >conftest.err
27655 rm -f conftest.er1
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; } &&
27665 { ac_try='test -s conftest$ac_exeext'
27666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667 (eval $ac_try) 2>&5
27668 ac_status=$?
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ac_cv_lib_Xft_XftFontOpen=yes
27672 else
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27675
27676 ac_cv_lib_Xft_XftFontOpen=no
27677 fi
27678 rm -f conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
27680 LIBS=$ac_check_lib_save_LIBS
27681 fi
27682 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
27683 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
27684 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
27685 TESTLIBS="$TESTLIBS -lXft"
27686 fi
27687
27688 echo "$as_me:$LINENO: checking for XextCreateExtension in -lXext" >&5
27689 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
27690 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692 else
27693 ac_check_lib_save_LIBS=$LIBS
27694 LIBS="-lXext $TESTLIBS $LIBS"
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701
27702 /* Override any gcc2 internal prototype to avoid an error. */
27703 #ifdef __cplusplus
27704 extern "C"
27705 #endif
27706 /* We use char because int might match the return type of a gcc2
27707 builtin and then its argument prototype would still apply. */
27708 char XextCreateExtension ();
27709 int
27710 main ()
27711 {
27712 XextCreateExtension ();
27713 ;
27714 return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27719 (eval $ac_link) 2>conftest.er1
27720 ac_status=$?
27721 grep -v '^ *+' conftest.er1 >conftest.err
27722 rm -f conftest.er1
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
27726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; } &&
27732 { ac_try='test -s conftest$ac_exeext'
27733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_cv_lib_Xext_XextCreateExtension=yes
27739 else
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743 ac_cv_lib_Xext_XextCreateExtension=no
27744 fi
27745 rm -f conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
27747 LIBS=$ac_check_lib_save_LIBS
27748 fi
27749 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
27750 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
27751 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
27752 TESTLIBS="$TESTLIBS -lXext"
27753 fi
27754
27755 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
27756 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
27757 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 else
27760 ac_check_lib_save_LIBS=$LIBS
27761 LIBS="-lX11 $TESTLIBS $LIBS"
27762 cat >conftest.$ac_ext <<_ACEOF
27763 /* confdefs.h. */
27764 _ACEOF
27765 cat confdefs.h >>conftest.$ac_ext
27766 cat >>conftest.$ac_ext <<_ACEOF
27767 /* end confdefs.h. */
27768
27769 /* Override any gcc2 internal prototype to avoid an error. */
27770 #ifdef __cplusplus
27771 extern "C"
27772 #endif
27773 /* We use char because int might match the return type of a gcc2
27774 builtin and then its argument prototype would still apply. */
27775 char XOpenDisplay ();
27776 int
27777 main ()
27778 {
27779 XOpenDisplay ();
27780 ;
27781 return 0;
27782 }
27783 _ACEOF
27784 rm -f conftest.$ac_objext conftest$ac_exeext
27785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27786 (eval $ac_link) 2>conftest.er1
27787 ac_status=$?
27788 grep -v '^ *+' conftest.er1 >conftest.err
27789 rm -f conftest.er1
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } &&
27793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; } &&
27799 { ac_try='test -s conftest$ac_exeext'
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27802 ac_status=$?
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; }; then
27805 ac_cv_lib_X11_XOpenDisplay=yes
27806 else
27807 echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27809
27810 ac_cv_lib_X11_XOpenDisplay=no
27811 fi
27812 rm -f conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
27814 LIBS=$ac_check_lib_save_LIBS
27815 fi
27816 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
27817 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
27818 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
27819 TESTLIBS="$TESTLIBS -lX11"
27820 fi
27821
27822
27823 echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
27824 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
27825 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 ac_check_lib_save_LIBS=$LIBS
27829 LIBS="-ltiff -lm $LIBS"
27830 cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h. */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h. */
27836
27837 /* Override any gcc2 internal prototype to avoid an error. */
27838 #ifdef __cplusplus
27839 extern "C"
27840 #endif
27841 /* We use char because int might match the return type of a gcc2
27842 builtin and then its argument prototype would still apply. */
27843 char TIFFOpen ();
27844 int
27845 main ()
27846 {
27847 TIFFOpen ();
27848 ;
27849 return 0;
27850 }
27851 _ACEOF
27852 rm -f conftest.$ac_objext conftest$ac_exeext
27853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27854 (eval $ac_link) 2>conftest.er1
27855 ac_status=$?
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } &&
27861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest$ac_exeext'
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ac_cv_lib_tiff_TIFFOpen=yes
27874 else
27875 echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27877
27878 ac_cv_lib_tiff_TIFFOpen=no
27879 fi
27880 rm -f conftest.err conftest.$ac_objext \
27881 conftest$ac_exeext conftest.$ac_ext
27882 LIBS=$ac_check_lib_save_LIBS
27883 fi
27884 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
27885 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
27886 if test $ac_cv_lib_tiff_TIFFOpen = yes; then
27887 cat >>confdefs.h <<_ACEOF
27888 #define HAVE_LIBTIFF 1
27889 _ACEOF
27890
27891 LIBS="-ltiff $LIBS"
27892
27893 else
27894 { { echo "$as_me:$LINENO: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&5
27895 echo "$as_me: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&2;}
27896 { (exit 1); exit 1; }; }
27897 fi
27898
27899
27900 echo "$as_me:$LINENO: checking for cos in -lm" >&5
27901 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
27902 if test "${ac_cv_lib_m_cos+set}" = set; then
27903 echo $ECHO_N "(cached) $ECHO_C" >&6
27904 else
27905 ac_check_lib_save_LIBS=$LIBS
27906 LIBS="-lm $LIBS"
27907 cat >conftest.$ac_ext <<_ACEOF
27908 /* confdefs.h. */
27909 _ACEOF
27910 cat confdefs.h >>conftest.$ac_ext
27911 cat >>conftest.$ac_ext <<_ACEOF
27912 /* end confdefs.h. */
27913
27914 /* Override any gcc2 internal prototype to avoid an error. */
27915 #ifdef __cplusplus
27916 extern "C"
27917 #endif
27918 /* We use char because int might match the return type of a gcc2
27919 builtin and then its argument prototype would still apply. */
27920 char cos ();
27921 int
27922 main ()
27923 {
27924 cos ();
27925 ;
27926 return 0;
27927 }
27928 _ACEOF
27929 rm -f conftest.$ac_objext conftest$ac_exeext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931 (eval $ac_link) 2>conftest.er1
27932 ac_status=$?
27933 grep -v '^ *+' conftest.er1 >conftest.err
27934 rm -f conftest.er1
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } &&
27938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27940 (eval $ac_try) 2>&5
27941 ac_status=$?
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); }; } &&
27944 { ac_try='test -s conftest$ac_exeext'
27945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); }; }; then
27950 ac_cv_lib_m_cos=yes
27951 else
27952 echo "$as_me: failed program was:" >&5
27953 sed 's/^/| /' conftest.$ac_ext >&5
27954
27955 ac_cv_lib_m_cos=no
27956 fi
27957 rm -f conftest.err conftest.$ac_objext \
27958 conftest$ac_exeext conftest.$ac_ext
27959 LIBS=$ac_check_lib_save_LIBS
27960 fi
27961 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
27962 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
27963 if test $ac_cv_lib_m_cos = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965 #define HAVE_LIBM 1
27966 _ACEOF
27967
27968 LIBS="-lm $LIBS"
27969
27970 fi
27971
27972 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
27973 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
27974 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976 else
27977 ac_check_lib_save_LIBS=$LIBS
27978 LIBS="-lxml2 $LIBS"
27979 cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h. */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h. */
27985
27986 /* Override any gcc2 internal prototype to avoid an error. */
27987 #ifdef __cplusplus
27988 extern "C"
27989 #endif
27990 /* We use char because int might match the return type of a gcc2
27991 builtin and then its argument prototype would still apply. */
27992 char xmlParseFile ();
27993 int
27994 main ()
27995 {
27996 xmlParseFile ();
27997 ;
27998 return 0;
27999 }
28000 _ACEOF
28001 rm -f conftest.$ac_objext conftest$ac_exeext
28002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28003 (eval $ac_link) 2>conftest.er1
28004 ac_status=$?
28005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; } &&
28016 { ac_try='test -s conftest$ac_exeext'
28017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018 (eval $ac_try) 2>&5
28019 ac_status=$?
28020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021 (exit $ac_status); }; }; then
28022 ac_cv_lib_xml2_xmlParseFile=yes
28023 else
28024 echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027 ac_cv_lib_xml2_xmlParseFile=no
28028 fi
28029 rm -f conftest.err conftest.$ac_objext \
28030 conftest$ac_exeext conftest.$ac_ext
28031 LIBS=$ac_check_lib_save_LIBS
28032 fi
28033 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
28034 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
28035 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
28036
28037 cat >>confdefs.h <<\_ACEOF
28038 #define HAVE_LIBXML2 1
28039 _ACEOF
28040 TESTLIBS="$TESTLIBS -lxml2"
28041 fi
28042
28043 if test -n "$enable_tests" ; then
28044 ac_ext=cc
28045 ac_cpp='$CXXCPP $CPPFLAGS'
28046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28049
28050 echo "$as_me:$LINENO: checking for main in -lfltk" >&5
28051 echo $ECHO_N "checking for main in -lfltk... $ECHO_C" >&6
28052 if test "${ac_cv_lib_fltk_main+set}" = set; then
28053 echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055 ac_check_lib_save_LIBS=$LIBS
28056 LIBS="-lfltk $LIBS"
28057 cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h. */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063
28064
28065 int
28066 main ()
28067 {
28068 main ();
28069 ;
28070 return 0;
28071 }
28072 _ACEOF
28073 rm -f conftest.$ac_objext conftest$ac_exeext
28074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28075 (eval $ac_link) 2>conftest.er1
28076 ac_status=$?
28077 grep -v '^ *+' conftest.er1 >conftest.err
28078 rm -f conftest.er1
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } &&
28082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest$ac_exeext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_lib_fltk_main=yes
28095 else
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099 ac_cv_lib_fltk_main=no
28100 fi
28101 rm -f conftest.err conftest.$ac_objext \
28102 conftest$ac_exeext conftest.$ac_ext
28103 LIBS=$ac_check_lib_save_LIBS
28104 fi
28105 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_main" >&5
28106 echo "${ECHO_T}$ac_cv_lib_fltk_main" >&6
28107 if test $ac_cv_lib_fltk_main = yes; then
28108 TESTLIBS="$TESTLIBS -lfltk -lsupc++"
28109 fi
28110
28111 echo "$as_me:$LINENO: checking for main in -lfltk_cartesian" >&5
28112 echo $ECHO_N "checking for main in -lfltk_cartesian... $ECHO_C" >&6
28113 if test "${ac_cv_lib_fltk_cartesian_main+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116 ac_check_lib_save_LIBS=$LIBS
28117 LIBS="-lfltk_cartesian $LIBS"
28118 cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h. */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28124
28125
28126 int
28127 main ()
28128 {
28129 main ();
28130 ;
28131 return 0;
28132 }
28133 _ACEOF
28134 rm -f conftest.$ac_objext conftest$ac_exeext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28136 (eval $ac_link) 2>conftest.er1
28137 ac_status=$?
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
28143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; } &&
28149 { ac_try='test -s conftest$ac_exeext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 ac_cv_lib_fltk_cartesian_main=yes
28156 else
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160 ac_cv_lib_fltk_cartesian_main=no
28161 fi
28162 rm -f conftest.err conftest.$ac_objext \
28163 conftest$ac_exeext conftest.$ac_ext
28164 LIBS=$ac_check_lib_save_LIBS
28165 fi
28166 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_cartesian_main" >&5
28167 echo "${ECHO_T}$ac_cv_lib_fltk_cartesian_main" >&6
28168 if test $ac_cv_lib_fltk_cartesian_main = yes; then
28169 TESTLIBS="-lfltk_cartesian $TESTLIBS"
28170 fi
28171
28172 echo "$as_me:$LINENO: checking for main in -lfltk_audio_meter" >&5
28173 echo $ECHO_N "checking for main in -lfltk_audio_meter... $ECHO_C" >&6
28174 if test "${ac_cv_lib_fltk_audio_meter_main+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177 ac_check_lib_save_LIBS=$LIBS
28178 LIBS="-lfltk_audio_meter $LIBS"
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h. */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185
28186
28187 int
28188 main ()
28189 {
28190 main ();
28191 ;
28192 return 0;
28193 }
28194 _ACEOF
28195 rm -f conftest.$ac_objext conftest$ac_exeext
28196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28197 (eval $ac_link) 2>conftest.er1
28198 ac_status=$?
28199 grep -v '^ *+' conftest.er1 >conftest.err
28200 rm -f conftest.er1
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
28204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest$ac_exeext'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_lib_fltk_audio_meter_main=yes
28217 else
28218 echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.$ac_ext >&5
28220
28221 ac_cv_lib_fltk_audio_meter_main=no
28222 fi
28223 rm -f conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225 LIBS=$ac_check_lib_save_LIBS
28226 fi
28227 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_audio_meter_main" >&5
28228 echo "${ECHO_T}$ac_cv_lib_fltk_audio_meter_main" >&6
28229 if test $ac_cv_lib_fltk_audio_meter_main = yes; then
28230 TESTLIBS="-lfltk_audio_meter $TESTLIBS"
28231 fi
28232
28233 ac_ext=c
28234 ac_cpp='$CPP $CPPFLAGS'
28235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28238
28239 echo "$as_me:$LINENO: checking for afOpenFile in -laudiofile" >&5
28240 echo $ECHO_N "checking for afOpenFile in -laudiofile... $ECHO_C" >&6
28241 if test "${ac_cv_lib_audiofile_afOpenFile+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 else
28244 ac_check_lib_save_LIBS=$LIBS
28245 LIBS="-laudiofile $LIBS"
28246 cat >conftest.$ac_ext <<_ACEOF
28247 /* confdefs.h. */
28248 _ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252
28253 /* Override any gcc2 internal prototype to avoid an error. */
28254 #ifdef __cplusplus
28255 extern "C"
28256 #endif
28257 /* We use char because int might match the return type of a gcc2
28258 builtin and then its argument prototype would still apply. */
28259 char afOpenFile ();
28260 int
28261 main ()
28262 {
28263 afOpenFile ();
28264 ;
28265 return 0;
28266 }
28267 _ACEOF
28268 rm -f conftest.$ac_objext conftest$ac_exeext
28269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28270 (eval $ac_link) 2>conftest.er1
28271 ac_status=$?
28272 grep -v '^ *+' conftest.er1 >conftest.err
28273 rm -f conftest.er1
28274 cat conftest.err >&5
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
28277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
28283 { ac_try='test -s conftest$ac_exeext'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; }; then
28289 ac_cv_lib_audiofile_afOpenFile=yes
28290 else
28291 echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294 ac_cv_lib_audiofile_afOpenFile=no
28295 fi
28296 rm -f conftest.err conftest.$ac_objext \
28297 conftest$ac_exeext conftest.$ac_ext
28298 LIBS=$ac_check_lib_save_LIBS
28299 fi
28300 echo "$as_me:$LINENO: result: $ac_cv_lib_audiofile_afOpenFile" >&5
28301 echo "${ECHO_T}$ac_cv_lib_audiofile_afOpenFile" >&6
28302 if test $ac_cv_lib_audiofile_afOpenFile = yes; then
28303 TESTLIBS="$TESTLIBS -laudiofile"
28304 else
28305 { { echo "$as_me:$LINENO: error: \"Can't make tests without libaudiofile (does your system require a libaudiofile-devel package?)\"" >&5
28306 echo "$as_me: error: \"Can't make tests without libaudiofile (does your system require a libaudiofile-devel package?)\"" >&2;}
28307 { (exit 1); exit 1; }; }
28308 fi
28309
28310 echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
28311 echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6
28312 if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 else
28315 ac_check_lib_save_LIBS=$LIBS
28316 LIBS="-lfftw3 $LIBS"
28317 cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h. */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28323
28324 /* Override any gcc2 internal prototype to avoid an error. */
28325 #ifdef __cplusplus
28326 extern "C"
28327 #endif
28328 /* We use char because int might match the return type of a gcc2
28329 builtin and then its argument prototype would still apply. */
28330 char fftw_plan_dft_1d ();
28331 int
28332 main ()
28333 {
28334 fftw_plan_dft_1d ();
28335 ;
28336 return 0;
28337 }
28338 _ACEOF
28339 rm -f conftest.$ac_objext conftest$ac_exeext
28340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28341 (eval $ac_link) 2>conftest.er1
28342 ac_status=$?
28343 grep -v '^ *+' conftest.er1 >conftest.err
28344 rm -f conftest.er1
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; } &&
28354 { ac_try='test -s conftest$ac_exeext'
28355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356 (eval $ac_try) 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); }; }; then
28360 ac_cv_lib_fftw3_fftw_plan_dft_1d=yes
28361 else
28362 echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28364
28365 ac_cv_lib_fftw3_fftw_plan_dft_1d=no
28366 fi
28367 rm -f conftest.err conftest.$ac_objext \
28368 conftest$ac_exeext conftest.$ac_ext
28369 LIBS=$ac_check_lib_save_LIBS
28370 fi
28371 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5
28372 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6
28373 if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then
28374 TESTLIBS="$TESTLIBS -lfftw3"
28375 fi
28376
28377 echo "$as_me:$LINENO: checking for fftw_create_plan in -lfftw" >&5
28378 echo $ECHO_N "checking for fftw_create_plan in -lfftw... $ECHO_C" >&6
28379 if test "${ac_cv_lib_fftw_fftw_create_plan+set}" = set; then
28380 echo $ECHO_N "(cached) $ECHO_C" >&6
28381 else
28382 ac_check_lib_save_LIBS=$LIBS
28383 LIBS="-lfftw $LIBS"
28384 cat >conftest.$ac_ext <<_ACEOF
28385 /* confdefs.h. */
28386 _ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h. */
28390
28391 /* Override any gcc2 internal prototype to avoid an error. */
28392 #ifdef __cplusplus
28393 extern "C"
28394 #endif
28395 /* We use char because int might match the return type of a gcc2
28396 builtin and then its argument prototype would still apply. */
28397 char fftw_create_plan ();
28398 int
28399 main ()
28400 {
28401 fftw_create_plan ();
28402 ;
28403 return 0;
28404 }
28405 _ACEOF
28406 rm -f conftest.$ac_objext conftest$ac_exeext
28407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28408 (eval $ac_link) 2>conftest.er1
28409 ac_status=$?
28410 grep -v '^ *+' conftest.er1 >conftest.err
28411 rm -f conftest.er1
28412 cat conftest.err >&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); } &&
28415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest$ac_exeext'
28422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; }; then
28427 ac_cv_lib_fftw_fftw_create_plan=yes
28428 else
28429 echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432 ac_cv_lib_fftw_fftw_create_plan=no
28433 fi
28434 rm -f conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
28436 LIBS=$ac_check_lib_save_LIBS
28437 fi
28438 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_create_plan" >&5
28439 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_create_plan" >&6
28440 if test $ac_cv_lib_fftw_fftw_create_plan = yes; then
28441 TESTLIBS="$TESTLIBS -lfftw"
28442 fi
28443
28444 echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
28445 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
28446 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449 ac_check_lib_save_LIBS=$LIBS
28450 LIBS="-lpthread $LIBS"
28451 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h. */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457
28458 /* Override any gcc2 internal prototype to avoid an error. */
28459 #ifdef __cplusplus
28460 extern "C"
28461 #endif
28462 /* We use char because int might match the return type of a gcc2
28463 builtin and then its argument prototype would still apply. */
28464 char pthread_attr_init ();
28465 int
28466 main ()
28467 {
28468 pthread_attr_init ();
28469 ;
28470 return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext conftest$ac_exeext
28474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28475 (eval $ac_link) 2>conftest.er1
28476 ac_status=$?
28477 grep -v '^ *+' conftest.er1 >conftest.err
28478 rm -f conftest.er1
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } &&
28482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484 (eval $ac_try) 2>&5
28485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; } &&
28488 { ac_try='test -s conftest$ac_exeext'
28489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28490 (eval $ac_try) 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; }; then
28494 ac_cv_lib_pthread_pthread_attr_init=yes
28495 else
28496 echo "$as_me: failed program was:" >&5
28497 sed 's/^/| /' conftest.$ac_ext >&5
28498
28499 ac_cv_lib_pthread_pthread_attr_init=no
28500 fi
28501 rm -f conftest.err conftest.$ac_objext \
28502 conftest$ac_exeext conftest.$ac_ext
28503 LIBS=$ac_check_lib_save_LIBS
28504 fi
28505 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
28506 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
28507 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
28508 TESTLIBS="$TESTLIBS -lpthread"
28509 fi
28510
28511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28515 else
28516 ac_check_lib_save_LIBS=$LIBS
28517 LIBS="-ldl $LIBS"
28518 cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h. */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524
28525 /* Override any gcc2 internal prototype to avoid an error. */
28526 #ifdef __cplusplus
28527 extern "C"
28528 #endif
28529 /* We use char because int might match the return type of a gcc2
28530 builtin and then its argument prototype would still apply. */
28531 char dlopen ();
28532 int
28533 main ()
28534 {
28535 dlopen ();
28536 ;
28537 return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest.$ac_objext conftest$ac_exeext
28541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28542 (eval $ac_link) 2>conftest.er1
28543 ac_status=$?
28544 grep -v '^ *+' conftest.er1 >conftest.err
28545 rm -f conftest.er1
28546 cat conftest.err >&5
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); } &&
28549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest$ac_exeext'
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
28561 ac_cv_lib_dl_dlopen=yes
28562 else
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ac_cv_lib_dl_dlopen=no
28567 fi
28568 rm -f conftest.err conftest.$ac_objext \
28569 conftest$ac_exeext conftest.$ac_ext
28570 LIBS=$ac_check_lib_save_LIBS
28571 fi
28572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
28574 if test $ac_cv_lib_dl_dlopen = yes; then
28575 TESTLIBS="$TESTLIBS -ldl"
28576 fi
28577
28578 echo "$as_me:$LINENO: checking for uc_start in -lunicall" >&5
28579 echo $ECHO_N "checking for uc_start in -lunicall... $ECHO_C" >&6
28580 if test "${ac_cv_lib_unicall_uc_start+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583 ac_check_lib_save_LIBS=$LIBS
28584 LIBS="-lunicall -ltiff -ldl $LIBS"
28585 cat >conftest.$ac_ext <<_ACEOF
28586 /* confdefs.h. */
28587 _ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591
28592 /* Override any gcc2 internal prototype to avoid an error. */
28593 #ifdef __cplusplus
28594 extern "C"
28595 #endif
28596 /* We use char because int might match the return type of a gcc2
28597 builtin and then its argument prototype would still apply. */
28598 char uc_start ();
28599 int
28600 main ()
28601 {
28602 uc_start ();
28603 ;
28604 return 0;
28605 }
28606 _ACEOF
28607 rm -f conftest.$ac_objext conftest$ac_exeext
28608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28609 (eval $ac_link) 2>conftest.er1
28610 ac_status=$?
28611 grep -v '^ *+' conftest.er1 >conftest.err
28612 rm -f conftest.er1
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } &&
28616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28618 (eval $ac_try) 2>&5
28619 ac_status=$?
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; } &&
28622 { ac_try='test -s conftest$ac_exeext'
28623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28624 (eval $ac_try) 2>&5
28625 ac_status=$?
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_lib_unicall_uc_start=yes
28629 else
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28632
28633 ac_cv_lib_unicall_uc_start=no
28634 fi
28635 rm -f conftest.err conftest.$ac_objext \
28636 conftest$ac_exeext conftest.$ac_ext
28637 LIBS=$ac_check_lib_save_LIBS
28638 fi
28639 echo "$as_me:$LINENO: result: $ac_cv_lib_unicall_uc_start" >&5
28640 echo "${ECHO_T}$ac_cv_lib_unicall_uc_start" >&6
28641 if test $ac_cv_lib_unicall_uc_start = yes; then
28642 TESTLIBS="$TESTLIBS -lunicall"
28643 fi
28644
28645 fi
28646
28647 case "${ax_cv_c_compiler_vendor}" in
28648 gnu)
28649 COMP_VENDOR_CFLAGS="-O2 -g -std=gnu99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
28650 if test "$enable_sse" = "yes" ; then
28651 COMP_VENDOR_CFLAGS="-msse $COMP_VENDOR_CFLAGS"
28652 fi
28653 if test "$enable_mmx" = "yes" ; then
28654 COMP_VENDOR_CFLAGS="-mmmx $COMP_VENDOR_CFLAGS"
28655 fi
28656 ;;
28657 *)
28658 COMP_VENDOR_CFLAGS="-O2 -g -std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
28659 ;;
28660 esac
28661
28662
28663
28664 if test "$enable_doc" = yes; then
28665 COND_DOC_TRUE=
28666 COND_DOC_FALSE='#'
28667 else
28668 COND_DOC_TRUE='#'
28669 COND_DOC_FALSE=
28670 fi
28671
28672
28673
28674 if test "$enable_tests" = yes; then
28675 COND_TESTS_TRUE=
28676 COND_TESTS_FALSE='#'
28677 else
28678 COND_TESTS_TRUE='#'
28679 COND_TESTS_FALSE=
28680 fi
28681
28682
28683
28684 if test "$enable_itutests" = yes; then
28685 COND_ITUTESTS_TRUE=
28686 COND_ITUTESTS_FALSE='#'
28687 else
28688 COND_ITUTESTS_TRUE='#'
28689 COND_ITUTESTS_FALSE=
28690 fi
28691
28692
28693
28694 if test "$enable_mmx" = yes; then
28695 COND_MMX_TRUE=
28696 COND_MMX_FALSE='#'
28697 else
28698 COND_MMX_TRUE='#'
28699 COND_MMX_FALSE=
28700 fi
28701
28702
28703
28704 if test "$enable_sse" = yes; then
28705 COND_SSE_TRUE=
28706 COND_SSE_FALSE='#'
28707 else
28708 COND_SSE_TRUE='#'
28709 COND_SSE_FALSE=
28710 fi
28711
28712
28713 TESTLIBS=$TESTLIBS
28714
28715 COMP_VENDOR_CFLAGS=$COMP_VENDOR_CFLAGS
28716
28717
28718 ac_config_files="$ac_config_files Makefile doc/Makefile itutests/Makefile itutests/fax/Makefile src/Makefile tests/Makefile spandsp.spec"
28719
28720
28721 cat >confcache <<\_ACEOF
28722 # This file is a shell script that caches the results of configure
28723 # tests run on this system so they can be shared between configure
28724 # scripts and configure runs, see configure's option --config-cache.
28725 # It is not useful on other systems. If it contains results you don't
28726 # want to keep, you may remove or edit it.
28727 #
28728 # config.status only pays attention to the cache file if you give it
28729 # the --recheck option to rerun configure.
28730 #
28731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28733 # following values.
28734
28735 _ACEOF
28736
28737 # The following way of writing the cache mishandles newlines in values,
28738 # but we know of no workaround that is simple, portable, and efficient.
28739 # So, don't put newlines in cache variables' values.
28740 # Ultrix sh set writes to stderr and can't be redirected directly,
28741 # and sets the high bit in the cache file unless we assign to the vars.
28742 {
28743 (set) 2>&1 |
28744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28745 *ac_space=\ *)
28746 # `set' does not quote correctly, so add quotes (double-quote
28747 # substitution turns \\\\ into \\, and sed turns \\ into \).
28748 sed -n \
28749 "s/'/'\\\\''/g;
28750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28751 ;;
28752 *)
28753 # `set' quotes correctly as required by POSIX, so do not add quotes.
28754 sed -n \
28755 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28756 ;;
28757 esac;
28758 } |
28759 sed '
28760 t clear
28761 : clear
28762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28763 t end
28764 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28765 : end' >>confcache
28766 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28767 if test -w $cache_file; then
28768 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28769 cat confcache >$cache_file
28770 else
28771 echo "not updating unwritable cache $cache_file"
28772 fi
28773 fi
28774 rm -f confcache
28775
28776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28777 # Let make expand exec_prefix.
28778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28779
28780 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28781 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28782 # trailing colons and then remove the whole line if VPATH becomes empty
28783 # (actually we leave an empty line to preserve line numbers).
28784 if test "x$srcdir" = x.; then
28785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28786 s/:*\$(srcdir):*/:/;
28787 s/:*\${srcdir}:*/:/;
28788 s/:*@srcdir@:*/:/;
28789 s/^\([^=]*=[ ]*\):*/\1/;
28790 s/:*$//;
28791 s/^[^=]*=[ ]*$//;
28792 }'
28793 fi
28794
28795 DEFS=-DHAVE_CONFIG_H
28796
28797 ac_libobjs=
28798 ac_ltlibobjs=
28799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28800 # 1. Remove the extension, and $U if already installed.
28801 ac_i=`echo "$ac_i" |
28802 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28803 # 2. Add them.
28804 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28805 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28806 done
28807 LIBOBJS=$ac_libobjs
28808
28809 LTLIBOBJS=$ac_ltlibobjs
28810
28811
28812 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28813 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28814 Usually this means the macro was only invoked conditionally." >&5
28815 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28816 Usually this means the macro was only invoked conditionally." >&2;}
28817 { (exit 1); exit 1; }; }
28818 fi
28819 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28820 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28821 Usually this means the macro was only invoked conditionally." >&5
28822 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28823 Usually this means the macro was only invoked conditionally." >&2;}
28824 { (exit 1); exit 1; }; }
28825 fi
28826 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28828 Usually this means the macro was only invoked conditionally." >&5
28829 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28830 Usually this means the macro was only invoked conditionally." >&2;}
28831 { (exit 1); exit 1; }; }
28832 fi
28833 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
28834 { { echo "$as_me:$LINENO: error: conditional \"COND_DOC\" was never defined.
28835 Usually this means the macro was only invoked conditionally." >&5
28836 echo "$as_me: error: conditional \"COND_DOC\" was never defined.
28837 Usually this means the macro was only invoked conditionally." >&2;}
28838 { (exit 1); exit 1; }; }
28839 fi
28840 if test -z "${COND_TESTS_TRUE}" && test -z "${COND_TESTS_FALSE}"; then
28841 { { echo "$as_me:$LINENO: error: conditional \"COND_TESTS\" was never defined.
28842 Usually this means the macro was only invoked conditionally." >&5
28843 echo "$as_me: error: conditional \"COND_TESTS\" was never defined.
28844 Usually this means the macro was only invoked conditionally." >&2;}
28845 { (exit 1); exit 1; }; }
28846 fi
28847 if test -z "${COND_ITUTESTS_TRUE}" && test -z "${COND_ITUTESTS_FALSE}"; then
28848 { { echo "$as_me:$LINENO: error: conditional \"COND_ITUTESTS\" was never defined.
28849 Usually this means the macro was only invoked conditionally." >&5
28850 echo "$as_me: error: conditional \"COND_ITUTESTS\" was never defined.
28851 Usually this means the macro was only invoked conditionally." >&2;}
28852 { (exit 1); exit 1; }; }
28853 fi
28854 if test -z "${COND_MMX_TRUE}" && test -z "${COND_MMX_FALSE}"; then
28855 { { echo "$as_me:$LINENO: error: conditional \"COND_MMX\" was never defined.
28856 Usually this means the macro was only invoked conditionally." >&5
28857 echo "$as_me: error: conditional \"COND_MMX\" was never defined.
28858 Usually this means the macro was only invoked conditionally." >&2;}
28859 { (exit 1); exit 1; }; }
28860 fi
28861 if test -z "${COND_SSE_TRUE}" && test -z "${COND_SSE_FALSE}"; then
28862 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE\" was never defined.
28863 Usually this means the macro was only invoked conditionally." >&5
28864 echo "$as_me: error: conditional \"COND_SSE\" was never defined.
28865 Usually this means the macro was only invoked conditionally." >&2;}
28866 { (exit 1); exit 1; }; }
28867 fi
28868
28869 : ${CONFIG_STATUS=./config.status}
28870 ac_clean_files_save=$ac_clean_files
28871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28872 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28873 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28874 cat >$CONFIG_STATUS <<_ACEOF
28875 #! $SHELL
28876 # Generated by $as_me.
28877 # Run this file to recreate the current configuration.
28878 # Compiler output produced by configure, useful for debugging
28879 # configure, is in config.log if it exists.
28880
28881 debug=false
28882 ac_cs_recheck=false
28883 ac_cs_silent=false
28884 SHELL=\${CONFIG_SHELL-$SHELL}
28885 _ACEOF
28886
28887 cat >>$CONFIG_STATUS <<\_ACEOF
28888 ## --------------------- ##
28889 ## M4sh Initialization. ##
28890 ## --------------------- ##
28891
28892 # Be Bourne compatible
28893 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28894 emulate sh
28895 NULLCMD=:
28896 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28897 # is contrary to our usage. Disable this feature.
28898 alias -g '${1+"$@"}'='"$@"'
28899 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28900 set -o posix
28901 fi
28902 DUALCASE=1; export DUALCASE # for MKS sh
28903
28904 # Support unset when possible.
28905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28906 as_unset=unset
28907 else
28908 as_unset=false
28909 fi
28910
28911
28912 # Work around bugs in pre-3.0 UWIN ksh.
28913 $as_unset ENV MAIL MAILPATH
28914 PS1='$ '
28915 PS2='> '
28916 PS4='+ '
28917
28918 # NLS nuisances.
28919 for as_var in \
28920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28922 LC_TELEPHONE LC_TIME
28923 do
28924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28925 eval $as_var=C; export $as_var
28926 else
28927 $as_unset $as_var
28928 fi
28929 done
28930
28931 # Required to use basename.
28932 if expr a : '\(a\)' >/dev/null 2>&1; then
28933 as_expr=expr
28934 else
28935 as_expr=false
28936 fi
28937
28938 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28939 as_basename=basename
28940 else
28941 as_basename=false
28942 fi
28943
28944
28945 # Name of the executable.
28946 as_me=`$as_basename "$0" ||
28947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28948 X"$0" : 'X\(//\)$' \| \
28949 X"$0" : 'X\(/\)$' \| \
28950 . : '\(.\)' 2>/dev/null ||
28951 echo X/"$0" |
28952 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28953 /^X\/\(\/\/\)$/{ s//\1/; q; }
28954 /^X\/\(\/\).*/{ s//\1/; q; }
28955 s/.*/./; q'`
28956
28957
28958 # PATH needs CR, and LINENO needs CR and PATH.
28959 # Avoid depending upon Character Ranges.
28960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28963 as_cr_digits='0123456789'
28964 as_cr_alnum=$as_cr_Letters$as_cr_digits
28965
28966 # The user is always right.
28967 if test "${PATH_SEPARATOR+set}" != set; then
28968 echo "#! /bin/sh" >conf$$.sh
28969 echo "exit 0" >>conf$$.sh
28970 chmod +x conf$$.sh
28971 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28972 PATH_SEPARATOR=';'
28973 else
28974 PATH_SEPARATOR=:
28975 fi
28976 rm -f conf$$.sh
28977 fi
28978
28979
28980 as_lineno_1=$LINENO
28981 as_lineno_2=$LINENO
28982 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28983 test "x$as_lineno_1" != "x$as_lineno_2" &&
28984 test "x$as_lineno_3" = "x$as_lineno_2" || {
28985 # Find who we are. Look in the path if we contain no path at all
28986 # relative or not.
28987 case $0 in
28988 *[\\/]* ) as_myself=$0 ;;
28989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28990 for as_dir in $PATH
28991 do
28992 IFS=$as_save_IFS
28993 test -z "$as_dir" && as_dir=.
28994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28995 done
28996
28997 ;;
28998 esac
28999 # We did not find ourselves, most probably we were run as `sh COMMAND'
29000 # in which case we are not to be found in the path.
29001 if test "x$as_myself" = x; then
29002 as_myself=$0
29003 fi
29004 if test ! -f "$as_myself"; then
29005 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29006 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29007 { (exit 1); exit 1; }; }
29008 fi
29009 case $CONFIG_SHELL in
29010 '')
29011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29012 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29013 do
29014 IFS=$as_save_IFS
29015 test -z "$as_dir" && as_dir=.
29016 for as_base in sh bash ksh sh5; do
29017 case $as_dir in
29018 /*)
29019 if ("$as_dir/$as_base" -c '
29020 as_lineno_1=$LINENO
29021 as_lineno_2=$LINENO
29022 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29023 test "x$as_lineno_1" != "x$as_lineno_2" &&
29024 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29025 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29026 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29027 CONFIG_SHELL=$as_dir/$as_base
29028 export CONFIG_SHELL
29029 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29030 fi;;
29031 esac
29032 done
29033 done
29034 ;;
29035 esac
29036
29037 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29038 # uniformly replaced by the line number. The first 'sed' inserts a
29039 # line-number line before each line; the second 'sed' does the real
29040 # work. The second script uses 'N' to pair each line-number line
29041 # with the numbered line, and appends trailing '-' during
29042 # substitution so that $LINENO is not a special case at line end.
29043 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29044 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29045 sed '=' <$as_myself |
29046 sed '
29047 N
29048 s,$,-,
29049 : loop
29050 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29051 t loop
29052 s,-$,,
29053 s,^['$as_cr_digits']*\n,,
29054 ' >$as_me.lineno &&
29055 chmod +x $as_me.lineno ||
29056 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29057 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29058 { (exit 1); exit 1; }; }
29059
29060 # Don't try to exec as it changes $[0], causing all sort of problems
29061 # (the dirname of $[0] is not the place where we might find the
29062 # original and so on. Autoconf is especially sensible to this).
29063 . ./$as_me.lineno
29064 # Exit status is that of the last command.
29065 exit
29066 }
29067
29068
29069 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29070 *c*,-n*) ECHO_N= ECHO_C='
29071 ' ECHO_T=' ' ;;
29072 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29073 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29074 esac
29075
29076 if expr a : '\(a\)' >/dev/null 2>&1; then
29077 as_expr=expr
29078 else
29079 as_expr=false
29080 fi
29081
29082 rm -f conf$$ conf$$.exe conf$$.file
29083 echo >conf$$.file
29084 if ln -s conf$$.file conf$$ 2>/dev/null; then
29085 # We could just check for DJGPP; but this test a) works b) is more generic
29086 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29087 if test -f conf$$.exe; then
29088 # Don't use ln at all; we don't have any links
29089 as_ln_s='cp -p'
29090 else
29091 as_ln_s='ln -s'
29092 fi
29093 elif ln conf$$.file conf$$ 2>/dev/null; then
29094 as_ln_s=ln
29095 else
29096 as_ln_s='cp -p'
29097 fi
29098 rm -f conf$$ conf$$.exe conf$$.file
29099
29100 if mkdir -p . 2>/dev/null; then
29101 as_mkdir_p=:
29102 else
29103 test -d ./-p && rmdir ./-p
29104 as_mkdir_p=false
29105 fi
29106
29107 as_executable_p="test -f"
29108
29109 # Sed expression to map a string onto a valid CPP name.
29110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29111
29112 # Sed expression to map a string onto a valid variable name.
29113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29114
29115
29116 # IFS
29117 # We need space, tab and new line, in precisely that order.
29118 as_nl='
29119 '
29120 IFS=" $as_nl"
29121
29122 # CDPATH.
29123 $as_unset CDPATH
29124
29125 exec 6>&1
29126
29127 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29128 # report actual input values of CONFIG_FILES etc. instead of their
29129 # values after options handling. Logging --version etc. is OK.
29130 exec 5>>config.log
29131 {
29132 echo
29133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29134 ## Running $as_me. ##
29135 _ASBOX
29136 } >&5
29137 cat >&5 <<_CSEOF
29138
29139 This file was extended by $as_me, which was
29140 generated by GNU Autoconf 2.59. Invocation command line was
29141
29142 CONFIG_FILES = $CONFIG_FILES
29143 CONFIG_HEADERS = $CONFIG_HEADERS
29144 CONFIG_LINKS = $CONFIG_LINKS
29145 CONFIG_COMMANDS = $CONFIG_COMMANDS
29146 $ $0 $@
29147
29148 _CSEOF
29149 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29150 echo >&5
29151 _ACEOF
29152
29153 # Files that config.status was made for.
29154 if test -n "$ac_config_files"; then
29155 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29156 fi
29157
29158 if test -n "$ac_config_headers"; then
29159 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29160 fi
29161
29162 if test -n "$ac_config_links"; then
29163 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29164 fi
29165
29166 if test -n "$ac_config_commands"; then
29167 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29168 fi
29169
29170 cat >>$CONFIG_STATUS <<\_ACEOF
29171
29172 ac_cs_usage="\
29173 \`$as_me' instantiates files from templates according to the
29174 current configuration.
29175
29176 Usage: $0 [OPTIONS] [FILE]...
29177
29178 -h, --help print this help, then exit
29179 -V, --version print version number, then exit
29180 -q, --quiet do not print progress messages
29181 -d, --debug don't remove temporary files
29182 --recheck update $as_me by reconfiguring in the same conditions
29183 --file=FILE[:TEMPLATE]
29184 instantiate the configuration file FILE
29185 --header=FILE[:TEMPLATE]
29186 instantiate the configuration header FILE
29187
29188 Configuration files:
29189 $config_files
29190
29191 Configuration headers:
29192 $config_headers
29193
29194 Configuration commands:
29195 $config_commands
29196
29197 Report bugs to <bug-autoconf@gnu.org>."
29198 _ACEOF
29199
29200 cat >>$CONFIG_STATUS <<_ACEOF
29201 ac_cs_version="\\
29202 config.status
29203 configured by $0, generated by GNU Autoconf 2.59,
29204 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29205
29206 Copyright (C) 2003 Free Software Foundation, Inc.
29207 This config.status script is free software; the Free Software Foundation
29208 gives unlimited permission to copy, distribute and modify it."
29209 srcdir=$srcdir
29210 INSTALL="$INSTALL"
29211 _ACEOF
29212
29213 cat >>$CONFIG_STATUS <<\_ACEOF
29214 # If no file are specified by the user, then we need to provide default
29215 # value. By we need to know if files were specified by the user.
29216 ac_need_defaults=:
29217 while test $# != 0
29218 do
29219 case $1 in
29220 --*=*)
29221 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29222 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29223 ac_shift=:
29224 ;;
29225 -*)
29226 ac_option=$1
29227 ac_optarg=$2
29228 ac_shift=shift
29229 ;;
29230 *) # This is not an option, so the user has probably given explicit
29231 # arguments.
29232 ac_option=$1
29233 ac_need_defaults=false;;
29234 esac
29235
29236 case $ac_option in
29237 # Handling of the options.
29238 _ACEOF
29239 cat >>$CONFIG_STATUS <<\_ACEOF
29240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29241 ac_cs_recheck=: ;;
29242 --version | --vers* | -V )
29243 echo "$ac_cs_version"; exit 0 ;;
29244 --he | --h)
29245 # Conflict between --help and --header
29246 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29247 Try \`$0 --help' for more information." >&5
29248 echo "$as_me: error: ambiguous option: $1
29249 Try \`$0 --help' for more information." >&2;}
29250 { (exit 1); exit 1; }; };;
29251 --help | --hel | -h )
29252 echo "$ac_cs_usage"; exit 0 ;;
29253 --debug | --d* | -d )
29254 debug=: ;;
29255 --file | --fil | --fi | --f )
29256 $ac_shift
29257 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29258 ac_need_defaults=false;;
29259 --header | --heade | --head | --hea )
29260 $ac_shift
29261 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29262 ac_need_defaults=false;;
29263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29265 ac_cs_silent=: ;;
29266
29267 # This is an error.
29268 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29269 Try \`$0 --help' for more information." >&5
29270 echo "$as_me: error: unrecognized option: $1
29271 Try \`$0 --help' for more information." >&2;}
29272 { (exit 1); exit 1; }; } ;;
29273
29274 *) ac_config_targets="$ac_config_targets $1" ;;
29275
29276 esac
29277 shift
29278 done
29279
29280 ac_configure_extra_args=
29281
29282 if $ac_cs_silent; then
29283 exec 6>/dev/null
29284 ac_configure_extra_args="$ac_configure_extra_args --silent"
29285 fi
29286
29287 _ACEOF
29288 cat >>$CONFIG_STATUS <<_ACEOF
29289 if \$ac_cs_recheck; then
29290 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29291 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29292 fi
29293
29294 _ACEOF
29295
29296 cat >>$CONFIG_STATUS <<_ACEOF
29297 #
29298 # INIT-COMMANDS section.
29299 #
29300
29301 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29302
29303 _ACEOF
29304
29305
29306
29307 cat >>$CONFIG_STATUS <<\_ACEOF
29308 for ac_config_target in $ac_config_targets
29309 do
29310 case "$ac_config_target" in
29311 # Handling of arguments.
29312 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29313 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29314 "itutests/Makefile" ) CONFIG_FILES="$CONFIG_FILES itutests/Makefile" ;;
29315 "itutests/fax/Makefile" ) CONFIG_FILES="$CONFIG_FILES itutests/fax/Makefile" ;;
29316 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29317 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29318 "spandsp.spec" ) CONFIG_FILES="$CONFIG_FILES spandsp.spec" ;;
29319 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29320 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:config-h.in" ;;
29321 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29322 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29323 { (exit 1); exit 1; }; };;
29324 esac
29325 done
29326
29327 # If the user did not use the arguments to specify the items to instantiate,
29328 # then the envvar interface is used. Set only those that are not.
29329 # We use the long form for the default assignment because of an extremely
29330 # bizarre bug on SunOS 4.1.3.
29331 if $ac_need_defaults; then
29332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29335 fi
29336
29337 # Have a temporary directory for convenience. Make it in the build tree
29338 # simply because there is no reason to put it here, and in addition,
29339 # creating and moving files from /tmp can sometimes cause problems.
29340 # Create a temporary directory, and hook for its removal unless debugging.
29341 $debug ||
29342 {
29343 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29344 trap '{ (exit 1); exit 1; }' 1 2 13 15
29345 }
29346
29347 # Create a (secure) tmp directory for tmp files.
29348
29349 {
29350 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29351 test -n "$tmp" && test -d "$tmp"
29352 } ||
29353 {
29354 tmp=./confstat$$-$RANDOM
29355 (umask 077 && mkdir $tmp)
29356 } ||
29357 {
29358 echo "$me: cannot create a temporary directory in ." >&2
29359 { (exit 1); exit 1; }
29360 }
29361
29362 _ACEOF
29363
29364 cat >>$CONFIG_STATUS <<_ACEOF
29365
29366 #
29367 # CONFIG_FILES section.
29368 #
29369
29370 # No need to generate the scripts if there are no CONFIG_FILES.
29371 # This happens for instance when ./config.status config.h
29372 if test -n "\$CONFIG_FILES"; then
29373 # Protect against being on the right side of a sed subst in config.status.
29374 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29375 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29376 s,@SHELL@,$SHELL,;t t
29377 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29378 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29379 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29380 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29381 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29382 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29383 s,@exec_prefix@,$exec_prefix,;t t
29384 s,@prefix@,$prefix,;t t
29385 s,@program_transform_name@,$program_transform_name,;t t
29386 s,@bindir@,$bindir,;t t
29387 s,@sbindir@,$sbindir,;t t
29388 s,@libexecdir@,$libexecdir,;t t
29389 s,@datadir@,$datadir,;t t
29390 s,@sysconfdir@,$sysconfdir,;t t
29391 s,@sharedstatedir@,$sharedstatedir,;t t
29392 s,@localstatedir@,$localstatedir,;t t
29393 s,@libdir@,$libdir,;t t
29394 s,@includedir@,$includedir,;t t
29395 s,@oldincludedir@,$oldincludedir,;t t
29396 s,@infodir@,$infodir,;t t
29397 s,@mandir@,$mandir,;t t
29398 s,@build_alias@,$build_alias,;t t
29399 s,@host_alias@,$host_alias,;t t
29400 s,@target_alias@,$target_alias,;t t
29401 s,@DEFS@,$DEFS,;t t
29402 s,@ECHO_C@,$ECHO_C,;t t
29403 s,@ECHO_N@,$ECHO_N,;t t
29404 s,@ECHO_T@,$ECHO_T,;t t
29405 s,@LIBS@,$LIBS,;t t
29406 s,@SPANDSP_LT_CURRENT@,$SPANDSP_LT_CURRENT,;t t
29407 s,@SPANDSP_LT_REVISION@,$SPANDSP_LT_REVISION,;t t
29408 s,@SPANDSP_LT_AGE@,$SPANDSP_LT_AGE,;t t
29409 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29410 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29411 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29412 s,@CYGPATH_W@,$CYGPATH_W,;t t
29413 s,@PACKAGE@,$PACKAGE,;t t
29414 s,@VERSION@,$VERSION,;t t
29415 s,@ACLOCAL@,$ACLOCAL,;t t
29416 s,@AUTOCONF@,$AUTOCONF,;t t
29417 s,@AUTOMAKE@,$AUTOMAKE,;t t
29418 s,@AUTOHEADER@,$AUTOHEADER,;t t
29419 s,@MAKEINFO@,$MAKEINFO,;t t
29420 s,@install_sh@,$install_sh,;t t
29421 s,@STRIP@,$STRIP,;t t
29422 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29423 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29424 s,@mkdir_p@,$mkdir_p,;t t
29425 s,@AWK@,$AWK,;t t
29426 s,@SET_MAKE@,$SET_MAKE,;t t
29427 s,@am__leading_dot@,$am__leading_dot,;t t
29428 s,@AMTAR@,$AMTAR,;t t
29429 s,@am__tar@,$am__tar,;t t
29430 s,@am__untar@,$am__untar,;t t
29431 s,@build@,$build,;t t
29432 s,@build_cpu@,$build_cpu,;t t
29433 s,@build_vendor@,$build_vendor,;t t
29434 s,@build_os@,$build_os,;t t
29435 s,@host@,$host,;t t
29436 s,@host_cpu@,$host_cpu,;t t
29437 s,@host_vendor@,$host_vendor,;t t
29438 s,@host_os@,$host_os,;t t
29439 s,@CC@,$CC,;t t
29440 s,@CFLAGS@,$CFLAGS,;t t
29441 s,@LDFLAGS@,$LDFLAGS,;t t
29442 s,@CPPFLAGS@,$CPPFLAGS,;t t
29443 s,@ac_ct_CC@,$ac_ct_CC,;t t
29444 s,@EXEEXT@,$EXEEXT,;t t
29445 s,@OBJEXT@,$OBJEXT,;t t
29446 s,@DEPDIR@,$DEPDIR,;t t
29447 s,@am__include@,$am__include,;t t
29448 s,@am__quote@,$am__quote,;t t
29449 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29450 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29451 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29452 s,@CCDEPMODE@,$CCDEPMODE,;t t
29453 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29454 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29455 s,@CXX@,$CXX,;t t
29456 s,@CXXFLAGS@,$CXXFLAGS,;t t
29457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29458 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29459 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29460 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29461 s,@CPP@,$CPP,;t t
29462 s,@EGREP@,$EGREP,;t t
29463 s,@LN_S@,$LN_S,;t t
29464 s,@ECHO@,$ECHO,;t t
29465 s,@AR@,$AR,;t t
29466 s,@ac_ct_AR@,$ac_ct_AR,;t t
29467 s,@RANLIB@,$RANLIB,;t t
29468 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29469 s,@CXXCPP@,$CXXCPP,;t t
29470 s,@F77@,$F77,;t t
29471 s,@FFLAGS@,$FFLAGS,;t t
29472 s,@ac_ct_F77@,$ac_ct_F77,;t t
29473 s,@LIBTOOL@,$LIBTOOL,;t t
29474 s,@LIBOBJS@,$LIBOBJS,;t t
29475 s,@COND_DOC_TRUE@,$COND_DOC_TRUE,;t t
29476 s,@COND_DOC_FALSE@,$COND_DOC_FALSE,;t t
29477 s,@COND_TESTS_TRUE@,$COND_TESTS_TRUE,;t t
29478 s,@COND_TESTS_FALSE@,$COND_TESTS_FALSE,;t t
29479 s,@COND_ITUTESTS_TRUE@,$COND_ITUTESTS_TRUE,;t t
29480 s,@COND_ITUTESTS_FALSE@,$COND_ITUTESTS_FALSE,;t t
29481 s,@COND_MMX_TRUE@,$COND_MMX_TRUE,;t t
29482 s,@COND_MMX_FALSE@,$COND_MMX_FALSE,;t t
29483 s,@COND_SSE_TRUE@,$COND_SSE_TRUE,;t t
29484 s,@COND_SSE_FALSE@,$COND_SSE_FALSE,;t t
29485 s,@TESTLIBS@,$TESTLIBS,;t t
29486 s,@COMP_VENDOR_CFLAGS@,$COMP_VENDOR_CFLAGS,;t t
29487 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29488 CEOF
29489
29490 _ACEOF
29491
29492 cat >>$CONFIG_STATUS <<\_ACEOF
29493 # Split the substitutions into bite-sized pieces for seds with
29494 # small command number limits, like on Digital OSF/1 and HP-UX.
29495 ac_max_sed_lines=48
29496 ac_sed_frag=1 # Number of current file.
29497 ac_beg=1 # First line for current file.
29498 ac_end=$ac_max_sed_lines # Line after last line for current file.
29499 ac_more_lines=:
29500 ac_sed_cmds=
29501 while $ac_more_lines; do
29502 if test $ac_beg -gt 1; then
29503 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29504 else
29505 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29506 fi
29507 if test ! -s $tmp/subs.frag; then
29508 ac_more_lines=false
29509 else
29510 # The purpose of the label and of the branching condition is to
29511 # speed up the sed processing (if there are no `@' at all, there
29512 # is no need to browse any of the substitutions).
29513 # These are the two extra sed commands mentioned above.
29514 (echo ':t
29515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29516 if test -z "$ac_sed_cmds"; then
29517 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29518 else
29519 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29520 fi
29521 ac_sed_frag=`expr $ac_sed_frag + 1`
29522 ac_beg=$ac_end
29523 ac_end=`expr $ac_end + $ac_max_sed_lines`
29524 fi
29525 done
29526 if test -z "$ac_sed_cmds"; then
29527 ac_sed_cmds=cat
29528 fi
29529 fi # test -n "$CONFIG_FILES"
29530
29531 _ACEOF
29532 cat >>$CONFIG_STATUS <<\_ACEOF
29533 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29534 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29535 case $ac_file in
29536 - | *:- | *:-:* ) # input from stdin
29537 cat >$tmp/stdin
29538 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29539 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29540 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29542 * ) ac_file_in=$ac_file.in ;;
29543 esac
29544
29545 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29546 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29548 X"$ac_file" : 'X\(//\)[^/]' \| \
29549 X"$ac_file" : 'X\(//\)$' \| \
29550 X"$ac_file" : 'X\(/\)' \| \
29551 . : '\(.\)' 2>/dev/null ||
29552 echo X"$ac_file" |
29553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29555 /^X\(\/\/\)$/{ s//\1/; q; }
29556 /^X\(\/\).*/{ s//\1/; q; }
29557 s/.*/./; q'`
29558 { if $as_mkdir_p; then
29559 mkdir -p "$ac_dir"
29560 else
29561 as_dir="$ac_dir"
29562 as_dirs=
29563 while test ! -d "$as_dir"; do
29564 as_dirs="$as_dir $as_dirs"
29565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29567 X"$as_dir" : 'X\(//\)[^/]' \| \
29568 X"$as_dir" : 'X\(//\)$' \| \
29569 X"$as_dir" : 'X\(/\)' \| \
29570 . : '\(.\)' 2>/dev/null ||
29571 echo X"$as_dir" |
29572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29574 /^X\(\/\/\)$/{ s//\1/; q; }
29575 /^X\(\/\).*/{ s//\1/; q; }
29576 s/.*/./; q'`
29577 done
29578 test ! -n "$as_dirs" || mkdir $as_dirs
29579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29581 { (exit 1); exit 1; }; }; }
29582
29583 ac_builddir=.
29584
29585 if test "$ac_dir" != .; then
29586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29587 # A "../" for each directory in $ac_dir_suffix.
29588 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29589 else
29590 ac_dir_suffix= ac_top_builddir=
29591 fi
29592
29593 case $srcdir in
29594 .) # No --srcdir option. We are building in place.
29595 ac_srcdir=.
29596 if test -z "$ac_top_builddir"; then
29597 ac_top_srcdir=.
29598 else
29599 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29600 fi ;;
29601 [\\/]* | ?:[\\/]* ) # Absolute path.
29602 ac_srcdir=$srcdir$ac_dir_suffix;
29603 ac_top_srcdir=$srcdir ;;
29604 *) # Relative path.
29605 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29606 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29607 esac
29608
29609 # Do not use `cd foo && pwd` to compute absolute paths, because
29610 # the directories may not exist.
29611 case `pwd` in
29612 .) ac_abs_builddir="$ac_dir";;
29613 *)
29614 case "$ac_dir" in
29615 .) ac_abs_builddir=`pwd`;;
29616 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29617 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29618 esac;;
29619 esac
29620 case $ac_abs_builddir in
29621 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29622 *)
29623 case ${ac_top_builddir}. in
29624 .) ac_abs_top_builddir=$ac_abs_builddir;;
29625 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29626 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29627 esac;;
29628 esac
29629 case $ac_abs_builddir in
29630 .) ac_abs_srcdir=$ac_srcdir;;
29631 *)
29632 case $ac_srcdir in
29633 .) ac_abs_srcdir=$ac_abs_builddir;;
29634 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29635 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29636 esac;;
29637 esac
29638 case $ac_abs_builddir in
29639 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29640 *)
29641 case $ac_top_srcdir in
29642 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29643 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29644 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29645 esac;;
29646 esac
29647
29648
29649 case $INSTALL in
29650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29651 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29652 esac
29653
29654 # Let's still pretend it is `configure' which instantiates (i.e., don't
29655 # use $as_me), people would be surprised to read:
29656 # /* config.h. Generated by config.status. */
29657 if test x"$ac_file" = x-; then
29658 configure_input=
29659 else
29660 configure_input="$ac_file. "
29661 fi
29662 configure_input=$configure_input"Generated from `echo $ac_file_in |
29663 sed 's,.*/,,'` by configure."
29664
29665 # First look for the input files in the build tree, otherwise in the
29666 # src tree.
29667 ac_file_inputs=`IFS=:
29668 for f in $ac_file_in; do
29669 case $f in
29670 -) echo $tmp/stdin ;;
29671 [\\/$]*)
29672 # Absolute (can't be DOS-style, as IFS=:)
29673 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29674 echo "$as_me: error: cannot find input file: $f" >&2;}
29675 { (exit 1); exit 1; }; }
29676 echo "$f";;
29677 *) # Relative
29678 if test -f "$f"; then
29679 # Build tree
29680 echo "$f"
29681 elif test -f "$srcdir/$f"; then
29682 # Source tree
29683 echo "$srcdir/$f"
29684 else
29685 # /dev/null tree
29686 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29687 echo "$as_me: error: cannot find input file: $f" >&2;}
29688 { (exit 1); exit 1; }; }
29689 fi;;
29690 esac
29691 done` || { (exit 1); exit 1; }
29692
29693 if test x"$ac_file" != x-; then
29694 { echo "$as_me:$LINENO: creating $ac_file" >&5
29695 echo "$as_me: creating $ac_file" >&6;}
29696 rm -f "$ac_file"
29697 fi
29698 _ACEOF
29699 cat >>$CONFIG_STATUS <<_ACEOF
29700 sed "$ac_vpsub
29701 $extrasub
29702 _ACEOF
29703 cat >>$CONFIG_STATUS <<\_ACEOF
29704 :t
29705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29706 s,@configure_input@,$configure_input,;t t
29707 s,@srcdir@,$ac_srcdir,;t t
29708 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29709 s,@top_srcdir@,$ac_top_srcdir,;t t
29710 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29711 s,@builddir@,$ac_builddir,;t t
29712 s,@abs_builddir@,$ac_abs_builddir,;t t
29713 s,@top_builddir@,$ac_top_builddir,;t t
29714 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29715 s,@INSTALL@,$ac_INSTALL,;t t
29716 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29717 rm -f $tmp/stdin
29718 if test x"$ac_file" != x-; then
29719 mv $tmp/out $ac_file
29720 else
29721 cat $tmp/out
29722 rm -f $tmp/out
29723 fi
29724
29725 done
29726 _ACEOF
29727 cat >>$CONFIG_STATUS <<\_ACEOF
29728
29729 #
29730 # CONFIG_HEADER section.
29731 #
29732
29733 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29734 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29735 #
29736 # ac_d sets the value in "#define NAME VALUE" lines.
29737 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29738 ac_dB='[ ].*$,\1#\2'
29739 ac_dC=' '
29740 ac_dD=',;t'
29741 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29742 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29743 ac_uB='$,\1#\2define\3'
29744 ac_uC=' '
29745 ac_uD=',;t'
29746
29747 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29749 case $ac_file in
29750 - | *:- | *:-:* ) # input from stdin
29751 cat >$tmp/stdin
29752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29756 * ) ac_file_in=$ac_file.in ;;
29757 esac
29758
29759 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29760 echo "$as_me: creating $ac_file" >&6;}
29761
29762 # First look for the input files in the build tree, otherwise in the
29763 # src tree.
29764 ac_file_inputs=`IFS=:
29765 for f in $ac_file_in; do
29766 case $f in
29767 -) echo $tmp/stdin ;;
29768 [\\/$]*)
29769 # Absolute (can't be DOS-style, as IFS=:)
29770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29771 echo "$as_me: error: cannot find input file: $f" >&2;}
29772 { (exit 1); exit 1; }; }
29773 # Do quote $f, to prevent DOS paths from being IFS'd.
29774 echo "$f";;
29775 *) # Relative
29776 if test -f "$f"; then
29777 # Build tree
29778 echo "$f"
29779 elif test -f "$srcdir/$f"; then
29780 # Source tree
29781 echo "$srcdir/$f"
29782 else
29783 # /dev/null tree
29784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29785 echo "$as_me: error: cannot find input file: $f" >&2;}
29786 { (exit 1); exit 1; }; }
29787 fi;;
29788 esac
29789 done` || { (exit 1); exit 1; }
29790 # Remove the trailing spaces.
29791 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29792
29793 _ACEOF
29794
29795 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29796 # `conftest.undefs', that substitutes the proper values into
29797 # config.h.in to produce config.h. The first handles `#define'
29798 # templates, and the second `#undef' templates.
29799 # And first: Protect against being on the right side of a sed subst in
29800 # config.status. Protect against being in an unquoted here document
29801 # in config.status.
29802 rm -f conftest.defines conftest.undefs
29803 # Using a here document instead of a string reduces the quoting nightmare.
29804 # Putting comments in sed scripts is not portable.
29805 #
29806 # `end' is used to avoid that the second main sed command (meant for
29807 # 0-ary CPP macros) applies to n-ary macro definitions.
29808 # See the Autoconf documentation for `clear'.
29809 cat >confdef2sed.sed <<\_ACEOF
29810 s/[\\&,]/\\&/g
29811 s,[\\$`],\\&,g
29812 t clear
29813 : clear
29814 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29815 t end
29816 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29817 : end
29818 _ACEOF
29819 # If some macros were called several times there might be several times
29820 # the same #defines, which is useless. Nevertheless, we may not want to
29821 # sort them, since we want the *last* AC-DEFINE to be honored.
29822 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29823 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29824 rm -f confdef2sed.sed
29825
29826 # This sed command replaces #undef with comments. This is necessary, for
29827 # example, in the case of _POSIX_SOURCE, which is predefined and required
29828 # on some systems where configure will not decide to define it.
29829 cat >>conftest.undefs <<\_ACEOF
29830 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29831 _ACEOF
29832
29833 # Break up conftest.defines because some shells have a limit on the size
29834 # of here documents, and old seds have small limits too (100 cmds).
29835 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29836 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29837 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29838 echo ' :' >>$CONFIG_STATUS
29839 rm -f conftest.tail
29840 while grep . conftest.defines >/dev/null
29841 do
29842 # Write a limited-size here document to $tmp/defines.sed.
29843 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29844 # Speed up: don't consider the non `#define' lines.
29845 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29846 # Work around the forget-to-reset-the-flag bug.
29847 echo 't clr' >>$CONFIG_STATUS
29848 echo ': clr' >>$CONFIG_STATUS
29849 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29850 echo 'CEOF
29851 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29852 rm -f $tmp/in
29853 mv $tmp/out $tmp/in
29854 ' >>$CONFIG_STATUS
29855 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29856 rm -f conftest.defines
29857 mv conftest.tail conftest.defines
29858 done
29859 rm -f conftest.defines
29860 echo ' fi # grep' >>$CONFIG_STATUS
29861 echo >>$CONFIG_STATUS
29862
29863 # Break up conftest.undefs because some shells have a limit on the size
29864 # of here documents, and old seds have small limits too (100 cmds).
29865 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29866 rm -f conftest.tail
29867 while grep . conftest.undefs >/dev/null
29868 do
29869 # Write a limited-size here document to $tmp/undefs.sed.
29870 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29871 # Speed up: don't consider the non `#undef'
29872 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29873 # Work around the forget-to-reset-the-flag bug.
29874 echo 't clr' >>$CONFIG_STATUS
29875 echo ': clr' >>$CONFIG_STATUS
29876 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29877 echo 'CEOF
29878 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29879 rm -f $tmp/in
29880 mv $tmp/out $tmp/in
29881 ' >>$CONFIG_STATUS
29882 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29883 rm -f conftest.undefs
29884 mv conftest.tail conftest.undefs
29885 done
29886 rm -f conftest.undefs
29887
29888 cat >>$CONFIG_STATUS <<\_ACEOF
29889 # Let's still pretend it is `configure' which instantiates (i.e., don't
29890 # use $as_me), people would be surprised to read:
29891 # /* config.h. Generated by config.status. */
29892 if test x"$ac_file" = x-; then
29893 echo "/* Generated by configure. */" >$tmp/config.h
29894 else
29895 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29896 fi
29897 cat $tmp/in >>$tmp/config.h
29898 rm -f $tmp/in
29899 if test x"$ac_file" != x-; then
29900 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29901 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29902 echo "$as_me: $ac_file is unchanged" >&6;}
29903 else
29904 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29906 X"$ac_file" : 'X\(//\)[^/]' \| \
29907 X"$ac_file" : 'X\(//\)$' \| \
29908 X"$ac_file" : 'X\(/\)' \| \
29909 . : '\(.\)' 2>/dev/null ||
29910 echo X"$ac_file" |
29911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29913 /^X\(\/\/\)$/{ s//\1/; q; }
29914 /^X\(\/\).*/{ s//\1/; q; }
29915 s/.*/./; q'`
29916 { if $as_mkdir_p; then
29917 mkdir -p "$ac_dir"
29918 else
29919 as_dir="$ac_dir"
29920 as_dirs=
29921 while test ! -d "$as_dir"; do
29922 as_dirs="$as_dir $as_dirs"
29923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29925 X"$as_dir" : 'X\(//\)[^/]' \| \
29926 X"$as_dir" : 'X\(//\)$' \| \
29927 X"$as_dir" : 'X\(/\)' \| \
29928 . : '\(.\)' 2>/dev/null ||
29929 echo X"$as_dir" |
29930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29932 /^X\(\/\/\)$/{ s//\1/; q; }
29933 /^X\(\/\).*/{ s//\1/; q; }
29934 s/.*/./; q'`
29935 done
29936 test ! -n "$as_dirs" || mkdir $as_dirs
29937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29939 { (exit 1); exit 1; }; }; }
29940
29941 rm -f $ac_file
29942 mv $tmp/config.h $ac_file
29943 fi
29944 else
29945 cat $tmp/config.h
29946 rm -f $tmp/config.h
29947 fi
29948 # Compute $ac_file's index in $config_headers.
29949 _am_stamp_count=1
29950 for _am_header in $config_headers :; do
29951 case $_am_header in
29952 $ac_file | $ac_file:* )
29953 break ;;
29954 * )
29955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29956 esac
29957 done
29958 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29959 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29960 X$ac_file : 'X\(//\)[^/]' \| \
29961 X$ac_file : 'X\(//\)$' \| \
29962 X$ac_file : 'X\(/\)' \| \
29963 . : '\(.\)' 2>/dev/null ||
29964 echo X$ac_file |
29965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29967 /^X\(\/\/\)$/{ s//\1/; q; }
29968 /^X\(\/\).*/{ s//\1/; q; }
29969 s/.*/./; q'`/stamp-h$_am_stamp_count
29970 done
29971 _ACEOF
29972 cat >>$CONFIG_STATUS <<\_ACEOF
29973
29974 #
29975 # CONFIG_COMMANDS section.
29976 #
29977 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29978 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29979 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29980 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29981 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29982 X"$ac_dest" : 'X\(//\)[^/]' \| \
29983 X"$ac_dest" : 'X\(//\)$' \| \
29984 X"$ac_dest" : 'X\(/\)' \| \
29985 . : '\(.\)' 2>/dev/null ||
29986 echo X"$ac_dest" |
29987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29989 /^X\(\/\/\)$/{ s//\1/; q; }
29990 /^X\(\/\).*/{ s//\1/; q; }
29991 s/.*/./; q'`
29992 { if $as_mkdir_p; then
29993 mkdir -p "$ac_dir"
29994 else
29995 as_dir="$ac_dir"
29996 as_dirs=
29997 while test ! -d "$as_dir"; do
29998 as_dirs="$as_dir $as_dirs"
29999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30001 X"$as_dir" : 'X\(//\)[^/]' \| \
30002 X"$as_dir" : 'X\(//\)$' \| \
30003 X"$as_dir" : 'X\(/\)' \| \
30004 . : '\(.\)' 2>/dev/null ||
30005 echo X"$as_dir" |
30006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30008 /^X\(\/\/\)$/{ s//\1/; q; }
30009 /^X\(\/\).*/{ s//\1/; q; }
30010 s/.*/./; q'`
30011 done
30012 test ! -n "$as_dirs" || mkdir $as_dirs
30013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30015 { (exit 1); exit 1; }; }; }
30016
30017 ac_builddir=.
30018
30019 if test "$ac_dir" != .; then
30020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30021 # A "../" for each directory in $ac_dir_suffix.
30022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30023 else
30024 ac_dir_suffix= ac_top_builddir=
30025 fi
30026
30027 case $srcdir in
30028 .) # No --srcdir option. We are building in place.
30029 ac_srcdir=.
30030 if test -z "$ac_top_builddir"; then
30031 ac_top_srcdir=.
30032 else
30033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30034 fi ;;
30035 [\\/]* | ?:[\\/]* ) # Absolute path.
30036 ac_srcdir=$srcdir$ac_dir_suffix;
30037 ac_top_srcdir=$srcdir ;;
30038 *) # Relative path.
30039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30041 esac
30042
30043 # Do not use `cd foo && pwd` to compute absolute paths, because
30044 # the directories may not exist.
30045 case `pwd` in
30046 .) ac_abs_builddir="$ac_dir";;
30047 *)
30048 case "$ac_dir" in
30049 .) ac_abs_builddir=`pwd`;;
30050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30052 esac;;
30053 esac
30054 case $ac_abs_builddir in
30055 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30056 *)
30057 case ${ac_top_builddir}. in
30058 .) ac_abs_top_builddir=$ac_abs_builddir;;
30059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30061 esac;;
30062 esac
30063 case $ac_abs_builddir in
30064 .) ac_abs_srcdir=$ac_srcdir;;
30065 *)
30066 case $ac_srcdir in
30067 .) ac_abs_srcdir=$ac_abs_builddir;;
30068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30070 esac;;
30071 esac
30072 case $ac_abs_builddir in
30073 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30074 *)
30075 case $ac_top_srcdir in
30076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30079 esac;;
30080 esac
30081
30082
30083 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30084 echo "$as_me: executing $ac_dest commands" >&6;}
30085 case $ac_dest in
30086 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30087 # Strip MF so we end up with the name of the file.
30088 mf=`echo "$mf" | sed -e 's/:.*$//'`
30089 # Check whether this is an Automake generated Makefile or not.
30090 # We used to match only the files named `Makefile.in', but
30091 # some people rename them; so instead we look at the file content.
30092 # Grep'ing the first line is not enough: some people post-process
30093 # each Makefile.in and add a new line on top of each file to say so.
30094 # So let's grep whole file.
30095 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30096 dirpart=`(dirname "$mf") 2>/dev/null ||
30097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30098 X"$mf" : 'X\(//\)[^/]' \| \
30099 X"$mf" : 'X\(//\)$' \| \
30100 X"$mf" : 'X\(/\)' \| \
30101 . : '\(.\)' 2>/dev/null ||
30102 echo X"$mf" |
30103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30105 /^X\(\/\/\)$/{ s//\1/; q; }
30106 /^X\(\/\).*/{ s//\1/; q; }
30107 s/.*/./; q'`
30108 else
30109 continue
30110 fi
30111 # Extract the definition of DEPDIR, am__include, and am__quote
30112 # from the Makefile without running `make'.
30113 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30114 test -z "$DEPDIR" && continue
30115 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30116 test -z "am__include" && continue
30117 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30118 # When using ansi2knr, U may be empty or an underscore; expand it
30119 U=`sed -n 's/^U = //p' < "$mf"`
30120 # Find all dependency output files, they are included files with
30121 # $(DEPDIR) in their names. We invoke sed twice because it is the
30122 # simplest approach to changing $(DEPDIR) to its actual value in the
30123 # expansion.
30124 for file in `sed -n "
30125 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30126 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30127 # Make sure the directory exists.
30128 test -f "$dirpart/$file" && continue
30129 fdir=`(dirname "$file") 2>/dev/null ||
30130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30131 X"$file" : 'X\(//\)[^/]' \| \
30132 X"$file" : 'X\(//\)$' \| \
30133 X"$file" : 'X\(/\)' \| \
30134 . : '\(.\)' 2>/dev/null ||
30135 echo X"$file" |
30136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30138 /^X\(\/\/\)$/{ s//\1/; q; }
30139 /^X\(\/\).*/{ s//\1/; q; }
30140 s/.*/./; q'`
30141 { if $as_mkdir_p; then
30142 mkdir -p $dirpart/$fdir
30143 else
30144 as_dir=$dirpart/$fdir
30145 as_dirs=
30146 while test ! -d "$as_dir"; do
30147 as_dirs="$as_dir $as_dirs"
30148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30150 X"$as_dir" : 'X\(//\)[^/]' \| \
30151 X"$as_dir" : 'X\(//\)$' \| \
30152 X"$as_dir" : 'X\(/\)' \| \
30153 . : '\(.\)' 2>/dev/null ||
30154 echo X"$as_dir" |
30155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30157 /^X\(\/\/\)$/{ s//\1/; q; }
30158 /^X\(\/\).*/{ s//\1/; q; }
30159 s/.*/./; q'`
30160 done
30161 test ! -n "$as_dirs" || mkdir $as_dirs
30162 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30163 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30164 { (exit 1); exit 1; }; }; }
30165
30166 # echo "creating $dirpart/$file"
30167 echo '# dummy' > "$dirpart/$file"
30168 done
30169 done
30170 ;;
30171 esac
30172 done
30173 _ACEOF
30174
30175 cat >>$CONFIG_STATUS <<\_ACEOF
30176
30177 { (exit 0); exit 0; }
30178 _ACEOF
30179 chmod +x $CONFIG_STATUS
30180 ac_clean_files=$ac_clean_files_save
30181
30182
30183 # configure is writing to config.log, and then calls config.status.
30184 # config.status does its own redirection, appending to config.log.
30185 # Unfortunately, on DOS this fails, as config.log is still kept open
30186 # by configure, so config.status won't be able to write to it; its
30187 # output is simply discarded. So we exec the FD to /dev/null,
30188 # effectively closing config.log, so it can be properly (re)opened and
30189 # appended to by config.status. When coming back to configure, we
30190 # need to make the FD available again.
30191 if test "$no_create" != yes; then
30192 ac_cs_success=:
30193 ac_config_status_args=
30194 test "$silent" = yes &&
30195 ac_config_status_args="$ac_config_status_args --quiet"
30196 exec 5>/dev/null
30197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30198 exec 5>>config.log
30199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30200 # would make configure fail if this is the last instruction.
30201 $ac_cs_success || { (exit 1); exit 1; }
30202 fi
30203
30204
30205 # @end 1

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.