Debian Codegraph @

configure

raw symbols SCIP
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="gsmlib/gsm_error.h"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA GSM_VERSION MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB COMPILE_INTL_TRUE COMPILE_INTL_FALSE LIBOBJS 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_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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 --disable-nls do not use Native Language Support
1036 --disable-rpath do not hardcode runtime library paths
1037
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1046 --with-gnu-ld assume the C compiler uses GNU ld default=no
1047 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1048 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1049 --with-included-gettext use the GNU gettext library included here
1050 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1051 --without-libintl-prefix don't search for libintl in includedir and libdir
1052
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CPP C preprocessor
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085 ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141 esac
1142
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 fi
1158 cd "$ac_popdir"
1159 done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164 cat <<\_ACEOF
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170 exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by $as_me, which was
1178 generated by GNU Autoconf 2.59. Invocation command line was
1179
1180 $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
1198 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1199 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1202 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1203 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1204 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211 IFS=$as_save_IFS
1212 test -z "$as_dir" && as_dir=.
1213 echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240 for ac_arg
1241 do
1242 case $ac_arg in
1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 continue ;;
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249 esac
1250 case $ac_pass in
1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 2)
1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254 if test $ac_must_keep_next = true; then
1255 ac_must_keep_next=false # Got value, back to normal.
1256 else
1257 case $ac_arg in
1258 *=* | --config-cache | -C | -disable-* | --disable-* \
1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261 | -with-* | --with-* | -without-* | --without-* | --x)
1262 case "$ac_configure_args0 " in
1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264 esac
1265 ;;
1266 -* ) ac_must_keep_next=true ;;
1267 esac
1268 fi
1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270 # Get rid of the leading space.
1271 ac_sep=" "
1272 ;;
1273 esac
1274 done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log. We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285 # Save into config.log some information that might help in debugging.
1286 {
1287 echo
1288
1289 cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294 echo
1295 # The following way of writing the cache mishandles newlines in values,
1296 {
1297 (set) 2>&1 |
1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299 *ac_space=\ *)
1300 sed -n \
1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303 ;;
1304 *)
1305 sed -n \
1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307 ;;
1308 esac;
1309 }
1310 echo
1311
1312 cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317 echo
1318 for ac_var in $ac_subst_vars
1319 do
1320 eval ac_val=$`echo $ac_var`
1321 echo "$ac_var='"'"'$ac_val'"'"'"
1322 done | sort
1323 echo
1324
1325 if test -n "$ac_subst_files"; then
1326 cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331 echo
1332 for ac_var in $ac_subst_files
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338 fi
1339
1340 if test -s confdefs.h; then
1341 cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346 echo
1347 sed "/^$/d" confdefs.h | sort
1348 echo
1349 fi
1350 test "$ac_signal" != 0 &&
1351 echo "$as_me: caught signal $ac_signal"
1352 echo "$as_me: exit $exit_status"
1353 } >&5
1354 rm -f core *.core &&
1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356 exit $exit_status
1357 ' 0
1358 for ac_signal in 1 2 13 15; do
1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398 if test "x$prefix" != xNONE; then
1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 else
1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402 fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405 if test -r "$ac_site_file"; then
1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408 sed 's/^/| /' "$ac_site_file" >&5
1409 . "$ac_site_file"
1410 fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414 # Some versions of bash will fail to source /dev/null (special
1415 # files actually), so we avoid doing that.
1416 if test -f "$cache_file"; then
1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419 case $cache_file in
1420 [\\/]* | ?:[\\/]* ) . $cache_file;;
1421 *) . ./$cache_file;;
1422 esac
1423 fi
1424 else
1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427 >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436 eval ac_new_set=\$ac_env_${ac_var}_set
1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438 eval ac_new_val="\$ac_env_${ac_var}_value"
1439 case $ac_old_set,$ac_new_set in
1440 set,)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,set)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,);;
1449 *)
1450 if test "x$ac_old_val" != "x$ac_new_val"; then
1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1454 echo "$as_me: former value: $ac_old_val" >&2;}
1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1456 echo "$as_me: current value: $ac_new_val" >&2;}
1457 ac_cache_corrupted=:
1458 fi;;
1459 esac
1460 # Pass precious variables to config.status.
1461 if test "$ac_new_set" = set; then
1462 case $ac_new_val in
1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 *) ac_arg=$ac_var=$ac_new_val ;;
1466 esac
1467 case " $ac_configure_args " in
1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470 esac
1471 fi
1472 done
1473 if $ac_cache_corrupted; then
1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478 { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 ac_aux_dir=
1507 for ac_dir in scripts $srcdir/scripts; do
1508 if test -f $ac_dir/install-sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 break
1512 elif test -f $ac_dir/install.sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 break
1516 elif test -f $ac_dir/shtool; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 break
1520 fi
1521 done
1522 if test -z "$ac_aux_dir"; then
1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1524 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1525 { (exit 1); exit 1; }; }
1526 fi
1527 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531 # Find a good install program. We prefer a C program (faster),
1532 # so one script is as good as another. But avoid the broken or
1533 # incompatible versions:
1534 # SysV /etc/install, /usr/sbin/install
1535 # SunOS /usr/etc/install
1536 # IRIX /sbin/install
1537 # AIX /bin/install
1538 # AmigaOS /C/install, which installs bootblocks on floppy discs
1539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542 # OS/2's system install, which has a completely different semantic
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546 if test -z "$INSTALL"; then
1547 if test "${ac_cv_path_install+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 # Account for people who put trailing slashes in PATH elements.
1556 case $as_dir/ in
1557 ./ | .// | /cC/* | \
1558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560 /usr/ucb/* ) ;;
1561 *)
1562 # OSF1 and SCO ODT 3.0 have their own names for install.
1563 # Don't use installbsd from OSF since it installs stuff as root
1564 # by default.
1565 for ac_prog in ginstall scoinst install; do
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568 if test $ac_prog = install &&
1569 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # AIX install. It has an incompatible calling convention.
1571 :
1572 elif test $ac_prog = install &&
1573 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574 # program-specific install script used by HP pwplus--don't use.
1575 :
1576 else
1577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1578 break 3
1579 fi
1580 fi
1581 done
1582 done
1583 ;;
1584 esac
1585 done
1586
1587
1588 fi
1589 if test "${ac_cv_path_install+set}" = set; then
1590 INSTALL=$ac_cv_path_install
1591 else
1592 # As a last resort, use the slow shell script. We don't cache a
1593 # path for INSTALL within a source directory, because that will
1594 # break other packages using the cache if that directory is
1595 # removed, or if the path is relative.
1596 INSTALL=$ac_install_sh
1597 fi
1598 fi
1599 echo "$as_me:$LINENO: result: $INSTALL" >&5
1600 echo "${ECHO_T}$INSTALL" >&6
1601
1602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603 # It thinks the first close brace ends the variable substitution.
1604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605
1606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1607
1608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609
1610
1611 ac_ext=c
1612 ac_cpp='$CPP $CPPFLAGS'
1613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1616 if test -n "$ac_tool_prefix"; then
1617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1618 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638 done
1639 done
1640
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 fi
1653 if test -z "$ac_cv_prog_CC"; then
1654 ac_ct_CC=$CC
1655 # Extract the first word of "gcc", so it can be a program name with args.
1656 set dummy gcc; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$ac_ct_CC"; then
1663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_ac_ct_CC="gcc"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1684 echo "${ECHO_T}$ac_ct_CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 CC=$ac_ct_CC
1691 else
1692 CC="$ac_cv_prog_CC"
1693 fi
1694
1695 if test -z "$CC"; then
1696 if test -n "$ac_tool_prefix"; then
1697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1698 set dummy ${ac_tool_prefix}cc; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_CC="${ac_tool_prefix}cc"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718 done
1719 done
1720
1721 fi
1722 fi
1723 CC=$ac_cv_prog_CC
1724 if test -n "$CC"; then
1725 echo "$as_me:$LINENO: result: $CC" >&5
1726 echo "${ECHO_T}$CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730 fi
1731
1732 fi
1733 if test -z "$ac_cv_prog_CC"; then
1734 ac_ct_CC=$CC
1735 # Extract the first word of "cc", so it can be a program name with args.
1736 set dummy cc; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742 if test -n "$ac_ct_CC"; then
1743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_ac_ct_CC="cc"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 break 2
1755 fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1762 if test -n "$ac_ct_CC"; then
1763 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1764 echo "${ECHO_T}$ac_ct_CC" >&6
1765 else
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770 CC=$ac_ct_CC
1771 else
1772 CC="$ac_cv_prog_CC"
1773 fi
1774
1775 fi
1776 if test -z "$CC"; then
1777 # Extract the first word of "cc", so it can be a program name with args.
1778 set dummy cc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 ac_prog_rejected=no
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1790 do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1796 ac_prog_rejected=yes
1797 continue
1798 fi
1799 ac_cv_prog_CC="cc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1802 fi
1803 done
1804 done
1805
1806 if test $ac_prog_rejected = yes; then
1807 # We found a bogon in the path, so make sure we never use it.
1808 set dummy $ac_cv_prog_CC
1809 shift
1810 if test $# != 0; then
1811 # We chose a different compiler from the bogus one.
1812 # However, it has the same basename, so the bogon will be chosen
1813 # first if we set CC to just the basename; use the full file name.
1814 shift
1815 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1816 fi
1817 fi
1818 fi
1819 fi
1820 CC=$ac_cv_prog_CC
1821 if test -n "$CC"; then
1822 echo "$as_me:$LINENO: result: $CC" >&5
1823 echo "${ECHO_T}$CC" >&6
1824 else
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1827 fi
1828
1829 fi
1830 if test -z "$CC"; then
1831 if test -n "$ac_tool_prefix"; then
1832 for ac_prog in cl
1833 do
1834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1836 echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838 if test "${ac_cv_prog_CC+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test -n "$CC"; then
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1854 fi
1855 done
1856 done
1857
1858 fi
1859 fi
1860 CC=$ac_cv_prog_CC
1861 if test -n "$CC"; then
1862 echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 fi
1868
1869 test -n "$CC" && break
1870 done
1871 fi
1872 if test -z "$CC"; then
1873 ac_ct_CC=$CC
1874 for ac_prog in cl
1875 do
1876 # Extract the first word of "$ac_prog", so it can be a program name with args.
1877 set dummy $ac_prog; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC="$ac_prog"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1896 fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 test -n "$ac_ct_CC" && break
1912 done
1913
1914 CC=$ac_ct_CC
1915 fi
1916
1917 fi
1918
1919
1920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }
1925
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929 ac_compiler=`set X $ac_compile; echo $2`
1930 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1952
1953 int
1954 main ()
1955 {
1956
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963 # Try to create an executable without -o first, disregard a.out.
1964 # It will help us diagnose broken compilers, and finding out an intuition
1965 # of exeext.
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976 # resort.
1977
1978 # Be careful to initialize this variable, since it used to be cached.
1979 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980 ac_cv_exeext=
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 do
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 ;;
1988 conftest.$ac_ext )
1989 # This is the source file.
1990 ;;
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2002 * )
2003 break;;
2004 esac
2005 done
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&2;}
2014 { (exit 77); exit 77; }; }
2015 fi
2016
2017 ac_exeext=$ac_cv_exeext
2018 echo "$as_me:$LINENO: result: $ac_file" >&5
2019 echo "${ECHO_T}$ac_file" >&6
2020
2021 # Check the compiler produces executables we can run. If not, either
2022 # the compiler is broken, or we cross compile.
2023 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2024 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2025 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2026 # If not cross compiling, check that we can run a simple program.
2027 if test "$cross_compiling" != yes; then
2028 if { ac_try='./$ac_file'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 (eval $ac_try) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 cross_compiling=no
2035 else
2036 if test "$cross_compiling" = maybe; then
2037 cross_compiling=yes
2038 else
2039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2040 If you meant to cross compile, use \`--host'.
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'.
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2046 fi
2047 fi
2048 fi
2049 echo "$as_me:$LINENO: result: yes" >&5
2050 echo "${ECHO_T}yes" >&6
2051
2052 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2053 ac_clean_files=$ac_clean_files_save
2054 # Check the compiler produces executables we can run. If not, either
2055 # the compiler is broken, or we cross compile.
2056 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2057 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2058 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2059 echo "${ECHO_T}$cross_compiling" >&6
2060
2061 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2062 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2064 (eval $ac_link) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; then
2068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2070 # work properly (i.e., refer to `conftest.exe'), while it won't with
2071 # `rm'.
2072 for ac_file in conftest.exe conftest conftest.*; do
2073 test -f "$ac_file" || continue
2074 case $ac_file in
2075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2077 export ac_cv_exeext
2078 break;;
2079 * ) break;;
2080 esac
2081 done
2082 else
2083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2086 See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
2088 fi
2089
2090 rm -f conftest$ac_cv_exeext
2091 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2092 echo "${ECHO_T}$ac_cv_exeext" >&6
2093
2094 rm -f conftest.$ac_ext
2095 EXEEXT=$ac_cv_exeext
2096 ac_exeext=$EXEEXT
2097 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2099 if test "${ac_cv_objext+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2108
2109 int
2110 main ()
2111 {
2112
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 rm -f conftest.o conftest.obj
2118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2124 case $ac_file in
2125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2127 break;;
2128 esac
2129 done
2130 else
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142 fi
2143 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144 echo "${ECHO_T}$ac_cv_objext" >&6
2145 OBJEXT=$ac_cv_objext
2146 ac_objext=$OBJEXT
2147 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2158
2159 int
2160 main ()
2161 {
2162 #ifndef __GNUC__
2163 choke me
2164 #endif
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_compiler_gnu=yes
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 ac_compiler_gnu=no
2197 fi
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201 fi
2202 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204 GCC=`test $ac_compiler_gnu = yes && echo yes`
2205 ac_test_CFLAGS=${CFLAGS+set}
2206 ac_save_CFLAGS=$CFLAGS
2207 CFLAGS="-g"
2208 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210 if test "${ac_cv_prog_cc_g+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2219
2220 int
2221 main ()
2222 {
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>conftest.er1
2231 ac_status=$?
2232 grep -v '^ *+' conftest.er1 >conftest.err
2233 rm -f conftest.er1
2234 cat conftest.err >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 ac_cv_prog_cc_g=yes
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_cv_prog_cc_g=no
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260 if test "$ac_test_CFLAGS" = set; then
2261 CFLAGS=$ac_save_CFLAGS
2262 elif test $ac_cv_prog_cc_g = yes; then
2263 if test "$GCC" = yes; then
2264 CFLAGS="-g -O2"
2265 else
2266 CFLAGS="-g"
2267 fi
2268 else
2269 if test "$GCC" = yes; then
2270 CFLAGS="-O2"
2271 else
2272 CFLAGS=
2273 fi
2274 fi
2275 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 ac_cv_prog_cc_stdc=no
2281 ac_save_CC=$CC
2282 cat >conftest.$ac_ext <<_ACEOF
2283 /* confdefs.h. */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2288 #include <stdarg.h>
2289 #include <stdio.h>
2290 #include <sys/types.h>
2291 #include <sys/stat.h>
2292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2293 struct buf { int x; };
2294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295 static char *e (p, i)
2296 char **p;
2297 int i;
2298 {
2299 return p[i];
2300 }
2301 static char *f (char * (*g) (char **, int), char **p, ...)
2302 {
2303 char *s;
2304 va_list v;
2305 va_start (v,p);
2306 s = g (p, va_arg (v,int));
2307 va_end (v);
2308 return s;
2309 }
2310
2311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2312 function prototypes and stuff, but not '\xHH' hex character constants.
2313 These don't provoke an error unfortunately, instead are silently treated
2314 as 'x'. The following induces an error, until -std1 is added to get
2315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2316 array size at least. It's necessary to write '\x00'==0 to get something
2317 that's true only with -std1. */
2318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320 int test (int i, double x);
2321 struct s1 {int (*f) (int a);};
2322 struct s2 {int (*f) (double a);};
2323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324 int argc;
2325 char **argv;
2326 int
2327 main ()
2328 {
2329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 # Don't try gcc -ansi; that turns off useful extensions and
2335 # breaks some systems' header files.
2336 # AIX -qlanglvl=ansi
2337 # Ultrix and OSF/1 -std1
2338 # HP-UX 10.20 and later -Ae
2339 # HP-UX older versions -Aa -D_HPUX_SOURCE
2340 # SVR4 -Xc -D__EXTENSIONS__
2341 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342 do
2343 CC="$ac_save_CC $ac_arg"
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_cv_prog_cc_stdc=$ac_arg
2366 break
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 fi
2372 rm -f conftest.err conftest.$ac_objext
2373 done
2374 rm -f conftest.$ac_ext conftest.$ac_objext
2375 CC=$ac_save_CC
2376
2377 fi
2378
2379 case "x$ac_cv_prog_cc_stdc" in
2380 x|xno)
2381 echo "$as_me:$LINENO: result: none needed" >&5
2382 echo "${ECHO_T}none needed" >&6 ;;
2383 *)
2384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386 CC="$CC $ac_cv_prog_cc_stdc" ;;
2387 esac
2388
2389 # Some people use a C++ compiler to compile C. Since we use `exit',
2390 # in C++ we need to declare it. In case someone uses the same compiler
2391 # for both compiling C and C++ we need to have the C++ compiler decide
2392 # the declaration of exit, since it's the most demanding environment.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #ifndef __cplusplus
2395 choke me
2396 #endif
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 for ac_declaration in \
2420 '' \
2421 'extern "C" void std::exit (int) throw (); using std::exit;' \
2422 'extern "C" void std::exit (int); using std::exit;' \
2423 'extern "C" void exit (int) throw ();' \
2424 'extern "C" void exit (int);' \
2425 'void exit (int);'
2426 do
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433 $ac_declaration
2434 #include <stdlib.h>
2435 int
2436 main ()
2437 {
2438 exit (42);
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 :
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 continue
2470 fi
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472 cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h. */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2478 $ac_declaration
2479 int
2480 main ()
2481 {
2482 exit (42);
2483 ;
2484 return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 (eval $ac_try) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 break
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 fi
2514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 done
2516 rm -f conftest*
2517 if test -n "$ac_declaration"; then
2518 echo '#ifdef __cplusplus' >>confdefs.h
2519 echo $ac_declaration >>confdefs.h
2520 echo '#endif' >>confdefs.h
2521 fi
2522
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536
2537 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
2538 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
2539 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 ac_check_lib_save_LIBS=$LIBS
2543 LIBS="-lintl $LIBS"
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2550
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 #ifdef __cplusplus
2553 extern "C"
2554 #endif
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557 char textdomain ();
2558 int
2559 main ()
2560 {
2561 textdomain ();
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2568 (eval $ac_link) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest$ac_exeext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_lib_intl_textdomain=yes
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_cv_lib_intl_textdomain=no
2593 fi
2594 rm -f conftest.err conftest.$ac_objext \
2595 conftest$ac_exeext conftest.$ac_ext
2596 LIBS=$ac_check_lib_save_LIBS
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
2599 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
2600 if test $ac_cv_lib_intl_textdomain = yes; then
2601 cat >>confdefs.h <<_ACEOF
2602 #define HAVE_LIBINTL 1
2603 _ACEOF
2604
2605 LIBS="-lintl $LIBS"
2606
2607 fi
2608
2609
2610 ac_config_headers="$ac_config_headers gsm_config.h"
2611
2612
2613 am__api_version="1.9"
2614 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2615 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2616 # Just in case
2617 sleep 1
2618 echo timestamp > conftest.file
2619 # Do `set' in a subshell so we don't clobber the current shell's
2620 # arguments. Must try -L first in case configure is actually a
2621 # symlink; some systems play weird games with the mod time of symlinks
2622 # (eg FreeBSD returns the mod time of the symlink's containing
2623 # directory).
2624 if (
2625 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2626 if test "$*" = "X"; then
2627 # -L didn't work.
2628 set X `ls -t $srcdir/configure conftest.file`
2629 fi
2630 rm -f conftest.file
2631 if test "$*" != "X $srcdir/configure conftest.file" \
2632 && test "$*" != "X conftest.file $srcdir/configure"; then
2633
2634 # If neither matched, then we have a broken ls. This can happen
2635 # if, for instance, CONFIG_SHELL is bash and it inherits a
2636 # broken ls alias from the environment. This has actually
2637 # happened. Such a system could not be considered "sane".
2638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2639 alias in your environment" >&5
2640 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2641 alias in your environment" >&2;}
2642 { (exit 1); exit 1; }; }
2643 fi
2644
2645 test "$2" = conftest.file
2646 )
2647 then
2648 # Ok.
2649 :
2650 else
2651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2652 Check your system clock" >&5
2653 echo "$as_me: error: newly created file is older than distributed files!
2654 Check your system clock" >&2;}
2655 { (exit 1); exit 1; }; }
2656 fi
2657 echo "$as_me:$LINENO: result: yes" >&5
2658 echo "${ECHO_T}yes" >&6
2659 test "$program_prefix" != NONE &&
2660 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2661 # Use a double $ so make ignores it.
2662 test "$program_suffix" != NONE &&
2663 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2664 # Double any \ or $. echo might interpret backslashes.
2665 # By default was `s,x,x', remove it if useless.
2666 cat <<\_ACEOF >conftest.sed
2667 s/[\\$]/&&/g;s/;s,x,x,$//
2668 _ACEOF
2669 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2670 rm conftest.sed
2671
2672 # expand $ac_aux_dir to an absolute path
2673 am_aux_dir=`cd $ac_aux_dir && pwd`
2674
2675 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2676 # Use eval to expand $SHELL
2677 if eval "$MISSING --run true"; then
2678 am_missing_run="$MISSING --run "
2679 else
2680 am_missing_run=
2681 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2682 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2683 fi
2684
2685 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2686 # We used to keeping the `.' as first argument, in order to
2687 # allow $(mkdir_p) to be used without argument. As in
2688 # $(mkdir_p) $(somedir)
2689 # where $(somedir) is conditionally defined. However this is wrong
2690 # for two reasons:
2691 # 1. if the package is installed by a user who cannot write `.'
2692 # make install will fail,
2693 # 2. the above comment should most certainly read
2694 # $(mkdir_p) $(DESTDIR)$(somedir)
2695 # so it does not work when $(somedir) is undefined and
2696 # $(DESTDIR) is not.
2697 # To support the latter case, we have to write
2698 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2699 # so the `.' trick is pointless.
2700 mkdir_p='mkdir -p --'
2701 else
2702 # On NextStep and OpenStep, the `mkdir' command does not
2703 # recognize any option. It will interpret all options as
2704 # directories to create, and then abort because `.' already
2705 # exists.
2706 for d in ./-p ./--version;
2707 do
2708 test -d $d && rmdir $d
2709 done
2710 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2711 if test -f "$ac_aux_dir/mkinstalldirs"; then
2712 mkdir_p='$(mkinstalldirs)'
2713 else
2714 mkdir_p='$(install_sh) -d'
2715 fi
2716 fi
2717
2718 for ac_prog in gawk mawk nawk awk
2719 do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_AWK+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_AWK="$ac_prog"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743
2744 fi
2745 fi
2746 AWK=$ac_cv_prog_AWK
2747 if test -n "$AWK"; then
2748 echo "$as_me:$LINENO: result: $AWK" >&5
2749 echo "${ECHO_T}$AWK" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2753 fi
2754
2755 test -n "$AWK" && break
2756 done
2757
2758 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2759 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2760 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2761 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 cat >conftest.make <<\_ACEOF
2765 all:
2766 @echo 'ac_maketemp="$(MAKE)"'
2767 _ACEOF
2768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2769 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2770 if test -n "$ac_maketemp"; then
2771 eval ac_cv_prog_make_${ac_make}_set=yes
2772 else
2773 eval ac_cv_prog_make_${ac_make}_set=no
2774 fi
2775 rm -f conftest.make
2776 fi
2777 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2778 echo "$as_me:$LINENO: result: yes" >&5
2779 echo "${ECHO_T}yes" >&6
2780 SET_MAKE=
2781 else
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784 SET_MAKE="MAKE=${MAKE-make}"
2785 fi
2786
2787 rm -rf .tst 2>/dev/null
2788 mkdir .tst 2>/dev/null
2789 if test -d .tst; then
2790 am__leading_dot=.
2791 else
2792 am__leading_dot=_
2793 fi
2794 rmdir .tst 2>/dev/null
2795
2796 DEPDIR="${am__leading_dot}deps"
2797
2798 ac_config_commands="$ac_config_commands depfiles"
2799
2800
2801 am_make=${MAKE-make}
2802 cat > confinc << 'END'
2803 am__doit:
2804 @echo done
2805 .PHONY: am__doit
2806 END
2807 # If we don't find an include directive, just comment out the code.
2808 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2809 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2810 am__include="#"
2811 am__quote=
2812 _am_result=none
2813 # First try GNU make style include.
2814 echo "include confinc" > confmf
2815 # We grep out `Entering directory' and `Leaving directory'
2816 # messages which can occur if `w' ends up in MAKEFLAGS.
2817 # In particular we don't look at `^make:' because GNU make might
2818 # be invoked under some other name (usually "gmake"), in which
2819 # case it prints its new name instead of `make'.
2820 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2821 am__include=include
2822 am__quote=
2823 _am_result=GNU
2824 fi
2825 # Now try BSD make style include.
2826 if test "$am__include" = "#"; then
2827 echo '.include "confinc"' > confmf
2828 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2829 am__include=.include
2830 am__quote="\""
2831 _am_result=BSD
2832 fi
2833 fi
2834
2835
2836 echo "$as_me:$LINENO: result: $_am_result" >&5
2837 echo "${ECHO_T}$_am_result" >&6
2838 rm -f confinc confmf
2839
2840 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2841 if test "${enable_dependency_tracking+set}" = set; then
2842 enableval="$enable_dependency_tracking"
2843
2844 fi;
2845 if test "x$enable_dependency_tracking" != xno; then
2846 am_depcomp="$ac_aux_dir/depcomp"
2847 AMDEPBACKSLASH='\'
2848 fi
2849
2850
2851 if test "x$enable_dependency_tracking" != xno; then
2852 AMDEP_TRUE=
2853 AMDEP_FALSE='#'
2854 else
2855 AMDEP_TRUE='#'
2856 AMDEP_FALSE=
2857 fi
2858
2859
2860
2861 # test to see if srcdir already configured
2862 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2863 test -f $srcdir/config.status; then
2864 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2865 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2866 { (exit 1); exit 1; }; }
2867 fi
2868
2869 # test whether we have cygpath
2870 if test -z "$CYGPATH_W"; then
2871 if (cygpath --version) >/dev/null 2>/dev/null; then
2872 CYGPATH_W='cygpath -w'
2873 else
2874 CYGPATH_W=echo
2875 fi
2876 fi
2877
2878
2879 # Define the identity of the package.
2880 PACKAGE=gsmlib
2881 VERSION=1.10
2882
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE "$PACKAGE"
2886 _ACEOF
2887
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define VERSION "$VERSION"
2891 _ACEOF
2892
2893 # Some tools Automake needs.
2894
2895 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2896
2897
2898 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2899
2900
2901 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2902
2903
2904 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2905
2906
2907 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2908
2909 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2910
2911 # Installed binaries are usually stripped using `strip' when the user
2912 # run `make install-strip'. However `strip' might not be the right
2913 # tool to use in cross-compilation environments, therefore Automake
2914 # will honor the `STRIP' environment variable to overrule this program.
2915 if test "$cross_compiling" != no; then
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}strip; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_STRIP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$STRIP"; then
2925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938 done
2939 done
2940
2941 fi
2942 fi
2943 STRIP=$ac_cv_prog_STRIP
2944 if test -n "$STRIP"; then
2945 echo "$as_me:$LINENO: result: $STRIP" >&5
2946 echo "${ECHO_T}$STRIP" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952 fi
2953 if test -z "$ac_cv_prog_STRIP"; then
2954 ac_ct_STRIP=$STRIP
2955 # Extract the first word of "strip", so it can be a program name with args.
2956 set dummy strip; ac_word=$2
2957 echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 if test -n "$ac_ct_STRIP"; then
2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_STRIP="strip"
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978
2979 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2980 fi
2981 fi
2982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2983 if test -n "$ac_ct_STRIP"; then
2984 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2985 echo "${ECHO_T}$ac_ct_STRIP" >&6
2986 else
2987 echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2989 fi
2990
2991 STRIP=$ac_ct_STRIP
2992 else
2993 STRIP="$ac_cv_prog_STRIP"
2994 fi
2995
2996 fi
2997 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2998
2999 # We need awk for the "check" target. The system "awk" is bad on
3000 # some platforms.
3001 # Always define AMTAR for backward compatibility.
3002
3003 AMTAR=${AMTAR-"${am_missing_run}tar"}
3004
3005 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3006
3007
3008
3009
3010 depcc="$CC" am_compiler_list=
3011
3012 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3013 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3014 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3018 # We make a subdir and do the tests there. Otherwise we can end up
3019 # making bogus files that we don't know about and never remove. For
3020 # instance it was reported that on HP-UX the gcc test will end up
3021 # making a dummy file named `D' -- because `-MD' means `put the output
3022 # in D'.
3023 mkdir conftest.dir
3024 # Copy depcomp to subdir because otherwise we won't find it if we're
3025 # using a relative directory.
3026 cp "$am_depcomp" conftest.dir
3027 cd conftest.dir
3028 # We will build objects and dependencies in a subdirectory because
3029 # it helps to detect inapplicable dependency modes. For instance
3030 # both Tru64's cc and ICC support -MD to output dependencies as a
3031 # side effect of compilation, but ICC will put the dependencies in
3032 # the current directory while Tru64 will put them in the object
3033 # directory.
3034 mkdir sub
3035
3036 am_cv_CC_dependencies_compiler_type=none
3037 if test "$am_compiler_list" = ""; then
3038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3039 fi
3040 for depmode in $am_compiler_list; do
3041 # Setup a source with many dependencies, because some compilers
3042 # like to wrap large dependency lists on column 80 (with \), and
3043 # we should not choose a depcomp mode which is confused by this.
3044 #
3045 # We need to recreate these files for each test, as the compiler may
3046 # overwrite some of them when testing with obscure command lines.
3047 # This happens at least with the AIX C compiler.
3048 : > sub/conftest.c
3049 for i in 1 2 3 4 5 6; do
3050 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3051 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3052 # Solaris 8's {/usr,}/bin/sh.
3053 touch sub/conftst$i.h
3054 done
3055 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3056
3057 case $depmode in
3058 nosideeffect)
3059 # after this tag, mechanisms are not by side-effect, so they'll
3060 # only be used when explicitly requested
3061 if test "x$enable_dependency_tracking" = xyes; then
3062 continue
3063 else
3064 break
3065 fi
3066 ;;
3067 none) break ;;
3068 esac
3069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3070 # mode. It turns out that the SunPro C++ compiler does not properly
3071 # handle `-M -o', and we need to detect this.
3072 if depmode=$depmode \
3073 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3075 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3076 >/dev/null 2>conftest.err &&
3077 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3078 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3079 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3080 # icc doesn't choke on unknown options, it will just issue warnings
3081 # or remarks (even with -Werror). So we grep stderr for any message
3082 # that says an option was ignored or not supported.
3083 # When given -MP, icc 7.0 and 7.1 complain thusly:
3084 # icc: Command line warning: ignoring option '-M'; no argument required
3085 # The diagnosis changed in icc 8.0:
3086 # icc: Command line remark: option '-MP' not supported
3087 if (grep 'ignoring option' conftest.err ||
3088 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3089 am_cv_CC_dependencies_compiler_type=$depmode
3090 break
3091 fi
3092 fi
3093 done
3094
3095 cd ..
3096 rm -rf conftest.dir
3097 else
3098 am_cv_CC_dependencies_compiler_type=none
3099 fi
3100
3101 fi
3102 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3103 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3105
3106
3107
3108 if
3109 test "x$enable_dependency_tracking" != xno \
3110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3111 am__fastdepCC_TRUE=
3112 am__fastdepCC_FALSE='#'
3113 else
3114 am__fastdepCC_TRUE='#'
3115 am__fastdepCC_FALSE=
3116 fi
3117
3118
3119
3120
3121 # Check whether --enable-shared or --disable-shared was given.
3122 if test "${enable_shared+set}" = set; then
3123 enableval="$enable_shared"
3124 p=${PACKAGE-default}
3125 case $enableval in
3126 yes) enable_shared=yes ;;
3127 no) enable_shared=no ;;
3128 *)
3129 enable_shared=no
3130 # Look at the argument we got. We use all the common list separators.
3131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3132 for pkg in $enableval; do
3133 IFS="$lt_save_ifs"
3134 if test "X$pkg" = "X$p"; then
3135 enable_shared=yes
3136 fi
3137 done
3138 IFS="$lt_save_ifs"
3139 ;;
3140 esac
3141 else
3142 enable_shared=yes
3143 fi;
3144
3145
3146 if test "$CXXFLAGS" = ""; then
3147 CXXFLAGS="-O2"
3148 fi
3149
3150
3151
3152 if test x"`egrep _REENTRANT /usr/include/features.h`" != x; then
3153 CXXFLAGS="-D_REENTRANT $CXXFLAGS"
3154 CFLAGS="-D_REENTRANT $CFLAGS"
3155 fi
3156
3157 CXXFLAGS="-Wall $CXXFLAGS"
3158
3159 # Check whether --enable-static or --disable-static was given.
3160 if test "${enable_static+set}" = set; then
3161 enableval="$enable_static"
3162 p=${PACKAGE-default}
3163 case $enableval in
3164 yes) enable_static=yes ;;
3165 no) enable_static=no ;;
3166 *)
3167 enable_static=no
3168 # Look at the argument we got. We use all the common list separators.
3169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3170 for pkg in $enableval; do
3171 IFS="$lt_save_ifs"
3172 if test "X$pkg" = "X$p"; then
3173 enable_static=yes
3174 fi
3175 done
3176 IFS="$lt_save_ifs"
3177 ;;
3178 esac
3179 else
3180 enable_static=yes
3181 fi;
3182
3183 # Check whether --enable-fast-install or --disable-fast-install was given.
3184 if test "${enable_fast_install+set}" = set; then
3185 enableval="$enable_fast_install"
3186 p=${PACKAGE-default}
3187 case $enableval in
3188 yes) enable_fast_install=yes ;;
3189 no) enable_fast_install=no ;;
3190 *)
3191 enable_fast_install=no
3192 # Look at the argument we got. We use all the common list separators.
3193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194 for pkg in $enableval; do
3195 IFS="$lt_save_ifs"
3196 if test "X$pkg" = "X$p"; then
3197 enable_fast_install=yes
3198 fi
3199 done
3200 IFS="$lt_save_ifs"
3201 ;;
3202 esac
3203 else
3204 enable_fast_install=yes
3205 fi;
3206
3207 # Make sure we can run config.sub.
3208 $ac_config_sub sun4 >/dev/null 2>&1 ||
3209 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3210 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3211 { (exit 1); exit 1; }; }
3212
3213 echo "$as_me:$LINENO: checking build system type" >&5
3214 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3215 if test "${ac_cv_build+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 ac_cv_build_alias=$build_alias
3219 test -z "$ac_cv_build_alias" &&
3220 ac_cv_build_alias=`$ac_config_guess`
3221 test -z "$ac_cv_build_alias" &&
3222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3223 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3224 { (exit 1); exit 1; }; }
3225 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3226 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3227 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3228 { (exit 1); exit 1; }; }
3229
3230 fi
3231 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3232 echo "${ECHO_T}$ac_cv_build" >&6
3233 build=$ac_cv_build
3234 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3235 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3236 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3237
3238
3239 echo "$as_me:$LINENO: checking host system type" >&5
3240 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3241 if test "${ac_cv_host+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 ac_cv_host_alias=$host_alias
3245 test -z "$ac_cv_host_alias" &&
3246 ac_cv_host_alias=$ac_cv_build_alias
3247 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3248 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3249 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3250 { (exit 1); exit 1; }; }
3251
3252 fi
3253 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3254 echo "${ECHO_T}$ac_cv_host" >&6
3255 host=$ac_cv_host
3256 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3257 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3258 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3259
3260
3261 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3262 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3263 if test "${lt_cv_path_SED+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 # Loop through the user's path and test for sed and gsed.
3267 # Then use that list of sed's as ones to test for truncation.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for lt_ac_prog in sed gsed; do
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3276 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3277 fi
3278 done
3279 done
3280 done
3281 lt_ac_max=0
3282 lt_ac_count=0
3283 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3284 # along with /bin/sed that truncates output.
3285 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3286 test ! -f $lt_ac_sed && continue
3287 cat /dev/null > conftest.in
3288 lt_ac_count=0
3289 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3290 # Check for GNU sed and select it if it is found.
3291 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3292 lt_cv_path_SED=$lt_ac_sed
3293 break
3294 fi
3295 while true; do
3296 cat conftest.in conftest.in >conftest.tmp
3297 mv conftest.tmp conftest.in
3298 cp conftest.in conftest.nl
3299 echo >>conftest.nl
3300 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3301 cmp -s conftest.out conftest.nl || break
3302 # 10000 chars as input seems more than enough
3303 test $lt_ac_count -gt 10 && break
3304 lt_ac_count=`expr $lt_ac_count + 1`
3305 if test $lt_ac_count -gt $lt_ac_max; then
3306 lt_ac_max=$lt_ac_count
3307 lt_cv_path_SED=$lt_ac_sed
3308 fi
3309 done
3310 done
3311
3312 fi
3313
3314 SED=$lt_cv_path_SED
3315 echo "$as_me:$LINENO: result: $SED" >&5
3316 echo "${ECHO_T}$SED" >&6
3317
3318 echo "$as_me:$LINENO: checking for egrep" >&5
3319 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3320 if test "${ac_cv_prog_egrep+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3324 then ac_cv_prog_egrep='grep -E'
3325 else ac_cv_prog_egrep='egrep'
3326 fi
3327 fi
3328 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3329 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3330 EGREP=$ac_cv_prog_egrep
3331
3332
3333
3334 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3335 if test "${with_gnu_ld+set}" = set; then
3336 withval="$with_gnu_ld"
3337 test "$withval" = no || with_gnu_ld=yes
3338 else
3339 with_gnu_ld=no
3340 fi;
3341 ac_prog=ld
3342 if test "$GCC" = yes; then
3343 # Check if gcc -print-prog-name=ld gives a path.
3344 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3345 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3346 case $host in
3347 *-*-mingw*)
3348 # gcc leaves a trailing carriage return which upsets mingw
3349 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3350 *)
3351 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3352 esac
3353 case $ac_prog in
3354 # Accept absolute paths.
3355 [\\/]* | ?:[\\/]*)
3356 re_direlt='/[^/][^/]*/\.\./'
3357 # Canonicalize the pathname of ld
3358 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3359 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3360 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3361 done
3362 test -z "$LD" && LD="$ac_prog"
3363 ;;
3364 "")
3365 # If it fails, then pretend we aren't using GCC.
3366 ac_prog=ld
3367 ;;
3368 *)
3369 # If it is relative, then search for the first ld in PATH.
3370 with_gnu_ld=unknown
3371 ;;
3372 esac
3373 elif test "$with_gnu_ld" = yes; then
3374 echo "$as_me:$LINENO: checking for GNU ld" >&5
3375 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3376 else
3377 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3378 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3379 fi
3380 if test "${lt_cv_path_LD+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -z "$LD"; then
3384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3385 for ac_dir in $PATH; do
3386 IFS="$lt_save_ifs"
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3389 lt_cv_path_LD="$ac_dir/$ac_prog"
3390 # Check to see if the program is GNU ld. I'd rather use --version,
3391 # but apparently some variants of GNU ld only accept -v.
3392 # Break only if it was the GNU/non-GNU ld that we prefer.
3393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3394 *GNU* | *'with BFD'*)
3395 test "$with_gnu_ld" != no && break
3396 ;;
3397 *)
3398 test "$with_gnu_ld" != yes && break
3399 ;;
3400 esac
3401 fi
3402 done
3403 IFS="$lt_save_ifs"
3404 else
3405 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3406 fi
3407 fi
3408
3409 LD="$lt_cv_path_LD"
3410 if test -n "$LD"; then
3411 echo "$as_me:$LINENO: result: $LD" >&5
3412 echo "${ECHO_T}$LD" >&6
3413 else
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3418 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3419 { (exit 1); exit 1; }; }
3420 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3421 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3422 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3426 case `$LD -v 2>&1 </dev/null` in
3427 *GNU* | *'with BFD'*)
3428 lt_cv_prog_gnu_ld=yes
3429 ;;
3430 *)
3431 lt_cv_prog_gnu_ld=no
3432 ;;
3433 esac
3434 fi
3435 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3436 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3437 with_gnu_ld=$lt_cv_prog_gnu_ld
3438
3439
3440 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3441 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3442 if test "${lt_cv_ld_reload_flag+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 lt_cv_ld_reload_flag='-r'
3446 fi
3447 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3448 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3449 reload_flag=$lt_cv_ld_reload_flag
3450 case $reload_flag in
3451 "" | " "*) ;;
3452 *) reload_flag=" $reload_flag" ;;
3453 esac
3454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3455 case $host_os in
3456 darwin*)
3457 if test "$GCC" = yes; then
3458 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3459 else
3460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3461 fi
3462 ;;
3463 esac
3464
3465 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3466 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3467 if test "${lt_cv_path_NM+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 if test -n "$NM"; then
3471 # Let the user override the test.
3472 lt_cv_path_NM="$NM"
3473 else
3474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3475 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3476 IFS="$lt_save_ifs"
3477 test -z "$ac_dir" && ac_dir=.
3478 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3480 # Check to see if the nm accepts a BSD-compat flag.
3481 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3482 # nm: unknown option "B" ignored
3483 # Tru64's nm complains that /dev/null is an invalid object file
3484 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3485 */dev/null* | *'Invalid file or object type'*)
3486 lt_cv_path_NM="$tmp_nm -B"
3487 break
3488 ;;
3489 *)
3490 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3491 */dev/null*)
3492 lt_cv_path_NM="$tmp_nm -p"
3493 break
3494 ;;
3495 *)
3496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3497 continue # so that we can try to find one that supports BSD flags
3498 ;;
3499 esac
3500 esac
3501 fi
3502 done
3503 IFS="$lt_save_ifs"
3504 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3505 fi
3506 fi
3507 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3508 echo "${ECHO_T}$lt_cv_path_NM" >&6
3509 NM="$lt_cv_path_NM"
3510
3511 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3512 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513 LN_S=$as_ln_s
3514 if test "$LN_S" = "ln -s"; then
3515 echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3519 echo "${ECHO_T}no, using $LN_S" >&6
3520 fi
3521
3522 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3523 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3524 if test "${lt_cv_deplibs_check_method+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 lt_cv_file_magic_cmd='$MAGIC_CMD'
3528 lt_cv_file_magic_test_file=
3529 lt_cv_deplibs_check_method='unknown'
3530 # Need to set the preceding variable on all platforms that support
3531 # interlibrary dependencies.
3532 # 'none' -- dependencies not supported.
3533 # `unknown' -- same as none, but documents that we really don't know.
3534 # 'pass_all' -- all dependencies passed with no checks.
3535 # 'test_compile' -- check by making test program.
3536 # 'file_magic [[regex]]' -- check by looking for files in library path
3537 # which responds to the $file_magic_cmd with a given extended regex.
3538 # If you have `file' or equivalent on your system and you're not sure
3539 # whether `pass_all' will *always* work, you probably want this one.
3540
3541 case $host_os in
3542 aix4* | aix5*)
3543 lt_cv_deplibs_check_method=pass_all
3544 ;;
3545
3546 beos*)
3547 lt_cv_deplibs_check_method=pass_all
3548 ;;
3549
3550 bsdi[45]*)
3551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3552 lt_cv_file_magic_cmd='/usr/bin/file -L'
3553 lt_cv_file_magic_test_file=/shlib/libc.so
3554 ;;
3555
3556 cygwin*)
3557 # func_win32_libid is a shell function defined in ltmain.sh
3558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3559 lt_cv_file_magic_cmd='func_win32_libid'
3560 ;;
3561
3562 mingw* | pw32*)
3563 # Base MSYS/MinGW do not provide the 'file' command needed by
3564 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3565 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3566 lt_cv_file_magic_cmd='$OBJDUMP -f'
3567 ;;
3568
3569 darwin* | rhapsody*)
3570 lt_cv_deplibs_check_method=pass_all
3571 ;;
3572
3573 freebsd* | kfreebsd*-gnu | dragonfly*)
3574 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3575 case $host_cpu in
3576 i*86 )
3577 # Not sure whether the presence of OpenBSD here was a mistake.
3578 # Let's accept both of them until this is cleared up.
3579 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3580 lt_cv_file_magic_cmd=/usr/bin/file
3581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3582 ;;
3583 esac
3584 else
3585 lt_cv_deplibs_check_method=pass_all
3586 fi
3587 ;;
3588
3589 gnu*)
3590 lt_cv_deplibs_check_method=pass_all
3591 ;;
3592
3593 hpux10.20* | hpux11*)
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 case $host_cpu in
3596 ia64*)
3597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3599 ;;
3600 hppa*64*)
3601 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]'
3602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3603 ;;
3604 *)
3605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3607 ;;
3608 esac
3609 ;;
3610
3611 irix5* | irix6* | nonstopux*)
3612 case $LD in
3613 *-32|*"-32 ") libmagic=32-bit;;
3614 *-n32|*"-n32 ") libmagic=N32;;
3615 *-64|*"-64 ") libmagic=64-bit;;
3616 *) libmagic=never-match;;
3617 esac
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
3621 # This must be Linux ELF.
3622 linux*)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625
3626 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3629 else
3630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3631 fi
3632 ;;
3633
3634 newos6*)
3635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3636 lt_cv_file_magic_cmd=/usr/bin/file
3637 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3638 ;;
3639
3640 nto-qnx*)
3641 lt_cv_deplibs_check_method=unknown
3642 ;;
3643
3644 openbsd*)
3645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3647 else
3648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3649 fi
3650 ;;
3651
3652 osf3* | osf4* | osf5*)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655
3656 sco3.2v5*)
3657 lt_cv_deplibs_check_method=pass_all
3658 ;;
3659
3660 solaris*)
3661 lt_cv_deplibs_check_method=pass_all
3662 ;;
3663
3664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3665 case $host_vendor in
3666 motorola)
3667 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]'
3668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3669 ;;
3670 ncr)
3671 lt_cv_deplibs_check_method=pass_all
3672 ;;
3673 sequent)
3674 lt_cv_file_magic_cmd='/bin/file'
3675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3676 ;;
3677 sni)
3678 lt_cv_file_magic_cmd='/bin/file'
3679 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3680 lt_cv_file_magic_test_file=/lib/libc.so
3681 ;;
3682 siemens)
3683 lt_cv_deplibs_check_method=pass_all
3684 ;;
3685 esac
3686 ;;
3687
3688 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3689 lt_cv_deplibs_check_method=pass_all
3690 ;;
3691 esac
3692
3693 fi
3694 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3695 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3696 file_magic_cmd=$lt_cv_file_magic_cmd
3697 deplibs_check_method=$lt_cv_deplibs_check_method
3698 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3699
3700
3701
3702
3703 # If no C compiler was specified, use CC.
3704 LTCC=${LTCC-"$CC"}
3705
3706 # Allow CC to be a program name with arguments.
3707 compiler=$CC
3708
3709 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3710 if test "${enable_libtool_lock+set}" = set; then
3711 enableval="$enable_libtool_lock"
3712
3713 fi;
3714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3715
3716 # Some flags need to be propagated to the compiler or linker for good
3717 # libtool support.
3718 case $host in
3719 ia64-*-hpux*)
3720 # Find out which ABI we are using.
3721 echo 'int i;' > conftest.$ac_ext
3722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; then
3727 case `/usr/bin/file conftest.$ac_objext` in
3728 *ELF-32*)
3729 HPUX_IA64_MODE="32"
3730 ;;
3731 *ELF-64*)
3732 HPUX_IA64_MODE="64"
3733 ;;
3734 esac
3735 fi
3736 rm -rf conftest*
3737 ;;
3738 *-*-irix6*)
3739 # Find out which ABI we are using.
3740 echo '#line 3740 "configure"' > conftest.$ac_ext
3741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742 (eval $ac_compile) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; then
3746 if test "$lt_cv_prog_gnu_ld" = yes; then
3747 case `/usr/bin/file conftest.$ac_objext` in
3748 *32-bit*)
3749 LD="${LD-ld} -melf32bsmip"
3750 ;;
3751 *N32*)
3752 LD="${LD-ld} -melf32bmipn32"
3753 ;;
3754 *64-bit*)
3755 LD="${LD-ld} -melf64bmip"
3756 ;;
3757 esac
3758 else
3759 case `/usr/bin/file conftest.$ac_objext` in
3760 *32-bit*)
3761 LD="${LD-ld} -32"
3762 ;;
3763 *N32*)
3764 LD="${LD-ld} -n32"
3765 ;;
3766 *64-bit*)
3767 LD="${LD-ld} -64"
3768 ;;
3769 esac
3770 fi
3771 fi
3772 rm -rf conftest*
3773 ;;
3774
3775 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3776 # Find out which ABI we are using.
3777 echo 'int i;' > conftest.$ac_ext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; then
3783 case `/usr/bin/file conftest.o` in
3784 *32-bit*)
3785 case $host in
3786 x86_64-*linux*)
3787 LD="${LD-ld} -m elf_i386"
3788 ;;
3789 ppc64-*linux*|powerpc64-*linux*)
3790 LD="${LD-ld} -m elf32ppclinux"
3791 ;;
3792 s390x-*linux*)
3793 LD="${LD-ld} -m elf_s390"
3794 ;;
3795 sparc64-*linux*)
3796 LD="${LD-ld} -m elf32_sparc"
3797 ;;
3798 esac
3799 ;;
3800 *64-bit*)
3801 case $host in
3802 x86_64-*linux*)
3803 LD="${LD-ld} -m elf_x86_64"
3804 ;;
3805 ppc*-*linux*|powerpc*-*linux*)
3806 LD="${LD-ld} -m elf64ppc"
3807 ;;
3808 s390*-*linux*)
3809 LD="${LD-ld} -m elf64_s390"
3810 ;;
3811 sparc*-*linux*)
3812 LD="${LD-ld} -m elf64_sparc"
3813 ;;
3814 esac
3815 ;;
3816 esac
3817 fi
3818 rm -rf conftest*
3819 ;;
3820
3821 *-*-sco3.2v5*)
3822 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3823 SAVE_CFLAGS="$CFLAGS"
3824 CFLAGS="$CFLAGS -belf"
3825 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3826 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3827 if test "${lt_cv_cc_needs_belf+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest$ac_exeext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 lt_cv_cc_needs_belf=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 lt_cv_cc_needs_belf=no
3878 fi
3879 rm -f conftest.err conftest.$ac_objext \
3880 conftest$ac_exeext conftest.$ac_ext
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887 fi
3888 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3889 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3890 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3891 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3892 CFLAGS="$SAVE_CFLAGS"
3893 fi
3894 ;;
3895
3896 esac
3897
3898 need_locks="$enable_libtool_lock"
3899
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908 # On Suns, sometimes $CPP names a directory.
3909 if test -n "$CPP" && test -d "$CPP"; then
3910 CPP=
3911 fi
3912 if test -z "$CPP"; then
3913 if test "${ac_cv_prog_CPP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 # Double quotes because CPP needs to be expanded
3917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918 do
3919 ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #ifdef __STDC__
3935 # include <limits.h>
3936 #else
3937 # include <assert.h>
3938 #endif
3939 Syntax error
3940 _ACEOF
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } >/dev/null; then
3949 if test -s conftest.err; then
3950 ac_cpp_err=$ac_c_preproc_warn_flag
3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 else
3953 ac_cpp_err=
3954 fi
3955 else
3956 ac_cpp_err=yes
3957 fi
3958 if test -z "$ac_cpp_err"; then
3959 :
3960 else
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 # Broken: fails on valid input.
3965 continue
3966 fi
3967 rm -f conftest.err conftest.$ac_ext
3968
3969 # OK, works on sane cases. Now check whether non-existent headers
3970 # can be detected and how.
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <ac_nonexistent.h>
3978 _ACEOF
3979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } >/dev/null; then
3987 if test -s conftest.err; then
3988 ac_cpp_err=$ac_c_preproc_warn_flag
3989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 else
3991 ac_cpp_err=
3992 fi
3993 else
3994 ac_cpp_err=yes
3995 fi
3996 if test -z "$ac_cpp_err"; then
3997 # Broken: success on invalid input.
3998 continue
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4006 fi
4007 rm -f conftest.err conftest.$ac_ext
4008
4009 done
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then
4013 break
4014 fi
4015
4016 done
4017 ac_cv_prog_CPP=$CPP
4018
4019 fi
4020 CPP=$ac_cv_prog_CPP
4021 else
4022 ac_cv_prog_CPP=$CPP
4023 fi
4024 echo "$as_me:$LINENO: result: $CPP" >&5
4025 echo "${ECHO_T}$CPP" >&6
4026 ac_preproc_ok=false
4027 for ac_c_preproc_warn_flag in '' yes
4028 do
4029 # Use a header file that comes with gcc, so configuring glibc
4030 # with a fresh cross-compiler works.
4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032 # <limits.h> exists even on freestanding compilers.
4033 # On the NeXT, cc -E runs the code through the compiler's parser,
4034 # not just through cpp. "Syntax error" is here to catch this case.
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #ifdef __STDC__
4042 # include <limits.h>
4043 #else
4044 # include <assert.h>
4045 #endif
4046 Syntax error
4047 _ACEOF
4048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } >/dev/null; then
4056 if test -s conftest.err; then
4057 ac_cpp_err=$ac_c_preproc_warn_flag
4058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 else
4060 ac_cpp_err=
4061 fi
4062 else
4063 ac_cpp_err=yes
4064 fi
4065 if test -z "$ac_cpp_err"; then
4066 :
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 # Broken: fails on valid input.
4072 continue
4073 fi
4074 rm -f conftest.err conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether non-existent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4099 fi
4100 else
4101 ac_cpp_err=yes
4102 fi
4103 if test -z "$ac_cpp_err"; then
4104 # Broken: success on invalid input.
4105 continue
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 # Passes both tests.
4111 ac_preproc_ok=:
4112 break
4113 fi
4114 rm -f conftest.err conftest.$ac_ext
4115
4116 done
4117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118 rm -f conftest.err conftest.$ac_ext
4119 if $ac_preproc_ok; then
4120 :
4121 else
4122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123 See \`config.log' for more details." >&5
4124 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125 See \`config.log' for more details." >&2;}
4126 { (exit 1); exit 1; }; }
4127 fi
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135
4136 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4138 if test "${ac_cv_header_stdc+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <stdlib.h>
4148 #include <stdarg.h>
4149 #include <string.h>
4150 #include <float.h>
4151
4152 int
4153 main ()
4154 {
4155
4156 ;
4157 return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_header_stdc=yes
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ac_cv_header_stdc=no
4187 fi
4188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189
4190 if test $ac_cv_header_stdc = yes; then
4191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <string.h>
4199
4200 _ACEOF
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202 $EGREP "memchr" >/dev/null 2>&1; then
4203 :
4204 else
4205 ac_cv_header_stdc=no
4206 fi
4207 rm -f conftest*
4208
4209 fi
4210
4211 if test $ac_cv_header_stdc = yes; then
4212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <stdlib.h>
4220
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "free" >/dev/null 2>&1; then
4224 :
4225 else
4226 ac_cv_header_stdc=no
4227 fi
4228 rm -f conftest*
4229
4230 fi
4231
4232 if test $ac_cv_header_stdc = yes; then
4233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234 if test "$cross_compiling" = yes; then
4235 :
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 #include <ctype.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4254
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 int
4257 main ()
4258 {
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4263 exit(2);
4264 exit (0);
4265 }
4266 _ACEOF
4267 rm -f conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 :
4279 else
4280 echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 ( exit $ac_status )
4285 ac_cv_header_stdc=no
4286 fi
4287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4288 fi
4289 fi
4290 fi
4291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4293 if test $ac_cv_header_stdc = yes; then
4294
4295 cat >>confdefs.h <<\_ACEOF
4296 #define STDC_HEADERS 1
4297 _ACEOF
4298
4299 fi
4300
4301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312 inttypes.h stdint.h unistd.h
4313 do
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327
4328 #include <$ac_header>
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest.$ac_objext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 eval "$as_ac_Header=yes"
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 eval "$as_ac_Header=no"
4357 fi
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4363 cat >>confdefs.h <<_ACEOF
4364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365 _ACEOF
4366
4367 fi
4368
4369 done
4370
4371
4372
4373 for ac_header in dlfcn.h
4374 do
4375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377 echo "$as_me:$LINENO: checking for $ac_header" >&5
4378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 fi
4382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4384 else
4385 # Is the header compilable?
4386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4395 #include <$ac_header>
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_header_compiler=yes
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_header_compiler=no
4424 fi
4425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4427 echo "${ECHO_T}$ac_header_compiler" >&6
4428
4429 # Is the header present?
4430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 #include <$ac_header>
4439 _ACEOF
4440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } >/dev/null; then
4448 if test -s conftest.err; then
4449 ac_cpp_err=$ac_c_preproc_warn_flag
4450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4451 else
4452 ac_cpp_err=
4453 fi
4454 else
4455 ac_cpp_err=yes
4456 fi
4457 if test -z "$ac_cpp_err"; then
4458 ac_header_preproc=yes
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 ac_header_preproc=no
4464 fi
4465 rm -f conftest.err conftest.$ac_ext
4466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4467 echo "${ECHO_T}$ac_header_preproc" >&6
4468
4469 # So? What about this header?
4470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4471 yes:no: )
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4476 ac_header_preproc=yes
4477 ;;
4478 no:yes:* )
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4491 (
4492 cat <<\_ASBOX
4493 ## ------------------------------------------ ##
4494 ## Report this to the AC_PACKAGE_NAME lists. ##
4495 ## ------------------------------------------ ##
4496 _ASBOX
4497 ) |
4498 sed "s/^/$as_me: WARNING: /" >&2
4499 ;;
4500 esac
4501 echo "$as_me:$LINENO: checking for $ac_header" >&5
4502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 eval "$as_ac_Header=\$ac_header_preproc"
4507 fi
4508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510
4511 fi
4512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4515 _ACEOF
4516
4517 fi
4518
4519 done
4520
4521 ac_ext=cc
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4528 do
4529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_prog_CXX+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 if test -n "$CXX"; then
4537 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552
4553 fi
4554 fi
4555 CXX=$ac_cv_prog_CXX
4556 if test -n "$CXX"; then
4557 echo "$as_me:$LINENO: result: $CXX" >&5
4558 echo "${ECHO_T}$CXX" >&6
4559 else
4560 echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4562 fi
4563
4564 test -n "$CXX" && break
4565 done
4566 fi
4567 if test -z "$CXX"; then
4568 ac_ct_CXX=$CXX
4569 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4570 do
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 if test -n "$ac_ct_CXX"; then
4579 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_ac_ct_CXX="$ac_prog"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592 done
4593 done
4594
4595 fi
4596 fi
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4600 echo "${ECHO_T}$ac_ct_CXX" >&6
4601 else
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4604 fi
4605
4606 test -n "$ac_ct_CXX" && break
4607 done
4608 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4609
4610 CXX=$ac_ct_CXX
4611 fi
4612
4613
4614 # Provide some information about the compiler.
4615 echo "$as_me:$LINENO:" \
4616 "checking for C++ compiler version" >&5
4617 ac_compiler=`set X $ac_compile; echo $2`
4618 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4619 (eval $ac_compiler --version </dev/null >&5) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }
4623 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4624 (eval $ac_compiler -v </dev/null >&5) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4629 (eval $ac_compiler -V </dev/null >&5) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }
4633
4634 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4635 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4636 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645
4646 int
4647 main ()
4648 {
4649 #ifndef __GNUC__
4650 choke me
4651 #endif
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_compiler_gnu=yes
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 ac_compiler_gnu=no
4684 fi
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4687
4688 fi
4689 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4690 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4691 GXX=`test $ac_compiler_gnu = yes && echo yes`
4692 ac_test_CXXFLAGS=${CXXFLAGS+set}
4693 ac_save_CXXFLAGS=$CXXFLAGS
4694 CXXFLAGS="-g"
4695 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4696 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4697 if test "${ac_cv_prog_cxx_g+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706
4707 int
4708 main ()
4709 {
4710
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717 (eval $ac_compile) 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_cv_prog_cxx_g=yes
4737 else
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 ac_cv_prog_cxx_g=no
4742 fi
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4747 if test "$ac_test_CXXFLAGS" = set; then
4748 CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750 if test "$GXX" = yes; then
4751 CXXFLAGS="-g -O2"
4752 else
4753 CXXFLAGS="-g"
4754 fi
4755 else
4756 if test "$GXX" = yes; then
4757 CXXFLAGS="-O2"
4758 else
4759 CXXFLAGS=
4760 fi
4761 fi
4762 for ac_declaration in \
4763 '' \
4764 'extern "C" void std::exit (int) throw (); using std::exit;' \
4765 'extern "C" void std::exit (int); using std::exit;' \
4766 'extern "C" void exit (int) throw ();' \
4767 'extern "C" void exit (int);' \
4768 'void exit (int);'
4769 do
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 $ac_declaration
4777 #include <stdlib.h>
4778 int
4779 main ()
4780 {
4781 exit (42);
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 :
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 continue
4813 fi
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_declaration
4822 int
4823 main ()
4824 {
4825 exit (42);
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 break
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 fi
4857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 done
4859 rm -f conftest*
4860 if test -n "$ac_declaration"; then
4861 echo '#ifdef __cplusplus' >>confdefs.h
4862 echo $ac_declaration >>confdefs.h
4863 echo '#endif' >>confdefs.h
4864 fi
4865
4866 ac_ext=cc
4867 ac_cpp='$CXXCPP $CPPFLAGS'
4868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4871
4872 depcc="$CXX" am_compiler_list=
4873
4874 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4875 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4876 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4880 # We make a subdir and do the tests there. Otherwise we can end up
4881 # making bogus files that we don't know about and never remove. For
4882 # instance it was reported that on HP-UX the gcc test will end up
4883 # making a dummy file named `D' -- because `-MD' means `put the output
4884 # in D'.
4885 mkdir conftest.dir
4886 # Copy depcomp to subdir because otherwise we won't find it if we're
4887 # using a relative directory.
4888 cp "$am_depcomp" conftest.dir
4889 cd conftest.dir
4890 # We will build objects and dependencies in a subdirectory because
4891 # it helps to detect inapplicable dependency modes. For instance
4892 # both Tru64's cc and ICC support -MD to output dependencies as a
4893 # side effect of compilation, but ICC will put the dependencies in
4894 # the current directory while Tru64 will put them in the object
4895 # directory.
4896 mkdir sub
4897
4898 am_cv_CXX_dependencies_compiler_type=none
4899 if test "$am_compiler_list" = ""; then
4900 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4901 fi
4902 for depmode in $am_compiler_list; do
4903 # Setup a source with many dependencies, because some compilers
4904 # like to wrap large dependency lists on column 80 (with \), and
4905 # we should not choose a depcomp mode which is confused by this.
4906 #
4907 # We need to recreate these files for each test, as the compiler may
4908 # overwrite some of them when testing with obscure command lines.
4909 # This happens at least with the AIX C compiler.
4910 : > sub/conftest.c
4911 for i in 1 2 3 4 5 6; do
4912 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4913 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4914 # Solaris 8's {/usr,}/bin/sh.
4915 touch sub/conftst$i.h
4916 done
4917 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4918
4919 case $depmode in
4920 nosideeffect)
4921 # after this tag, mechanisms are not by side-effect, so they'll
4922 # only be used when explicitly requested
4923 if test "x$enable_dependency_tracking" = xyes; then
4924 continue
4925 else
4926 break
4927 fi
4928 ;;
4929 none) break ;;
4930 esac
4931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4932 # mode. It turns out that the SunPro C++ compiler does not properly
4933 # handle `-M -o', and we need to detect this.
4934 if depmode=$depmode \
4935 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4937 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4938 >/dev/null 2>conftest.err &&
4939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4940 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4942 # icc doesn't choke on unknown options, it will just issue warnings
4943 # or remarks (even with -Werror). So we grep stderr for any message
4944 # that says an option was ignored or not supported.
4945 # When given -MP, icc 7.0 and 7.1 complain thusly:
4946 # icc: Command line warning: ignoring option '-M'; no argument required
4947 # The diagnosis changed in icc 8.0:
4948 # icc: Command line remark: option '-MP' not supported
4949 if (grep 'ignoring option' conftest.err ||
4950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4951 am_cv_CXX_dependencies_compiler_type=$depmode
4952 break
4953 fi
4954 fi
4955 done
4956
4957 cd ..
4958 rm -rf conftest.dir
4959 else
4960 am_cv_CXX_dependencies_compiler_type=none
4961 fi
4962
4963 fi
4964 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4965 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4966 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4967
4968
4969
4970 if
4971 test "x$enable_dependency_tracking" != xno \
4972 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4973 am__fastdepCXX_TRUE=
4974 am__fastdepCXX_FALSE='#'
4975 else
4976 am__fastdepCXX_TRUE='#'
4977 am__fastdepCXX_FALSE=
4978 fi
4979
4980
4981
4982
4983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4985 (test "X$CXX" != "Xg++"))) ; then
4986 ac_ext=cc
4987 ac_cpp='$CXXCPP $CPPFLAGS'
4988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4992 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4993 if test -z "$CXXCPP"; then
4994 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 # Double quotes because CXXCPP needs to be expanded
4998 for CXXCPP in "$CXX -E" "/lib/cpp"
4999 do
5000 ac_preproc_ok=false
5001 for ac_cxx_preproc_warn_flag in '' yes
5002 do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020 Syntax error
5021 _ACEOF
5022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } >/dev/null; then
5030 if test -s conftest.err; then
5031 ac_cpp_err=$ac_cxx_preproc_warn_flag
5032 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5033 else
5034 ac_cpp_err=
5035 fi
5036 else
5037 ac_cpp_err=yes
5038 fi
5039 if test -z "$ac_cpp_err"; then
5040 :
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 # Broken: fails on valid input.
5046 continue
5047 fi
5048 rm -f conftest.err conftest.$ac_ext
5049
5050 # OK, works on sane cases. Now check whether non-existent headers
5051 # can be detected and how.
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <ac_nonexistent.h>
5059 _ACEOF
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_cxx_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071 else
5072 ac_cpp_err=
5073 fi
5074 else
5075 ac_cpp_err=yes
5076 fi
5077 if test -z "$ac_cpp_err"; then
5078 # Broken: success on invalid input.
5079 continue
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 # Passes both tests.
5085 ac_preproc_ok=:
5086 break
5087 fi
5088 rm -f conftest.err conftest.$ac_ext
5089
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then
5094 break
5095 fi
5096
5097 done
5098 ac_cv_prog_CXXCPP=$CXXCPP
5099
5100 fi
5101 CXXCPP=$ac_cv_prog_CXXCPP
5102 else
5103 ac_cv_prog_CXXCPP=$CXXCPP
5104 fi
5105 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5106 echo "${ECHO_T}$CXXCPP" >&6
5107 ac_preproc_ok=false
5108 for ac_cxx_preproc_warn_flag in '' yes
5109 do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #ifdef __STDC__
5123 # include <limits.h>
5124 #else
5125 # include <assert.h>
5126 #endif
5127 Syntax error
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_cxx_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143 else
5144 ac_cpp_err=yes
5145 fi
5146 if test -z "$ac_cpp_err"; then
5147 :
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 # Broken: fails on valid input.
5153 continue
5154 fi
5155 rm -f conftest.err conftest.$ac_ext
5156
5157 # OK, works on sane cases. Now check whether non-existent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 #include <ac_nonexistent.h>
5166 _ACEOF
5167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null; then
5175 if test -s conftest.err; then
5176 ac_cpp_err=$ac_cxx_preproc_warn_flag
5177 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178 else
5179 ac_cpp_err=
5180 fi
5181 else
5182 ac_cpp_err=yes
5183 fi
5184 if test -z "$ac_cpp_err"; then
5185 # Broken: success on invalid input.
5186 continue
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 # Passes both tests.
5192 ac_preproc_ok=:
5193 break
5194 fi
5195 rm -f conftest.err conftest.$ac_ext
5196
5197 done
5198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199 rm -f conftest.err conftest.$ac_ext
5200 if $ac_preproc_ok; then
5201 :
5202 else
5203 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5208 fi
5209
5210 ac_ext=cc
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215
5216 fi
5217
5218
5219 ac_ext=f
5220 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5221 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5223 if test -n "$ac_tool_prefix"; then
5224 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5225 do
5226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5228 echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230 if test "${ac_cv_prog_F77+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 if test -n "$F77"; then
5234 ac_cv_prog_F77="$F77" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247 done
5248 done
5249
5250 fi
5251 fi
5252 F77=$ac_cv_prog_F77
5253 if test -n "$F77"; then
5254 echo "$as_me:$LINENO: result: $F77" >&5
5255 echo "${ECHO_T}$F77" >&6
5256 else
5257 echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6
5259 fi
5260
5261 test -n "$F77" && break
5262 done
5263 fi
5264 if test -z "$F77"; then
5265 ac_ct_F77=$F77
5266 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5267 do
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 if test -n "$ac_ct_F77"; then
5276 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_F77="$ac_prog"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291
5292 fi
5293 fi
5294 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5295 if test -n "$ac_ct_F77"; then
5296 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5297 echo "${ECHO_T}$ac_ct_F77" >&6
5298 else
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5301 fi
5302
5303 test -n "$ac_ct_F77" && break
5304 done
5305
5306 F77=$ac_ct_F77
5307 fi
5308
5309
5310 # Provide some information about the compiler.
5311 echo "$as_me:5311:" \
5312 "checking for Fortran 77 compiler version" >&5
5313 ac_compiler=`set X $ac_compile; echo $2`
5314 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5315 (eval $ac_compiler --version </dev/null >&5) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }
5319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5320 (eval $ac_compiler -v </dev/null >&5) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }
5324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5325 (eval $ac_compiler -V </dev/null >&5) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }
5329 rm -f a.out
5330
5331 # If we don't use `.F' as extension, the preprocessor is not run on the
5332 # input file. (Note that this only needs to work for GNU compilers.)
5333 ac_save_ext=$ac_ext
5334 ac_ext=F
5335 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5336 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5337 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 program main
5342 #ifndef __GNUC__
5343 choke me
5344 #endif
5345
5346 end
5347 _ACEOF
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_compiler_gnu=yes
5370 else
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5373
5374 ac_compiler_gnu=no
5375 fi
5376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5378
5379 fi
5380 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5381 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5382 ac_ext=$ac_save_ext
5383 ac_test_FFLAGS=${FFLAGS+set}
5384 ac_save_FFLAGS=$FFLAGS
5385 FFLAGS=
5386 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5387 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5388 if test "${ac_cv_prog_f77_g+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 FFLAGS=-g
5392 cat >conftest.$ac_ext <<_ACEOF
5393 program main
5394
5395 end
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_prog_f77_g=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_cv_prog_f77_g=no
5424 fi
5425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427 fi
5428 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5429 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5430 if test "$ac_test_FFLAGS" = set; then
5431 FFLAGS=$ac_save_FFLAGS
5432 elif test $ac_cv_prog_f77_g = yes; then
5433 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5434 FFLAGS="-g -O2"
5435 else
5436 FFLAGS="-g"
5437 fi
5438 else
5439 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5440 FFLAGS="-O2"
5441 else
5442 FFLAGS=
5443 fi
5444 fi
5445
5446 G77=`test $ac_compiler_gnu = yes && echo yes`
5447 ac_ext=c
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453
5454
5455 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5456
5457 # find the maximum length of command line arguments
5458 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5459 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5460 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 i=0
5464 teststring="ABCD"
5465
5466 case $build_os in
5467 msdosdjgpp*)
5468 # On DJGPP, this test can blow up pretty badly due to problems in libc
5469 # (any single argument exceeding 2000 bytes causes a buffer overrun
5470 # during glob expansion). Even if it were fixed, the result of this
5471 # check would be larger than it should be.
5472 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5473 ;;
5474
5475 gnu*)
5476 # Under GNU Hurd, this test is not required because there is
5477 # no limit to the length of command line arguments.
5478 # Libtool will interpret -1 as no limit whatsoever
5479 lt_cv_sys_max_cmd_len=-1;
5480 ;;
5481
5482 cygwin* | mingw*)
5483 # On Win9x/ME, this test blows up -- it succeeds, but takes
5484 # about 5 minutes as the teststring grows exponentially.
5485 # Worse, since 9x/ME are not pre-emptively multitasking,
5486 # you end up with a "frozen" computer, even though with patience
5487 # the test eventually succeeds (with a max line length of 256k).
5488 # Instead, let's just punt: use the minimum linelength reported by
5489 # all of the supported platforms: 8192 (on NT/2K/XP).
5490 lt_cv_sys_max_cmd_len=8192;
5491 ;;
5492
5493 amigaos*)
5494 # On AmigaOS with pdksh, this test takes hours, literally.
5495 # So we just punt and use a minimum line length of 8192.
5496 lt_cv_sys_max_cmd_len=8192;
5497 ;;
5498
5499 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5500 # This has been around since 386BSD, at least. Likely further.
5501 if test -x /sbin/sysctl; then
5502 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5503 elif test -x /usr/sbin/sysctl; then
5504 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5505 else
5506 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5507 fi
5508 # And add a safety zone
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511 ;;
5512 osf*)
5513 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5514 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5515 # nice to cause kernel panics so lets avoid the loop below.
5516 # First set a reasonable default.
5517 lt_cv_sys_max_cmd_len=16384
5518 #
5519 if test -x /sbin/sysconfig; then
5520 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5521 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5522 esac
5523 fi
5524 ;;
5525 *)
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5528 # we can't tell.
5529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531 = "XX$teststring") >/dev/null 2>&1 &&
5532 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533 lt_cv_sys_max_cmd_len=$new_result &&
5534 test $i != 17 # 1/2 MB should be enough
5535 do
5536 i=`expr $i + 1`
5537 teststring=$teststring$teststring
5538 done
5539 teststring=
5540 # Add a significant safety factor because C++ compilers can tack on massive
5541 # amounts of additional arguments before passing them to the linker.
5542 # It appears as though 1/2 is a usable value.
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544 ;;
5545 esac
5546
5547 fi
5548
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552 else
5553 echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5555 fi
5556
5557
5558
5559
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5569
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5572
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5581
5582 # Define system-specific variables.
5583 case $host_os in
5584 aix*)
5585 symcode='[BCDT]'
5586 ;;
5587 cygwin* | mingw* | pw32*)
5588 symcode='[ABCDGISTW]'
5589 ;;
5590 hpux*) # Its linker distinguishes data from code symbols
5591 if test "$host_cpu" = ia64; then
5592 symcode='[ABCDEGRST]'
5593 fi
5594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595 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'"
5596 ;;
5597 linux*)
5598 if test "$host_cpu" = ia64; then
5599 symcode='[ABCDGIRSTW]'
5600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601 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'"
5602 fi
5603 ;;
5604 irix* | nonstopux*)
5605 symcode='[BCDEGRST]'
5606 ;;
5607 osf*)
5608 symcode='[BCDEGQRST]'
5609 ;;
5610 solaris* | sysv5*)
5611 symcode='[BDRT]'
5612 ;;
5613 sysv4)
5614 symcode='[DFNSTU]'
5615 ;;
5616 esac
5617
5618 # Handle CRLF in mingw tool chain
5619 opt_cr=
5620 case $build_os in
5621 mingw*)
5622 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5623 ;;
5624 esac
5625
5626 # If we're using GNU nm, then use its standard symbol codes.
5627 case `$NM -V 2>&1` in
5628 *GNU* | *'with BFD'*)
5629 symcode='[ABCDGIRSTW]' ;;
5630 esac
5631
5632 # Try without a prefix undercore, then with it.
5633 for ac_symprfx in "" "_"; do
5634
5635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636 symxfrm="\\1 $ac_symprfx\\2 \\2"
5637
5638 # Write the raw and C identifiers.
5639 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5640
5641 # Check to see that the pipe works correctly.
5642 pipe_works=no
5643
5644 rm -f conftest*
5645 cat > conftest.$ac_ext <<EOF
5646 #ifdef __cplusplus
5647 extern "C" {
5648 #endif
5649 char nm_test_var;
5650 void nm_test_func(){}
5651 #ifdef __cplusplus
5652 }
5653 #endif
5654 int main(){nm_test_var='a';nm_test_func();return(0);}
5655 EOF
5656
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; then
5662 # Now try to grab the symbols.
5663 nlist=conftest.nm
5664 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5665 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && test -s "$nlist"; then
5669 # Try sorting and uniquifying the output.
5670 if sort "$nlist" | uniq > "$nlist"T; then
5671 mv -f "$nlist"T "$nlist"
5672 else
5673 rm -f "$nlist"T
5674 fi
5675
5676 # Make sure that we snagged all the symbols we need.
5677 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5678 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5679 cat <<EOF > conftest.$ac_ext
5680 #ifdef __cplusplus
5681 extern "C" {
5682 #endif
5683
5684 EOF
5685 # Now generate the symbol file.
5686 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5687
5688 cat <<EOF >> conftest.$ac_ext
5689 #if defined (__STDC__) && __STDC__
5690 # define lt_ptr_t void *
5691 #else
5692 # define lt_ptr_t char *
5693 # define const
5694 #endif
5695
5696 /* The mapping between symbol names and symbols. */
5697 const struct {
5698 const char *name;
5699 lt_ptr_t address;
5700 }
5701 lt_preloaded_symbols[] =
5702 {
5703 EOF
5704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5705 cat <<\EOF >> conftest.$ac_ext
5706 {0, (lt_ptr_t) 0}
5707 };
5708
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712 EOF
5713 # Now try linking the two files.
5714 mv conftest.$ac_objext conftstm.$ac_objext
5715 lt_save_LIBS="$LIBS"
5716 lt_save_CFLAGS="$CFLAGS"
5717 LIBS="conftstm.$ac_objext"
5718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5724 pipe_works=yes
5725 fi
5726 LIBS="$lt_save_LIBS"
5727 CFLAGS="$lt_save_CFLAGS"
5728 else
5729 echo "cannot find nm_test_func in $nlist" >&5
5730 fi
5731 else
5732 echo "cannot find nm_test_var in $nlist" >&5
5733 fi
5734 else
5735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5736 fi
5737 else
5738 echo "$progname: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 fi
5741 rm -f conftest* conftst*
5742
5743 # Do not use the global_symbol_pipe unless it works.
5744 if test "$pipe_works" = yes; then
5745 break
5746 else
5747 lt_cv_sys_global_symbol_pipe=
5748 fi
5749 done
5750
5751 fi
5752
5753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5754 lt_cv_sys_global_symbol_to_cdecl=
5755 fi
5756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5757 echo "$as_me:$LINENO: result: failed" >&5
5758 echo "${ECHO_T}failed" >&6
5759 else
5760 echo "$as_me:$LINENO: result: ok" >&5
5761 echo "${ECHO_T}ok" >&6
5762 fi
5763
5764 echo "$as_me:$LINENO: checking for objdir" >&5
5765 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5766 if test "${lt_cv_objdir+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 rm -f .libs 2>/dev/null
5770 mkdir .libs 2>/dev/null
5771 if test -d .libs; then
5772 lt_cv_objdir=.libs
5773 else
5774 # MS-DOS does not allow filenames that begin with a dot.
5775 lt_cv_objdir=_libs
5776 fi
5777 rmdir .libs 2>/dev/null
5778 fi
5779 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5780 echo "${ECHO_T}$lt_cv_objdir" >&6
5781 objdir=$lt_cv_objdir
5782
5783
5784
5785
5786
5787 case $host_os in
5788 aix3*)
5789 # AIX sometimes has problems with the GCC collect2 program. For some
5790 # reason, if we set the COLLECT_NAMES environment variable, the problems
5791 # vanish in a puff of smoke.
5792 if test "X${COLLECT_NAMES+set}" != Xset; then
5793 COLLECT_NAMES=
5794 export COLLECT_NAMES
5795 fi
5796 ;;
5797 esac
5798
5799 # Sed substitution that helps us do robust quoting. It backslashifies
5800 # metacharacters that are still active within double-quoted strings.
5801 Xsed='sed -e 1s/^X//'
5802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5803
5804 # Same as above, but do not quote variable references.
5805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5806
5807 # Sed substitution to delay expansion of an escaped shell variable in a
5808 # double_quote_subst'ed string.
5809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5810
5811 # Sed substitution to avoid accidental globbing in evaled expressions
5812 no_glob_subst='s/\*/\\\*/g'
5813
5814 # Constants:
5815 rm="rm -f"
5816
5817 # Global variables:
5818 default_ofile=libtool
5819 can_build_shared=yes
5820
5821 # All known linkers require a `.a' archive for static linking (except MSVC,
5822 # which needs '.lib').
5823 libext=a
5824 ltmain="$ac_aux_dir/ltmain.sh"
5825 ofile="$default_ofile"
5826 with_gnu_ld="$lt_cv_prog_gnu_ld"
5827
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ar; ac_word=$2
5831 echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833 if test "${ac_cv_prog_AR+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836 if test -n "$AR"; then
5837 ac_cv_prog_AR="$AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_AR="${ac_tool_prefix}ar"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850 done
5851 done
5852
5853 fi
5854 fi
5855 AR=$ac_cv_prog_AR
5856 if test -n "$AR"; then
5857 echo "$as_me:$LINENO: result: $AR" >&5
5858 echo "${ECHO_T}$AR" >&6
5859 else
5860 echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5862 fi
5863
5864 fi
5865 if test -z "$ac_cv_prog_AR"; then
5866 ac_ct_AR=$AR
5867 # Extract the first word of "ar", so it can be a program name with args.
5868 set dummy ar; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 if test -n "$ac_ct_AR"; then
5875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_ac_ct_AR="ar"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888 done
5889 done
5890
5891 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5892 fi
5893 fi
5894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5895 if test -n "$ac_ct_AR"; then
5896 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5897 echo "${ECHO_T}$ac_ct_AR" >&6
5898 else
5899 echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6
5901 fi
5902
5903 AR=$ac_ct_AR
5904 else
5905 AR="$ac_cv_prog_AR"
5906 fi
5907
5908 if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911 echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913 if test "${ac_cv_prog_RANLIB+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 if test -n "$RANLIB"; then
5917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5929 fi
5930 done
5931 done
5932
5933 fi
5934 fi
5935 RANLIB=$ac_cv_prog_RANLIB
5936 if test -n "$RANLIB"; then
5937 echo "$as_me:$LINENO: result: $RANLIB" >&5
5938 echo "${ECHO_T}$RANLIB" >&6
5939 else
5940 echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5942 fi
5943
5944 fi
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946 ac_ct_RANLIB=$RANLIB
5947 # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 echo "$as_me:$LINENO: checking for $ac_word" >&5
5950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5951 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 if test -n "$ac_ct_RANLIB"; then
5955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_RANLIB="ranlib"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970
5971 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5972 fi
5973 fi
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5977 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5978 else
5979 echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5981 fi
5982
5983 RANLIB=$ac_ct_RANLIB
5984 else
5985 RANLIB="$ac_cv_prog_RANLIB"
5986 fi
5987
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}strip; ac_word=$2
5991 echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993 if test "${ac_cv_prog_STRIP+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 if test -n "$STRIP"; then
5997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010 done
6011 done
6012
6013 fi
6014 fi
6015 STRIP=$ac_cv_prog_STRIP
6016 if test -n "$STRIP"; then
6017 echo "$as_me:$LINENO: result: $STRIP" >&5
6018 echo "${ECHO_T}$STRIP" >&6
6019 else
6020 echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6
6022 fi
6023
6024 fi
6025 if test -z "$ac_cv_prog_STRIP"; then
6026 ac_ct_STRIP=$STRIP
6027 # Extract the first word of "strip", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6031 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048 done
6049 done
6050
6051 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6052 fi
6053 fi
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057 echo "${ECHO_T}$ac_ct_STRIP" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6061 fi
6062
6063 STRIP=$ac_ct_STRIP
6064 else
6065 STRIP="$ac_cv_prog_STRIP"
6066 fi
6067
6068
6069 old_CC="$CC"
6070 old_CFLAGS="$CFLAGS"
6071
6072 # Set sane defaults for various variables
6073 test -z "$AR" && AR=ar
6074 test -z "$AR_FLAGS" && AR_FLAGS=cru
6075 test -z "$AS" && AS=as
6076 test -z "$CC" && CC=cc
6077 test -z "$LTCC" && LTCC=$CC
6078 test -z "$DLLTOOL" && DLLTOOL=dlltool
6079 test -z "$LD" && LD=ld
6080 test -z "$LN_S" && LN_S="ln -s"
6081 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6082 test -z "$NM" && NM=nm
6083 test -z "$SED" && SED=sed
6084 test -z "$OBJDUMP" && OBJDUMP=objdump
6085 test -z "$RANLIB" && RANLIB=:
6086 test -z "$STRIP" && STRIP=:
6087 test -z "$ac_objext" && ac_objext=o
6088
6089 # Determine commands to create old-style static archives.
6090 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6091 old_postinstall_cmds='chmod 644 $oldlib'
6092 old_postuninstall_cmds=
6093
6094 if test -n "$RANLIB"; then
6095 case $host_os in
6096 openbsd*)
6097 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6098 ;;
6099 *)
6100 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6101 ;;
6102 esac
6103 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104 fi
6105
6106 for cc_temp in $compiler""; do
6107 case $cc_temp in
6108 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6109 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6110 \-*) ;;
6111 *) break;;
6112 esac
6113 done
6114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6115
6116
6117 # Only perform the check for file, if the check method requires it
6118 case $deplibs_check_method in
6119 file_magic*)
6120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6121 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6122 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6123 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 case $MAGIC_CMD in
6127 [\\/*] | ?:[\\/]*)
6128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129 ;;
6130 *)
6131 lt_save_MAGIC_CMD="$MAGIC_CMD"
6132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6134 for ac_dir in $ac_dummy; do
6135 IFS="$lt_save_ifs"
6136 test -z "$ac_dir" && ac_dir=.
6137 if test -f $ac_dir/${ac_tool_prefix}file; then
6138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6139 if test -n "$file_magic_test_file"; then
6140 case $deplibs_check_method in
6141 "file_magic "*)
6142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6145 $EGREP "$file_magic_regex" > /dev/null; then
6146 :
6147 else
6148 cat <<EOF 1>&2
6149
6150 *** Warning: the command libtool uses to detect shared libraries,
6151 *** $file_magic_cmd, produces output that libtool cannot recognize.
6152 *** The result is that libtool may fail to recognize shared libraries
6153 *** as such. This will affect the creation of libtool libraries that
6154 *** depend on shared libraries, but programs linked with such libtool
6155 *** libraries will work regardless of this problem. Nevertheless, you
6156 *** may want to report the problem to your system manager and/or to
6157 *** [email protected]
6158
6159 EOF
6160 fi ;;
6161 esac
6162 fi
6163 break
6164 fi
6165 done
6166 IFS="$lt_save_ifs"
6167 MAGIC_CMD="$lt_save_MAGIC_CMD"
6168 ;;
6169 esac
6170 fi
6171
6172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173 if test -n "$MAGIC_CMD"; then
6174 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6175 echo "${ECHO_T}$MAGIC_CMD" >&6
6176 else
6177 echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6
6179 fi
6180
6181 if test -z "$lt_cv_path_MAGIC_CMD"; then
6182 if test -n "$ac_tool_prefix"; then
6183 echo "$as_me:$LINENO: checking for file" >&5
6184 echo $ECHO_N "checking for file... $ECHO_C" >&6
6185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 case $MAGIC_CMD in
6189 [\\/*] | ?:[\\/]*)
6190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191 ;;
6192 *)
6193 lt_save_MAGIC_CMD="$MAGIC_CMD"
6194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196 for ac_dir in $ac_dummy; do
6197 IFS="$lt_save_ifs"
6198 test -z "$ac_dir" && ac_dir=.
6199 if test -f $ac_dir/file; then
6200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6201 if test -n "$file_magic_test_file"; then
6202 case $deplibs_check_method in
6203 "file_magic "*)
6204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207 $EGREP "$file_magic_regex" > /dev/null; then
6208 :
6209 else
6210 cat <<EOF 1>&2
6211
6212 *** Warning: the command libtool uses to detect shared libraries,
6213 *** $file_magic_cmd, produces output that libtool cannot recognize.
6214 *** The result is that libtool may fail to recognize shared libraries
6215 *** as such. This will affect the creation of libtool libraries that
6216 *** depend on shared libraries, but programs linked with such libtool
6217 *** libraries will work regardless of this problem. Nevertheless, you
6218 *** may want to report the problem to your system manager and/or to
6219 *** [email protected]
6220
6221 EOF
6222 fi ;;
6223 esac
6224 fi
6225 break
6226 fi
6227 done
6228 IFS="$lt_save_ifs"
6229 MAGIC_CMD="$lt_save_MAGIC_CMD"
6230 ;;
6231 esac
6232 fi
6233
6234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235 if test -n "$MAGIC_CMD"; then
6236 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237 echo "${ECHO_T}$MAGIC_CMD" >&6
6238 else
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6241 fi
6242
6243 else
6244 MAGIC_CMD=:
6245 fi
6246 fi
6247
6248 fi
6249 ;;
6250 esac
6251
6252 enable_dlopen=no
6253 enable_win32_dll=no
6254
6255 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6256 if test "${enable_libtool_lock+set}" = set; then
6257 enableval="$enable_libtool_lock"
6258
6259 fi;
6260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261
6262
6263 # Check whether --with-pic or --without-pic was given.
6264 if test "${with_pic+set}" = set; then
6265 withval="$with_pic"
6266 pic_mode="$withval"
6267 else
6268 pic_mode=default
6269 fi;
6270 test -z "$pic_mode" && pic_mode=default
6271
6272 # Use C for the default configuration in the libtool script
6273 tagname=
6274 lt_save_CC="$CC"
6275 ac_ext=c
6276 ac_cpp='$CPP $CPPFLAGS'
6277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281
6282 # Source file extension for C test sources.
6283 ac_ext=c
6284
6285 # Object file extension for compiled C test sources.
6286 objext=o
6287 objext=$objext
6288
6289 # Code to be used in simple compile tests
6290 lt_simple_compile_test_code="int some_variable = 0;\n"
6291
6292 # Code to be used in simple link tests
6293 lt_simple_link_test_code='int main(){return(0);}\n'
6294
6295
6296 # If no C compiler was specified, use CC.
6297 LTCC=${LTCC-"$CC"}
6298
6299 # Allow CC to be a program name with arguments.
6300 compiler=$CC
6301
6302
6303 # save warnings/boilerplate of simple test code
6304 ac_outfile=conftest.$ac_objext
6305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6307 _lt_compiler_boilerplate=`cat conftest.err`
6308 $rm conftest*
6309
6310 ac_outfile=conftest.$ac_objext
6311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6313 _lt_linker_boilerplate=`cat conftest.err`
6314 $rm conftest*
6315
6316
6317 #
6318 # Check for any special shared library compilation flags.
6319 #
6320 lt_prog_cc_shlib=
6321 if test "$GCC" = no; then
6322 case $host_os in
6323 sco3.2v5*)
6324 lt_prog_cc_shlib='-belf'
6325 ;;
6326 esac
6327 fi
6328 if test -n "$lt_prog_cc_shlib"; then
6329 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6330 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6331 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6332 else
6333 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6334 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6335 lt_cv_prog_cc_can_build_shared=no
6336 fi
6337 fi
6338
6339
6340 #
6341 # Check to make sure the static flag actually works.
6342 #
6343 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6344 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6345 if test "${lt_prog_compiler_static_works+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 lt_prog_compiler_static_works=no
6349 save_LDFLAGS="$LDFLAGS"
6350 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6351 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6353 # The linker can only warn and ignore the option if not recognized
6354 # So say no if there are warnings
6355 if test -s conftest.err; then
6356 # Append any errors to the config.log.
6357 cat conftest.err 1>&5
6358 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6359 $SED '/^$/d' conftest.err >conftest.er2
6360 if diff conftest.exp conftest.er2 >/dev/null; then
6361 lt_prog_compiler_static_works=yes
6362 fi
6363 else
6364 lt_prog_compiler_static_works=yes
6365 fi
6366 fi
6367 $rm conftest*
6368 LDFLAGS="$save_LDFLAGS"
6369
6370 fi
6371 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6372 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6373
6374 if test x"$lt_prog_compiler_static_works" = xyes; then
6375 :
6376 else
6377 lt_prog_compiler_static=
6378 fi
6379
6380
6381
6382
6383 lt_prog_compiler_no_builtin_flag=
6384
6385 if test "$GCC" = yes; then
6386 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6387
6388
6389 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394 lt_cv_prog_compiler_rtti_exceptions=no
6395 ac_outfile=conftest.$ac_objext
6396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6397 lt_compiler_flag="-fno-rtti -fno-exceptions"
6398 # Insert the option either (1) after the last *FLAGS variable, or
6399 # (2) before a word containing "conftest.", or (3) at the end.
6400 # Note that $ac_compile itself does not contain backslashes and begins
6401 # with a dollar sign (not a hyphen), so the echo should work correctly.
6402 # The option is referenced via a variable to avoid confusing sed.
6403 lt_compile=`echo "$ac_compile" | $SED \
6404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406 -e 's:$: $lt_compiler_flag:'`
6407 (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408 (eval "$lt_compile" 2>conftest.err)
6409 ac_status=$?
6410 cat conftest.err >&5
6411 echo "$as_me:6411: \$? = $ac_status" >&5
6412 if (exit $ac_status) && test -s "$ac_outfile"; then
6413 # The compiler can only warn and ignore the option if not recognized
6414 # So say no if there are warnings other than the usual output.
6415 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6416 $SED '/^$/d' conftest.err >conftest.er2
6417 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6418 lt_cv_prog_compiler_rtti_exceptions=yes
6419 fi
6420 fi
6421 $rm conftest*
6422
6423 fi
6424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6426
6427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6429 else
6430 :
6431 fi
6432
6433 fi
6434
6435 lt_prog_compiler_wl=
6436 lt_prog_compiler_pic=
6437 lt_prog_compiler_static=
6438
6439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6441
6442 if test "$GCC" = yes; then
6443 lt_prog_compiler_wl='-Wl,'
6444 lt_prog_compiler_static='-static'
6445
6446 case $host_os in
6447 aix*)
6448 # All AIX code is PIC.
6449 if test "$host_cpu" = ia64; then
6450 # AIX 5 now supports IA64 processor
6451 lt_prog_compiler_static='-Bstatic'
6452 fi
6453 ;;
6454
6455 amigaos*)
6456 # FIXME: we need at least 68020 code to build shared libraries, but
6457 # adding the `-m68020' flag to GCC prevents building anything better,
6458 # like `-m68040'.
6459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6460 ;;
6461
6462 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6463 # PIC is the default for these OSes.
6464 ;;
6465
6466 mingw* | pw32* | os2*)
6467 # This hack is so that the source file can tell whether it is being
6468 # built for inclusion in a dll (and should export symbols for example).
6469 lt_prog_compiler_pic='-DDLL_EXPORT'
6470 ;;
6471
6472 darwin* | rhapsody*)
6473 # PIC is the default on this platform
6474 # Common symbols not allowed in MH_DYLIB files
6475 lt_prog_compiler_pic='-fno-common'
6476 ;;
6477
6478 msdosdjgpp*)
6479 # Just because we use GCC doesn't mean we suddenly get shared libraries
6480 # on systems that don't support them.
6481 lt_prog_compiler_can_build_shared=no
6482 enable_shared=no
6483 ;;
6484
6485 sysv4*MP*)
6486 if test -d /usr/nec; then
6487 lt_prog_compiler_pic=-Kconform_pic
6488 fi
6489 ;;
6490
6491 hpux*)
6492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493 # not for PA HP-UX.
6494 case $host_cpu in
6495 hppa*64*|ia64*)
6496 # +Z the default
6497 ;;
6498 *)
6499 lt_prog_compiler_pic='-fPIC'
6500 ;;
6501 esac
6502 ;;
6503
6504 *)
6505 lt_prog_compiler_pic='-fPIC'
6506 ;;
6507 esac
6508 else
6509 # PORTME Check for flag to pass linker flags through the system compiler.
6510 case $host_os in
6511 aix*)
6512 lt_prog_compiler_wl='-Wl,'
6513 if test "$host_cpu" = ia64; then
6514 # AIX 5 now supports IA64 processor
6515 lt_prog_compiler_static='-Bstatic'
6516 else
6517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518 fi
6519 ;;
6520 darwin*)
6521 # PIC is the default on this platform
6522 # Common symbols not allowed in MH_DYLIB files
6523 case $cc_basename in
6524 xlc*)
6525 lt_prog_compiler_pic='-qnocommon'
6526 lt_prog_compiler_wl='-Wl,'
6527 ;;
6528 esac
6529 ;;
6530
6531 mingw* | pw32* | os2*)
6532 # This hack is so that the source file can tell whether it is being
6533 # built for inclusion in a dll (and should export symbols for example).
6534 lt_prog_compiler_pic='-DDLL_EXPORT'
6535 ;;
6536
6537 hpux9* | hpux10* | hpux11*)
6538 lt_prog_compiler_wl='-Wl,'
6539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6540 # not for PA HP-UX.
6541 case $host_cpu in
6542 hppa*64*|ia64*)
6543 # +Z the default
6544 ;;
6545 *)
6546 lt_prog_compiler_pic='+Z'
6547 ;;
6548 esac
6549 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550 lt_prog_compiler_static='${wl}-a ${wl}archive'
6551 ;;
6552
6553 irix5* | irix6* | nonstopux*)
6554 lt_prog_compiler_wl='-Wl,'
6555 # PIC (with -KPIC) is the default.
6556 lt_prog_compiler_static='-non_shared'
6557 ;;
6558
6559 newsos6)
6560 lt_prog_compiler_pic='-KPIC'
6561 lt_prog_compiler_static='-Bstatic'
6562 ;;
6563
6564 linux*)
6565 case $cc_basename in
6566 icc* | ecc*)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-KPIC'
6569 lt_prog_compiler_static='-static'
6570 ;;
6571 pgcc* | pgf77* | pgf90* | pgf95*)
6572 # Portland Group compilers (*not* the Pentium gcc compiler,
6573 # which looks to be a dead project)
6574 lt_prog_compiler_wl='-Wl,'
6575 lt_prog_compiler_pic='-fpic'
6576 lt_prog_compiler_static='-Bstatic'
6577 ;;
6578 ccc*)
6579 lt_prog_compiler_wl='-Wl,'
6580 # All Alpha code is PIC.
6581 lt_prog_compiler_static='-non_shared'
6582 ;;
6583 esac
6584 ;;
6585
6586 osf3* | osf4* | osf5*)
6587 lt_prog_compiler_wl='-Wl,'
6588 # All OSF/1 code is PIC.
6589 lt_prog_compiler_static='-non_shared'
6590 ;;
6591
6592 sco3.2v5*)
6593 lt_prog_compiler_pic='-Kpic'
6594 lt_prog_compiler_static='-dn'
6595 ;;
6596
6597 solaris*)
6598 lt_prog_compiler_pic='-KPIC'
6599 lt_prog_compiler_static='-Bstatic'
6600 case $cc_basename in
6601 f77* | f90* | f95*)
6602 lt_prog_compiler_wl='-Qoption ld ';;
6603 *)
6604 lt_prog_compiler_wl='-Wl,';;
6605 esac
6606 ;;
6607
6608 sunos4*)
6609 lt_prog_compiler_wl='-Qoption ld '
6610 lt_prog_compiler_pic='-PIC'
6611 lt_prog_compiler_static='-Bstatic'
6612 ;;
6613
6614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6615 lt_prog_compiler_wl='-Wl,'
6616 lt_prog_compiler_pic='-KPIC'
6617 lt_prog_compiler_static='-Bstatic'
6618 ;;
6619
6620 sysv4*MP*)
6621 if test -d /usr/nec ;then
6622 lt_prog_compiler_pic='-Kconform_pic'
6623 lt_prog_compiler_static='-Bstatic'
6624 fi
6625 ;;
6626
6627 unicos*)
6628 lt_prog_compiler_wl='-Wl,'
6629 lt_prog_compiler_can_build_shared=no
6630 ;;
6631
6632 uts4*)
6633 lt_prog_compiler_pic='-pic'
6634 lt_prog_compiler_static='-Bstatic'
6635 ;;
6636
6637 *)
6638 lt_prog_compiler_can_build_shared=no
6639 ;;
6640 esac
6641 fi
6642
6643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6645
6646 #
6647 # Check to make sure the PIC flag actually works.
6648 #
6649 if test -n "$lt_prog_compiler_pic"; then
6650
6651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6653 if test "${lt_prog_compiler_pic_works+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 lt_prog_compiler_pic_works=no
6657 ac_outfile=conftest.$ac_objext
6658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6660 # Insert the option either (1) after the last *FLAGS variable, or
6661 # (2) before a word containing "conftest.", or (3) at the end.
6662 # Note that $ac_compile itself does not contain backslashes and begins
6663 # with a dollar sign (not a hyphen), so the echo should work correctly.
6664 # The option is referenced via a variable to avoid confusing sed.
6665 lt_compile=`echo "$ac_compile" | $SED \
6666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668 -e 's:$: $lt_compiler_flag:'`
6669 (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
6670 (eval "$lt_compile" 2>conftest.err)
6671 ac_status=$?
6672 cat conftest.err >&5
6673 echo "$as_me:6673: \$? = $ac_status" >&5
6674 if (exit $ac_status) && test -s "$ac_outfile"; then
6675 # The compiler can only warn and ignore the option if not recognized
6676 # So say no if there are warnings other than the usual output.
6677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6678 $SED '/^$/d' conftest.err >conftest.er2
6679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6680 lt_prog_compiler_pic_works=yes
6681 fi
6682 fi
6683 $rm conftest*
6684
6685 fi
6686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6688
6689 if test x"$lt_prog_compiler_pic_works" = xyes; then
6690 case $lt_prog_compiler_pic in
6691 "" | " "*) ;;
6692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6693 esac
6694 else
6695 lt_prog_compiler_pic=
6696 lt_prog_compiler_can_build_shared=no
6697 fi
6698
6699 fi
6700 case $host_os in
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6702 *djgpp*)
6703 lt_prog_compiler_pic=
6704 ;;
6705 *)
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6707 ;;
6708 esac
6709
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 lt_cv_prog_compiler_c_o=no
6716 $rm -r conftest 2>/dev/null
6717 mkdir conftest
6718 cd conftest
6719 mkdir out
6720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721
6722 lt_compiler_flag="-o out/conftest2.$ac_objext"
6723 # Insert the option either (1) after the last *FLAGS variable, or
6724 # (2) before a word containing "conftest.", or (3) at the end.
6725 # Note that $ac_compile itself does not contain backslashes and begins
6726 # with a dollar sign (not a hyphen), so the echo should work correctly.
6727 lt_compile=`echo "$ac_compile" | $SED \
6728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730 -e 's:$: $lt_compiler_flag:'`
6731 (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732 (eval "$lt_compile" 2>out/conftest.err)
6733 ac_status=$?
6734 cat out/conftest.err >&5
6735 echo "$as_me:6735: \$? = $ac_status" >&5
6736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6737 then
6738 # The compiler can only warn and ignore the option if not recognized
6739 # So say no if there are warnings
6740 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6741 $SED '/^$/d' out/conftest.err >out/conftest.er2
6742 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743 lt_cv_prog_compiler_c_o=yes
6744 fi
6745 fi
6746 chmod u+w . 2>&5
6747 $rm conftest*
6748 # SGI C++ compiler will create directory out/ii_files/ for
6749 # template instantiation
6750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751 $rm out/* && rmdir out
6752 cd ..
6753 rmdir conftest
6754 $rm conftest*
6755
6756 fi
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
6760
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763 # do not overwrite the value of need_locks provided by the user
6764 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766 hard_links=yes
6767 $rm conftest*
6768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6769 touch conftest.a
6770 ln conftest.a conftest.b 2>&5 || hard_links=no
6771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772 echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774 if test "$hard_links" = no; then
6775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6777 need_locks=warn
6778 fi
6779 else
6780 need_locks=no
6781 fi
6782
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
6786 runpath_var=
6787 allow_undefined_flag=
6788 enable_shared_with_static_runtimes=no
6789 archive_cmds=
6790 archive_expsym_cmds=
6791 old_archive_From_new_cmds=
6792 old_archive_from_expsyms_cmds=
6793 export_dynamic_flag_spec=
6794 whole_archive_flag_spec=
6795 thread_safe_flag_spec=
6796 hardcode_libdir_flag_spec=
6797 hardcode_libdir_flag_spec_ld=
6798 hardcode_libdir_separator=
6799 hardcode_direct=no
6800 hardcode_minus_L=no
6801 hardcode_shlibpath_var=unsupported
6802 link_all_deplibs=unknown
6803 hardcode_automatic=no
6804 module_cmds=
6805 module_expsym_cmds=
6806 always_export_symbols=no
6807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808 # include_expsyms should be a list of space-separated symbols to be *always*
6809 # included in the symbol list
6810 include_expsyms=
6811 # exclude_expsyms can be an extended regexp of symbols to exclude
6812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814 # as well as any symbol that contains `d'.
6815 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817 # platforms (ab)use it in PIC code, but their linkers get confused if
6818 # the symbol is explicitly referenced. Since portable code cannot
6819 # rely on this symbol name, it's probably fine to never include it in
6820 # preloaded symbol tables.
6821 extract_expsyms_cmds=
6822 # Just being paranoid about ensuring that cc_basename is set.
6823 for cc_temp in $compiler""; do
6824 case $cc_temp in
6825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827 \-*) ;;
6828 *) break;;
6829 esac
6830 done
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
6833 case $host_os in
6834 cygwin* | mingw* | pw32*)
6835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836 # When not using gcc, we currently assume that we are using
6837 # Microsoft Visual C++.
6838 if test "$GCC" != yes; then
6839 with_gnu_ld=no
6840 fi
6841 ;;
6842 openbsd*)
6843 with_gnu_ld=no
6844 ;;
6845 esac
6846
6847 ld_shlibs=yes
6848 if test "$with_gnu_ld" = yes; then
6849 # If archive_cmds runs LD, not CC, wlarc should be empty
6850 wlarc='${wl}'
6851
6852 # Set some defaults for GNU ld with shared library support. These
6853 # are reset later if shared libraries are not supported. Putting them
6854 # here allows them to be overridden if necessary.
6855 runpath_var=LD_RUN_PATH
6856 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857 export_dynamic_flag_spec='${wl}--export-dynamic'
6858 # ancient GNU ld didn't support --whole-archive et. al.
6859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6861 else
6862 whole_archive_flag_spec=
6863 fi
6864 supports_anon_versioning=no
6865 case `$LD -v 2>/dev/null` in
6866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869 *\ 2.11.*) ;; # other 2.11 versions
6870 *) supports_anon_versioning=yes ;;
6871 esac
6872
6873 # See if GNU ld supports shared libraries.
6874 case $host_os in
6875 aix3* | aix4* | aix5*)
6876 # On AIX/PPC, the GNU linker is very broken
6877 if test "$host_cpu" != ia64; then
6878 ld_shlibs=no
6879 cat <<EOF 1>&2
6880
6881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882 *** to be unable to reliably create shared libraries on AIX.
6883 *** Therefore, libtool is disabling shared libraries support. If you
6884 *** really care for shared libraries, you may want to modify your PATH
6885 *** so that a non-GNU linker is found, and then restart.
6886
6887 EOF
6888 fi
6889 ;;
6890
6891 amigaos*)
6892 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)'
6893 hardcode_libdir_flag_spec='-L$libdir'
6894 hardcode_minus_L=yes
6895
6896 # Samuel A. Falvo II <[email protected]> reports
6897 # that the semantics of dynamic libraries on AmigaOS, at least up
6898 # to version 4, is to share data among multiple programs linked
6899 # with the same dynamic library. Since this doesn't match the
6900 # behavior of shared libraries on other platforms, we can't use
6901 # them.
6902 ld_shlibs=no
6903 ;;
6904
6905 beos*)
6906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907 allow_undefined_flag=unsupported
6908 # Joseph Beckenbach <[email protected]> says some releases of gcc
6909 # support --undefined. This deserves some investigation. FIXME
6910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6911 else
6912 ld_shlibs=no
6913 fi
6914 ;;
6915
6916 cygwin* | mingw* | pw32*)
6917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918 # as there is no search path for DLLs.
6919 hardcode_libdir_flag_spec='-L$libdir'
6920 allow_undefined_flag=unsupported
6921 always_export_symbols=no
6922 enable_shared_with_static_runtimes=yes
6923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6924
6925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6927 # If the export-symbols file already is a .def file (1st line
6928 # is EXPORTS), use it as is; otherwise, prepend...
6929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930 cp $export_symbols $output_objdir/$soname.def;
6931 else
6932 echo EXPORTS > $output_objdir/$soname.def;
6933 cat $export_symbols >> $output_objdir/$soname.def;
6934 fi~
6935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6936 else
6937 ld_shlibs=no
6938 fi
6939 ;;
6940
6941 linux*)
6942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6943 tmp_addflag=
6944 case $cc_basename,$host_cpu in
6945 pgcc*) # Portland Group C compiler
6946 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6947 tmp_addflag=' $pic_flag'
6948 ;;
6949 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6950 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6951 tmp_addflag=' $pic_flag -Mnomain' ;;
6952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6953 tmp_addflag=' -i_dynamic' ;;
6954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6955 tmp_addflag=' -i_dynamic -nofor_main' ;;
6956 ifc* | ifort*) # Intel Fortran compiler
6957 tmp_addflag=' -nofor_main' ;;
6958 esac
6959 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6960
6961 if test $supports_anon_versioning = yes; then
6962 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6964 $echo "local: *; };" >> $output_objdir/$libname.ver~
6965 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6966 fi
6967 link_all_deplibs=no
6968 else
6969 ld_shlibs=no
6970 fi
6971 ;;
6972
6973 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6976 wlarc=
6977 else
6978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6980 fi
6981 ;;
6982
6983 solaris* | sysv5*)
6984 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6985 ld_shlibs=no
6986 cat <<EOF 1>&2
6987
6988 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6989 *** create shared libraries on Solaris systems. Therefore, libtool
6990 *** is disabling shared libraries support. We urge you to upgrade GNU
6991 *** binutils to release 2.9.1 or newer. Another option is to modify
6992 *** your PATH or compiler configuration so that the native linker is
6993 *** used, and then restart.
6994
6995 EOF
6996 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6999 else
7000 ld_shlibs=no
7001 fi
7002 ;;
7003
7004 sunos4*)
7005 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7006 wlarc=
7007 hardcode_direct=yes
7008 hardcode_shlibpath_var=no
7009 ;;
7010
7011 *)
7012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7014 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7015 else
7016 ld_shlibs=no
7017 fi
7018 ;;
7019 esac
7020
7021 if test "$ld_shlibs" = no; then
7022 runpath_var=
7023 hardcode_libdir_flag_spec=
7024 export_dynamic_flag_spec=
7025 whole_archive_flag_spec=
7026 fi
7027 else
7028 # PORTME fill in a description of your system's linker (not GNU ld)
7029 case $host_os in
7030 aix3*)
7031 allow_undefined_flag=unsupported
7032 always_export_symbols=yes
7033 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'
7034 # Note: this linker hardcodes the directories in LIBPATH if there
7035 # are no directories specified by -L.
7036 hardcode_minus_L=yes
7037 if test "$GCC" = yes && test -z "$link_static_flag"; then
7038 # Neither direct hardcoding nor static linking is supported with a
7039 # broken collect2.
7040 hardcode_direct=unsupported
7041 fi
7042 ;;
7043
7044 aix4* | aix5*)
7045 if test "$host_cpu" = ia64; then
7046 # On IA64, the linker does run time linking by default, so we don't
7047 # have to do anything special.
7048 aix_use_runtimelinking=no
7049 exp_sym_flag='-Bexport'
7050 no_entry_flag=""
7051 else
7052 # If we're using GNU nm, then we don't want the "-C" option.
7053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7054 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7055 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'
7056 else
7057 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'
7058 fi
7059 aix_use_runtimelinking=no
7060
7061 # Test if we are trying to use run time linking or normal
7062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7063 # need to do runtime linking.
7064 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7065 for ld_flag in $LDFLAGS; do
7066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7067 aix_use_runtimelinking=yes
7068 break
7069 fi
7070 done
7071 esac
7072
7073 exp_sym_flag='-bexport'
7074 no_entry_flag='-bnoentry'
7075 fi
7076
7077 # When large executables or shared objects are built, AIX ld can
7078 # have problems creating the table of contents. If linking a library
7079 # or program results in "error TOC overflow" add -mminimal-toc to
7080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7082
7083 archive_cmds=''
7084 hardcode_direct=yes
7085 hardcode_libdir_separator=':'
7086 link_all_deplibs=yes
7087
7088 if test "$GCC" = yes; then
7089 case $host_os in aix4.[012]|aix4.[012].*)
7090 # We only want to do this on AIX 4.2 and lower, the check
7091 # below for broken collect2 doesn't work under 4.3+
7092 collect2name=`${CC} -print-prog-name=collect2`
7093 if test -f "$collect2name" && \
7094 strings "$collect2name" | grep resolve_lib_name >/dev/null
7095 then
7096 # We have reworked collect2
7097 hardcode_direct=yes
7098 else
7099 # We have old collect2
7100 hardcode_direct=unsupported
7101 # It fails to find uninstalled libraries when the uninstalled
7102 # path is not listed in the libpath. Setting hardcode_minus_L
7103 # to unsupported forces relinking
7104 hardcode_minus_L=yes
7105 hardcode_libdir_flag_spec='-L$libdir'
7106 hardcode_libdir_separator=
7107 fi
7108 esac
7109 shared_flag='-shared'
7110 if test "$aix_use_runtimelinking" = yes; then
7111 shared_flag="$shared_flag "'${wl}-G'
7112 fi
7113 else
7114 # not using gcc
7115 if test "$host_cpu" = ia64; then
7116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7117 # chokes on -Wl,-G. The following line is correct:
7118 shared_flag='-G'
7119 else
7120 if test "$aix_use_runtimelinking" = yes; then
7121 shared_flag='${wl}-G'
7122 else
7123 shared_flag='${wl}-bM:SRE'
7124 fi
7125 fi
7126 fi
7127
7128 # It seems that -bexpall does not export symbols beginning with
7129 # underscore (_), so it is better to generate a list of symbols to export.
7130 always_export_symbols=yes
7131 if test "$aix_use_runtimelinking" = yes; then
7132 # Warning - without using the other runtime loading flags (-brtl),
7133 # -berok will link without error, but may produce a broken library.
7134 allow_undefined_flag='-berok'
7135 # Determine the default libpath from the value encoded in an empty executable.
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142
7143 int
7144 main ()
7145 {
7146
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest$ac_exeext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172
7173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7174 }'`
7175 # Check for a 64-bit object if we didn't find anything.
7176 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; }
7177 }'`; fi
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 fi
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7186
7187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7188 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"
7189 else
7190 if test "$host_cpu" = ia64; then
7191 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7192 allow_undefined_flag="-z nodefs"
7193 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"
7194 else
7195 # Determine the default libpath from the value encoded in an empty executable.
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202
7203 int
7204 main ()
7205 {
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232
7233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7234 }'`
7235 # Check for a 64-bit object if we didn't find anything.
7236 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; }
7237 }'`; fi
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 fi
7243 rm -f conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7246
7247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7248 # Warning - without using the other run time loading flags,
7249 # -berok will link without error, but may produce a broken library.
7250 no_undefined_flag=' ${wl}-bernotok'
7251 allow_undefined_flag=' ${wl}-berok'
7252 # -bexpall does not export symbols beginning with underscore (_)
7253 always_export_symbols=yes
7254 # Exported symbols can be pulled into shared objects from archives
7255 whole_archive_flag_spec=' '
7256 archive_cmds_need_lc=yes
7257 # This is similar to how AIX traditionally builds its shared libraries.
7258 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'
7259 fi
7260 fi
7261 ;;
7262
7263 amigaos*)
7264 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)'
7265 hardcode_libdir_flag_spec='-L$libdir'
7266 hardcode_minus_L=yes
7267 # see comment about different semantics on the GNU ld section
7268 ld_shlibs=no
7269 ;;
7270
7271 bsdi[45]*)
7272 export_dynamic_flag_spec=-rdynamic
7273 ;;
7274
7275 cygwin* | mingw* | pw32*)
7276 # When not using gcc, we currently assume that we are using
7277 # Microsoft Visual C++.
7278 # hardcode_libdir_flag_spec is actually meaningless, as there is
7279 # no search path for DLLs.
7280 hardcode_libdir_flag_spec=' '
7281 allow_undefined_flag=unsupported
7282 # Tell ltmain to make .lib files, not .a files.
7283 libext=lib
7284 # Tell ltmain to make .dll files, not .so files.
7285 shrext_cmds=".dll"
7286 # FIXME: Setting linknames here is a bad hack.
7287 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7288 # The linker will automatically build a .lib file if we build a DLL.
7289 old_archive_From_new_cmds='true'
7290 # FIXME: Should let the user specify the lib program.
7291 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7292 fix_srcfile_path='`cygpath -w "$srcfile"`'
7293 enable_shared_with_static_runtimes=yes
7294 ;;
7295
7296 darwin* | rhapsody*)
7297 case $host_os in
7298 rhapsody* | darwin1.[012])
7299 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7300 ;;
7301 *) # Darwin 1.3 on
7302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7303 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304 else
7305 case ${MACOSX_DEPLOYMENT_TARGET} in
7306 10.[012])
7307 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7308 ;;
7309 10.*)
7310 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7311 ;;
7312 esac
7313 fi
7314 ;;
7315 esac
7316 archive_cmds_need_lc=no
7317 hardcode_direct=no
7318 hardcode_automatic=yes
7319 hardcode_shlibpath_var=unsupported
7320 whole_archive_flag_spec=''
7321 link_all_deplibs=yes
7322 if test "$GCC" = yes ; then
7323 output_verbose_link_cmd='echo'
7324 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7325 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7327 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}'
7328 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}'
7329 else
7330 case $cc_basename in
7331 xlc*)
7332 output_verbose_link_cmd='echo'
7333 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7334 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7336 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}'
7337 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}'
7338 ;;
7339 *)
7340 ld_shlibs=no
7341 ;;
7342 esac
7343 fi
7344 ;;
7345
7346 dgux*)
7347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_shlibpath_var=no
7350 ;;
7351
7352 freebsd1*)
7353 ld_shlibs=no
7354 ;;
7355
7356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7357 # support. Future versions do this automatically, but an explicit c++rt0.o
7358 # does not break anything, and helps significantly (at the cost of a little
7359 # extra space).
7360 freebsd2.2*)
7361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7362 hardcode_libdir_flag_spec='-R$libdir'
7363 hardcode_direct=yes
7364 hardcode_shlibpath_var=no
7365 ;;
7366
7367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7368 freebsd2*)
7369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7370 hardcode_direct=yes
7371 hardcode_minus_L=yes
7372 hardcode_shlibpath_var=no
7373 ;;
7374
7375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7376 freebsd* | kfreebsd*-gnu | dragonfly*)
7377 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7378 hardcode_libdir_flag_spec='-R$libdir'
7379 hardcode_direct=yes
7380 hardcode_shlibpath_var=no
7381 ;;
7382
7383 hpux9*)
7384 if test "$GCC" = yes; then
7385 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'
7386 else
7387 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'
7388 fi
7389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7390 hardcode_libdir_separator=:
7391 hardcode_direct=yes
7392
7393 # hardcode_minus_L: Not really in the search PATH,
7394 # but as the default location of the library.
7395 hardcode_minus_L=yes
7396 export_dynamic_flag_spec='${wl}-E'
7397 ;;
7398
7399 hpux10* | hpux11*)
7400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7401 case $host_cpu in
7402 hppa*64*|ia64*)
7403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7404 ;;
7405 *)
7406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7407 ;;
7408 esac
7409 else
7410 case $host_cpu in
7411 hppa*64*|ia64*)
7412 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 ;;
7414 *)
7415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7416 ;;
7417 esac
7418 fi
7419 if test "$with_gnu_ld" = no; then
7420 case $host_cpu in
7421 hppa*64*)
7422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7423 hardcode_libdir_flag_spec_ld='+b $libdir'
7424 hardcode_libdir_separator=:
7425 hardcode_direct=no
7426 hardcode_shlibpath_var=no
7427 ;;
7428 ia64*)
7429 hardcode_libdir_flag_spec='-L$libdir'
7430 hardcode_direct=no
7431 hardcode_shlibpath_var=no
7432
7433 # hardcode_minus_L: Not really in the search PATH,
7434 # but as the default location of the library.
7435 hardcode_minus_L=yes
7436 ;;
7437 *)
7438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7439 hardcode_libdir_separator=:
7440 hardcode_direct=yes
7441 export_dynamic_flag_spec='${wl}-E'
7442
7443 # hardcode_minus_L: Not really in the search PATH,
7444 # but as the default location of the library.
7445 hardcode_minus_L=yes
7446 ;;
7447 esac
7448 fi
7449 ;;
7450
7451 irix5* | irix6* | nonstopux*)
7452 if test "$GCC" = yes; then
7453 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'
7454 else
7455 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'
7456 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7457 fi
7458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459 hardcode_libdir_separator=:
7460 link_all_deplibs=yes
7461 ;;
7462
7463 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7466 else
7467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7468 fi
7469 hardcode_libdir_flag_spec='-R$libdir'
7470 hardcode_direct=yes
7471 hardcode_shlibpath_var=no
7472 ;;
7473
7474 newsos6)
7475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476 hardcode_direct=yes
7477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7478 hardcode_libdir_separator=:
7479 hardcode_shlibpath_var=no
7480 ;;
7481
7482 openbsd*)
7483 hardcode_direct=yes
7484 hardcode_shlibpath_var=no
7485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7487 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7489 export_dynamic_flag_spec='${wl}-E'
7490 else
7491 case $host_os in
7492 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7494 hardcode_libdir_flag_spec='-R$libdir'
7495 ;;
7496 *)
7497 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7499 ;;
7500 esac
7501 fi
7502 ;;
7503
7504 os2*)
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_minus_L=yes
7507 allow_undefined_flag=unsupported
7508 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'
7509 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7510 ;;
7511
7512 osf3*)
7513 if test "$GCC" = yes; then
7514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7515 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'
7516 else
7517 allow_undefined_flag=' -expect_unresolved \*'
7518 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'
7519 fi
7520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521 hardcode_libdir_separator=:
7522 ;;
7523
7524 osf4* | osf5*) # as osf3* with the addition of -msym flag
7525 if test "$GCC" = yes; then
7526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7527 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'
7528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529 else
7530 allow_undefined_flag=' -expect_unresolved \*'
7531 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'
7532 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7533 $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'
7534
7535 # Both c and cxx compiler support -rpath directly
7536 hardcode_libdir_flag_spec='-rpath $libdir'
7537 fi
7538 hardcode_libdir_separator=:
7539 ;;
7540
7541 sco3.2v5*)
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_shlibpath_var=no
7544 export_dynamic_flag_spec='${wl}-Bexport'
7545 runpath_var=LD_RUN_PATH
7546 hardcode_runpath_var=yes
7547 ;;
7548
7549 solaris*)
7550 no_undefined_flag=' -z text'
7551 if test "$GCC" = yes; then
7552 wlarc='${wl}'
7553 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7554 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7555 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7556 else
7557 wlarc=''
7558 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7560 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7561 fi
7562 hardcode_libdir_flag_spec='-R$libdir'
7563 hardcode_shlibpath_var=no
7564 case $host_os in
7565 solaris2.[0-5] | solaris2.[0-5].*) ;;
7566 *)
7567 # The compiler driver will combine linker options so we
7568 # cannot just pass the convience library names through
7569 # without $wl, iff we do not link with $LD.
7570 # Luckily, gcc supports the same syntax we need for Sun Studio.
7571 # Supported since Solaris 2.6 (maybe 2.5.1?)
7572 case $wlarc in
7573 '')
7574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7575 *)
7576 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' ;;
7577 esac ;;
7578 esac
7579 link_all_deplibs=yes
7580 ;;
7581
7582 sunos4*)
7583 if test "x$host_vendor" = xsequent; then
7584 # Use $CC to link under sequent, because it throws in some extra .o
7585 # files that make .init and .fini sections work.
7586 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7587 else
7588 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7589 fi
7590 hardcode_libdir_flag_spec='-L$libdir'
7591 hardcode_direct=yes
7592 hardcode_minus_L=yes
7593 hardcode_shlibpath_var=no
7594 ;;
7595
7596 sysv4)
7597 case $host_vendor in
7598 sni)
7599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600 hardcode_direct=yes # is this really true???
7601 ;;
7602 siemens)
7603 ## LD is ld it makes a PLAMLIB
7604 ## CC just makes a GrossModule.
7605 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7606 reload_cmds='$CC -r -o $output$reload_objs'
7607 hardcode_direct=no
7608 ;;
7609 motorola)
7610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7612 ;;
7613 esac
7614 runpath_var='LD_RUN_PATH'
7615 hardcode_shlibpath_var=no
7616 ;;
7617
7618 sysv4.3*)
7619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620 hardcode_shlibpath_var=no
7621 export_dynamic_flag_spec='-Bexport'
7622 ;;
7623
7624 sysv4*MP*)
7625 if test -d /usr/nec; then
7626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627 hardcode_shlibpath_var=no
7628 runpath_var=LD_RUN_PATH
7629 hardcode_runpath_var=yes
7630 ld_shlibs=yes
7631 fi
7632 ;;
7633
7634 sysv4.2uw2*)
7635 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_direct=yes
7637 hardcode_minus_L=no
7638 hardcode_shlibpath_var=no
7639 hardcode_runpath_var=yes
7640 runpath_var=LD_RUN_PATH
7641 ;;
7642
7643 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7644 no_undefined_flag='${wl}-z ${wl}text'
7645 if test "$GCC" = yes; then
7646 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7647 else
7648 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7649 fi
7650 runpath_var='LD_RUN_PATH'
7651 hardcode_shlibpath_var=no
7652 ;;
7653
7654 sysv5*)
7655 no_undefined_flag=' -z text'
7656 # $CC -shared without GNU ld will not create a library from C++
7657 # object files and a static libstdc++, better avoid it by now
7658 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7661 hardcode_libdir_flag_spec=
7662 hardcode_shlibpath_var=no
7663 runpath_var='LD_RUN_PATH'
7664 ;;
7665
7666 uts4*)
7667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 hardcode_libdir_flag_spec='-L$libdir'
7669 hardcode_shlibpath_var=no
7670 ;;
7671
7672 *)
7673 ld_shlibs=no
7674 ;;
7675 esac
7676 fi
7677
7678 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7679 echo "${ECHO_T}$ld_shlibs" >&6
7680 test "$ld_shlibs" = no && can_build_shared=no
7681
7682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7683 if test "$GCC" = yes; then
7684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7685 fi
7686
7687 #
7688 # Do we need to explicitly link libc?
7689 #
7690 case "x$archive_cmds_need_lc" in
7691 x|xyes)
7692 # Assume -lc should be added
7693 archive_cmds_need_lc=yes
7694
7695 if test "$enable_shared" = yes && test "$GCC" = yes; then
7696 case $archive_cmds in
7697 *'~'*)
7698 # FIXME: we may have to deal with multi-command sequences.
7699 ;;
7700 '$CC '*)
7701 # Test whether the compiler implicitly links with -lc since on some
7702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7703 # to ld, don't add -lc before -lgcc.
7704 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7705 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7706 $rm conftest*
7707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7708
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } 2>conftest.err; then
7714 soname=conftest
7715 lib=conftest
7716 libobjs=conftest.$ac_objext
7717 deplibs=
7718 wl=$lt_prog_compiler_wl
7719 compiler_flags=-v
7720 linker_flags=-v
7721 verstring=
7722 output_objdir=.
7723 libname=conftest
7724 lt_save_allow_undefined_flag=$allow_undefined_flag
7725 allow_undefined_flag=
7726 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7727 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }
7731 then
7732 archive_cmds_need_lc=no
7733 else
7734 archive_cmds_need_lc=yes
7735 fi
7736 allow_undefined_flag=$lt_save_allow_undefined_flag
7737 else
7738 cat conftest.err 1>&5
7739 fi
7740 $rm conftest*
7741 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7742 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7743 ;;
7744 esac
7745 fi
7746 ;;
7747 esac
7748
7749 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7750 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7751 library_names_spec=
7752 libname_spec='lib$name'
7753 soname_spec=
7754 shrext_cmds=".so"
7755 postinstall_cmds=
7756 postuninstall_cmds=
7757 finish_cmds=
7758 finish_eval=
7759 shlibpath_var=
7760 shlibpath_overrides_runpath=unknown
7761 version_type=none
7762 dynamic_linker="$host_os ld.so"
7763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7764 if test "$GCC" = yes; then
7765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7766 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7767 # if the path contains ";" then we assume it to be the separator
7768 # otherwise default to the standard path separator (i.e. ":") - it is
7769 # assumed that no part of a normal pathname contains ";" but that should
7770 # okay in the real world where ";" in dirpaths is itself problematic.
7771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7772 else
7773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7774 fi
7775 else
7776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7777 fi
7778 need_lib_prefix=unknown
7779 hardcode_into_libs=no
7780
7781 # when you set need_version to no, make sure it does not cause -set_version
7782 # flags to be left without arguments
7783 need_version=unknown
7784
7785 case $host_os in
7786 aix3*)
7787 version_type=linux
7788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7789 shlibpath_var=LIBPATH
7790
7791 # AIX 3 has no versioning support, so we append a major version to the name.
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 ;;
7794
7795 aix4* | aix5*)
7796 version_type=linux
7797 need_lib_prefix=no
7798 need_version=no
7799 hardcode_into_libs=yes
7800 if test "$host_cpu" = ia64; then
7801 # AIX 5 supports IA64
7802 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7803 shlibpath_var=LD_LIBRARY_PATH
7804 else
7805 # With GCC up to 2.95.x, collect2 would create an import file
7806 # for dependence libraries. The import file would start with
7807 # the line `#! .'. This would cause the generated library to
7808 # depend on `.', always an invalid library. This was fixed in
7809 # development snapshots of GCC prior to 3.0.
7810 case $host_os in
7811 aix4 | aix4.[01] | aix4.[01].*)
7812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7813 echo ' yes '
7814 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7815 :
7816 else
7817 can_build_shared=no
7818 fi
7819 ;;
7820 esac
7821 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7822 # soname into executable. Probably we can add versioning support to
7823 # collect2, so additional links can be useful in future.
7824 if test "$aix_use_runtimelinking" = yes; then
7825 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7826 # instead of lib<name>.a to let people know that these are not
7827 # typical AIX shared libraries.
7828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7829 else
7830 # We preserve .a as extension for shared libraries through AIX4.2
7831 # and later when we are not doing run time linking.
7832 library_names_spec='${libname}${release}.a $libname.a'
7833 soname_spec='${libname}${release}${shared_ext}$major'
7834 fi
7835 shlibpath_var=LIBPATH
7836 fi
7837 ;;
7838
7839 amigaos*)
7840 library_names_spec='$libname.ixlibrary $libname.a'
7841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7842 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'
7843 ;;
7844
7845 beos*)
7846 library_names_spec='${libname}${shared_ext}'
7847 dynamic_linker="$host_os ld.so"
7848 shlibpath_var=LIBRARY_PATH
7849 ;;
7850
7851 bsdi[45]*)
7852 version_type=linux
7853 need_version=no
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7855 soname_spec='${libname}${release}${shared_ext}$major'
7856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7857 shlibpath_var=LD_LIBRARY_PATH
7858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7860 # the default ld.so.conf also contains /usr/contrib/lib and
7861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7862 # libtool to hard-code these into programs
7863 ;;
7864
7865 cygwin* | mingw* | pw32*)
7866 version_type=windows
7867 shrext_cmds=".dll"
7868 need_version=no
7869 need_lib_prefix=no
7870
7871 case $GCC,$host_os in
7872 yes,cygwin* | yes,mingw* | yes,pw32*)
7873 library_names_spec='$libname.dll.a'
7874 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7875 postinstall_cmds='base_file=`basename \${file}`~
7876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7877 dldir=$destdir/`dirname \$dlpath`~
7878 test -d \$dldir || mkdir -p \$dldir~
7879 $install_prog $dir/$dlname \$dldir/$dlname~
7880 chmod a+x \$dldir/$dlname'
7881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7882 dlpath=$dir/\$dldll~
7883 $rm \$dlpath'
7884 shlibpath_overrides_runpath=yes
7885
7886 case $host_os in
7887 cygwin*)
7888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7891 ;;
7892 mingw*)
7893 # MinGW DLLs use traditional 'lib' prefix
7894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7896 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7897 # It is most probably a Windows format PATH printed by
7898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7899 # path with ; separators, and with drive letters. We can handle the
7900 # drive letters (cygwin fileutils understands them), so leave them,
7901 # especially as we might pass files found there to a mingw objdump,
7902 # which wouldn't understand a cygwinified path. Ahh.
7903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7904 else
7905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7906 fi
7907 ;;
7908 pw32*)
7909 # pw32 DLLs use 'pw' prefix rather than 'lib'
7910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7911 ;;
7912 esac
7913 ;;
7914
7915 *)
7916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7917 ;;
7918 esac
7919 dynamic_linker='Win32 ld.exe'
7920 # FIXME: first we should search . and the directory the executable is in
7921 shlibpath_var=PATH
7922 ;;
7923
7924 darwin* | rhapsody*)
7925 dynamic_linker="$host_os dyld"
7926 version_type=darwin
7927 need_lib_prefix=no
7928 need_version=no
7929 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7930 soname_spec='${libname}${release}${major}$shared_ext'
7931 shlibpath_overrides_runpath=yes
7932 shlibpath_var=DYLD_LIBRARY_PATH
7933 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7934 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7935 if test "$GCC" = yes; then
7936 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"`
7937 else
7938 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7939 fi
7940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7941 ;;
7942
7943 dgux*)
7944 version_type=linux
7945 need_lib_prefix=no
7946 need_version=no
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 ;;
7951
7952 freebsd1*)
7953 dynamic_linker=no
7954 ;;
7955
7956 kfreebsd*-gnu)
7957 version_type=linux
7958 need_lib_prefix=no
7959 need_version=no
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7961 soname_spec='${libname}${release}${shared_ext}$major'
7962 shlibpath_var=LD_LIBRARY_PATH
7963 shlibpath_overrides_runpath=no
7964 hardcode_into_libs=yes
7965 dynamic_linker='GNU ld.so'
7966 ;;
7967
7968 freebsd* | dragonfly*)
7969 # DragonFly does not have aout. When/if they implement a new
7970 # versioning mechanism, adjust this.
7971 if test -x /usr/bin/objformat; then
7972 objformat=`/usr/bin/objformat`
7973 else
7974 case $host_os in
7975 freebsd[123]*) objformat=aout ;;
7976 *) objformat=elf ;;
7977 esac
7978 fi
7979 version_type=freebsd-$objformat
7980 case $version_type in
7981 freebsd-elf*)
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7983 need_version=no
7984 need_lib_prefix=no
7985 ;;
7986 freebsd-*)
7987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7988 need_version=yes
7989 ;;
7990 esac
7991 shlibpath_var=LD_LIBRARY_PATH
7992 case $host_os in
7993 freebsd2*)
7994 shlibpath_overrides_runpath=yes
7995 ;;
7996 freebsd3.[01]* | freebsdelf3.[01]*)
7997 shlibpath_overrides_runpath=yes
7998 hardcode_into_libs=yes
7999 ;;
8000 *) # from 3.2 on
8001 shlibpath_overrides_runpath=no
8002 hardcode_into_libs=yes
8003 ;;
8004 esac
8005 ;;
8006
8007 gnu*)
8008 version_type=linux
8009 need_lib_prefix=no
8010 need_version=no
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 hardcode_into_libs=yes
8015 ;;
8016
8017 hpux9* | hpux10* | hpux11*)
8018 # Give a soname corresponding to the major version so that dld.sl refuses to
8019 # link against other versions.
8020 version_type=sunos
8021 need_lib_prefix=no
8022 need_version=no
8023 case $host_cpu in
8024 ia64*)
8025 shrext_cmds='.so'
8026 hardcode_into_libs=yes
8027 dynamic_linker="$host_os dld.so"
8028 shlibpath_var=LD_LIBRARY_PATH
8029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 if test "X$HPUX_IA64_MODE" = X32; then
8033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8034 else
8035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8036 fi
8037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8038 ;;
8039 hppa*64*)
8040 shrext_cmds='.sl'
8041 hardcode_into_libs=yes
8042 dynamic_linker="$host_os dld.sl"
8043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8049 ;;
8050 *)
8051 shrext_cmds='.sl'
8052 dynamic_linker="$host_os dld.sl"
8053 shlibpath_var=SHLIB_PATH
8054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 ;;
8058 esac
8059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8060 postinstall_cmds='chmod 555 $lib'
8061 ;;
8062
8063 irix5* | irix6* | nonstopux*)
8064 case $host_os in
8065 nonstopux*) version_type=nonstopux ;;
8066 *)
8067 if test "$lt_cv_prog_gnu_ld" = yes; then
8068 version_type=linux
8069 else
8070 version_type=irix
8071 fi ;;
8072 esac
8073 need_lib_prefix=no
8074 need_version=no
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8077 case $host_os in
8078 irix5* | nonstopux*)
8079 libsuff= shlibsuff=
8080 ;;
8081 *)
8082 case $LD in # libtool.m4 will add one of these switches to LD
8083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8084 libsuff= shlibsuff= libmagic=32-bit;;
8085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8086 libsuff=32 shlibsuff=N32 libmagic=N32;;
8087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8089 *) libsuff= shlibsuff= libmagic=never-match;;
8090 esac
8091 ;;
8092 esac
8093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8094 shlibpath_overrides_runpath=no
8095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8097 hardcode_into_libs=yes
8098 ;;
8099
8100 # No shared lib support for Linux oldld, aout, or coff.
8101 linux*oldld* | linux*aout* | linux*coff*)
8102 dynamic_linker=no
8103 ;;
8104
8105 # This must be Linux ELF.
8106 linux*)
8107 version_type=linux
8108 need_lib_prefix=no
8109 need_version=no
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8113 shlibpath_var=LD_LIBRARY_PATH
8114 shlibpath_overrides_runpath=no
8115 # This implies no fast_install, which is unacceptable.
8116 # Some rework will be needed to allow for fast_install
8117 # before this can be enabled.
8118 hardcode_into_libs=yes
8119
8120 # Append ld.so.conf contents to the search path
8121 if test -f /etc/ld.so.conf; then
8122 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8124 fi
8125
8126 # We used to test for /lib/ld.so.1 and disable shared libraries on
8127 # powerpc, because MkLinux only supported shared libraries with the
8128 # GNU dynamic linker. Since this was broken with cross compilers,
8129 # most powerpc-linux boxes support dynamic linking these days and
8130 # people can always --disable-shared, the test was removed, and we
8131 # assume the GNU/Linux dynamic linker is in use.
8132 dynamic_linker='GNU/Linux ld.so'
8133 ;;
8134
8135 netbsdelf*-gnu)
8136 version_type=linux
8137 need_lib_prefix=no
8138 need_version=no
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8140 soname_spec='${libname}${release}${shared_ext}$major'
8141 shlibpath_var=LD_LIBRARY_PATH
8142 shlibpath_overrides_runpath=no
8143 hardcode_into_libs=yes
8144 dynamic_linker='NetBSD ld.elf_so'
8145 ;;
8146
8147 knetbsd*-gnu)
8148 version_type=linux
8149 need_lib_prefix=no
8150 need_version=no
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 shlibpath_var=LD_LIBRARY_PATH
8154 shlibpath_overrides_runpath=no
8155 hardcode_into_libs=yes
8156 dynamic_linker='GNU ld.so'
8157 ;;
8158
8159 netbsd*)
8160 version_type=sunos
8161 need_lib_prefix=no
8162 need_version=no
8163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8166 dynamic_linker='NetBSD (a.out) ld.so'
8167 else
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8169 soname_spec='${libname}${release}${shared_ext}$major'
8170 dynamic_linker='NetBSD ld.elf_so'
8171 fi
8172 shlibpath_var=LD_LIBRARY_PATH
8173 shlibpath_overrides_runpath=yes
8174 hardcode_into_libs=yes
8175 ;;
8176
8177 newsos6)
8178 version_type=linux
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 shlibpath_overrides_runpath=yes
8182 ;;
8183
8184 nto-qnx*)
8185 version_type=linux
8186 need_lib_prefix=no
8187 need_version=no
8188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8189 soname_spec='${libname}${release}${shared_ext}$major'
8190 shlibpath_var=LD_LIBRARY_PATH
8191 shlibpath_overrides_runpath=yes
8192 ;;
8193
8194 openbsd*)
8195 version_type=sunos
8196 need_lib_prefix=no
8197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8198 case $host_os in
8199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8200 *) need_version=no ;;
8201 esac
8202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8204 shlibpath_var=LD_LIBRARY_PATH
8205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8206 case $host_os in
8207 openbsd2.[89] | openbsd2.[89].*)
8208 shlibpath_overrides_runpath=no
8209 ;;
8210 *)
8211 shlibpath_overrides_runpath=yes
8212 ;;
8213 esac
8214 else
8215 shlibpath_overrides_runpath=yes
8216 fi
8217 ;;
8218
8219 os2*)
8220 libname_spec='$name'
8221 shrext_cmds=".dll"
8222 need_lib_prefix=no
8223 library_names_spec='$libname${shared_ext} $libname.a'
8224 dynamic_linker='OS/2 ld.exe'
8225 shlibpath_var=LIBPATH
8226 ;;
8227
8228 osf3* | osf4* | osf5*)
8229 version_type=osf
8230 need_lib_prefix=no
8231 need_version=no
8232 soname_spec='${libname}${release}${shared_ext}$major'
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 shlibpath_var=LD_LIBRARY_PATH
8235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8237 ;;
8238
8239 sco3.2v5*)
8240 version_type=osf
8241 soname_spec='${libname}${release}${shared_ext}$major'
8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 ;;
8245
8246 solaris*)
8247 version_type=linux
8248 need_lib_prefix=no
8249 need_version=no
8250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8251 soname_spec='${libname}${release}${shared_ext}$major'
8252 shlibpath_var=LD_LIBRARY_PATH
8253 shlibpath_overrides_runpath=yes
8254 hardcode_into_libs=yes
8255 # ldd complains unless libraries are executable
8256 postinstall_cmds='chmod +x $lib'
8257 ;;
8258
8259 sunos4*)
8260 version_type=sunos
8261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8263 shlibpath_var=LD_LIBRARY_PATH
8264 shlibpath_overrides_runpath=yes
8265 if test "$with_gnu_ld" = yes; then
8266 need_lib_prefix=no
8267 fi
8268 need_version=yes
8269 ;;
8270
8271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8272 version_type=linux
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274 soname_spec='${libname}${release}${shared_ext}$major'
8275 shlibpath_var=LD_LIBRARY_PATH
8276 case $host_vendor in
8277 sni)
8278 shlibpath_overrides_runpath=no
8279 need_lib_prefix=no
8280 export_dynamic_flag_spec='${wl}-Blargedynsym'
8281 runpath_var=LD_RUN_PATH
8282 ;;
8283 siemens)
8284 need_lib_prefix=no
8285 ;;
8286 motorola)
8287 need_lib_prefix=no
8288 need_version=no
8289 shlibpath_overrides_runpath=no
8290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8291 ;;
8292 esac
8293 ;;
8294
8295 sysv4*MP*)
8296 if test -d /usr/nec ;then
8297 version_type=linux
8298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8299 soname_spec='$libname${shared_ext}.$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 fi
8302 ;;
8303
8304 uts4*)
8305 version_type=linux
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 ;;
8310
8311 *)
8312 dynamic_linker=no
8313 ;;
8314 esac
8315 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8316 echo "${ECHO_T}$dynamic_linker" >&6
8317 test "$dynamic_linker" = no && can_build_shared=no
8318
8319 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8320 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8321 hardcode_action=
8322 if test -n "$hardcode_libdir_flag_spec" || \
8323 test -n "$runpath_var" || \
8324 test "X$hardcode_automatic" = "Xyes" ; then
8325
8326 # We can hardcode non-existant directories.
8327 if test "$hardcode_direct" != no &&
8328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8329 # have to relink, otherwise we might link with an installed library
8330 # when we should be linking with a yet-to-be-installed one
8331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8332 test "$hardcode_minus_L" != no; then
8333 # Linking always hardcodes the temporary library directory.
8334 hardcode_action=relink
8335 else
8336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8337 hardcode_action=immediate
8338 fi
8339 else
8340 # We cannot hardcode anything, or else we can only hardcode existing
8341 # directories.
8342 hardcode_action=unsupported
8343 fi
8344 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8345 echo "${ECHO_T}$hardcode_action" >&6
8346
8347 if test "$hardcode_action" = relink; then
8348 # Fast installation is not supported
8349 enable_fast_install=no
8350 elif test "$shlibpath_overrides_runpath" = yes ||
8351 test "$enable_shared" = no; then
8352 # Fast installation is not necessary
8353 enable_fast_install=needless
8354 fi
8355
8356 striplib=
8357 old_striplib=
8358 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8359 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8360 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8362 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8363 echo "$as_me:$LINENO: result: yes" >&5
8364 echo "${ECHO_T}yes" >&6
8365 else
8366 # FIXME - insert some real tests, host_os isn't really good enough
8367 case $host_os in
8368 darwin*)
8369 if test -n "$STRIP" ; then
8370 striplib="$STRIP -x"
8371 echo "$as_me:$LINENO: result: yes" >&5
8372 echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376 fi
8377 ;;
8378 *)
8379 echo "$as_me:$LINENO: result: no" >&5
8380 echo "${ECHO_T}no" >&6
8381 ;;
8382 esac
8383 fi
8384
8385 if test "x$enable_dlopen" != xyes; then
8386 enable_dlopen=unknown
8387 enable_dlopen_self=unknown
8388 enable_dlopen_self_static=unknown
8389 else
8390 lt_cv_dlopen=no
8391 lt_cv_dlopen_libs=
8392
8393 case $host_os in
8394 beos*)
8395 lt_cv_dlopen="load_add_on"
8396 lt_cv_dlopen_libs=
8397 lt_cv_dlopen_self=yes
8398 ;;
8399
8400 mingw* | pw32*)
8401 lt_cv_dlopen="LoadLibrary"
8402 lt_cv_dlopen_libs=
8403 ;;
8404
8405 cygwin*)
8406 lt_cv_dlopen="dlopen"
8407 lt_cv_dlopen_libs=
8408 ;;
8409
8410 darwin*)
8411 # if libdl is installed we need to link against it
8412 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8413 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8414 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417 ac_check_lib_save_LIBS=$LIBS
8418 LIBS="-ldl $LIBS"
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425
8426 /* Override any gcc2 internal prototype to avoid an error. */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432 char dlopen ();
8433 int
8434 main ()
8435 {
8436 dlopen ();
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_lib_dl_dlopen=yes
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_cv_lib_dl_dlopen=no
8468 fi
8469 rm -f conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8472 fi
8473 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8474 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8475 if test $ac_cv_lib_dl_dlopen = yes; then
8476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8477 else
8478
8479 lt_cv_dlopen="dyld"
8480 lt_cv_dlopen_libs=
8481 lt_cv_dlopen_self=yes
8482
8483 fi
8484
8485 ;;
8486
8487 *)
8488 echo "$as_me:$LINENO: checking for shl_load" >&5
8489 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8490 if test "${ac_cv_func_shl_load+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8501 #define shl_load innocuous_shl_load
8502
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char shl_load (); below.
8505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8506 <limits.h> exists even on freestanding compilers. */
8507
8508 #ifdef __STDC__
8509 # include <limits.h>
8510 #else
8511 # include <assert.h>
8512 #endif
8513
8514 #undef shl_load
8515
8516 /* Override any gcc2 internal prototype to avoid an error. */
8517 #ifdef __cplusplus
8518 extern "C"
8519 {
8520 #endif
8521 /* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523 char shl_load ();
8524 /* The GNU C library defines this for functions which it implements
8525 to always fail with ENOSYS. Some functions are actually named
8526 something starting with __ and the normal name is an alias. */
8527 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8528 choke me
8529 #else
8530 char (*f) () = shl_load;
8531 #endif
8532 #ifdef __cplusplus
8533 }
8534 #endif
8535
8536 int
8537 main ()
8538 {
8539 return f != shl_load;
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_func_shl_load=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_cv_func_shl_load=no
8571 fi
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8576 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8577 if test $ac_cv_func_shl_load = yes; then
8578 lt_cv_dlopen="shl_load"
8579 else
8580 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8581 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8582 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 ac_check_lib_save_LIBS=$LIBS
8586 LIBS="-ldld $LIBS"
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 #ifdef __cplusplus
8596 extern "C"
8597 #endif
8598 /* We use char because int might match the return type of a gcc2
8599 builtin and then its argument prototype would still apply. */
8600 char shl_load ();
8601 int
8602 main ()
8603 {
8604 shl_load ();
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_lib_dld_shl_load=yes
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 ac_cv_lib_dld_shl_load=no
8636 fi
8637 rm -f conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8642 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8643 if test $ac_cv_lib_dld_shl_load = yes; then
8644 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8645 else
8646 echo "$as_me:$LINENO: checking for dlopen" >&5
8647 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8648 if test "${ac_cv_func_dlopen+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8659 #define dlopen innocuous_dlopen
8660
8661 /* System header to define __stub macros and hopefully few prototypes,
8662 which can conflict with char dlopen (); below.
8663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664 <limits.h> exists even on freestanding compilers. */
8665
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671
8672 #undef dlopen
8673
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 #ifdef __cplusplus
8676 extern "C"
8677 {
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char dlopen ();
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8686 choke me
8687 #else
8688 char (*f) () = dlopen;
8689 #endif
8690 #ifdef __cplusplus
8691 }
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697 return f != dlopen;
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_func_dlopen=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_func_dlopen=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 fi
8733 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8734 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8735 if test $ac_cv_func_dlopen = yes; then
8736 lt_cv_dlopen="dlopen"
8737 else
8738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-ldl $LIBS"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751
8752 /* Override any gcc2 internal prototype to avoid an error. */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8758 char dlopen ();
8759 int
8760 main ()
8761 {
8762 dlopen ();
8763 ;
8764 return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>conftest.er1
8770 ac_status=$?
8771 grep -v '^ *+' conftest.er1 >conftest.err
8772 rm -f conftest.er1
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_lib_dl_dlopen=yes
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 ac_cv_lib_dl_dlopen=no
8794 fi
8795 rm -f conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 LIBS=$ac_check_lib_save_LIBS
8798 fi
8799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8801 if test $ac_cv_lib_dl_dlopen = yes; then
8802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8803 else
8804 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8805 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8806 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809 ac_check_lib_save_LIBS=$LIBS
8810 LIBS="-lsvld $LIBS"
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8817
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char dlopen ();
8825 int
8826 main ()
8827 {
8828 dlopen ();
8829 ;
8830 return 0;
8831 }
8832 _ACEOF
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>conftest.er1
8836 ac_status=$?
8837 grep -v '^ *+' conftest.er1 >conftest.err
8838 rm -f conftest.er1
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_svld_dlopen=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_lib_svld_dlopen=no
8860 fi
8861 rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8864 fi
8865 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8866 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8867 if test $ac_cv_lib_svld_dlopen = yes; then
8868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8869 else
8870 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8871 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8872 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-ldld $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883
8884 /* Override any gcc2 internal prototype to avoid an error. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890 char dld_link ();
8891 int
8892 main ()
8893 {
8894 dld_link ();
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest$ac_exeext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_cv_lib_dld_dld_link=yes
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 ac_cv_lib_dld_dld_link=no
8926 fi
8927 rm -f conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS
8930 fi
8931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8932 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8933 if test $ac_cv_lib_dld_dld_link = yes; then
8934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8935 fi
8936
8937
8938 fi
8939
8940
8941 fi
8942
8943
8944 fi
8945
8946
8947 fi
8948
8949
8950 fi
8951
8952 ;;
8953 esac
8954
8955 if test "x$lt_cv_dlopen" != xno; then
8956 enable_dlopen=yes
8957 else
8958 enable_dlopen=no
8959 fi
8960
8961 case $lt_cv_dlopen in
8962 dlopen)
8963 save_CPPFLAGS="$CPPFLAGS"
8964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8965
8966 save_LDFLAGS="$LDFLAGS"
8967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8968
8969 save_LIBS="$LIBS"
8970 LIBS="$lt_cv_dlopen_libs $LIBS"
8971
8972 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8973 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8974 if test "${lt_cv_dlopen_self+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 if test "$cross_compiling" = yes; then :
8978 lt_cv_dlopen_self=cross
8979 else
8980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8981 lt_status=$lt_dlunknown
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8983 "configure"
8984 #include "confdefs.h"
8985
8986 #if HAVE_DLFCN_H
8987 #include <dlfcn.h>
8988 #endif
8989
8990 #include <stdio.h>
8991
8992 #ifdef RTLD_GLOBAL
8993 # define LT_DLGLOBAL RTLD_GLOBAL
8994 #else
8995 # ifdef DL_GLOBAL
8996 # define LT_DLGLOBAL DL_GLOBAL
8997 # else
8998 # define LT_DLGLOBAL 0
8999 # endif
9000 #endif
9001
9002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9003 find out it does not work in some platform. */
9004 #ifndef LT_DLLAZY_OR_NOW
9005 # ifdef RTLD_LAZY
9006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9007 # else
9008 # ifdef DL_LAZY
9009 # define LT_DLLAZY_OR_NOW DL_LAZY
9010 # else
9011 # ifdef RTLD_NOW
9012 # define LT_DLLAZY_OR_NOW RTLD_NOW
9013 # else
9014 # ifdef DL_NOW
9015 # define LT_DLLAZY_OR_NOW DL_NOW
9016 # else
9017 # define LT_DLLAZY_OR_NOW 0
9018 # endif
9019 # endif
9020 # endif
9021 # endif
9022 #endif
9023
9024 #ifdef __cplusplus
9025 extern "C" void exit (int);
9026 #endif
9027
9028 void fnord() { int i=42;}
9029 int main ()
9030 {
9031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9032 int status = $lt_dlunknown;
9033
9034 if (self)
9035 {
9036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9038 /* dlclose (self); */
9039 }
9040
9041 exit (status);
9042 }
9043 EOF
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9049 (./conftest; exit; ) >&5 2>/dev/null
9050 lt_status=$?
9051 case x$lt_status in
9052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9054 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9055 esac
9056 else :
9057 # compilation failed
9058 lt_cv_dlopen_self=no
9059 fi
9060 fi
9061 rm -fr conftest*
9062
9063
9064 fi
9065 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9066 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9067
9068 if test "x$lt_cv_dlopen_self" = xyes; then
9069 LDFLAGS="$LDFLAGS $link_static_flag"
9070 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9071 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9072 if test "${lt_cv_dlopen_self_static+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 if test "$cross_compiling" = yes; then :
9076 lt_cv_dlopen_self_static=cross
9077 else
9078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9079 lt_status=$lt_dlunknown
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9081 "configure"
9082 #include "confdefs.h"
9083
9084 #if HAVE_DLFCN_H
9085 #include <dlfcn.h>
9086 #endif
9087
9088 #include <stdio.h>
9089
9090 #ifdef RTLD_GLOBAL
9091 # define LT_DLGLOBAL RTLD_GLOBAL
9092 #else
9093 # ifdef DL_GLOBAL
9094 # define LT_DLGLOBAL DL_GLOBAL
9095 # else
9096 # define LT_DLGLOBAL 0
9097 # endif
9098 #endif
9099
9100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9101 find out it does not work in some platform. */
9102 #ifndef LT_DLLAZY_OR_NOW
9103 # ifdef RTLD_LAZY
9104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9105 # else
9106 # ifdef DL_LAZY
9107 # define LT_DLLAZY_OR_NOW DL_LAZY
9108 # else
9109 # ifdef RTLD_NOW
9110 # define LT_DLLAZY_OR_NOW RTLD_NOW
9111 # else
9112 # ifdef DL_NOW
9113 # define LT_DLLAZY_OR_NOW DL_NOW
9114 # else
9115 # define LT_DLLAZY_OR_NOW 0
9116 # endif
9117 # endif
9118 # endif
9119 # endif
9120 #endif
9121
9122 #ifdef __cplusplus
9123 extern "C" void exit (int);
9124 #endif
9125
9126 void fnord() { int i=42;}
9127 int main ()
9128 {
9129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9130 int status = $lt_dlunknown;
9131
9132 if (self)
9133 {
9134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9136 /* dlclose (self); */
9137 }
9138
9139 exit (status);
9140 }
9141 EOF
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143 (eval $ac_link) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9147 (./conftest; exit; ) >&5 2>/dev/null
9148 lt_status=$?
9149 case x$lt_status in
9150 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9151 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9152 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9153 esac
9154 else :
9155 # compilation failed
9156 lt_cv_dlopen_self_static=no
9157 fi
9158 fi
9159 rm -fr conftest*
9160
9161
9162 fi
9163 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9164 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9165 fi
9166
9167 CPPFLAGS="$save_CPPFLAGS"
9168 LDFLAGS="$save_LDFLAGS"
9169 LIBS="$save_LIBS"
9170 ;;
9171 esac
9172
9173 case $lt_cv_dlopen_self in
9174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9175 *) enable_dlopen_self=unknown ;;
9176 esac
9177
9178 case $lt_cv_dlopen_self_static in
9179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9180 *) enable_dlopen_self_static=unknown ;;
9181 esac
9182 fi
9183
9184
9185 # Report which librarie types wil actually be built
9186 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9187 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9188 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9189 echo "${ECHO_T}$can_build_shared" >&6
9190
9191 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9192 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9193 test "$can_build_shared" = "no" && enable_shared=no
9194
9195 # On AIX, shared libraries and static libraries use the same namespace, and
9196 # are all built from PIC.
9197 case $host_os in
9198 aix3*)
9199 test "$enable_shared" = yes && enable_static=no
9200 if test -n "$RANLIB"; then
9201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9202 postinstall_cmds='$RANLIB $lib'
9203 fi
9204 ;;
9205
9206 aix4* | aix5*)
9207 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9208 test "$enable_shared" = yes && enable_static=no
9209 fi
9210 ;;
9211 esac
9212 echo "$as_me:$LINENO: result: $enable_shared" >&5
9213 echo "${ECHO_T}$enable_shared" >&6
9214
9215 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9216 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9217 # Make sure either enable_shared or enable_static is yes.
9218 test "$enable_shared" = yes || enable_static=yes
9219 echo "$as_me:$LINENO: result: $enable_static" >&5
9220 echo "${ECHO_T}$enable_static" >&6
9221
9222 # The else clause should only fire when bootstrapping the
9223 # libtool distribution, otherwise you forgot to ship ltmain.sh
9224 # with your package, and you will get complaints that there are
9225 # no rules to generate ltmain.sh.
9226 if test -f "$ltmain"; then
9227 # See if we are running on zsh, and set the options which allow our commands through
9228 # without removal of \ escapes.
9229 if test -n "${ZSH_VERSION+set}" ; then
9230 setopt NO_GLOB_SUBST
9231 fi
9232 # Now quote all the things that may contain metacharacters while being
9233 # careful not to overquote the AC_SUBSTed values. We take copies of the
9234 # variables and quote the copies for generation of the libtool script.
9235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9236 SED SHELL STRIP \
9237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9239 deplibs_check_method reload_flag reload_cmds need_locks \
9240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9241 lt_cv_sys_global_symbol_to_c_name_address \
9242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9243 old_postinstall_cmds old_postuninstall_cmds \
9244 compiler \
9245 CC \
9246 LD \
9247 lt_prog_compiler_wl \
9248 lt_prog_compiler_pic \
9249 lt_prog_compiler_static \
9250 lt_prog_compiler_no_builtin_flag \
9251 export_dynamic_flag_spec \
9252 thread_safe_flag_spec \
9253 whole_archive_flag_spec \
9254 enable_shared_with_static_runtimes \
9255 old_archive_cmds \
9256 old_archive_from_new_cmds \
9257 predep_objects \
9258 postdep_objects \
9259 predeps \
9260 postdeps \
9261 compiler_lib_search_path \
9262 archive_cmds \
9263 archive_expsym_cmds \
9264 postinstall_cmds \
9265 postuninstall_cmds \
9266 old_archive_from_expsyms_cmds \
9267 allow_undefined_flag \
9268 no_undefined_flag \
9269 export_symbols_cmds \
9270 hardcode_libdir_flag_spec \
9271 hardcode_libdir_flag_spec_ld \
9272 hardcode_libdir_separator \
9273 hardcode_automatic \
9274 module_cmds \
9275 module_expsym_cmds \
9276 lt_cv_prog_compiler_c_o \
9277 exclude_expsyms \
9278 include_expsyms; do
9279
9280 case $var in
9281 old_archive_cmds | \
9282 old_archive_from_new_cmds | \
9283 archive_cmds | \
9284 archive_expsym_cmds | \
9285 module_cmds | \
9286 module_expsym_cmds | \
9287 old_archive_from_expsyms_cmds | \
9288 export_symbols_cmds | \
9289 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9290 postinstall_cmds | postuninstall_cmds | \
9291 old_postinstall_cmds | old_postuninstall_cmds | \
9292 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9293 # Double-quote double-evaled strings.
9294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9295 ;;
9296 *)
9297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9298 ;;
9299 esac
9300 done
9301
9302 case $lt_echo in
9303 *'\$0 --fallback-echo"')
9304 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9305 ;;
9306 esac
9307
9308 cfgfile="${ofile}T"
9309 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9310 $rm -f "$cfgfile"
9311 { echo "$as_me:$LINENO: creating $ofile" >&5
9312 echo "$as_me: creating $ofile" >&6;}
9313
9314 cat <<__EOF__ >> "$cfgfile"
9315 #! $SHELL
9316
9317 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9318 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9319 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9320 #
9321 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9322 # Free Software Foundation, Inc.
9323 #
9324 # This file is part of GNU Libtool:
9325 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9326 #
9327 # This program is free software; you can redistribute it and/or modify
9328 # it under the terms of the GNU General Public License as published by
9329 # the Free Software Foundation; either version 2 of the License, or
9330 # (at your option) any later version.
9331 #
9332 # This program is distributed in the hope that it will be useful, but
9333 # WITHOUT ANY WARRANTY; without even the implied warranty of
9334 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9335 # General Public License for more details.
9336 #
9337 # You should have received a copy of the GNU General Public License
9338 # along with this program; if not, write to the Free Software
9339 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9340 #
9341 # As a special exception to the GNU General Public License, if you
9342 # distribute this file as part of a program that contains a
9343 # configuration script generated by Autoconf, you may include it under
9344 # the same distribution terms that you use for the rest of that program.
9345
9346 # A sed program that does not truncate output.
9347 SED=$lt_SED
9348
9349 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9350 Xsed="$SED -e 1s/^X//"
9351
9352 # The HP-UX ksh and POSIX shell print the target directory to stdout
9353 # if CDPATH is set.
9354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9355
9356 # The names of the tagged configurations supported by this script.
9357 available_tags=
9358
9359 # ### BEGIN LIBTOOL CONFIG
9360
9361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9362
9363 # Shell to use when invoking shell scripts.
9364 SHELL=$lt_SHELL
9365
9366 # Whether or not to build shared libraries.
9367 build_libtool_libs=$enable_shared
9368
9369 # Whether or not to build static libraries.
9370 build_old_libs=$enable_static
9371
9372 # Whether or not to add -lc for building shared libraries.
9373 build_libtool_need_lc=$archive_cmds_need_lc
9374
9375 # Whether or not to disallow shared libs when runtime libs are static
9376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9377
9378 # Whether or not to optimize for fast installation.
9379 fast_install=$enable_fast_install
9380
9381 # The host system.
9382 host_alias=$host_alias
9383 host=$host
9384 host_os=$host_os
9385
9386 # The build system.
9387 build_alias=$build_alias
9388 build=$build
9389 build_os=$build_os
9390
9391 # An echo program that does not interpret backslashes.
9392 echo=$lt_echo
9393
9394 # The archiver.
9395 AR=$lt_AR
9396 AR_FLAGS=$lt_AR_FLAGS
9397
9398 # A C compiler.
9399 LTCC=$lt_LTCC
9400
9401 # A language-specific compiler.
9402 CC=$lt_compiler
9403
9404 # Is the compiler the GNU C compiler?
9405 with_gcc=$GCC
9406
9407 # An ERE matcher.
9408 EGREP=$lt_EGREP
9409
9410 # The linker used to build libraries.
9411 LD=$lt_LD
9412
9413 # Whether we need hard or soft links.
9414 LN_S=$lt_LN_S
9415
9416 # A BSD-compatible nm program.
9417 NM=$lt_NM
9418
9419 # A symbol stripping program
9420 STRIP=$lt_STRIP
9421
9422 # Used to examine libraries when file_magic_cmd begins "file"
9423 MAGIC_CMD=$MAGIC_CMD
9424
9425 # Used on cygwin: DLL creation program.
9426 DLLTOOL="$DLLTOOL"
9427
9428 # Used on cygwin: object dumper.
9429 OBJDUMP="$OBJDUMP"
9430
9431 # Used on cygwin: assembler.
9432 AS="$AS"
9433
9434 # The name of the directory that contains temporary libtool files.
9435 objdir=$objdir
9436
9437 # How to create reloadable object files.
9438 reload_flag=$lt_reload_flag
9439 reload_cmds=$lt_reload_cmds
9440
9441 # How to pass a linker flag through the compiler.
9442 wl=$lt_lt_prog_compiler_wl
9443
9444 # Object file suffix (normally "o").
9445 objext="$ac_objext"
9446
9447 # Old archive suffix (normally "a").
9448 libext="$libext"
9449
9450 # Shared library suffix (normally ".so").
9451 shrext_cmds='$shrext_cmds'
9452
9453 # Executable file suffix (normally "").
9454 exeext="$exeext"
9455
9456 # Additional compiler flags for building library objects.
9457 pic_flag=$lt_lt_prog_compiler_pic
9458 pic_mode=$pic_mode
9459
9460 # What is the maximum length of a command?
9461 max_cmd_len=$lt_cv_sys_max_cmd_len
9462
9463 # Does compiler simultaneously support -c and -o options?
9464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9465
9466 # Must we lock files when doing compilation?
9467 need_locks=$lt_need_locks
9468
9469 # Do we need the lib prefix for modules?
9470 need_lib_prefix=$need_lib_prefix
9471
9472 # Do we need a version for libraries?
9473 need_version=$need_version
9474
9475 # Whether dlopen is supported.
9476 dlopen_support=$enable_dlopen
9477
9478 # Whether dlopen of programs is supported.
9479 dlopen_self=$enable_dlopen_self
9480
9481 # Whether dlopen of statically linked programs is supported.
9482 dlopen_self_static=$enable_dlopen_self_static
9483
9484 # Compiler flag to prevent dynamic linking.
9485 link_static_flag=$lt_lt_prog_compiler_static
9486
9487 # Compiler flag to turn off builtin functions.
9488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9489
9490 # Compiler flag to allow reflexive dlopens.
9491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9492
9493 # Compiler flag to generate shared objects directly from archives.
9494 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9495
9496 # Compiler flag to generate thread-safe objects.
9497 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9498
9499 # Library versioning type.
9500 version_type=$version_type
9501
9502 # Format of library name prefix.
9503 libname_spec=$lt_libname_spec
9504
9505 # List of archive names. First name is the real one, the rest are links.
9506 # The last name is the one that the linker finds with -lNAME.
9507 library_names_spec=$lt_library_names_spec
9508
9509 # The coded name of the library, if different from the real name.
9510 soname_spec=$lt_soname_spec
9511
9512 # Commands used to build and install an old-style archive.
9513 RANLIB=$lt_RANLIB
9514 old_archive_cmds=$lt_old_archive_cmds
9515 old_postinstall_cmds=$lt_old_postinstall_cmds
9516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9517
9518 # Create an old-style archive from a shared archive.
9519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9520
9521 # Create a temporary old-style archive to link instead of a shared archive.
9522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9523
9524 # Commands used to build and install a shared archive.
9525 archive_cmds=$lt_archive_cmds
9526 archive_expsym_cmds=$lt_archive_expsym_cmds
9527 postinstall_cmds=$lt_postinstall_cmds
9528 postuninstall_cmds=$lt_postuninstall_cmds
9529
9530 # Commands used to build a loadable module (assumed same as above if empty)
9531 module_cmds=$lt_module_cmds
9532 module_expsym_cmds=$lt_module_expsym_cmds
9533
9534 # Commands to strip libraries.
9535 old_striplib=$lt_old_striplib
9536 striplib=$lt_striplib
9537
9538 # Dependencies to place before the objects being linked to create a
9539 # shared library.
9540 predep_objects=$lt_predep_objects
9541
9542 # Dependencies to place after the objects being linked to create a
9543 # shared library.
9544 postdep_objects=$lt_postdep_objects
9545
9546 # Dependencies to place before the objects being linked to create a
9547 # shared library.
9548 predeps=$lt_predeps
9549
9550 # Dependencies to place after the objects being linked to create a
9551 # shared library.
9552 postdeps=$lt_postdeps
9553
9554 # The library search path used internally by the compiler when linking
9555 # a shared library.
9556 compiler_lib_search_path=$lt_compiler_lib_search_path
9557
9558 # Method to check whether dependent libraries are shared objects.
9559 deplibs_check_method=$lt_deplibs_check_method
9560
9561 # Command to use when deplibs_check_method == file_magic.
9562 file_magic_cmd=$lt_file_magic_cmd
9563
9564 # Flag that allows shared libraries with undefined symbols to be built.
9565 allow_undefined_flag=$lt_allow_undefined_flag
9566
9567 # Flag that forces no undefined symbols.
9568 no_undefined_flag=$lt_no_undefined_flag
9569
9570 # Commands used to finish a libtool library installation in a directory.
9571 finish_cmds=$lt_finish_cmds
9572
9573 # Same as above, but a single script fragment to be evaled but not shown.
9574 finish_eval=$lt_finish_eval
9575
9576 # Take the output of nm and produce a listing of raw symbols and C names.
9577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9578
9579 # Transform the output of nm in a proper C declaration
9580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9581
9582 # Transform the output of nm in a C name address pair
9583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9584
9585 # This is the shared library runtime path variable.
9586 runpath_var=$runpath_var
9587
9588 # This is the shared library path variable.
9589 shlibpath_var=$shlibpath_var
9590
9591 # Is shlibpath searched before the hard-coded library search path?
9592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9593
9594 # How to hardcode a shared library path into an executable.
9595 hardcode_action=$hardcode_action
9596
9597 # Whether we should hardcode library paths into libraries.
9598 hardcode_into_libs=$hardcode_into_libs
9599
9600 # Flag to hardcode \$libdir into a binary during linking.
9601 # This must work even if \$libdir does not exist.
9602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9603
9604 # If ld is used when linking, flag to hardcode \$libdir into
9605 # a binary during linking. This must work even if \$libdir does
9606 # not exist.
9607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9608
9609 # Whether we need a single -rpath flag with a separated argument.
9610 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9611
9612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9613 # resulting binary.
9614 hardcode_direct=$hardcode_direct
9615
9616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9617 # resulting binary.
9618 hardcode_minus_L=$hardcode_minus_L
9619
9620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9621 # the resulting binary.
9622 hardcode_shlibpath_var=$hardcode_shlibpath_var
9623
9624 # Set to yes if building a shared library automatically hardcodes DIR into the library
9625 # and all subsequent libraries and executables linked against it.
9626 hardcode_automatic=$hardcode_automatic
9627
9628 # Variables whose values should be saved in libtool wrapper scripts and
9629 # restored at relink time.
9630 variables_saved_for_relink="$variables_saved_for_relink"
9631
9632 # Whether libtool must link a program against all its dependency libraries.
9633 link_all_deplibs=$link_all_deplibs
9634
9635 # Compile-time system search path for libraries
9636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9637
9638 # Run-time system search path for libraries
9639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9640
9641 # Fix the shell variable \$srcfile for the compiler.
9642 fix_srcfile_path="$fix_srcfile_path"
9643
9644 # Set to yes if exported symbols are required.
9645 always_export_symbols=$always_export_symbols
9646
9647 # The commands to list exported symbols.
9648 export_symbols_cmds=$lt_export_symbols_cmds
9649
9650 # The commands to extract the exported symbol list from a shared archive.
9651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9652
9653 # Symbols that should not be listed in the preloaded symbols.
9654 exclude_expsyms=$lt_exclude_expsyms
9655
9656 # Symbols that must always be exported.
9657 include_expsyms=$lt_include_expsyms
9658
9659 # ### END LIBTOOL CONFIG
9660
9661 __EOF__
9662
9663
9664 case $host_os in
9665 aix3*)
9666 cat <<\EOF >> "$cfgfile"
9667
9668 # AIX sometimes has problems with the GCC collect2 program. For some
9669 # reason, if we set the COLLECT_NAMES environment variable, the problems
9670 # vanish in a puff of smoke.
9671 if test "X${COLLECT_NAMES+set}" != Xset; then
9672 COLLECT_NAMES=
9673 export COLLECT_NAMES
9674 fi
9675 EOF
9676 ;;
9677 esac
9678
9679 # We use sed instead of cat because bash on DJGPP gets confused if
9680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9681 # text mode, it properly converts lines to CR/LF. This bash problem
9682 # is reportedly fixed, but why not run on old versions too?
9683 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9684
9685 mv -f "$cfgfile" "$ofile" || \
9686 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9687 chmod +x "$ofile"
9688
9689 else
9690 # If there is no Makefile yet, we rely on a make rule to execute
9691 # `config.status --recheck' to rerun these tests and create the
9692 # libtool script then.
9693 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9694 if test -f "$ltmain_in"; then
9695 test -f Makefile && make "$ltmain"
9696 fi
9697 fi
9698
9699
9700 ac_ext=c
9701 ac_cpp='$CPP $CPPFLAGS'
9702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9705
9706 CC="$lt_save_CC"
9707
9708
9709 # Check whether --with-tags or --without-tags was given.
9710 if test "${with_tags+set}" = set; then
9711 withval="$with_tags"
9712 tagnames="$withval"
9713 fi;
9714
9715 if test -f "$ltmain" && test -n "$tagnames"; then
9716 if test ! -f "${ofile}"; then
9717 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9718 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9719 fi
9720
9721 if test -z "$LTCC"; then
9722 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9723 if test -z "$LTCC"; then
9724 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9725 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9726 else
9727 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9728 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9729 fi
9730 fi
9731
9732 # Extract list of available tagged configurations in $ofile.
9733 # Note that this assumes the entire list is on one line.
9734 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9735
9736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9737 for tagname in $tagnames; do
9738 IFS="$lt_save_ifs"
9739 # Check whether tagname contains only valid characters
9740 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9741 "") ;;
9742 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9743 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9744 { (exit 1); exit 1; }; }
9745 ;;
9746 esac
9747
9748 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9749 then
9750 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9751 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9752 { (exit 1); exit 1; }; }
9753 fi
9754
9755 # Update the list of available tags.
9756 if test -n "$tagname"; then
9757 echo appending configuration tag \"$tagname\" to $ofile
9758
9759 case $tagname in
9760 CXX)
9761 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9762 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9763 (test "X$CXX" != "Xg++"))) ; then
9764 ac_ext=cc
9765 ac_cpp='$CXXCPP $CPPFLAGS'
9766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9769
9770
9771
9772
9773 archive_cmds_need_lc_CXX=no
9774 allow_undefined_flag_CXX=
9775 always_export_symbols_CXX=no
9776 archive_expsym_cmds_CXX=
9777 export_dynamic_flag_spec_CXX=
9778 hardcode_direct_CXX=no
9779 hardcode_libdir_flag_spec_CXX=
9780 hardcode_libdir_flag_spec_ld_CXX=
9781 hardcode_libdir_separator_CXX=
9782 hardcode_minus_L_CXX=no
9783 hardcode_automatic_CXX=no
9784 module_cmds_CXX=
9785 module_expsym_cmds_CXX=
9786 link_all_deplibs_CXX=unknown
9787 old_archive_cmds_CXX=$old_archive_cmds
9788 no_undefined_flag_CXX=
9789 whole_archive_flag_spec_CXX=
9790 enable_shared_with_static_runtimes_CXX=no
9791
9792 # Dependencies to place before and after the object being linked:
9793 predep_objects_CXX=
9794 postdep_objects_CXX=
9795 predeps_CXX=
9796 postdeps_CXX=
9797 compiler_lib_search_path_CXX=
9798
9799 # Source file extension for C++ test sources.
9800 ac_ext=cpp
9801
9802 # Object file extension for compiled C++ test sources.
9803 objext=o
9804 objext_CXX=$objext
9805
9806 # Code to be used in simple compile tests
9807 lt_simple_compile_test_code="int some_variable = 0;\n"
9808
9809 # Code to be used in simple link tests
9810 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9811
9812 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9813
9814 # If no C compiler was specified, use CC.
9815 LTCC=${LTCC-"$CC"}
9816
9817 # Allow CC to be a program name with arguments.
9818 compiler=$CC
9819
9820
9821 # save warnings/boilerplate of simple test code
9822 ac_outfile=conftest.$ac_objext
9823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9825 _lt_compiler_boilerplate=`cat conftest.err`
9826 $rm conftest*
9827
9828 ac_outfile=conftest.$ac_objext
9829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9831 _lt_linker_boilerplate=`cat conftest.err`
9832 $rm conftest*
9833
9834
9835 # Allow CC to be a program name with arguments.
9836 lt_save_CC=$CC
9837 lt_save_LD=$LD
9838 lt_save_GCC=$GCC
9839 GCC=$GXX
9840 lt_save_with_gnu_ld=$with_gnu_ld
9841 lt_save_path_LD=$lt_cv_path_LD
9842 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9843 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9844 else
9845 unset lt_cv_prog_gnu_ld
9846 fi
9847 if test -n "${lt_cv_path_LDCXX+set}"; then
9848 lt_cv_path_LD=$lt_cv_path_LDCXX
9849 else
9850 unset lt_cv_path_LD
9851 fi
9852 test -z "${LDCXX+set}" || LD=$LDCXX
9853 CC=${CXX-"c++"}
9854 compiler=$CC
9855 compiler_CXX=$CC
9856 for cc_temp in $compiler""; do
9857 case $cc_temp in
9858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9860 \-*) ;;
9861 *) break;;
9862 esac
9863 done
9864 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9865
9866
9867 # We don't want -fno-exception wen compiling C++ code, so set the
9868 # no_builtin_flag separately
9869 if test "$GXX" = yes; then
9870 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9871 else
9872 lt_prog_compiler_no_builtin_flag_CXX=
9873 fi
9874
9875 if test "$GXX" = yes; then
9876 # Set up default GNU C++ configuration
9877
9878
9879 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9880 if test "${with_gnu_ld+set}" = set; then
9881 withval="$with_gnu_ld"
9882 test "$withval" = no || with_gnu_ld=yes
9883 else
9884 with_gnu_ld=no
9885 fi;
9886 ac_prog=ld
9887 if test "$GCC" = yes; then
9888 # Check if gcc -print-prog-name=ld gives a path.
9889 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9890 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9891 case $host in
9892 *-*-mingw*)
9893 # gcc leaves a trailing carriage return which upsets mingw
9894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9895 *)
9896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9897 esac
9898 case $ac_prog in
9899 # Accept absolute paths.
9900 [\\/]* | ?:[\\/]*)
9901 re_direlt='/[^/][^/]*/\.\./'
9902 # Canonicalize the pathname of ld
9903 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9905 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9906 done
9907 test -z "$LD" && LD="$ac_prog"
9908 ;;
9909 "")
9910 # If it fails, then pretend we aren't using GCC.
9911 ac_prog=ld
9912 ;;
9913 *)
9914 # If it is relative, then search for the first ld in PATH.
9915 with_gnu_ld=unknown
9916 ;;
9917 esac
9918 elif test "$with_gnu_ld" = yes; then
9919 echo "$as_me:$LINENO: checking for GNU ld" >&5
9920 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9921 else
9922 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9923 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9924 fi
9925 if test "${lt_cv_path_LD+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 if test -z "$LD"; then
9929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9930 for ac_dir in $PATH; do
9931 IFS="$lt_save_ifs"
9932 test -z "$ac_dir" && ac_dir=.
9933 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9934 lt_cv_path_LD="$ac_dir/$ac_prog"
9935 # Check to see if the program is GNU ld. I'd rather use --version,
9936 # but apparently some variants of GNU ld only accept -v.
9937 # Break only if it was the GNU/non-GNU ld that we prefer.
9938 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9939 *GNU* | *'with BFD'*)
9940 test "$with_gnu_ld" != no && break
9941 ;;
9942 *)
9943 test "$with_gnu_ld" != yes && break
9944 ;;
9945 esac
9946 fi
9947 done
9948 IFS="$lt_save_ifs"
9949 else
9950 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9951 fi
9952 fi
9953
9954 LD="$lt_cv_path_LD"
9955 if test -n "$LD"; then
9956 echo "$as_me:$LINENO: result: $LD" >&5
9957 echo "${ECHO_T}$LD" >&6
9958 else
9959 echo "$as_me:$LINENO: result: no" >&5
9960 echo "${ECHO_T}no" >&6
9961 fi
9962 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9963 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9964 { (exit 1); exit 1; }; }
9965 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9966 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9967 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9971 case `$LD -v 2>&1 </dev/null` in
9972 *GNU* | *'with BFD'*)
9973 lt_cv_prog_gnu_ld=yes
9974 ;;
9975 *)
9976 lt_cv_prog_gnu_ld=no
9977 ;;
9978 esac
9979 fi
9980 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9981 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9982 with_gnu_ld=$lt_cv_prog_gnu_ld
9983
9984
9985
9986 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9987 # archiving commands below assume that GNU ld is being used.
9988 if test "$with_gnu_ld" = yes; then
9989 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990 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'
9991
9992 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9993 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9994
9995 # If archive_cmds runs LD, not CC, wlarc should be empty
9996 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9997 # investigate it a little bit more. (MM)
9998 wlarc='${wl}'
9999
10000 # ancient GNU ld didn't support --whole-archive et. al.
10001 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10002 grep 'no-whole-archive' > /dev/null; then
10003 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10004 else
10005 whole_archive_flag_spec_CXX=
10006 fi
10007 else
10008 with_gnu_ld=no
10009 wlarc=
10010
10011 # A generic and very simple default shared library creation
10012 # command for GNU C++ for the case where it uses the native
10013 # linker, instead of GNU ld. If possible, this setting should
10014 # overridden to take advantage of the native linker features on
10015 # the platform it is being used on.
10016 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10017 fi
10018
10019 # Commands to make compiler produce verbose output that lists
10020 # what "hidden" libraries, object files and flags are used when
10021 # linking a shared library.
10022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10023
10024 else
10025 GXX=no
10026 with_gnu_ld=no
10027 wlarc=
10028 fi
10029
10030 # PORTME: fill in a description of your system's C++ link characteristics
10031 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10032 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10033 ld_shlibs_CXX=yes
10034 case $host_os in
10035 aix3*)
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 aix4* | aix5*)
10040 if test "$host_cpu" = ia64; then
10041 # On IA64, the linker does run time linking by default, so we don't
10042 # have to do anything special.
10043 aix_use_runtimelinking=no
10044 exp_sym_flag='-Bexport'
10045 no_entry_flag=""
10046 else
10047 aix_use_runtimelinking=no
10048
10049 # Test if we are trying to use run time linking or normal
10050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051 # need to do runtime linking.
10052 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10053 for ld_flag in $LDFLAGS; do
10054 case $ld_flag in
10055 *-brtl*)
10056 aix_use_runtimelinking=yes
10057 break
10058 ;;
10059 esac
10060 done
10061 esac
10062
10063 exp_sym_flag='-bexport'
10064 no_entry_flag='-bnoentry'
10065 fi
10066
10067 # When large executables or shared objects are built, AIX ld can
10068 # have problems creating the table of contents. If linking a library
10069 # or program results in "error TOC overflow" add -mminimal-toc to
10070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10072
10073 archive_cmds_CXX=''
10074 hardcode_direct_CXX=yes
10075 hardcode_libdir_separator_CXX=':'
10076 link_all_deplibs_CXX=yes
10077
10078 if test "$GXX" = yes; then
10079 case $host_os in aix4.[012]|aix4.[012].*)
10080 # We only want to do this on AIX 4.2 and lower, the check
10081 # below for broken collect2 doesn't work under 4.3+
10082 collect2name=`${CC} -print-prog-name=collect2`
10083 if test -f "$collect2name" && \
10084 strings "$collect2name" | grep resolve_lib_name >/dev/null
10085 then
10086 # We have reworked collect2
10087 hardcode_direct_CXX=yes
10088 else
10089 # We have old collect2
10090 hardcode_direct_CXX=unsupported
10091 # It fails to find uninstalled libraries when the uninstalled
10092 # path is not listed in the libpath. Setting hardcode_minus_L
10093 # to unsupported forces relinking
10094 hardcode_minus_L_CXX=yes
10095 hardcode_libdir_flag_spec_CXX='-L$libdir'
10096 hardcode_libdir_separator_CXX=
10097 fi
10098 esac
10099 shared_flag='-shared'
10100 if test "$aix_use_runtimelinking" = yes; then
10101 shared_flag="$shared_flag "'${wl}-G'
10102 fi
10103 else
10104 # not using gcc
10105 if test "$host_cpu" = ia64; then
10106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107 # chokes on -Wl,-G. The following line is correct:
10108 shared_flag='-G'
10109 else
10110 if test "$aix_use_runtimelinking" = yes; then
10111 shared_flag='${wl}-G'
10112 else
10113 shared_flag='${wl}-bM:SRE'
10114 fi
10115 fi
10116 fi
10117
10118 # It seems that -bexpall does not export symbols beginning with
10119 # underscore (_), so it is better to generate a list of symbols to export.
10120 always_export_symbols_CXX=yes
10121 if test "$aix_use_runtimelinking" = yes; then
10122 # Warning - without using the other runtime loading flags (-brtl),
10123 # -berok will link without error, but may produce a broken library.
10124 allow_undefined_flag_CXX='-berok'
10125 # Determine the default libpath from the value encoded in an empty executable.
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132
10133 int
10134 main ()
10135 {
10136
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162
10163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10164 }'`
10165 # Check for a 64-bit object if we didn't find anything.
10166 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; }
10167 }'`; fi
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 fi
10173 rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10176
10177 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10178
10179 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"
10180 else
10181 if test "$host_cpu" = ia64; then
10182 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10183 allow_undefined_flag_CXX="-z nodefs"
10184 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"
10185 else
10186 # Determine the default libpath from the value encoded in an empty executable.
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h. */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193
10194 int
10195 main ()
10196 {
10197
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223
10224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10225 }'`
10226 # Check for a 64-bit object if we didn't find anything.
10227 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; }
10228 }'`; fi
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 fi
10234 rm -f conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10239 # Warning - without using the other run time loading flags,
10240 # -berok will link without error, but may produce a broken library.
10241 no_undefined_flag_CXX=' ${wl}-bernotok'
10242 allow_undefined_flag_CXX=' ${wl}-berok'
10243 # -bexpall does not export symbols beginning with underscore (_)
10244 always_export_symbols_CXX=yes
10245 # Exported symbols can be pulled into shared objects from archives
10246 whole_archive_flag_spec_CXX=' '
10247 archive_cmds_need_lc_CXX=yes
10248 # This is similar to how AIX traditionally builds its shared libraries.
10249 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'
10250 fi
10251 fi
10252 ;;
10253 chorus*)
10254 case $cc_basename in
10255 *)
10256 # FIXME: insert proper C++ library support
10257 ld_shlibs_CXX=no
10258 ;;
10259 esac
10260 ;;
10261
10262
10263 cygwin* | mingw* | pw32*)
10264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10265 # as there is no search path for DLLs.
10266 hardcode_libdir_flag_spec_CXX='-L$libdir'
10267 allow_undefined_flag_CXX=unsupported
10268 always_export_symbols_CXX=no
10269 enable_shared_with_static_runtimes_CXX=yes
10270
10271 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10272 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'
10273 # If the export-symbols file already is a .def file (1st line
10274 # is EXPORTS), use it as is; otherwise, prepend...
10275 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10276 cp $export_symbols $output_objdir/$soname.def;
10277 else
10278 echo EXPORTS > $output_objdir/$soname.def;
10279 cat $export_symbols >> $output_objdir/$soname.def;
10280 fi~
10281 $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'
10282 else
10283 ld_shlibs_CXX=no
10284 fi
10285 ;;
10286 darwin* | rhapsody*)
10287 case $host_os in
10288 rhapsody* | darwin1.[012])
10289 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10290 ;;
10291 *) # Darwin 1.3 on
10292 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10293 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10294 else
10295 case ${MACOSX_DEPLOYMENT_TARGET} in
10296 10.[012])
10297 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10298 ;;
10299 10.*)
10300 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10301 ;;
10302 esac
10303 fi
10304 ;;
10305 esac
10306 archive_cmds_need_lc_CXX=no
10307 hardcode_direct_CXX=no
10308 hardcode_automatic_CXX=yes
10309 hardcode_shlibpath_var_CXX=unsupported
10310 whole_archive_flag_spec_CXX=''
10311 link_all_deplibs_CXX=yes
10312
10313 if test "$GXX" = yes ; then
10314 lt_int_apple_cc_single_mod=no
10315 output_verbose_link_cmd='echo'
10316 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10317 lt_int_apple_cc_single_mod=yes
10318 fi
10319 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10320 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10321 else
10322 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'
10323 fi
10324 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10325 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10326 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10327 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}'
10328 else
10329 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}'
10330 fi
10331 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}'
10332 else
10333 case $cc_basename in
10334 xlc*)
10335 output_verbose_link_cmd='echo'
10336 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'
10337 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10339 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}'
10340 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}'
10341 ;;
10342 *)
10343 ld_shlibs_CXX=no
10344 ;;
10345 esac
10346 fi
10347 ;;
10348
10349 dgux*)
10350 case $cc_basename in
10351 ec++*)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 ghcx*)
10356 # Green Hills C++ Compiler
10357 # FIXME: insert proper C++ library support
10358 ld_shlibs_CXX=no
10359 ;;
10360 *)
10361 # FIXME: insert proper C++ library support
10362 ld_shlibs_CXX=no
10363 ;;
10364 esac
10365 ;;
10366 freebsd[12]*)
10367 # C++ shared libraries reported to be fairly broken before switch to ELF
10368 ld_shlibs_CXX=no
10369 ;;
10370 freebsd-elf*)
10371 archive_cmds_need_lc_CXX=no
10372 ;;
10373 freebsd* | kfreebsd*-gnu | dragonfly*)
10374 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10375 # conventions
10376 ld_shlibs_CXX=yes
10377 ;;
10378 gnu*)
10379 ;;
10380 hpux9*)
10381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10382 hardcode_libdir_separator_CXX=:
10383 export_dynamic_flag_spec_CXX='${wl}-E'
10384 hardcode_direct_CXX=yes
10385 hardcode_minus_L_CXX=yes # Not in the search PATH,
10386 # but as the default
10387 # location of the library.
10388
10389 case $cc_basename in
10390 CC*)
10391 # FIXME: insert proper C++ library support
10392 ld_shlibs_CXX=no
10393 ;;
10394 aCC*)
10395 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'
10396 # Commands to make compiler produce verbose output that lists
10397 # what "hidden" libraries, object files and flags are used when
10398 # linking a shared library.
10399 #
10400 # There doesn't appear to be a way to prevent this compiler from
10401 # explicitly linking system object files so we need to strip them
10402 # from the output so that they don't get included in the library
10403 # dependencies.
10404 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'
10405 ;;
10406 *)
10407 if test "$GXX" = yes; then
10408 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'
10409 else
10410 # FIXME: insert proper C++ library support
10411 ld_shlibs_CXX=no
10412 fi
10413 ;;
10414 esac
10415 ;;
10416 hpux10*|hpux11*)
10417 if test $with_gnu_ld = no; then
10418 case $host_cpu in
10419 hppa*64*)
10420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10421 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10422 hardcode_libdir_separator_CXX=:
10423 ;;
10424 ia64*)
10425 hardcode_libdir_flag_spec_CXX='-L$libdir'
10426 ;;
10427 *)
10428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_separator_CXX=:
10430 export_dynamic_flag_spec_CXX='${wl}-E'
10431 ;;
10432 esac
10433 fi
10434 case $host_cpu in
10435 hppa*64*)
10436 hardcode_direct_CXX=no
10437 hardcode_shlibpath_var_CXX=no
10438 ;;
10439 ia64*)
10440 hardcode_direct_CXX=no
10441 hardcode_shlibpath_var_CXX=no
10442 hardcode_minus_L_CXX=yes # Not in the search PATH,
10443 # but as the default
10444 # location of the library.
10445 ;;
10446 *)
10447 hardcode_direct_CXX=yes
10448 hardcode_minus_L_CXX=yes # Not in the search PATH,
10449 # but as the default
10450 # location of the library.
10451 ;;
10452 esac
10453
10454 case $cc_basename in
10455 CC*)
10456 # FIXME: insert proper C++ library support
10457 ld_shlibs_CXX=no
10458 ;;
10459 aCC*)
10460 case $host_cpu in
10461 hppa*64*|ia64*)
10462 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10463 ;;
10464 *)
10465 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10466 ;;
10467 esac
10468 # Commands to make compiler produce verbose output that lists
10469 # what "hidden" libraries, object files and flags are used when
10470 # linking a shared library.
10471 #
10472 # There doesn't appear to be a way to prevent this compiler from
10473 # explicitly linking system object files so we need to strip them
10474 # from the output so that they don't get included in the library
10475 # dependencies.
10476 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'
10477 ;;
10478 *)
10479 if test "$GXX" = yes; then
10480 if test $with_gnu_ld = no; then
10481 case $host_cpu in
10482 ia64*|hppa*64*)
10483 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10484 ;;
10485 *)
10486 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'
10487 ;;
10488 esac
10489 fi
10490 else
10491 # FIXME: insert proper C++ library support
10492 ld_shlibs_CXX=no
10493 fi
10494 ;;
10495 esac
10496 ;;
10497 irix5* | irix6*)
10498 case $cc_basename in
10499 CC*)
10500 # SGI C++
10501 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'
10502
10503 # Archives containing C++ object files must be created using
10504 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10505 # necessary to make sure instantiated templates are included
10506 # in the archive.
10507 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10508 ;;
10509 *)
10510 if test "$GXX" = yes; then
10511 if test "$with_gnu_ld" = no; then
10512 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'
10513 else
10514 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'
10515 fi
10516 fi
10517 link_all_deplibs_CXX=yes
10518 ;;
10519 esac
10520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10521 hardcode_libdir_separator_CXX=:
10522 ;;
10523 linux*)
10524 case $cc_basename in
10525 KCC*)
10526 # Kuck and Associates, Inc. (KAI) C++ Compiler
10527
10528 # KCC will only create a shared library if the output file
10529 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10530 # to its proper name (with version) after linking.
10531 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'
10532 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'
10533 # Commands to make compiler produce verbose output that lists
10534 # what "hidden" libraries, object files and flags are used when
10535 # linking a shared library.
10536 #
10537 # There doesn't appear to be a way to prevent this compiler from
10538 # explicitly linking system object files so we need to strip them
10539 # from the output so that they don't get included in the library
10540 # dependencies.
10541 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'
10542
10543 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10545
10546 # Archives containing C++ object files must be created using
10547 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10548 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10549 ;;
10550 icpc*)
10551 # Intel C++
10552 with_gnu_ld=yes
10553 # version 8.0 and above of icpc choke on multiply defined symbols
10554 # if we add $predep_objects and $postdep_objects, however 7.1 and
10555 # earlier do not add the objects themselves.
10556 case `$CC -V 2>&1` in
10557 *"Version 7."*)
10558 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559 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'
10560 ;;
10561 *) # Version 8.0 or newer
10562 tmp_idyn=
10563 case $host_cpu in
10564 ia64*) tmp_idyn=' -i_dynamic';;
10565 esac
10566 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567 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'
10568 ;;
10569 esac
10570 archive_cmds_need_lc_CXX=no
10571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10573 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10574 ;;
10575 pgCC*)
10576 # Portland Group C++ compiler
10577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10578 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10579
10580 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10582 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10583 ;;
10584 cxx*)
10585 # Compaq C++
10586 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10587 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'
10588
10589 runpath_var=LD_RUN_PATH
10590 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10591 hardcode_libdir_separator_CXX=:
10592
10593 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when
10595 # linking a shared library.
10596 #
10597 # There doesn't appear to be a way to prevent this compiler from
10598 # explicitly linking system object files so we need to strip them
10599 # from the output so that they don't get included in the library
10600 # dependencies.
10601 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'
10602 ;;
10603 esac
10604 ;;
10605 lynxos*)
10606 # FIXME: insert proper C++ library support
10607 ld_shlibs_CXX=no
10608 ;;
10609 m88k*)
10610 # FIXME: insert proper C++ library support
10611 ld_shlibs_CXX=no
10612 ;;
10613 mvs*)
10614 case $cc_basename in
10615 cxx*)
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10618 ;;
10619 *)
10620 # FIXME: insert proper C++ library support
10621 ld_shlibs_CXX=no
10622 ;;
10623 esac
10624 ;;
10625 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10627 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10628 wlarc=
10629 hardcode_libdir_flag_spec_CXX='-R$libdir'
10630 hardcode_direct_CXX=yes
10631 hardcode_shlibpath_var_CXX=no
10632 fi
10633 # Workaround some broken pre-1.5 toolchains
10634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10635 ;;
10636 openbsd2*)
10637 # C++ shared libraries are fairly broken
10638 ld_shlibs_CXX=no
10639 ;;
10640 openbsd*)
10641 hardcode_direct_CXX=yes
10642 hardcode_shlibpath_var_CXX=no
10643 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10646 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10647 export_dynamic_flag_spec_CXX='${wl}-E'
10648 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10649 fi
10650 output_verbose_link_cmd='echo'
10651 ;;
10652 osf3*)
10653 case $cc_basename in
10654 KCC*)
10655 # Kuck and Associates, Inc. (KAI) C++ Compiler
10656
10657 # KCC will only create a shared library if the output file
10658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10659 # to its proper name (with version) after linking.
10660 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'
10661
10662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663 hardcode_libdir_separator_CXX=:
10664
10665 # Archives containing C++ object files must be created using
10666 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10667 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10668
10669 ;;
10670 RCC*)
10671 # Rational C++ 2.4.1
10672 # FIXME: insert proper C++ library support
10673 ld_shlibs_CXX=no
10674 ;;
10675 cxx*)
10676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10677 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'
10678
10679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10680 hardcode_libdir_separator_CXX=:
10681
10682 # Commands to make compiler produce verbose output that lists
10683 # what "hidden" libraries, object files and flags are used when
10684 # linking a shared library.
10685 #
10686 # There doesn't appear to be a way to prevent this compiler from
10687 # explicitly linking system object files so we need to strip them
10688 # from the output so that they don't get included in the library
10689 # dependencies.
10690 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'
10691 ;;
10692 *)
10693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10695 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'
10696
10697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10698 hardcode_libdir_separator_CXX=:
10699
10700 # Commands to make compiler produce verbose output that lists
10701 # what "hidden" libraries, object files and flags are used when
10702 # linking a shared library.
10703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10704
10705 else
10706 # FIXME: insert proper C++ library support
10707 ld_shlibs_CXX=no
10708 fi
10709 ;;
10710 esac
10711 ;;
10712 osf4* | osf5*)
10713 case $cc_basename in
10714 KCC*)
10715 # Kuck and Associates, Inc. (KAI) C++ Compiler
10716
10717 # KCC will only create a shared library if the output file
10718 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10719 # to its proper name (with version) after linking.
10720 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'
10721
10722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10723 hardcode_libdir_separator_CXX=:
10724
10725 # Archives containing C++ object files must be created using
10726 # the KAI C++ compiler.
10727 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10728 ;;
10729 RCC*)
10730 # Rational C++ 2.4.1
10731 # FIXME: insert proper C++ library support
10732 ld_shlibs_CXX=no
10733 ;;
10734 cxx*)
10735 allow_undefined_flag_CXX=' -expect_unresolved \*'
10736 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'
10737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10738 echo "-hidden">> $lib.exp~
10739 $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~
10740 $rm $lib.exp'
10741
10742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10743 hardcode_libdir_separator_CXX=:
10744
10745 # Commands to make compiler produce verbose output that lists
10746 # what "hidden" libraries, object files and flags are used when
10747 # linking a shared library.
10748 #
10749 # There doesn't appear to be a way to prevent this compiler from
10750 # explicitly linking system object files so we need to strip them
10751 # from the output so that they don't get included in the library
10752 # dependencies.
10753 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'
10754 ;;
10755 *)
10756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10757 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10758 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'
10759
10760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10761 hardcode_libdir_separator_CXX=:
10762
10763 # Commands to make compiler produce verbose output that lists
10764 # what "hidden" libraries, object files and flags are used when
10765 # linking a shared library.
10766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10767
10768 else
10769 # FIXME: insert proper C++ library support
10770 ld_shlibs_CXX=no
10771 fi
10772 ;;
10773 esac
10774 ;;
10775 psos*)
10776 # FIXME: insert proper C++ library support
10777 ld_shlibs_CXX=no
10778 ;;
10779 sco*)
10780 archive_cmds_need_lc_CXX=no
10781 case $cc_basename in
10782 CC*)
10783 # FIXME: insert proper C++ library support
10784 ld_shlibs_CXX=no
10785 ;;
10786 *)
10787 # FIXME: insert proper C++ library support
10788 ld_shlibs_CXX=no
10789 ;;
10790 esac
10791 ;;
10792 sunos4*)
10793 case $cc_basename in
10794 CC*)
10795 # Sun C++ 4.x
10796 # FIXME: insert proper C++ library support
10797 ld_shlibs_CXX=no
10798 ;;
10799 lcc*)
10800 # Lucid
10801 # FIXME: insert proper C++ library support
10802 ld_shlibs_CXX=no
10803 ;;
10804 *)
10805 # FIXME: insert proper C++ library support
10806 ld_shlibs_CXX=no
10807 ;;
10808 esac
10809 ;;
10810 solaris*)
10811 case $cc_basename in
10812 CC*)
10813 # Sun C++ 4.2, 5.x and Centerline C++
10814 archive_cmds_need_lc_CXX=yes
10815 no_undefined_flag_CXX=' -zdefs'
10816 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10817 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10818 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10819
10820 hardcode_libdir_flag_spec_CXX='-R$libdir'
10821 hardcode_shlibpath_var_CXX=no
10822 case $host_os in
10823 solaris2.[0-5] | solaris2.[0-5].*) ;;
10824 *)
10825 # The C++ compiler is used as linker so we must use $wl
10826 # flag to pass the commands to the underlying system
10827 # linker. We must also pass each convience library through
10828 # to the system linker between allextract/defaultextract.
10829 # The C++ compiler will combine linker options so we
10830 # cannot just pass the convience library names through
10831 # without $wl.
10832 # Supported since Solaris 2.6 (maybe 2.5.1?)
10833 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'
10834 ;;
10835 esac
10836 link_all_deplibs_CXX=yes
10837
10838 output_verbose_link_cmd='echo'
10839
10840 # Archives containing C++ object files must be created using
10841 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10842 # necessary to make sure instantiated templates are included
10843 # in the archive.
10844 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10845 ;;
10846 gcx*)
10847 # Green Hills C++ Compiler
10848 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10849
10850 # The C++ compiler must be used to create the archive.
10851 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10852 ;;
10853 *)
10854 # GNU C++ compiler with Solaris linker
10855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10856 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10857 if $CC --version | grep -v '^2\.7' > /dev/null; then
10858 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10859 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10860 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10861
10862 # Commands to make compiler produce verbose output that lists
10863 # what "hidden" libraries, object files and flags are used when
10864 # linking a shared library.
10865 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10866 else
10867 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10868 # platform.
10869 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10870 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10871 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10872
10873 # Commands to make compiler produce verbose output that lists
10874 # what "hidden" libraries, object files and flags are used when
10875 # linking a shared library.
10876 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10877 fi
10878
10879 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10880 fi
10881 ;;
10882 esac
10883 ;;
10884 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10885 archive_cmds_need_lc_CXX=no
10886 ;;
10887 tandem*)
10888 case $cc_basename in
10889 NCC*)
10890 # NonStop-UX NCC 3.20
10891 # FIXME: insert proper C++ library support
10892 ld_shlibs_CXX=no
10893 ;;
10894 *)
10895 # FIXME: insert proper C++ library support
10896 ld_shlibs_CXX=no
10897 ;;
10898 esac
10899 ;;
10900 vxworks*)
10901 # FIXME: insert proper C++ library support
10902 ld_shlibs_CXX=no
10903 ;;
10904 *)
10905 # FIXME: insert proper C++ library support
10906 ld_shlibs_CXX=no
10907 ;;
10908 esac
10909 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10910 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10911 test "$ld_shlibs_CXX" = no && can_build_shared=no
10912
10913 GCC_CXX="$GXX"
10914 LD_CXX="$LD"
10915
10916
10917 cat > conftest.$ac_ext <<EOF
10918 class Foo
10919 {
10920 public:
10921 Foo (void) { a = 0; }
10922 private:
10923 int a;
10924 };
10925 EOF
10926
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; then
10932 # Parse the compiler output and extract the necessary
10933 # objects, libraries and library flags.
10934
10935 # Sentinel used to keep track of whether or not we are before
10936 # the conftest object file.
10937 pre_test_object_deps_done=no
10938
10939 # The `*' in the case matches for architectures that use `case' in
10940 # $output_verbose_cmd can trigger glob expansion during the loop
10941 # eval without this substitution.
10942 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10943
10944 for p in `eval $output_verbose_link_cmd`; do
10945 case $p in
10946
10947 -L* | -R* | -l*)
10948 # Some compilers place space between "-{L,R}" and the path.
10949 # Remove the space.
10950 if test $p = "-L" \
10951 || test $p = "-R"; then
10952 prev=$p
10953 continue
10954 else
10955 prev=
10956 fi
10957
10958 if test "$pre_test_object_deps_done" = no; then
10959 case $p in
10960 -L* | -R*)
10961 # Internal compiler library paths should come after those
10962 # provided the user. The postdeps already come after the
10963 # user supplied libs so there is no need to process them.
10964 if test -z "$compiler_lib_search_path_CXX"; then
10965 compiler_lib_search_path_CXX="${prev}${p}"
10966 else
10967 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10968 fi
10969 ;;
10970 # The "-l" case would never come before the object being
10971 # linked, so don't bother handling this case.
10972 esac
10973 else
10974 if test -z "$postdeps_CXX"; then
10975 postdeps_CXX="${prev}${p}"
10976 else
10977 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10978 fi
10979 fi
10980 ;;
10981
10982 *.$objext)
10983 # This assumes that the test object file only shows up
10984 # once in the compiler output.
10985 if test "$p" = "conftest.$objext"; then
10986 pre_test_object_deps_done=yes
10987 continue
10988 fi
10989
10990 if test "$pre_test_object_deps_done" = no; then
10991 if test -z "$predep_objects_CXX"; then
10992 predep_objects_CXX="$p"
10993 else
10994 predep_objects_CXX="$predep_objects_CXX $p"
10995 fi
10996 else
10997 if test -z "$postdep_objects_CXX"; then
10998 postdep_objects_CXX="$p"
10999 else
11000 postdep_objects_CXX="$postdep_objects_CXX $p"
11001 fi
11002 fi
11003 ;;
11004
11005 *) ;; # Ignore the rest.
11006
11007 esac
11008 done
11009
11010 # Clean up.
11011 rm -f a.out a.exe
11012 else
11013 echo "libtool.m4: error: problem compiling CXX test program"
11014 fi
11015
11016 $rm -f confest.$objext
11017
11018 # PORTME: override above test on systems where it is broken
11019 case $host_os in
11020 solaris*)
11021 case $cc_basename in
11022 CC*)
11023 # Adding this requires a known-good setup of shared libraries for
11024 # Sun compiler versions before 5.6, else PIC objects from an old
11025 # archive will be linked into the output, leading to subtle bugs.
11026 postdeps_CXX='-lCstd -lCrun'
11027 ;;
11028 esac
11029 esac
11030
11031
11032 case " $postdeps_CXX " in
11033 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11034 esac
11035
11036 lt_prog_compiler_wl_CXX=
11037 lt_prog_compiler_pic_CXX=
11038 lt_prog_compiler_static_CXX=
11039
11040 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11041 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11042
11043 # C++ specific cases for pic, static, wl, etc.
11044 if test "$GXX" = yes; then
11045 lt_prog_compiler_wl_CXX='-Wl,'
11046 lt_prog_compiler_static_CXX='-static'
11047
11048 case $host_os in
11049 aix*)
11050 # All AIX code is PIC.
11051 if test "$host_cpu" = ia64; then
11052 # AIX 5 now supports IA64 processor
11053 lt_prog_compiler_static_CXX='-Bstatic'
11054 fi
11055 ;;
11056 amigaos*)
11057 # FIXME: we need at least 68020 code to build shared libraries, but
11058 # adding the `-m68020' flag to GCC prevents building anything better,
11059 # like `-m68040'.
11060 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11061 ;;
11062 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11063 # PIC is the default for these OSes.
11064 ;;
11065 mingw* | os2* | pw32*)
11066 # This hack is so that the source file can tell whether it is being
11067 # built for inclusion in a dll (and should export symbols for example).
11068 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11069 ;;
11070 darwin* | rhapsody*)
11071 # PIC is the default on this platform
11072 # Common symbols not allowed in MH_DYLIB files
11073 lt_prog_compiler_pic_CXX='-fno-common'
11074 ;;
11075 *djgpp*)
11076 # DJGPP does not support shared libraries at all
11077 lt_prog_compiler_pic_CXX=
11078 ;;
11079 sysv4*MP*)
11080 if test -d /usr/nec; then
11081 lt_prog_compiler_pic_CXX=-Kconform_pic
11082 fi
11083 ;;
11084 hpux*)
11085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11086 # not for PA HP-UX.
11087 case $host_cpu in
11088 hppa*64*|ia64*)
11089 ;;
11090 *)
11091 lt_prog_compiler_pic_CXX='-fPIC'
11092 ;;
11093 esac
11094 ;;
11095 *)
11096 lt_prog_compiler_pic_CXX='-fPIC'
11097 ;;
11098 esac
11099 else
11100 case $host_os in
11101 aix4* | aix5*)
11102 # All AIX code is PIC.
11103 if test "$host_cpu" = ia64; then
11104 # AIX 5 now supports IA64 processor
11105 lt_prog_compiler_static_CXX='-Bstatic'
11106 else
11107 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11108 fi
11109 ;;
11110 chorus*)
11111 case $cc_basename in
11112 cxch68*)
11113 # Green Hills C++ Compiler
11114 # _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"
11115 ;;
11116 esac
11117 ;;
11118 darwin*)
11119 # PIC is the default on this platform
11120 # Common symbols not allowed in MH_DYLIB files
11121 case $cc_basename in
11122 xlc*)
11123 lt_prog_compiler_pic_CXX='-qnocommon'
11124 lt_prog_compiler_wl_CXX='-Wl,'
11125 ;;
11126 esac
11127 ;;
11128 dgux*)
11129 case $cc_basename in
11130 ec++*)
11131 lt_prog_compiler_pic_CXX='-KPIC'
11132 ;;
11133 ghcx*)
11134 # Green Hills C++ Compiler
11135 lt_prog_compiler_pic_CXX='-pic'
11136 ;;
11137 *)
11138 ;;
11139 esac
11140 ;;
11141 freebsd* | kfreebsd*-gnu | dragonfly*)
11142 # FreeBSD uses GNU C++
11143 ;;
11144 hpux9* | hpux10* | hpux11*)
11145 case $cc_basename in
11146 CC*)
11147 lt_prog_compiler_wl_CXX='-Wl,'
11148 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11149 if test "$host_cpu" != ia64; then
11150 lt_prog_compiler_pic_CXX='+Z'
11151 fi
11152 ;;
11153 aCC*)
11154 lt_prog_compiler_wl_CXX='-Wl,'
11155 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11156 case $host_cpu in
11157 hppa*64*|ia64*)
11158 # +Z the default
11159 ;;
11160 *)
11161 lt_prog_compiler_pic_CXX='+Z'
11162 ;;
11163 esac
11164 ;;
11165 *)
11166 ;;
11167 esac
11168 ;;
11169 irix5* | irix6* | nonstopux*)
11170 case $cc_basename in
11171 CC*)
11172 lt_prog_compiler_wl_CXX='-Wl,'
11173 lt_prog_compiler_static_CXX='-non_shared'
11174 # CC pic flag -KPIC is the default.
11175 ;;
11176 *)
11177 ;;
11178 esac
11179 ;;
11180 linux*)
11181 case $cc_basename in
11182 KCC*)
11183 # KAI C++ Compiler
11184 lt_prog_compiler_wl_CXX='--backend -Wl,'
11185 lt_prog_compiler_pic_CXX='-fPIC'
11186 ;;
11187 icpc* | ecpc*)
11188 # Intel C++
11189 lt_prog_compiler_wl_CXX='-Wl,'
11190 lt_prog_compiler_pic_CXX='-KPIC'
11191 lt_prog_compiler_static_CXX='-static'
11192 ;;
11193 pgCC*)
11194 # Portland Group C++ compiler.
11195 lt_prog_compiler_wl_CXX='-Wl,'
11196 lt_prog_compiler_pic_CXX='-fpic'
11197 lt_prog_compiler_static_CXX='-Bstatic'
11198 ;;
11199 cxx*)
11200 # Compaq C++
11201 # Make sure the PIC flag is empty. It appears that all Alpha
11202 # Linux and Compaq Tru64 Unix objects are PIC.
11203 lt_prog_compiler_pic_CXX=
11204 lt_prog_compiler_static_CXX='-non_shared'
11205 ;;
11206 *)
11207 ;;
11208 esac
11209 ;;
11210 lynxos*)
11211 ;;
11212 m88k*)
11213 ;;
11214 mvs*)
11215 case $cc_basename in
11216 cxx*)
11217 lt_prog_compiler_pic_CXX='-W c,exportall'
11218 ;;
11219 *)
11220 ;;
11221 esac
11222 ;;
11223 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11224 ;;
11225 osf3* | osf4* | osf5*)
11226 case $cc_basename in
11227 KCC*)
11228 lt_prog_compiler_wl_CXX='--backend -Wl,'
11229 ;;
11230 RCC*)
11231 # Rational C++ 2.4.1
11232 lt_prog_compiler_pic_CXX='-pic'
11233 ;;
11234 cxx*)
11235 # Digital/Compaq C++
11236 lt_prog_compiler_wl_CXX='-Wl,'
11237 # Make sure the PIC flag is empty. It appears that all Alpha
11238 # Linux and Compaq Tru64 Unix objects are PIC.
11239 lt_prog_compiler_pic_CXX=
11240 lt_prog_compiler_static_CXX='-non_shared'
11241 ;;
11242 *)
11243 ;;
11244 esac
11245 ;;
11246 psos*)
11247 ;;
11248 sco*)
11249 case $cc_basename in
11250 CC*)
11251 lt_prog_compiler_pic_CXX='-fPIC'
11252 ;;
11253 *)
11254 ;;
11255 esac
11256 ;;
11257 solaris*)
11258 case $cc_basename in
11259 CC*)
11260 # Sun C++ 4.2, 5.x and Centerline C++
11261 lt_prog_compiler_pic_CXX='-KPIC'
11262 lt_prog_compiler_static_CXX='-Bstatic'
11263 lt_prog_compiler_wl_CXX='-Qoption ld '
11264 ;;
11265 gcx*)
11266 # Green Hills C++ Compiler
11267 lt_prog_compiler_pic_CXX='-PIC'
11268 ;;
11269 *)
11270 ;;
11271 esac
11272 ;;
11273 sunos4*)
11274 case $cc_basename in
11275 CC*)
11276 # Sun C++ 4.x
11277 lt_prog_compiler_pic_CXX='-pic'
11278 lt_prog_compiler_static_CXX='-Bstatic'
11279 ;;
11280 lcc*)
11281 # Lucid
11282 lt_prog_compiler_pic_CXX='-pic'
11283 ;;
11284 *)
11285 ;;
11286 esac
11287 ;;
11288 tandem*)
11289 case $cc_basename in
11290 NCC*)
11291 # NonStop-UX NCC 3.20
11292 lt_prog_compiler_pic_CXX='-KPIC'
11293 ;;
11294 *)
11295 ;;
11296 esac
11297 ;;
11298 unixware*)
11299 ;;
11300 vxworks*)
11301 ;;
11302 *)
11303 lt_prog_compiler_can_build_shared_CXX=no
11304 ;;
11305 esac
11306 fi
11307
11308 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11309 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11310
11311 #
11312 # Check to make sure the PIC flag actually works.
11313 #
11314 if test -n "$lt_prog_compiler_pic_CXX"; then
11315
11316 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11317 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11318 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 lt_prog_compiler_pic_works_CXX=no
11322 ac_outfile=conftest.$ac_objext
11323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11324 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11325 # Insert the option either (1) after the last *FLAGS variable, or
11326 # (2) before a word containing "conftest.", or (3) at the end.
11327 # Note that $ac_compile itself does not contain backslashes and begins
11328 # with a dollar sign (not a hyphen), so the echo should work correctly.
11329 # The option is referenced via a variable to avoid confusing sed.
11330 lt_compile=`echo "$ac_compile" | $SED \
11331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11333 -e 's:$: $lt_compiler_flag:'`
11334 (eval echo "\"\$as_me:11334: $lt_compile\"" >&5)
11335 (eval "$lt_compile" 2>conftest.err)
11336 ac_status=$?
11337 cat conftest.err >&5
11338 echo "$as_me:11338: \$? = $ac_status" >&5
11339 if (exit $ac_status) && test -s "$ac_outfile"; then
11340 # The compiler can only warn and ignore the option if not recognized
11341 # So say no if there are warnings other than the usual output.
11342 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11343 $SED '/^$/d' conftest.err >conftest.er2
11344 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11345 lt_prog_compiler_pic_works_CXX=yes
11346 fi
11347 fi
11348 $rm conftest*
11349
11350 fi
11351 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11352 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11353
11354 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11355 case $lt_prog_compiler_pic_CXX in
11356 "" | " "*) ;;
11357 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11358 esac
11359 else
11360 lt_prog_compiler_pic_CXX=
11361 lt_prog_compiler_can_build_shared_CXX=no
11362 fi
11363
11364 fi
11365 case $host_os in
11366 # For platforms which do not support PIC, -DPIC is meaningless:
11367 *djgpp*)
11368 lt_prog_compiler_pic_CXX=
11369 ;;
11370 *)
11371 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11372 ;;
11373 esac
11374
11375 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11377 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 lt_cv_prog_compiler_c_o_CXX=no
11381 $rm -r conftest 2>/dev/null
11382 mkdir conftest
11383 cd conftest
11384 mkdir out
11385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11386
11387 lt_compiler_flag="-o out/conftest2.$ac_objext"
11388 # Insert the option either (1) after the last *FLAGS variable, or
11389 # (2) before a word containing "conftest.", or (3) at the end.
11390 # Note that $ac_compile itself does not contain backslashes and begins
11391 # with a dollar sign (not a hyphen), so the echo should work correctly.
11392 lt_compile=`echo "$ac_compile" | $SED \
11393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11395 -e 's:$: $lt_compiler_flag:'`
11396 (eval echo "\"\$as_me:11396: $lt_compile\"" >&5)
11397 (eval "$lt_compile" 2>out/conftest.err)
11398 ac_status=$?
11399 cat out/conftest.err >&5
11400 echo "$as_me:11400: \$? = $ac_status" >&5
11401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11402 then
11403 # The compiler can only warn and ignore the option if not recognized
11404 # So say no if there are warnings
11405 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11406 $SED '/^$/d' out/conftest.err >out/conftest.er2
11407 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11408 lt_cv_prog_compiler_c_o_CXX=yes
11409 fi
11410 fi
11411 chmod u+w . 2>&5
11412 $rm conftest*
11413 # SGI C++ compiler will create directory out/ii_files/ for
11414 # template instantiation
11415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11416 $rm out/* && rmdir out
11417 cd ..
11418 rmdir conftest
11419 $rm conftest*
11420
11421 fi
11422 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11424
11425
11426 hard_links="nottested"
11427 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11428 # do not overwrite the value of need_locks provided by the user
11429 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11430 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11431 hard_links=yes
11432 $rm conftest*
11433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11434 touch conftest.a
11435 ln conftest.a conftest.b 2>&5 || hard_links=no
11436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11437 echo "$as_me:$LINENO: result: $hard_links" >&5
11438 echo "${ECHO_T}$hard_links" >&6
11439 if test "$hard_links" = no; then
11440 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11441 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11442 need_locks=warn
11443 fi
11444 else
11445 need_locks=no
11446 fi
11447
11448 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11450
11451 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11452 case $host_os in
11453 aix4* | aix5*)
11454 # If we're using GNU nm, then we don't want the "-C" option.
11455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11456 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11457 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'
11458 else
11459 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'
11460 fi
11461 ;;
11462 pw32*)
11463 export_symbols_cmds_CXX="$ltdll_cmds"
11464 ;;
11465 cygwin* | mingw*)
11466 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'
11467 ;;
11468 linux*)
11469 link_all_deplibs_CXX=no
11470 ;;
11471 *)
11472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11473 ;;
11474 esac
11475
11476 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11477 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11478 test "$ld_shlibs_CXX" = no && can_build_shared=no
11479
11480 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11481 if test "$GCC" = yes; then
11482 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11483 fi
11484
11485 #
11486 # Do we need to explicitly link libc?
11487 #
11488 case "x$archive_cmds_need_lc_CXX" in
11489 x|xyes)
11490 # Assume -lc should be added
11491 archive_cmds_need_lc_CXX=yes
11492
11493 if test "$enable_shared" = yes && test "$GCC" = yes; then
11494 case $archive_cmds_CXX in
11495 *'~'*)
11496 # FIXME: we may have to deal with multi-command sequences.
11497 ;;
11498 '$CC '*)
11499 # Test whether the compiler implicitly links with -lc since on some
11500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11501 # to ld, don't add -lc before -lgcc.
11502 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11503 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11504 $rm conftest*
11505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11506
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } 2>conftest.err; then
11512 soname=conftest
11513 lib=conftest
11514 libobjs=conftest.$ac_objext
11515 deplibs=
11516 wl=$lt_prog_compiler_wl_CXX
11517 compiler_flags=-v
11518 linker_flags=-v
11519 verstring=
11520 output_objdir=.
11521 libname=conftest
11522 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11523 allow_undefined_flag_CXX=
11524 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11525 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }
11529 then
11530 archive_cmds_need_lc_CXX=no
11531 else
11532 archive_cmds_need_lc_CXX=yes
11533 fi
11534 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11535 else
11536 cat conftest.err 1>&5
11537 fi
11538 $rm conftest*
11539 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11540 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11541 ;;
11542 esac
11543 fi
11544 ;;
11545 esac
11546
11547 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11548 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11549 library_names_spec=
11550 libname_spec='lib$name'
11551 soname_spec=
11552 shrext_cmds=".so"
11553 postinstall_cmds=
11554 postuninstall_cmds=
11555 finish_cmds=
11556 finish_eval=
11557 shlibpath_var=
11558 shlibpath_overrides_runpath=unknown
11559 version_type=none
11560 dynamic_linker="$host_os ld.so"
11561 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11562 if test "$GCC" = yes; then
11563 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11564 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11565 # if the path contains ";" then we assume it to be the separator
11566 # otherwise default to the standard path separator (i.e. ":") - it is
11567 # assumed that no part of a normal pathname contains ";" but that should
11568 # okay in the real world where ";" in dirpaths is itself problematic.
11569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11570 else
11571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11572 fi
11573 else
11574 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11575 fi
11576 need_lib_prefix=unknown
11577 hardcode_into_libs=no
11578
11579 # when you set need_version to no, make sure it does not cause -set_version
11580 # flags to be left without arguments
11581 need_version=unknown
11582
11583 case $host_os in
11584 aix3*)
11585 version_type=linux
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11587 shlibpath_var=LIBPATH
11588
11589 # AIX 3 has no versioning support, so we append a major version to the name.
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 ;;
11592
11593 aix4* | aix5*)
11594 version_type=linux
11595 need_lib_prefix=no
11596 need_version=no
11597 hardcode_into_libs=yes
11598 if test "$host_cpu" = ia64; then
11599 # AIX 5 supports IA64
11600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 else
11603 # With GCC up to 2.95.x, collect2 would create an import file
11604 # for dependence libraries. The import file would start with
11605 # the line `#! .'. This would cause the generated library to
11606 # depend on `.', always an invalid library. This was fixed in
11607 # development snapshots of GCC prior to 3.0.
11608 case $host_os in
11609 aix4 | aix4.[01] | aix4.[01].*)
11610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11611 echo ' yes '
11612 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11613 :
11614 else
11615 can_build_shared=no
11616 fi
11617 ;;
11618 esac
11619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11620 # soname into executable. Probably we can add versioning support to
11621 # collect2, so additional links can be useful in future.
11622 if test "$aix_use_runtimelinking" = yes; then
11623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11624 # instead of lib<name>.a to let people know that these are not
11625 # typical AIX shared libraries.
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 else
11628 # We preserve .a as extension for shared libraries through AIX4.2
11629 # and later when we are not doing run time linking.
11630 library_names_spec='${libname}${release}.a $libname.a'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 fi
11633 shlibpath_var=LIBPATH
11634 fi
11635 ;;
11636
11637 amigaos*)
11638 library_names_spec='$libname.ixlibrary $libname.a'
11639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11640 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'
11641 ;;
11642
11643 beos*)
11644 library_names_spec='${libname}${shared_ext}'
11645 dynamic_linker="$host_os ld.so"
11646 shlibpath_var=LIBRARY_PATH
11647 ;;
11648
11649 bsdi[45]*)
11650 version_type=linux
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11658 # the default ld.so.conf also contains /usr/contrib/lib and
11659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11660 # libtool to hard-code these into programs
11661 ;;
11662
11663 cygwin* | mingw* | pw32*)
11664 version_type=windows
11665 shrext_cmds=".dll"
11666 need_version=no
11667 need_lib_prefix=no
11668
11669 case $GCC,$host_os in
11670 yes,cygwin* | yes,mingw* | yes,pw32*)
11671 library_names_spec='$libname.dll.a'
11672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11673 postinstall_cmds='base_file=`basename \${file}`~
11674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11675 dldir=$destdir/`dirname \$dlpath`~
11676 test -d \$dldir || mkdir -p \$dldir~
11677 $install_prog $dir/$dlname \$dldir/$dlname~
11678 chmod a+x \$dldir/$dlname'
11679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11680 dlpath=$dir/\$dldll~
11681 $rm \$dlpath'
11682 shlibpath_overrides_runpath=yes
11683
11684 case $host_os in
11685 cygwin*)
11686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11689 ;;
11690 mingw*)
11691 # MinGW DLLs use traditional 'lib' prefix
11692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11694 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11695 # It is most probably a Windows format PATH printed by
11696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11697 # path with ; separators, and with drive letters. We can handle the
11698 # drive letters (cygwin fileutils understands them), so leave them,
11699 # especially as we might pass files found there to a mingw objdump,
11700 # which wouldn't understand a cygwinified path. Ahh.
11701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702 else
11703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11704 fi
11705 ;;
11706 pw32*)
11707 # pw32 DLLs use 'pw' prefix rather than 'lib'
11708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11709 ;;
11710 esac
11711 ;;
11712
11713 *)
11714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11715 ;;
11716 esac
11717 dynamic_linker='Win32 ld.exe'
11718 # FIXME: first we should search . and the directory the executable is in
11719 shlibpath_var=PATH
11720 ;;
11721
11722 darwin* | rhapsody*)
11723 dynamic_linker="$host_os dyld"
11724 version_type=darwin
11725 need_lib_prefix=no
11726 need_version=no
11727 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11728 soname_spec='${libname}${release}${major}$shared_ext'
11729 shlibpath_overrides_runpath=yes
11730 shlibpath_var=DYLD_LIBRARY_PATH
11731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11732 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11733 if test "$GCC" = yes; then
11734 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"`
11735 else
11736 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11737 fi
11738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11739 ;;
11740
11741 dgux*)
11742 version_type=linux
11743 need_lib_prefix=no
11744 need_version=no
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 ;;
11749
11750 freebsd1*)
11751 dynamic_linker=no
11752 ;;
11753
11754 kfreebsd*-gnu)
11755 version_type=linux
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=no
11762 hardcode_into_libs=yes
11763 dynamic_linker='GNU ld.so'
11764 ;;
11765
11766 freebsd* | dragonfly*)
11767 # DragonFly does not have aout. When/if they implement a new
11768 # versioning mechanism, adjust this.
11769 if test -x /usr/bin/objformat; then
11770 objformat=`/usr/bin/objformat`
11771 else
11772 case $host_os in
11773 freebsd[123]*) objformat=aout ;;
11774 *) objformat=elf ;;
11775 esac
11776 fi
11777 version_type=freebsd-$objformat
11778 case $version_type in
11779 freebsd-elf*)
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11781 need_version=no
11782 need_lib_prefix=no
11783 ;;
11784 freebsd-*)
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11786 need_version=yes
11787 ;;
11788 esac
11789 shlibpath_var=LD_LIBRARY_PATH
11790 case $host_os in
11791 freebsd2*)
11792 shlibpath_overrides_runpath=yes
11793 ;;
11794 freebsd3.[01]* | freebsdelf3.[01]*)
11795 shlibpath_overrides_runpath=yes
11796 hardcode_into_libs=yes
11797 ;;
11798 *) # from 3.2 on
11799 shlibpath_overrides_runpath=no
11800 hardcode_into_libs=yes
11801 ;;
11802 esac
11803 ;;
11804
11805 gnu*)
11806 version_type=linux
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 hardcode_into_libs=yes
11813 ;;
11814
11815 hpux9* | hpux10* | hpux11*)
11816 # Give a soname corresponding to the major version so that dld.sl refuses to
11817 # link against other versions.
11818 version_type=sunos
11819 need_lib_prefix=no
11820 need_version=no
11821 case $host_cpu in
11822 ia64*)
11823 shrext_cmds='.so'
11824 hardcode_into_libs=yes
11825 dynamic_linker="$host_os dld.so"
11826 shlibpath_var=LD_LIBRARY_PATH
11827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829 soname_spec='${libname}${release}${shared_ext}$major'
11830 if test "X$HPUX_IA64_MODE" = X32; then
11831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832 else
11833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11834 fi
11835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11836 ;;
11837 hppa*64*)
11838 shrext_cmds='.sl'
11839 hardcode_into_libs=yes
11840 dynamic_linker="$host_os dld.sl"
11841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11847 ;;
11848 *)
11849 shrext_cmds='.sl'
11850 dynamic_linker="$host_os dld.sl"
11851 shlibpath_var=SHLIB_PATH
11852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 ;;
11856 esac
11857 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11858 postinstall_cmds='chmod 555 $lib'
11859 ;;
11860
11861 irix5* | irix6* | nonstopux*)
11862 case $host_os in
11863 nonstopux*) version_type=nonstopux ;;
11864 *)
11865 if test "$lt_cv_prog_gnu_ld" = yes; then
11866 version_type=linux
11867 else
11868 version_type=irix
11869 fi ;;
11870 esac
11871 need_lib_prefix=no
11872 need_version=no
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 case $host_os in
11876 irix5* | nonstopux*)
11877 libsuff= shlibsuff=
11878 ;;
11879 *)
11880 case $LD in # libtool.m4 will add one of these switches to LD
11881 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11882 libsuff= shlibsuff= libmagic=32-bit;;
11883 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11884 libsuff=32 shlibsuff=N32 libmagic=N32;;
11885 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11886 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11887 *) libsuff= shlibsuff= libmagic=never-match;;
11888 esac
11889 ;;
11890 esac
11891 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11892 shlibpath_overrides_runpath=no
11893 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11894 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11895 hardcode_into_libs=yes
11896 ;;
11897
11898 # No shared lib support for Linux oldld, aout, or coff.
11899 linux*oldld* | linux*aout* | linux*coff*)
11900 dynamic_linker=no
11901 ;;
11902
11903 # This must be Linux ELF.
11904 linux*)
11905 version_type=linux
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=no
11913 # This implies no fast_install, which is unacceptable.
11914 # Some rework will be needed to allow for fast_install
11915 # before this can be enabled.
11916 hardcode_into_libs=yes
11917
11918 # Append ld.so.conf contents to the search path
11919 if test -f /etc/ld.so.conf; then
11920 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11922 fi
11923
11924 # We used to test for /lib/ld.so.1 and disable shared libraries on
11925 # powerpc, because MkLinux only supported shared libraries with the
11926 # GNU dynamic linker. Since this was broken with cross compilers,
11927 # most powerpc-linux boxes support dynamic linking these days and
11928 # people can always --disable-shared, the test was removed, and we
11929 # assume the GNU/Linux dynamic linker is in use.
11930 dynamic_linker='GNU/Linux ld.so'
11931 ;;
11932
11933 netbsdelf*-gnu)
11934 version_type=linux
11935 need_lib_prefix=no
11936 need_version=no
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=no
11941 hardcode_into_libs=yes
11942 dynamic_linker='NetBSD ld.elf_so'
11943 ;;
11944
11945 knetbsd*-gnu)
11946 version_type=linux
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=no
11953 hardcode_into_libs=yes
11954 dynamic_linker='GNU ld.so'
11955 ;;
11956
11957 netbsd*)
11958 version_type=sunos
11959 need_lib_prefix=no
11960 need_version=no
11961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964 dynamic_linker='NetBSD (a.out) ld.so'
11965 else
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 dynamic_linker='NetBSD ld.elf_so'
11969 fi
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=yes
11972 hardcode_into_libs=yes
11973 ;;
11974
11975 newsos6)
11976 version_type=linux
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=yes
11980 ;;
11981
11982 nto-qnx*)
11983 version_type=linux
11984 need_lib_prefix=no
11985 need_version=no
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=yes
11990 ;;
11991
11992 openbsd*)
11993 version_type=sunos
11994 need_lib_prefix=no
11995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11996 case $host_os in
11997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11998 *) need_version=no ;;
11999 esac
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12004 case $host_os in
12005 openbsd2.[89] | openbsd2.[89].*)
12006 shlibpath_overrides_runpath=no
12007 ;;
12008 *)
12009 shlibpath_overrides_runpath=yes
12010 ;;
12011 esac
12012 else
12013 shlibpath_overrides_runpath=yes
12014 fi
12015 ;;
12016
12017 os2*)
12018 libname_spec='$name'
12019 shrext_cmds=".dll"
12020 need_lib_prefix=no
12021 library_names_spec='$libname${shared_ext} $libname.a'
12022 dynamic_linker='OS/2 ld.exe'
12023 shlibpath_var=LIBPATH
12024 ;;
12025
12026 osf3* | osf4* | osf5*)
12027 version_type=osf
12028 need_lib_prefix=no
12029 need_version=no
12030 soname_spec='${libname}${release}${shared_ext}$major'
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12035 ;;
12036
12037 sco3.2v5*)
12038 version_type=osf
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 ;;
12043
12044 solaris*)
12045 version_type=linux
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049 soname_spec='${libname}${release}${shared_ext}$major'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 shlibpath_overrides_runpath=yes
12052 hardcode_into_libs=yes
12053 # ldd complains unless libraries are executable
12054 postinstall_cmds='chmod +x $lib'
12055 ;;
12056
12057 sunos4*)
12058 version_type=sunos
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 if test "$with_gnu_ld" = yes; then
12064 need_lib_prefix=no
12065 fi
12066 need_version=yes
12067 ;;
12068
12069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12070 version_type=linux
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 case $host_vendor in
12075 sni)
12076 shlibpath_overrides_runpath=no
12077 need_lib_prefix=no
12078 export_dynamic_flag_spec='${wl}-Blargedynsym'
12079 runpath_var=LD_RUN_PATH
12080 ;;
12081 siemens)
12082 need_lib_prefix=no
12083 ;;
12084 motorola)
12085 need_lib_prefix=no
12086 need_version=no
12087 shlibpath_overrides_runpath=no
12088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12089 ;;
12090 esac
12091 ;;
12092
12093 sysv4*MP*)
12094 if test -d /usr/nec ;then
12095 version_type=linux
12096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12097 soname_spec='$libname${shared_ext}.$major'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 fi
12100 ;;
12101
12102 uts4*)
12103 version_type=linux
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105 soname_spec='${libname}${release}${shared_ext}$major'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 ;;
12108
12109 *)
12110 dynamic_linker=no
12111 ;;
12112 esac
12113 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12114 echo "${ECHO_T}$dynamic_linker" >&6
12115 test "$dynamic_linker" = no && can_build_shared=no
12116
12117 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12119 hardcode_action_CXX=
12120 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12121 test -n "$runpath_var_CXX" || \
12122 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12123
12124 # We can hardcode non-existant directories.
12125 if test "$hardcode_direct_CXX" != no &&
12126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12127 # have to relink, otherwise we might link with an installed library
12128 # when we should be linking with a yet-to-be-installed one
12129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12130 test "$hardcode_minus_L_CXX" != no; then
12131 # Linking always hardcodes the temporary library directory.
12132 hardcode_action_CXX=relink
12133 else
12134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12135 hardcode_action_CXX=immediate
12136 fi
12137 else
12138 # We cannot hardcode anything, or else we can only hardcode existing
12139 # directories.
12140 hardcode_action_CXX=unsupported
12141 fi
12142 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12143 echo "${ECHO_T}$hardcode_action_CXX" >&6
12144
12145 if test "$hardcode_action_CXX" = relink; then
12146 # Fast installation is not supported
12147 enable_fast_install=no
12148 elif test "$shlibpath_overrides_runpath" = yes ||
12149 test "$enable_shared" = no; then
12150 # Fast installation is not necessary
12151 enable_fast_install=needless
12152 fi
12153
12154 striplib=
12155 old_striplib=
12156 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12161 echo "$as_me:$LINENO: result: yes" >&5
12162 echo "${ECHO_T}yes" >&6
12163 else
12164 # FIXME - insert some real tests, host_os isn't really good enough
12165 case $host_os in
12166 darwin*)
12167 if test -n "$STRIP" ; then
12168 striplib="$STRIP -x"
12169 echo "$as_me:$LINENO: result: yes" >&5
12170 echo "${ECHO_T}yes" >&6
12171 else
12172 echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6
12174 fi
12175 ;;
12176 *)
12177 echo "$as_me:$LINENO: result: no" >&5
12178 echo "${ECHO_T}no" >&6
12179 ;;
12180 esac
12181 fi
12182
12183 if test "x$enable_dlopen" != xyes; then
12184 enable_dlopen=unknown
12185 enable_dlopen_self=unknown
12186 enable_dlopen_self_static=unknown
12187 else
12188 lt_cv_dlopen=no
12189 lt_cv_dlopen_libs=
12190
12191 case $host_os in
12192 beos*)
12193 lt_cv_dlopen="load_add_on"
12194 lt_cv_dlopen_libs=
12195 lt_cv_dlopen_self=yes
12196 ;;
12197
12198 mingw* | pw32*)
12199 lt_cv_dlopen="LoadLibrary"
12200 lt_cv_dlopen_libs=
12201 ;;
12202
12203 cygwin*)
12204 lt_cv_dlopen="dlopen"
12205 lt_cv_dlopen_libs=
12206 ;;
12207
12208 darwin*)
12209 # if libdl is installed we need to link against it
12210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-ldl $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h. */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223
12224 /* Override any gcc2 internal prototype to avoid an error. */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12230 char dlopen ();
12231 int
12232 main ()
12233 {
12234 dlopen ();
12235 ;
12236 return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_lib_dl_dlopen=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_cv_lib_dl_dlopen=no
12266 fi
12267 rm -f conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12273 if test $ac_cv_lib_dl_dlopen = yes; then
12274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12275 else
12276
12277 lt_cv_dlopen="dyld"
12278 lt_cv_dlopen_libs=
12279 lt_cv_dlopen_self=yes
12280
12281 fi
12282
12283 ;;
12284
12285 *)
12286 echo "$as_me:$LINENO: checking for shl_load" >&5
12287 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12288 if test "${ac_cv_func_shl_load+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12299 #define shl_load innocuous_shl_load
12300
12301 /* System header to define __stub macros and hopefully few prototypes,
12302 which can conflict with char shl_load (); below.
12303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12304 <limits.h> exists even on freestanding compilers. */
12305
12306 #ifdef __STDC__
12307 # include <limits.h>
12308 #else
12309 # include <assert.h>
12310 #endif
12311
12312 #undef shl_load
12313
12314 /* Override any gcc2 internal prototype to avoid an error. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 {
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char shl_load ();
12322 /* The GNU C library defines this for functions which it implements
12323 to always fail with ENOSYS. Some functions are actually named
12324 something starting with __ and the normal name is an alias. */
12325 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12326 choke me
12327 #else
12328 char (*f) () = shl_load;
12329 #endif
12330 #ifdef __cplusplus
12331 }
12332 #endif
12333
12334 int
12335 main ()
12336 {
12337 return f != shl_load;
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_func_shl_load=yes
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_func_shl_load=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12374 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12375 if test $ac_cv_func_shl_load = yes; then
12376 lt_cv_dlopen="shl_load"
12377 else
12378 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12379 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12380 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-ldld $LIBS"
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391
12392 /* Override any gcc2 internal prototype to avoid an error. */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 /* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12398 char shl_load ();
12399 int
12400 main ()
12401 {
12402 shl_load ();
12403 ;
12404 return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_lib_dld_shl_load=yes
12429 else
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 ac_cv_lib_dld_shl_load=no
12434 fi
12435 rm -f conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12438 fi
12439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12441 if test $ac_cv_lib_dld_shl_load = yes; then
12442 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12443 else
12444 echo "$as_me:$LINENO: checking for dlopen" >&5
12445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12446 if test "${ac_cv_func_dlopen+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define dlopen innocuous_dlopen
12458
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char dlopen (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12463
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12469
12470 #undef dlopen
12471
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 {
12476 #endif
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char dlopen ();
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12484 choke me
12485 #else
12486 char (*f) () = dlopen;
12487 #endif
12488 #ifdef __cplusplus
12489 }
12490 #endif
12491
12492 int
12493 main ()
12494 {
12495 return f != dlopen;
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_cv_func_dlopen=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_cv_func_dlopen=no
12527 fi
12528 rm -f conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 fi
12531 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12532 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12533 if test $ac_cv_func_dlopen = yes; then
12534 lt_cv_dlopen="dlopen"
12535 else
12536 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12537 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12538 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldl $LIBS"
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549
12550 /* Override any gcc2 internal prototype to avoid an error. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 /* We use char because int might match the return type of a gcc2
12555 builtin and then its argument prototype would still apply. */
12556 char dlopen ();
12557 int
12558 main ()
12559 {
12560 dlopen ();
12561 ;
12562 return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_lib_dl_dlopen=yes
12587 else
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 ac_cv_lib_dl_dlopen=no
12592 fi
12593 rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 LIBS=$ac_check_lib_save_LIBS
12596 fi
12597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12599 if test $ac_cv_lib_dl_dlopen = yes; then
12600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12601 else
12602 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-lsvld $LIBS"
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615
12616 /* Override any gcc2 internal prototype to avoid an error. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char dlopen ();
12623 int
12624 main ()
12625 {
12626 dlopen ();
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_lib_svld_dlopen=yes
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657 ac_cv_lib_svld_dlopen=no
12658 fi
12659 rm -f conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12662 fi
12663 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12664 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12665 if test $ac_cv_lib_svld_dlopen = yes; then
12666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12667 else
12668 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12669 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12670 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-ldld $LIBS"
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681
12682 /* Override any gcc2 internal prototype to avoid an error. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char dld_link ();
12689 int
12690 main ()
12691 {
12692 dld_link ();
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_cv_lib_dld_dld_link=yes
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_cv_lib_dld_dld_link=no
12724 fi
12725 rm -f conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12730 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12731 if test $ac_cv_lib_dld_dld_link = yes; then
12732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12733 fi
12734
12735
12736 fi
12737
12738
12739 fi
12740
12741
12742 fi
12743
12744
12745 fi
12746
12747
12748 fi
12749
12750 ;;
12751 esac
12752
12753 if test "x$lt_cv_dlopen" != xno; then
12754 enable_dlopen=yes
12755 else
12756 enable_dlopen=no
12757 fi
12758
12759 case $lt_cv_dlopen in
12760 dlopen)
12761 save_CPPFLAGS="$CPPFLAGS"
12762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12763
12764 save_LDFLAGS="$LDFLAGS"
12765 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12766
12767 save_LIBS="$LIBS"
12768 LIBS="$lt_cv_dlopen_libs $LIBS"
12769
12770 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12771 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12772 if test "${lt_cv_dlopen_self+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 if test "$cross_compiling" = yes; then :
12776 lt_cv_dlopen_self=cross
12777 else
12778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779 lt_status=$lt_dlunknown
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12781 "configure"
12782 #include "confdefs.h"
12783
12784 #if HAVE_DLFCN_H
12785 #include <dlfcn.h>
12786 #endif
12787
12788 #include <stdio.h>
12789
12790 #ifdef RTLD_GLOBAL
12791 # define LT_DLGLOBAL RTLD_GLOBAL
12792 #else
12793 # ifdef DL_GLOBAL
12794 # define LT_DLGLOBAL DL_GLOBAL
12795 # else
12796 # define LT_DLGLOBAL 0
12797 # endif
12798 #endif
12799
12800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801 find out it does not work in some platform. */
12802 #ifndef LT_DLLAZY_OR_NOW
12803 # ifdef RTLD_LAZY
12804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12805 # else
12806 # ifdef DL_LAZY
12807 # define LT_DLLAZY_OR_NOW DL_LAZY
12808 # else
12809 # ifdef RTLD_NOW
12810 # define LT_DLLAZY_OR_NOW RTLD_NOW
12811 # else
12812 # ifdef DL_NOW
12813 # define LT_DLLAZY_OR_NOW DL_NOW
12814 # else
12815 # define LT_DLLAZY_OR_NOW 0
12816 # endif
12817 # endif
12818 # endif
12819 # endif
12820 #endif
12821
12822 #ifdef __cplusplus
12823 extern "C" void exit (int);
12824 #endif
12825
12826 void fnord() { int i=42;}
12827 int main ()
12828 {
12829 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12830 int status = $lt_dlunknown;
12831
12832 if (self)
12833 {
12834 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12835 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836 /* dlclose (self); */
12837 }
12838
12839 exit (status);
12840 }
12841 EOF
12842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843 (eval $ac_link) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12847 (./conftest; exit; ) >&5 2>/dev/null
12848 lt_status=$?
12849 case x$lt_status in
12850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12852 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12853 esac
12854 else :
12855 # compilation failed
12856 lt_cv_dlopen_self=no
12857 fi
12858 fi
12859 rm -fr conftest*
12860
12861
12862 fi
12863 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12864 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12865
12866 if test "x$lt_cv_dlopen_self" = xyes; then
12867 LDFLAGS="$LDFLAGS $link_static_flag"
12868 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12869 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12870 if test "${lt_cv_dlopen_self_static+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 if test "$cross_compiling" = yes; then :
12874 lt_cv_dlopen_self_static=cross
12875 else
12876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12877 lt_status=$lt_dlunknown
12878 cat > conftest.$ac_ext <<EOF
12879 #line 12879 "configure"
12880 #include "confdefs.h"
12881
12882 #if HAVE_DLFCN_H
12883 #include <dlfcn.h>
12884 #endif
12885
12886 #include <stdio.h>
12887
12888 #ifdef RTLD_GLOBAL
12889 # define LT_DLGLOBAL RTLD_GLOBAL
12890 #else
12891 # ifdef DL_GLOBAL
12892 # define LT_DLGLOBAL DL_GLOBAL
12893 # else
12894 # define LT_DLGLOBAL 0
12895 # endif
12896 #endif
12897
12898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12899 find out it does not work in some platform. */
12900 #ifndef LT_DLLAZY_OR_NOW
12901 # ifdef RTLD_LAZY
12902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12903 # else
12904 # ifdef DL_LAZY
12905 # define LT_DLLAZY_OR_NOW DL_LAZY
12906 # else
12907 # ifdef RTLD_NOW
12908 # define LT_DLLAZY_OR_NOW RTLD_NOW
12909 # else
12910 # ifdef DL_NOW
12911 # define LT_DLLAZY_OR_NOW DL_NOW
12912 # else
12913 # define LT_DLLAZY_OR_NOW 0
12914 # endif
12915 # endif
12916 # endif
12917 # endif
12918 #endif
12919
12920 #ifdef __cplusplus
12921 extern "C" void exit (int);
12922 #endif
12923
12924 void fnord() { int i=42;}
12925 int main ()
12926 {
12927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928 int status = $lt_dlunknown;
12929
12930 if (self)
12931 {
12932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 /* dlclose (self); */
12935 }
12936
12937 exit (status);
12938 }
12939 EOF
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12945 (./conftest; exit; ) >&5 2>/dev/null
12946 lt_status=$?
12947 case x$lt_status in
12948 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12949 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12950 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12951 esac
12952 else :
12953 # compilation failed
12954 lt_cv_dlopen_self_static=no
12955 fi
12956 fi
12957 rm -fr conftest*
12958
12959
12960 fi
12961 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12962 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12963 fi
12964
12965 CPPFLAGS="$save_CPPFLAGS"
12966 LDFLAGS="$save_LDFLAGS"
12967 LIBS="$save_LIBS"
12968 ;;
12969 esac
12970
12971 case $lt_cv_dlopen_self in
12972 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12973 *) enable_dlopen_self=unknown ;;
12974 esac
12975
12976 case $lt_cv_dlopen_self_static in
12977 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12978 *) enable_dlopen_self_static=unknown ;;
12979 esac
12980 fi
12981
12982
12983 # The else clause should only fire when bootstrapping the
12984 # libtool distribution, otherwise you forgot to ship ltmain.sh
12985 # with your package, and you will get complaints that there are
12986 # no rules to generate ltmain.sh.
12987 if test -f "$ltmain"; then
12988 # See if we are running on zsh, and set the options which allow our commands through
12989 # without removal of \ escapes.
12990 if test -n "${ZSH_VERSION+set}" ; then
12991 setopt NO_GLOB_SUBST
12992 fi
12993 # Now quote all the things that may contain metacharacters while being
12994 # careful not to overquote the AC_SUBSTed values. We take copies of the
12995 # variables and quote the copies for generation of the libtool script.
12996 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12997 SED SHELL STRIP \
12998 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12999 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13000 deplibs_check_method reload_flag reload_cmds need_locks \
13001 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13002 lt_cv_sys_global_symbol_to_c_name_address \
13003 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13004 old_postinstall_cmds old_postuninstall_cmds \
13005 compiler_CXX \
13006 CC_CXX \
13007 LD_CXX \
13008 lt_prog_compiler_wl_CXX \
13009 lt_prog_compiler_pic_CXX \
13010 lt_prog_compiler_static_CXX \
13011 lt_prog_compiler_no_builtin_flag_CXX \
13012 export_dynamic_flag_spec_CXX \
13013 thread_safe_flag_spec_CXX \
13014 whole_archive_flag_spec_CXX \
13015 enable_shared_with_static_runtimes_CXX \
13016 old_archive_cmds_CXX \
13017 old_archive_from_new_cmds_CXX \
13018 predep_objects_CXX \
13019 postdep_objects_CXX \
13020 predeps_CXX \
13021 postdeps_CXX \
13022 compiler_lib_search_path_CXX \
13023 archive_cmds_CXX \
13024 archive_expsym_cmds_CXX \
13025 postinstall_cmds_CXX \
13026 postuninstall_cmds_CXX \
13027 old_archive_from_expsyms_cmds_CXX \
13028 allow_undefined_flag_CXX \
13029 no_undefined_flag_CXX \
13030 export_symbols_cmds_CXX \
13031 hardcode_libdir_flag_spec_CXX \
13032 hardcode_libdir_flag_spec_ld_CXX \
13033 hardcode_libdir_separator_CXX \
13034 hardcode_automatic_CXX \
13035 module_cmds_CXX \
13036 module_expsym_cmds_CXX \
13037 lt_cv_prog_compiler_c_o_CXX \
13038 exclude_expsyms_CXX \
13039 include_expsyms_CXX; do
13040
13041 case $var in
13042 old_archive_cmds_CXX | \
13043 old_archive_from_new_cmds_CXX | \
13044 archive_cmds_CXX | \
13045 archive_expsym_cmds_CXX | \
13046 module_cmds_CXX | \
13047 module_expsym_cmds_CXX | \
13048 old_archive_from_expsyms_cmds_CXX | \
13049 export_symbols_cmds_CXX | \
13050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13051 postinstall_cmds | postuninstall_cmds | \
13052 old_postinstall_cmds | old_postuninstall_cmds | \
13053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13054 # Double-quote double-evaled strings.
13055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13056 ;;
13057 *)
13058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13059 ;;
13060 esac
13061 done
13062
13063 case $lt_echo in
13064 *'\$0 --fallback-echo"')
13065 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13066 ;;
13067 esac
13068
13069 cfgfile="$ofile"
13070
13071 cat <<__EOF__ >> "$cfgfile"
13072 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13073
13074 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13075
13076 # Shell to use when invoking shell scripts.
13077 SHELL=$lt_SHELL
13078
13079 # Whether or not to build shared libraries.
13080 build_libtool_libs=$enable_shared
13081
13082 # Whether or not to build static libraries.
13083 build_old_libs=$enable_static
13084
13085 # Whether or not to add -lc for building shared libraries.
13086 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13087
13088 # Whether or not to disallow shared libs when runtime libs are static
13089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13090
13091 # Whether or not to optimize for fast installation.
13092 fast_install=$enable_fast_install
13093
13094 # The host system.
13095 host_alias=$host_alias
13096 host=$host
13097 host_os=$host_os
13098
13099 # The build system.
13100 build_alias=$build_alias
13101 build=$build
13102 build_os=$build_os
13103
13104 # An echo program that does not interpret backslashes.
13105 echo=$lt_echo
13106
13107 # The archiver.
13108 AR=$lt_AR
13109 AR_FLAGS=$lt_AR_FLAGS
13110
13111 # A C compiler.
13112 LTCC=$lt_LTCC
13113
13114 # A language-specific compiler.
13115 CC=$lt_compiler_CXX
13116
13117 # Is the compiler the GNU C compiler?
13118 with_gcc=$GCC_CXX
13119
13120 # An ERE matcher.
13121 EGREP=$lt_EGREP
13122
13123 # The linker used to build libraries.
13124 LD=$lt_LD_CXX
13125
13126 # Whether we need hard or soft links.
13127 LN_S=$lt_LN_S
13128
13129 # A BSD-compatible nm program.
13130 NM=$lt_NM
13131
13132 # A symbol stripping program
13133 STRIP=$lt_STRIP
13134
13135 # Used to examine libraries when file_magic_cmd begins "file"
13136 MAGIC_CMD=$MAGIC_CMD
13137
13138 # Used on cygwin: DLL creation program.
13139 DLLTOOL="$DLLTOOL"
13140
13141 # Used on cygwin: object dumper.
13142 OBJDUMP="$OBJDUMP"
13143
13144 # Used on cygwin: assembler.
13145 AS="$AS"
13146
13147 # The name of the directory that contains temporary libtool files.
13148 objdir=$objdir
13149
13150 # How to create reloadable object files.
13151 reload_flag=$lt_reload_flag
13152 reload_cmds=$lt_reload_cmds
13153
13154 # How to pass a linker flag through the compiler.
13155 wl=$lt_lt_prog_compiler_wl_CXX
13156
13157 # Object file suffix (normally "o").
13158 objext="$ac_objext"
13159
13160 # Old archive suffix (normally "a").
13161 libext="$libext"
13162
13163 # Shared library suffix (normally ".so").
13164 shrext_cmds='$shrext_cmds'
13165
13166 # Executable file suffix (normally "").
13167 exeext="$exeext"
13168
13169 # Additional compiler flags for building library objects.
13170 pic_flag=$lt_lt_prog_compiler_pic_CXX
13171 pic_mode=$pic_mode
13172
13173 # What is the maximum length of a command?
13174 max_cmd_len=$lt_cv_sys_max_cmd_len
13175
13176 # Does compiler simultaneously support -c and -o options?
13177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13178
13179 # Must we lock files when doing compilation?
13180 need_locks=$lt_need_locks
13181
13182 # Do we need the lib prefix for modules?
13183 need_lib_prefix=$need_lib_prefix
13184
13185 # Do we need a version for libraries?
13186 need_version=$need_version
13187
13188 # Whether dlopen is supported.
13189 dlopen_support=$enable_dlopen
13190
13191 # Whether dlopen of programs is supported.
13192 dlopen_self=$enable_dlopen_self
13193
13194 # Whether dlopen of statically linked programs is supported.
13195 dlopen_self_static=$enable_dlopen_self_static
13196
13197 # Compiler flag to prevent dynamic linking.
13198 link_static_flag=$lt_lt_prog_compiler_static_CXX
13199
13200 # Compiler flag to turn off builtin functions.
13201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13202
13203 # Compiler flag to allow reflexive dlopens.
13204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13205
13206 # Compiler flag to generate shared objects directly from archives.
13207 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13208
13209 # Compiler flag to generate thread-safe objects.
13210 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13211
13212 # Library versioning type.
13213 version_type=$version_type
13214
13215 # Format of library name prefix.
13216 libname_spec=$lt_libname_spec
13217
13218 # List of archive names. First name is the real one, the rest are links.
13219 # The last name is the one that the linker finds with -lNAME.
13220 library_names_spec=$lt_library_names_spec
13221
13222 # The coded name of the library, if different from the real name.
13223 soname_spec=$lt_soname_spec
13224
13225 # Commands used to build and install an old-style archive.
13226 RANLIB=$lt_RANLIB
13227 old_archive_cmds=$lt_old_archive_cmds_CXX
13228 old_postinstall_cmds=$lt_old_postinstall_cmds
13229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13230
13231 # Create an old-style archive from a shared archive.
13232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13233
13234 # Create a temporary old-style archive to link instead of a shared archive.
13235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13236
13237 # Commands used to build and install a shared archive.
13238 archive_cmds=$lt_archive_cmds_CXX
13239 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13240 postinstall_cmds=$lt_postinstall_cmds
13241 postuninstall_cmds=$lt_postuninstall_cmds
13242
13243 # Commands used to build a loadable module (assumed same as above if empty)
13244 module_cmds=$lt_module_cmds_CXX
13245 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13246
13247 # Commands to strip libraries.
13248 old_striplib=$lt_old_striplib
13249 striplib=$lt_striplib
13250
13251 # Dependencies to place before the objects being linked to create a
13252 # shared library.
13253 predep_objects=$lt_predep_objects_CXX
13254
13255 # Dependencies to place after the objects being linked to create a
13256 # shared library.
13257 postdep_objects=$lt_postdep_objects_CXX
13258
13259 # Dependencies to place before the objects being linked to create a
13260 # shared library.
13261 predeps=$lt_predeps_CXX
13262
13263 # Dependencies to place after the objects being linked to create a
13264 # shared library.
13265 postdeps=$lt_postdeps_CXX
13266
13267 # The library search path used internally by the compiler when linking
13268 # a shared library.
13269 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13270
13271 # Method to check whether dependent libraries are shared objects.
13272 deplibs_check_method=$lt_deplibs_check_method
13273
13274 # Command to use when deplibs_check_method == file_magic.
13275 file_magic_cmd=$lt_file_magic_cmd
13276
13277 # Flag that allows shared libraries with undefined symbols to be built.
13278 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13279
13280 # Flag that forces no undefined symbols.
13281 no_undefined_flag=$lt_no_undefined_flag_CXX
13282
13283 # Commands used to finish a libtool library installation in a directory.
13284 finish_cmds=$lt_finish_cmds
13285
13286 # Same as above, but a single script fragment to be evaled but not shown.
13287 finish_eval=$lt_finish_eval
13288
13289 # Take the output of nm and produce a listing of raw symbols and C names.
13290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13291
13292 # Transform the output of nm in a proper C declaration
13293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13294
13295 # Transform the output of nm in a C name address pair
13296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13297
13298 # This is the shared library runtime path variable.
13299 runpath_var=$runpath_var
13300
13301 # This is the shared library path variable.
13302 shlibpath_var=$shlibpath_var
13303
13304 # Is shlibpath searched before the hard-coded library search path?
13305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13306
13307 # How to hardcode a shared library path into an executable.
13308 hardcode_action=$hardcode_action_CXX
13309
13310 # Whether we should hardcode library paths into libraries.
13311 hardcode_into_libs=$hardcode_into_libs
13312
13313 # Flag to hardcode \$libdir into a binary during linking.
13314 # This must work even if \$libdir does not exist.
13315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13316
13317 # If ld is used when linking, flag to hardcode \$libdir into
13318 # a binary during linking. This must work even if \$libdir does
13319 # not exist.
13320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13321
13322 # Whether we need a single -rpath flag with a separated argument.
13323 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13324
13325 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13326 # resulting binary.
13327 hardcode_direct=$hardcode_direct_CXX
13328
13329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13330 # resulting binary.
13331 hardcode_minus_L=$hardcode_minus_L_CXX
13332
13333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13334 # the resulting binary.
13335 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13336
13337 # Set to yes if building a shared library automatically hardcodes DIR into the library
13338 # and all subsequent libraries and executables linked against it.
13339 hardcode_automatic=$hardcode_automatic_CXX
13340
13341 # Variables whose values should be saved in libtool wrapper scripts and
13342 # restored at relink time.
13343 variables_saved_for_relink="$variables_saved_for_relink"
13344
13345 # Whether libtool must link a program against all its dependency libraries.
13346 link_all_deplibs=$link_all_deplibs_CXX
13347
13348 # Compile-time system search path for libraries
13349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13350
13351 # Run-time system search path for libraries
13352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13353
13354 # Fix the shell variable \$srcfile for the compiler.
13355 fix_srcfile_path="$fix_srcfile_path_CXX"
13356
13357 # Set to yes if exported symbols are required.
13358 always_export_symbols=$always_export_symbols_CXX
13359
13360 # The commands to list exported symbols.
13361 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13362
13363 # The commands to extract the exported symbol list from a shared archive.
13364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13365
13366 # Symbols that should not be listed in the preloaded symbols.
13367 exclude_expsyms=$lt_exclude_expsyms_CXX
13368
13369 # Symbols that must always be exported.
13370 include_expsyms=$lt_include_expsyms_CXX
13371
13372 # ### END LIBTOOL TAG CONFIG: $tagname
13373
13374 __EOF__
13375
13376
13377 else
13378 # If there is no Makefile yet, we rely on a make rule to execute
13379 # `config.status --recheck' to rerun these tests and create the
13380 # libtool script then.
13381 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13382 if test -f "$ltmain_in"; then
13383 test -f Makefile && make "$ltmain"
13384 fi
13385 fi
13386
13387
13388 ac_ext=c
13389 ac_cpp='$CPP $CPPFLAGS'
13390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13393
13394 CC=$lt_save_CC
13395 LDCXX=$LD
13396 LD=$lt_save_LD
13397 GCC=$lt_save_GCC
13398 with_gnu_ldcxx=$with_gnu_ld
13399 with_gnu_ld=$lt_save_with_gnu_ld
13400 lt_cv_path_LDCXX=$lt_cv_path_LD
13401 lt_cv_path_LD=$lt_save_path_LD
13402 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13403 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13404
13405 else
13406 tagname=""
13407 fi
13408 ;;
13409
13410 F77)
13411 if test -n "$F77" && test "X$F77" != "Xno"; then
13412
13413 ac_ext=f
13414 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13415 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13417
13418
13419 archive_cmds_need_lc_F77=no
13420 allow_undefined_flag_F77=
13421 always_export_symbols_F77=no
13422 archive_expsym_cmds_F77=
13423 export_dynamic_flag_spec_F77=
13424 hardcode_direct_F77=no
13425 hardcode_libdir_flag_spec_F77=
13426 hardcode_libdir_flag_spec_ld_F77=
13427 hardcode_libdir_separator_F77=
13428 hardcode_minus_L_F77=no
13429 hardcode_automatic_F77=no
13430 module_cmds_F77=
13431 module_expsym_cmds_F77=
13432 link_all_deplibs_F77=unknown
13433 old_archive_cmds_F77=$old_archive_cmds
13434 no_undefined_flag_F77=
13435 whole_archive_flag_spec_F77=
13436 enable_shared_with_static_runtimes_F77=no
13437
13438 # Source file extension for f77 test sources.
13439 ac_ext=f
13440
13441 # Object file extension for compiled f77 test sources.
13442 objext=o
13443 objext_F77=$objext
13444
13445 # Code to be used in simple compile tests
13446 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13447
13448 # Code to be used in simple link tests
13449 lt_simple_link_test_code=" program t\n end\n"
13450
13451 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13452
13453 # If no C compiler was specified, use CC.
13454 LTCC=${LTCC-"$CC"}
13455
13456 # Allow CC to be a program name with arguments.
13457 compiler=$CC
13458
13459
13460 # save warnings/boilerplate of simple test code
13461 ac_outfile=conftest.$ac_objext
13462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13464 _lt_compiler_boilerplate=`cat conftest.err`
13465 $rm conftest*
13466
13467 ac_outfile=conftest.$ac_objext
13468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13470 _lt_linker_boilerplate=`cat conftest.err`
13471 $rm conftest*
13472
13473
13474 # Allow CC to be a program name with arguments.
13475 lt_save_CC="$CC"
13476 CC=${F77-"f77"}
13477 compiler=$CC
13478 compiler_F77=$CC
13479 for cc_temp in $compiler""; do
13480 case $cc_temp in
13481 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13482 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13483 \-*) ;;
13484 *) break;;
13485 esac
13486 done
13487 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13488
13489
13490 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13491 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13492 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13493 echo "${ECHO_T}$can_build_shared" >&6
13494
13495 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13496 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13497 test "$can_build_shared" = "no" && enable_shared=no
13498
13499 # On AIX, shared libraries and static libraries use the same namespace, and
13500 # are all built from PIC.
13501 case $host_os in
13502 aix3*)
13503 test "$enable_shared" = yes && enable_static=no
13504 if test -n "$RANLIB"; then
13505 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13506 postinstall_cmds='$RANLIB $lib'
13507 fi
13508 ;;
13509 aix4* | aix5*)
13510 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13511 test "$enable_shared" = yes && enable_static=no
13512 fi
13513 ;;
13514 esac
13515 echo "$as_me:$LINENO: result: $enable_shared" >&5
13516 echo "${ECHO_T}$enable_shared" >&6
13517
13518 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13519 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13520 # Make sure either enable_shared or enable_static is yes.
13521 test "$enable_shared" = yes || enable_static=yes
13522 echo "$as_me:$LINENO: result: $enable_static" >&5
13523 echo "${ECHO_T}$enable_static" >&6
13524
13525 test "$ld_shlibs_F77" = no && can_build_shared=no
13526
13527 GCC_F77="$G77"
13528 LD_F77="$LD"
13529
13530 lt_prog_compiler_wl_F77=
13531 lt_prog_compiler_pic_F77=
13532 lt_prog_compiler_static_F77=
13533
13534 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13535 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13536
13537 if test "$GCC" = yes; then
13538 lt_prog_compiler_wl_F77='-Wl,'
13539 lt_prog_compiler_static_F77='-static'
13540
13541 case $host_os in
13542 aix*)
13543 # All AIX code is PIC.
13544 if test "$host_cpu" = ia64; then
13545 # AIX 5 now supports IA64 processor
13546 lt_prog_compiler_static_F77='-Bstatic'
13547 fi
13548 ;;
13549
13550 amigaos*)
13551 # FIXME: we need at least 68020 code to build shared libraries, but
13552 # adding the `-m68020' flag to GCC prevents building anything better,
13553 # like `-m68040'.
13554 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13555 ;;
13556
13557 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13558 # PIC is the default for these OSes.
13559 ;;
13560
13561 mingw* | pw32* | os2*)
13562 # This hack is so that the source file can tell whether it is being
13563 # built for inclusion in a dll (and should export symbols for example).
13564 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13565 ;;
13566
13567 darwin* | rhapsody*)
13568 # PIC is the default on this platform
13569 # Common symbols not allowed in MH_DYLIB files
13570 lt_prog_compiler_pic_F77='-fno-common'
13571 ;;
13572
13573 msdosdjgpp*)
13574 # Just because we use GCC doesn't mean we suddenly get shared libraries
13575 # on systems that don't support them.
13576 lt_prog_compiler_can_build_shared_F77=no
13577 enable_shared=no
13578 ;;
13579
13580 sysv4*MP*)
13581 if test -d /usr/nec; then
13582 lt_prog_compiler_pic_F77=-Kconform_pic
13583 fi
13584 ;;
13585
13586 hpux*)
13587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13588 # not for PA HP-UX.
13589 case $host_cpu in
13590 hppa*64*|ia64*)
13591 # +Z the default
13592 ;;
13593 *)
13594 lt_prog_compiler_pic_F77='-fPIC'
13595 ;;
13596 esac
13597 ;;
13598
13599 *)
13600 lt_prog_compiler_pic_F77='-fPIC'
13601 ;;
13602 esac
13603 else
13604 # PORTME Check for flag to pass linker flags through the system compiler.
13605 case $host_os in
13606 aix*)
13607 lt_prog_compiler_wl_F77='-Wl,'
13608 if test "$host_cpu" = ia64; then
13609 # AIX 5 now supports IA64 processor
13610 lt_prog_compiler_static_F77='-Bstatic'
13611 else
13612 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13613 fi
13614 ;;
13615 darwin*)
13616 # PIC is the default on this platform
13617 # Common symbols not allowed in MH_DYLIB files
13618 case $cc_basename in
13619 xlc*)
13620 lt_prog_compiler_pic_F77='-qnocommon'
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 ;;
13623 esac
13624 ;;
13625
13626 mingw* | pw32* | os2*)
13627 # This hack is so that the source file can tell whether it is being
13628 # built for inclusion in a dll (and should export symbols for example).
13629 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13630 ;;
13631
13632 hpux9* | hpux10* | hpux11*)
13633 lt_prog_compiler_wl_F77='-Wl,'
13634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13635 # not for PA HP-UX.
13636 case $host_cpu in
13637 hppa*64*|ia64*)
13638 # +Z the default
13639 ;;
13640 *)
13641 lt_prog_compiler_pic_F77='+Z'
13642 ;;
13643 esac
13644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13645 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13646 ;;
13647
13648 irix5* | irix6* | nonstopux*)
13649 lt_prog_compiler_wl_F77='-Wl,'
13650 # PIC (with -KPIC) is the default.
13651 lt_prog_compiler_static_F77='-non_shared'
13652 ;;
13653
13654 newsos6)
13655 lt_prog_compiler_pic_F77='-KPIC'
13656 lt_prog_compiler_static_F77='-Bstatic'
13657 ;;
13658
13659 linux*)
13660 case $cc_basename in
13661 icc* | ecc*)
13662 lt_prog_compiler_wl_F77='-Wl,'
13663 lt_prog_compiler_pic_F77='-KPIC'
13664 lt_prog_compiler_static_F77='-static'
13665 ;;
13666 pgcc* | pgf77* | pgf90* | pgf95*)
13667 # Portland Group compilers (*not* the Pentium gcc compiler,
13668 # which looks to be a dead project)
13669 lt_prog_compiler_wl_F77='-Wl,'
13670 lt_prog_compiler_pic_F77='-fpic'
13671 lt_prog_compiler_static_F77='-Bstatic'
13672 ;;
13673 ccc*)
13674 lt_prog_compiler_wl_F77='-Wl,'
13675 # All Alpha code is PIC.
13676 lt_prog_compiler_static_F77='-non_shared'
13677 ;;
13678 esac
13679 ;;
13680
13681 osf3* | osf4* | osf5*)
13682 lt_prog_compiler_wl_F77='-Wl,'
13683 # All OSF/1 code is PIC.
13684 lt_prog_compiler_static_F77='-non_shared'
13685 ;;
13686
13687 sco3.2v5*)
13688 lt_prog_compiler_pic_F77='-Kpic'
13689 lt_prog_compiler_static_F77='-dn'
13690 ;;
13691
13692 solaris*)
13693 lt_prog_compiler_pic_F77='-KPIC'
13694 lt_prog_compiler_static_F77='-Bstatic'
13695 case $cc_basename in
13696 f77* | f90* | f95*)
13697 lt_prog_compiler_wl_F77='-Qoption ld ';;
13698 *)
13699 lt_prog_compiler_wl_F77='-Wl,';;
13700 esac
13701 ;;
13702
13703 sunos4*)
13704 lt_prog_compiler_wl_F77='-Qoption ld '
13705 lt_prog_compiler_pic_F77='-PIC'
13706 lt_prog_compiler_static_F77='-Bstatic'
13707 ;;
13708
13709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13710 lt_prog_compiler_wl_F77='-Wl,'
13711 lt_prog_compiler_pic_F77='-KPIC'
13712 lt_prog_compiler_static_F77='-Bstatic'
13713 ;;
13714
13715 sysv4*MP*)
13716 if test -d /usr/nec ;then
13717 lt_prog_compiler_pic_F77='-Kconform_pic'
13718 lt_prog_compiler_static_F77='-Bstatic'
13719 fi
13720 ;;
13721
13722 unicos*)
13723 lt_prog_compiler_wl_F77='-Wl,'
13724 lt_prog_compiler_can_build_shared_F77=no
13725 ;;
13726
13727 uts4*)
13728 lt_prog_compiler_pic_F77='-pic'
13729 lt_prog_compiler_static_F77='-Bstatic'
13730 ;;
13731
13732 *)
13733 lt_prog_compiler_can_build_shared_F77=no
13734 ;;
13735 esac
13736 fi
13737
13738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13739 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13740
13741 #
13742 # Check to make sure the PIC flag actually works.
13743 #
13744 if test -n "$lt_prog_compiler_pic_F77"; then
13745
13746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13748 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 lt_prog_compiler_pic_works_F77=no
13752 ac_outfile=conftest.$ac_objext
13753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13754 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13755 # Insert the option either (1) after the last *FLAGS variable, or
13756 # (2) before a word containing "conftest.", or (3) at the end.
13757 # Note that $ac_compile itself does not contain backslashes and begins
13758 # with a dollar sign (not a hyphen), so the echo should work correctly.
13759 # The option is referenced via a variable to avoid confusing sed.
13760 lt_compile=`echo "$ac_compile" | $SED \
13761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13763 -e 's:$: $lt_compiler_flag:'`
13764 (eval echo "\"\$as_me:13764: $lt_compile\"" >&5)
13765 (eval "$lt_compile" 2>conftest.err)
13766 ac_status=$?
13767 cat conftest.err >&5
13768 echo "$as_me:13768: \$? = $ac_status" >&5
13769 if (exit $ac_status) && test -s "$ac_outfile"; then
13770 # The compiler can only warn and ignore the option if not recognized
13771 # So say no if there are warnings other than the usual output.
13772 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13773 $SED '/^$/d' conftest.err >conftest.er2
13774 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13775 lt_prog_compiler_pic_works_F77=yes
13776 fi
13777 fi
13778 $rm conftest*
13779
13780 fi
13781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13782 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13783
13784 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13785 case $lt_prog_compiler_pic_F77 in
13786 "" | " "*) ;;
13787 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13788 esac
13789 else
13790 lt_prog_compiler_pic_F77=
13791 lt_prog_compiler_can_build_shared_F77=no
13792 fi
13793
13794 fi
13795 case $host_os in
13796 # For platforms which do not support PIC, -DPIC is meaningless:
13797 *djgpp*)
13798 lt_prog_compiler_pic_F77=
13799 ;;
13800 *)
13801 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13802 ;;
13803 esac
13804
13805 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13807 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 lt_cv_prog_compiler_c_o_F77=no
13811 $rm -r conftest 2>/dev/null
13812 mkdir conftest
13813 cd conftest
13814 mkdir out
13815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13816
13817 lt_compiler_flag="-o out/conftest2.$ac_objext"
13818 # Insert the option either (1) after the last *FLAGS variable, or
13819 # (2) before a word containing "conftest.", or (3) at the end.
13820 # Note that $ac_compile itself does not contain backslashes and begins
13821 # with a dollar sign (not a hyphen), so the echo should work correctly.
13822 lt_compile=`echo "$ac_compile" | $SED \
13823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825 -e 's:$: $lt_compiler_flag:'`
13826 (eval echo "\"\$as_me:13826: $lt_compile\"" >&5)
13827 (eval "$lt_compile" 2>out/conftest.err)
13828 ac_status=$?
13829 cat out/conftest.err >&5
13830 echo "$as_me:13830: \$? = $ac_status" >&5
13831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13832 then
13833 # The compiler can only warn and ignore the option if not recognized
13834 # So say no if there are warnings
13835 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13836 $SED '/^$/d' out/conftest.err >out/conftest.er2
13837 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838 lt_cv_prog_compiler_c_o_F77=yes
13839 fi
13840 fi
13841 chmod u+w . 2>&5
13842 $rm conftest*
13843 # SGI C++ compiler will create directory out/ii_files/ for
13844 # template instantiation
13845 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13846 $rm out/* && rmdir out
13847 cd ..
13848 rmdir conftest
13849 $rm conftest*
13850
13851 fi
13852 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13854
13855
13856 hard_links="nottested"
13857 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13858 # do not overwrite the value of need_locks provided by the user
13859 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13861 hard_links=yes
13862 $rm conftest*
13863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13864 touch conftest.a
13865 ln conftest.a conftest.b 2>&5 || hard_links=no
13866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867 echo "$as_me:$LINENO: result: $hard_links" >&5
13868 echo "${ECHO_T}$hard_links" >&6
13869 if test "$hard_links" = no; then
13870 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13872 need_locks=warn
13873 fi
13874 else
13875 need_locks=no
13876 fi
13877
13878 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13880
13881 runpath_var=
13882 allow_undefined_flag_F77=
13883 enable_shared_with_static_runtimes_F77=no
13884 archive_cmds_F77=
13885 archive_expsym_cmds_F77=
13886 old_archive_From_new_cmds_F77=
13887 old_archive_from_expsyms_cmds_F77=
13888 export_dynamic_flag_spec_F77=
13889 whole_archive_flag_spec_F77=
13890 thread_safe_flag_spec_F77=
13891 hardcode_libdir_flag_spec_F77=
13892 hardcode_libdir_flag_spec_ld_F77=
13893 hardcode_libdir_separator_F77=
13894 hardcode_direct_F77=no
13895 hardcode_minus_L_F77=no
13896 hardcode_shlibpath_var_F77=unsupported
13897 link_all_deplibs_F77=unknown
13898 hardcode_automatic_F77=no
13899 module_cmds_F77=
13900 module_expsym_cmds_F77=
13901 always_export_symbols_F77=no
13902 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903 # include_expsyms should be a list of space-separated symbols to be *always*
13904 # included in the symbol list
13905 include_expsyms_F77=
13906 # exclude_expsyms can be an extended regexp of symbols to exclude
13907 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13908 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13909 # as well as any symbol that contains `d'.
13910 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13911 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13912 # platforms (ab)use it in PIC code, but their linkers get confused if
13913 # the symbol is explicitly referenced. Since portable code cannot
13914 # rely on this symbol name, it's probably fine to never include it in
13915 # preloaded symbol tables.
13916 extract_expsyms_cmds=
13917 # Just being paranoid about ensuring that cc_basename is set.
13918 for cc_temp in $compiler""; do
13919 case $cc_temp in
13920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922 \-*) ;;
13923 *) break;;
13924 esac
13925 done
13926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13927
13928 case $host_os in
13929 cygwin* | mingw* | pw32*)
13930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13931 # When not using gcc, we currently assume that we are using
13932 # Microsoft Visual C++.
13933 if test "$GCC" != yes; then
13934 with_gnu_ld=no
13935 fi
13936 ;;
13937 openbsd*)
13938 with_gnu_ld=no
13939 ;;
13940 esac
13941
13942 ld_shlibs_F77=yes
13943 if test "$with_gnu_ld" = yes; then
13944 # If archive_cmds runs LD, not CC, wlarc should be empty
13945 wlarc='${wl}'
13946
13947 # Set some defaults for GNU ld with shared library support. These
13948 # are reset later if shared libraries are not supported. Putting them
13949 # here allows them to be overridden if necessary.
13950 runpath_var=LD_RUN_PATH
13951 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13952 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13953 # ancient GNU ld didn't support --whole-archive et. al.
13954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13955 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13956 else
13957 whole_archive_flag_spec_F77=
13958 fi
13959 supports_anon_versioning=no
13960 case `$LD -v 2>/dev/null` in
13961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13964 *\ 2.11.*) ;; # other 2.11 versions
13965 *) supports_anon_versioning=yes ;;
13966 esac
13967
13968 # See if GNU ld supports shared libraries.
13969 case $host_os in
13970 aix3* | aix4* | aix5*)
13971 # On AIX/PPC, the GNU linker is very broken
13972 if test "$host_cpu" != ia64; then
13973 ld_shlibs_F77=no
13974 cat <<EOF 1>&2
13975
13976 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13977 *** to be unable to reliably create shared libraries on AIX.
13978 *** Therefore, libtool is disabling shared libraries support. If you
13979 *** really care for shared libraries, you may want to modify your PATH
13980 *** so that a non-GNU linker is found, and then restart.
13981
13982 EOF
13983 fi
13984 ;;
13985
13986 amigaos*)
13987 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)'
13988 hardcode_libdir_flag_spec_F77='-L$libdir'
13989 hardcode_minus_L_F77=yes
13990
13991 # Samuel A. Falvo II <[email protected]> reports
13992 # that the semantics of dynamic libraries on AmigaOS, at least up
13993 # to version 4, is to share data among multiple programs linked
13994 # with the same dynamic library. Since this doesn't match the
13995 # behavior of shared libraries on other platforms, we can't use
13996 # them.
13997 ld_shlibs_F77=no
13998 ;;
13999
14000 beos*)
14001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002 allow_undefined_flag_F77=unsupported
14003 # Joseph Beckenbach <[email protected]> says some releases of gcc
14004 # support --undefined. This deserves some investigation. FIXME
14005 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 else
14007 ld_shlibs_F77=no
14008 fi
14009 ;;
14010
14011 cygwin* | mingw* | pw32*)
14012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14013 # as there is no search path for DLLs.
14014 hardcode_libdir_flag_spec_F77='-L$libdir'
14015 allow_undefined_flag_F77=unsupported
14016 always_export_symbols_F77=no
14017 enable_shared_with_static_runtimes_F77=yes
14018 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14019
14020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14022 # If the export-symbols file already is a .def file (1st line
14023 # is EXPORTS), use it as is; otherwise, prepend...
14024 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14025 cp $export_symbols $output_objdir/$soname.def;
14026 else
14027 echo EXPORTS > $output_objdir/$soname.def;
14028 cat $export_symbols >> $output_objdir/$soname.def;
14029 fi~
14030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14031 else
14032 ld_shlibs_F77=no
14033 fi
14034 ;;
14035
14036 linux*)
14037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038 tmp_addflag=
14039 case $cc_basename,$host_cpu in
14040 pgcc*) # Portland Group C compiler
14041 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14042 tmp_addflag=' $pic_flag'
14043 ;;
14044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14045 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14046 tmp_addflag=' $pic_flag -Mnomain' ;;
14047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14048 tmp_addflag=' -i_dynamic' ;;
14049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14050 tmp_addflag=' -i_dynamic -nofor_main' ;;
14051 ifc* | ifort*) # Intel Fortran compiler
14052 tmp_addflag=' -nofor_main' ;;
14053 esac
14054 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055
14056 if test $supports_anon_versioning = yes; then
14057 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14059 $echo "local: *; };" >> $output_objdir/$libname.ver~
14060 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14061 fi
14062 link_all_deplibs_F77=no
14063 else
14064 ld_shlibs_F77=no
14065 fi
14066 ;;
14067
14068 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14070 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14071 wlarc=
14072 else
14073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14075 fi
14076 ;;
14077
14078 solaris* | sysv5*)
14079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14080 ld_shlibs_F77=no
14081 cat <<EOF 1>&2
14082
14083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14084 *** create shared libraries on Solaris systems. Therefore, libtool
14085 *** is disabling shared libraries support. We urge you to upgrade GNU
14086 *** binutils to release 2.9.1 or newer. Another option is to modify
14087 *** your PATH or compiler configuration so that the native linker is
14088 *** used, and then restart.
14089
14090 EOF
14091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14092 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14094 else
14095 ld_shlibs_F77=no
14096 fi
14097 ;;
14098
14099 sunos4*)
14100 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101 wlarc=
14102 hardcode_direct_F77=yes
14103 hardcode_shlibpath_var_F77=no
14104 ;;
14105
14106 *)
14107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14108 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14110 else
14111 ld_shlibs_F77=no
14112 fi
14113 ;;
14114 esac
14115
14116 if test "$ld_shlibs_F77" = no; then
14117 runpath_var=
14118 hardcode_libdir_flag_spec_F77=
14119 export_dynamic_flag_spec_F77=
14120 whole_archive_flag_spec_F77=
14121 fi
14122 else
14123 # PORTME fill in a description of your system's linker (not GNU ld)
14124 case $host_os in
14125 aix3*)
14126 allow_undefined_flag_F77=unsupported
14127 always_export_symbols_F77=yes
14128 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'
14129 # Note: this linker hardcodes the directories in LIBPATH if there
14130 # are no directories specified by -L.
14131 hardcode_minus_L_F77=yes
14132 if test "$GCC" = yes && test -z "$link_static_flag"; then
14133 # Neither direct hardcoding nor static linking is supported with a
14134 # broken collect2.
14135 hardcode_direct_F77=unsupported
14136 fi
14137 ;;
14138
14139 aix4* | aix5*)
14140 if test "$host_cpu" = ia64; then
14141 # On IA64, the linker does run time linking by default, so we don't
14142 # have to do anything special.
14143 aix_use_runtimelinking=no
14144 exp_sym_flag='-Bexport'
14145 no_entry_flag=""
14146 else
14147 # If we're using GNU nm, then we don't want the "-C" option.
14148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14149 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14150 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'
14151 else
14152 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'
14153 fi
14154 aix_use_runtimelinking=no
14155
14156 # Test if we are trying to use run time linking or normal
14157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14158 # need to do runtime linking.
14159 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14160 for ld_flag in $LDFLAGS; do
14161 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14162 aix_use_runtimelinking=yes
14163 break
14164 fi
14165 done
14166 esac
14167
14168 exp_sym_flag='-bexport'
14169 no_entry_flag='-bnoentry'
14170 fi
14171
14172 # When large executables or shared objects are built, AIX ld can
14173 # have problems creating the table of contents. If linking a library
14174 # or program results in "error TOC overflow" add -mminimal-toc to
14175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177
14178 archive_cmds_F77=''
14179 hardcode_direct_F77=yes
14180 hardcode_libdir_separator_F77=':'
14181 link_all_deplibs_F77=yes
14182
14183 if test "$GCC" = yes; then
14184 case $host_os in aix4.[012]|aix4.[012].*)
14185 # We only want to do this on AIX 4.2 and lower, the check
14186 # below for broken collect2 doesn't work under 4.3+
14187 collect2name=`${CC} -print-prog-name=collect2`
14188 if test -f "$collect2name" && \
14189 strings "$collect2name" | grep resolve_lib_name >/dev/null
14190 then
14191 # We have reworked collect2
14192 hardcode_direct_F77=yes
14193 else
14194 # We have old collect2
14195 hardcode_direct_F77=unsupported
14196 # It fails to find uninstalled libraries when the uninstalled
14197 # path is not listed in the libpath. Setting hardcode_minus_L
14198 # to unsupported forces relinking
14199 hardcode_minus_L_F77=yes
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_libdir_separator_F77=
14202 fi
14203 esac
14204 shared_flag='-shared'
14205 if test "$aix_use_runtimelinking" = yes; then
14206 shared_flag="$shared_flag "'${wl}-G'
14207 fi
14208 else
14209 # not using gcc
14210 if test "$host_cpu" = ia64; then
14211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14212 # chokes on -Wl,-G. The following line is correct:
14213 shared_flag='-G'
14214 else
14215 if test "$aix_use_runtimelinking" = yes; then
14216 shared_flag='${wl}-G'
14217 else
14218 shared_flag='${wl}-bM:SRE'
14219 fi
14220 fi
14221 fi
14222
14223 # It seems that -bexpall does not export symbols beginning with
14224 # underscore (_), so it is better to generate a list of symbols to export.
14225 always_export_symbols_F77=yes
14226 if test "$aix_use_runtimelinking" = yes; then
14227 # Warning - without using the other runtime loading flags (-brtl),
14228 # -berok will link without error, but may produce a broken library.
14229 allow_undefined_flag_F77='-berok'
14230 # Determine the default libpath from the value encoded in an empty executable.
14231 cat >conftest.$ac_ext <<_ACEOF
14232 program main
14233
14234 end
14235 _ACEOF
14236 rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest$ac_exeext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257
14258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14259 }'`
14260 # Check for a 64-bit object if we didn't find anything.
14261 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; }
14262 }'`; fi
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267 fi
14268 rm -f conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14271
14272 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14273 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"
14274 else
14275 if test "$host_cpu" = ia64; then
14276 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14277 allow_undefined_flag_F77="-z nodefs"
14278 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"
14279 else
14280 # Determine the default libpath from the value encoded in an empty executable.
14281 cat >conftest.$ac_ext <<_ACEOF
14282 program main
14283
14284 end
14285 _ACEOF
14286 rm -f conftest.$ac_objext conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288 (eval $ac_link) 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest$ac_exeext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307
14308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14309 }'`
14310 # Check for a 64-bit object if we didn't find anything.
14311 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; }
14312 }'`; fi
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 fi
14318 rm -f conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14321
14322 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14323 # Warning - without using the other run time loading flags,
14324 # -berok will link without error, but may produce a broken library.
14325 no_undefined_flag_F77=' ${wl}-bernotok'
14326 allow_undefined_flag_F77=' ${wl}-berok'
14327 # -bexpall does not export symbols beginning with underscore (_)
14328 always_export_symbols_F77=yes
14329 # Exported symbols can be pulled into shared objects from archives
14330 whole_archive_flag_spec_F77=' '
14331 archive_cmds_need_lc_F77=yes
14332 # This is similar to how AIX traditionally builds its shared libraries.
14333 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'
14334 fi
14335 fi
14336 ;;
14337
14338 amigaos*)
14339 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)'
14340 hardcode_libdir_flag_spec_F77='-L$libdir'
14341 hardcode_minus_L_F77=yes
14342 # see comment about different semantics on the GNU ld section
14343 ld_shlibs_F77=no
14344 ;;
14345
14346 bsdi[45]*)
14347 export_dynamic_flag_spec_F77=-rdynamic
14348 ;;
14349
14350 cygwin* | mingw* | pw32*)
14351 # When not using gcc, we currently assume that we are using
14352 # Microsoft Visual C++.
14353 # hardcode_libdir_flag_spec is actually meaningless, as there is
14354 # no search path for DLLs.
14355 hardcode_libdir_flag_spec_F77=' '
14356 allow_undefined_flag_F77=unsupported
14357 # Tell ltmain to make .lib files, not .a files.
14358 libext=lib
14359 # Tell ltmain to make .dll files, not .so files.
14360 shrext_cmds=".dll"
14361 # FIXME: Setting linknames here is a bad hack.
14362 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14363 # The linker will automatically build a .lib file if we build a DLL.
14364 old_archive_From_new_cmds_F77='true'
14365 # FIXME: Should let the user specify the lib program.
14366 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14367 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14368 enable_shared_with_static_runtimes_F77=yes
14369 ;;
14370
14371 darwin* | rhapsody*)
14372 case $host_os in
14373 rhapsody* | darwin1.[012])
14374 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14375 ;;
14376 *) # Darwin 1.3 on
14377 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14378 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14379 else
14380 case ${MACOSX_DEPLOYMENT_TARGET} in
14381 10.[012])
14382 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14383 ;;
14384 10.*)
14385 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14386 ;;
14387 esac
14388 fi
14389 ;;
14390 esac
14391 archive_cmds_need_lc_F77=no
14392 hardcode_direct_F77=no
14393 hardcode_automatic_F77=yes
14394 hardcode_shlibpath_var_F77=unsupported
14395 whole_archive_flag_spec_F77=''
14396 link_all_deplibs_F77=yes
14397 if test "$GCC" = yes ; then
14398 output_verbose_link_cmd='echo'
14399 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14400 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14401 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14402 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}'
14403 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}'
14404 else
14405 case $cc_basename in
14406 xlc*)
14407 output_verbose_link_cmd='echo'
14408 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14409 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14411 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}'
14412 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}'
14413 ;;
14414 *)
14415 ld_shlibs_F77=no
14416 ;;
14417 esac
14418 fi
14419 ;;
14420
14421 dgux*)
14422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_libdir_flag_spec_F77='-L$libdir'
14424 hardcode_shlibpath_var_F77=no
14425 ;;
14426
14427 freebsd1*)
14428 ld_shlibs_F77=no
14429 ;;
14430
14431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14432 # support. Future versions do this automatically, but an explicit c++rt0.o
14433 # does not break anything, and helps significantly (at the cost of a little
14434 # extra space).
14435 freebsd2.2*)
14436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14437 hardcode_libdir_flag_spec_F77='-R$libdir'
14438 hardcode_direct_F77=yes
14439 hardcode_shlibpath_var_F77=no
14440 ;;
14441
14442 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14443 freebsd2*)
14444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14445 hardcode_direct_F77=yes
14446 hardcode_minus_L_F77=yes
14447 hardcode_shlibpath_var_F77=no
14448 ;;
14449
14450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14451 freebsd* | kfreebsd*-gnu | dragonfly*)
14452 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14453 hardcode_libdir_flag_spec_F77='-R$libdir'
14454 hardcode_direct_F77=yes
14455 hardcode_shlibpath_var_F77=no
14456 ;;
14457
14458 hpux9*)
14459 if test "$GCC" = yes; then
14460 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'
14461 else
14462 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'
14463 fi
14464 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14465 hardcode_libdir_separator_F77=:
14466 hardcode_direct_F77=yes
14467
14468 # hardcode_minus_L: Not really in the search PATH,
14469 # but as the default location of the library.
14470 hardcode_minus_L_F77=yes
14471 export_dynamic_flag_spec_F77='${wl}-E'
14472 ;;
14473
14474 hpux10* | hpux11*)
14475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14476 case $host_cpu in
14477 hppa*64*|ia64*)
14478 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14479 ;;
14480 *)
14481 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14482 ;;
14483 esac
14484 else
14485 case $host_cpu in
14486 hppa*64*|ia64*)
14487 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14488 ;;
14489 *)
14490 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14491 ;;
14492 esac
14493 fi
14494 if test "$with_gnu_ld" = no; then
14495 case $host_cpu in
14496 hppa*64*)
14497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14498 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14499 hardcode_libdir_separator_F77=:
14500 hardcode_direct_F77=no
14501 hardcode_shlibpath_var_F77=no
14502 ;;
14503 ia64*)
14504 hardcode_libdir_flag_spec_F77='-L$libdir'
14505 hardcode_direct_F77=no
14506 hardcode_shlibpath_var_F77=no
14507
14508 # hardcode_minus_L: Not really in the search PATH,
14509 # but as the default location of the library.
14510 hardcode_minus_L_F77=yes
14511 ;;
14512 *)
14513 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14514 hardcode_libdir_separator_F77=:
14515 hardcode_direct_F77=yes
14516 export_dynamic_flag_spec_F77='${wl}-E'
14517
14518 # hardcode_minus_L: Not really in the search PATH,
14519 # but as the default location of the library.
14520 hardcode_minus_L_F77=yes
14521 ;;
14522 esac
14523 fi
14524 ;;
14525
14526 irix5* | irix6* | nonstopux*)
14527 if test "$GCC" = yes; then
14528 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'
14529 else
14530 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'
14531 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14532 fi
14533 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14534 hardcode_libdir_separator_F77=:
14535 link_all_deplibs_F77=yes
14536 ;;
14537
14538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14540 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14541 else
14542 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14543 fi
14544 hardcode_libdir_flag_spec_F77='-R$libdir'
14545 hardcode_direct_F77=yes
14546 hardcode_shlibpath_var_F77=no
14547 ;;
14548
14549 newsos6)
14550 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct_F77=yes
14552 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14553 hardcode_libdir_separator_F77=:
14554 hardcode_shlibpath_var_F77=no
14555 ;;
14556
14557 openbsd*)
14558 hardcode_direct_F77=yes
14559 hardcode_shlibpath_var_F77=no
14560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14561 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14563 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14564 export_dynamic_flag_spec_F77='${wl}-E'
14565 else
14566 case $host_os in
14567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14568 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_libdir_flag_spec_F77='-R$libdir'
14570 ;;
14571 *)
14572 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14573 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14574 ;;
14575 esac
14576 fi
14577 ;;
14578
14579 os2*)
14580 hardcode_libdir_flag_spec_F77='-L$libdir'
14581 hardcode_minus_L_F77=yes
14582 allow_undefined_flag_F77=unsupported
14583 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'
14584 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14585 ;;
14586
14587 osf3*)
14588 if test "$GCC" = yes; then
14589 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14590 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'
14591 else
14592 allow_undefined_flag_F77=' -expect_unresolved \*'
14593 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'
14594 fi
14595 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14596 hardcode_libdir_separator_F77=:
14597 ;;
14598
14599 osf4* | osf5*) # as osf3* with the addition of -msym flag
14600 if test "$GCC" = yes; then
14601 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14602 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'
14603 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14604 else
14605 allow_undefined_flag_F77=' -expect_unresolved \*'
14606 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'
14607 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~
14608 $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'
14609
14610 # Both c and cxx compiler support -rpath directly
14611 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14612 fi
14613 hardcode_libdir_separator_F77=:
14614 ;;
14615
14616 sco3.2v5*)
14617 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 hardcode_shlibpath_var_F77=no
14619 export_dynamic_flag_spec_F77='${wl}-Bexport'
14620 runpath_var=LD_RUN_PATH
14621 hardcode_runpath_var=yes
14622 ;;
14623
14624 solaris*)
14625 no_undefined_flag_F77=' -z text'
14626 if test "$GCC" = yes; then
14627 wlarc='${wl}'
14628 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14629 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14630 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14631 else
14632 wlarc=''
14633 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14636 fi
14637 hardcode_libdir_flag_spec_F77='-R$libdir'
14638 hardcode_shlibpath_var_F77=no
14639 case $host_os in
14640 solaris2.[0-5] | solaris2.[0-5].*) ;;
14641 *)
14642 # The compiler driver will combine linker options so we
14643 # cannot just pass the convience library names through
14644 # without $wl, iff we do not link with $LD.
14645 # Luckily, gcc supports the same syntax we need for Sun Studio.
14646 # Supported since Solaris 2.6 (maybe 2.5.1?)
14647 case $wlarc in
14648 '')
14649 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14650 *)
14651 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' ;;
14652 esac ;;
14653 esac
14654 link_all_deplibs_F77=yes
14655 ;;
14656
14657 sunos4*)
14658 if test "x$host_vendor" = xsequent; then
14659 # Use $CC to link under sequent, because it throws in some extra .o
14660 # files that make .init and .fini sections work.
14661 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14662 else
14663 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14664 fi
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 hardcode_direct_F77=yes
14667 hardcode_minus_L_F77=yes
14668 hardcode_shlibpath_var_F77=no
14669 ;;
14670
14671 sysv4)
14672 case $host_vendor in
14673 sni)
14674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_direct_F77=yes # is this really true???
14676 ;;
14677 siemens)
14678 ## LD is ld it makes a PLAMLIB
14679 ## CC just makes a GrossModule.
14680 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14681 reload_cmds_F77='$CC -r -o $output$reload_objs'
14682 hardcode_direct_F77=no
14683 ;;
14684 motorola)
14685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14687 ;;
14688 esac
14689 runpath_var='LD_RUN_PATH'
14690 hardcode_shlibpath_var_F77=no
14691 ;;
14692
14693 sysv4.3*)
14694 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695 hardcode_shlibpath_var_F77=no
14696 export_dynamic_flag_spec_F77='-Bexport'
14697 ;;
14698
14699 sysv4*MP*)
14700 if test -d /usr/nec; then
14701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_shlibpath_var_F77=no
14703 runpath_var=LD_RUN_PATH
14704 hardcode_runpath_var=yes
14705 ld_shlibs_F77=yes
14706 fi
14707 ;;
14708
14709 sysv4.2uw2*)
14710 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14711 hardcode_direct_F77=yes
14712 hardcode_minus_L_F77=no
14713 hardcode_shlibpath_var_F77=no
14714 hardcode_runpath_var=yes
14715 runpath_var=LD_RUN_PATH
14716 ;;
14717
14718 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14719 no_undefined_flag_F77='${wl}-z ${wl}text'
14720 if test "$GCC" = yes; then
14721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 else
14723 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 fi
14725 runpath_var='LD_RUN_PATH'
14726 hardcode_shlibpath_var_F77=no
14727 ;;
14728
14729 sysv5*)
14730 no_undefined_flag_F77=' -z text'
14731 # $CC -shared without GNU ld will not create a library from C++
14732 # object files and a static libstdc++, better avoid it by now
14733 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14736 hardcode_libdir_flag_spec_F77=
14737 hardcode_shlibpath_var_F77=no
14738 runpath_var='LD_RUN_PATH'
14739 ;;
14740
14741 uts4*)
14742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_F77='-L$libdir'
14744 hardcode_shlibpath_var_F77=no
14745 ;;
14746
14747 *)
14748 ld_shlibs_F77=no
14749 ;;
14750 esac
14751 fi
14752
14753 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14754 echo "${ECHO_T}$ld_shlibs_F77" >&6
14755 test "$ld_shlibs_F77" = no && can_build_shared=no
14756
14757 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14758 if test "$GCC" = yes; then
14759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14760 fi
14761
14762 #
14763 # Do we need to explicitly link libc?
14764 #
14765 case "x$archive_cmds_need_lc_F77" in
14766 x|xyes)
14767 # Assume -lc should be added
14768 archive_cmds_need_lc_F77=yes
14769
14770 if test "$enable_shared" = yes && test "$GCC" = yes; then
14771 case $archive_cmds_F77 in
14772 *'~'*)
14773 # FIXME: we may have to deal with multi-command sequences.
14774 ;;
14775 '$CC '*)
14776 # Test whether the compiler implicitly links with -lc since on some
14777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14778 # to ld, don't add -lc before -lgcc.
14779 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14781 $rm conftest*
14782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14783
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } 2>conftest.err; then
14789 soname=conftest
14790 lib=conftest
14791 libobjs=conftest.$ac_objext
14792 deplibs=
14793 wl=$lt_prog_compiler_wl_F77
14794 compiler_flags=-v
14795 linker_flags=-v
14796 verstring=
14797 output_objdir=.
14798 libname=conftest
14799 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14800 allow_undefined_flag_F77=
14801 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14802 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }
14806 then
14807 archive_cmds_need_lc_F77=no
14808 else
14809 archive_cmds_need_lc_F77=yes
14810 fi
14811 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14812 else
14813 cat conftest.err 1>&5
14814 fi
14815 $rm conftest*
14816 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14817 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14818 ;;
14819 esac
14820 fi
14821 ;;
14822 esac
14823
14824 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14825 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14826 library_names_spec=
14827 libname_spec='lib$name'
14828 soname_spec=
14829 shrext_cmds=".so"
14830 postinstall_cmds=
14831 postuninstall_cmds=
14832 finish_cmds=
14833 finish_eval=
14834 shlibpath_var=
14835 shlibpath_overrides_runpath=unknown
14836 version_type=none
14837 dynamic_linker="$host_os ld.so"
14838 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14839 if test "$GCC" = yes; then
14840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14841 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14842 # if the path contains ";" then we assume it to be the separator
14843 # otherwise default to the standard path separator (i.e. ":") - it is
14844 # assumed that no part of a normal pathname contains ";" but that should
14845 # okay in the real world where ";" in dirpaths is itself problematic.
14846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14847 else
14848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14849 fi
14850 else
14851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852 fi
14853 need_lib_prefix=unknown
14854 hardcode_into_libs=no
14855
14856 # when you set need_version to no, make sure it does not cause -set_version
14857 # flags to be left without arguments
14858 need_version=unknown
14859
14860 case $host_os in
14861 aix3*)
14862 version_type=linux
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14864 shlibpath_var=LIBPATH
14865
14866 # AIX 3 has no versioning support, so we append a major version to the name.
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 ;;
14869
14870 aix4* | aix5*)
14871 version_type=linux
14872 need_lib_prefix=no
14873 need_version=no
14874 hardcode_into_libs=yes
14875 if test "$host_cpu" = ia64; then
14876 # AIX 5 supports IA64
14877 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 else
14880 # With GCC up to 2.95.x, collect2 would create an import file
14881 # for dependence libraries. The import file would start with
14882 # the line `#! .'. This would cause the generated library to
14883 # depend on `.', always an invalid library. This was fixed in
14884 # development snapshots of GCC prior to 3.0.
14885 case $host_os in
14886 aix4 | aix4.[01] | aix4.[01].*)
14887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14888 echo ' yes '
14889 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14890 :
14891 else
14892 can_build_shared=no
14893 fi
14894 ;;
14895 esac
14896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14897 # soname into executable. Probably we can add versioning support to
14898 # collect2, so additional links can be useful in future.
14899 if test "$aix_use_runtimelinking" = yes; then
14900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14901 # instead of lib<name>.a to let people know that these are not
14902 # typical AIX shared libraries.
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 else
14905 # We preserve .a as extension for shared libraries through AIX4.2
14906 # and later when we are not doing run time linking.
14907 library_names_spec='${libname}${release}.a $libname.a'
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 fi
14910 shlibpath_var=LIBPATH
14911 fi
14912 ;;
14913
14914 amigaos*)
14915 library_names_spec='$libname.ixlibrary $libname.a'
14916 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14917 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'
14918 ;;
14919
14920 beos*)
14921 library_names_spec='${libname}${shared_ext}'
14922 dynamic_linker="$host_os ld.so"
14923 shlibpath_var=LIBRARY_PATH
14924 ;;
14925
14926 bsdi[45]*)
14927 version_type=linux
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14935 # the default ld.so.conf also contains /usr/contrib/lib and
14936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14937 # libtool to hard-code these into programs
14938 ;;
14939
14940 cygwin* | mingw* | pw32*)
14941 version_type=windows
14942 shrext_cmds=".dll"
14943 need_version=no
14944 need_lib_prefix=no
14945
14946 case $GCC,$host_os in
14947 yes,cygwin* | yes,mingw* | yes,pw32*)
14948 library_names_spec='$libname.dll.a'
14949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14950 postinstall_cmds='base_file=`basename \${file}`~
14951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14952 dldir=$destdir/`dirname \$dlpath`~
14953 test -d \$dldir || mkdir -p \$dldir~
14954 $install_prog $dir/$dlname \$dldir/$dlname~
14955 chmod a+x \$dldir/$dlname'
14956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14957 dlpath=$dir/\$dldll~
14958 $rm \$dlpath'
14959 shlibpath_overrides_runpath=yes
14960
14961 case $host_os in
14962 cygwin*)
14963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14966 ;;
14967 mingw*)
14968 # MinGW DLLs use traditional 'lib' prefix
14969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14971 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14972 # It is most probably a Windows format PATH printed by
14973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14974 # path with ; separators, and with drive letters. We can handle the
14975 # drive letters (cygwin fileutils understands them), so leave them,
14976 # especially as we might pass files found there to a mingw objdump,
14977 # which wouldn't understand a cygwinified path. Ahh.
14978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14979 else
14980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14981 fi
14982 ;;
14983 pw32*)
14984 # pw32 DLLs use 'pw' prefix rather than 'lib'
14985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986 ;;
14987 esac
14988 ;;
14989
14990 *)
14991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14992 ;;
14993 esac
14994 dynamic_linker='Win32 ld.exe'
14995 # FIXME: first we should search . and the directory the executable is in
14996 shlibpath_var=PATH
14997 ;;
14998
14999 darwin* | rhapsody*)
15000 dynamic_linker="$host_os dyld"
15001 version_type=darwin
15002 need_lib_prefix=no
15003 need_version=no
15004 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15005 soname_spec='${libname}${release}${major}$shared_ext'
15006 shlibpath_overrides_runpath=yes
15007 shlibpath_var=DYLD_LIBRARY_PATH
15008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15009 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15010 if test "$GCC" = yes; then
15011 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"`
15012 else
15013 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15014 fi
15015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15016 ;;
15017
15018 dgux*)
15019 version_type=linux
15020 need_lib_prefix=no
15021 need_version=no
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 ;;
15026
15027 freebsd1*)
15028 dynamic_linker=no
15029 ;;
15030
15031 kfreebsd*-gnu)
15032 version_type=linux
15033 need_lib_prefix=no
15034 need_version=no
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 shlibpath_overrides_runpath=no
15039 hardcode_into_libs=yes
15040 dynamic_linker='GNU ld.so'
15041 ;;
15042
15043 freebsd* | dragonfly*)
15044 # DragonFly does not have aout. When/if they implement a new
15045 # versioning mechanism, adjust this.
15046 if test -x /usr/bin/objformat; then
15047 objformat=`/usr/bin/objformat`
15048 else
15049 case $host_os in
15050 freebsd[123]*) objformat=aout ;;
15051 *) objformat=elf ;;
15052 esac
15053 fi
15054 version_type=freebsd-$objformat
15055 case $version_type in
15056 freebsd-elf*)
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15058 need_version=no
15059 need_lib_prefix=no
15060 ;;
15061 freebsd-*)
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15063 need_version=yes
15064 ;;
15065 esac
15066 shlibpath_var=LD_LIBRARY_PATH
15067 case $host_os in
15068 freebsd2*)
15069 shlibpath_overrides_runpath=yes
15070 ;;
15071 freebsd3.[01]* | freebsdelf3.[01]*)
15072 shlibpath_overrides_runpath=yes
15073 hardcode_into_libs=yes
15074 ;;
15075 *) # from 3.2 on
15076 shlibpath_overrides_runpath=no
15077 hardcode_into_libs=yes
15078 ;;
15079 esac
15080 ;;
15081
15082 gnu*)
15083 version_type=linux
15084 need_lib_prefix=no
15085 need_version=no
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 hardcode_into_libs=yes
15090 ;;
15091
15092 hpux9* | hpux10* | hpux11*)
15093 # Give a soname corresponding to the major version so that dld.sl refuses to
15094 # link against other versions.
15095 version_type=sunos
15096 need_lib_prefix=no
15097 need_version=no
15098 case $host_cpu in
15099 ia64*)
15100 shrext_cmds='.so'
15101 hardcode_into_libs=yes
15102 dynamic_linker="$host_os dld.so"
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 if test "X$HPUX_IA64_MODE" = X32; then
15108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15109 else
15110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15111 fi
15112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15113 ;;
15114 hppa*64*)
15115 shrext_cmds='.sl'
15116 hardcode_into_libs=yes
15117 dynamic_linker="$host_os dld.sl"
15118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15124 ;;
15125 *)
15126 shrext_cmds='.sl'
15127 dynamic_linker="$host_os dld.sl"
15128 shlibpath_var=SHLIB_PATH
15129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 ;;
15133 esac
15134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15135 postinstall_cmds='chmod 555 $lib'
15136 ;;
15137
15138 irix5* | irix6* | nonstopux*)
15139 case $host_os in
15140 nonstopux*) version_type=nonstopux ;;
15141 *)
15142 if test "$lt_cv_prog_gnu_ld" = yes; then
15143 version_type=linux
15144 else
15145 version_type=irix
15146 fi ;;
15147 esac
15148 need_lib_prefix=no
15149 need_version=no
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15152 case $host_os in
15153 irix5* | nonstopux*)
15154 libsuff= shlibsuff=
15155 ;;
15156 *)
15157 case $LD in # libtool.m4 will add one of these switches to LD
15158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15159 libsuff= shlibsuff= libmagic=32-bit;;
15160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15161 libsuff=32 shlibsuff=N32 libmagic=N32;;
15162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15164 *) libsuff= shlibsuff= libmagic=never-match;;
15165 esac
15166 ;;
15167 esac
15168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15169 shlibpath_overrides_runpath=no
15170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15172 hardcode_into_libs=yes
15173 ;;
15174
15175 # No shared lib support for Linux oldld, aout, or coff.
15176 linux*oldld* | linux*aout* | linux*coff*)
15177 dynamic_linker=no
15178 ;;
15179
15180 # This must be Linux ELF.
15181 linux*)
15182 version_type=linux
15183 need_lib_prefix=no
15184 need_version=no
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=no
15190 # This implies no fast_install, which is unacceptable.
15191 # Some rework will be needed to allow for fast_install
15192 # before this can be enabled.
15193 hardcode_into_libs=yes
15194
15195 # Append ld.so.conf contents to the search path
15196 if test -f /etc/ld.so.conf; then
15197 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15198 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15199 fi
15200
15201 # We used to test for /lib/ld.so.1 and disable shared libraries on
15202 # powerpc, because MkLinux only supported shared libraries with the
15203 # GNU dynamic linker. Since this was broken with cross compilers,
15204 # most powerpc-linux boxes support dynamic linking these days and
15205 # people can always --disable-shared, the test was removed, and we
15206 # assume the GNU/Linux dynamic linker is in use.
15207 dynamic_linker='GNU/Linux ld.so'
15208 ;;
15209
15210 netbsdelf*-gnu)
15211 version_type=linux
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15219 dynamic_linker='NetBSD ld.elf_so'
15220 ;;
15221
15222 knetbsd*-gnu)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 shlibpath_overrides_runpath=no
15230 hardcode_into_libs=yes
15231 dynamic_linker='GNU ld.so'
15232 ;;
15233
15234 netbsd*)
15235 version_type=sunos
15236 need_lib_prefix=no
15237 need_version=no
15238 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15241 dynamic_linker='NetBSD (a.out) ld.so'
15242 else
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 dynamic_linker='NetBSD ld.elf_so'
15246 fi
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=yes
15249 hardcode_into_libs=yes
15250 ;;
15251
15252 newsos6)
15253 version_type=linux
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 ;;
15258
15259 nto-qnx*)
15260 version_type=linux
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=yes
15267 ;;
15268
15269 openbsd*)
15270 version_type=sunos
15271 need_lib_prefix=no
15272 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15273 case $host_os in
15274 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15275 *) need_version=no ;;
15276 esac
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 case $host_os in
15282 openbsd2.[89] | openbsd2.[89].*)
15283 shlibpath_overrides_runpath=no
15284 ;;
15285 *)
15286 shlibpath_overrides_runpath=yes
15287 ;;
15288 esac
15289 else
15290 shlibpath_overrides_runpath=yes
15291 fi
15292 ;;
15293
15294 os2*)
15295 libname_spec='$name'
15296 shrext_cmds=".dll"
15297 need_lib_prefix=no
15298 library_names_spec='$libname${shared_ext} $libname.a'
15299 dynamic_linker='OS/2 ld.exe'
15300 shlibpath_var=LIBPATH
15301 ;;
15302
15303 osf3* | osf4* | osf5*)
15304 version_type=osf
15305 need_lib_prefix=no
15306 need_version=no
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15312 ;;
15313
15314 sco3.2v5*)
15315 version_type=osf
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 ;;
15320
15321 solaris*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 hardcode_into_libs=yes
15330 # ldd complains unless libraries are executable
15331 postinstall_cmds='chmod +x $lib'
15332 ;;
15333
15334 sunos4*)
15335 version_type=sunos
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15337 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=yes
15340 if test "$with_gnu_ld" = yes; then
15341 need_lib_prefix=no
15342 fi
15343 need_version=yes
15344 ;;
15345
15346 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15347 version_type=linux
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 case $host_vendor in
15352 sni)
15353 shlibpath_overrides_runpath=no
15354 need_lib_prefix=no
15355 export_dynamic_flag_spec='${wl}-Blargedynsym'
15356 runpath_var=LD_RUN_PATH
15357 ;;
15358 siemens)
15359 need_lib_prefix=no
15360 ;;
15361 motorola)
15362 need_lib_prefix=no
15363 need_version=no
15364 shlibpath_overrides_runpath=no
15365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15366 ;;
15367 esac
15368 ;;
15369
15370 sysv4*MP*)
15371 if test -d /usr/nec ;then
15372 version_type=linux
15373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15374 soname_spec='$libname${shared_ext}.$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 fi
15377 ;;
15378
15379 uts4*)
15380 version_type=linux
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 ;;
15385
15386 *)
15387 dynamic_linker=no
15388 ;;
15389 esac
15390 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15391 echo "${ECHO_T}$dynamic_linker" >&6
15392 test "$dynamic_linker" = no && can_build_shared=no
15393
15394 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15395 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15396 hardcode_action_F77=
15397 if test -n "$hardcode_libdir_flag_spec_F77" || \
15398 test -n "$runpath_var_F77" || \
15399 test "X$hardcode_automatic_F77" = "Xyes" ; then
15400
15401 # We can hardcode non-existant directories.
15402 if test "$hardcode_direct_F77" != no &&
15403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15404 # have to relink, otherwise we might link with an installed library
15405 # when we should be linking with a yet-to-be-installed one
15406 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15407 test "$hardcode_minus_L_F77" != no; then
15408 # Linking always hardcodes the temporary library directory.
15409 hardcode_action_F77=relink
15410 else
15411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15412 hardcode_action_F77=immediate
15413 fi
15414 else
15415 # We cannot hardcode anything, or else we can only hardcode existing
15416 # directories.
15417 hardcode_action_F77=unsupported
15418 fi
15419 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15420 echo "${ECHO_T}$hardcode_action_F77" >&6
15421
15422 if test "$hardcode_action_F77" = relink; then
15423 # Fast installation is not supported
15424 enable_fast_install=no
15425 elif test "$shlibpath_overrides_runpath" = yes ||
15426 test "$enable_shared" = no; then
15427 # Fast installation is not necessary
15428 enable_fast_install=needless
15429 fi
15430
15431 striplib=
15432 old_striplib=
15433 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15434 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15435 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15436 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15437 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15438 echo "$as_me:$LINENO: result: yes" >&5
15439 echo "${ECHO_T}yes" >&6
15440 else
15441 # FIXME - insert some real tests, host_os isn't really good enough
15442 case $host_os in
15443 darwin*)
15444 if test -n "$STRIP" ; then
15445 striplib="$STRIP -x"
15446 echo "$as_me:$LINENO: result: yes" >&5
15447 echo "${ECHO_T}yes" >&6
15448 else
15449 echo "$as_me:$LINENO: result: no" >&5
15450 echo "${ECHO_T}no" >&6
15451 fi
15452 ;;
15453 *)
15454 echo "$as_me:$LINENO: result: no" >&5
15455 echo "${ECHO_T}no" >&6
15456 ;;
15457 esac
15458 fi
15459
15460
15461
15462 # The else clause should only fire when bootstrapping the
15463 # libtool distribution, otherwise you forgot to ship ltmain.sh
15464 # with your package, and you will get complaints that there are
15465 # no rules to generate ltmain.sh.
15466 if test -f "$ltmain"; then
15467 # See if we are running on zsh, and set the options which allow our commands through
15468 # without removal of \ escapes.
15469 if test -n "${ZSH_VERSION+set}" ; then
15470 setopt NO_GLOB_SUBST
15471 fi
15472 # Now quote all the things that may contain metacharacters while being
15473 # careful not to overquote the AC_SUBSTed values. We take copies of the
15474 # variables and quote the copies for generation of the libtool script.
15475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15476 SED SHELL STRIP \
15477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15479 deplibs_check_method reload_flag reload_cmds need_locks \
15480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15481 lt_cv_sys_global_symbol_to_c_name_address \
15482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15483 old_postinstall_cmds old_postuninstall_cmds \
15484 compiler_F77 \
15485 CC_F77 \
15486 LD_F77 \
15487 lt_prog_compiler_wl_F77 \
15488 lt_prog_compiler_pic_F77 \
15489 lt_prog_compiler_static_F77 \
15490 lt_prog_compiler_no_builtin_flag_F77 \
15491 export_dynamic_flag_spec_F77 \
15492 thread_safe_flag_spec_F77 \
15493 whole_archive_flag_spec_F77 \
15494 enable_shared_with_static_runtimes_F77 \
15495 old_archive_cmds_F77 \
15496 old_archive_from_new_cmds_F77 \
15497 predep_objects_F77 \
15498 postdep_objects_F77 \
15499 predeps_F77 \
15500 postdeps_F77 \
15501 compiler_lib_search_path_F77 \
15502 archive_cmds_F77 \
15503 archive_expsym_cmds_F77 \
15504 postinstall_cmds_F77 \
15505 postuninstall_cmds_F77 \
15506 old_archive_from_expsyms_cmds_F77 \
15507 allow_undefined_flag_F77 \
15508 no_undefined_flag_F77 \
15509 export_symbols_cmds_F77 \
15510 hardcode_libdir_flag_spec_F77 \
15511 hardcode_libdir_flag_spec_ld_F77 \
15512 hardcode_libdir_separator_F77 \
15513 hardcode_automatic_F77 \
15514 module_cmds_F77 \
15515 module_expsym_cmds_F77 \
15516 lt_cv_prog_compiler_c_o_F77 \
15517 exclude_expsyms_F77 \
15518 include_expsyms_F77; do
15519
15520 case $var in
15521 old_archive_cmds_F77 | \
15522 old_archive_from_new_cmds_F77 | \
15523 archive_cmds_F77 | \
15524 archive_expsym_cmds_F77 | \
15525 module_cmds_F77 | \
15526 module_expsym_cmds_F77 | \
15527 old_archive_from_expsyms_cmds_F77 | \
15528 export_symbols_cmds_F77 | \
15529 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15530 postinstall_cmds | postuninstall_cmds | \
15531 old_postinstall_cmds | old_postuninstall_cmds | \
15532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15533 # Double-quote double-evaled strings.
15534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15535 ;;
15536 *)
15537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15538 ;;
15539 esac
15540 done
15541
15542 case $lt_echo in
15543 *'\$0 --fallback-echo"')
15544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15545 ;;
15546 esac
15547
15548 cfgfile="$ofile"
15549
15550 cat <<__EOF__ >> "$cfgfile"
15551 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15552
15553 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15554
15555 # Shell to use when invoking shell scripts.
15556 SHELL=$lt_SHELL
15557
15558 # Whether or not to build shared libraries.
15559 build_libtool_libs=$enable_shared
15560
15561 # Whether or not to build static libraries.
15562 build_old_libs=$enable_static
15563
15564 # Whether or not to add -lc for building shared libraries.
15565 build_libtool_need_lc=$archive_cmds_need_lc_F77
15566
15567 # Whether or not to disallow shared libs when runtime libs are static
15568 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15569
15570 # Whether or not to optimize for fast installation.
15571 fast_install=$enable_fast_install
15572
15573 # The host system.
15574 host_alias=$host_alias
15575 host=$host
15576 host_os=$host_os
15577
15578 # The build system.
15579 build_alias=$build_alias
15580 build=$build
15581 build_os=$build_os
15582
15583 # An echo program that does not interpret backslashes.
15584 echo=$lt_echo
15585
15586 # The archiver.
15587 AR=$lt_AR
15588 AR_FLAGS=$lt_AR_FLAGS
15589
15590 # A C compiler.
15591 LTCC=$lt_LTCC
15592
15593 # A language-specific compiler.
15594 CC=$lt_compiler_F77
15595
15596 # Is the compiler the GNU C compiler?
15597 with_gcc=$GCC_F77
15598
15599 # An ERE matcher.
15600 EGREP=$lt_EGREP
15601
15602 # The linker used to build libraries.
15603 LD=$lt_LD_F77
15604
15605 # Whether we need hard or soft links.
15606 LN_S=$lt_LN_S
15607
15608 # A BSD-compatible nm program.
15609 NM=$lt_NM
15610
15611 # A symbol stripping program
15612 STRIP=$lt_STRIP
15613
15614 # Used to examine libraries when file_magic_cmd begins "file"
15615 MAGIC_CMD=$MAGIC_CMD
15616
15617 # Used on cygwin: DLL creation program.
15618 DLLTOOL="$DLLTOOL"
15619
15620 # Used on cygwin: object dumper.
15621 OBJDUMP="$OBJDUMP"
15622
15623 # Used on cygwin: assembler.
15624 AS="$AS"
15625
15626 # The name of the directory that contains temporary libtool files.
15627 objdir=$objdir
15628
15629 # How to create reloadable object files.
15630 reload_flag=$lt_reload_flag
15631 reload_cmds=$lt_reload_cmds
15632
15633 # How to pass a linker flag through the compiler.
15634 wl=$lt_lt_prog_compiler_wl_F77
15635
15636 # Object file suffix (normally "o").
15637 objext="$ac_objext"
15638
15639 # Old archive suffix (normally "a").
15640 libext="$libext"
15641
15642 # Shared library suffix (normally ".so").
15643 shrext_cmds='$shrext_cmds'
15644
15645 # Executable file suffix (normally "").
15646 exeext="$exeext"
15647
15648 # Additional compiler flags for building library objects.
15649 pic_flag=$lt_lt_prog_compiler_pic_F77
15650 pic_mode=$pic_mode
15651
15652 # What is the maximum length of a command?
15653 max_cmd_len=$lt_cv_sys_max_cmd_len
15654
15655 # Does compiler simultaneously support -c and -o options?
15656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15657
15658 # Must we lock files when doing compilation?
15659 need_locks=$lt_need_locks
15660
15661 # Do we need the lib prefix for modules?
15662 need_lib_prefix=$need_lib_prefix
15663
15664 # Do we need a version for libraries?
15665 need_version=$need_version
15666
15667 # Whether dlopen is supported.
15668 dlopen_support=$enable_dlopen
15669
15670 # Whether dlopen of programs is supported.
15671 dlopen_self=$enable_dlopen_self
15672
15673 # Whether dlopen of statically linked programs is supported.
15674 dlopen_self_static=$enable_dlopen_self_static
15675
15676 # Compiler flag to prevent dynamic linking.
15677 link_static_flag=$lt_lt_prog_compiler_static_F77
15678
15679 # Compiler flag to turn off builtin functions.
15680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15681
15682 # Compiler flag to allow reflexive dlopens.
15683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15684
15685 # Compiler flag to generate shared objects directly from archives.
15686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15687
15688 # Compiler flag to generate thread-safe objects.
15689 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15690
15691 # Library versioning type.
15692 version_type=$version_type
15693
15694 # Format of library name prefix.
15695 libname_spec=$lt_libname_spec
15696
15697 # List of archive names. First name is the real one, the rest are links.
15698 # The last name is the one that the linker finds with -lNAME.
15699 library_names_spec=$lt_library_names_spec
15700
15701 # The coded name of the library, if different from the real name.
15702 soname_spec=$lt_soname_spec
15703
15704 # Commands used to build and install an old-style archive.
15705 RANLIB=$lt_RANLIB
15706 old_archive_cmds=$lt_old_archive_cmds_F77
15707 old_postinstall_cmds=$lt_old_postinstall_cmds
15708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15709
15710 # Create an old-style archive from a shared archive.
15711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15712
15713 # Create a temporary old-style archive to link instead of a shared archive.
15714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15715
15716 # Commands used to build and install a shared archive.
15717 archive_cmds=$lt_archive_cmds_F77
15718 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15719 postinstall_cmds=$lt_postinstall_cmds
15720 postuninstall_cmds=$lt_postuninstall_cmds
15721
15722 # Commands used to build a loadable module (assumed same as above if empty)
15723 module_cmds=$lt_module_cmds_F77
15724 module_expsym_cmds=$lt_module_expsym_cmds_F77
15725
15726 # Commands to strip libraries.
15727 old_striplib=$lt_old_striplib
15728 striplib=$lt_striplib
15729
15730 # Dependencies to place before the objects being linked to create a
15731 # shared library.
15732 predep_objects=$lt_predep_objects_F77
15733
15734 # Dependencies to place after the objects being linked to create a
15735 # shared library.
15736 postdep_objects=$lt_postdep_objects_F77
15737
15738 # Dependencies to place before the objects being linked to create a
15739 # shared library.
15740 predeps=$lt_predeps_F77
15741
15742 # Dependencies to place after the objects being linked to create a
15743 # shared library.
15744 postdeps=$lt_postdeps_F77
15745
15746 # The library search path used internally by the compiler when linking
15747 # a shared library.
15748 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15749
15750 # Method to check whether dependent libraries are shared objects.
15751 deplibs_check_method=$lt_deplibs_check_method
15752
15753 # Command to use when deplibs_check_method == file_magic.
15754 file_magic_cmd=$lt_file_magic_cmd
15755
15756 # Flag that allows shared libraries with undefined symbols to be built.
15757 allow_undefined_flag=$lt_allow_undefined_flag_F77
15758
15759 # Flag that forces no undefined symbols.
15760 no_undefined_flag=$lt_no_undefined_flag_F77
15761
15762 # Commands used to finish a libtool library installation in a directory.
15763 finish_cmds=$lt_finish_cmds
15764
15765 # Same as above, but a single script fragment to be evaled but not shown.
15766 finish_eval=$lt_finish_eval
15767
15768 # Take the output of nm and produce a listing of raw symbols and C names.
15769 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15770
15771 # Transform the output of nm in a proper C declaration
15772 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15773
15774 # Transform the output of nm in a C name address pair
15775 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15776
15777 # This is the shared library runtime path variable.
15778 runpath_var=$runpath_var
15779
15780 # This is the shared library path variable.
15781 shlibpath_var=$shlibpath_var
15782
15783 # Is shlibpath searched before the hard-coded library search path?
15784 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15785
15786 # How to hardcode a shared library path into an executable.
15787 hardcode_action=$hardcode_action_F77
15788
15789 # Whether we should hardcode library paths into libraries.
15790 hardcode_into_libs=$hardcode_into_libs
15791
15792 # Flag to hardcode \$libdir into a binary during linking.
15793 # This must work even if \$libdir does not exist.
15794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15795
15796 # If ld is used when linking, flag to hardcode \$libdir into
15797 # a binary during linking. This must work even if \$libdir does
15798 # not exist.
15799 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15800
15801 # Whether we need a single -rpath flag with a separated argument.
15802 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15803
15804 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15805 # resulting binary.
15806 hardcode_direct=$hardcode_direct_F77
15807
15808 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15809 # resulting binary.
15810 hardcode_minus_L=$hardcode_minus_L_F77
15811
15812 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15813 # the resulting binary.
15814 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15815
15816 # Set to yes if building a shared library automatically hardcodes DIR into the library
15817 # and all subsequent libraries and executables linked against it.
15818 hardcode_automatic=$hardcode_automatic_F77
15819
15820 # Variables whose values should be saved in libtool wrapper scripts and
15821 # restored at relink time.
15822 variables_saved_for_relink="$variables_saved_for_relink"
15823
15824 # Whether libtool must link a program against all its dependency libraries.
15825 link_all_deplibs=$link_all_deplibs_F77
15826
15827 # Compile-time system search path for libraries
15828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15829
15830 # Run-time system search path for libraries
15831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15832
15833 # Fix the shell variable \$srcfile for the compiler.
15834 fix_srcfile_path="$fix_srcfile_path_F77"
15835
15836 # Set to yes if exported symbols are required.
15837 always_export_symbols=$always_export_symbols_F77
15838
15839 # The commands to list exported symbols.
15840 export_symbols_cmds=$lt_export_symbols_cmds_F77
15841
15842 # The commands to extract the exported symbol list from a shared archive.
15843 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15844
15845 # Symbols that should not be listed in the preloaded symbols.
15846 exclude_expsyms=$lt_exclude_expsyms_F77
15847
15848 # Symbols that must always be exported.
15849 include_expsyms=$lt_include_expsyms_F77
15850
15851 # ### END LIBTOOL TAG CONFIG: $tagname
15852
15853 __EOF__
15854
15855
15856 else
15857 # If there is no Makefile yet, we rely on a make rule to execute
15858 # `config.status --recheck' to rerun these tests and create the
15859 # libtool script then.
15860 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15861 if test -f "$ltmain_in"; then
15862 test -f Makefile && make "$ltmain"
15863 fi
15864 fi
15865
15866
15867 ac_ext=c
15868 ac_cpp='$CPP $CPPFLAGS'
15869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872
15873 CC="$lt_save_CC"
15874
15875 else
15876 tagname=""
15877 fi
15878 ;;
15879
15880 GCJ)
15881 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15882
15883
15884
15885 # Source file extension for Java test sources.
15886 ac_ext=java
15887
15888 # Object file extension for compiled Java test sources.
15889 objext=o
15890 objext_GCJ=$objext
15891
15892 # Code to be used in simple compile tests
15893 lt_simple_compile_test_code="class foo {}\n"
15894
15895 # Code to be used in simple link tests
15896 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15897
15898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15899
15900 # If no C compiler was specified, use CC.
15901 LTCC=${LTCC-"$CC"}
15902
15903 # Allow CC to be a program name with arguments.
15904 compiler=$CC
15905
15906
15907 # save warnings/boilerplate of simple test code
15908 ac_outfile=conftest.$ac_objext
15909 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15911 _lt_compiler_boilerplate=`cat conftest.err`
15912 $rm conftest*
15913
15914 ac_outfile=conftest.$ac_objext
15915 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15917 _lt_linker_boilerplate=`cat conftest.err`
15918 $rm conftest*
15919
15920
15921 # Allow CC to be a program name with arguments.
15922 lt_save_CC="$CC"
15923 CC=${GCJ-"gcj"}
15924 compiler=$CC
15925 compiler_GCJ=$CC
15926 for cc_temp in $compiler""; do
15927 case $cc_temp in
15928 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15929 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15930 \-*) ;;
15931 *) break;;
15932 esac
15933 done
15934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15935
15936
15937 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15938 archive_cmds_need_lc_GCJ=no
15939
15940 old_archive_cmds_GCJ=$old_archive_cmds
15941
15942
15943 lt_prog_compiler_no_builtin_flag_GCJ=
15944
15945 if test "$GCC" = yes; then
15946 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15947
15948
15949 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15950 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15951 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954 lt_cv_prog_compiler_rtti_exceptions=no
15955 ac_outfile=conftest.$ac_objext
15956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15957 lt_compiler_flag="-fno-rtti -fno-exceptions"
15958 # Insert the option either (1) after the last *FLAGS variable, or
15959 # (2) before a word containing "conftest.", or (3) at the end.
15960 # Note that $ac_compile itself does not contain backslashes and begins
15961 # with a dollar sign (not a hyphen), so the echo should work correctly.
15962 # The option is referenced via a variable to avoid confusing sed.
15963 lt_compile=`echo "$ac_compile" | $SED \
15964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15966 -e 's:$: $lt_compiler_flag:'`
15967 (eval echo "\"\$as_me:15967: $lt_compile\"" >&5)
15968 (eval "$lt_compile" 2>conftest.err)
15969 ac_status=$?
15970 cat conftest.err >&5
15971 echo "$as_me:15971: \$? = $ac_status" >&5
15972 if (exit $ac_status) && test -s "$ac_outfile"; then
15973 # The compiler can only warn and ignore the option if not recognized
15974 # So say no if there are warnings other than the usual output.
15975 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15976 $SED '/^$/d' conftest.err >conftest.er2
15977 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15978 lt_cv_prog_compiler_rtti_exceptions=yes
15979 fi
15980 fi
15981 $rm conftest*
15982
15983 fi
15984 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15985 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15986
15987 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15988 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15989 else
15990 :
15991 fi
15992
15993 fi
15994
15995 lt_prog_compiler_wl_GCJ=
15996 lt_prog_compiler_pic_GCJ=
15997 lt_prog_compiler_static_GCJ=
15998
15999 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16001
16002 if test "$GCC" = yes; then
16003 lt_prog_compiler_wl_GCJ='-Wl,'
16004 lt_prog_compiler_static_GCJ='-static'
16005
16006 case $host_os in
16007 aix*)
16008 # All AIX code is PIC.
16009 if test "$host_cpu" = ia64; then
16010 # AIX 5 now supports IA64 processor
16011 lt_prog_compiler_static_GCJ='-Bstatic'
16012 fi
16013 ;;
16014
16015 amigaos*)
16016 # FIXME: we need at least 68020 code to build shared libraries, but
16017 # adding the `-m68020' flag to GCC prevents building anything better,
16018 # like `-m68040'.
16019 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16020 ;;
16021
16022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16023 # PIC is the default for these OSes.
16024 ;;
16025
16026 mingw* | pw32* | os2*)
16027 # This hack is so that the source file can tell whether it is being
16028 # built for inclusion in a dll (and should export symbols for example).
16029 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16030 ;;
16031
16032 darwin* | rhapsody*)
16033 # PIC is the default on this platform
16034 # Common symbols not allowed in MH_DYLIB files
16035 lt_prog_compiler_pic_GCJ='-fno-common'
16036 ;;
16037
16038 msdosdjgpp*)
16039 # Just because we use GCC doesn't mean we suddenly get shared libraries
16040 # on systems that don't support them.
16041 lt_prog_compiler_can_build_shared_GCJ=no
16042 enable_shared=no
16043 ;;
16044
16045 sysv4*MP*)
16046 if test -d /usr/nec; then
16047 lt_prog_compiler_pic_GCJ=-Kconform_pic
16048 fi
16049 ;;
16050
16051 hpux*)
16052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053 # not for PA HP-UX.
16054 case $host_cpu in
16055 hppa*64*|ia64*)
16056 # +Z the default
16057 ;;
16058 *)
16059 lt_prog_compiler_pic_GCJ='-fPIC'
16060 ;;
16061 esac
16062 ;;
16063
16064 *)
16065 lt_prog_compiler_pic_GCJ='-fPIC'
16066 ;;
16067 esac
16068 else
16069 # PORTME Check for flag to pass linker flags through the system compiler.
16070 case $host_os in
16071 aix*)
16072 lt_prog_compiler_wl_GCJ='-Wl,'
16073 if test "$host_cpu" = ia64; then
16074 # AIX 5 now supports IA64 processor
16075 lt_prog_compiler_static_GCJ='-Bstatic'
16076 else
16077 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16078 fi
16079 ;;
16080 darwin*)
16081 # PIC is the default on this platform
16082 # Common symbols not allowed in MH_DYLIB files
16083 case $cc_basename in
16084 xlc*)
16085 lt_prog_compiler_pic_GCJ='-qnocommon'
16086 lt_prog_compiler_wl_GCJ='-Wl,'
16087 ;;
16088 esac
16089 ;;
16090
16091 mingw* | pw32* | os2*)
16092 # This hack is so that the source file can tell whether it is being
16093 # built for inclusion in a dll (and should export symbols for example).
16094 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16095 ;;
16096
16097 hpux9* | hpux10* | hpux11*)
16098 lt_prog_compiler_wl_GCJ='-Wl,'
16099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16100 # not for PA HP-UX.
16101 case $host_cpu in
16102 hppa*64*|ia64*)
16103 # +Z the default
16104 ;;
16105 *)
16106 lt_prog_compiler_pic_GCJ='+Z'
16107 ;;
16108 esac
16109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16110 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16111 ;;
16112
16113 irix5* | irix6* | nonstopux*)
16114 lt_prog_compiler_wl_GCJ='-Wl,'
16115 # PIC (with -KPIC) is the default.
16116 lt_prog_compiler_static_GCJ='-non_shared'
16117 ;;
16118
16119 newsos6)
16120 lt_prog_compiler_pic_GCJ='-KPIC'
16121 lt_prog_compiler_static_GCJ='-Bstatic'
16122 ;;
16123
16124 linux*)
16125 case $cc_basename in
16126 icc* | ecc*)
16127 lt_prog_compiler_wl_GCJ='-Wl,'
16128 lt_prog_compiler_pic_GCJ='-KPIC'
16129 lt_prog_compiler_static_GCJ='-static'
16130 ;;
16131 pgcc* | pgf77* | pgf90* | pgf95*)
16132 # Portland Group compilers (*not* the Pentium gcc compiler,
16133 # which looks to be a dead project)
16134 lt_prog_compiler_wl_GCJ='-Wl,'
16135 lt_prog_compiler_pic_GCJ='-fpic'
16136 lt_prog_compiler_static_GCJ='-Bstatic'
16137 ;;
16138 ccc*)
16139 lt_prog_compiler_wl_GCJ='-Wl,'
16140 # All Alpha code is PIC.
16141 lt_prog_compiler_static_GCJ='-non_shared'
16142 ;;
16143 esac
16144 ;;
16145
16146 osf3* | osf4* | osf5*)
16147 lt_prog_compiler_wl_GCJ='-Wl,'
16148 # All OSF/1 code is PIC.
16149 lt_prog_compiler_static_GCJ='-non_shared'
16150 ;;
16151
16152 sco3.2v5*)
16153 lt_prog_compiler_pic_GCJ='-Kpic'
16154 lt_prog_compiler_static_GCJ='-dn'
16155 ;;
16156
16157 solaris*)
16158 lt_prog_compiler_pic_GCJ='-KPIC'
16159 lt_prog_compiler_static_GCJ='-Bstatic'
16160 case $cc_basename in
16161 f77* | f90* | f95*)
16162 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16163 *)
16164 lt_prog_compiler_wl_GCJ='-Wl,';;
16165 esac
16166 ;;
16167
16168 sunos4*)
16169 lt_prog_compiler_wl_GCJ='-Qoption ld '
16170 lt_prog_compiler_pic_GCJ='-PIC'
16171 lt_prog_compiler_static_GCJ='-Bstatic'
16172 ;;
16173
16174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16175 lt_prog_compiler_wl_GCJ='-Wl,'
16176 lt_prog_compiler_pic_GCJ='-KPIC'
16177 lt_prog_compiler_static_GCJ='-Bstatic'
16178 ;;
16179
16180 sysv4*MP*)
16181 if test -d /usr/nec ;then
16182 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16183 lt_prog_compiler_static_GCJ='-Bstatic'
16184 fi
16185 ;;
16186
16187 unicos*)
16188 lt_prog_compiler_wl_GCJ='-Wl,'
16189 lt_prog_compiler_can_build_shared_GCJ=no
16190 ;;
16191
16192 uts4*)
16193 lt_prog_compiler_pic_GCJ='-pic'
16194 lt_prog_compiler_static_GCJ='-Bstatic'
16195 ;;
16196
16197 *)
16198 lt_prog_compiler_can_build_shared_GCJ=no
16199 ;;
16200 esac
16201 fi
16202
16203 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16204 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16205
16206 #
16207 # Check to make sure the PIC flag actually works.
16208 #
16209 if test -n "$lt_prog_compiler_pic_GCJ"; then
16210
16211 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16212 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16213 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 lt_prog_compiler_pic_works_GCJ=no
16217 ac_outfile=conftest.$ac_objext
16218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16219 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16220 # Insert the option either (1) after the last *FLAGS variable, or
16221 # (2) before a word containing "conftest.", or (3) at the end.
16222 # Note that $ac_compile itself does not contain backslashes and begins
16223 # with a dollar sign (not a hyphen), so the echo should work correctly.
16224 # The option is referenced via a variable to avoid confusing sed.
16225 lt_compile=`echo "$ac_compile" | $SED \
16226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16228 -e 's:$: $lt_compiler_flag:'`
16229 (eval echo "\"\$as_me:16229: $lt_compile\"" >&5)
16230 (eval "$lt_compile" 2>conftest.err)
16231 ac_status=$?
16232 cat conftest.err >&5
16233 echo "$as_me:16233: \$? = $ac_status" >&5
16234 if (exit $ac_status) && test -s "$ac_outfile"; then
16235 # The compiler can only warn and ignore the option if not recognized
16236 # So say no if there are warnings other than the usual output.
16237 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16238 $SED '/^$/d' conftest.err >conftest.er2
16239 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16240 lt_prog_compiler_pic_works_GCJ=yes
16241 fi
16242 fi
16243 $rm conftest*
16244
16245 fi
16246 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16247 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16248
16249 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16250 case $lt_prog_compiler_pic_GCJ in
16251 "" | " "*) ;;
16252 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16253 esac
16254 else
16255 lt_prog_compiler_pic_GCJ=
16256 lt_prog_compiler_can_build_shared_GCJ=no
16257 fi
16258
16259 fi
16260 case $host_os in
16261 # For platforms which do not support PIC, -DPIC is meaningless:
16262 *djgpp*)
16263 lt_prog_compiler_pic_GCJ=
16264 ;;
16265 *)
16266 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16267 ;;
16268 esac
16269
16270 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16272 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 lt_cv_prog_compiler_c_o_GCJ=no
16276 $rm -r conftest 2>/dev/null
16277 mkdir conftest
16278 cd conftest
16279 mkdir out
16280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16281
16282 lt_compiler_flag="-o out/conftest2.$ac_objext"
16283 # Insert the option either (1) after the last *FLAGS variable, or
16284 # (2) before a word containing "conftest.", or (3) at the end.
16285 # Note that $ac_compile itself does not contain backslashes and begins
16286 # with a dollar sign (not a hyphen), so the echo should work correctly.
16287 lt_compile=`echo "$ac_compile" | $SED \
16288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16290 -e 's:$: $lt_compiler_flag:'`
16291 (eval echo "\"\$as_me:16291: $lt_compile\"" >&5)
16292 (eval "$lt_compile" 2>out/conftest.err)
16293 ac_status=$?
16294 cat out/conftest.err >&5
16295 echo "$as_me:16295: \$? = $ac_status" >&5
16296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16297 then
16298 # The compiler can only warn and ignore the option if not recognized
16299 # So say no if there are warnings
16300 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16301 $SED '/^$/d' out/conftest.err >out/conftest.er2
16302 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16303 lt_cv_prog_compiler_c_o_GCJ=yes
16304 fi
16305 fi
16306 chmod u+w . 2>&5
16307 $rm conftest*
16308 # SGI C++ compiler will create directory out/ii_files/ for
16309 # template instantiation
16310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16311 $rm out/* && rmdir out
16312 cd ..
16313 rmdir conftest
16314 $rm conftest*
16315
16316 fi
16317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16319
16320
16321 hard_links="nottested"
16322 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16323 # do not overwrite the value of need_locks provided by the user
16324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16326 hard_links=yes
16327 $rm conftest*
16328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16329 touch conftest.a
16330 ln conftest.a conftest.b 2>&5 || hard_links=no
16331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16332 echo "$as_me:$LINENO: result: $hard_links" >&5
16333 echo "${ECHO_T}$hard_links" >&6
16334 if test "$hard_links" = no; then
16335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16337 need_locks=warn
16338 fi
16339 else
16340 need_locks=no
16341 fi
16342
16343 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16345
16346 runpath_var=
16347 allow_undefined_flag_GCJ=
16348 enable_shared_with_static_runtimes_GCJ=no
16349 archive_cmds_GCJ=
16350 archive_expsym_cmds_GCJ=
16351 old_archive_From_new_cmds_GCJ=
16352 old_archive_from_expsyms_cmds_GCJ=
16353 export_dynamic_flag_spec_GCJ=
16354 whole_archive_flag_spec_GCJ=
16355 thread_safe_flag_spec_GCJ=
16356 hardcode_libdir_flag_spec_GCJ=
16357 hardcode_libdir_flag_spec_ld_GCJ=
16358 hardcode_libdir_separator_GCJ=
16359 hardcode_direct_GCJ=no
16360 hardcode_minus_L_GCJ=no
16361 hardcode_shlibpath_var_GCJ=unsupported
16362 link_all_deplibs_GCJ=unknown
16363 hardcode_automatic_GCJ=no
16364 module_cmds_GCJ=
16365 module_expsym_cmds_GCJ=
16366 always_export_symbols_GCJ=no
16367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16368 # include_expsyms should be a list of space-separated symbols to be *always*
16369 # included in the symbol list
16370 include_expsyms_GCJ=
16371 # exclude_expsyms can be an extended regexp of symbols to exclude
16372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16374 # as well as any symbol that contains `d'.
16375 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16377 # platforms (ab)use it in PIC code, but their linkers get confused if
16378 # the symbol is explicitly referenced. Since portable code cannot
16379 # rely on this symbol name, it's probably fine to never include it in
16380 # preloaded symbol tables.
16381 extract_expsyms_cmds=
16382 # Just being paranoid about ensuring that cc_basename is set.
16383 for cc_temp in $compiler""; do
16384 case $cc_temp in
16385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387 \-*) ;;
16388 *) break;;
16389 esac
16390 done
16391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392
16393 case $host_os in
16394 cygwin* | mingw* | pw32*)
16395 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16396 # When not using gcc, we currently assume that we are using
16397 # Microsoft Visual C++.
16398 if test "$GCC" != yes; then
16399 with_gnu_ld=no
16400 fi
16401 ;;
16402 openbsd*)
16403 with_gnu_ld=no
16404 ;;
16405 esac
16406
16407 ld_shlibs_GCJ=yes
16408 if test "$with_gnu_ld" = yes; then
16409 # If archive_cmds runs LD, not CC, wlarc should be empty
16410 wlarc='${wl}'
16411
16412 # Set some defaults for GNU ld with shared library support. These
16413 # are reset later if shared libraries are not supported. Putting them
16414 # here allows them to be overridden if necessary.
16415 runpath_var=LD_RUN_PATH
16416 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16417 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16418 # ancient GNU ld didn't support --whole-archive et. al.
16419 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16420 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16421 else
16422 whole_archive_flag_spec_GCJ=
16423 fi
16424 supports_anon_versioning=no
16425 case `$LD -v 2>/dev/null` in
16426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16429 *\ 2.11.*) ;; # other 2.11 versions
16430 *) supports_anon_versioning=yes ;;
16431 esac
16432
16433 # See if GNU ld supports shared libraries.
16434 case $host_os in
16435 aix3* | aix4* | aix5*)
16436 # On AIX/PPC, the GNU linker is very broken
16437 if test "$host_cpu" != ia64; then
16438 ld_shlibs_GCJ=no
16439 cat <<EOF 1>&2
16440
16441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16442 *** to be unable to reliably create shared libraries on AIX.
16443 *** Therefore, libtool is disabling shared libraries support. If you
16444 *** really care for shared libraries, you may want to modify your PATH
16445 *** so that a non-GNU linker is found, and then restart.
16446
16447 EOF
16448 fi
16449 ;;
16450
16451 amigaos*)
16452 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)'
16453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16454 hardcode_minus_L_GCJ=yes
16455
16456 # Samuel A. Falvo II <[email protected]> reports
16457 # that the semantics of dynamic libraries on AmigaOS, at least up
16458 # to version 4, is to share data among multiple programs linked
16459 # with the same dynamic library. Since this doesn't match the
16460 # behavior of shared libraries on other platforms, we can't use
16461 # them.
16462 ld_shlibs_GCJ=no
16463 ;;
16464
16465 beos*)
16466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16467 allow_undefined_flag_GCJ=unsupported
16468 # Joseph Beckenbach <[email protected]> says some releases of gcc
16469 # support --undefined. This deserves some investigation. FIXME
16470 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471 else
16472 ld_shlibs_GCJ=no
16473 fi
16474 ;;
16475
16476 cygwin* | mingw* | pw32*)
16477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16478 # as there is no search path for DLLs.
16479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16480 allow_undefined_flag_GCJ=unsupported
16481 always_export_symbols_GCJ=no
16482 enable_shared_with_static_runtimes_GCJ=yes
16483 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16484
16485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16487 # If the export-symbols file already is a .def file (1st line
16488 # is EXPORTS), use it as is; otherwise, prepend...
16489 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16490 cp $export_symbols $output_objdir/$soname.def;
16491 else
16492 echo EXPORTS > $output_objdir/$soname.def;
16493 cat $export_symbols >> $output_objdir/$soname.def;
16494 fi~
16495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16496 else
16497 ld_shlibs_GCJ=no
16498 fi
16499 ;;
16500
16501 linux*)
16502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503 tmp_addflag=
16504 case $cc_basename,$host_cpu in
16505 pgcc*) # Portland Group C compiler
16506 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16507 tmp_addflag=' $pic_flag'
16508 ;;
16509 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16510 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16511 tmp_addflag=' $pic_flag -Mnomain' ;;
16512 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16513 tmp_addflag=' -i_dynamic' ;;
16514 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16515 tmp_addflag=' -i_dynamic -nofor_main' ;;
16516 ifc* | ifort*) # Intel Fortran compiler
16517 tmp_addflag=' -nofor_main' ;;
16518 esac
16519 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520
16521 if test $supports_anon_versioning = yes; then
16522 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16524 $echo "local: *; };" >> $output_objdir/$libname.ver~
16525 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16526 fi
16527 link_all_deplibs_GCJ=no
16528 else
16529 ld_shlibs_GCJ=no
16530 fi
16531 ;;
16532
16533 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16535 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16536 wlarc=
16537 else
16538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16540 fi
16541 ;;
16542
16543 solaris* | sysv5*)
16544 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16545 ld_shlibs_GCJ=no
16546 cat <<EOF 1>&2
16547
16548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16549 *** create shared libraries on Solaris systems. Therefore, libtool
16550 *** is disabling shared libraries support. We urge you to upgrade GNU
16551 *** binutils to release 2.9.1 or newer. Another option is to modify
16552 *** your PATH or compiler configuration so that the native linker is
16553 *** used, and then restart.
16554
16555 EOF
16556 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16557 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559 else
16560 ld_shlibs_GCJ=no
16561 fi
16562 ;;
16563
16564 sunos4*)
16565 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16566 wlarc=
16567 hardcode_direct_GCJ=yes
16568 hardcode_shlibpath_var_GCJ=no
16569 ;;
16570
16571 *)
16572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16574 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16575 else
16576 ld_shlibs_GCJ=no
16577 fi
16578 ;;
16579 esac
16580
16581 if test "$ld_shlibs_GCJ" = no; then
16582 runpath_var=
16583 hardcode_libdir_flag_spec_GCJ=
16584 export_dynamic_flag_spec_GCJ=
16585 whole_archive_flag_spec_GCJ=
16586 fi
16587 else
16588 # PORTME fill in a description of your system's linker (not GNU ld)
16589 case $host_os in
16590 aix3*)
16591 allow_undefined_flag_GCJ=unsupported
16592 always_export_symbols_GCJ=yes
16593 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'
16594 # Note: this linker hardcodes the directories in LIBPATH if there
16595 # are no directories specified by -L.
16596 hardcode_minus_L_GCJ=yes
16597 if test "$GCC" = yes && test -z "$link_static_flag"; then
16598 # Neither direct hardcoding nor static linking is supported with a
16599 # broken collect2.
16600 hardcode_direct_GCJ=unsupported
16601 fi
16602 ;;
16603
16604 aix4* | aix5*)
16605 if test "$host_cpu" = ia64; then
16606 # On IA64, the linker does run time linking by default, so we don't
16607 # have to do anything special.
16608 aix_use_runtimelinking=no
16609 exp_sym_flag='-Bexport'
16610 no_entry_flag=""
16611 else
16612 # If we're using GNU nm, then we don't want the "-C" option.
16613 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16614 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16615 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'
16616 else
16617 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'
16618 fi
16619 aix_use_runtimelinking=no
16620
16621 # Test if we are trying to use run time linking or normal
16622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16623 # need to do runtime linking.
16624 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16625 for ld_flag in $LDFLAGS; do
16626 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16627 aix_use_runtimelinking=yes
16628 break
16629 fi
16630 done
16631 esac
16632
16633 exp_sym_flag='-bexport'
16634 no_entry_flag='-bnoentry'
16635 fi
16636
16637 # When large executables or shared objects are built, AIX ld can
16638 # have problems creating the table of contents. If linking a library
16639 # or program results in "error TOC overflow" add -mminimal-toc to
16640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16642
16643 archive_cmds_GCJ=''
16644 hardcode_direct_GCJ=yes
16645 hardcode_libdir_separator_GCJ=':'
16646 link_all_deplibs_GCJ=yes
16647
16648 if test "$GCC" = yes; then
16649 case $host_os in aix4.[012]|aix4.[012].*)
16650 # We only want to do this on AIX 4.2 and lower, the check
16651 # below for broken collect2 doesn't work under 4.3+
16652 collect2name=`${CC} -print-prog-name=collect2`
16653 if test -f "$collect2name" && \
16654 strings "$collect2name" | grep resolve_lib_name >/dev/null
16655 then
16656 # We have reworked collect2
16657 hardcode_direct_GCJ=yes
16658 else
16659 # We have old collect2
16660 hardcode_direct_GCJ=unsupported
16661 # It fails to find uninstalled libraries when the uninstalled
16662 # path is not listed in the libpath. Setting hardcode_minus_L
16663 # to unsupported forces relinking
16664 hardcode_minus_L_GCJ=yes
16665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16666 hardcode_libdir_separator_GCJ=
16667 fi
16668 esac
16669 shared_flag='-shared'
16670 if test "$aix_use_runtimelinking" = yes; then
16671 shared_flag="$shared_flag "'${wl}-G'
16672 fi
16673 else
16674 # not using gcc
16675 if test "$host_cpu" = ia64; then
16676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16677 # chokes on -Wl,-G. The following line is correct:
16678 shared_flag='-G'
16679 else
16680 if test "$aix_use_runtimelinking" = yes; then
16681 shared_flag='${wl}-G'
16682 else
16683 shared_flag='${wl}-bM:SRE'
16684 fi
16685 fi
16686 fi
16687
16688 # It seems that -bexpall does not export symbols beginning with
16689 # underscore (_), so it is better to generate a list of symbols to export.
16690 always_export_symbols_GCJ=yes
16691 if test "$aix_use_runtimelinking" = yes; then
16692 # Warning - without using the other runtime loading flags (-brtl),
16693 # -berok will link without error, but may produce a broken library.
16694 allow_undefined_flag_GCJ='-berok'
16695 # Determine the default libpath from the value encoded in an empty executable.
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702
16703 int
16704 main ()
16705 {
16706
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732
16733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16734 }'`
16735 # Check for a 64-bit object if we didn't find anything.
16736 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; }
16737 }'`; fi
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16741
16742 fi
16743 rm -f conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16746
16747 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16748 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"
16749 else
16750 if test "$host_cpu" = ia64; then
16751 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16752 allow_undefined_flag_GCJ="-z nodefs"
16753 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"
16754 else
16755 # Determine the default libpath from the value encoded in an empty executable.
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762
16763 int
16764 main ()
16765 {
16766
16767 ;
16768 return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773 (eval $ac_link) 2>conftest.er1
16774 ac_status=$?
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest$ac_exeext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792
16793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16794 }'`
16795 # Check for a 64-bit object if we didn't find anything.
16796 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; }
16797 }'`; fi
16798 else
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 fi
16803 rm -f conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16806
16807 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16808 # Warning - without using the other run time loading flags,
16809 # -berok will link without error, but may produce a broken library.
16810 no_undefined_flag_GCJ=' ${wl}-bernotok'
16811 allow_undefined_flag_GCJ=' ${wl}-berok'
16812 # -bexpall does not export symbols beginning with underscore (_)
16813 always_export_symbols_GCJ=yes
16814 # Exported symbols can be pulled into shared objects from archives
16815 whole_archive_flag_spec_GCJ=' '
16816 archive_cmds_need_lc_GCJ=yes
16817 # This is similar to how AIX traditionally builds its shared libraries.
16818 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'
16819 fi
16820 fi
16821 ;;
16822
16823 amigaos*)
16824 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)'
16825 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16826 hardcode_minus_L_GCJ=yes
16827 # see comment about different semantics on the GNU ld section
16828 ld_shlibs_GCJ=no
16829 ;;
16830
16831 bsdi[45]*)
16832 export_dynamic_flag_spec_GCJ=-rdynamic
16833 ;;
16834
16835 cygwin* | mingw* | pw32*)
16836 # When not using gcc, we currently assume that we are using
16837 # Microsoft Visual C++.
16838 # hardcode_libdir_flag_spec is actually meaningless, as there is
16839 # no search path for DLLs.
16840 hardcode_libdir_flag_spec_GCJ=' '
16841 allow_undefined_flag_GCJ=unsupported
16842 # Tell ltmain to make .lib files, not .a files.
16843 libext=lib
16844 # Tell ltmain to make .dll files, not .so files.
16845 shrext_cmds=".dll"
16846 # FIXME: Setting linknames here is a bad hack.
16847 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16848 # The linker will automatically build a .lib file if we build a DLL.
16849 old_archive_From_new_cmds_GCJ='true'
16850 # FIXME: Should let the user specify the lib program.
16851 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16852 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16853 enable_shared_with_static_runtimes_GCJ=yes
16854 ;;
16855
16856 darwin* | rhapsody*)
16857 case $host_os in
16858 rhapsody* | darwin1.[012])
16859 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16860 ;;
16861 *) # Darwin 1.3 on
16862 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16863 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16864 else
16865 case ${MACOSX_DEPLOYMENT_TARGET} in
16866 10.[012])
16867 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16868 ;;
16869 10.*)
16870 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16871 ;;
16872 esac
16873 fi
16874 ;;
16875 esac
16876 archive_cmds_need_lc_GCJ=no
16877 hardcode_direct_GCJ=no
16878 hardcode_automatic_GCJ=yes
16879 hardcode_shlibpath_var_GCJ=unsupported
16880 whole_archive_flag_spec_GCJ=''
16881 link_all_deplibs_GCJ=yes
16882 if test "$GCC" = yes ; then
16883 output_verbose_link_cmd='echo'
16884 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16885 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887 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}'
16888 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}'
16889 else
16890 case $cc_basename in
16891 xlc*)
16892 output_verbose_link_cmd='echo'
16893 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16894 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16896 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}'
16897 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}'
16898 ;;
16899 *)
16900 ld_shlibs_GCJ=no
16901 ;;
16902 esac
16903 fi
16904 ;;
16905
16906 dgux*)
16907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909 hardcode_shlibpath_var_GCJ=no
16910 ;;
16911
16912 freebsd1*)
16913 ld_shlibs_GCJ=no
16914 ;;
16915
16916 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16917 # support. Future versions do this automatically, but an explicit c++rt0.o
16918 # does not break anything, and helps significantly (at the cost of a little
16919 # extra space).
16920 freebsd2.2*)
16921 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16922 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16923 hardcode_direct_GCJ=yes
16924 hardcode_shlibpath_var_GCJ=no
16925 ;;
16926
16927 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16928 freebsd2*)
16929 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16930 hardcode_direct_GCJ=yes
16931 hardcode_minus_L_GCJ=yes
16932 hardcode_shlibpath_var_GCJ=no
16933 ;;
16934
16935 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16936 freebsd* | kfreebsd*-gnu | dragonfly*)
16937 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16939 hardcode_direct_GCJ=yes
16940 hardcode_shlibpath_var_GCJ=no
16941 ;;
16942
16943 hpux9*)
16944 if test "$GCC" = yes; then
16945 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'
16946 else
16947 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'
16948 fi
16949 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950 hardcode_libdir_separator_GCJ=:
16951 hardcode_direct_GCJ=yes
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 export_dynamic_flag_spec_GCJ='${wl}-E'
16957 ;;
16958
16959 hpux10* | hpux11*)
16960 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16961 case $host_cpu in
16962 hppa*64*|ia64*)
16963 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16964 ;;
16965 *)
16966 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16967 ;;
16968 esac
16969 else
16970 case $host_cpu in
16971 hppa*64*|ia64*)
16972 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16973 ;;
16974 *)
16975 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16976 ;;
16977 esac
16978 fi
16979 if test "$with_gnu_ld" = no; then
16980 case $host_cpu in
16981 hppa*64*)
16982 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16983 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16984 hardcode_libdir_separator_GCJ=:
16985 hardcode_direct_GCJ=no
16986 hardcode_shlibpath_var_GCJ=no
16987 ;;
16988 ia64*)
16989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16990 hardcode_direct_GCJ=no
16991 hardcode_shlibpath_var_GCJ=no
16992
16993 # hardcode_minus_L: Not really in the search PATH,
16994 # but as the default location of the library.
16995 hardcode_minus_L_GCJ=yes
16996 ;;
16997 *)
16998 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16999 hardcode_libdir_separator_GCJ=:
17000 hardcode_direct_GCJ=yes
17001 export_dynamic_flag_spec_GCJ='${wl}-E'
17002
17003 # hardcode_minus_L: Not really in the search PATH,
17004 # but as the default location of the library.
17005 hardcode_minus_L_GCJ=yes
17006 ;;
17007 esac
17008 fi
17009 ;;
17010
17011 irix5* | irix6* | nonstopux*)
17012 if test "$GCC" = yes; then
17013 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'
17014 else
17015 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'
17016 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17017 fi
17018 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17019 hardcode_libdir_separator_GCJ=:
17020 link_all_deplibs_GCJ=yes
17021 ;;
17022
17023 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17026 else
17027 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17028 fi
17029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17030 hardcode_direct_GCJ=yes
17031 hardcode_shlibpath_var_GCJ=no
17032 ;;
17033
17034 newsos6)
17035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_direct_GCJ=yes
17037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17038 hardcode_libdir_separator_GCJ=:
17039 hardcode_shlibpath_var_GCJ=no
17040 ;;
17041
17042 openbsd*)
17043 hardcode_direct_GCJ=yes
17044 hardcode_shlibpath_var_GCJ=no
17045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17046 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17049 export_dynamic_flag_spec_GCJ='${wl}-E'
17050 else
17051 case $host_os in
17052 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17053 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17055 ;;
17056 *)
17057 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17059 ;;
17060 esac
17061 fi
17062 ;;
17063
17064 os2*)
17065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066 hardcode_minus_L_GCJ=yes
17067 allow_undefined_flag_GCJ=unsupported
17068 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'
17069 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17070 ;;
17071
17072 osf3*)
17073 if test "$GCC" = yes; then
17074 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17075 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'
17076 else
17077 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17078 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'
17079 fi
17080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17081 hardcode_libdir_separator_GCJ=:
17082 ;;
17083
17084 osf4* | osf5*) # as osf3* with the addition of -msym flag
17085 if test "$GCC" = yes; then
17086 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17087 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'
17088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17089 else
17090 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17091 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'
17092 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~
17093 $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'
17094
17095 # Both c and cxx compiler support -rpath directly
17096 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17097 fi
17098 hardcode_libdir_separator_GCJ=:
17099 ;;
17100
17101 sco3.2v5*)
17102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103 hardcode_shlibpath_var_GCJ=no
17104 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17105 runpath_var=LD_RUN_PATH
17106 hardcode_runpath_var=yes
17107 ;;
17108
17109 solaris*)
17110 no_undefined_flag_GCJ=' -z text'
17111 if test "$GCC" = yes; then
17112 wlarc='${wl}'
17113 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17116 else
17117 wlarc=''
17118 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17121 fi
17122 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17123 hardcode_shlibpath_var_GCJ=no
17124 case $host_os in
17125 solaris2.[0-5] | solaris2.[0-5].*) ;;
17126 *)
17127 # The compiler driver will combine linker options so we
17128 # cannot just pass the convience library names through
17129 # without $wl, iff we do not link with $LD.
17130 # Luckily, gcc supports the same syntax we need for Sun Studio.
17131 # Supported since Solaris 2.6 (maybe 2.5.1?)
17132 case $wlarc in
17133 '')
17134 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17135 *)
17136 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' ;;
17137 esac ;;
17138 esac
17139 link_all_deplibs_GCJ=yes
17140 ;;
17141
17142 sunos4*)
17143 if test "x$host_vendor" = xsequent; then
17144 # Use $CC to link under sequent, because it throws in some extra .o
17145 # files that make .init and .fini sections work.
17146 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17147 else
17148 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17149 fi
17150 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17151 hardcode_direct_GCJ=yes
17152 hardcode_minus_L_GCJ=yes
17153 hardcode_shlibpath_var_GCJ=no
17154 ;;
17155
17156 sysv4)
17157 case $host_vendor in
17158 sni)
17159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 hardcode_direct_GCJ=yes # is this really true???
17161 ;;
17162 siemens)
17163 ## LD is ld it makes a PLAMLIB
17164 ## CC just makes a GrossModule.
17165 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17166 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17167 hardcode_direct_GCJ=no
17168 ;;
17169 motorola)
17170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17172 ;;
17173 esac
17174 runpath_var='LD_RUN_PATH'
17175 hardcode_shlibpath_var_GCJ=no
17176 ;;
17177
17178 sysv4.3*)
17179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17180 hardcode_shlibpath_var_GCJ=no
17181 export_dynamic_flag_spec_GCJ='-Bexport'
17182 ;;
17183
17184 sysv4*MP*)
17185 if test -d /usr/nec; then
17186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_shlibpath_var_GCJ=no
17188 runpath_var=LD_RUN_PATH
17189 hardcode_runpath_var=yes
17190 ld_shlibs_GCJ=yes
17191 fi
17192 ;;
17193
17194 sysv4.2uw2*)
17195 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17196 hardcode_direct_GCJ=yes
17197 hardcode_minus_L_GCJ=no
17198 hardcode_shlibpath_var_GCJ=no
17199 hardcode_runpath_var=yes
17200 runpath_var=LD_RUN_PATH
17201 ;;
17202
17203 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17204 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17205 if test "$GCC" = yes; then
17206 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17207 else
17208 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17209 fi
17210 runpath_var='LD_RUN_PATH'
17211 hardcode_shlibpath_var_GCJ=no
17212 ;;
17213
17214 sysv5*)
17215 no_undefined_flag_GCJ=' -z text'
17216 # $CC -shared without GNU ld will not create a library from C++
17217 # object files and a static libstdc++, better avoid it by now
17218 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17221 hardcode_libdir_flag_spec_GCJ=
17222 hardcode_shlibpath_var_GCJ=no
17223 runpath_var='LD_RUN_PATH'
17224 ;;
17225
17226 uts4*)
17227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17229 hardcode_shlibpath_var_GCJ=no
17230 ;;
17231
17232 *)
17233 ld_shlibs_GCJ=no
17234 ;;
17235 esac
17236 fi
17237
17238 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17239 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17240 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17241
17242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17243 if test "$GCC" = yes; then
17244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17245 fi
17246
17247 #
17248 # Do we need to explicitly link libc?
17249 #
17250 case "x$archive_cmds_need_lc_GCJ" in
17251 x|xyes)
17252 # Assume -lc should be added
17253 archive_cmds_need_lc_GCJ=yes
17254
17255 if test "$enable_shared" = yes && test "$GCC" = yes; then
17256 case $archive_cmds_GCJ in
17257 *'~'*)
17258 # FIXME: we may have to deal with multi-command sequences.
17259 ;;
17260 '$CC '*)
17261 # Test whether the compiler implicitly links with -lc since on some
17262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17263 # to ld, don't add -lc before -lgcc.
17264 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17265 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17266 $rm conftest*
17267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17268
17269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270 (eval $ac_compile) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } 2>conftest.err; then
17274 soname=conftest
17275 lib=conftest
17276 libobjs=conftest.$ac_objext
17277 deplibs=
17278 wl=$lt_prog_compiler_wl_GCJ
17279 compiler_flags=-v
17280 linker_flags=-v
17281 verstring=
17282 output_objdir=.
17283 libname=conftest
17284 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17285 allow_undefined_flag_GCJ=
17286 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17287 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }
17291 then
17292 archive_cmds_need_lc_GCJ=no
17293 else
17294 archive_cmds_need_lc_GCJ=yes
17295 fi
17296 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17297 else
17298 cat conftest.err 1>&5
17299 fi
17300 $rm conftest*
17301 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17302 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17303 ;;
17304 esac
17305 fi
17306 ;;
17307 esac
17308
17309 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17311 library_names_spec=
17312 libname_spec='lib$name'
17313 soname_spec=
17314 shrext_cmds=".so"
17315 postinstall_cmds=
17316 postuninstall_cmds=
17317 finish_cmds=
17318 finish_eval=
17319 shlibpath_var=
17320 shlibpath_overrides_runpath=unknown
17321 version_type=none
17322 dynamic_linker="$host_os ld.so"
17323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17324 if test "$GCC" = yes; then
17325 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17326 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17327 # if the path contains ";" then we assume it to be the separator
17328 # otherwise default to the standard path separator (i.e. ":") - it is
17329 # assumed that no part of a normal pathname contains ";" but that should
17330 # okay in the real world where ";" in dirpaths is itself problematic.
17331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17332 else
17333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17334 fi
17335 else
17336 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17337 fi
17338 need_lib_prefix=unknown
17339 hardcode_into_libs=no
17340
17341 # when you set need_version to no, make sure it does not cause -set_version
17342 # flags to be left without arguments
17343 need_version=unknown
17344
17345 case $host_os in
17346 aix3*)
17347 version_type=linux
17348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17349 shlibpath_var=LIBPATH
17350
17351 # AIX 3 has no versioning support, so we append a major version to the name.
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 ;;
17354
17355 aix4* | aix5*)
17356 version_type=linux
17357 need_lib_prefix=no
17358 need_version=no
17359 hardcode_into_libs=yes
17360 if test "$host_cpu" = ia64; then
17361 # AIX 5 supports IA64
17362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 else
17365 # With GCC up to 2.95.x, collect2 would create an import file
17366 # for dependence libraries. The import file would start with
17367 # the line `#! .'. This would cause the generated library to
17368 # depend on `.', always an invalid library. This was fixed in
17369 # development snapshots of GCC prior to 3.0.
17370 case $host_os in
17371 aix4 | aix4.[01] | aix4.[01].*)
17372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17373 echo ' yes '
17374 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17375 :
17376 else
17377 can_build_shared=no
17378 fi
17379 ;;
17380 esac
17381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17382 # soname into executable. Probably we can add versioning support to
17383 # collect2, so additional links can be useful in future.
17384 if test "$aix_use_runtimelinking" = yes; then
17385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17386 # instead of lib<name>.a to let people know that these are not
17387 # typical AIX shared libraries.
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 else
17390 # We preserve .a as extension for shared libraries through AIX4.2
17391 # and later when we are not doing run time linking.
17392 library_names_spec='${libname}${release}.a $libname.a'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 fi
17395 shlibpath_var=LIBPATH
17396 fi
17397 ;;
17398
17399 amigaos*)
17400 library_names_spec='$libname.ixlibrary $libname.a'
17401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17402 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'
17403 ;;
17404
17405 beos*)
17406 library_names_spec='${libname}${shared_ext}'
17407 dynamic_linker="$host_os ld.so"
17408 shlibpath_var=LIBRARY_PATH
17409 ;;
17410
17411 bsdi[45]*)
17412 version_type=linux
17413 need_version=no
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17420 # the default ld.so.conf also contains /usr/contrib/lib and
17421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17422 # libtool to hard-code these into programs
17423 ;;
17424
17425 cygwin* | mingw* | pw32*)
17426 version_type=windows
17427 shrext_cmds=".dll"
17428 need_version=no
17429 need_lib_prefix=no
17430
17431 case $GCC,$host_os in
17432 yes,cygwin* | yes,mingw* | yes,pw32*)
17433 library_names_spec='$libname.dll.a'
17434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17435 postinstall_cmds='base_file=`basename \${file}`~
17436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17437 dldir=$destdir/`dirname \$dlpath`~
17438 test -d \$dldir || mkdir -p \$dldir~
17439 $install_prog $dir/$dlname \$dldir/$dlname~
17440 chmod a+x \$dldir/$dlname'
17441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17442 dlpath=$dir/\$dldll~
17443 $rm \$dlpath'
17444 shlibpath_overrides_runpath=yes
17445
17446 case $host_os in
17447 cygwin*)
17448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17450 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17451 ;;
17452 mingw*)
17453 # MinGW DLLs use traditional 'lib' prefix
17454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17456 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17457 # It is most probably a Windows format PATH printed by
17458 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17459 # path with ; separators, and with drive letters. We can handle the
17460 # drive letters (cygwin fileutils understands them), so leave them,
17461 # especially as we might pass files found there to a mingw objdump,
17462 # which wouldn't understand a cygwinified path. Ahh.
17463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17464 else
17465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17466 fi
17467 ;;
17468 pw32*)
17469 # pw32 DLLs use 'pw' prefix rather than 'lib'
17470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17471 ;;
17472 esac
17473 ;;
17474
17475 *)
17476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17477 ;;
17478 esac
17479 dynamic_linker='Win32 ld.exe'
17480 # FIXME: first we should search . and the directory the executable is in
17481 shlibpath_var=PATH
17482 ;;
17483
17484 darwin* | rhapsody*)
17485 dynamic_linker="$host_os dyld"
17486 version_type=darwin
17487 need_lib_prefix=no
17488 need_version=no
17489 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17490 soname_spec='${libname}${release}${major}$shared_ext'
17491 shlibpath_overrides_runpath=yes
17492 shlibpath_var=DYLD_LIBRARY_PATH
17493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17494 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17495 if test "$GCC" = yes; then
17496 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"`
17497 else
17498 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17499 fi
17500 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17501 ;;
17502
17503 dgux*)
17504 version_type=linux
17505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 ;;
17511
17512 freebsd1*)
17513 dynamic_linker=no
17514 ;;
17515
17516 kfreebsd*-gnu)
17517 version_type=linux
17518 need_lib_prefix=no
17519 need_version=no
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 shlibpath_overrides_runpath=no
17524 hardcode_into_libs=yes
17525 dynamic_linker='GNU ld.so'
17526 ;;
17527
17528 freebsd* | dragonfly*)
17529 # DragonFly does not have aout. When/if they implement a new
17530 # versioning mechanism, adjust this.
17531 if test -x /usr/bin/objformat; then
17532 objformat=`/usr/bin/objformat`
17533 else
17534 case $host_os in
17535 freebsd[123]*) objformat=aout ;;
17536 *) objformat=elf ;;
17537 esac
17538 fi
17539 version_type=freebsd-$objformat
17540 case $version_type in
17541 freebsd-elf*)
17542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17543 need_version=no
17544 need_lib_prefix=no
17545 ;;
17546 freebsd-*)
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17548 need_version=yes
17549 ;;
17550 esac
17551 shlibpath_var=LD_LIBRARY_PATH
17552 case $host_os in
17553 freebsd2*)
17554 shlibpath_overrides_runpath=yes
17555 ;;
17556 freebsd3.[01]* | freebsdelf3.[01]*)
17557 shlibpath_overrides_runpath=yes
17558 hardcode_into_libs=yes
17559 ;;
17560 *) # from 3.2 on
17561 shlibpath_overrides_runpath=no
17562 hardcode_into_libs=yes
17563 ;;
17564 esac
17565 ;;
17566
17567 gnu*)
17568 version_type=linux
17569 need_lib_prefix=no
17570 need_version=no
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 hardcode_into_libs=yes
17575 ;;
17576
17577 hpux9* | hpux10* | hpux11*)
17578 # Give a soname corresponding to the major version so that dld.sl refuses to
17579 # link against other versions.
17580 version_type=sunos
17581 need_lib_prefix=no
17582 need_version=no
17583 case $host_cpu in
17584 ia64*)
17585 shrext_cmds='.so'
17586 hardcode_into_libs=yes
17587 dynamic_linker="$host_os dld.so"
17588 shlibpath_var=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17592 if test "X$HPUX_IA64_MODE" = X32; then
17593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17594 else
17595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17596 fi
17597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17598 ;;
17599 hppa*64*)
17600 shrext_cmds='.sl'
17601 hardcode_into_libs=yes
17602 dynamic_linker="$host_os dld.sl"
17603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17609 ;;
17610 *)
17611 shrext_cmds='.sl'
17612 dynamic_linker="$host_os dld.sl"
17613 shlibpath_var=SHLIB_PATH
17614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 ;;
17618 esac
17619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17620 postinstall_cmds='chmod 555 $lib'
17621 ;;
17622
17623 irix5* | irix6* | nonstopux*)
17624 case $host_os in
17625 nonstopux*) version_type=nonstopux ;;
17626 *)
17627 if test "$lt_cv_prog_gnu_ld" = yes; then
17628 version_type=linux
17629 else
17630 version_type=irix
17631 fi ;;
17632 esac
17633 need_lib_prefix=no
17634 need_version=no
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17637 case $host_os in
17638 irix5* | nonstopux*)
17639 libsuff= shlibsuff=
17640 ;;
17641 *)
17642 case $LD in # libtool.m4 will add one of these switches to LD
17643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17644 libsuff= shlibsuff= libmagic=32-bit;;
17645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17646 libsuff=32 shlibsuff=N32 libmagic=N32;;
17647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17649 *) libsuff= shlibsuff= libmagic=never-match;;
17650 esac
17651 ;;
17652 esac
17653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17654 shlibpath_overrides_runpath=no
17655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17657 hardcode_into_libs=yes
17658 ;;
17659
17660 # No shared lib support for Linux oldld, aout, or coff.
17661 linux*oldld* | linux*aout* | linux*coff*)
17662 dynamic_linker=no
17663 ;;
17664
17665 # This must be Linux ELF.
17666 linux*)
17667 version_type=linux
17668 need_lib_prefix=no
17669 need_version=no
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 shlibpath_overrides_runpath=no
17675 # This implies no fast_install, which is unacceptable.
17676 # Some rework will be needed to allow for fast_install
17677 # before this can be enabled.
17678 hardcode_into_libs=yes
17679
17680 # Append ld.so.conf contents to the search path
17681 if test -f /etc/ld.so.conf; then
17682 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17684 fi
17685
17686 # We used to test for /lib/ld.so.1 and disable shared libraries on
17687 # powerpc, because MkLinux only supported shared libraries with the
17688 # GNU dynamic linker. Since this was broken with cross compilers,
17689 # most powerpc-linux boxes support dynamic linking these days and
17690 # people can always --disable-shared, the test was removed, and we
17691 # assume the GNU/Linux dynamic linker is in use.
17692 dynamic_linker='GNU/Linux ld.so'
17693 ;;
17694
17695 netbsdelf*-gnu)
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=no
17703 hardcode_into_libs=yes
17704 dynamic_linker='NetBSD ld.elf_so'
17705 ;;
17706
17707 knetbsd*-gnu)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=no
17715 hardcode_into_libs=yes
17716 dynamic_linker='GNU ld.so'
17717 ;;
17718
17719 netbsd*)
17720 version_type=sunos
17721 need_lib_prefix=no
17722 need_version=no
17723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17726 dynamic_linker='NetBSD (a.out) ld.so'
17727 else
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 dynamic_linker='NetBSD ld.elf_so'
17731 fi
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes
17734 hardcode_into_libs=yes
17735 ;;
17736
17737 newsos6)
17738 version_type=linux
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=yes
17742 ;;
17743
17744 nto-qnx*)
17745 version_type=linux
17746 need_lib_prefix=no
17747 need_version=no
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 shlibpath_var=LD_LIBRARY_PATH
17751 shlibpath_overrides_runpath=yes
17752 ;;
17753
17754 openbsd*)
17755 version_type=sunos
17756 need_lib_prefix=no
17757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17758 case $host_os in
17759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17760 *) need_version=no ;;
17761 esac
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17766 case $host_os in
17767 openbsd2.[89] | openbsd2.[89].*)
17768 shlibpath_overrides_runpath=no
17769 ;;
17770 *)
17771 shlibpath_overrides_runpath=yes
17772 ;;
17773 esac
17774 else
17775 shlibpath_overrides_runpath=yes
17776 fi
17777 ;;
17778
17779 os2*)
17780 libname_spec='$name'
17781 shrext_cmds=".dll"
17782 need_lib_prefix=no
17783 library_names_spec='$libname${shared_ext} $libname.a'
17784 dynamic_linker='OS/2 ld.exe'
17785 shlibpath_var=LIBPATH
17786 ;;
17787
17788 osf3* | osf4* | osf5*)
17789 version_type=osf
17790 need_lib_prefix=no
17791 need_version=no
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17797 ;;
17798
17799 sco3.2v5*)
17800 version_type=osf
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803 shlibpath_var=LD_LIBRARY_PATH
17804 ;;
17805
17806 solaris*)
17807 version_type=linux
17808 need_lib_prefix=no
17809 need_version=no
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=yes
17814 hardcode_into_libs=yes
17815 # ldd complains unless libraries are executable
17816 postinstall_cmds='chmod +x $lib'
17817 ;;
17818
17819 sunos4*)
17820 version_type=sunos
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=yes
17825 if test "$with_gnu_ld" = yes; then
17826 need_lib_prefix=no
17827 fi
17828 need_version=yes
17829 ;;
17830
17831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17832 version_type=linux
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 case $host_vendor in
17837 sni)
17838 shlibpath_overrides_runpath=no
17839 need_lib_prefix=no
17840 export_dynamic_flag_spec='${wl}-Blargedynsym'
17841 runpath_var=LD_RUN_PATH
17842 ;;
17843 siemens)
17844 need_lib_prefix=no
17845 ;;
17846 motorola)
17847 need_lib_prefix=no
17848 need_version=no
17849 shlibpath_overrides_runpath=no
17850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17851 ;;
17852 esac
17853 ;;
17854
17855 sysv4*MP*)
17856 if test -d /usr/nec ;then
17857 version_type=linux
17858 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17859 soname_spec='$libname${shared_ext}.$major'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 fi
17862 ;;
17863
17864 uts4*)
17865 version_type=linux
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867 soname_spec='${libname}${release}${shared_ext}$major'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 ;;
17870
17871 *)
17872 dynamic_linker=no
17873 ;;
17874 esac
17875 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17876 echo "${ECHO_T}$dynamic_linker" >&6
17877 test "$dynamic_linker" = no && can_build_shared=no
17878
17879 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17880 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17881 hardcode_action_GCJ=
17882 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17883 test -n "$runpath_var_GCJ" || \
17884 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17885
17886 # We can hardcode non-existant directories.
17887 if test "$hardcode_direct_GCJ" != no &&
17888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17889 # have to relink, otherwise we might link with an installed library
17890 # when we should be linking with a yet-to-be-installed one
17891 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17892 test "$hardcode_minus_L_GCJ" != no; then
17893 # Linking always hardcodes the temporary library directory.
17894 hardcode_action_GCJ=relink
17895 else
17896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17897 hardcode_action_GCJ=immediate
17898 fi
17899 else
17900 # We cannot hardcode anything, or else we can only hardcode existing
17901 # directories.
17902 hardcode_action_GCJ=unsupported
17903 fi
17904 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17905 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17906
17907 if test "$hardcode_action_GCJ" = relink; then
17908 # Fast installation is not supported
17909 enable_fast_install=no
17910 elif test "$shlibpath_overrides_runpath" = yes ||
17911 test "$enable_shared" = no; then
17912 # Fast installation is not necessary
17913 enable_fast_install=needless
17914 fi
17915
17916 striplib=
17917 old_striplib=
17918 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17919 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17920 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17921 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17922 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17923 echo "$as_me:$LINENO: result: yes" >&5
17924 echo "${ECHO_T}yes" >&6
17925 else
17926 # FIXME - insert some real tests, host_os isn't really good enough
17927 case $host_os in
17928 darwin*)
17929 if test -n "$STRIP" ; then
17930 striplib="$STRIP -x"
17931 echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6
17933 else
17934 echo "$as_me:$LINENO: result: no" >&5
17935 echo "${ECHO_T}no" >&6
17936 fi
17937 ;;
17938 *)
17939 echo "$as_me:$LINENO: result: no" >&5
17940 echo "${ECHO_T}no" >&6
17941 ;;
17942 esac
17943 fi
17944
17945 if test "x$enable_dlopen" != xyes; then
17946 enable_dlopen=unknown
17947 enable_dlopen_self=unknown
17948 enable_dlopen_self_static=unknown
17949 else
17950 lt_cv_dlopen=no
17951 lt_cv_dlopen_libs=
17952
17953 case $host_os in
17954 beos*)
17955 lt_cv_dlopen="load_add_on"
17956 lt_cv_dlopen_libs=
17957 lt_cv_dlopen_self=yes
17958 ;;
17959
17960 mingw* | pw32*)
17961 lt_cv_dlopen="LoadLibrary"
17962 lt_cv_dlopen_libs=
17963 ;;
17964
17965 cygwin*)
17966 lt_cv_dlopen="dlopen"
17967 lt_cv_dlopen_libs=
17968 ;;
17969
17970 darwin*)
17971 # if libdl is installed we need to link against it
17972 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17973 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 ac_check_lib_save_LIBS=$LIBS
17978 LIBS="-ldl $LIBS"
17979 cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985
17986 /* Override any gcc2 internal prototype to avoid an error. */
17987 #ifdef __cplusplus
17988 extern "C"
17989 #endif
17990 /* We use char because int might match the return type of a gcc2
17991 builtin and then its argument prototype would still apply. */
17992 char dlopen ();
17993 int
17994 main ()
17995 {
17996 dlopen ();
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest$ac_exeext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_dl_dlopen=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 ac_cv_lib_dl_dlopen=no
18028 fi
18029 rm -f conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18034 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18035 if test $ac_cv_lib_dl_dlopen = yes; then
18036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18037 else
18038
18039 lt_cv_dlopen="dyld"
18040 lt_cv_dlopen_libs=
18041 lt_cv_dlopen_self=yes
18042
18043 fi
18044
18045 ;;
18046
18047 *)
18048 echo "$as_me:$LINENO: checking for shl_load" >&5
18049 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18050 if test "${ac_cv_func_shl_load+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18061 #define shl_load innocuous_shl_load
18062
18063 /* System header to define __stub macros and hopefully few prototypes,
18064 which can conflict with char shl_load (); below.
18065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066 <limits.h> exists even on freestanding compilers. */
18067
18068 #ifdef __STDC__
18069 # include <limits.h>
18070 #else
18071 # include <assert.h>
18072 #endif
18073
18074 #undef shl_load
18075
18076 /* Override any gcc2 internal prototype to avoid an error. */
18077 #ifdef __cplusplus
18078 extern "C"
18079 {
18080 #endif
18081 /* We use char because int might match the return type of a gcc2
18082 builtin and then its argument prototype would still apply. */
18083 char shl_load ();
18084 /* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18088 choke me
18089 #else
18090 char (*f) () = shl_load;
18091 #endif
18092 #ifdef __cplusplus
18093 }
18094 #endif
18095
18096 int
18097 main ()
18098 {
18099 return f != shl_load;
18100 ;
18101 return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_func_shl_load=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_func_shl_load=no
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 fi
18135 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18136 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18137 if test $ac_cv_func_shl_load = yes; then
18138 lt_cv_dlopen="shl_load"
18139 else
18140 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18141 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18142 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 else
18145 ac_check_lib_save_LIBS=$LIBS
18146 LIBS="-ldld $LIBS"
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153
18154 /* Override any gcc2 internal prototype to avoid an error. */
18155 #ifdef __cplusplus
18156 extern "C"
18157 #endif
18158 /* We use char because int might match the return type of a gcc2
18159 builtin and then its argument prototype would still apply. */
18160 char shl_load ();
18161 int
18162 main ()
18163 {
18164 shl_load ();
18165 ;
18166 return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171 (eval $ac_link) 2>conftest.er1
18172 ac_status=$?
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_lib_dld_shl_load=yes
18191 else
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_cv_lib_dld_shl_load=no
18196 fi
18197 rm -f conftest.err conftest.$ac_objext \
18198 conftest$ac_exeext conftest.$ac_ext
18199 LIBS=$ac_check_lib_save_LIBS
18200 fi
18201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18203 if test $ac_cv_lib_dld_shl_load = yes; then
18204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18205 else
18206 echo "$as_me:$LINENO: checking for dlopen" >&5
18207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18208 if test "${ac_cv_func_dlopen+set}" = set; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 else
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18219 #define dlopen innocuous_dlopen
18220
18221 /* System header to define __stub macros and hopefully few prototypes,
18222 which can conflict with char dlopen (); below.
18223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18224 <limits.h> exists even on freestanding compilers. */
18225
18226 #ifdef __STDC__
18227 # include <limits.h>
18228 #else
18229 # include <assert.h>
18230 #endif
18231
18232 #undef dlopen
18233
18234 /* Override any gcc2 internal prototype to avoid an error. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 {
18238 #endif
18239 /* We use char because int might match the return type of a gcc2
18240 builtin and then its argument prototype would still apply. */
18241 char dlopen ();
18242 /* The GNU C library defines this for functions which it implements
18243 to always fail with ENOSYS. Some functions are actually named
18244 something starting with __ and the normal name is an alias. */
18245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18246 choke me
18247 #else
18248 char (*f) () = dlopen;
18249 #endif
18250 #ifdef __cplusplus
18251 }
18252 #endif
18253
18254 int
18255 main ()
18256 {
18257 return f != dlopen;
18258 ;
18259 return 0;
18260 }
18261 _ACEOF
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_func_dlopen=yes
18284 else
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 ac_cv_func_dlopen=no
18289 fi
18290 rm -f conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18295 if test $ac_cv_func_dlopen = yes; then
18296 lt_cv_dlopen="dlopen"
18297 else
18298 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303 ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-ldl $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18311
18312 /* Override any gcc2 internal prototype to avoid an error. */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 /* We use char because int might match the return type of a gcc2
18317 builtin and then its argument prototype would still apply. */
18318 char dlopen ();
18319 int
18320 main ()
18321 {
18322 dlopen ();
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329 (eval $ac_link) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest$ac_exeext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_cv_lib_dl_dlopen=yes
18349 else
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18352
18353 ac_cv_lib_dl_dlopen=no
18354 fi
18355 rm -f conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18358 fi
18359 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18360 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18361 if test $ac_cv_lib_dl_dlopen = yes; then
18362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18363 else
18364 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18365 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18366 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lsvld $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377
18378 /* Override any gcc2 internal prototype to avoid an error. */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384 char dlopen ();
18385 int
18386 main ()
18387 {
18388 dlopen ();
18389 ;
18390 return 0;
18391 }
18392 _ACEOF
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_cv_lib_svld_dlopen=yes
18415 else
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18418
18419 ac_cv_lib_svld_dlopen=no
18420 fi
18421 rm -f conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18424 fi
18425 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18426 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18427 if test $ac_cv_lib_svld_dlopen = yes; then
18428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18429 else
18430 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18431 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18432 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435 ac_check_lib_save_LIBS=$LIBS
18436 LIBS="-ldld $LIBS"
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443
18444 /* Override any gcc2 internal prototype to avoid an error. */
18445 #ifdef __cplusplus
18446 extern "C"
18447 #endif
18448 /* We use char because int might match the return type of a gcc2
18449 builtin and then its argument prototype would still apply. */
18450 char dld_link ();
18451 int
18452 main ()
18453 {
18454 dld_link ();
18455 ;
18456 return 0;
18457 }
18458 _ACEOF
18459 rm -f conftest.$ac_objext conftest$ac_exeext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>conftest.er1
18462 ac_status=$?
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_dld_dld_link=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_lib_dld_dld_link=no
18486 fi
18487 rm -f conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18490 fi
18491 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18492 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18493 if test $ac_cv_lib_dld_dld_link = yes; then
18494 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18495 fi
18496
18497
18498 fi
18499
18500
18501 fi
18502
18503
18504 fi
18505
18506
18507 fi
18508
18509
18510 fi
18511
18512 ;;
18513 esac
18514
18515 if test "x$lt_cv_dlopen" != xno; then
18516 enable_dlopen=yes
18517 else
18518 enable_dlopen=no
18519 fi
18520
18521 case $lt_cv_dlopen in
18522 dlopen)
18523 save_CPPFLAGS="$CPPFLAGS"
18524 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18525
18526 save_LDFLAGS="$LDFLAGS"
18527 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18528
18529 save_LIBS="$LIBS"
18530 LIBS="$lt_cv_dlopen_libs $LIBS"
18531
18532 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18533 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18534 if test "${lt_cv_dlopen_self+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 else
18537 if test "$cross_compiling" = yes; then :
18538 lt_cv_dlopen_self=cross
18539 else
18540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18541 lt_status=$lt_dlunknown
18542 cat > conftest.$ac_ext <<EOF
18543 #line 18543 "configure"
18544 #include "confdefs.h"
18545
18546 #if HAVE_DLFCN_H
18547 #include <dlfcn.h>
18548 #endif
18549
18550 #include <stdio.h>
18551
18552 #ifdef RTLD_GLOBAL
18553 # define LT_DLGLOBAL RTLD_GLOBAL
18554 #else
18555 # ifdef DL_GLOBAL
18556 # define LT_DLGLOBAL DL_GLOBAL
18557 # else
18558 # define LT_DLGLOBAL 0
18559 # endif
18560 #endif
18561
18562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18563 find out it does not work in some platform. */
18564 #ifndef LT_DLLAZY_OR_NOW
18565 # ifdef RTLD_LAZY
18566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18567 # else
18568 # ifdef DL_LAZY
18569 # define LT_DLLAZY_OR_NOW DL_LAZY
18570 # else
18571 # ifdef RTLD_NOW
18572 # define LT_DLLAZY_OR_NOW RTLD_NOW
18573 # else
18574 # ifdef DL_NOW
18575 # define LT_DLLAZY_OR_NOW DL_NOW
18576 # else
18577 # define LT_DLLAZY_OR_NOW 0
18578 # endif
18579 # endif
18580 # endif
18581 # endif
18582 #endif
18583
18584 #ifdef __cplusplus
18585 extern "C" void exit (int);
18586 #endif
18587
18588 void fnord() { int i=42;}
18589 int main ()
18590 {
18591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18592 int status = $lt_dlunknown;
18593
18594 if (self)
18595 {
18596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18598 /* dlclose (self); */
18599 }
18600
18601 exit (status);
18602 }
18603 EOF
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605 (eval $ac_link) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18609 (./conftest; exit; ) >&5 2>/dev/null
18610 lt_status=$?
18611 case x$lt_status in
18612 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18613 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18614 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18615 esac
18616 else :
18617 # compilation failed
18618 lt_cv_dlopen_self=no
18619 fi
18620 fi
18621 rm -fr conftest*
18622
18623
18624 fi
18625 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18626 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18627
18628 if test "x$lt_cv_dlopen_self" = xyes; then
18629 LDFLAGS="$LDFLAGS $link_static_flag"
18630 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18631 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18632 if test "${lt_cv_dlopen_self_static+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 if test "$cross_compiling" = yes; then :
18636 lt_cv_dlopen_self_static=cross
18637 else
18638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18639 lt_status=$lt_dlunknown
18640 cat > conftest.$ac_ext <<EOF
18641 #line 18641 "configure"
18642 #include "confdefs.h"
18643
18644 #if HAVE_DLFCN_H
18645 #include <dlfcn.h>
18646 #endif
18647
18648 #include <stdio.h>
18649
18650 #ifdef RTLD_GLOBAL
18651 # define LT_DLGLOBAL RTLD_GLOBAL
18652 #else
18653 # ifdef DL_GLOBAL
18654 # define LT_DLGLOBAL DL_GLOBAL
18655 # else
18656 # define LT_DLGLOBAL 0
18657 # endif
18658 #endif
18659
18660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18661 find out it does not work in some platform. */
18662 #ifndef LT_DLLAZY_OR_NOW
18663 # ifdef RTLD_LAZY
18664 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18665 # else
18666 # ifdef DL_LAZY
18667 # define LT_DLLAZY_OR_NOW DL_LAZY
18668 # else
18669 # ifdef RTLD_NOW
18670 # define LT_DLLAZY_OR_NOW RTLD_NOW
18671 # else
18672 # ifdef DL_NOW
18673 # define LT_DLLAZY_OR_NOW DL_NOW
18674 # else
18675 # define LT_DLLAZY_OR_NOW 0
18676 # endif
18677 # endif
18678 # endif
18679 # endif
18680 #endif
18681
18682 #ifdef __cplusplus
18683 extern "C" void exit (int);
18684 #endif
18685
18686 void fnord() { int i=42;}
18687 int main ()
18688 {
18689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18690 int status = $lt_dlunknown;
18691
18692 if (self)
18693 {
18694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18696 /* dlclose (self); */
18697 }
18698
18699 exit (status);
18700 }
18701 EOF
18702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18707 (./conftest; exit; ) >&5 2>/dev/null
18708 lt_status=$?
18709 case x$lt_status in
18710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18712 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18713 esac
18714 else :
18715 # compilation failed
18716 lt_cv_dlopen_self_static=no
18717 fi
18718 fi
18719 rm -fr conftest*
18720
18721
18722 fi
18723 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18724 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18725 fi
18726
18727 CPPFLAGS="$save_CPPFLAGS"
18728 LDFLAGS="$save_LDFLAGS"
18729 LIBS="$save_LIBS"
18730 ;;
18731 esac
18732
18733 case $lt_cv_dlopen_self in
18734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18735 *) enable_dlopen_self=unknown ;;
18736 esac
18737
18738 case $lt_cv_dlopen_self_static in
18739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18740 *) enable_dlopen_self_static=unknown ;;
18741 esac
18742 fi
18743
18744
18745 # The else clause should only fire when bootstrapping the
18746 # libtool distribution, otherwise you forgot to ship ltmain.sh
18747 # with your package, and you will get complaints that there are
18748 # no rules to generate ltmain.sh.
18749 if test -f "$ltmain"; then
18750 # See if we are running on zsh, and set the options which allow our commands through
18751 # without removal of \ escapes.
18752 if test -n "${ZSH_VERSION+set}" ; then
18753 setopt NO_GLOB_SUBST
18754 fi
18755 # Now quote all the things that may contain metacharacters while being
18756 # careful not to overquote the AC_SUBSTed values. We take copies of the
18757 # variables and quote the copies for generation of the libtool script.
18758 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18759 SED SHELL STRIP \
18760 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18761 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18762 deplibs_check_method reload_flag reload_cmds need_locks \
18763 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18764 lt_cv_sys_global_symbol_to_c_name_address \
18765 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18766 old_postinstall_cmds old_postuninstall_cmds \
18767 compiler_GCJ \
18768 CC_GCJ \
18769 LD_GCJ \
18770 lt_prog_compiler_wl_GCJ \
18771 lt_prog_compiler_pic_GCJ \
18772 lt_prog_compiler_static_GCJ \
18773 lt_prog_compiler_no_builtin_flag_GCJ \
18774 export_dynamic_flag_spec_GCJ \
18775 thread_safe_flag_spec_GCJ \
18776 whole_archive_flag_spec_GCJ \
18777 enable_shared_with_static_runtimes_GCJ \
18778 old_archive_cmds_GCJ \
18779 old_archive_from_new_cmds_GCJ \
18780 predep_objects_GCJ \
18781 postdep_objects_GCJ \
18782 predeps_GCJ \
18783 postdeps_GCJ \
18784 compiler_lib_search_path_GCJ \
18785 archive_cmds_GCJ \
18786 archive_expsym_cmds_GCJ \
18787 postinstall_cmds_GCJ \
18788 postuninstall_cmds_GCJ \
18789 old_archive_from_expsyms_cmds_GCJ \
18790 allow_undefined_flag_GCJ \
18791 no_undefined_flag_GCJ \
18792 export_symbols_cmds_GCJ \
18793 hardcode_libdir_flag_spec_GCJ \
18794 hardcode_libdir_flag_spec_ld_GCJ \
18795 hardcode_libdir_separator_GCJ \
18796 hardcode_automatic_GCJ \
18797 module_cmds_GCJ \
18798 module_expsym_cmds_GCJ \
18799 lt_cv_prog_compiler_c_o_GCJ \
18800 exclude_expsyms_GCJ \
18801 include_expsyms_GCJ; do
18802
18803 case $var in
18804 old_archive_cmds_GCJ | \
18805 old_archive_from_new_cmds_GCJ | \
18806 archive_cmds_GCJ | \
18807 archive_expsym_cmds_GCJ | \
18808 module_cmds_GCJ | \
18809 module_expsym_cmds_GCJ | \
18810 old_archive_from_expsyms_cmds_GCJ | \
18811 export_symbols_cmds_GCJ | \
18812 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18813 postinstall_cmds | postuninstall_cmds | \
18814 old_postinstall_cmds | old_postuninstall_cmds | \
18815 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18816 # Double-quote double-evaled strings.
18817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18818 ;;
18819 *)
18820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18821 ;;
18822 esac
18823 done
18824
18825 case $lt_echo in
18826 *'\$0 --fallback-echo"')
18827 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18828 ;;
18829 esac
18830
18831 cfgfile="$ofile"
18832
18833 cat <<__EOF__ >> "$cfgfile"
18834 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18835
18836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18837
18838 # Shell to use when invoking shell scripts.
18839 SHELL=$lt_SHELL
18840
18841 # Whether or not to build shared libraries.
18842 build_libtool_libs=$enable_shared
18843
18844 # Whether or not to build static libraries.
18845 build_old_libs=$enable_static
18846
18847 # Whether or not to add -lc for building shared libraries.
18848 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18849
18850 # Whether or not to disallow shared libs when runtime libs are static
18851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18852
18853 # Whether or not to optimize for fast installation.
18854 fast_install=$enable_fast_install
18855
18856 # The host system.
18857 host_alias=$host_alias
18858 host=$host
18859 host_os=$host_os
18860
18861 # The build system.
18862 build_alias=$build_alias
18863 build=$build
18864 build_os=$build_os
18865
18866 # An echo program that does not interpret backslashes.
18867 echo=$lt_echo
18868
18869 # The archiver.
18870 AR=$lt_AR
18871 AR_FLAGS=$lt_AR_FLAGS
18872
18873 # A C compiler.
18874 LTCC=$lt_LTCC
18875
18876 # A language-specific compiler.
18877 CC=$lt_compiler_GCJ
18878
18879 # Is the compiler the GNU C compiler?
18880 with_gcc=$GCC_GCJ
18881
18882 # An ERE matcher.
18883 EGREP=$lt_EGREP
18884
18885 # The linker used to build libraries.
18886 LD=$lt_LD_GCJ
18887
18888 # Whether we need hard or soft links.
18889 LN_S=$lt_LN_S
18890
18891 # A BSD-compatible nm program.
18892 NM=$lt_NM
18893
18894 # A symbol stripping program
18895 STRIP=$lt_STRIP
18896
18897 # Used to examine libraries when file_magic_cmd begins "file"
18898 MAGIC_CMD=$MAGIC_CMD
18899
18900 # Used on cygwin: DLL creation program.
18901 DLLTOOL="$DLLTOOL"
18902
18903 # Used on cygwin: object dumper.
18904 OBJDUMP="$OBJDUMP"
18905
18906 # Used on cygwin: assembler.
18907 AS="$AS"
18908
18909 # The name of the directory that contains temporary libtool files.
18910 objdir=$objdir
18911
18912 # How to create reloadable object files.
18913 reload_flag=$lt_reload_flag
18914 reload_cmds=$lt_reload_cmds
18915
18916 # How to pass a linker flag through the compiler.
18917 wl=$lt_lt_prog_compiler_wl_GCJ
18918
18919 # Object file suffix (normally "o").
18920 objext="$ac_objext"
18921
18922 # Old archive suffix (normally "a").
18923 libext="$libext"
18924
18925 # Shared library suffix (normally ".so").
18926 shrext_cmds='$shrext_cmds'
18927
18928 # Executable file suffix (normally "").
18929 exeext="$exeext"
18930
18931 # Additional compiler flags for building library objects.
18932 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18933 pic_mode=$pic_mode
18934
18935 # What is the maximum length of a command?
18936 max_cmd_len=$lt_cv_sys_max_cmd_len
18937
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18940
18941 # Must we lock files when doing compilation?
18942 need_locks=$lt_need_locks
18943
18944 # Do we need the lib prefix for modules?
18945 need_lib_prefix=$need_lib_prefix
18946
18947 # Do we need a version for libraries?
18948 need_version=$need_version
18949
18950 # Whether dlopen is supported.
18951 dlopen_support=$enable_dlopen
18952
18953 # Whether dlopen of programs is supported.
18954 dlopen_self=$enable_dlopen_self
18955
18956 # Whether dlopen of statically linked programs is supported.
18957 dlopen_self_static=$enable_dlopen_self_static
18958
18959 # Compiler flag to prevent dynamic linking.
18960 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18961
18962 # Compiler flag to turn off builtin functions.
18963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18964
18965 # Compiler flag to allow reflexive dlopens.
18966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18967
18968 # Compiler flag to generate shared objects directly from archives.
18969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18970
18971 # Compiler flag to generate thread-safe objects.
18972 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18973
18974 # Library versioning type.
18975 version_type=$version_type
18976
18977 # Format of library name prefix.
18978 libname_spec=$lt_libname_spec
18979
18980 # List of archive names. First name is the real one, the rest are links.
18981 # The last name is the one that the linker finds with -lNAME.
18982 library_names_spec=$lt_library_names_spec
18983
18984 # The coded name of the library, if different from the real name.
18985 soname_spec=$lt_soname_spec
18986
18987 # Commands used to build and install an old-style archive.
18988 RANLIB=$lt_RANLIB
18989 old_archive_cmds=$lt_old_archive_cmds_GCJ
18990 old_postinstall_cmds=$lt_old_postinstall_cmds
18991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993 # Create an old-style archive from a shared archive.
18994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18995
18996 # Create a temporary old-style archive to link instead of a shared archive.
18997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18998
18999 # Commands used to build and install a shared archive.
19000 archive_cmds=$lt_archive_cmds_GCJ
19001 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19002 postinstall_cmds=$lt_postinstall_cmds
19003 postuninstall_cmds=$lt_postuninstall_cmds
19004
19005 # Commands used to build a loadable module (assumed same as above if empty)
19006 module_cmds=$lt_module_cmds_GCJ
19007 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19008
19009 # Commands to strip libraries.
19010 old_striplib=$lt_old_striplib
19011 striplib=$lt_striplib
19012
19013 # Dependencies to place before the objects being linked to create a
19014 # shared library.
19015 predep_objects=$lt_predep_objects_GCJ
19016
19017 # Dependencies to place after the objects being linked to create a
19018 # shared library.
19019 postdep_objects=$lt_postdep_objects_GCJ
19020
19021 # Dependencies to place before the objects being linked to create a
19022 # shared library.
19023 predeps=$lt_predeps_GCJ
19024
19025 # Dependencies to place after the objects being linked to create a
19026 # shared library.
19027 postdeps=$lt_postdeps_GCJ
19028
19029 # The library search path used internally by the compiler when linking
19030 # a shared library.
19031 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19032
19033 # Method to check whether dependent libraries are shared objects.
19034 deplibs_check_method=$lt_deplibs_check_method
19035
19036 # Command to use when deplibs_check_method == file_magic.
19037 file_magic_cmd=$lt_file_magic_cmd
19038
19039 # Flag that allows shared libraries with undefined symbols to be built.
19040 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19041
19042 # Flag that forces no undefined symbols.
19043 no_undefined_flag=$lt_no_undefined_flag_GCJ
19044
19045 # Commands used to finish a libtool library installation in a directory.
19046 finish_cmds=$lt_finish_cmds
19047
19048 # Same as above, but a single script fragment to be evaled but not shown.
19049 finish_eval=$lt_finish_eval
19050
19051 # Take the output of nm and produce a listing of raw symbols and C names.
19052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19053
19054 # Transform the output of nm in a proper C declaration
19055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19056
19057 # Transform the output of nm in a C name address pair
19058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19059
19060 # This is the shared library runtime path variable.
19061 runpath_var=$runpath_var
19062
19063 # This is the shared library path variable.
19064 shlibpath_var=$shlibpath_var
19065
19066 # Is shlibpath searched before the hard-coded library search path?
19067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19068
19069 # How to hardcode a shared library path into an executable.
19070 hardcode_action=$hardcode_action_GCJ
19071
19072 # Whether we should hardcode library paths into libraries.
19073 hardcode_into_libs=$hardcode_into_libs
19074
19075 # Flag to hardcode \$libdir into a binary during linking.
19076 # This must work even if \$libdir does not exist.
19077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19078
19079 # If ld is used when linking, flag to hardcode \$libdir into
19080 # a binary during linking. This must work even if \$libdir does
19081 # not exist.
19082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19083
19084 # Whether we need a single -rpath flag with a separated argument.
19085 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19086
19087 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19088 # resulting binary.
19089 hardcode_direct=$hardcode_direct_GCJ
19090
19091 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19092 # resulting binary.
19093 hardcode_minus_L=$hardcode_minus_L_GCJ
19094
19095 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19096 # the resulting binary.
19097 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19098
19099 # Set to yes if building a shared library automatically hardcodes DIR into the library
19100 # and all subsequent libraries and executables linked against it.
19101 hardcode_automatic=$hardcode_automatic_GCJ
19102
19103 # Variables whose values should be saved in libtool wrapper scripts and
19104 # restored at relink time.
19105 variables_saved_for_relink="$variables_saved_for_relink"
19106
19107 # Whether libtool must link a program against all its dependency libraries.
19108 link_all_deplibs=$link_all_deplibs_GCJ
19109
19110 # Compile-time system search path for libraries
19111 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19112
19113 # Run-time system search path for libraries
19114 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19115
19116 # Fix the shell variable \$srcfile for the compiler.
19117 fix_srcfile_path="$fix_srcfile_path_GCJ"
19118
19119 # Set to yes if exported symbols are required.
19120 always_export_symbols=$always_export_symbols_GCJ
19121
19122 # The commands to list exported symbols.
19123 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19124
19125 # The commands to extract the exported symbol list from a shared archive.
19126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19127
19128 # Symbols that should not be listed in the preloaded symbols.
19129 exclude_expsyms=$lt_exclude_expsyms_GCJ
19130
19131 # Symbols that must always be exported.
19132 include_expsyms=$lt_include_expsyms_GCJ
19133
19134 # ### END LIBTOOL TAG CONFIG: $tagname
19135
19136 __EOF__
19137
19138
19139 else
19140 # If there is no Makefile yet, we rely on a make rule to execute
19141 # `config.status --recheck' to rerun these tests and create the
19142 # libtool script then.
19143 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19144 if test -f "$ltmain_in"; then
19145 test -f Makefile && make "$ltmain"
19146 fi
19147 fi
19148
19149
19150 ac_ext=c
19151 ac_cpp='$CPP $CPPFLAGS'
19152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155
19156 CC="$lt_save_CC"
19157
19158 else
19159 tagname=""
19160 fi
19161 ;;
19162
19163 RC)
19164
19165
19166
19167 # Source file extension for RC test sources.
19168 ac_ext=rc
19169
19170 # Object file extension for compiled RC test sources.
19171 objext=o
19172 objext_RC=$objext
19173
19174 # Code to be used in simple compile tests
19175 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19176
19177 # Code to be used in simple link tests
19178 lt_simple_link_test_code="$lt_simple_compile_test_code"
19179
19180 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19181
19182 # If no C compiler was specified, use CC.
19183 LTCC=${LTCC-"$CC"}
19184
19185 # Allow CC to be a program name with arguments.
19186 compiler=$CC
19187
19188
19189 # save warnings/boilerplate of simple test code
19190 ac_outfile=conftest.$ac_objext
19191 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19193 _lt_compiler_boilerplate=`cat conftest.err`
19194 $rm conftest*
19195
19196 ac_outfile=conftest.$ac_objext
19197 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19199 _lt_linker_boilerplate=`cat conftest.err`
19200 $rm conftest*
19201
19202
19203 # Allow CC to be a program name with arguments.
19204 lt_save_CC="$CC"
19205 CC=${RC-"windres"}
19206 compiler=$CC
19207 compiler_RC=$CC
19208 for cc_temp in $compiler""; do
19209 case $cc_temp in
19210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19212 \-*) ;;
19213 *) break;;
19214 esac
19215 done
19216 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19217
19218 lt_cv_prog_compiler_c_o_RC=yes
19219
19220 # The else clause should only fire when bootstrapping the
19221 # libtool distribution, otherwise you forgot to ship ltmain.sh
19222 # with your package, and you will get complaints that there are
19223 # no rules to generate ltmain.sh.
19224 if test -f "$ltmain"; then
19225 # See if we are running on zsh, and set the options which allow our commands through
19226 # without removal of \ escapes.
19227 if test -n "${ZSH_VERSION+set}" ; then
19228 setopt NO_GLOB_SUBST
19229 fi
19230 # Now quote all the things that may contain metacharacters while being
19231 # careful not to overquote the AC_SUBSTed values. We take copies of the
19232 # variables and quote the copies for generation of the libtool script.
19233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19234 SED SHELL STRIP \
19235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19237 deplibs_check_method reload_flag reload_cmds need_locks \
19238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19239 lt_cv_sys_global_symbol_to_c_name_address \
19240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19241 old_postinstall_cmds old_postuninstall_cmds \
19242 compiler_RC \
19243 CC_RC \
19244 LD_RC \
19245 lt_prog_compiler_wl_RC \
19246 lt_prog_compiler_pic_RC \
19247 lt_prog_compiler_static_RC \
19248 lt_prog_compiler_no_builtin_flag_RC \
19249 export_dynamic_flag_spec_RC \
19250 thread_safe_flag_spec_RC \
19251 whole_archive_flag_spec_RC \
19252 enable_shared_with_static_runtimes_RC \
19253 old_archive_cmds_RC \
19254 old_archive_from_new_cmds_RC \
19255 predep_objects_RC \
19256 postdep_objects_RC \
19257 predeps_RC \
19258 postdeps_RC \
19259 compiler_lib_search_path_RC \
19260 archive_cmds_RC \
19261 archive_expsym_cmds_RC \
19262 postinstall_cmds_RC \
19263 postuninstall_cmds_RC \
19264 old_archive_from_expsyms_cmds_RC \
19265 allow_undefined_flag_RC \
19266 no_undefined_flag_RC \
19267 export_symbols_cmds_RC \
19268 hardcode_libdir_flag_spec_RC \
19269 hardcode_libdir_flag_spec_ld_RC \
19270 hardcode_libdir_separator_RC \
19271 hardcode_automatic_RC \
19272 module_cmds_RC \
19273 module_expsym_cmds_RC \
19274 lt_cv_prog_compiler_c_o_RC \
19275 exclude_expsyms_RC \
19276 include_expsyms_RC; do
19277
19278 case $var in
19279 old_archive_cmds_RC | \
19280 old_archive_from_new_cmds_RC | \
19281 archive_cmds_RC | \
19282 archive_expsym_cmds_RC | \
19283 module_cmds_RC | \
19284 module_expsym_cmds_RC | \
19285 old_archive_from_expsyms_cmds_RC | \
19286 export_symbols_cmds_RC | \
19287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19288 postinstall_cmds | postuninstall_cmds | \
19289 old_postinstall_cmds | old_postuninstall_cmds | \
19290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19291 # Double-quote double-evaled strings.
19292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19293 ;;
19294 *)
19295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19296 ;;
19297 esac
19298 done
19299
19300 case $lt_echo in
19301 *'\$0 --fallback-echo"')
19302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19303 ;;
19304 esac
19305
19306 cfgfile="$ofile"
19307
19308 cat <<__EOF__ >> "$cfgfile"
19309 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19310
19311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19312
19313 # Shell to use when invoking shell scripts.
19314 SHELL=$lt_SHELL
19315
19316 # Whether or not to build shared libraries.
19317 build_libtool_libs=$enable_shared
19318
19319 # Whether or not to build static libraries.
19320 build_old_libs=$enable_static
19321
19322 # Whether or not to add -lc for building shared libraries.
19323 build_libtool_need_lc=$archive_cmds_need_lc_RC
19324
19325 # Whether or not to disallow shared libs when runtime libs are static
19326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19327
19328 # Whether or not to optimize for fast installation.
19329 fast_install=$enable_fast_install
19330
19331 # The host system.
19332 host_alias=$host_alias
19333 host=$host
19334 host_os=$host_os
19335
19336 # The build system.
19337 build_alias=$build_alias
19338 build=$build
19339 build_os=$build_os
19340
19341 # An echo program that does not interpret backslashes.
19342 echo=$lt_echo
19343
19344 # The archiver.
19345 AR=$lt_AR
19346 AR_FLAGS=$lt_AR_FLAGS
19347
19348 # A C compiler.
19349 LTCC=$lt_LTCC
19350
19351 # A language-specific compiler.
19352 CC=$lt_compiler_RC
19353
19354 # Is the compiler the GNU C compiler?
19355 with_gcc=$GCC_RC
19356
19357 # An ERE matcher.
19358 EGREP=$lt_EGREP
19359
19360 # The linker used to build libraries.
19361 LD=$lt_LD_RC
19362
19363 # Whether we need hard or soft links.
19364 LN_S=$lt_LN_S
19365
19366 # A BSD-compatible nm program.
19367 NM=$lt_NM
19368
19369 # A symbol stripping program
19370 STRIP=$lt_STRIP
19371
19372 # Used to examine libraries when file_magic_cmd begins "file"
19373 MAGIC_CMD=$MAGIC_CMD
19374
19375 # Used on cygwin: DLL creation program.
19376 DLLTOOL="$DLLTOOL"
19377
19378 # Used on cygwin: object dumper.
19379 OBJDUMP="$OBJDUMP"
19380
19381 # Used on cygwin: assembler.
19382 AS="$AS"
19383
19384 # The name of the directory that contains temporary libtool files.
19385 objdir=$objdir
19386
19387 # How to create reloadable object files.
19388 reload_flag=$lt_reload_flag
19389 reload_cmds=$lt_reload_cmds
19390
19391 # How to pass a linker flag through the compiler.
19392 wl=$lt_lt_prog_compiler_wl_RC
19393
19394 # Object file suffix (normally "o").
19395 objext="$ac_objext"
19396
19397 # Old archive suffix (normally "a").
19398 libext="$libext"
19399
19400 # Shared library suffix (normally ".so").
19401 shrext_cmds='$shrext_cmds'
19402
19403 # Executable file suffix (normally "").
19404 exeext="$exeext"
19405
19406 # Additional compiler flags for building library objects.
19407 pic_flag=$lt_lt_prog_compiler_pic_RC
19408 pic_mode=$pic_mode
19409
19410 # What is the maximum length of a command?
19411 max_cmd_len=$lt_cv_sys_max_cmd_len
19412
19413 # Does compiler simultaneously support -c and -o options?
19414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19415
19416 # Must we lock files when doing compilation?
19417 need_locks=$lt_need_locks
19418
19419 # Do we need the lib prefix for modules?
19420 need_lib_prefix=$need_lib_prefix
19421
19422 # Do we need a version for libraries?
19423 need_version=$need_version
19424
19425 # Whether dlopen is supported.
19426 dlopen_support=$enable_dlopen
19427
19428 # Whether dlopen of programs is supported.
19429 dlopen_self=$enable_dlopen_self
19430
19431 # Whether dlopen of statically linked programs is supported.
19432 dlopen_self_static=$enable_dlopen_self_static
19433
19434 # Compiler flag to prevent dynamic linking.
19435 link_static_flag=$lt_lt_prog_compiler_static_RC
19436
19437 # Compiler flag to turn off builtin functions.
19438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19439
19440 # Compiler flag to allow reflexive dlopens.
19441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19442
19443 # Compiler flag to generate shared objects directly from archives.
19444 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19445
19446 # Compiler flag to generate thread-safe objects.
19447 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19448
19449 # Library versioning type.
19450 version_type=$version_type
19451
19452 # Format of library name prefix.
19453 libname_spec=$lt_libname_spec
19454
19455 # List of archive names. First name is the real one, the rest are links.
19456 # The last name is the one that the linker finds with -lNAME.
19457 library_names_spec=$lt_library_names_spec
19458
19459 # The coded name of the library, if different from the real name.
19460 soname_spec=$lt_soname_spec
19461
19462 # Commands used to build and install an old-style archive.
19463 RANLIB=$lt_RANLIB
19464 old_archive_cmds=$lt_old_archive_cmds_RC
19465 old_postinstall_cmds=$lt_old_postinstall_cmds
19466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19467
19468 # Create an old-style archive from a shared archive.
19469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19470
19471 # Create a temporary old-style archive to link instead of a shared archive.
19472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19473
19474 # Commands used to build and install a shared archive.
19475 archive_cmds=$lt_archive_cmds_RC
19476 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19477 postinstall_cmds=$lt_postinstall_cmds
19478 postuninstall_cmds=$lt_postuninstall_cmds
19479
19480 # Commands used to build a loadable module (assumed same as above if empty)
19481 module_cmds=$lt_module_cmds_RC
19482 module_expsym_cmds=$lt_module_expsym_cmds_RC
19483
19484 # Commands to strip libraries.
19485 old_striplib=$lt_old_striplib
19486 striplib=$lt_striplib
19487
19488 # Dependencies to place before the objects being linked to create a
19489 # shared library.
19490 predep_objects=$lt_predep_objects_RC
19491
19492 # Dependencies to place after the objects being linked to create a
19493 # shared library.
19494 postdep_objects=$lt_postdep_objects_RC
19495
19496 # Dependencies to place before the objects being linked to create a
19497 # shared library.
19498 predeps=$lt_predeps_RC
19499
19500 # Dependencies to place after the objects being linked to create a
19501 # shared library.
19502 postdeps=$lt_postdeps_RC
19503
19504 # The library search path used internally by the compiler when linking
19505 # a shared library.
19506 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19507
19508 # Method to check whether dependent libraries are shared objects.
19509 deplibs_check_method=$lt_deplibs_check_method
19510
19511 # Command to use when deplibs_check_method == file_magic.
19512 file_magic_cmd=$lt_file_magic_cmd
19513
19514 # Flag that allows shared libraries with undefined symbols to be built.
19515 allow_undefined_flag=$lt_allow_undefined_flag_RC
19516
19517 # Flag that forces no undefined symbols.
19518 no_undefined_flag=$lt_no_undefined_flag_RC
19519
19520 # Commands used to finish a libtool library installation in a directory.
19521 finish_cmds=$lt_finish_cmds
19522
19523 # Same as above, but a single script fragment to be evaled but not shown.
19524 finish_eval=$lt_finish_eval
19525
19526 # Take the output of nm and produce a listing of raw symbols and C names.
19527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19528
19529 # Transform the output of nm in a proper C declaration
19530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19531
19532 # Transform the output of nm in a C name address pair
19533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19534
19535 # This is the shared library runtime path variable.
19536 runpath_var=$runpath_var
19537
19538 # This is the shared library path variable.
19539 shlibpath_var=$shlibpath_var
19540
19541 # Is shlibpath searched before the hard-coded library search path?
19542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19543
19544 # How to hardcode a shared library path into an executable.
19545 hardcode_action=$hardcode_action_RC
19546
19547 # Whether we should hardcode library paths into libraries.
19548 hardcode_into_libs=$hardcode_into_libs
19549
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist.
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19553
19554 # If ld is used when linking, flag to hardcode \$libdir into
19555 # a binary during linking. This must work even if \$libdir does
19556 # not exist.
19557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19558
19559 # Whether we need a single -rpath flag with a separated argument.
19560 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19561
19562 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19563 # resulting binary.
19564 hardcode_direct=$hardcode_direct_RC
19565
19566 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19567 # resulting binary.
19568 hardcode_minus_L=$hardcode_minus_L_RC
19569
19570 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19571 # the resulting binary.
19572 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19573
19574 # Set to yes if building a shared library automatically hardcodes DIR into the library
19575 # and all subsequent libraries and executables linked against it.
19576 hardcode_automatic=$hardcode_automatic_RC
19577
19578 # Variables whose values should be saved in libtool wrapper scripts and
19579 # restored at relink time.
19580 variables_saved_for_relink="$variables_saved_for_relink"
19581
19582 # Whether libtool must link a program against all its dependency libraries.
19583 link_all_deplibs=$link_all_deplibs_RC
19584
19585 # Compile-time system search path for libraries
19586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19587
19588 # Run-time system search path for libraries
19589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19590
19591 # Fix the shell variable \$srcfile for the compiler.
19592 fix_srcfile_path="$fix_srcfile_path_RC"
19593
19594 # Set to yes if exported symbols are required.
19595 always_export_symbols=$always_export_symbols_RC
19596
19597 # The commands to list exported symbols.
19598 export_symbols_cmds=$lt_export_symbols_cmds_RC
19599
19600 # The commands to extract the exported symbol list from a shared archive.
19601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19602
19603 # Symbols that should not be listed in the preloaded symbols.
19604 exclude_expsyms=$lt_exclude_expsyms_RC
19605
19606 # Symbols that must always be exported.
19607 include_expsyms=$lt_include_expsyms_RC
19608
19609 # ### END LIBTOOL TAG CONFIG: $tagname
19610
19611 __EOF__
19612
19613
19614 else
19615 # If there is no Makefile yet, we rely on a make rule to execute
19616 # `config.status --recheck' to rerun these tests and create the
19617 # libtool script then.
19618 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19619 if test -f "$ltmain_in"; then
19620 test -f Makefile && make "$ltmain"
19621 fi
19622 fi
19623
19624
19625 ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631 CC="$lt_save_CC"
19632
19633 ;;
19634
19635 *)
19636 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19637 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19638 { (exit 1); exit 1; }; }
19639 ;;
19640 esac
19641
19642 # Append the new tag name to the list of available tags.
19643 if test -n "$tagname" ; then
19644 available_tags="$available_tags $tagname"
19645 fi
19646 fi
19647 done
19648 IFS="$lt_save_ifs"
19649
19650 # Now substitute the updated list of available tags.
19651 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19652 mv "${ofile}T" "$ofile"
19653 chmod +x "$ofile"
19654 else
19655 rm -f "${ofile}T"
19656 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19657 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19658 { (exit 1); exit 1; }; }
19659 fi
19660 fi
19661
19662
19663
19664 # This can be used to rebuild libtool when needed
19665 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19666
19667 # Always use our own libtool.
19668 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19669
19670 # Prevent multiple expansion
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692 ac_ext=c
19693 ac_cpp='$CPP $CPPFLAGS'
19694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
19699 # On Suns, sometimes $CPP names a directory.
19700 if test -n "$CPP" && test -d "$CPP"; then
19701 CPP=
19702 fi
19703 if test -z "$CPP"; then
19704 if test "${ac_cv_prog_CPP+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 # Double quotes because CPP needs to be expanded
19708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19709 do
19710 ac_preproc_ok=false
19711 for ac_c_preproc_warn_flag in '' yes
19712 do
19713 # Use a header file that comes with gcc, so configuring glibc
19714 # with a fresh cross-compiler works.
19715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716 # <limits.h> exists even on freestanding compilers.
19717 # On the NeXT, cc -E runs the code through the compiler's parser,
19718 # not just through cpp. "Syntax error" is here to catch this case.
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #ifdef __STDC__
19726 # include <limits.h>
19727 #else
19728 # include <assert.h>
19729 #endif
19730 Syntax error
19731 _ACEOF
19732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } >/dev/null; then
19740 if test -s conftest.err; then
19741 ac_cpp_err=$ac_c_preproc_warn_flag
19742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19743 else
19744 ac_cpp_err=
19745 fi
19746 else
19747 ac_cpp_err=yes
19748 fi
19749 if test -z "$ac_cpp_err"; then
19750 :
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 # Broken: fails on valid input.
19756 continue
19757 fi
19758 rm -f conftest.err conftest.$ac_ext
19759
19760 # OK, works on sane cases. Now check whether non-existent headers
19761 # can be detected and how.
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <ac_nonexistent.h>
19769 _ACEOF
19770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } >/dev/null; then
19778 if test -s conftest.err; then
19779 ac_cpp_err=$ac_c_preproc_warn_flag
19780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19781 else
19782 ac_cpp_err=
19783 fi
19784 else
19785 ac_cpp_err=yes
19786 fi
19787 if test -z "$ac_cpp_err"; then
19788 # Broken: success on invalid input.
19789 continue
19790 else
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 # Passes both tests.
19795 ac_preproc_ok=:
19796 break
19797 fi
19798 rm -f conftest.err conftest.$ac_ext
19799
19800 done
19801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19802 rm -f conftest.err conftest.$ac_ext
19803 if $ac_preproc_ok; then
19804 break
19805 fi
19806
19807 done
19808 ac_cv_prog_CPP=$CPP
19809
19810 fi
19811 CPP=$ac_cv_prog_CPP
19812 else
19813 ac_cv_prog_CPP=$CPP
19814 fi
19815 echo "$as_me:$LINENO: result: $CPP" >&5
19816 echo "${ECHO_T}$CPP" >&6
19817 ac_preproc_ok=false
19818 for ac_c_preproc_warn_flag in '' yes
19819 do
19820 # Use a header file that comes with gcc, so configuring glibc
19821 # with a fresh cross-compiler works.
19822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19823 # <limits.h> exists even on freestanding compilers.
19824 # On the NeXT, cc -E runs the code through the compiler's parser,
19825 # not just through cpp. "Syntax error" is here to catch this case.
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h. */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 #ifdef __STDC__
19833 # include <limits.h>
19834 #else
19835 # include <assert.h>
19836 #endif
19837 Syntax error
19838 _ACEOF
19839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } >/dev/null; then
19847 if test -s conftest.err; then
19848 ac_cpp_err=$ac_c_preproc_warn_flag
19849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19850 else
19851 ac_cpp_err=
19852 fi
19853 else
19854 ac_cpp_err=yes
19855 fi
19856 if test -z "$ac_cpp_err"; then
19857 :
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 # Broken: fails on valid input.
19863 continue
19864 fi
19865 rm -f conftest.err conftest.$ac_ext
19866
19867 # OK, works on sane cases. Now check whether non-existent headers
19868 # can be detected and how.
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <ac_nonexistent.h>
19876 _ACEOF
19877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } >/dev/null; then
19885 if test -s conftest.err; then
19886 ac_cpp_err=$ac_c_preproc_warn_flag
19887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19888 else
19889 ac_cpp_err=
19890 fi
19891 else
19892 ac_cpp_err=yes
19893 fi
19894 if test -z "$ac_cpp_err"; then
19895 # Broken: success on invalid input.
19896 continue
19897 else
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 # Passes both tests.
19902 ac_preproc_ok=:
19903 break
19904 fi
19905 rm -f conftest.err conftest.$ac_ext
19906
19907 done
19908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19909 rm -f conftest.err conftest.$ac_ext
19910 if $ac_preproc_ok; then
19911 :
19912 else
19913 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19914 See \`config.log' for more details." >&5
19915 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19916 See \`config.log' for more details." >&2;}
19917 { (exit 1); exit 1; }; }
19918 fi
19919
19920 ac_ext=c
19921 ac_cpp='$CPP $CPPFLAGS'
19922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926 ac_ext=cc
19927 ac_cpp='$CXXCPP $CPPFLAGS'
19928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19931 if test -n "$ac_tool_prefix"; then
19932 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19933 do
19934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19936 echo "$as_me:$LINENO: checking for $ac_word" >&5
19937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19938 if test "${ac_cv_prog_CXX+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 if test -n "$CXX"; then
19942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19943 else
19944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945 for as_dir in $PATH
19946 do
19947 IFS=$as_save_IFS
19948 test -z "$as_dir" && as_dir=.
19949 for ac_exec_ext in '' $ac_executable_extensions; do
19950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19953 break 2
19954 fi
19955 done
19956 done
19957
19958 fi
19959 fi
19960 CXX=$ac_cv_prog_CXX
19961 if test -n "$CXX"; then
19962 echo "$as_me:$LINENO: result: $CXX" >&5
19963 echo "${ECHO_T}$CXX" >&6
19964 else
19965 echo "$as_me:$LINENO: result: no" >&5
19966 echo "${ECHO_T}no" >&6
19967 fi
19968
19969 test -n "$CXX" && break
19970 done
19971 fi
19972 if test -z "$CXX"; then
19973 ac_ct_CXX=$CXX
19974 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19975 do
19976 # Extract the first word of "$ac_prog", so it can be a program name with args.
19977 set dummy $ac_prog; ac_word=$2
19978 echo "$as_me:$LINENO: checking for $ac_word" >&5
19979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19980 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983 if test -n "$ac_ct_CXX"; then
19984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19985 else
19986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19987 for as_dir in $PATH
19988 do
19989 IFS=$as_save_IFS
19990 test -z "$as_dir" && as_dir=.
19991 for ac_exec_ext in '' $ac_executable_extensions; do
19992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19993 ac_cv_prog_ac_ct_CXX="$ac_prog"
19994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19995 break 2
19996 fi
19997 done
19998 done
19999
20000 fi
20001 fi
20002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20003 if test -n "$ac_ct_CXX"; then
20004 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20005 echo "${ECHO_T}$ac_ct_CXX" >&6
20006 else
20007 echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6
20009 fi
20010
20011 test -n "$ac_ct_CXX" && break
20012 done
20013 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20014
20015 CXX=$ac_ct_CXX
20016 fi
20017
20018
20019 # Provide some information about the compiler.
20020 echo "$as_me:$LINENO:" \
20021 "checking for C++ compiler version" >&5
20022 ac_compiler=`set X $ac_compile; echo $2`
20023 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20024 (eval $ac_compiler --version </dev/null >&5) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }
20028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20029 (eval $ac_compiler -v </dev/null >&5) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }
20033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20034 (eval $ac_compiler -V </dev/null >&5) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }
20038
20039 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20040 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20041 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050
20051 int
20052 main ()
20053 {
20054 #ifndef __GNUC__
20055 choke me
20056 #endif
20057
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_compiler_gnu=yes
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 ac_compiler_gnu=no
20089 fi
20090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20092
20093 fi
20094 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20095 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20096 GXX=`test $ac_compiler_gnu = yes && echo yes`
20097 ac_test_CXXFLAGS=${CXXFLAGS+set}
20098 ac_save_CXXFLAGS=$CXXFLAGS
20099 CXXFLAGS="-g"
20100 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20101 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20102 if test "${ac_cv_prog_cxx_g+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h. */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111
20112 int
20113 main ()
20114 {
20115
20116 ;
20117 return 0;
20118 }
20119 _ACEOF
20120 rm -f conftest.$ac_objext
20121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122 (eval $ac_compile) 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
20129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_cv_prog_cxx_g=yes
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146 ac_cv_prog_cxx_g=no
20147 fi
20148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20149 fi
20150 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20151 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20152 if test "$ac_test_CXXFLAGS" = set; then
20153 CXXFLAGS=$ac_save_CXXFLAGS
20154 elif test $ac_cv_prog_cxx_g = yes; then
20155 if test "$GXX" = yes; then
20156 CXXFLAGS="-g -O2"
20157 else
20158 CXXFLAGS="-g"
20159 fi
20160 else
20161 if test "$GXX" = yes; then
20162 CXXFLAGS="-O2"
20163 else
20164 CXXFLAGS=
20165 fi
20166 fi
20167 for ac_declaration in \
20168 '' \
20169 'extern "C" void std::exit (int) throw (); using std::exit;' \
20170 'extern "C" void std::exit (int); using std::exit;' \
20171 'extern "C" void exit (int) throw ();' \
20172 'extern "C" void exit (int);' \
20173 'void exit (int);'
20174 do
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h. */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 $ac_declaration
20182 #include <stdlib.h>
20183 int
20184 main ()
20185 {
20186 exit (42);
20187 ;
20188 return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext
20192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193 (eval $ac_compile) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
20200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 :
20213 else
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 continue
20218 fi
20219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h. */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226 $ac_declaration
20227 int
20228 main ()
20229 {
20230 exit (42);
20231 ;
20232 return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
20250 { ac_try='test -s conftest.$ac_objext'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 break
20257 else
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 fi
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 done
20264 rm -f conftest*
20265 if test -n "$ac_declaration"; then
20266 echo '#ifdef __cplusplus' >>confdefs.h
20267 echo $ac_declaration >>confdefs.h
20268 echo '#endif' >>confdefs.h
20269 fi
20270
20271 ac_ext=c
20272 ac_cpp='$CPP $CPPFLAGS'
20273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20276
20277 depcc="$CXX" am_compiler_list=
20278
20279 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20280 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20281 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20285 # We make a subdir and do the tests there. Otherwise we can end up
20286 # making bogus files that we don't know about and never remove. For
20287 # instance it was reported that on HP-UX the gcc test will end up
20288 # making a dummy file named `D' -- because `-MD' means `put the output
20289 # in D'.
20290 mkdir conftest.dir
20291 # Copy depcomp to subdir because otherwise we won't find it if we're
20292 # using a relative directory.
20293 cp "$am_depcomp" conftest.dir
20294 cd conftest.dir
20295 # We will build objects and dependencies in a subdirectory because
20296 # it helps to detect inapplicable dependency modes. For instance
20297 # both Tru64's cc and ICC support -MD to output dependencies as a
20298 # side effect of compilation, but ICC will put the dependencies in
20299 # the current directory while Tru64 will put them in the object
20300 # directory.
20301 mkdir sub
20302
20303 am_cv_CXX_dependencies_compiler_type=none
20304 if test "$am_compiler_list" = ""; then
20305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20306 fi
20307 for depmode in $am_compiler_list; do
20308 # Setup a source with many dependencies, because some compilers
20309 # like to wrap large dependency lists on column 80 (with \), and
20310 # we should not choose a depcomp mode which is confused by this.
20311 #
20312 # We need to recreate these files for each test, as the compiler may
20313 # overwrite some of them when testing with obscure command lines.
20314 # This happens at least with the AIX C compiler.
20315 : > sub/conftest.c
20316 for i in 1 2 3 4 5 6; do
20317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20319 # Solaris 8's {/usr,}/bin/sh.
20320 touch sub/conftst$i.h
20321 done
20322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20323
20324 case $depmode in
20325 nosideeffect)
20326 # after this tag, mechanisms are not by side-effect, so they'll
20327 # only be used when explicitly requested
20328 if test "x$enable_dependency_tracking" = xyes; then
20329 continue
20330 else
20331 break
20332 fi
20333 ;;
20334 none) break ;;
20335 esac
20336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20337 # mode. It turns out that the SunPro C++ compiler does not properly
20338 # handle `-M -o', and we need to detect this.
20339 if depmode=$depmode \
20340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20343 >/dev/null 2>conftest.err &&
20344 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20345 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20346 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20347 # icc doesn't choke on unknown options, it will just issue warnings
20348 # or remarks (even with -Werror). So we grep stderr for any message
20349 # that says an option was ignored or not supported.
20350 # When given -MP, icc 7.0 and 7.1 complain thusly:
20351 # icc: Command line warning: ignoring option '-M'; no argument required
20352 # The diagnosis changed in icc 8.0:
20353 # icc: Command line remark: option '-MP' not supported
20354 if (grep 'ignoring option' conftest.err ||
20355 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20356 am_cv_CXX_dependencies_compiler_type=$depmode
20357 break
20358 fi
20359 fi
20360 done
20361
20362 cd ..
20363 rm -rf conftest.dir
20364 else
20365 am_cv_CXX_dependencies_compiler_type=none
20366 fi
20367
20368 fi
20369 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20370 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20371 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20372
20373
20374
20375 if
20376 test "x$enable_dependency_tracking" != xno \
20377 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20378 am__fastdepCXX_TRUE=
20379 am__fastdepCXX_FALSE='#'
20380 else
20381 am__fastdepCXX_TRUE='#'
20382 am__fastdepCXX_FALSE=
20383 fi
20384
20385
20386
20387 if test "$cross_compiling" = yes; then
20388 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20389 See \`config.log' for more details." >&5
20390 echo "$as_me: error: cannot run test program while cross compiling
20391 See \`config.log' for more details." >&2;}
20392 { (exit 1); exit 1; }; }
20393 else
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400
20401 #include <unistd.h>
20402 main()
20403 {
20404 #if defined(__GNUC__) && \
20405 ! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
20406 return 1;
20407 #endif
20408 return 0;
20409 }
20410
20411 _ACEOF
20412 rm -f conftest$ac_exeext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414 (eval $ac_link) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 :
20424 else
20425 echo "$as_me: program exited with status $ac_status" >&5
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ( exit $ac_status )
20430 echo "need at least gcc 2.95 to compile correctly"
20431 exit 1
20432 fi
20433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20434 fi
20435
20436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20437 # for constant arguments. Useless!
20438 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20439 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20440 if test "${ac_cv_working_alloca_h+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443 cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h. */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <alloca.h>
20450 int
20451 main ()
20452 {
20453 char *p = (char *) alloca (2 * sizeof (int));
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460 (eval $ac_link) 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); }; } &&
20473 { ac_try='test -s conftest$ac_exeext'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_cv_working_alloca_h=yes
20480 else
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 ac_cv_working_alloca_h=no
20485 fi
20486 rm -f conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20488 fi
20489 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20490 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20491 if test $ac_cv_working_alloca_h = yes; then
20492
20493 cat >>confdefs.h <<\_ACEOF
20494 #define HAVE_ALLOCA_H 1
20495 _ACEOF
20496
20497 fi
20498
20499 echo "$as_me:$LINENO: checking for alloca" >&5
20500 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20501 if test "${ac_cv_func_alloca_works+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #ifdef __GNUC__
20511 # define alloca __builtin_alloca
20512 #else
20513 # ifdef _MSC_VER
20514 # include <malloc.h>
20515 # define alloca _alloca
20516 # else
20517 # if HAVE_ALLOCA_H
20518 # include <alloca.h>
20519 # else
20520 # ifdef _AIX
20521 #pragma alloca
20522 # else
20523 # ifndef alloca /* predefined by HP cc +Olibcalls */
20524 char *alloca ();
20525 # endif
20526 # endif
20527 # endif
20528 # endif
20529 #endif
20530
20531 int
20532 main ()
20533 {
20534 char *p = (char *) alloca (1);
20535 ;
20536 return 0;
20537 }
20538 _ACEOF
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541 (eval $ac_link) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_func_alloca_works=yes
20561 else
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20564
20565 ac_cv_func_alloca_works=no
20566 fi
20567 rm -f conftest.err conftest.$ac_objext \
20568 conftest$ac_exeext conftest.$ac_ext
20569 fi
20570 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20571 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20572
20573 if test $ac_cv_func_alloca_works = yes; then
20574
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_ALLOCA 1
20577 _ACEOF
20578
20579 else
20580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20581 # that cause trouble. Some versions do not even contain alloca or
20582 # contain a buggy version. If you still want to use their alloca,
20583 # use ar to extract alloca.o from them instead of compiling alloca.c.
20584
20585 ALLOCA=alloca.$ac_objext
20586
20587 cat >>confdefs.h <<\_ACEOF
20588 #define C_ALLOCA 1
20589 _ACEOF
20590
20591
20592 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20593 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20594 if test "${ac_cv_os_cray+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h. */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #if defined(CRAY) && ! defined(CRAY2)
20604 webecray
20605 #else
20606 wenotbecray
20607 #endif
20608
20609 _ACEOF
20610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20611 $EGREP "webecray" >/dev/null 2>&1; then
20612 ac_cv_os_cray=yes
20613 else
20614 ac_cv_os_cray=no
20615 fi
20616 rm -f conftest*
20617
20618 fi
20619 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20620 echo "${ECHO_T}$ac_cv_os_cray" >&6
20621 if test $ac_cv_os_cray = yes; then
20622 for ac_func in _getb67 GETB67 getb67; do
20623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624 echo "$as_me:$LINENO: checking for $ac_func" >&5
20625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20626 if eval "test \"\${$as_ac_var+set}\" = set"; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20637 #define $ac_func innocuous_$ac_func
20638
20639 /* System header to define __stub macros and hopefully few prototypes,
20640 which can conflict with char $ac_func (); below.
20641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642 <limits.h> exists even on freestanding compilers. */
20643
20644 #ifdef __STDC__
20645 # include <limits.h>
20646 #else
20647 # include <assert.h>
20648 #endif
20649
20650 #undef $ac_func
20651
20652 /* Override any gcc2 internal prototype to avoid an error. */
20653 #ifdef __cplusplus
20654 extern "C"
20655 {
20656 #endif
20657 /* We use char because int might match the return type of a gcc2
20658 builtin and then its argument prototype would still apply. */
20659 char $ac_func ();
20660 /* The GNU C library defines this for functions which it implements
20661 to always fail with ENOSYS. Some functions are actually named
20662 something starting with __ and the normal name is an alias. */
20663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20664 choke me
20665 #else
20666 char (*f) () = $ac_func;
20667 #endif
20668 #ifdef __cplusplus
20669 }
20670 #endif
20671
20672 int
20673 main ()
20674 {
20675 return f != $ac_func;
20676 ;
20677 return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682 (eval $ac_link) 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest$ac_exeext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 eval "$as_ac_var=yes"
20702 else
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 eval "$as_ac_var=no"
20707 fi
20708 rm -f conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20710 fi
20711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20713 if test `eval echo '${'$as_ac_var'}'` = yes; then
20714
20715 cat >>confdefs.h <<_ACEOF
20716 #define CRAY_STACKSEG_END $ac_func
20717 _ACEOF
20718
20719 break
20720 fi
20721
20722 done
20723 fi
20724
20725 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20726 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20727 if test "${ac_cv_c_stack_direction+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730 if test "$cross_compiling" = yes; then
20731 ac_cv_c_stack_direction=0
20732 else
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h. */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 int
20740 find_stack_direction ()
20741 {
20742 static char *addr = 0;
20743 auto char dummy;
20744 if (addr == 0)
20745 {
20746 addr = &dummy;
20747 return find_stack_direction ();
20748 }
20749 else
20750 return (&dummy > addr) ? 1 : -1;
20751 }
20752
20753 int
20754 main ()
20755 {
20756 exit (find_stack_direction () < 0);
20757 }
20758 _ACEOF
20759 rm -f conftest$ac_exeext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761 (eval $ac_link) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 ac_cv_c_stack_direction=1
20771 else
20772 echo "$as_me: program exited with status $ac_status" >&5
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ( exit $ac_status )
20777 ac_cv_c_stack_direction=-1
20778 fi
20779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20780 fi
20781 fi
20782 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20783 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20784
20785 cat >>confdefs.h <<_ACEOF
20786 #define STACK_DIRECTION $ac_cv_c_stack_direction
20787 _ACEOF
20788
20789
20790 fi
20791
20792
20793 echo "$as_me:$LINENO: checking for getopt_long in -lc" >&5
20794 echo $ECHO_N "checking for getopt_long in -lc... $ECHO_C" >&6
20795 if test "${ac_cv_lib_c_getopt_long+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798 ac_check_lib_save_LIBS=$LIBS
20799 LIBS="-lc $LIBS"
20800 cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h. */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806
20807 /* Override any gcc2 internal prototype to avoid an error. */
20808 #ifdef __cplusplus
20809 extern "C"
20810 #endif
20811 /* We use char because int might match the return type of a gcc2
20812 builtin and then its argument prototype would still apply. */
20813 char getopt_long ();
20814 int
20815 main ()
20816 {
20817 getopt_long ();
20818 ;
20819 return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>conftest.er1
20825 ac_status=$?
20826 grep -v '^ *+' conftest.er1 >conftest.err
20827 rm -f conftest.er1
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } &&
20831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest$ac_exeext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_lib_c_getopt_long=yes
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ac_cv_lib_c_getopt_long=no
20849 fi
20850 rm -f conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852 LIBS=$ac_check_lib_save_LIBS
20853 fi
20854 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long" >&5
20855 echo "${ECHO_T}$ac_cv_lib_c_getopt_long" >&6
20856 if test $ac_cv_lib_c_getopt_long = yes; then
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_GETOPT_LONG 1
20859 _ACEOF
20860
20861 fi
20862
20863
20864 echo "$as_me:$LINENO: checking for alarm in -lc" >&5
20865 echo $ECHO_N "checking for alarm in -lc... $ECHO_C" >&6
20866 if test "${ac_cv_lib_c_alarm+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lc $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877
20878 /* Override any gcc2 internal prototype to avoid an error. */
20879 #ifdef __cplusplus
20880 extern "C"
20881 #endif
20882 /* We use char because int might match the return type of a gcc2
20883 builtin and then its argument prototype would still apply. */
20884 char alarm ();
20885 int
20886 main ()
20887 {
20888 alarm ();
20889 ;
20890 return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; } &&
20908 { ac_try='test -s conftest$ac_exeext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_lib_c_alarm=yes
20915 else
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 ac_cv_lib_c_alarm=no
20920 fi
20921 rm -f conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_check_lib_save_LIBS
20924 fi
20925 echo "$as_me:$LINENO: result: $ac_cv_lib_c_alarm" >&5
20926 echo "${ECHO_T}$ac_cv_lib_c_alarm" >&6
20927 if test $ac_cv_lib_c_alarm = yes; then
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_ALARM 1
20930 _ACEOF
20931
20932 fi
20933
20934
20935
20936 for ac_header in netinet/in.h
20937 do
20938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20940 echo "$as_me:$LINENO: checking for $ac_header" >&5
20941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 fi
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20947 else
20948 # Is the header compilable?
20949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20951 cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h. */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 $ac_includes_default
20958 #include <$ac_header>
20959 _ACEOF
20960 rm -f conftest.$ac_objext
20961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20962 (eval $ac_compile) 2>conftest.er1
20963 ac_status=$?
20964 grep -v '^ *+' conftest.er1 >conftest.err
20965 rm -f conftest.er1
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } &&
20969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_header_compiler=yes
20982 else
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ac_header_compiler=no
20987 fi
20988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20990 echo "${ECHO_T}$ac_header_compiler" >&6
20991
20992 # Is the header present?
20993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <$ac_header>
21002 _ACEOF
21003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21004 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
21011 if test -s conftest.err; then
21012 ac_cpp_err=$ac_c_preproc_warn_flag
21013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21014 else
21015 ac_cpp_err=
21016 fi
21017 else
21018 ac_cpp_err=yes
21019 fi
21020 if test -z "$ac_cpp_err"; then
21021 ac_header_preproc=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026 ac_header_preproc=no
21027 fi
21028 rm -f conftest.err conftest.$ac_ext
21029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030 echo "${ECHO_T}$ac_header_preproc" >&6
21031
21032 # So? What about this header?
21033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21034 yes:no: )
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21039 ac_header_preproc=yes
21040 ;;
21041 no:yes:* )
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21054 (
21055 cat <<\_ASBOX
21056 ## ------------------------------------------ ##
21057 ## Report this to the AC_PACKAGE_NAME lists. ##
21058 ## ------------------------------------------ ##
21059 _ASBOX
21060 ) |
21061 sed "s/^/$as_me: WARNING: /" >&2
21062 ;;
21063 esac
21064 echo "$as_me:$LINENO: checking for $ac_header" >&5
21065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069 eval "$as_ac_Header=\$ac_header_preproc"
21070 fi
21071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21073
21074 fi
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078 _ACEOF
21079
21080 fi
21081
21082 done
21083
21084
21085
21086 for ac_header in string.h
21087 do
21088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21090 echo "$as_me:$LINENO: checking for $ac_header" >&5
21091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 fi
21095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21097 else
21098 # Is the header compilable?
21099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21101 cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h. */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 $ac_includes_default
21108 #include <$ac_header>
21109 _ACEOF
21110 rm -f conftest.$ac_objext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112 (eval $ac_compile) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest.$ac_objext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_header_compiler=yes
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ac_header_compiler=no
21137 fi
21138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21140 echo "${ECHO_T}$ac_header_compiler" >&6
21141
21142 # Is the header present?
21143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h. */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 #include <$ac_header>
21152 _ACEOF
21153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } >/dev/null; then
21161 if test -s conftest.err; then
21162 ac_cpp_err=$ac_c_preproc_warn_flag
21163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21164 else
21165 ac_cpp_err=
21166 fi
21167 else
21168 ac_cpp_err=yes
21169 fi
21170 if test -z "$ac_cpp_err"; then
21171 ac_header_preproc=yes
21172 else
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 ac_header_preproc=no
21177 fi
21178 rm -f conftest.err conftest.$ac_ext
21179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21180 echo "${ECHO_T}$ac_header_preproc" >&6
21181
21182 # So? What about this header?
21183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21184 yes:no: )
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21189 ac_header_preproc=yes
21190 ;;
21191 no:yes:* )
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21204 (
21205 cat <<\_ASBOX
21206 ## ------------------------------------------ ##
21207 ## Report this to the AC_PACKAGE_NAME lists. ##
21208 ## ------------------------------------------ ##
21209 _ASBOX
21210 ) |
21211 sed "s/^/$as_me: WARNING: /" >&2
21212 ;;
21213 esac
21214 echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219 eval "$as_ac_Header=\$ac_header_preproc"
21220 fi
21221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21223
21224 fi
21225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21228 _ACEOF
21229
21230 fi
21231
21232 done
21233
21234
21235
21236 for ac_header in libintl.h
21237 do
21238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21240 echo "$as_me:$LINENO: checking for $ac_header" >&5
21241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 fi
21245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21247 else
21248 # Is the header compilable?
21249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21251 cat >conftest.$ac_ext <<_ACEOF
21252 /* confdefs.h. */
21253 _ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21257 $ac_includes_default
21258 #include <$ac_header>
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262 (eval $ac_compile) 2>conftest.er1
21263 ac_status=$?
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_header_compiler=yes
21282 else
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ac_header_compiler=no
21287 fi
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6
21291
21292 # Is the header present?
21293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <$ac_header>
21302 _ACEOF
21303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } >/dev/null; then
21311 if test -s conftest.err; then
21312 ac_cpp_err=$ac_c_preproc_warn_flag
21313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21314 else
21315 ac_cpp_err=
21316 fi
21317 else
21318 ac_cpp_err=yes
21319 fi
21320 if test -z "$ac_cpp_err"; then
21321 ac_header_preproc=yes
21322 else
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_header_preproc=no
21327 fi
21328 rm -f conftest.err conftest.$ac_ext
21329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21330 echo "${ECHO_T}$ac_header_preproc" >&6
21331
21332 # So? What about this header?
21333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334 yes:no: )
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21339 ac_header_preproc=yes
21340 ;;
21341 no:yes:* )
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21354 (
21355 cat <<\_ASBOX
21356 ## ------------------------------------------ ##
21357 ## Report this to the AC_PACKAGE_NAME lists. ##
21358 ## ------------------------------------------ ##
21359 _ASBOX
21360 ) |
21361 sed "s/^/$as_me: WARNING: /" >&2
21362 ;;
21363 esac
21364 echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 eval "$as_ac_Header=\$ac_header_preproc"
21370 fi
21371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21373
21374 fi
21375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21378 _ACEOF
21379
21380 fi
21381
21382 done
21383
21384
21385 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21386 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21387 if test "${ac_cv_c_const+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396
21397 int
21398 main ()
21399 {
21400 /* FIXME: Include the comments suggested by Paul. */
21401 #ifndef __cplusplus
21402 /* Ultrix mips cc rejects this. */
21403 typedef int charset[2];
21404 const charset x;
21405 /* SunOS 4.1.1 cc rejects this. */
21406 char const *const *ccp;
21407 char **p;
21408 /* NEC SVR4.0.2 mips cc rejects this. */
21409 struct point {int x, y;};
21410 static struct point const zero = {0,0};
21411 /* AIX XL C 1.02.0.0 rejects this.
21412 It does not let you subtract one const X* pointer from another in
21413 an arm of an if-expression whose if-part is not a constant
21414 expression */
21415 const char *g = "string";
21416 ccp = &g + (g ? g-g : 0);
21417 /* HPUX 7.0 cc rejects these. */
21418 ++ccp;
21419 p = (char**) ccp;
21420 ccp = (char const *const *) p;
21421 { /* SCO 3.2v4 cc rejects this. */
21422 char *t;
21423 char const *s = 0 ? (char *) 0 : (char const *) 0;
21424
21425 *t++ = 0;
21426 }
21427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21428 int x[] = {25, 17};
21429 const int *foo = &x[0];
21430 ++foo;
21431 }
21432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21433 typedef const int *iptr;
21434 iptr p = 0;
21435 ++p;
21436 }
21437 { /* AIX XL C 1.02.0.0 rejects this saying
21438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21439 struct s { int j; const int *ap[3]; };
21440 struct s *b; b->j = 5;
21441 }
21442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21443 const int foo = 10;
21444 }
21445 #endif
21446
21447 ;
21448 return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453 (eval $ac_compile) 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } &&
21460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest.$ac_objext'
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ac_cv_c_const=yes
21473 else
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477 ac_cv_c_const=no
21478 fi
21479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21480 fi
21481 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21482 echo "${ECHO_T}$ac_cv_c_const" >&6
21483 if test $ac_cv_c_const = no; then
21484
21485 cat >>confdefs.h <<\_ACEOF
21486 #define const
21487 _ACEOF
21488
21489 fi
21490
21491
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 #include <stdio.h>
21499
21500 _ACEOF
21501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21502 $EGREP "vsnprintf" >/dev/null 2>&1; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_VSNPRINTF 1
21505 _ACEOF
21506
21507 fi
21508 rm -f conftest*
21509
21510
21511 echo "$as_me:$LINENO: checking for unsigned short int" >&5
21512 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6
21513 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21523 int
21524 main ()
21525 {
21526 if ((unsigned short int *) 0)
21527 return 0;
21528 if (sizeof (unsigned short int))
21529 return 0;
21530 ;
21531 return 0;
21532 }
21533 _ACEOF
21534 rm -f conftest.$ac_objext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21536 (eval $ac_compile) 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } &&
21543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_type_unsigned_short_int=yes
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_cv_type_unsigned_short_int=no
21561 fi
21562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563 fi
21564 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
21565 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6
21566
21567 echo "$as_me:$LINENO: checking size of unsigned short int" >&5
21568 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6
21569 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572 if test "$ac_cv_type_unsigned_short_int" = yes; then
21573 # The cast to unsigned long works around a bug in the HP C Compiler
21574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21576 # This bug is HP SR number 8606223364.
21577 if test "$cross_compiling" = yes; then
21578 # Depending upon the size, compute the lo and hi bounds.
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21586 int
21587 main ()
21588 {
21589 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)];
21590 test_array [0] = 0
21591
21592 ;
21593 return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try='test -s conftest.$ac_objext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_lo=0 ac_mid=0
21618 while :; do
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h. */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 $ac_includes_default
21626 int
21627 main ()
21628 {
21629 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
21630 test_array [0] = 0
21631
21632 ;
21633 return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; } &&
21651 { ac_try='test -s conftest.$ac_objext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ac_hi=$ac_mid; break
21658 else
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 ac_lo=`expr $ac_mid + 1`
21663 if test $ac_lo -le $ac_mid; then
21664 ac_lo= ac_hi=
21665 break
21666 fi
21667 ac_mid=`expr 2 '*' $ac_mid + 1`
21668 fi
21669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21670 done
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 int
21683 main ()
21684 {
21685 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)];
21686 test_array [0] = 0
21687
21688 ;
21689 return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694 (eval $ac_compile) 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_hi=-1 ac_mid=-1
21714 while :; do
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 $ac_includes_default
21722 int
21723 main ()
21724 {
21725 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)];
21726 test_array [0] = 0
21727
21728 ;
21729 return 0;
21730 }
21731 _ACEOF
21732 rm -f conftest.$ac_objext
21733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21734 (eval $ac_compile) 2>conftest.er1
21735 ac_status=$?
21736 grep -v '^ *+' conftest.er1 >conftest.err
21737 rm -f conftest.er1
21738 cat conftest.err >&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } &&
21747 { ac_try='test -s conftest.$ac_objext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753 ac_lo=$ac_mid; break
21754 else
21755 echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758 ac_hi=`expr '(' $ac_mid ')' - 1`
21759 if test $ac_mid -le $ac_hi; then
21760 ac_lo= ac_hi=
21761 break
21762 fi
21763 ac_mid=`expr 2 '*' $ac_mid`
21764 fi
21765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766 done
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 ac_lo= ac_hi=
21772 fi
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774 fi
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776 # Binary search between lo and hi bounds.
21777 while test "x$ac_lo" != "x$ac_hi"; do
21778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 $ac_includes_default
21786 int
21787 main ()
21788 {
21789 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
21790 test_array [0] = 0
21791
21792 ;
21793 return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798 (eval $ac_compile) 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest.$ac_objext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 ac_hi=$ac_mid
21818 else
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 ac_lo=`expr '(' $ac_mid ')' + 1`
21823 fi
21824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825 done
21826 case $ac_lo in
21827 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
21828 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
21829 See \`config.log' for more details." >&5
21830 echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
21831 See \`config.log' for more details." >&2;}
21832 { (exit 1); exit 1; }; } ;;
21833 esac
21834 else
21835 if test "$cross_compiling" = yes; then
21836 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21837 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21838 { (exit 1); exit 1; }; }
21839 else
21840 cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h. */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 $ac_includes_default
21847 long longval () { return (long) (sizeof (unsigned short int)); }
21848 unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
21849 #include <stdio.h>
21850 #include <stdlib.h>
21851 int
21852 main ()
21853 {
21854
21855 FILE *f = fopen ("conftest.val", "w");
21856 if (! f)
21857 exit (1);
21858 if (((long) (sizeof (unsigned short int))) < 0)
21859 {
21860 long i = longval ();
21861 if (i != ((long) (sizeof (unsigned short int))))
21862 exit (1);
21863 fprintf (f, "%ld\n", i);
21864 }
21865 else
21866 {
21867 unsigned long i = ulongval ();
21868 if (i != ((long) (sizeof (unsigned short int))))
21869 exit (1);
21870 fprintf (f, "%lu\n", i);
21871 }
21872 exit (ferror (f) || fclose (f) != 0);
21873
21874 ;
21875 return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest$ac_exeext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880 (eval $ac_link) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
21890 else
21891 echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 ( exit $ac_status )
21896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
21897 See \`config.log' for more details." >&5
21898 echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
21899 See \`config.log' for more details." >&2;}
21900 { (exit 1); exit 1; }; }
21901 fi
21902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903 fi
21904 fi
21905 rm -f conftest.val
21906 else
21907 ac_cv_sizeof_unsigned_short_int=0
21908 fi
21909 fi
21910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
21911 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
21912 cat >>confdefs.h <<_ACEOF
21913 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
21914 _ACEOF
21915
21916
21917 echo "$as_me:$LINENO: checking for unsigned long int" >&5
21918 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6
21919 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 $ac_includes_default
21929 int
21930 main ()
21931 {
21932 if ((unsigned long int *) 0)
21933 return 0;
21934 if (sizeof (unsigned long int))
21935 return 0;
21936 ;
21937 return 0;
21938 }
21939 _ACEOF
21940 rm -f conftest.$ac_objext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942 (eval $ac_compile) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; } &&
21955 { ac_try='test -s conftest.$ac_objext'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 ac_cv_type_unsigned_long_int=yes
21962 else
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21965
21966 ac_cv_type_unsigned_long_int=no
21967 fi
21968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21969 fi
21970 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
21971 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6
21972
21973 echo "$as_me:$LINENO: checking size of unsigned long int" >&5
21974 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6
21975 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
21977 else
21978 if test "$ac_cv_type_unsigned_long_int" = yes; then
21979 # The cast to unsigned long works around a bug in the HP C Compiler
21980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21982 # This bug is HP SR number 8606223364.
21983 if test "$cross_compiling" = yes; then
21984 # Depending upon the size, compute the lo and hi bounds.
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 int
21993 main ()
21994 {
21995 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)];
21996 test_array [0] = 0
21997
21998 ;
21999 return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest.$ac_objext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_lo=0 ac_mid=0
22024 while :; do
22025 cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h. */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031 $ac_includes_default
22032 int
22033 main ()
22034 {
22035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
22036 test_array [0] = 0
22037
22038 ;
22039 return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; } &&
22057 { ac_try='test -s conftest.$ac_objext'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_hi=$ac_mid; break
22064 else
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068 ac_lo=`expr $ac_mid + 1`
22069 if test $ac_lo -le $ac_mid; then
22070 ac_lo= ac_hi=
22071 break
22072 fi
22073 ac_mid=`expr 2 '*' $ac_mid + 1`
22074 fi
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076 done
22077 else
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h. */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 $ac_includes_default
22088 int
22089 main ()
22090 {
22091 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)];
22092 test_array [0] = 0
22093
22094 ;
22095 return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22100 (eval $ac_compile) 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } &&
22107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest.$ac_objext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 ac_hi=-1 ac_mid=-1
22120 while :; do
22121 cat >conftest.$ac_ext <<_ACEOF
22122 /* confdefs.h. */
22123 _ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h. */
22127 $ac_includes_default
22128 int
22129 main ()
22130 {
22131 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)];
22132 test_array [0] = 0
22133
22134 ;
22135 return 0;
22136 }
22137 _ACEOF
22138 rm -f conftest.$ac_objext
22139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140 (eval $ac_compile) 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_lo=$ac_mid; break
22160 else
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22163
22164 ac_hi=`expr '(' $ac_mid ')' - 1`
22165 if test $ac_mid -le $ac_hi; then
22166 ac_lo= ac_hi=
22167 break
22168 fi
22169 ac_mid=`expr 2 '*' $ac_mid`
22170 fi
22171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22172 done
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_lo= ac_hi=
22178 fi
22179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22180 fi
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182 # Binary search between lo and hi bounds.
22183 while test "x$ac_lo" != "x$ac_hi"; do
22184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 int
22193 main ()
22194 {
22195 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
22196 test_array [0] = 0
22197
22198 ;
22199 return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest.$ac_objext
22203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22204 (eval $ac_compile) 2>conftest.er1
22205 ac_status=$?
22206 grep -v '^ *+' conftest.er1 >conftest.err
22207 rm -f conftest.er1
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; } &&
22217 { ac_try='test -s conftest.$ac_objext'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ac_hi=$ac_mid
22224 else
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ac_lo=`expr '(' $ac_mid ')' + 1`
22229 fi
22230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 done
22232 case $ac_lo in
22233 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
22234 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
22235 See \`config.log' for more details." >&5
22236 echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
22237 See \`config.log' for more details." >&2;}
22238 { (exit 1); exit 1; }; } ;;
22239 esac
22240 else
22241 if test "$cross_compiling" = yes; then
22242 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22243 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22244 { (exit 1); exit 1; }; }
22245 else
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 $ac_includes_default
22253 long longval () { return (long) (sizeof (unsigned long int)); }
22254 unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
22255 #include <stdio.h>
22256 #include <stdlib.h>
22257 int
22258 main ()
22259 {
22260
22261 FILE *f = fopen ("conftest.val", "w");
22262 if (! f)
22263 exit (1);
22264 if (((long) (sizeof (unsigned long int))) < 0)
22265 {
22266 long i = longval ();
22267 if (i != ((long) (sizeof (unsigned long int))))
22268 exit (1);
22269 fprintf (f, "%ld\n", i);
22270 }
22271 else
22272 {
22273 unsigned long i = ulongval ();
22274 if (i != ((long) (sizeof (unsigned long int))))
22275 exit (1);
22276 fprintf (f, "%lu\n", i);
22277 }
22278 exit (ferror (f) || fclose (f) != 0);
22279
22280 ;
22281 return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest$ac_exeext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286 (eval $ac_link) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
22296 else
22297 echo "$as_me: program exited with status $ac_status" >&5
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ( exit $ac_status )
22302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
22303 See \`config.log' for more details." >&5
22304 echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
22305 See \`config.log' for more details." >&2;}
22306 { (exit 1); exit 1; }; }
22307 fi
22308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22309 fi
22310 fi
22311 rm -f conftest.val
22312 else
22313 ac_cv_sizeof_unsigned_long_int=0
22314 fi
22315 fi
22316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22317 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22318 cat >>confdefs.h <<_ACEOF
22319 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
22320 _ACEOF
22321
22322
22323 echo "$as_me:$LINENO: checking for unsigned int" >&5
22324 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
22325 if test "${ac_cv_type_unsigned_int+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328 cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h. */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 $ac_includes_default
22335 int
22336 main ()
22337 {
22338 if ((unsigned int *) 0)
22339 return 0;
22340 if (sizeof (unsigned int))
22341 return 0;
22342 ;
22343 return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext
22347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22348 (eval $ac_compile) 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } &&
22355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try='test -s conftest.$ac_objext'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 ac_cv_type_unsigned_int=yes
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372 ac_cv_type_unsigned_int=no
22373 fi
22374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
22377 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
22378
22379 echo "$as_me:$LINENO: checking size of unsigned int" >&5
22380 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
22381 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 if test "$ac_cv_type_unsigned_int" = yes; then
22385 # The cast to unsigned long works around a bug in the HP C Compiler
22386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22388 # This bug is HP SR number 8606223364.
22389 if test "$cross_compiling" = yes; then
22390 # Depending upon the size, compute the lo and hi bounds.
22391 cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h. */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 int
22399 main ()
22400 {
22401 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
22402 test_array [0] = 0
22403
22404 ;
22405 return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22410 (eval $ac_compile) 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
22417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; } &&
22423 { ac_try='test -s conftest.$ac_objext'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; }; then
22429 ac_lo=0 ac_mid=0
22430 while :; do
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22438 int
22439 main ()
22440 {
22441 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
22442 test_array [0] = 0
22443
22444 ;
22445 return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; } &&
22463 { ac_try='test -s conftest.$ac_objext'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; }; then
22469 ac_hi=$ac_mid; break
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474 ac_lo=`expr $ac_mid + 1`
22475 if test $ac_lo -le $ac_mid; then
22476 ac_lo= ac_hi=
22477 break
22478 fi
22479 ac_mid=`expr 2 '*' $ac_mid + 1`
22480 fi
22481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22482 done
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h. */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 $ac_includes_default
22494 int
22495 main ()
22496 {
22497 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
22498 test_array [0] = 0
22499
22500 ;
22501 return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22507 ac_status=$?
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22525 ac_hi=-1 ac_mid=-1
22526 while :; do
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h. */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22534 int
22535 main ()
22536 {
22537 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
22538 test_array [0] = 0
22539
22540 ;
22541 return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546 (eval $ac_compile) 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try='test -s conftest.$ac_objext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ac_lo=$ac_mid; break
22566 else
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_hi=`expr '(' $ac_mid ')' - 1`
22571 if test $ac_mid -le $ac_hi; then
22572 ac_lo= ac_hi=
22573 break
22574 fi
22575 ac_mid=`expr 2 '*' $ac_mid`
22576 fi
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578 done
22579 else
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 ac_lo= ac_hi=
22584 fi
22585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22586 fi
22587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22588 # Binary search between lo and hi bounds.
22589 while test "x$ac_lo" != "x$ac_hi"; do
22590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22598 int
22599 main ()
22600 {
22601 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
22602 test_array [0] = 0
22603
22604 ;
22605 return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } &&
22623 { ac_try='test -s conftest.$ac_objext'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; }; then
22629 ac_hi=$ac_mid
22630 else
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 ac_lo=`expr '(' $ac_mid ')' + 1`
22635 fi
22636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22637 done
22638 case $ac_lo in
22639 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
22640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
22641 See \`config.log' for more details." >&5
22642 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
22643 See \`config.log' for more details." >&2;}
22644 { (exit 1); exit 1; }; } ;;
22645 esac
22646 else
22647 if test "$cross_compiling" = yes; then
22648 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22649 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22650 { (exit 1); exit 1; }; }
22651 else
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22659 long longval () { return (long) (sizeof (unsigned int)); }
22660 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
22661 #include <stdio.h>
22662 #include <stdlib.h>
22663 int
22664 main ()
22665 {
22666
22667 FILE *f = fopen ("conftest.val", "w");
22668 if (! f)
22669 exit (1);
22670 if (((long) (sizeof (unsigned int))) < 0)
22671 {
22672 long i = longval ();
22673 if (i != ((long) (sizeof (unsigned int))))
22674 exit (1);
22675 fprintf (f, "%ld\n", i);
22676 }
22677 else
22678 {
22679 unsigned long i = ulongval ();
22680 if (i != ((long) (sizeof (unsigned int))))
22681 exit (1);
22682 fprintf (f, "%lu\n", i);
22683 }
22684 exit (ferror (f) || fclose (f) != 0);
22685
22686 ;
22687 return 0;
22688 }
22689 _ACEOF
22690 rm -f conftest$ac_exeext
22691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22692 (eval $ac_link) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; }; then
22701 ac_cv_sizeof_unsigned_int=`cat conftest.val`
22702 else
22703 echo "$as_me: program exited with status $ac_status" >&5
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22706
22707 ( exit $ac_status )
22708 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
22709 See \`config.log' for more details." >&5
22710 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
22711 See \`config.log' for more details." >&2;}
22712 { (exit 1); exit 1; }; }
22713 fi
22714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22715 fi
22716 fi
22717 rm -f conftest.val
22718 else
22719 ac_cv_sizeof_unsigned_int=0
22720 fi
22721 fi
22722 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22723 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22724 cat >>confdefs.h <<_ACEOF
22725 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22726 _ACEOF
22727
22728
22729
22730 GSM_VERSION="1:4:0"
22731
22732
22733 LINGUAS="de"
22734 ALL_LINGUAS=$LINGUAS
22735
22736
22737 MKINSTALLDIRS=
22738 if test -n "$ac_aux_dir"; then
22739 case "$ac_aux_dir" in
22740 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22741 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22742 esac
22743 fi
22744 if test -z "$MKINSTALLDIRS"; then
22745 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22746 fi
22747
22748
22749
22750 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22752 # Check whether --enable-nls or --disable-nls was given.
22753 if test "${enable_nls+set}" = set; then
22754 enableval="$enable_nls"
22755 USE_NLS=$enableval
22756 else
22757 USE_NLS=yes
22758 fi;
22759 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22760 echo "${ECHO_T}$USE_NLS" >&6
22761
22762
22763
22764
22765
22766
22767 # Prepare PATH_SEPARATOR.
22768 # The user is always right.
22769 if test "${PATH_SEPARATOR+set}" != set; then
22770 echo "#! /bin/sh" >conf$$.sh
22771 echo "exit 0" >>conf$$.sh
22772 chmod +x conf$$.sh
22773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22774 PATH_SEPARATOR=';'
22775 else
22776 PATH_SEPARATOR=:
22777 fi
22778 rm -f conf$$.sh
22779 fi
22780
22781 # Find out how to test for executable files. Don't use a zero-byte file,
22782 # as systems may use methods other than mode bits to determine executability.
22783 cat >conf$$.file <<_ASEOF
22784 #! /bin/sh
22785 exit 0
22786 _ASEOF
22787 chmod +x conf$$.file
22788 if test -x conf$$.file >/dev/null 2>&1; then
22789 ac_executable_p="test -x"
22790 else
22791 ac_executable_p="test -f"
22792 fi
22793 rm -f conf$$.file
22794
22795 # Extract the first word of "msgfmt", so it can be a program name with args.
22796 set dummy msgfmt; ac_word=$2
22797 echo "$as_me:$LINENO: checking for $ac_word" >&5
22798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22799 if test "${ac_cv_path_MSGFMT+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802 case "$MSGFMT" in
22803 [\\/]* | ?:[\\/]*)
22804 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22805 ;;
22806 *)
22807 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22808 for ac_dir in $PATH; do
22809 IFS="$ac_save_IFS"
22810 test -z "$ac_dir" && ac_dir=.
22811 for ac_exec_ext in '' $ac_executable_extensions; do
22812 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22813 echo "$as_me: trying $ac_dir/$ac_word..." >&5
22814 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
22815 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22816 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22817 break 2
22818 fi
22819 fi
22820 done
22821 done
22822 IFS="$ac_save_IFS"
22823 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22824 ;;
22825 esac
22826 fi
22827 MSGFMT="$ac_cv_path_MSGFMT"
22828 if test "$MSGFMT" != ":"; then
22829 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22830 echo "${ECHO_T}$MSGFMT" >&6
22831 else
22832 echo "$as_me:$LINENO: result: no" >&5
22833 echo "${ECHO_T}no" >&6
22834 fi
22835
22836 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22837 set dummy gmsgfmt; ac_word=$2
22838 echo "$as_me:$LINENO: checking for $ac_word" >&5
22839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843 case $GMSGFMT in
22844 [\\/]* | ?:[\\/]*)
22845 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22846 ;;
22847 *)
22848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22849 for as_dir in $PATH
22850 do
22851 IFS=$as_save_IFS
22852 test -z "$as_dir" && as_dir=.
22853 for ac_exec_ext in '' $ac_executable_extensions; do
22854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22855 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22857 break 2
22858 fi
22859 done
22860 done
22861
22862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22863 ;;
22864 esac
22865 fi
22866 GMSGFMT=$ac_cv_path_GMSGFMT
22867
22868 if test -n "$GMSGFMT"; then
22869 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22870 echo "${ECHO_T}$GMSGFMT" >&6
22871 else
22872 echo "$as_me:$LINENO: result: no" >&5
22873 echo "${ECHO_T}no" >&6
22874 fi
22875
22876
22877
22878 # Prepare PATH_SEPARATOR.
22879 # The user is always right.
22880 if test "${PATH_SEPARATOR+set}" != set; then
22881 echo "#! /bin/sh" >conf$$.sh
22882 echo "exit 0" >>conf$$.sh
22883 chmod +x conf$$.sh
22884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22885 PATH_SEPARATOR=';'
22886 else
22887 PATH_SEPARATOR=:
22888 fi
22889 rm -f conf$$.sh
22890 fi
22891
22892 # Find out how to test for executable files. Don't use a zero-byte file,
22893 # as systems may use methods other than mode bits to determine executability.
22894 cat >conf$$.file <<_ASEOF
22895 #! /bin/sh
22896 exit 0
22897 _ASEOF
22898 chmod +x conf$$.file
22899 if test -x conf$$.file >/dev/null 2>&1; then
22900 ac_executable_p="test -x"
22901 else
22902 ac_executable_p="test -f"
22903 fi
22904 rm -f conf$$.file
22905
22906 # Extract the first word of "xgettext", so it can be a program name with args.
22907 set dummy xgettext; ac_word=$2
22908 echo "$as_me:$LINENO: checking for $ac_word" >&5
22909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22910 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913 case "$XGETTEXT" in
22914 [\\/]* | ?:[\\/]*)
22915 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22916 ;;
22917 *)
22918 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22919 for ac_dir in $PATH; do
22920 IFS="$ac_save_IFS"
22921 test -z "$ac_dir" && ac_dir=.
22922 for ac_exec_ext in '' $ac_executable_extensions; do
22923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22924 echo "$as_me: trying $ac_dir/$ac_word..." >&5
22925 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
22926 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22927 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22928 break 2
22929 fi
22930 fi
22931 done
22932 done
22933 IFS="$ac_save_IFS"
22934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22935 ;;
22936 esac
22937 fi
22938 XGETTEXT="$ac_cv_path_XGETTEXT"
22939 if test "$XGETTEXT" != ":"; then
22940 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22941 echo "${ECHO_T}$XGETTEXT" >&6
22942 else
22943 echo "$as_me:$LINENO: result: no" >&5
22944 echo "${ECHO_T}no" >&6
22945 fi
22946
22947 rm -f messages.po
22948
22949
22950 # Prepare PATH_SEPARATOR.
22951 # The user is always right.
22952 if test "${PATH_SEPARATOR+set}" != set; then
22953 echo "#! /bin/sh" >conf$$.sh
22954 echo "exit 0" >>conf$$.sh
22955 chmod +x conf$$.sh
22956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22957 PATH_SEPARATOR=';'
22958 else
22959 PATH_SEPARATOR=:
22960 fi
22961 rm -f conf$$.sh
22962 fi
22963
22964 # Find out how to test for executable files. Don't use a zero-byte file,
22965 # as systems may use methods other than mode bits to determine executability.
22966 cat >conf$$.file <<_ASEOF
22967 #! /bin/sh
22968 exit 0
22969 _ASEOF
22970 chmod +x conf$$.file
22971 if test -x conf$$.file >/dev/null 2>&1; then
22972 ac_executable_p="test -x"
22973 else
22974 ac_executable_p="test -f"
22975 fi
22976 rm -f conf$$.file
22977
22978 # Extract the first word of "msgmerge", so it can be a program name with args.
22979 set dummy msgmerge; ac_word=$2
22980 echo "$as_me:$LINENO: checking for $ac_word" >&5
22981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22982 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985 case "$MSGMERGE" in
22986 [\\/]* | ?:[\\/]*)
22987 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22988 ;;
22989 *)
22990 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22991 for ac_dir in $PATH; do
22992 IFS="$ac_save_IFS"
22993 test -z "$ac_dir" && ac_dir=.
22994 for ac_exec_ext in '' $ac_executable_extensions; do
22995 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22996 echo "$as_me: trying $ac_dir/$ac_word..." >&5
22997 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
22998 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22999 break 2
23000 fi
23001 fi
23002 done
23003 done
23004 IFS="$ac_save_IFS"
23005 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23006 ;;
23007 esac
23008 fi
23009 MSGMERGE="$ac_cv_path_MSGMERGE"
23010 if test "$MSGMERGE" != ":"; then
23011 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23012 echo "${ECHO_T}$MSGMERGE" >&6
23013 else
23014 echo "$as_me:$LINENO: result: no" >&5
23015 echo "${ECHO_T}no" >&6
23016 fi
23017
23018
23019 if test "$GMSGFMT" != ":"; then
23020 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
23021 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23022 : ;
23023 else
23024 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23025 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23026 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
23027 GMSGFMT=":"
23028 fi
23029 fi
23030
23031 if test "$XGETTEXT" != ":"; then
23032 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23033 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23034 : ;
23035 else
23036 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23037 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
23038 XGETTEXT=":"
23039 fi
23040 rm -f messages.po
23041 fi
23042
23043 ac_config_commands="$ac_config_commands default-1"
23044
23045
23046
23047 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
23048 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
23049 if test "${ac_cv_gnu_library_2+set}" = set; then
23050 echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058
23059 #include <features.h>
23060 #ifdef __GNU_LIBRARY__
23061 #if (__GLIBC__ >= 2)
23062 Lucky GNU user
23063 #endif
23064 #endif
23065
23066 _ACEOF
23067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23068 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23069 ac_cv_gnu_library_2=yes
23070 else
23071 ac_cv_gnu_library_2=no
23072 fi
23073 rm -f conftest*
23074
23075
23076
23077 fi
23078 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
23079 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
23080
23081 GLIBC2="$ac_cv_gnu_library_2"
23082
23083
23084 if test -n "$ac_tool_prefix"; then
23085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
23087 echo "$as_me:$LINENO: checking for $ac_word" >&5
23088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23089 if test "${ac_cv_prog_RANLIB+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092 if test -n "$RANLIB"; then
23093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
23094 else
23095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23096 for as_dir in $PATH
23097 do
23098 IFS=$as_save_IFS
23099 test -z "$as_dir" && as_dir=.
23100 for ac_exec_ext in '' $ac_executable_extensions; do
23101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
23103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23104 break 2
23105 fi
23106 done
23107 done
23108
23109 fi
23110 fi
23111 RANLIB=$ac_cv_prog_RANLIB
23112 if test -n "$RANLIB"; then
23113 echo "$as_me:$LINENO: result: $RANLIB" >&5
23114 echo "${ECHO_T}$RANLIB" >&6
23115 else
23116 echo "$as_me:$LINENO: result: no" >&5
23117 echo "${ECHO_T}no" >&6
23118 fi
23119
23120 fi
23121 if test -z "$ac_cv_prog_RANLIB"; then
23122 ac_ct_RANLIB=$RANLIB
23123 # Extract the first word of "ranlib", so it can be a program name with args.
23124 set dummy ranlib; ac_word=$2
23125 echo "$as_me:$LINENO: checking for $ac_word" >&5
23126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 else
23130 if test -n "$ac_ct_RANLIB"; then
23131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
23132 else
23133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134 for as_dir in $PATH
23135 do
23136 IFS=$as_save_IFS
23137 test -z "$as_dir" && as_dir=.
23138 for ac_exec_ext in '' $ac_executable_extensions; do
23139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23140 ac_cv_prog_ac_ct_RANLIB="ranlib"
23141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23142 break 2
23143 fi
23144 done
23145 done
23146
23147 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
23148 fi
23149 fi
23150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
23151 if test -n "$ac_ct_RANLIB"; then
23152 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
23153 echo "${ECHO_T}$ac_ct_RANLIB" >&6
23154 else
23155 echo "$as_me:$LINENO: result: no" >&5
23156 echo "${ECHO_T}no" >&6
23157 fi
23158
23159 RANLIB=$ac_ct_RANLIB
23160 else
23161 RANLIB="$ac_cv_prog_RANLIB"
23162 fi
23163
23164 echo "$as_me:$LINENO: checking for library containing strerror" >&5
23165 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
23166 if test "${ac_cv_search_strerror+set}" = set; then
23167 echo $ECHO_N "(cached) $ECHO_C" >&6
23168 else
23169 ac_func_search_save_LIBS=$LIBS
23170 ac_cv_search_strerror=no
23171 cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h. */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177
23178 /* Override any gcc2 internal prototype to avoid an error. */
23179 #ifdef __cplusplus
23180 extern "C"
23181 #endif
23182 /* We use char because int might match the return type of a gcc2
23183 builtin and then its argument prototype would still apply. */
23184 char strerror ();
23185 int
23186 main ()
23187 {
23188 strerror ();
23189 ;
23190 return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195 (eval $ac_link) 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } &&
23202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; } &&
23208 { ac_try='test -s conftest$ac_exeext'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23211 ac_status=$?
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; }; then
23214 ac_cv_search_strerror="none required"
23215 else
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219 fi
23220 rm -f conftest.err conftest.$ac_objext \
23221 conftest$ac_exeext conftest.$ac_ext
23222 if test "$ac_cv_search_strerror" = no; then
23223 for ac_lib in cposix; do
23224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h. */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231
23232 /* Override any gcc2 internal prototype to avoid an error. */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 /* We use char because int might match the return type of a gcc2
23237 builtin and then its argument prototype would still apply. */
23238 char strerror ();
23239 int
23240 main ()
23241 {
23242 strerror ();
23243 ;
23244 return 0;
23245 }
23246 _ACEOF
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249 (eval $ac_link) 2>conftest.er1
23250 ac_status=$?
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
23256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest$ac_exeext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 ac_cv_search_strerror="-l$ac_lib"
23269 break
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274 fi
23275 rm -f conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23277 done
23278 fi
23279 LIBS=$ac_func_search_save_LIBS
23280 fi
23281 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
23282 echo "${ECHO_T}$ac_cv_search_strerror" >&6
23283 if test "$ac_cv_search_strerror" != no; then
23284 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
23285
23286 fi
23287
23288
23289 echo "$as_me:$LINENO: checking for signed" >&5
23290 echo $ECHO_N "checking for signed... $ECHO_C" >&6
23291 if test "${bh_cv_c_signed+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294 cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h. */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h. */
23300
23301 int
23302 main ()
23303 {
23304 signed char x;
23305 ;
23306 return 0;
23307 }
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311 (eval $ac_compile) 2>conftest.er1
23312 ac_status=$?
23313 grep -v '^ *+' conftest.er1 >conftest.err
23314 rm -f conftest.er1
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } &&
23318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23321 ac_status=$?
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; } &&
23324 { ac_try='test -s conftest.$ac_objext'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23327 ac_status=$?
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 bh_cv_c_signed=yes
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 bh_cv_c_signed=no
23336 fi
23337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338 fi
23339 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
23340 echo "${ECHO_T}$bh_cv_c_signed" >&6
23341 if test $bh_cv_c_signed = no; then
23342
23343 cat >>confdefs.h <<\_ACEOF
23344 #define signed
23345 _ACEOF
23346
23347 fi
23348
23349 echo "$as_me:$LINENO: checking for inline" >&5
23350 echo $ECHO_N "checking for inline... $ECHO_C" >&6
23351 if test "${ac_cv_c_inline+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 else
23354 ac_cv_c_inline=no
23355 for ac_kw in inline __inline__ __inline; do
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #ifndef __cplusplus
23363 typedef int foo_t;
23364 static $ac_kw foo_t static_foo () {return 0; }
23365 $ac_kw foo_t foo () {return 0; }
23366 #endif
23367
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>conftest.er1
23372 ac_status=$?
23373 grep -v '^ *+' conftest.er1 >conftest.err
23374 rm -f conftest.er1
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest.$ac_objext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_c_inline=$ac_kw; break
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 fi
23396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397 done
23398
23399 fi
23400 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23401 echo "${ECHO_T}$ac_cv_c_inline" >&6
23402
23403
23404 case $ac_cv_c_inline in
23405 inline | yes) ;;
23406 *)
23407 case $ac_cv_c_inline in
23408 no) ac_val=;;
23409 *) ac_val=$ac_cv_c_inline;;
23410 esac
23411 cat >>confdefs.h <<_ACEOF
23412 #ifndef __cplusplus
23413 #define inline $ac_val
23414 #endif
23415 _ACEOF
23416 ;;
23417 esac
23418
23419 echo "$as_me:$LINENO: checking for off_t" >&5
23420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
23421 if test "${ac_cv_type_off_t+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 int
23432 main ()
23433 {
23434 if ((off_t *) 0)
23435 return 0;
23436 if (sizeof (off_t))
23437 return 0;
23438 ;
23439 return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23444 (eval $ac_compile) 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; } &&
23457 { ac_try='test -s conftest.$ac_objext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23463 ac_cv_type_off_t=yes
23464 else
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_cv_type_off_t=no
23469 fi
23470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471 fi
23472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
23474 if test $ac_cv_type_off_t = yes; then
23475 :
23476 else
23477
23478 cat >>confdefs.h <<_ACEOF
23479 #define off_t long
23480 _ACEOF
23481
23482 fi
23483
23484 echo "$as_me:$LINENO: checking for size_t" >&5
23485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23486 if test "${ac_cv_type_size_t+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489 cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h. */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 $ac_includes_default
23496 int
23497 main ()
23498 {
23499 if ((size_t *) 0)
23500 return 0;
23501 if (sizeof (size_t))
23502 return 0;
23503 ;
23504 return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509 (eval $ac_compile) 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } &&
23516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest.$ac_objext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_type_size_t=yes
23529 else
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_type_size_t=no
23534 fi
23535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 fi
23537 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23538 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23539 if test $ac_cv_type_size_t = yes; then
23540 :
23541 else
23542
23543 cat >>confdefs.h <<_ACEOF
23544 #define size_t unsigned
23545 _ACEOF
23546
23547 fi
23548
23549
23550 echo "$as_me:$LINENO: checking for long long" >&5
23551 echo $ECHO_N "checking for long long... $ECHO_C" >&6
23552 if test "${ac_cv_type_long_long+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 else
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h. */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 long long ll = 1LL; int i = 63;
23562 int
23563 main ()
23564 {
23565 long long llmax = (long long) -1;
23566 return ll << i | ll >> i | llmax / ll | llmax % ll;
23567 ;
23568 return 0;
23569 }
23570 _ACEOF
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573 (eval $ac_link) 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
23580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ac_cv_type_long_long=yes
23593 else
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23596
23597 ac_cv_type_long_long=no
23598 fi
23599 rm -f conftest.err conftest.$ac_objext \
23600 conftest$ac_exeext conftest.$ac_ext
23601 fi
23602 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23603 echo "${ECHO_T}$ac_cv_type_long_long" >&6
23604 if test $ac_cv_type_long_long = yes; then
23605
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_LONG_LONG 1
23608 _ACEOF
23609
23610 fi
23611
23612
23613 echo "$as_me:$LINENO: checking for long double" >&5
23614 echo $ECHO_N "checking for long double... $ECHO_C" >&6
23615 if test "${gt_cv_c_long_double+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618 if test "$GCC" = yes; then
23619 gt_cv_c_long_double=yes
23620 else
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627
23628 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
23629 long double foo = 0.0;
23630 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23631 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23632
23633 int
23634 main ()
23635 {
23636
23637 ;
23638 return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23643 (eval $ac_compile) 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; } &&
23656 { ac_try='test -s conftest.$ac_objext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 gt_cv_c_long_double=yes
23663 else
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 gt_cv_c_long_double=no
23668 fi
23669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23670 fi
23671 fi
23672 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23673 echo "${ECHO_T}$gt_cv_c_long_double" >&6
23674 if test $gt_cv_c_long_double = yes; then
23675
23676 cat >>confdefs.h <<\_ACEOF
23677 #define HAVE_LONG_DOUBLE 1
23678 _ACEOF
23679
23680 fi
23681
23682
23683 echo "$as_me:$LINENO: checking for wchar_t" >&5
23684 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23685 if test "${gt_cv_c_wchar_t+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23687 else
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h. */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 #include <stddef.h>
23695 wchar_t foo = (wchar_t)'\0';
23696 int
23697 main ()
23698 {
23699
23700 ;
23701 return 0;
23702 }
23703 _ACEOF
23704 rm -f conftest.$ac_objext
23705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706 (eval $ac_compile) 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
23713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest.$ac_objext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 gt_cv_c_wchar_t=yes
23726 else
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 gt_cv_c_wchar_t=no
23731 fi
23732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733 fi
23734 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
23735 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
23736 if test $gt_cv_c_wchar_t = yes; then
23737
23738 cat >>confdefs.h <<\_ACEOF
23739 #define HAVE_WCHAR_T 1
23740 _ACEOF
23741
23742 fi
23743
23744
23745 echo "$as_me:$LINENO: checking for wint_t" >&5
23746 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
23747 if test "${gt_cv_c_wint_t+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23749 else
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h. */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <wchar.h>
23757 wint_t foo = (wchar_t)'\0';
23758 int
23759 main ()
23760 {
23761
23762 ;
23763 return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768 (eval $ac_compile) 2>conftest.er1
23769 ac_status=$?
23770 grep -v '^ *+' conftest.er1 >conftest.err
23771 rm -f conftest.er1
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } &&
23775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest.$ac_objext'
23782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783 (eval $ac_try) 2>&5
23784 ac_status=$?
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 gt_cv_c_wint_t=yes
23788 else
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792 gt_cv_c_wint_t=no
23793 fi
23794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23795 fi
23796 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23797 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
23798 if test $gt_cv_c_wint_t = yes; then
23799
23800 cat >>confdefs.h <<\_ACEOF
23801 #define HAVE_WINT_T 1
23802 _ACEOF
23803
23804 fi
23805
23806
23807 echo "$as_me:$LINENO: checking for inttypes.h" >&5
23808 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
23809 if test "${gl_cv_header_inttypes_h+set}" = set; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 else
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 #include <sys/types.h>
23819 #include <inttypes.h>
23820 int
23821 main ()
23822 {
23823 uintmax_t i = (uintmax_t) -1;
23824 ;
23825 return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext
23829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23830 (eval $ac_compile) 2>conftest.er1
23831 ac_status=$?
23832 grep -v '^ *+' conftest.er1 >conftest.err
23833 rm -f conftest.er1
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } &&
23837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; } &&
23843 { ac_try='test -s conftest.$ac_objext'
23844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); }; }; then
23849 gl_cv_header_inttypes_h=yes
23850 else
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 gl_cv_header_inttypes_h=no
23855 fi
23856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23857 fi
23858 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
23859 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
23860 if test $gl_cv_header_inttypes_h = yes; then
23861
23862 cat >>confdefs.h <<_ACEOF
23863 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23864 _ACEOF
23865
23866 fi
23867
23868
23869 echo "$as_me:$LINENO: checking for stdint.h" >&5
23870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
23871 if test "${gl_cv_header_stdint_h+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h. */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 #include <sys/types.h>
23881 #include <stdint.h>
23882 int
23883 main ()
23884 {
23885 uintmax_t i = (uintmax_t) -1;
23886 ;
23887 return 0;
23888 }
23889 _ACEOF
23890 rm -f conftest.$ac_objext
23891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23892 (eval $ac_compile) 2>conftest.er1
23893 ac_status=$?
23894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
23899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901 (eval $ac_try) 2>&5
23902 ac_status=$?
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; } &&
23905 { ac_try='test -s conftest.$ac_objext'
23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); }; }; then
23911 gl_cv_header_stdint_h=yes
23912 else
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916 gl_cv_header_stdint_h=no
23917 fi
23918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23919 fi
23920 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23921 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
23922 if test $gl_cv_header_stdint_h = yes; then
23923
23924 cat >>confdefs.h <<_ACEOF
23925 #define HAVE_STDINT_H_WITH_UINTMAX 1
23926 _ACEOF
23927
23928 fi
23929
23930
23931
23932
23933 echo "$as_me:$LINENO: checking for intmax_t" >&5
23934 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23935 if test "${gt_cv_c_intmax_t+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938 cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h. */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944
23945 #include <stddef.h>
23946 #include <stdlib.h>
23947 #if HAVE_STDINT_H_WITH_UINTMAX
23948 #include <stdint.h>
23949 #endif
23950 #if HAVE_INTTYPES_H_WITH_UINTMAX
23951 #include <inttypes.h>
23952 #endif
23953
23954 int
23955 main ()
23956 {
23957 intmax_t x = -1;
23958 ;
23959 return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23964 (eval $ac_compile) 2>conftest.er1
23965 ac_status=$?
23966 grep -v '^ *+' conftest.er1 >conftest.err
23967 rm -f conftest.er1
23968 cat conftest.err >&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); } &&
23971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try='test -s conftest.$ac_objext'
23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); }; }; then
23983 gt_cv_c_intmax_t=yes
23984 else
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23987
23988 gt_cv_c_intmax_t=no
23989 fi
23990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23991 fi
23992 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23993 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
23994 if test $gt_cv_c_intmax_t = yes; then
23995
23996 cat >>confdefs.h <<\_ACEOF
23997 #define HAVE_INTMAX_T 1
23998 _ACEOF
23999
24000 fi
24001
24002
24003
24004 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
24005 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
24006 if test "${gt_cv_func_printf_posix+set}" = set; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24008 else
24009
24010 if test "$cross_compiling" = yes; then
24011
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018
24019 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
24020 notposix
24021 #endif
24022
24023 _ACEOF
24024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24025 $EGREP "notposix" >/dev/null 2>&1; then
24026 gt_cv_func_printf_posix="guessing no"
24027 else
24028 gt_cv_func_printf_posix="guessing yes"
24029 fi
24030 rm -f conftest*
24031
24032
24033 else
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h. */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040
24041 #include <stdio.h>
24042 #include <string.h>
24043 /* The string "%2$d %1$d", with dollar characters protected from the shell's
24044 dollar expansion (possibly an autoconf bug). */
24045 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
24046 static char buf[100];
24047 int main ()
24048 {
24049 sprintf (buf, format, 33, 55);
24050 return (strcmp (buf, "55 33") != 0);
24051 }
24052 _ACEOF
24053 rm -f conftest$ac_exeext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24055 (eval $ac_link) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
24064 gt_cv_func_printf_posix=yes
24065 else
24066 echo "$as_me: program exited with status $ac_status" >&5
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070 ( exit $ac_status )
24071 gt_cv_func_printf_posix=no
24072 fi
24073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24074 fi
24075
24076 fi
24077 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
24078 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
24079 case $gt_cv_func_printf_posix in
24080 *yes)
24081
24082 cat >>confdefs.h <<\_ACEOF
24083 #define HAVE_POSIX_PRINTF 1
24084 _ACEOF
24085
24086 ;;
24087 esac
24088
24089
24090
24091 for ac_header in stdlib.h unistd.h
24092 do
24093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24095 echo "$as_me:$LINENO: checking for $ac_header" >&5
24096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24098 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 fi
24100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24102 else
24103 # Is the header compilable?
24104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24106 cat >conftest.$ac_ext <<_ACEOF
24107 /* confdefs.h. */
24108 _ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h. */
24112 $ac_includes_default
24113 #include <$ac_header>
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117 (eval $ac_compile) 2>conftest.er1
24118 ac_status=$?
24119 grep -v '^ *+' conftest.er1 >conftest.err
24120 rm -f conftest.er1
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
24124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; } &&
24130 { ac_try='test -s conftest.$ac_objext'
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; }; then
24136 ac_header_compiler=yes
24137 else
24138 echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141 ac_header_compiler=no
24142 fi
24143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24145 echo "${ECHO_T}$ac_header_compiler" >&6
24146
24147 # Is the header present?
24148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24150 cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h. */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h. */
24156 #include <$ac_header>
24157 _ACEOF
24158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24160 ac_status=$?
24161 grep -v '^ *+' conftest.er1 >conftest.err
24162 rm -f conftest.er1
24163 cat conftest.err >&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } >/dev/null; then
24166 if test -s conftest.err; then
24167 ac_cpp_err=$ac_c_preproc_warn_flag
24168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24169 else
24170 ac_cpp_err=
24171 fi
24172 else
24173 ac_cpp_err=yes
24174 fi
24175 if test -z "$ac_cpp_err"; then
24176 ac_header_preproc=yes
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 ac_header_preproc=no
24182 fi
24183 rm -f conftest.err conftest.$ac_ext
24184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24185 echo "${ECHO_T}$ac_header_preproc" >&6
24186
24187 # So? What about this header?
24188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24189 yes:no: )
24190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24194 ac_header_preproc=yes
24195 ;;
24196 no:yes:* )
24197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24209 (
24210 cat <<\_ASBOX
24211 ## ------------------------------------------ ##
24212 ## Report this to the AC_PACKAGE_NAME lists. ##
24213 ## ------------------------------------------ ##
24214 _ASBOX
24215 ) |
24216 sed "s/^/$as_me: WARNING: /" >&2
24217 ;;
24218 esac
24219 echo "$as_me:$LINENO: checking for $ac_header" >&5
24220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24222 echo $ECHO_N "(cached) $ECHO_C" >&6
24223 else
24224 eval "$as_ac_Header=\$ac_header_preproc"
24225 fi
24226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24228
24229 fi
24230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24233 _ACEOF
24234
24235 fi
24236
24237 done
24238
24239
24240 for ac_func in getpagesize
24241 do
24242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24243 echo "$as_me:$LINENO: checking for $ac_func" >&5
24244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24245 if eval "test \"\${$as_ac_var+set}\" = set"; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248 cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24256 #define $ac_func innocuous_$ac_func
24257
24258 /* System header to define __stub macros and hopefully few prototypes,
24259 which can conflict with char $ac_func (); below.
24260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24261 <limits.h> exists even on freestanding compilers. */
24262
24263 #ifdef __STDC__
24264 # include <limits.h>
24265 #else
24266 # include <assert.h>
24267 #endif
24268
24269 #undef $ac_func
24270
24271 /* Override any gcc2 internal prototype to avoid an error. */
24272 #ifdef __cplusplus
24273 extern "C"
24274 {
24275 #endif
24276 /* We use char because int might match the return type of a gcc2
24277 builtin and then its argument prototype would still apply. */
24278 char $ac_func ();
24279 /* The GNU C library defines this for functions which it implements
24280 to always fail with ENOSYS. Some functions are actually named
24281 something starting with __ and the normal name is an alias. */
24282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24283 choke me
24284 #else
24285 char (*f) () = $ac_func;
24286 #endif
24287 #ifdef __cplusplus
24288 }
24289 #endif
24290
24291 int
24292 main ()
24293 {
24294 return f != $ac_func;
24295 ;
24296 return 0;
24297 }
24298 _ACEOF
24299 rm -f conftest.$ac_objext conftest$ac_exeext
24300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24301 (eval $ac_link) 2>conftest.er1
24302 ac_status=$?
24303 grep -v '^ *+' conftest.er1 >conftest.err
24304 rm -f conftest.er1
24305 cat conftest.err >&5
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } &&
24308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest$ac_exeext'
24315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24320 eval "$as_ac_var=yes"
24321 else
24322 echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24324
24325 eval "$as_ac_var=no"
24326 fi
24327 rm -f conftest.err conftest.$ac_objext \
24328 conftest$ac_exeext conftest.$ac_ext
24329 fi
24330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24332 if test `eval echo '${'$as_ac_var'}'` = yes; then
24333 cat >>confdefs.h <<_ACEOF
24334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24335 _ACEOF
24336
24337 fi
24338 done
24339
24340 echo "$as_me:$LINENO: checking for working mmap" >&5
24341 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24342 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345 if test "$cross_compiling" = yes; then
24346 ac_cv_func_mmap_fixed_mapped=no
24347 else
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h. */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 $ac_includes_default
24355 /* malloc might have been renamed as rpl_malloc. */
24356 #undef malloc
24357
24358 /* Thanks to Mike Haertel and Jim Avera for this test.
24359 Here is a matrix of mmap possibilities:
24360 mmap private not fixed
24361 mmap private fixed at somewhere currently unmapped
24362 mmap private fixed at somewhere already mapped
24363 mmap shared not fixed
24364 mmap shared fixed at somewhere currently unmapped
24365 mmap shared fixed at somewhere already mapped
24366 For private mappings, we should verify that changes cannot be read()
24367 back from the file, nor mmap's back from the file at a different
24368 address. (There have been systems where private was not correctly
24369 implemented like the infamous i386 svr4.0, and systems where the
24370 VM page cache was not coherent with the file system buffer cache
24371 like early versions of FreeBSD and possibly contemporary NetBSD.)
24372 For shared mappings, we should conversely verify that changes get
24373 propagated back to all the places they're supposed to be.
24374
24375 Grep wants private fixed already mapped.
24376 The main things grep needs to know about mmap are:
24377 * does it exist and is it safe to write into the mmap'd area
24378 * how to use it (BSD variants) */
24379
24380 #include <fcntl.h>
24381 #include <sys/mman.h>
24382
24383 #if !STDC_HEADERS && !HAVE_STDLIB_H
24384 char *malloc ();
24385 #endif
24386
24387 /* This mess was copied from the GNU getpagesize.h. */
24388 #if !HAVE_GETPAGESIZE
24389 /* Assume that all systems that can run configure have sys/param.h. */
24390 # if !HAVE_SYS_PARAM_H
24391 # define HAVE_SYS_PARAM_H 1
24392 # endif
24393
24394 # ifdef _SC_PAGESIZE
24395 # define getpagesize() sysconf(_SC_PAGESIZE)
24396 # else /* no _SC_PAGESIZE */
24397 # if HAVE_SYS_PARAM_H
24398 # include <sys/param.h>
24399 # ifdef EXEC_PAGESIZE
24400 # define getpagesize() EXEC_PAGESIZE
24401 # else /* no EXEC_PAGESIZE */
24402 # ifdef NBPG
24403 # define getpagesize() NBPG * CLSIZE
24404 # ifndef CLSIZE
24405 # define CLSIZE 1
24406 # endif /* no CLSIZE */
24407 # else /* no NBPG */
24408 # ifdef NBPC
24409 # define getpagesize() NBPC
24410 # else /* no NBPC */
24411 # ifdef PAGESIZE
24412 # define getpagesize() PAGESIZE
24413 # endif /* PAGESIZE */
24414 # endif /* no NBPC */
24415 # endif /* no NBPG */
24416 # endif /* no EXEC_PAGESIZE */
24417 # else /* no HAVE_SYS_PARAM_H */
24418 # define getpagesize() 8192 /* punt totally */
24419 # endif /* no HAVE_SYS_PARAM_H */
24420 # endif /* no _SC_PAGESIZE */
24421
24422 #endif /* no HAVE_GETPAGESIZE */
24423
24424 int
24425 main ()
24426 {
24427 char *data, *data2, *data3;
24428 int i, pagesize;
24429 int fd;
24430
24431 pagesize = getpagesize ();
24432
24433 /* First, make a file with some known garbage in it. */
24434 data = (char *) malloc (pagesize);
24435 if (!data)
24436 exit (1);
24437 for (i = 0; i < pagesize; ++i)
24438 *(data + i) = rand ();
24439 umask (0);
24440 fd = creat ("conftest.mmap", 0600);
24441 if (fd < 0)
24442 exit (1);
24443 if (write (fd, data, pagesize) != pagesize)
24444 exit (1);
24445 close (fd);
24446
24447 /* Next, try to mmap the file at a fixed address which already has
24448 something else allocated at it. If we can, also make sure that
24449 we see the same garbage. */
24450 fd = open ("conftest.mmap", O_RDWR);
24451 if (fd < 0)
24452 exit (1);
24453 data2 = (char *) malloc (2 * pagesize);
24454 if (!data2)
24455 exit (1);
24456 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24457 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24458 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24459 exit (1);
24460 for (i = 0; i < pagesize; ++i)
24461 if (*(data + i) != *(data2 + i))
24462 exit (1);
24463
24464 /* Finally, make sure that changes to the mapped area do not
24465 percolate back to the file as seen by read(). (This is a bug on
24466 some variants of i386 svr4.0.) */
24467 for (i = 0; i < pagesize; ++i)
24468 *(data2 + i) = *(data2 + i) + 1;
24469 data3 = (char *) malloc (pagesize);
24470 if (!data3)
24471 exit (1);
24472 if (read (fd, data3, pagesize) != pagesize)
24473 exit (1);
24474 for (i = 0; i < pagesize; ++i)
24475 if (*(data + i) != *(data3 + i))
24476 exit (1);
24477 close (fd);
24478 exit (0);
24479 }
24480 _ACEOF
24481 rm -f conftest$ac_exeext
24482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24483 (eval $ac_link) 2>&5
24484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24492 ac_cv_func_mmap_fixed_mapped=yes
24493 else
24494 echo "$as_me: program exited with status $ac_status" >&5
24495 echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498 ( exit $ac_status )
24499 ac_cv_func_mmap_fixed_mapped=no
24500 fi
24501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24502 fi
24503 fi
24504 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24505 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_MMAP 1
24510 _ACEOF
24511
24512 fi
24513 rm -f conftest.mmap
24514
24515
24516 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
24517 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
24518 if test "${ac_cv_gnu_library_2_1+set}" = set; then
24519 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 else
24521 cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h. */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h. */
24527
24528 #include <features.h>
24529 #ifdef __GNU_LIBRARY__
24530 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
24531 Lucky GNU user
24532 #endif
24533 #endif
24534
24535 _ACEOF
24536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24537 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
24538 ac_cv_gnu_library_2_1=yes
24539 else
24540 ac_cv_gnu_library_2_1=no
24541 fi
24542 rm -f conftest*
24543
24544
24545
24546 fi
24547 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
24548 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
24549
24550 GLIBC21="$ac_cv_gnu_library_2_1"
24551
24552
24553
24554
24555 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
24556 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
24557 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
24558 echo $ECHO_N "(cached) $ECHO_C" >&6
24559 else
24560
24561 if test "$cross_compiling" = yes; then
24562
24563 # Guess based on the CPU.
24564 case "$host_cpu" in
24565 alpha* | i3456786 | m68k | s390*)
24566 gt_cv_int_divbyzero_sigfpe="guessing yes";;
24567 *)
24568 gt_cv_int_divbyzero_sigfpe="guessing no";;
24569 esac
24570
24571 else
24572 cat >conftest.$ac_ext <<_ACEOF
24573 /* confdefs.h. */
24574 _ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578
24579 #include <stdlib.h>
24580 #include <signal.h>
24581
24582 static void
24583 #ifdef __cplusplus
24584 sigfpe_handler (int sig)
24585 #else
24586 sigfpe_handler (sig) int sig;
24587 #endif
24588 {
24589 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
24590 exit (sig != SIGFPE);
24591 }
24592
24593 int x = 1;
24594 int y = 0;
24595 int z;
24596 int nan;
24597
24598 int main ()
24599 {
24600 signal (SIGFPE, sigfpe_handler);
24601 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
24602 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
24603 signal (SIGTRAP, sigfpe_handler);
24604 #endif
24605 /* Linux/SPARC yields signal SIGILL. */
24606 #if defined (__sparc__) && defined (__linux__)
24607 signal (SIGILL, sigfpe_handler);
24608 #endif
24609
24610 z = x / y;
24611 nan = y / y;
24612 exit (1);
24613 }
24614
24615 _ACEOF
24616 rm -f conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618 (eval $ac_link) 2>&5
24619 ac_status=$?
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 gt_cv_int_divbyzero_sigfpe=yes
24628 else
24629 echo "$as_me: program exited with status $ac_status" >&5
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ( exit $ac_status )
24634 gt_cv_int_divbyzero_sigfpe=no
24635 fi
24636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24637 fi
24638
24639 fi
24640 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
24641 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
24642 case "$gt_cv_int_divbyzero_sigfpe" in
24643 *yes) value=1;;
24644 *) value=0;;
24645 esac
24646
24647 cat >>confdefs.h <<_ACEOF
24648 #define INTDIV0_RAISES_SIGFPE $value
24649 _ACEOF
24650
24651
24652
24653 echo "$as_me:$LINENO: checking for unsigned long long" >&5
24654 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
24655 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658 cat >conftest.$ac_ext <<_ACEOF
24659 /* confdefs.h. */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h. */
24664 unsigned long long ull = 1ULL; int i = 63;
24665 int
24666 main ()
24667 {
24668 unsigned long long ullmax = (unsigned long long) -1;
24669 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
24670 ;
24671 return 0;
24672 }
24673 _ACEOF
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24676 (eval $ac_link) 2>conftest.er1
24677 ac_status=$?
24678 grep -v '^ *+' conftest.er1 >conftest.err
24679 rm -f conftest.er1
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } &&
24683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; } &&
24689 { ac_try='test -s conftest$ac_exeext'
24690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; }; then
24695 ac_cv_type_unsigned_long_long=yes
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24699
24700 ac_cv_type_unsigned_long_long=no
24701 fi
24702 rm -f conftest.err conftest.$ac_objext \
24703 conftest$ac_exeext conftest.$ac_ext
24704 fi
24705 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24706 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
24707 if test $ac_cv_type_unsigned_long_long = yes; then
24708
24709 cat >>confdefs.h <<\_ACEOF
24710 #define HAVE_UNSIGNED_LONG_LONG 1
24711 _ACEOF
24712
24713 fi
24714
24715
24716
24717
24718 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24719
24720 test $ac_cv_type_unsigned_long_long = yes \
24721 && ac_type='unsigned long long' \
24722 || ac_type='unsigned long'
24723
24724 cat >>confdefs.h <<_ACEOF
24725 #define uintmax_t $ac_type
24726 _ACEOF
24727
24728 else
24729
24730 cat >>confdefs.h <<\_ACEOF
24731 #define HAVE_UINTMAX_T 1
24732 _ACEOF
24733
24734 fi
24735
24736
24737 echo "$as_me:$LINENO: checking for inttypes.h" >&5
24738 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
24739 if test "${gt_cv_header_inttypes_h+set}" = set; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742
24743 cat >conftest.$ac_ext <<_ACEOF
24744 /* confdefs.h. */
24745 _ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 #include <sys/types.h>
24750 #include <inttypes.h>
24751 int
24752 main ()
24753 {
24754
24755 ;
24756 return 0;
24757 }
24758 _ACEOF
24759 rm -f conftest.$ac_objext
24760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24761 (eval $ac_compile) 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } &&
24768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24771 ac_status=$?
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; } &&
24774 { ac_try='test -s conftest.$ac_objext'
24775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24777 ac_status=$?
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 gt_cv_header_inttypes_h=yes
24781 else
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785 gt_cv_header_inttypes_h=no
24786 fi
24787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24788
24789 fi
24790 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
24791 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
24792 if test $gt_cv_header_inttypes_h = yes; then
24793
24794 cat >>confdefs.h <<_ACEOF
24795 #define HAVE_INTTYPES_H 1
24796 _ACEOF
24797
24798 fi
24799
24800
24801
24802 if test $gt_cv_header_inttypes_h = yes; then
24803 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
24804 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
24805 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
24806 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808
24809 cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h. */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 #include <inttypes.h>
24816 #ifdef PRId32
24817 char *p = PRId32;
24818 #endif
24819
24820 int
24821 main ()
24822 {
24823
24824 ;
24825 return 0;
24826 }
24827 _ACEOF
24828 rm -f conftest.$ac_objext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830 (eval $ac_compile) 2>conftest.er1
24831 ac_status=$?
24832 grep -v '^ *+' conftest.er1 >conftest.err
24833 rm -f conftest.er1
24834 cat conftest.err >&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); } &&
24837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839 (eval $ac_try) 2>&5
24840 ac_status=$?
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; } &&
24843 { ac_try='test -s conftest.$ac_objext'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; }; then
24849 gt_cv_inttypes_pri_broken=no
24850 else
24851 echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 gt_cv_inttypes_pri_broken=yes
24855 fi
24856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24857
24858 fi
24859 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
24860 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
24861 fi
24862 if test "$gt_cv_inttypes_pri_broken" = yes; then
24863
24864 cat >>confdefs.h <<_ACEOF
24865 #define PRI_MACROS_BROKEN 1
24866 _ACEOF
24867
24868 fi
24869
24870
24871
24872 for ac_header in stdint.h
24873 do
24874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24876 echo "$as_me:$LINENO: checking for $ac_header" >&5
24877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24880 fi
24881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24883 else
24884 # Is the header compilable?
24885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24887 cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h. */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h. */
24893 $ac_includes_default
24894 #include <$ac_header>
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24898 (eval $ac_compile) 2>conftest.er1
24899 ac_status=$?
24900 grep -v '^ *+' conftest.er1 >conftest.err
24901 rm -f conftest.er1
24902 cat conftest.err >&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } &&
24905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; } &&
24911 { ac_try='test -s conftest.$ac_objext'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; }; then
24917 ac_header_compiler=yes
24918 else
24919 echo "$as_me: failed program was:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24921
24922 ac_header_compiler=no
24923 fi
24924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926 echo "${ECHO_T}$ac_header_compiler" >&6
24927
24928 # Is the header present?
24929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24931 cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h. */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 #include <$ac_header>
24938 _ACEOF
24939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24941 ac_status=$?
24942 grep -v '^ *+' conftest.er1 >conftest.err
24943 rm -f conftest.er1
24944 cat conftest.err >&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } >/dev/null; then
24947 if test -s conftest.err; then
24948 ac_cpp_err=$ac_c_preproc_warn_flag
24949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24950 else
24951 ac_cpp_err=
24952 fi
24953 else
24954 ac_cpp_err=yes
24955 fi
24956 if test -z "$ac_cpp_err"; then
24957 ac_header_preproc=yes
24958 else
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962 ac_header_preproc=no
24963 fi
24964 rm -f conftest.err conftest.$ac_ext
24965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24966 echo "${ECHO_T}$ac_header_preproc" >&6
24967
24968 # So? What about this header?
24969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24970 yes:no: )
24971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24975 ac_header_preproc=yes
24976 ;;
24977 no:yes:* )
24978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24990 (
24991 cat <<\_ASBOX
24992 ## ------------------------------------------ ##
24993 ## Report this to the AC_PACKAGE_NAME lists. ##
24994 ## ------------------------------------------ ##
24995 _ASBOX
24996 ) |
24997 sed "s/^/$as_me: WARNING: /" >&2
24998 ;;
24999 esac
25000 echo "$as_me:$LINENO: checking for $ac_header" >&5
25001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25004 else
25005 eval "$as_ac_Header=\$ac_header_preproc"
25006 fi
25007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25009
25010 fi
25011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25012 cat >>confdefs.h <<_ACEOF
25013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25014 _ACEOF
25015
25016 fi
25017
25018 done
25019
25020 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
25021 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
25022 result=
25023 cat >conftest.$ac_ext <<_ACEOF
25024 /* confdefs.h. */
25025 _ACEOF
25026 cat confdefs.h >>conftest.$ac_ext
25027 cat >>conftest.$ac_ext <<_ACEOF
25028 /* end confdefs.h. */
25029
25030 #include <limits.h>
25031 #if HAVE_STDINT_H
25032 #include <stdint.h>
25033 #endif
25034 #ifdef SIZE_MAX
25035 Found it
25036 #endif
25037
25038 _ACEOF
25039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25040 $EGREP "Found it" >/dev/null 2>&1; then
25041 result=yes
25042 fi
25043 rm -f conftest*
25044
25045 if test -z "$result"; then
25046 if test "$cross_compiling" = yes; then
25047 # Depending upon the size, compute the lo and hi bounds.
25048 cat >conftest.$ac_ext <<_ACEOF
25049 /* confdefs.h. */
25050 _ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25054 #include <stddef.h>
25055 int
25056 main ()
25057 {
25058 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
25059 test_array [0] = 0
25060
25061 ;
25062 return 0;
25063 }
25064 _ACEOF
25065 rm -f conftest.$ac_objext
25066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25067 (eval $ac_compile) 2>conftest.er1
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
25074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest.$ac_objext'
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 ac_lo=0 ac_mid=0
25087 while :; do
25088 cat >conftest.$ac_ext <<_ACEOF
25089 /* confdefs.h. */
25090 _ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h. */
25094 #include <stddef.h>
25095 int
25096 main ()
25097 {
25098 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
25099 test_array [0] = 0
25100
25101 ;
25102 return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107 (eval $ac_compile) 2>conftest.er1
25108 ac_status=$?
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
25114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest.$ac_objext'
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_hi=$ac_mid; break
25127 else
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 ac_lo=`expr $ac_mid + 1`
25132 if test $ac_lo -le $ac_mid; then
25133 ac_lo= ac_hi=
25134 break
25135 fi
25136 ac_mid=`expr 2 '*' $ac_mid + 1`
25137 fi
25138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25139 done
25140 else
25141 echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25143
25144 cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h. */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 #include <stddef.h>
25151 int
25152 main ()
25153 {
25154 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
25155 test_array [0] = 0
25156
25157 ;
25158 return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext
25162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25163 (eval $ac_compile) 2>conftest.er1
25164 ac_status=$?
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
25170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25173 ac_status=$?
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; } &&
25176 { ac_try='test -s conftest.$ac_objext'
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; }; then
25182 ac_hi=-1 ac_mid=-1
25183 while :; do
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h. */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 #include <stddef.h>
25191 int
25192 main ()
25193 {
25194 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
25195 test_array [0] = 0
25196
25197 ;
25198 return 0;
25199 }
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25203 (eval $ac_compile) 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } &&
25210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; } &&
25216 { ac_try='test -s conftest.$ac_objext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 ac_lo=$ac_mid; break
25223 else
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227 ac_hi=`expr '(' $ac_mid ')' - 1`
25228 if test $ac_mid -le $ac_hi; then
25229 ac_lo= ac_hi=
25230 break
25231 fi
25232 ac_mid=`expr 2 '*' $ac_mid`
25233 fi
25234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25235 done
25236 else
25237 echo "$as_me: failed program was:" >&5
25238 sed 's/^/| /' conftest.$ac_ext >&5
25239
25240 ac_lo= ac_hi=
25241 fi
25242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25243 fi
25244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25245 # Binary search between lo and hi bounds.
25246 while test "x$ac_lo" != "x$ac_hi"; do
25247 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25248 cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h. */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 #include <stddef.h>
25255 int
25256 main ()
25257 {
25258 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
25259 test_array [0] = 0
25260
25261 ;
25262 return 0;
25263 }
25264 _ACEOF
25265 rm -f conftest.$ac_objext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25267 (eval $ac_compile) 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } &&
25274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; } &&
25280 { ac_try='test -s conftest.$ac_objext'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }; then
25286 ac_hi=$ac_mid
25287 else
25288 echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291 ac_lo=`expr '(' $ac_mid ')' + 1`
25292 fi
25293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25294 done
25295 case $ac_lo in
25296 ?*) res_hi=$ac_lo;;
25297 '') result=? ;;
25298 esac
25299 else
25300 if test "$cross_compiling" = yes; then
25301 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25302 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25303 { (exit 1); exit 1; }; }
25304 else
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h. */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 #include <stddef.h>
25312 long longval () { return ~(size_t)0 / 10; }
25313 unsigned long ulongval () { return ~(size_t)0 / 10; }
25314 #include <stdio.h>
25315 #include <stdlib.h>
25316 int
25317 main ()
25318 {
25319
25320 FILE *f = fopen ("conftest.val", "w");
25321 if (! f)
25322 exit (1);
25323 if ((~(size_t)0 / 10) < 0)
25324 {
25325 long i = longval ();
25326 if (i != (~(size_t)0 / 10))
25327 exit (1);
25328 fprintf (f, "%ld\n", i);
25329 }
25330 else
25331 {
25332 unsigned long i = ulongval ();
25333 if (i != (~(size_t)0 / 10))
25334 exit (1);
25335 fprintf (f, "%lu\n", i);
25336 }
25337 exit (ferror (f) || fclose (f) != 0);
25338
25339 ;
25340 return 0;
25341 }
25342 _ACEOF
25343 rm -f conftest$ac_exeext
25344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345 (eval $ac_link) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350 (eval $ac_try) 2>&5
25351 ac_status=$?
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); }; }; then
25354 res_hi=`cat conftest.val`
25355 else
25356 echo "$as_me: program exited with status $ac_status" >&5
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360 ( exit $ac_status )
25361 result=?
25362 fi
25363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25364 fi
25365 fi
25366 rm -f conftest.val
25367 if test "$cross_compiling" = yes; then
25368 # Depending upon the size, compute the lo and hi bounds.
25369 cat >conftest.$ac_ext <<_ACEOF
25370 /* confdefs.h. */
25371 _ACEOF
25372 cat confdefs.h >>conftest.$ac_ext
25373 cat >>conftest.$ac_ext <<_ACEOF
25374 /* end confdefs.h. */
25375 #include <stddef.h>
25376 int
25377 main ()
25378 {
25379 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
25380 test_array [0] = 0
25381
25382 ;
25383 return 0;
25384 }
25385 _ACEOF
25386 rm -f conftest.$ac_objext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388 (eval $ac_compile) 2>conftest.er1
25389 ac_status=$?
25390 grep -v '^ *+' conftest.er1 >conftest.err
25391 rm -f conftest.er1
25392 cat conftest.err >&5
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); } &&
25395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; } &&
25401 { ac_try='test -s conftest.$ac_objext'
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; }; then
25407 ac_lo=0 ac_mid=0
25408 while :; do
25409 cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h. */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25415 #include <stddef.h>
25416 int
25417 main ()
25418 {
25419 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
25420 test_array [0] = 0
25421
25422 ;
25423 return 0;
25424 }
25425 _ACEOF
25426 rm -f conftest.$ac_objext
25427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25428 (eval $ac_compile) 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } &&
25435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest.$ac_objext'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 ac_hi=$ac_mid; break
25448 else
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ac_lo=`expr $ac_mid + 1`
25453 if test $ac_lo -le $ac_mid; then
25454 ac_lo= ac_hi=
25455 break
25456 fi
25457 ac_mid=`expr 2 '*' $ac_mid + 1`
25458 fi
25459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25460 done
25461 else
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465 cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h. */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 #include <stddef.h>
25472 int
25473 main ()
25474 {
25475 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
25476 test_array [0] = 0
25477
25478 ;
25479 return 0;
25480 }
25481 _ACEOF
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484 (eval $ac_compile) 2>conftest.er1
25485 ac_status=$?
25486 grep -v '^ *+' conftest.er1 >conftest.err
25487 rm -f conftest.er1
25488 cat conftest.err >&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } &&
25491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; } &&
25497 { ac_try='test -s conftest.$ac_objext'
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_hi=-1 ac_mid=-1
25504 while :; do
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h. */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 #include <stddef.h>
25512 int
25513 main ()
25514 {
25515 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
25516 test_array [0] = 0
25517
25518 ;
25519 return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524 (eval $ac_compile) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; } &&
25537 { ac_try='test -s conftest.$ac_objext'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 ac_lo=$ac_mid; break
25544 else
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 ac_hi=`expr '(' $ac_mid ')' - 1`
25549 if test $ac_mid -le $ac_hi; then
25550 ac_lo= ac_hi=
25551 break
25552 fi
25553 ac_mid=`expr 2 '*' $ac_mid`
25554 fi
25555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25556 done
25557 else
25558 echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25560
25561 ac_lo= ac_hi=
25562 fi
25563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25564 fi
25565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25566 # Binary search between lo and hi bounds.
25567 while test "x$ac_lo" != "x$ac_hi"; do
25568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25569 cat >conftest.$ac_ext <<_ACEOF
25570 /* confdefs.h. */
25571 _ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h. */
25575 #include <stddef.h>
25576 int
25577 main ()
25578 {
25579 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
25580 test_array [0] = 0
25581
25582 ;
25583 return 0;
25584 }
25585 _ACEOF
25586 rm -f conftest.$ac_objext
25587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25588 (eval $ac_compile) 2>conftest.er1
25589 ac_status=$?
25590 grep -v '^ *+' conftest.er1 >conftest.err
25591 rm -f conftest.er1
25592 cat conftest.err >&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } &&
25595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597 (eval $ac_try) 2>&5
25598 ac_status=$?
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); }; } &&
25601 { ac_try='test -s conftest.$ac_objext'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25604 ac_status=$?
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; }; then
25607 ac_hi=$ac_mid
25608 else
25609 echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25611
25612 ac_lo=`expr '(' $ac_mid ')' + 1`
25613 fi
25614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25615 done
25616 case $ac_lo in
25617 ?*) res_lo=$ac_lo;;
25618 '') result=? ;;
25619 esac
25620 else
25621 if test "$cross_compiling" = yes; then
25622 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25623 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25624 { (exit 1); exit 1; }; }
25625 else
25626 cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h. */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 #include <stddef.h>
25633 long longval () { return ~(size_t)0 % 10; }
25634 unsigned long ulongval () { return ~(size_t)0 % 10; }
25635 #include <stdio.h>
25636 #include <stdlib.h>
25637 int
25638 main ()
25639 {
25640
25641 FILE *f = fopen ("conftest.val", "w");
25642 if (! f)
25643 exit (1);
25644 if ((~(size_t)0 % 10) < 0)
25645 {
25646 long i = longval ();
25647 if (i != (~(size_t)0 % 10))
25648 exit (1);
25649 fprintf (f, "%ld\n", i);
25650 }
25651 else
25652 {
25653 unsigned long i = ulongval ();
25654 if (i != (~(size_t)0 % 10))
25655 exit (1);
25656 fprintf (f, "%lu\n", i);
25657 }
25658 exit (ferror (f) || fclose (f) != 0);
25659
25660 ;
25661 return 0;
25662 }
25663 _ACEOF
25664 rm -f conftest$ac_exeext
25665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25666 (eval $ac_link) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); }; }; then
25675 res_lo=`cat conftest.val`
25676 else
25677 echo "$as_me: program exited with status $ac_status" >&5
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25680
25681 ( exit $ac_status )
25682 result=?
25683 fi
25684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25685 fi
25686 fi
25687 rm -f conftest.val
25688 if test "$cross_compiling" = yes; then
25689 # Depending upon the size, compute the lo and hi bounds.
25690 cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h. */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h. */
25696 #include <stddef.h>
25697 int
25698 main ()
25699 {
25700 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
25701 test_array [0] = 0
25702
25703 ;
25704 return 0;
25705 }
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709 (eval $ac_compile) 2>conftest.er1
25710 ac_status=$?
25711 grep -v '^ *+' conftest.er1 >conftest.err
25712 rm -f conftest.er1
25713 cat conftest.err >&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } &&
25716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest.$ac_objext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_lo=0 ac_mid=0
25729 while :; do
25730 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h. */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 #include <stddef.h>
25737 int
25738 main ()
25739 {
25740 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
25741 test_array [0] = 0
25742
25743 ;
25744 return 0;
25745 }
25746 _ACEOF
25747 rm -f conftest.$ac_objext
25748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25749 (eval $ac_compile) 2>conftest.er1
25750 ac_status=$?
25751 grep -v '^ *+' conftest.er1 >conftest.err
25752 rm -f conftest.er1
25753 cat conftest.err >&5
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); } &&
25756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
25762 { ac_try='test -s conftest.$ac_objext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25765 ac_status=$?
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 ac_hi=$ac_mid; break
25769 else
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773 ac_lo=`expr $ac_mid + 1`
25774 if test $ac_lo -le $ac_mid; then
25775 ac_lo= ac_hi=
25776 break
25777 fi
25778 ac_mid=`expr 2 '*' $ac_mid + 1`
25779 fi
25780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25781 done
25782 else
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 cat >conftest.$ac_ext <<_ACEOF
25787 /* confdefs.h. */
25788 _ACEOF
25789 cat confdefs.h >>conftest.$ac_ext
25790 cat >>conftest.$ac_ext <<_ACEOF
25791 /* end confdefs.h. */
25792 #include <stddef.h>
25793 int
25794 main ()
25795 {
25796 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
25797 test_array [0] = 0
25798
25799 ;
25800 return 0;
25801 }
25802 _ACEOF
25803 rm -f conftest.$ac_objext
25804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25805 (eval $ac_compile) 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } &&
25812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; } &&
25818 { ac_try='test -s conftest.$ac_objext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25821 ac_status=$?
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824 ac_hi=-1 ac_mid=-1
25825 while :; do
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h. */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 #include <stddef.h>
25833 int
25834 main ()
25835 {
25836 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
25837 test_array [0] = 0
25838
25839 ;
25840 return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25846 ac_status=$?
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25858 { ac_try='test -s conftest.$ac_objext'
25859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 ac_lo=$ac_mid; break
25865 else
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25868
25869 ac_hi=`expr '(' $ac_mid ')' - 1`
25870 if test $ac_mid -le $ac_hi; then
25871 ac_lo= ac_hi=
25872 break
25873 fi
25874 ac_mid=`expr 2 '*' $ac_mid`
25875 fi
25876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877 done
25878 else
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882 ac_lo= ac_hi=
25883 fi
25884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885 fi
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 # Binary search between lo and hi bounds.
25888 while test "x$ac_lo" != "x$ac_hi"; do
25889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25890 cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h. */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 #include <stddef.h>
25897 int
25898 main ()
25899 {
25900 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
25901 test_array [0] = 0
25902
25903 ;
25904 return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909 (eval $ac_compile) 2>conftest.er1
25910 ac_status=$?
25911 grep -v '^ *+' conftest.er1 >conftest.err
25912 rm -f conftest.er1
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } &&
25916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); }; } &&
25922 { ac_try='test -s conftest.$ac_objext'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 ac_hi=$ac_mid
25929 else
25930 echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933 ac_lo=`expr '(' $ac_mid ')' + 1`
25934 fi
25935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25936 done
25937 case $ac_lo in
25938 ?*) fits_in_uint=$ac_lo;;
25939 '') result=? ;;
25940 esac
25941 else
25942 if test "$cross_compiling" = yes; then
25943 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25944 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25945 { (exit 1); exit 1; }; }
25946 else
25947 cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h. */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h. */
25953 #include <stddef.h>
25954 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
25955 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
25956 #include <stdio.h>
25957 #include <stdlib.h>
25958 int
25959 main ()
25960 {
25961
25962 FILE *f = fopen ("conftest.val", "w");
25963 if (! f)
25964 exit (1);
25965 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
25966 {
25967 long i = longval ();
25968 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25969 exit (1);
25970 fprintf (f, "%ld\n", i);
25971 }
25972 else
25973 {
25974 unsigned long i = ulongval ();
25975 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25976 exit (1);
25977 fprintf (f, "%lu\n", i);
25978 }
25979 exit (ferror (f) || fclose (f) != 0);
25980
25981 ;
25982 return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest$ac_exeext
25986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25987 (eval $ac_link) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; }; then
25996 fits_in_uint=`cat conftest.val`
25997 else
25998 echo "$as_me: program exited with status $ac_status" >&5
25999 echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26001
26002 ( exit $ac_status )
26003 result=?
26004 fi
26005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26006 fi
26007 fi
26008 rm -f conftest.val
26009 if test "$fits_in_uint" = 1; then
26010 cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h. */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 #include <stddef.h>
26017 extern size_t foo;
26018 extern unsigned long foo;
26019
26020 int
26021 main ()
26022 {
26023
26024 ;
26025 return 0;
26026 }
26027 _ACEOF
26028 rm -f conftest.$ac_objext
26029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26030 (eval $ac_compile) 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); } &&
26037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; } &&
26043 { ac_try='test -s conftest.$ac_objext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 fits_in_uint=0
26050 else
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 fi
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 fi
26057 if test -z "$result"; then
26058 if test "$fits_in_uint" = 1; then
26059 result="$res_hi$res_lo"U
26060 else
26061 result="$res_hi$res_lo"UL
26062 fi
26063 else
26064 result='~(size_t)0'
26065 fi
26066 fi
26067 echo "$as_me:$LINENO: result: $result" >&5
26068 echo "${ECHO_T}$result" >&6
26069 if test "$result" != yes; then
26070
26071 cat >>confdefs.h <<_ACEOF
26072 #define SIZE_MAX $result
26073 _ACEOF
26074
26075 fi
26076
26077
26078
26079
26080
26081 for ac_header in stdint.h
26082 do
26083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26085 echo "$as_me:$LINENO: checking for $ac_header" >&5
26086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26088 echo $ECHO_N "(cached) $ECHO_C" >&6
26089 fi
26090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26092 else
26093 # Is the header compilable?
26094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26096 cat >conftest.$ac_ext <<_ACEOF
26097 /* confdefs.h. */
26098 _ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h. */
26102 $ac_includes_default
26103 #include <$ac_header>
26104 _ACEOF
26105 rm -f conftest.$ac_objext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107 (eval $ac_compile) 2>conftest.er1
26108 ac_status=$?
26109 grep -v '^ *+' conftest.er1 >conftest.err
26110 rm -f conftest.er1
26111 cat conftest.err >&5
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } &&
26114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; } &&
26120 { ac_try='test -s conftest.$ac_objext'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 ac_header_compiler=yes
26127 else
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131 ac_header_compiler=no
26132 fi
26133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26135 echo "${ECHO_T}$ac_header_compiler" >&6
26136
26137 # Is the header present?
26138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26140 cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h. */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h. */
26146 #include <$ac_header>
26147 _ACEOF
26148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26150 ac_status=$?
26151 grep -v '^ *+' conftest.er1 >conftest.err
26152 rm -f conftest.er1
26153 cat conftest.err >&5
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } >/dev/null; then
26156 if test -s conftest.err; then
26157 ac_cpp_err=$ac_c_preproc_warn_flag
26158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26159 else
26160 ac_cpp_err=
26161 fi
26162 else
26163 ac_cpp_err=yes
26164 fi
26165 if test -z "$ac_cpp_err"; then
26166 ac_header_preproc=yes
26167 else
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171 ac_header_preproc=no
26172 fi
26173 rm -f conftest.err conftest.$ac_ext
26174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26175 echo "${ECHO_T}$ac_header_preproc" >&6
26176
26177 # So? What about this header?
26178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26179 yes:no: )
26180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26184 ac_header_preproc=yes
26185 ;;
26186 no:yes:* )
26187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26199 (
26200 cat <<\_ASBOX
26201 ## ------------------------------------------ ##
26202 ## Report this to the AC_PACKAGE_NAME lists. ##
26203 ## ------------------------------------------ ##
26204 _ASBOX
26205 ) |
26206 sed "s/^/$as_me: WARNING: /" >&2
26207 ;;
26208 esac
26209 echo "$as_me:$LINENO: checking for $ac_header" >&5
26210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214 eval "$as_ac_Header=\$ac_header_preproc"
26215 fi
26216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26218
26219 fi
26220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26221 cat >>confdefs.h <<_ACEOF
26222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26223 _ACEOF
26224
26225 fi
26226
26227 done
26228
26229
26230
26231 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26232 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26233 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26234 echo $ECHO_N "(cached) $ECHO_C" >&6
26235 else
26236 gt_save_CPPFLAGS="$CPPFLAGS"
26237 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26238 gt_save_LIBS="$LIBS"
26239 LIBS="$LIBS -framework CoreFoundation"
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h. */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246 #include <CFPreferences.h>
26247 int
26248 main ()
26249 {
26250 CFPreferencesCopyAppValue(NULL, NULL)
26251 ;
26252 return 0;
26253 }
26254 _ACEOF
26255 rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26257 (eval $ac_link) 2>conftest.er1
26258 ac_status=$?
26259 grep -v '^ *+' conftest.er1 >conftest.err
26260 rm -f conftest.er1
26261 cat conftest.err >&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } &&
26264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26267 ac_status=$?
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); }; } &&
26270 { ac_try='test -s conftest$ac_exeext'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26276 gt_cv_func_CFPreferencesCopyAppValue=yes
26277 else
26278 echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281 gt_cv_func_CFPreferencesCopyAppValue=no
26282 fi
26283 rm -f conftest.err conftest.$ac_objext \
26284 conftest$ac_exeext conftest.$ac_ext
26285 CPPFLAGS="$gt_save_CPPFLAGS"
26286 LIBS="$gt_save_LIBS"
26287 fi
26288 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26289 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26290 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26291
26292 cat >>confdefs.h <<\_ACEOF
26293 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26294 _ACEOF
26295
26296 fi
26297 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26298 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26299 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302 gt_save_CPPFLAGS="$CPPFLAGS"
26303 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26304 gt_save_LIBS="$LIBS"
26305 LIBS="$LIBS -framework CoreFoundation"
26306 cat >conftest.$ac_ext <<_ACEOF
26307 /* confdefs.h. */
26308 _ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h. */
26312 #include <CFLocale.h>
26313 int
26314 main ()
26315 {
26316 CFLocaleCopyCurrent();
26317 ;
26318 return 0;
26319 }
26320 _ACEOF
26321 rm -f conftest.$ac_objext conftest$ac_exeext
26322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26323 (eval $ac_link) 2>conftest.er1
26324 ac_status=$?
26325 grep -v '^ *+' conftest.er1 >conftest.err
26326 rm -f conftest.er1
26327 cat conftest.err >&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } &&
26330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; } &&
26336 { ac_try='test -s conftest$ac_exeext'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26339 ac_status=$?
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; }; then
26342 gt_cv_func_CFLocaleCopyCurrent=yes
26343 else
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347 gt_cv_func_CFLocaleCopyCurrent=no
26348 fi
26349 rm -f conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext conftest.$ac_ext
26351 CPPFLAGS="$gt_save_CPPFLAGS"
26352 LIBS="$gt_save_LIBS"
26353 fi
26354 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26355 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26356 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26357
26358 cat >>confdefs.h <<\_ACEOF
26359 #define HAVE_CFLOCALECOPYCURRENT 1
26360 _ACEOF
26361
26362 fi
26363 INTL_MACOSX_LIBS=
26364 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26365 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26366 fi
26367
26368
26369
26370 if test "X$prefix" = "XNONE"; then
26371 acl_final_prefix="$ac_default_prefix"
26372 else
26373 acl_final_prefix="$prefix"
26374 fi
26375 if test "X$exec_prefix" = "XNONE"; then
26376 acl_final_exec_prefix='${prefix}'
26377 else
26378 acl_final_exec_prefix="$exec_prefix"
26379 fi
26380 acl_save_prefix="$prefix"
26381 prefix="$acl_final_prefix"
26382 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26383 prefix="$acl_save_prefix"
26384
26385
26386 # Check whether --with-gnu-ld or --without-gnu-ld was given.
26387 if test "${with_gnu_ld+set}" = set; then
26388 withval="$with_gnu_ld"
26389 test "$withval" = no || with_gnu_ld=yes
26390 else
26391 with_gnu_ld=no
26392 fi;
26393 # Prepare PATH_SEPARATOR.
26394 # The user is always right.
26395 if test "${PATH_SEPARATOR+set}" != set; then
26396 echo "#! /bin/sh" >conf$$.sh
26397 echo "exit 0" >>conf$$.sh
26398 chmod +x conf$$.sh
26399 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26400 PATH_SEPARATOR=';'
26401 else
26402 PATH_SEPARATOR=:
26403 fi
26404 rm -f conf$$.sh
26405 fi
26406 ac_prog=ld
26407 if test "$GCC" = yes; then
26408 # Check if gcc -print-prog-name=ld gives a path.
26409 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26410 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26411 case $host in
26412 *-*-mingw*)
26413 # gcc leaves a trailing carriage return which upsets mingw
26414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26415 *)
26416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26417 esac
26418 case $ac_prog in
26419 # Accept absolute paths.
26420 [\\/]* | [A-Za-z]:[\\/]*)
26421 re_direlt='/[^/][^/]*/\.\./'
26422 # Canonicalize the path of ld
26423 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26424 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26425 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26426 done
26427 test -z "$LD" && LD="$ac_prog"
26428 ;;
26429 "")
26430 # If it fails, then pretend we aren't using GCC.
26431 ac_prog=ld
26432 ;;
26433 *)
26434 # If it is relative, then search for the first ld in PATH.
26435 with_gnu_ld=unknown
26436 ;;
26437 esac
26438 elif test "$with_gnu_ld" = yes; then
26439 echo "$as_me:$LINENO: checking for GNU ld" >&5
26440 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26441 else
26442 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26443 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26444 fi
26445 if test "${acl_cv_path_LD+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448 if test -z "$LD"; then
26449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26450 for ac_dir in $PATH; do
26451 test -z "$ac_dir" && ac_dir=.
26452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26453 acl_cv_path_LD="$ac_dir/$ac_prog"
26454 # Check to see if the program is GNU ld. I'd rather use --version,
26455 # but apparently some GNU ld's only accept -v.
26456 # Break only if it was the GNU/non-GNU ld that we prefer.
26457 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
26458 *GNU* | *'with BFD'*)
26459 test "$with_gnu_ld" != no && break ;;
26460 *)
26461 test "$with_gnu_ld" != yes && break ;;
26462 esac
26463 fi
26464 done
26465 IFS="$ac_save_ifs"
26466 else
26467 acl_cv_path_LD="$LD" # Let the user override the test with a path.
26468 fi
26469 fi
26470
26471 LD="$acl_cv_path_LD"
26472 if test -n "$LD"; then
26473 echo "$as_me:$LINENO: result: $LD" >&5
26474 echo "${ECHO_T}$LD" >&6
26475 else
26476 echo "$as_me:$LINENO: result: no" >&5
26477 echo "${ECHO_T}no" >&6
26478 fi
26479 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26480 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26481 { (exit 1); exit 1; }; }
26482 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26483 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26484 if test "${acl_cv_prog_gnu_ld+set}" = set; then
26485 echo $ECHO_N "(cached) $ECHO_C" >&6
26486 else
26487 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26488 case `$LD -v 2>&1 </dev/null` in
26489 *GNU* | *'with BFD'*)
26490 acl_cv_prog_gnu_ld=yes ;;
26491 *)
26492 acl_cv_prog_gnu_ld=no ;;
26493 esac
26494 fi
26495 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26496 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26497 with_gnu_ld=$acl_cv_prog_gnu_ld
26498
26499
26500
26501
26502 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26503 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26504 if test "${acl_cv_rpath+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507
26508 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26509 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26510 . ./conftest.sh
26511 rm -f ./conftest.sh
26512 acl_cv_rpath=done
26513
26514 fi
26515 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26516 echo "${ECHO_T}$acl_cv_rpath" >&6
26517 wl="$acl_cv_wl"
26518 libext="$acl_cv_libext"
26519 shlibext="$acl_cv_shlibext"
26520 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26521 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26522 hardcode_direct="$acl_cv_hardcode_direct"
26523 hardcode_minus_L="$acl_cv_hardcode_minus_L"
26524 # Check whether --enable-rpath or --disable-rpath was given.
26525 if test "${enable_rpath+set}" = set; then
26526 enableval="$enable_rpath"
26527 :
26528 else
26529 enable_rpath=yes
26530 fi;
26531
26532
26533
26534
26535
26536
26537
26538 use_additional=yes
26539
26540 acl_save_prefix="$prefix"
26541 prefix="$acl_final_prefix"
26542 acl_save_exec_prefix="$exec_prefix"
26543 exec_prefix="$acl_final_exec_prefix"
26544
26545 eval additional_includedir=\"$includedir\"
26546 eval additional_libdir=\"$libdir\"
26547
26548 exec_prefix="$acl_save_exec_prefix"
26549 prefix="$acl_save_prefix"
26550
26551
26552 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26553 if test "${with_libiconv_prefix+set}" = set; then
26554 withval="$with_libiconv_prefix"
26555
26556 if test "X$withval" = "Xno"; then
26557 use_additional=no
26558 else
26559 if test "X$withval" = "X"; then
26560
26561 acl_save_prefix="$prefix"
26562 prefix="$acl_final_prefix"
26563 acl_save_exec_prefix="$exec_prefix"
26564 exec_prefix="$acl_final_exec_prefix"
26565
26566 eval additional_includedir=\"$includedir\"
26567 eval additional_libdir=\"$libdir\"
26568
26569 exec_prefix="$acl_save_exec_prefix"
26570 prefix="$acl_save_prefix"
26571
26572 else
26573 additional_includedir="$withval/include"
26574 additional_libdir="$withval/lib"
26575 fi
26576 fi
26577
26578 fi;
26579 LIBICONV=
26580 LTLIBICONV=
26581 INCICONV=
26582 rpathdirs=
26583 ltrpathdirs=
26584 names_already_handled=
26585 names_next_round='iconv '
26586 while test -n "$names_next_round"; do
26587 names_this_round="$names_next_round"
26588 names_next_round=
26589 for name in $names_this_round; do
26590 already_handled=
26591 for n in $names_already_handled; do
26592 if test "$n" = "$name"; then
26593 already_handled=yes
26594 break
26595 fi
26596 done
26597 if test -z "$already_handled"; then
26598 names_already_handled="$names_already_handled $name"
26599 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26600 eval value=\"\$HAVE_LIB$uppername\"
26601 if test -n "$value"; then
26602 if test "$value" = yes; then
26603 eval value=\"\$LIB$uppername\"
26604 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26605 eval value=\"\$LTLIB$uppername\"
26606 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26607 else
26608 :
26609 fi
26610 else
26611 found_dir=
26612 found_la=
26613 found_so=
26614 found_a=
26615 if test $use_additional = yes; then
26616 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26617 found_dir="$additional_libdir"
26618 found_so="$additional_libdir/lib$name.$shlibext"
26619 if test -f "$additional_libdir/lib$name.la"; then
26620 found_la="$additional_libdir/lib$name.la"
26621 fi
26622 else
26623 if test -f "$additional_libdir/lib$name.$libext"; then
26624 found_dir="$additional_libdir"
26625 found_a="$additional_libdir/lib$name.$libext"
26626 if test -f "$additional_libdir/lib$name.la"; then
26627 found_la="$additional_libdir/lib$name.la"
26628 fi
26629 fi
26630 fi
26631 fi
26632 if test "X$found_dir" = "X"; then
26633 for x in $LDFLAGS $LTLIBICONV; do
26634
26635 acl_save_prefix="$prefix"
26636 prefix="$acl_final_prefix"
26637 acl_save_exec_prefix="$exec_prefix"
26638 exec_prefix="$acl_final_exec_prefix"
26639 eval x=\"$x\"
26640 exec_prefix="$acl_save_exec_prefix"
26641 prefix="$acl_save_prefix"
26642
26643 case "$x" in
26644 -L*)
26645 dir=`echo "X$x" | sed -e 's/^X-L//'`
26646 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26647 found_dir="$dir"
26648 found_so="$dir/lib$name.$shlibext"
26649 if test -f "$dir/lib$name.la"; then
26650 found_la="$dir/lib$name.la"
26651 fi
26652 else
26653 if test -f "$dir/lib$name.$libext"; then
26654 found_dir="$dir"
26655 found_a="$dir/lib$name.$libext"
26656 if test -f "$dir/lib$name.la"; then
26657 found_la="$dir/lib$name.la"
26658 fi
26659 fi
26660 fi
26661 ;;
26662 esac
26663 if test "X$found_dir" != "X"; then
26664 break
26665 fi
26666 done
26667 fi
26668 if test "X$found_dir" != "X"; then
26669 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26670 if test "X$found_so" != "X"; then
26671 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26672 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26673 else
26674 haveit=
26675 for x in $ltrpathdirs; do
26676 if test "X$x" = "X$found_dir"; then
26677 haveit=yes
26678 break
26679 fi
26680 done
26681 if test -z "$haveit"; then
26682 ltrpathdirs="$ltrpathdirs $found_dir"
26683 fi
26684 if test "$hardcode_direct" = yes; then
26685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26686 else
26687 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26688 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26689 haveit=
26690 for x in $rpathdirs; do
26691 if test "X$x" = "X$found_dir"; then
26692 haveit=yes
26693 break
26694 fi
26695 done
26696 if test -z "$haveit"; then
26697 rpathdirs="$rpathdirs $found_dir"
26698 fi
26699 else
26700 haveit=
26701 for x in $LDFLAGS $LIBICONV; do
26702
26703 acl_save_prefix="$prefix"
26704 prefix="$acl_final_prefix"
26705 acl_save_exec_prefix="$exec_prefix"
26706 exec_prefix="$acl_final_exec_prefix"
26707 eval x=\"$x\"
26708 exec_prefix="$acl_save_exec_prefix"
26709 prefix="$acl_save_prefix"
26710
26711 if test "X$x" = "X-L$found_dir"; then
26712 haveit=yes
26713 break
26714 fi
26715 done
26716 if test -z "$haveit"; then
26717 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26718 fi
26719 if test "$hardcode_minus_L" != no; then
26720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26721 else
26722 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26723 fi
26724 fi
26725 fi
26726 fi
26727 else
26728 if test "X$found_a" != "X"; then
26729 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26730 else
26731 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26732 fi
26733 fi
26734 additional_includedir=
26735 case "$found_dir" in
26736 */lib | */lib/)
26737 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26738 additional_includedir="$basedir/include"
26739 ;;
26740 esac
26741 if test "X$additional_includedir" != "X"; then
26742 if test "X$additional_includedir" != "X/usr/include"; then
26743 haveit=
26744 if test "X$additional_includedir" = "X/usr/local/include"; then
26745 if test -n "$GCC"; then
26746 case $host_os in
26747 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26748 esac
26749 fi
26750 fi
26751 if test -z "$haveit"; then
26752 for x in $CPPFLAGS $INCICONV; do
26753
26754 acl_save_prefix="$prefix"
26755 prefix="$acl_final_prefix"
26756 acl_save_exec_prefix="$exec_prefix"
26757 exec_prefix="$acl_final_exec_prefix"
26758 eval x=\"$x\"
26759 exec_prefix="$acl_save_exec_prefix"
26760 prefix="$acl_save_prefix"
26761
26762 if test "X$x" = "X-I$additional_includedir"; then
26763 haveit=yes
26764 break
26765 fi
26766 done
26767 if test -z "$haveit"; then
26768 if test -d "$additional_includedir"; then
26769 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26770 fi
26771 fi
26772 fi
26773 fi
26774 fi
26775 if test -n "$found_la"; then
26776 save_libdir="$libdir"
26777 case "$found_la" in
26778 */* | *\\*) . "$found_la" ;;
26779 *) . "./$found_la" ;;
26780 esac
26781 libdir="$save_libdir"
26782 for dep in $dependency_libs; do
26783 case "$dep" in
26784 -L*)
26785 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26786 if test "X$additional_libdir" != "X/usr/lib"; then
26787 haveit=
26788 if test "X$additional_libdir" = "X/usr/local/lib"; then
26789 if test -n "$GCC"; then
26790 case $host_os in
26791 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26792 esac
26793 fi
26794 fi
26795 if test -z "$haveit"; then
26796 haveit=
26797 for x in $LDFLAGS $LIBICONV; do
26798
26799 acl_save_prefix="$prefix"
26800 prefix="$acl_final_prefix"
26801 acl_save_exec_prefix="$exec_prefix"
26802 exec_prefix="$acl_final_exec_prefix"
26803 eval x=\"$x\"
26804 exec_prefix="$acl_save_exec_prefix"
26805 prefix="$acl_save_prefix"
26806
26807 if test "X$x" = "X-L$additional_libdir"; then
26808 haveit=yes
26809 break
26810 fi
26811 done
26812 if test -z "$haveit"; then
26813 if test -d "$additional_libdir"; then
26814 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26815 fi
26816 fi
26817 haveit=
26818 for x in $LDFLAGS $LTLIBICONV; do
26819
26820 acl_save_prefix="$prefix"
26821 prefix="$acl_final_prefix"
26822 acl_save_exec_prefix="$exec_prefix"
26823 exec_prefix="$acl_final_exec_prefix"
26824 eval x=\"$x\"
26825 exec_prefix="$acl_save_exec_prefix"
26826 prefix="$acl_save_prefix"
26827
26828 if test "X$x" = "X-L$additional_libdir"; then
26829 haveit=yes
26830 break
26831 fi
26832 done
26833 if test -z "$haveit"; then
26834 if test -d "$additional_libdir"; then
26835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26836 fi
26837 fi
26838 fi
26839 fi
26840 ;;
26841 -R*)
26842 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26843 if test "$enable_rpath" != no; then
26844 haveit=
26845 for x in $rpathdirs; do
26846 if test "X$x" = "X$dir"; then
26847 haveit=yes
26848 break
26849 fi
26850 done
26851 if test -z "$haveit"; then
26852 rpathdirs="$rpathdirs $dir"
26853 fi
26854 haveit=
26855 for x in $ltrpathdirs; do
26856 if test "X$x" = "X$dir"; then
26857 haveit=yes
26858 break
26859 fi
26860 done
26861 if test -z "$haveit"; then
26862 ltrpathdirs="$ltrpathdirs $dir"
26863 fi
26864 fi
26865 ;;
26866 -l*)
26867 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26868 ;;
26869 *.la)
26870 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26871 ;;
26872 *)
26873 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26874 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26875 ;;
26876 esac
26877 done
26878 fi
26879 else
26880 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26881 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26882 fi
26883 fi
26884 fi
26885 done
26886 done
26887 if test "X$rpathdirs" != "X"; then
26888 if test -n "$hardcode_libdir_separator"; then
26889 alldirs=
26890 for found_dir in $rpathdirs; do
26891 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26892 done
26893 acl_save_libdir="$libdir"
26894 libdir="$alldirs"
26895 eval flag=\"$hardcode_libdir_flag_spec\"
26896 libdir="$acl_save_libdir"
26897 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26898 else
26899 for found_dir in $rpathdirs; do
26900 acl_save_libdir="$libdir"
26901 libdir="$found_dir"
26902 eval flag=\"$hardcode_libdir_flag_spec\"
26903 libdir="$acl_save_libdir"
26904 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26905 done
26906 fi
26907 fi
26908 if test "X$ltrpathdirs" != "X"; then
26909 for found_dir in $ltrpathdirs; do
26910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26911 done
26912 fi
26913
26914
26915
26916
26917
26918
26919
26920
26921 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26922 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
26923 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26924 echo $ECHO_N "(cached) $ECHO_C" >&6
26925 else
26926 cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h. */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26932 $ac_includes_default
26933 int
26934 main ()
26935 {
26936 if ((ptrdiff_t *) 0)
26937 return 0;
26938 if (sizeof (ptrdiff_t))
26939 return 0;
26940 ;
26941 return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946 (eval $ac_compile) 2>conftest.er1
26947 ac_status=$?
26948 grep -v '^ *+' conftest.er1 >conftest.err
26949 rm -f conftest.er1
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; } &&
26959 { ac_try='test -s conftest.$ac_objext'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26962 ac_status=$?
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 ac_cv_type_ptrdiff_t=yes
26966 else
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 ac_cv_type_ptrdiff_t=no
26971 fi
26972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26973 fi
26974 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26975 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
26976 if test $ac_cv_type_ptrdiff_t = yes; then
26977 :
26978 else
26979
26980 cat >>confdefs.h <<\_ACEOF
26981 #define ptrdiff_t long
26982 _ACEOF
26983
26984
26985 fi
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
26998 stdlib.h string.h unistd.h sys/param.h
26999 do
27000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27002 echo "$as_me:$LINENO: checking for $ac_header" >&5
27003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27005 echo $ECHO_N "(cached) $ECHO_C" >&6
27006 fi
27007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27009 else
27010 # Is the header compilable?
27011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h. */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 $ac_includes_default
27020 #include <$ac_header>
27021 _ACEOF
27022 rm -f conftest.$ac_objext
27023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27024 (eval $ac_compile) 2>conftest.er1
27025 ac_status=$?
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } &&
27031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest.$ac_objext'
27038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039 (eval $ac_try) 2>&5
27040 ac_status=$?
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; }; then
27043 ac_header_compiler=yes
27044 else
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048 ac_header_compiler=no
27049 fi
27050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27052 echo "${ECHO_T}$ac_header_compiler" >&6
27053
27054 # Is the header present?
27055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27057 cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h. */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h. */
27063 #include <$ac_header>
27064 _ACEOF
27065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27067 ac_status=$?
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } >/dev/null; then
27073 if test -s conftest.err; then
27074 ac_cpp_err=$ac_c_preproc_warn_flag
27075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27076 else
27077 ac_cpp_err=
27078 fi
27079 else
27080 ac_cpp_err=yes
27081 fi
27082 if test -z "$ac_cpp_err"; then
27083 ac_header_preproc=yes
27084 else
27085 echo "$as_me: failed program was:" >&5
27086 sed 's/^/| /' conftest.$ac_ext >&5
27087
27088 ac_header_preproc=no
27089 fi
27090 rm -f conftest.err conftest.$ac_ext
27091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27092 echo "${ECHO_T}$ac_header_preproc" >&6
27093
27094 # So? What about this header?
27095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27096 yes:no: )
27097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27101 ac_header_preproc=yes
27102 ;;
27103 no:yes:* )
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27116 (
27117 cat <<\_ASBOX
27118 ## ------------------------------------------ ##
27119 ## Report this to the AC_PACKAGE_NAME lists. ##
27120 ## ------------------------------------------ ##
27121 _ASBOX
27122 ) |
27123 sed "s/^/$as_me: WARNING: /" >&2
27124 ;;
27125 esac
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 else
27131 eval "$as_ac_Header=\$ac_header_preproc"
27132 fi
27133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27135
27136 fi
27137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27138 cat >>confdefs.h <<_ACEOF
27139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27140 _ACEOF
27141
27142 fi
27143
27144 done
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
27170 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
27171 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
27172 __fsetlocking
27173 do
27174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27175 echo "$as_me:$LINENO: checking for $ac_func" >&5
27176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27177 if eval "test \"\${$as_ac_var+set}\" = set"; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180 cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h. */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h. */
27186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27188 #define $ac_func innocuous_$ac_func
27189
27190 /* System header to define __stub macros and hopefully few prototypes,
27191 which can conflict with char $ac_func (); below.
27192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27193 <limits.h> exists even on freestanding compilers. */
27194
27195 #ifdef __STDC__
27196 # include <limits.h>
27197 #else
27198 # include <assert.h>
27199 #endif
27200
27201 #undef $ac_func
27202
27203 /* Override any gcc2 internal prototype to avoid an error. */
27204 #ifdef __cplusplus
27205 extern "C"
27206 {
27207 #endif
27208 /* We use char because int might match the return type of a gcc2
27209 builtin and then its argument prototype would still apply. */
27210 char $ac_func ();
27211 /* The GNU C library defines this for functions which it implements
27212 to always fail with ENOSYS. Some functions are actually named
27213 something starting with __ and the normal name is an alias. */
27214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27215 choke me
27216 #else
27217 char (*f) () = $ac_func;
27218 #endif
27219 #ifdef __cplusplus
27220 }
27221 #endif
27222
27223 int
27224 main ()
27225 {
27226 return f != $ac_func;
27227 ;
27228 return 0;
27229 }
27230 _ACEOF
27231 rm -f conftest.$ac_objext conftest$ac_exeext
27232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27233 (eval $ac_link) 2>conftest.er1
27234 ac_status=$?
27235 grep -v '^ *+' conftest.er1 >conftest.err
27236 rm -f conftest.er1
27237 cat conftest.err >&5
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); } &&
27240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; } &&
27246 { ac_try='test -s conftest$ac_exeext'
27247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248 (eval $ac_try) 2>&5
27249 ac_status=$?
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; }; then
27252 eval "$as_ac_var=yes"
27253 else
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257 eval "$as_ac_var=no"
27258 fi
27259 rm -f conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
27261 fi
27262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27264 if test `eval echo '${'$as_ac_var'}'` = yes; then
27265 cat >>confdefs.h <<_ACEOF
27266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27267 _ACEOF
27268
27269 fi
27270 done
27271
27272
27273
27274 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
27275 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
27276 if test "${ac_cv_have_decl__snprintf+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27278 else
27279 cat >conftest.$ac_ext <<_ACEOF
27280 /* confdefs.h. */
27281 _ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h. */
27285 #include <stdio.h>
27286 int
27287 main ()
27288 {
27289
27290 #ifndef _snprintf
27291 char *p = (char *) _snprintf;
27292 #endif
27293
27294 ;
27295 return 0;
27296 }
27297 _ACEOF
27298 rm -f conftest.$ac_objext
27299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27300 (eval $ac_compile) 2>conftest.er1
27301 ac_status=$?
27302 grep -v '^ *+' conftest.er1 >conftest.err
27303 rm -f conftest.er1
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } &&
27307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest.$ac_objext'
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 ac_cv_have_decl__snprintf=yes
27320 else
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_cv_have_decl__snprintf=no
27325 fi
27326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327 fi
27328 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
27329 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
27330 if test $ac_cv_have_decl__snprintf = yes; then
27331 gt_value=1
27332 else
27333 gt_value=0
27334 fi
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_DECL__SNPRINTF $gt_value
27338 _ACEOF
27339
27340
27341
27342 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
27343 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
27344 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346 else
27347 cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h. */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h. */
27353 #include <stdio.h>
27354 int
27355 main ()
27356 {
27357
27358 #ifndef _snwprintf
27359 char *p = (char *) _snwprintf;
27360 #endif
27361
27362 ;
27363 return 0;
27364 }
27365 _ACEOF
27366 rm -f conftest.$ac_objext
27367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27368 (eval $ac_compile) 2>conftest.er1
27369 ac_status=$?
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
27375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest.$ac_objext'
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_cv_have_decl__snwprintf=yes
27388 else
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ac_cv_have_decl__snwprintf=no
27393 fi
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395 fi
27396 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
27397 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
27398 if test $ac_cv_have_decl__snwprintf = yes; then
27399 gt_value=1
27400 else
27401 gt_value=0
27402 fi
27403
27404 cat >>confdefs.h <<_ACEOF
27405 #define HAVE_DECL__SNWPRINTF $gt_value
27406 _ACEOF
27407
27408
27409
27410
27411 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
27412 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
27413 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416 cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h. */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 #include <stdio.h>
27423 int
27424 main ()
27425 {
27426
27427 #ifndef feof_unlocked
27428 char *p = (char *) feof_unlocked;
27429 #endif
27430
27431 ;
27432 return 0;
27433 }
27434 _ACEOF
27435 rm -f conftest.$ac_objext
27436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27437 (eval $ac_compile) 2>conftest.er1
27438 ac_status=$?
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
27444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; } &&
27450 { ac_try='test -s conftest.$ac_objext'
27451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452 (eval $ac_try) 2>&5
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); }; }; then
27456 ac_cv_have_decl_feof_unlocked=yes
27457 else
27458 echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461 ac_cv_have_decl_feof_unlocked=no
27462 fi
27463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27464 fi
27465 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
27466 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
27467 if test $ac_cv_have_decl_feof_unlocked = yes; then
27468 gt_value=1
27469 else
27470 gt_value=0
27471 fi
27472
27473 cat >>confdefs.h <<_ACEOF
27474 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
27475 _ACEOF
27476
27477
27478
27479 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
27480 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
27481 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 else
27484 cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h. */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 #include <stdio.h>
27491 int
27492 main ()
27493 {
27494
27495 #ifndef fgets_unlocked
27496 char *p = (char *) fgets_unlocked;
27497 #endif
27498
27499 ;
27500 return 0;
27501 }
27502 _ACEOF
27503 rm -f conftest.$ac_objext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27505 (eval $ac_compile) 2>conftest.er1
27506 ac_status=$?
27507 grep -v '^ *+' conftest.er1 >conftest.err
27508 rm -f conftest.er1
27509 cat conftest.err >&5
27510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } &&
27512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest.$ac_objext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_cv_have_decl_fgets_unlocked=yes
27525 else
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27528
27529 ac_cv_have_decl_fgets_unlocked=no
27530 fi
27531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27532 fi
27533 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
27534 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
27535 if test $ac_cv_have_decl_fgets_unlocked = yes; then
27536 gt_value=1
27537 else
27538 gt_value=0
27539 fi
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
27543 _ACEOF
27544
27545
27546
27547 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27548 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
27549 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
27551 else
27552 cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h. */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h. */
27558 #include <stdio.h>
27559 int
27560 main ()
27561 {
27562
27563 #ifndef getc_unlocked
27564 char *p = (char *) getc_unlocked;
27565 #endif
27566
27567 ;
27568 return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext
27572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27573 (eval $ac_compile) 2>conftest.er1
27574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest.$ac_objext'
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 ac_cv_have_decl_getc_unlocked=yes
27593 else
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597 ac_cv_have_decl_getc_unlocked=no
27598 fi
27599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27600 fi
27601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27602 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
27603 if test $ac_cv_have_decl_getc_unlocked = yes; then
27604 gt_value=1
27605 else
27606 gt_value=0
27607 fi
27608
27609 cat >>confdefs.h <<_ACEOF
27610 #define HAVE_DECL_GETC_UNLOCKED $gt_value
27611 _ACEOF
27612
27613
27614
27615 case $gt_cv_func_printf_posix in
27616 *yes) HAVE_POSIX_PRINTF=1 ;;
27617 *) HAVE_POSIX_PRINTF=0 ;;
27618 esac
27619
27620 if test "$ac_cv_func_asprintf" = yes; then
27621 HAVE_ASPRINTF=1
27622 else
27623 HAVE_ASPRINTF=0
27624 fi
27625
27626 if test "$ac_cv_func_snprintf" = yes; then
27627 HAVE_SNPRINTF=1
27628 else
27629 HAVE_SNPRINTF=0
27630 fi
27631
27632 if test "$ac_cv_func_wprintf" = yes; then
27633 HAVE_WPRINTF=1
27634 else
27635 HAVE_WPRINTF=0
27636 fi
27637
27638
27639
27640
27641
27642
27643
27644 am_save_CPPFLAGS="$CPPFLAGS"
27645
27646 for element in $INCICONV; do
27647 haveit=
27648 for x in $CPPFLAGS; do
27649
27650 acl_save_prefix="$prefix"
27651 prefix="$acl_final_prefix"
27652 acl_save_exec_prefix="$exec_prefix"
27653 exec_prefix="$acl_final_exec_prefix"
27654 eval x=\"$x\"
27655 exec_prefix="$acl_save_exec_prefix"
27656 prefix="$acl_save_prefix"
27657
27658 if test "X$x" = "X$element"; then
27659 haveit=yes
27660 break
27661 fi
27662 done
27663 if test -z "$haveit"; then
27664 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27665 fi
27666 done
27667
27668
27669 echo "$as_me:$LINENO: checking for iconv" >&5
27670 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27671 if test "${am_cv_func_iconv+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673 else
27674
27675 am_cv_func_iconv="no, consider installing GNU libiconv"
27676 am_cv_lib_iconv=no
27677 cat >conftest.$ac_ext <<_ACEOF
27678 /* confdefs.h. */
27679 _ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27683 #include <stdlib.h>
27684 #include <iconv.h>
27685 int
27686 main ()
27687 {
27688 iconv_t cd = iconv_open("","");
27689 iconv(cd,NULL,NULL,NULL,NULL);
27690 iconv_close(cd);
27691 ;
27692 return 0;
27693 }
27694 _ACEOF
27695 rm -f conftest.$ac_objext conftest$ac_exeext
27696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27697 (eval $ac_link) 2>conftest.er1
27698 ac_status=$?
27699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } &&
27704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706 (eval $ac_try) 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; } &&
27710 { ac_try='test -s conftest$ac_exeext'
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; }; then
27716 am_cv_func_iconv=yes
27717 else
27718 echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721 fi
27722 rm -f conftest.err conftest.$ac_objext \
27723 conftest$ac_exeext conftest.$ac_ext
27724 if test "$am_cv_func_iconv" != yes; then
27725 am_save_LIBS="$LIBS"
27726 LIBS="$LIBS $LIBICONV"
27727 cat >conftest.$ac_ext <<_ACEOF
27728 /* confdefs.h. */
27729 _ACEOF
27730 cat confdefs.h >>conftest.$ac_ext
27731 cat >>conftest.$ac_ext <<_ACEOF
27732 /* end confdefs.h. */
27733 #include <stdlib.h>
27734 #include <iconv.h>
27735 int
27736 main ()
27737 {
27738 iconv_t cd = iconv_open("","");
27739 iconv(cd,NULL,NULL,NULL,NULL);
27740 iconv_close(cd);
27741 ;
27742 return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747 (eval $ac_link) 2>conftest.er1
27748 ac_status=$?
27749 grep -v '^ *+' conftest.er1 >conftest.err
27750 rm -f conftest.er1
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
27754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 am_cv_lib_iconv=yes
27767 am_cv_func_iconv=yes
27768 else
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27771
27772 fi
27773 rm -f conftest.err conftest.$ac_objext \
27774 conftest$ac_exeext conftest.$ac_ext
27775 LIBS="$am_save_LIBS"
27776 fi
27777
27778 fi
27779 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27780 echo "${ECHO_T}$am_cv_func_iconv" >&6
27781 if test "$am_cv_func_iconv" = yes; then
27782
27783 cat >>confdefs.h <<\_ACEOF
27784 #define HAVE_ICONV 1
27785 _ACEOF
27786
27787 fi
27788 if test "$am_cv_lib_iconv" = yes; then
27789 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
27790 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
27791 echo "$as_me:$LINENO: result: $LIBICONV" >&5
27792 echo "${ECHO_T}$LIBICONV" >&6
27793 else
27794 CPPFLAGS="$am_save_CPPFLAGS"
27795 LIBICONV=
27796 LTLIBICONV=
27797 fi
27798
27799
27800
27801 if test "$am_cv_func_iconv" = yes; then
27802 echo "$as_me:$LINENO: checking for iconv declaration" >&5
27803 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
27804 if test "${am_cv_proto_iconv+set}" = set; then
27805 echo $ECHO_N "(cached) $ECHO_C" >&6
27806 else
27807
27808 cat >conftest.$ac_ext <<_ACEOF
27809 /* confdefs.h. */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h. */
27814
27815 #include <stdlib.h>
27816 #include <iconv.h>
27817 extern
27818 #ifdef __cplusplus
27819 "C"
27820 #endif
27821 #if defined(__STDC__) || defined(__cplusplus)
27822 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27823 #else
27824 size_t iconv();
27825 #endif
27826
27827 int
27828 main ()
27829 {
27830
27831 ;
27832 return 0;
27833 }
27834 _ACEOF
27835 rm -f conftest.$ac_objext
27836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27837 (eval $ac_compile) 2>conftest.er1
27838 ac_status=$?
27839 grep -v '^ *+' conftest.er1 >conftest.err
27840 rm -f conftest.er1
27841 cat conftest.err >&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); } &&
27844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27847 ac_status=$?
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; } &&
27850 { ac_try='test -s conftest.$ac_objext'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; }; then
27856 am_cv_proto_iconv_arg1=""
27857 else
27858 echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 am_cv_proto_iconv_arg1="const"
27862 fi
27863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27864 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
27865 fi
27866
27867 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
27868 echo "$as_me:$LINENO: result: ${ac_t:-
27869 }$am_cv_proto_iconv" >&5
27870 echo "${ECHO_T}${ac_t:-
27871 }$am_cv_proto_iconv" >&6
27872
27873 cat >>confdefs.h <<_ACEOF
27874 #define ICONV_CONST $am_cv_proto_iconv_arg1
27875 _ACEOF
27876
27877 fi
27878
27879
27880 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
27881 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
27882 if test "${am_cv_langinfo_codeset+set}" = set; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27884 else
27885 cat >conftest.$ac_ext <<_ACEOF
27886 /* confdefs.h. */
27887 _ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27891 #include <langinfo.h>
27892 int
27893 main ()
27894 {
27895 char* cs = nl_langinfo(CODESET);
27896 ;
27897 return 0;
27898 }
27899 _ACEOF
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902 (eval $ac_link) 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } &&
27909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27911 (eval $ac_try) 2>&5
27912 ac_status=$?
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); }; } &&
27915 { ac_try='test -s conftest$ac_exeext'
27916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27917 (eval $ac_try) 2>&5
27918 ac_status=$?
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; }; then
27921 am_cv_langinfo_codeset=yes
27922 else
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926 am_cv_langinfo_codeset=no
27927 fi
27928 rm -f conftest.err conftest.$ac_objext \
27929 conftest$ac_exeext conftest.$ac_ext
27930
27931 fi
27932 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
27933 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
27934 if test $am_cv_langinfo_codeset = yes; then
27935
27936 cat >>confdefs.h <<\_ACEOF
27937 #define HAVE_LANGINFO_CODESET 1
27938 _ACEOF
27939
27940 fi
27941
27942 if test $ac_cv_header_locale_h = yes; then
27943
27944 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27945 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
27946 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949 cat >conftest.$ac_ext <<_ACEOF
27950 /* confdefs.h. */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27955 #include <locale.h>
27956 int
27957 main ()
27958 {
27959 return LC_MESSAGES
27960 ;
27961 return 0;
27962 }
27963 _ACEOF
27964 rm -f conftest.$ac_objext conftest$ac_exeext
27965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27966 (eval $ac_link) 2>conftest.er1
27967 ac_status=$?
27968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; } &&
27979 { ac_try='test -s conftest$ac_exeext'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; }; then
27985 gt_cv_val_LC_MESSAGES=yes
27986 else
27987 echo "$as_me: failed program was:" >&5
27988 sed 's/^/| /' conftest.$ac_ext >&5
27989
27990 gt_cv_val_LC_MESSAGES=no
27991 fi
27992 rm -f conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
27994 fi
27995 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
27996 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
27997 if test $gt_cv_val_LC_MESSAGES = yes; then
27998
27999 cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_LC_MESSAGES 1
28001 _ACEOF
28002
28003 fi
28004
28005 fi
28006
28007 if test -n "$INTL_MACOSX_LIBS"; then
28008 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28009 fi
28010
28011 for ac_prog in bison
28012 do
28013 # Extract the first word of "$ac_prog", so it can be a program name with args.
28014 set dummy $ac_prog; ac_word=$2
28015 echo "$as_me:$LINENO: checking for $ac_word" >&5
28016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28017 if test "${ac_cv_prog_INTLBISON+set}" = set; then
28018 echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020 if test -n "$INTLBISON"; then
28021 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
28022 else
28023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28024 for as_dir in $PATH
28025 do
28026 IFS=$as_save_IFS
28027 test -z "$as_dir" && as_dir=.
28028 for ac_exec_ext in '' $ac_executable_extensions; do
28029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28030 ac_cv_prog_INTLBISON="$ac_prog"
28031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28032 break 2
28033 fi
28034 done
28035 done
28036
28037 fi
28038 fi
28039 INTLBISON=$ac_cv_prog_INTLBISON
28040 if test -n "$INTLBISON"; then
28041 echo "$as_me:$LINENO: result: $INTLBISON" >&5
28042 echo "${ECHO_T}$INTLBISON" >&6
28043 else
28044 echo "$as_me:$LINENO: result: no" >&5
28045 echo "${ECHO_T}no" >&6
28046 fi
28047
28048 test -n "$INTLBISON" && break
28049 done
28050
28051 if test -z "$INTLBISON"; then
28052 ac_verc_fail=yes
28053 else
28054 echo "$as_me:$LINENO: checking version of bison" >&5
28055 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
28056 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
28057 case $ac_prog_version in
28058 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
28059 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
28060 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
28061 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
28062 esac
28063 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
28064 echo "${ECHO_T}$ac_prog_version" >&6
28065 fi
28066 if test $ac_verc_fail = yes; then
28067 INTLBISON=:
28068 fi
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
28086 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
28087 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28089 else
28090 gt_save_CPPFLAGS="$CPPFLAGS"
28091 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28092 gt_save_LIBS="$LIBS"
28093 LIBS="$LIBS -framework CoreFoundation"
28094 cat >conftest.$ac_ext <<_ACEOF
28095 /* confdefs.h. */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100 #include <CFPreferences.h>
28101 int
28102 main ()
28103 {
28104 CFPreferencesCopyAppValue(NULL, NULL)
28105 ;
28106 return 0;
28107 }
28108 _ACEOF
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28111 (eval $ac_link) 2>conftest.er1
28112 ac_status=$?
28113 grep -v '^ *+' conftest.er1 >conftest.err
28114 rm -f conftest.er1
28115 cat conftest.err >&5
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); } &&
28118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; } &&
28124 { ac_try='test -s conftest$ac_exeext'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 gt_cv_func_CFPreferencesCopyAppValue=yes
28131 else
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 gt_cv_func_CFPreferencesCopyAppValue=no
28136 fi
28137 rm -f conftest.err conftest.$ac_objext \
28138 conftest$ac_exeext conftest.$ac_ext
28139 CPPFLAGS="$gt_save_CPPFLAGS"
28140 LIBS="$gt_save_LIBS"
28141 fi
28142 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
28143 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
28144 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
28145
28146 cat >>confdefs.h <<\_ACEOF
28147 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
28148 _ACEOF
28149
28150 fi
28151 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
28152 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
28153 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28155 else
28156 gt_save_CPPFLAGS="$CPPFLAGS"
28157 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28158 gt_save_LIBS="$LIBS"
28159 LIBS="$LIBS -framework CoreFoundation"
28160 cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h. */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28166 #include <CFLocale.h>
28167 int
28168 main ()
28169 {
28170 CFLocaleCopyCurrent();
28171 ;
28172 return 0;
28173 }
28174 _ACEOF
28175 rm -f conftest.$ac_objext conftest$ac_exeext
28176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28177 (eval $ac_link) 2>conftest.er1
28178 ac_status=$?
28179 grep -v '^ *+' conftest.er1 >conftest.err
28180 rm -f conftest.er1
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest$ac_exeext'
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; }; then
28196 gt_cv_func_CFLocaleCopyCurrent=yes
28197 else
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201 gt_cv_func_CFLocaleCopyCurrent=no
28202 fi
28203 rm -f conftest.err conftest.$ac_objext \
28204 conftest$ac_exeext conftest.$ac_ext
28205 CPPFLAGS="$gt_save_CPPFLAGS"
28206 LIBS="$gt_save_LIBS"
28207 fi
28208 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
28209 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
28210 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28211
28212 cat >>confdefs.h <<\_ACEOF
28213 #define HAVE_CFLOCALECOPYCURRENT 1
28214 _ACEOF
28215
28216 fi
28217 INTL_MACOSX_LIBS=
28218 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28219 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
28220 fi
28221
28222
28223
28224
28225 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
28226 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
28227 # Check whether --enable-nls or --disable-nls was given.
28228 if test "${enable_nls+set}" = set; then
28229 enableval="$enable_nls"
28230 USE_NLS=$enableval
28231 else
28232 USE_NLS=yes
28233 fi;
28234 echo "$as_me:$LINENO: result: $USE_NLS" >&5
28235 echo "${ECHO_T}$USE_NLS" >&6
28236
28237
28238
28239
28240 BUILD_INCLUDED_LIBINTL=no
28241 USE_INCLUDED_LIBINTL=no
28242
28243 LIBINTL=
28244 LTLIBINTL=
28245 POSUB=
28246
28247 if test "$USE_NLS" = "yes"; then
28248 gt_use_preinstalled_gnugettext=no
28249
28250 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
28251 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
28252
28253 # Check whether --with-included-gettext or --without-included-gettext was given.
28254 if test "${with_included_gettext+set}" = set; then
28255 withval="$with_included_gettext"
28256 nls_cv_force_use_gnu_gettext=$withval
28257 else
28258 nls_cv_force_use_gnu_gettext=no
28259 fi;
28260 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
28261 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
28262
28263 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
28264 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
28265
28266
28267
28268
28269
28270
28271 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
28272 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
28273 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276 cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h. */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 #include <libintl.h>
28283 extern int _nl_msg_cat_cntr;
28284 extern int *_nl_domain_bindings;
28285 int
28286 main ()
28287 {
28288 bindtextdomain ("", "");
28289 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
28290 ;
28291 return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296 (eval $ac_link) 2>conftest.er1
28297 ac_status=$?
28298 grep -v '^ *+' conftest.er1 >conftest.err
28299 rm -f conftest.er1
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
28303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest$ac_exeext'
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 gt_cv_func_gnugettext1_libc=yes
28316 else
28317 echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 gt_cv_func_gnugettext1_libc=no
28321 fi
28322 rm -f conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28324 fi
28325 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
28326 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
28327
28328 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
28329
28330
28331
28332 use_additional=yes
28333
28334 acl_save_prefix="$prefix"
28335 prefix="$acl_final_prefix"
28336 acl_save_exec_prefix="$exec_prefix"
28337 exec_prefix="$acl_final_exec_prefix"
28338
28339 eval additional_includedir=\"$includedir\"
28340 eval additional_libdir=\"$libdir\"
28341
28342 exec_prefix="$acl_save_exec_prefix"
28343 prefix="$acl_save_prefix"
28344
28345
28346 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
28347 if test "${with_libintl_prefix+set}" = set; then
28348 withval="$with_libintl_prefix"
28349
28350 if test "X$withval" = "Xno"; then
28351 use_additional=no
28352 else
28353 if test "X$withval" = "X"; then
28354
28355 acl_save_prefix="$prefix"
28356 prefix="$acl_final_prefix"
28357 acl_save_exec_prefix="$exec_prefix"
28358 exec_prefix="$acl_final_exec_prefix"
28359
28360 eval additional_includedir=\"$includedir\"
28361 eval additional_libdir=\"$libdir\"
28362
28363 exec_prefix="$acl_save_exec_prefix"
28364 prefix="$acl_save_prefix"
28365
28366 else
28367 additional_includedir="$withval/include"
28368 additional_libdir="$withval/lib"
28369 fi
28370 fi
28371
28372 fi;
28373 LIBINTL=
28374 LTLIBINTL=
28375 INCINTL=
28376 rpathdirs=
28377 ltrpathdirs=
28378 names_already_handled=
28379 names_next_round='intl '
28380 while test -n "$names_next_round"; do
28381 names_this_round="$names_next_round"
28382 names_next_round=
28383 for name in $names_this_round; do
28384 already_handled=
28385 for n in $names_already_handled; do
28386 if test "$n" = "$name"; then
28387 already_handled=yes
28388 break
28389 fi
28390 done
28391 if test -z "$already_handled"; then
28392 names_already_handled="$names_already_handled $name"
28393 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28394 eval value=\"\$HAVE_LIB$uppername\"
28395 if test -n "$value"; then
28396 if test "$value" = yes; then
28397 eval value=\"\$LIB$uppername\"
28398 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28399 eval value=\"\$LTLIB$uppername\"
28400 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28401 else
28402 :
28403 fi
28404 else
28405 found_dir=
28406 found_la=
28407 found_so=
28408 found_a=
28409 if test $use_additional = yes; then
28410 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28411 found_dir="$additional_libdir"
28412 found_so="$additional_libdir/lib$name.$shlibext"
28413 if test -f "$additional_libdir/lib$name.la"; then
28414 found_la="$additional_libdir/lib$name.la"
28415 fi
28416 else
28417 if test -f "$additional_libdir/lib$name.$libext"; then
28418 found_dir="$additional_libdir"
28419 found_a="$additional_libdir/lib$name.$libext"
28420 if test -f "$additional_libdir/lib$name.la"; then
28421 found_la="$additional_libdir/lib$name.la"
28422 fi
28423 fi
28424 fi
28425 fi
28426 if test "X$found_dir" = "X"; then
28427 for x in $LDFLAGS $LTLIBINTL; do
28428
28429 acl_save_prefix="$prefix"
28430 prefix="$acl_final_prefix"
28431 acl_save_exec_prefix="$exec_prefix"
28432 exec_prefix="$acl_final_exec_prefix"
28433 eval x=\"$x\"
28434 exec_prefix="$acl_save_exec_prefix"
28435 prefix="$acl_save_prefix"
28436
28437 case "$x" in
28438 -L*)
28439 dir=`echo "X$x" | sed -e 's/^X-L//'`
28440 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28441 found_dir="$dir"
28442 found_so="$dir/lib$name.$shlibext"
28443 if test -f "$dir/lib$name.la"; then
28444 found_la="$dir/lib$name.la"
28445 fi
28446 else
28447 if test -f "$dir/lib$name.$libext"; then
28448 found_dir="$dir"
28449 found_a="$dir/lib$name.$libext"
28450 if test -f "$dir/lib$name.la"; then
28451 found_la="$dir/lib$name.la"
28452 fi
28453 fi
28454 fi
28455 ;;
28456 esac
28457 if test "X$found_dir" != "X"; then
28458 break
28459 fi
28460 done
28461 fi
28462 if test "X$found_dir" != "X"; then
28463 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28464 if test "X$found_so" != "X"; then
28465 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28466 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28467 else
28468 haveit=
28469 for x in $ltrpathdirs; do
28470 if test "X$x" = "X$found_dir"; then
28471 haveit=yes
28472 break
28473 fi
28474 done
28475 if test -z "$haveit"; then
28476 ltrpathdirs="$ltrpathdirs $found_dir"
28477 fi
28478 if test "$hardcode_direct" = yes; then
28479 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28480 else
28481 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28482 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28483 haveit=
28484 for x in $rpathdirs; do
28485 if test "X$x" = "X$found_dir"; then
28486 haveit=yes
28487 break
28488 fi
28489 done
28490 if test -z "$haveit"; then
28491 rpathdirs="$rpathdirs $found_dir"
28492 fi
28493 else
28494 haveit=
28495 for x in $LDFLAGS $LIBINTL; do
28496
28497 acl_save_prefix="$prefix"
28498 prefix="$acl_final_prefix"
28499 acl_save_exec_prefix="$exec_prefix"
28500 exec_prefix="$acl_final_exec_prefix"
28501 eval x=\"$x\"
28502 exec_prefix="$acl_save_exec_prefix"
28503 prefix="$acl_save_prefix"
28504
28505 if test "X$x" = "X-L$found_dir"; then
28506 haveit=yes
28507 break
28508 fi
28509 done
28510 if test -z "$haveit"; then
28511 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28512 fi
28513 if test "$hardcode_minus_L" != no; then
28514 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28515 else
28516 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28517 fi
28518 fi
28519 fi
28520 fi
28521 else
28522 if test "X$found_a" != "X"; then
28523 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28524 else
28525 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28526 fi
28527 fi
28528 additional_includedir=
28529 case "$found_dir" in
28530 */lib | */lib/)
28531 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28532 additional_includedir="$basedir/include"
28533 ;;
28534 esac
28535 if test "X$additional_includedir" != "X"; then
28536 if test "X$additional_includedir" != "X/usr/include"; then
28537 haveit=
28538 if test "X$additional_includedir" = "X/usr/local/include"; then
28539 if test -n "$GCC"; then
28540 case $host_os in
28541 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28542 esac
28543 fi
28544 fi
28545 if test -z "$haveit"; then
28546 for x in $CPPFLAGS $INCINTL; do
28547
28548 acl_save_prefix="$prefix"
28549 prefix="$acl_final_prefix"
28550 acl_save_exec_prefix="$exec_prefix"
28551 exec_prefix="$acl_final_exec_prefix"
28552 eval x=\"$x\"
28553 exec_prefix="$acl_save_exec_prefix"
28554 prefix="$acl_save_prefix"
28555
28556 if test "X$x" = "X-I$additional_includedir"; then
28557 haveit=yes
28558 break
28559 fi
28560 done
28561 if test -z "$haveit"; then
28562 if test -d "$additional_includedir"; then
28563 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28564 fi
28565 fi
28566 fi
28567 fi
28568 fi
28569 if test -n "$found_la"; then
28570 save_libdir="$libdir"
28571 case "$found_la" in
28572 */* | *\\*) . "$found_la" ;;
28573 *) . "./$found_la" ;;
28574 esac
28575 libdir="$save_libdir"
28576 for dep in $dependency_libs; do
28577 case "$dep" in
28578 -L*)
28579 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28580 if test "X$additional_libdir" != "X/usr/lib"; then
28581 haveit=
28582 if test "X$additional_libdir" = "X/usr/local/lib"; then
28583 if test -n "$GCC"; then
28584 case $host_os in
28585 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28586 esac
28587 fi
28588 fi
28589 if test -z "$haveit"; then
28590 haveit=
28591 for x in $LDFLAGS $LIBINTL; do
28592
28593 acl_save_prefix="$prefix"
28594 prefix="$acl_final_prefix"
28595 acl_save_exec_prefix="$exec_prefix"
28596 exec_prefix="$acl_final_exec_prefix"
28597 eval x=\"$x\"
28598 exec_prefix="$acl_save_exec_prefix"
28599 prefix="$acl_save_prefix"
28600
28601 if test "X$x" = "X-L$additional_libdir"; then
28602 haveit=yes
28603 break
28604 fi
28605 done
28606 if test -z "$haveit"; then
28607 if test -d "$additional_libdir"; then
28608 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28609 fi
28610 fi
28611 haveit=
28612 for x in $LDFLAGS $LTLIBINTL; do
28613
28614 acl_save_prefix="$prefix"
28615 prefix="$acl_final_prefix"
28616 acl_save_exec_prefix="$exec_prefix"
28617 exec_prefix="$acl_final_exec_prefix"
28618 eval x=\"$x\"
28619 exec_prefix="$acl_save_exec_prefix"
28620 prefix="$acl_save_prefix"
28621
28622 if test "X$x" = "X-L$additional_libdir"; then
28623 haveit=yes
28624 break
28625 fi
28626 done
28627 if test -z "$haveit"; then
28628 if test -d "$additional_libdir"; then
28629 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28630 fi
28631 fi
28632 fi
28633 fi
28634 ;;
28635 -R*)
28636 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28637 if test "$enable_rpath" != no; then
28638 haveit=
28639 for x in $rpathdirs; do
28640 if test "X$x" = "X$dir"; then
28641 haveit=yes
28642 break
28643 fi
28644 done
28645 if test -z "$haveit"; then
28646 rpathdirs="$rpathdirs $dir"
28647 fi
28648 haveit=
28649 for x in $ltrpathdirs; do
28650 if test "X$x" = "X$dir"; then
28651 haveit=yes
28652 break
28653 fi
28654 done
28655 if test -z "$haveit"; then
28656 ltrpathdirs="$ltrpathdirs $dir"
28657 fi
28658 fi
28659 ;;
28660 -l*)
28661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28662 ;;
28663 *.la)
28664 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28665 ;;
28666 *)
28667 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28669 ;;
28670 esac
28671 done
28672 fi
28673 else
28674 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28676 fi
28677 fi
28678 fi
28679 done
28680 done
28681 if test "X$rpathdirs" != "X"; then
28682 if test -n "$hardcode_libdir_separator"; then
28683 alldirs=
28684 for found_dir in $rpathdirs; do
28685 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28686 done
28687 acl_save_libdir="$libdir"
28688 libdir="$alldirs"
28689 eval flag=\"$hardcode_libdir_flag_spec\"
28690 libdir="$acl_save_libdir"
28691 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28692 else
28693 for found_dir in $rpathdirs; do
28694 acl_save_libdir="$libdir"
28695 libdir="$found_dir"
28696 eval flag=\"$hardcode_libdir_flag_spec\"
28697 libdir="$acl_save_libdir"
28698 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28699 done
28700 fi
28701 fi
28702 if test "X$ltrpathdirs" != "X"; then
28703 for found_dir in $ltrpathdirs; do
28704 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28705 done
28706 fi
28707
28708 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28709 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
28710 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28711 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 else
28713 gt_save_CPPFLAGS="$CPPFLAGS"
28714 CPPFLAGS="$CPPFLAGS $INCINTL"
28715 gt_save_LIBS="$LIBS"
28716 LIBS="$LIBS $LIBINTL"
28717 cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h. */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 #include <libintl.h>
28724 extern int _nl_msg_cat_cntr;
28725 extern
28726 #ifdef __cplusplus
28727 "C"
28728 #endif
28729 const char *_nl_expand_alias (const char *);
28730 int
28731 main ()
28732 {
28733 bindtextdomain ("", "");
28734 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28735 ;
28736 return 0;
28737 }
28738 _ACEOF
28739 rm -f conftest.$ac_objext conftest$ac_exeext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28741 (eval $ac_link) 2>conftest.er1
28742 ac_status=$?
28743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
28748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest$ac_exeext'
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 gt_cv_func_gnugettext1_libintl=yes
28761 else
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765 gt_cv_func_gnugettext1_libintl=no
28766 fi
28767 rm -f conftest.err conftest.$ac_objext \
28768 conftest$ac_exeext conftest.$ac_ext
28769 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28770 LIBS="$LIBS $LIBICONV"
28771 cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h. */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h. */
28777 #include <libintl.h>
28778 extern int _nl_msg_cat_cntr;
28779 extern
28780 #ifdef __cplusplus
28781 "C"
28782 #endif
28783 const char *_nl_expand_alias (const char *);
28784 int
28785 main ()
28786 {
28787 bindtextdomain ("", "");
28788 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28789 ;
28790 return 0;
28791 }
28792 _ACEOF
28793 rm -f conftest.$ac_objext conftest$ac_exeext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28795 (eval $ac_link) 2>conftest.er1
28796 ac_status=$?
28797 grep -v '^ *+' conftest.er1 >conftest.err
28798 rm -f conftest.er1
28799 cat conftest.err >&5
28800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804 (eval $ac_try) 2>&5
28805 ac_status=$?
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); }; } &&
28808 { ac_try='test -s conftest$ac_exeext'
28809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810 (eval $ac_try) 2>&5
28811 ac_status=$?
28812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); }; }; then
28814 LIBINTL="$LIBINTL $LIBICONV"
28815 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28816 gt_cv_func_gnugettext1_libintl=yes
28817
28818 else
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822 fi
28823 rm -f conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825 fi
28826 CPPFLAGS="$gt_save_CPPFLAGS"
28827 LIBS="$gt_save_LIBS"
28828 fi
28829 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28830 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
28831 fi
28832
28833 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28834 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28835 && test "$PACKAGE" != gettext-runtime \
28836 && test "$PACKAGE" != gettext-tools; }; then
28837 gt_use_preinstalled_gnugettext=yes
28838 else
28839 LIBINTL=
28840 LTLIBINTL=
28841 INCINTL=
28842 fi
28843
28844
28845 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
28846 nls_cv_use_gnu_gettext=yes
28847 fi
28848 fi
28849
28850 if test "$nls_cv_use_gnu_gettext" = "yes"; then
28851 BUILD_INCLUDED_LIBINTL=yes
28852 USE_INCLUDED_LIBINTL=yes
28853 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
28854 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
28855 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
28856 fi
28857
28858 CATOBJEXT=
28859 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28860 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28861 CATOBJEXT=.gmo
28862 fi
28863
28864
28865 if test -n "$INTL_MACOSX_LIBS"; then
28866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28868 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28869 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28870 fi
28871 fi
28872
28873 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28874 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28875
28876 cat >>confdefs.h <<\_ACEOF
28877 #define ENABLE_NLS 1
28878 _ACEOF
28879
28880 else
28881 USE_NLS=no
28882 fi
28883 fi
28884
28885 echo "$as_me:$LINENO: checking whether to use NLS" >&5
28886 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
28887 echo "$as_me:$LINENO: result: $USE_NLS" >&5
28888 echo "${ECHO_T}$USE_NLS" >&6
28889 if test "$USE_NLS" = "yes"; then
28890 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28891 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
28892 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28893 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28894 gt_source="external libintl"
28895 else
28896 gt_source="libc"
28897 fi
28898 else
28899 gt_source="included intl directory"
28900 fi
28901 echo "$as_me:$LINENO: result: $gt_source" >&5
28902 echo "${ECHO_T}$gt_source" >&6
28903 fi
28904
28905 if test "$USE_NLS" = "yes"; then
28906
28907 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28908 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28909 echo "$as_me:$LINENO: checking how to link with libintl" >&5
28910 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
28911 echo "$as_me:$LINENO: result: $LIBINTL" >&5
28912 echo "${ECHO_T}$LIBINTL" >&6
28913
28914 for element in $INCINTL; do
28915 haveit=
28916 for x in $CPPFLAGS; do
28917
28918 acl_save_prefix="$prefix"
28919 prefix="$acl_final_prefix"
28920 acl_save_exec_prefix="$exec_prefix"
28921 exec_prefix="$acl_final_exec_prefix"
28922 eval x=\"$x\"
28923 exec_prefix="$acl_save_exec_prefix"
28924 prefix="$acl_save_prefix"
28925
28926 if test "X$x" = "X$element"; then
28927 haveit=yes
28928 break
28929 fi
28930 done
28931 if test -z "$haveit"; then
28932 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28933 fi
28934 done
28935
28936 fi
28937
28938
28939 cat >>confdefs.h <<\_ACEOF
28940 #define HAVE_GETTEXT 1
28941 _ACEOF
28942
28943
28944 cat >>confdefs.h <<\_ACEOF
28945 #define HAVE_DCGETTEXT 1
28946 _ACEOF
28947
28948 fi
28949
28950 POSUB=po
28951 fi
28952
28953
28954 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
28955 BUILD_INCLUDED_LIBINTL=yes
28956 fi
28957
28958
28959
28960
28961
28962 nls_cv_header_intl=
28963 nls_cv_header_libgt=
28964
28965 DATADIRNAME=share
28966
28967
28968 INSTOBJEXT=.mo
28969
28970
28971 GENCAT=gencat
28972
28973
28974 INTLOBJS=
28975 if test "$USE_INCLUDED_LIBINTL" = yes; then
28976 INTLOBJS="\$(GETTOBJS)"
28977 fi
28978
28979
28980 INTL_LIBTOOL_SUFFIX_PREFIX=
28981
28982
28983
28984 INTLLIBS="$LIBINTL"
28985
28986
28987
28988
28989
28990
28991
28992 _localedir=`eval "echo $datadir/locale"`
28993 if test "$_localedir" = "NONE/share/locale"; then
28994 cat >>confdefs.h <<_ACEOF
28995 #define LOCALEDIR "/usr/local/share/locale"
28996 _ACEOF
28997
28998 else
28999 _localedir=`echo \"$_localedir\"`
29000 cat >>confdefs.h <<_ACEOF
29001 #define LOCALEDIR $_localedir
29002 _ACEOF
29003
29004 fi
29005
29006
29007
29008 if test x$USE_INCLUDED_LIBINTL = xyes; then
29009 COMPILE_INTL_TRUE=
29010 COMPILE_INTL_FALSE='#'
29011 else
29012 COMPILE_INTL_TRUE='#'
29013 COMPILE_INTL_FALSE=
29014 fi
29015
29016
29017 ac_config_files="$ac_config_files Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in ext/Makefile"
29018 ac_config_commands="$ac_config_commands default"
29019 cat >confcache <<\_ACEOF
29020 # This file is a shell script that caches the results of configure
29021 # tests run on this system so they can be shared between configure
29022 # scripts and configure runs, see configure's option --config-cache.
29023 # It is not useful on other systems. If it contains results you don't
29024 # want to keep, you may remove or edit it.
29025 #
29026 # config.status only pays attention to the cache file if you give it
29027 # the --recheck option to rerun configure.
29028 #
29029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29031 # following values.
29032
29033 _ACEOF
29034
29035 # The following way of writing the cache mishandles newlines in values,
29036 # but we know of no workaround that is simple, portable, and efficient.
29037 # So, don't put newlines in cache variables' values.
29038 # Ultrix sh set writes to stderr and can't be redirected directly,
29039 # and sets the high bit in the cache file unless we assign to the vars.
29040 {
29041 (set) 2>&1 |
29042 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29043 *ac_space=\ *)
29044 # `set' does not quote correctly, so add quotes (double-quote
29045 # substitution turns \\\\ into \\, and sed turns \\ into \).
29046 sed -n \
29047 "s/'/'\\\\''/g;
29048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29049 ;;
29050 *)
29051 # `set' quotes correctly as required by POSIX, so do not add quotes.
29052 sed -n \
29053 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29054 ;;
29055 esac;
29056 } |
29057 sed '
29058 t clear
29059 : clear
29060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29061 t end
29062 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29063 : end' >>confcache
29064 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29065 if test -w $cache_file; then
29066 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29067 cat confcache >$cache_file
29068 else
29069 echo "not updating unwritable cache $cache_file"
29070 fi
29071 fi
29072 rm -f confcache
29073
29074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29075 # Let make expand exec_prefix.
29076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29077
29078 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29079 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29080 # trailing colons and then remove the whole line if VPATH becomes empty
29081 # (actually we leave an empty line to preserve line numbers).
29082 if test "x$srcdir" = x.; then
29083 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29084 s/:*\$(srcdir):*/:/;
29085 s/:*\${srcdir}:*/:/;
29086 s/:*@srcdir@:*/:/;
29087 s/^\([^=]*=[ ]*\):*/\1/;
29088 s/:*$//;
29089 s/^[^=]*=[ ]*$//;
29090 }'
29091 fi
29092
29093 DEFS=-DHAVE_CONFIG_H
29094
29095 ac_libobjs=
29096 ac_ltlibobjs=
29097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29098 # 1. Remove the extension, and $U if already installed.
29099 ac_i=`echo "$ac_i" |
29100 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29101 # 2. Add them.
29102 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29103 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29104 done
29105 LIBOBJS=$ac_libobjs
29106
29107 LTLIBOBJS=$ac_ltlibobjs
29108
29109
29110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29111 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29112 Usually this means the macro was only invoked conditionally." >&5
29113 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29114 Usually this means the macro was only invoked conditionally." >&2;}
29115 { (exit 1); exit 1; }; }
29116 fi
29117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29118 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29119 Usually this means the macro was only invoked conditionally." >&5
29120 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29121 Usually this means the macro was only invoked conditionally." >&2;}
29122 { (exit 1); exit 1; }; }
29123 fi
29124 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29126 Usually this means the macro was only invoked conditionally." >&5
29127 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29128 Usually this means the macro was only invoked conditionally." >&2;}
29129 { (exit 1); exit 1; }; }
29130 fi
29131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29132 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29133 Usually this means the macro was only invoked conditionally." >&5
29134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29135 Usually this means the macro was only invoked conditionally." >&2;}
29136 { (exit 1); exit 1; }; }
29137 fi
29138 if test -z "${COMPILE_INTL_TRUE}" && test -z "${COMPILE_INTL_FALSE}"; then
29139 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_INTL\" was never defined.
29140 Usually this means the macro was only invoked conditionally." >&5
29141 echo "$as_me: error: conditional \"COMPILE_INTL\" was never defined.
29142 Usually this means the macro was only invoked conditionally." >&2;}
29143 { (exit 1); exit 1; }; }
29144 fi
29145
29146 : ${CONFIG_STATUS=./config.status}
29147 ac_clean_files_save=$ac_clean_files
29148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29151 cat >$CONFIG_STATUS <<_ACEOF
29152 #! $SHELL
29153 # Generated by $as_me.
29154 # Run this file to recreate the current configuration.
29155 # Compiler output produced by configure, useful for debugging
29156 # configure, is in config.log if it exists.
29157
29158 debug=false
29159 ac_cs_recheck=false
29160 ac_cs_silent=false
29161 SHELL=\${CONFIG_SHELL-$SHELL}
29162 _ACEOF
29163
29164 cat >>$CONFIG_STATUS <<\_ACEOF
29165 ## --------------------- ##
29166 ## M4sh Initialization. ##
29167 ## --------------------- ##
29168
29169 # Be Bourne compatible
29170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29171 emulate sh
29172 NULLCMD=:
29173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29174 # is contrary to our usage. Disable this feature.
29175 alias -g '${1+"$@"}'='"$@"'
29176 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29177 set -o posix
29178 fi
29179 DUALCASE=1; export DUALCASE # for MKS sh
29180
29181 # Support unset when possible.
29182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29183 as_unset=unset
29184 else
29185 as_unset=false
29186 fi
29187
29188
29189 # Work around bugs in pre-3.0 UWIN ksh.
29190 $as_unset ENV MAIL MAILPATH
29191 PS1='$ '
29192 PS2='> '
29193 PS4='+ '
29194
29195 # NLS nuisances.
29196 for as_var in \
29197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29199 LC_TELEPHONE LC_TIME
29200 do
29201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29202 eval $as_var=C; export $as_var
29203 else
29204 $as_unset $as_var
29205 fi
29206 done
29207
29208 # Required to use basename.
29209 if expr a : '\(a\)' >/dev/null 2>&1; then
29210 as_expr=expr
29211 else
29212 as_expr=false
29213 fi
29214
29215 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29216 as_basename=basename
29217 else
29218 as_basename=false
29219 fi
29220
29221
29222 # Name of the executable.
29223 as_me=`$as_basename "$0" ||
29224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29225 X"$0" : 'X\(//\)$' \| \
29226 X"$0" : 'X\(/\)$' \| \
29227 . : '\(.\)' 2>/dev/null ||
29228 echo X/"$0" |
29229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29230 /^X\/\(\/\/\)$/{ s//\1/; q; }
29231 /^X\/\(\/\).*/{ s//\1/; q; }
29232 s/.*/./; q'`
29233
29234
29235 # PATH needs CR, and LINENO needs CR and PATH.
29236 # Avoid depending upon Character Ranges.
29237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29240 as_cr_digits='0123456789'
29241 as_cr_alnum=$as_cr_Letters$as_cr_digits
29242
29243 # The user is always right.
29244 if test "${PATH_SEPARATOR+set}" != set; then
29245 echo "#! /bin/sh" >conf$$.sh
29246 echo "exit 0" >>conf$$.sh
29247 chmod +x conf$$.sh
29248 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29249 PATH_SEPARATOR=';'
29250 else
29251 PATH_SEPARATOR=:
29252 fi
29253 rm -f conf$$.sh
29254 fi
29255
29256
29257 as_lineno_1=$LINENO
29258 as_lineno_2=$LINENO
29259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29260 test "x$as_lineno_1" != "x$as_lineno_2" &&
29261 test "x$as_lineno_3" = "x$as_lineno_2" || {
29262 # Find who we are. Look in the path if we contain no path at all
29263 # relative or not.
29264 case $0 in
29265 *[\\/]* ) as_myself=$0 ;;
29266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29267 for as_dir in $PATH
29268 do
29269 IFS=$as_save_IFS
29270 test -z "$as_dir" && as_dir=.
29271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29272 done
29273
29274 ;;
29275 esac
29276 # We did not find ourselves, most probably we were run as `sh COMMAND'
29277 # in which case we are not to be found in the path.
29278 if test "x$as_myself" = x; then
29279 as_myself=$0
29280 fi
29281 if test ! -f "$as_myself"; then
29282 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29283 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29284 { (exit 1); exit 1; }; }
29285 fi
29286 case $CONFIG_SHELL in
29287 '')
29288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29290 do
29291 IFS=$as_save_IFS
29292 test -z "$as_dir" && as_dir=.
29293 for as_base in sh bash ksh sh5; do
29294 case $as_dir in
29295 /*)
29296 if ("$as_dir/$as_base" -c '
29297 as_lineno_1=$LINENO
29298 as_lineno_2=$LINENO
29299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29300 test "x$as_lineno_1" != "x$as_lineno_2" &&
29301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29302 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29303 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29304 CONFIG_SHELL=$as_dir/$as_base
29305 export CONFIG_SHELL
29306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29307 fi;;
29308 esac
29309 done
29310 done
29311 ;;
29312 esac
29313
29314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29315 # uniformly replaced by the line number. The first 'sed' inserts a
29316 # line-number line before each line; the second 'sed' does the real
29317 # work. The second script uses 'N' to pair each line-number line
29318 # with the numbered line, and appends trailing '-' during
29319 # substitution so that $LINENO is not a special case at line end.
29320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29322 sed '=' <$as_myself |
29323 sed '
29324 N
29325 s,$,-,
29326 : loop
29327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29328 t loop
29329 s,-$,,
29330 s,^['$as_cr_digits']*\n,,
29331 ' >$as_me.lineno &&
29332 chmod +x $as_me.lineno ||
29333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29335 { (exit 1); exit 1; }; }
29336
29337 # Don't try to exec as it changes $[0], causing all sort of problems
29338 # (the dirname of $[0] is not the place where we might find the
29339 # original and so on. Autoconf is especially sensible to this).
29340 . ./$as_me.lineno
29341 # Exit status is that of the last command.
29342 exit
29343 }
29344
29345
29346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29347 *c*,-n*) ECHO_N= ECHO_C='
29348 ' ECHO_T=' ' ;;
29349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29351 esac
29352
29353 if expr a : '\(a\)' >/dev/null 2>&1; then
29354 as_expr=expr
29355 else
29356 as_expr=false
29357 fi
29358
29359 rm -f conf$$ conf$$.exe conf$$.file
29360 echo >conf$$.file
29361 if ln -s conf$$.file conf$$ 2>/dev/null; then
29362 # We could just check for DJGPP; but this test a) works b) is more generic
29363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29364 if test -f conf$$.exe; then
29365 # Don't use ln at all; we don't have any links
29366 as_ln_s='cp -p'
29367 else
29368 as_ln_s='ln -s'
29369 fi
29370 elif ln conf$$.file conf$$ 2>/dev/null; then
29371 as_ln_s=ln
29372 else
29373 as_ln_s='cp -p'
29374 fi
29375 rm -f conf$$ conf$$.exe conf$$.file
29376
29377 if mkdir -p . 2>/dev/null; then
29378 as_mkdir_p=:
29379 else
29380 test -d ./-p && rmdir ./-p
29381 as_mkdir_p=false
29382 fi
29383
29384 as_executable_p="test -f"
29385
29386 # Sed expression to map a string onto a valid CPP name.
29387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29388
29389 # Sed expression to map a string onto a valid variable name.
29390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29391
29392
29393 # IFS
29394 # We need space, tab and new line, in precisely that order.
29395 as_nl='
29396 '
29397 IFS=" $as_nl"
29398
29399 # CDPATH.
29400 $as_unset CDPATH
29401
29402 exec 6>&1
29403
29404 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29405 # report actual input values of CONFIG_FILES etc. instead of their
29406 # values after options handling. Logging --version etc. is OK.
29407 exec 5>>config.log
29408 {
29409 echo
29410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29411 ## Running $as_me. ##
29412 _ASBOX
29413 } >&5
29414 cat >&5 <<_CSEOF
29415
29416 This file was extended by $as_me, which was
29417 generated by GNU Autoconf 2.59. Invocation command line was
29418
29419 CONFIG_FILES = $CONFIG_FILES
29420 CONFIG_HEADERS = $CONFIG_HEADERS
29421 CONFIG_LINKS = $CONFIG_LINKS
29422 CONFIG_COMMANDS = $CONFIG_COMMANDS
29423 $ $0 $@
29424
29425 _CSEOF
29426 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29427 echo >&5
29428 _ACEOF
29429
29430 # Files that config.status was made for.
29431 if test -n "$ac_config_files"; then
29432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29433 fi
29434
29435 if test -n "$ac_config_headers"; then
29436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29437 fi
29438
29439 if test -n "$ac_config_links"; then
29440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29441 fi
29442
29443 if test -n "$ac_config_commands"; then
29444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29445 fi
29446
29447 cat >>$CONFIG_STATUS <<\_ACEOF
29448
29449 ac_cs_usage="\
29450 \`$as_me' instantiates files from templates according to the
29451 current configuration.
29452
29453 Usage: $0 [OPTIONS] [FILE]...
29454
29455 -h, --help print this help, then exit
29456 -V, --version print version number, then exit
29457 -q, --quiet do not print progress messages
29458 -d, --debug don't remove temporary files
29459 --recheck update $as_me by reconfiguring in the same conditions
29460 --file=FILE[:TEMPLATE]
29461 instantiate the configuration file FILE
29462 --header=FILE[:TEMPLATE]
29463 instantiate the configuration header FILE
29464
29465 Configuration files:
29466 $config_files
29467
29468 Configuration headers:
29469 $config_headers
29470
29471 Configuration commands:
29472 $config_commands
29473
29474 Report bugs to <[email protected]>."
29475 _ACEOF
29476
29477 cat >>$CONFIG_STATUS <<_ACEOF
29478 ac_cs_version="\\
29479 config.status
29480 configured by $0, generated by GNU Autoconf 2.59,
29481 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29482
29483 Copyright (C) 2003 Free Software Foundation, Inc.
29484 This config.status script is free software; the Free Software Foundation
29485 gives unlimited permission to copy, distribute and modify it."
29486 srcdir=$srcdir
29487 INSTALL="$INSTALL"
29488 _ACEOF
29489
29490 cat >>$CONFIG_STATUS <<\_ACEOF
29491 # If no file are specified by the user, then we need to provide default
29492 # value. By we need to know if files were specified by the user.
29493 ac_need_defaults=:
29494 while test $# != 0
29495 do
29496 case $1 in
29497 --*=*)
29498 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29499 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29500 ac_shift=:
29501 ;;
29502 -*)
29503 ac_option=$1
29504 ac_optarg=$2
29505 ac_shift=shift
29506 ;;
29507 *) # This is not an option, so the user has probably given explicit
29508 # arguments.
29509 ac_option=$1
29510 ac_need_defaults=false;;
29511 esac
29512
29513 case $ac_option in
29514 # Handling of the options.
29515 _ACEOF
29516 cat >>$CONFIG_STATUS <<\_ACEOF
29517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29518 ac_cs_recheck=: ;;
29519 --version | --vers* | -V )
29520 echo "$ac_cs_version"; exit 0 ;;
29521 --he | --h)
29522 # Conflict between --help and --header
29523 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29524 Try \`$0 --help' for more information." >&5
29525 echo "$as_me: error: ambiguous option: $1
29526 Try \`$0 --help' for more information." >&2;}
29527 { (exit 1); exit 1; }; };;
29528 --help | --hel | -h )
29529 echo "$ac_cs_usage"; exit 0 ;;
29530 --debug | --d* | -d )
29531 debug=: ;;
29532 --file | --fil | --fi | --f )
29533 $ac_shift
29534 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29535 ac_need_defaults=false;;
29536 --header | --heade | --head | --hea )
29537 $ac_shift
29538 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29539 ac_need_defaults=false;;
29540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29541 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29542 ac_cs_silent=: ;;
29543
29544 # This is an error.
29545 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29546 Try \`$0 --help' for more information." >&5
29547 echo "$as_me: error: unrecognized option: $1
29548 Try \`$0 --help' for more information." >&2;}
29549 { (exit 1); exit 1; }; } ;;
29550
29551 *) ac_config_targets="$ac_config_targets $1" ;;
29552
29553 esac
29554 shift
29555 done
29556
29557 ac_configure_extra_args=
29558
29559 if $ac_cs_silent; then
29560 exec 6>/dev/null
29561 ac_configure_extra_args="$ac_configure_extra_args --silent"
29562 fi
29563
29564 _ACEOF
29565 cat >>$CONFIG_STATUS <<_ACEOF
29566 if \$ac_cs_recheck; then
29567 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29568 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29569 fi
29570
29571 _ACEOF
29572
29573 cat >>$CONFIG_STATUS <<_ACEOF
29574 #
29575 # INIT-COMMANDS section.
29576 #
29577
29578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29579 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29580 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29581 # from automake.
29582 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29583 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29584 LINGUAS="${LINGUAS-%UNSET%}"
29585
29586
29587 _ACEOF
29588
29589
29590
29591 cat >>$CONFIG_STATUS <<\_ACEOF
29592 for ac_config_target in $ac_config_targets
29593 do
29594 case "$ac_config_target" in
29595 # Handling of arguments.
29596 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29597 "gsmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gsmlib/Makefile" ;;
29598 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29599 "apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
29600 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
29601 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29602 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
29603 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
29604 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29605 "ext/Makefile" ) CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
29606 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29607 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29608 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29609 "gsm_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gsm_config.h" ;;
29610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29612 { (exit 1); exit 1; }; };;
29613 esac
29614 done
29615
29616 # If the user did not use the arguments to specify the items to instantiate,
29617 # then the envvar interface is used. Set only those that are not.
29618 # We use the long form for the default assignment because of an extremely
29619 # bizarre bug on SunOS 4.1.3.
29620 if $ac_need_defaults; then
29621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29624 fi
29625
29626 # Have a temporary directory for convenience. Make it in the build tree
29627 # simply because there is no reason to put it here, and in addition,
29628 # creating and moving files from /tmp can sometimes cause problems.
29629 # Create a temporary directory, and hook for its removal unless debugging.
29630 $debug ||
29631 {
29632 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29633 trap '{ (exit 1); exit 1; }' 1 2 13 15
29634 }
29635
29636 # Create a (secure) tmp directory for tmp files.
29637
29638 {
29639 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29640 test -n "$tmp" && test -d "$tmp"
29641 } ||
29642 {
29643 tmp=./confstat$$-$RANDOM
29644 (umask 077 && mkdir $tmp)
29645 } ||
29646 {
29647 echo "$me: cannot create a temporary directory in ." >&2
29648 { (exit 1); exit 1; }
29649 }
29650
29651 _ACEOF
29652
29653 cat >>$CONFIG_STATUS <<_ACEOF
29654
29655 #
29656 # CONFIG_FILES section.
29657 #
29658
29659 # No need to generate the scripts if there are no CONFIG_FILES.
29660 # This happens for instance when ./config.status config.h
29661 if test -n "\$CONFIG_FILES"; then
29662 # Protect against being on the right side of a sed subst in config.status.
29663 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29664 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29665 s,@SHELL@,$SHELL,;t t
29666 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29667 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29668 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29669 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29670 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29671 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29672 s,@exec_prefix@,$exec_prefix,;t t
29673 s,@prefix@,$prefix,;t t
29674 s,@program_transform_name@,$program_transform_name,;t t
29675 s,@bindir@,$bindir,;t t
29676 s,@sbindir@,$sbindir,;t t
29677 s,@libexecdir@,$libexecdir,;t t
29678 s,@datadir@,$datadir,;t t
29679 s,@sysconfdir@,$sysconfdir,;t t
29680 s,@sharedstatedir@,$sharedstatedir,;t t
29681 s,@localstatedir@,$localstatedir,;t t
29682 s,@libdir@,$libdir,;t t
29683 s,@includedir@,$includedir,;t t
29684 s,@oldincludedir@,$oldincludedir,;t t
29685 s,@infodir@,$infodir,;t t
29686 s,@mandir@,$mandir,;t t
29687 s,@build_alias@,$build_alias,;t t
29688 s,@host_alias@,$host_alias,;t t
29689 s,@target_alias@,$target_alias,;t t
29690 s,@DEFS@,$DEFS,;t t
29691 s,@ECHO_C@,$ECHO_C,;t t
29692 s,@ECHO_N@,$ECHO_N,;t t
29693 s,@ECHO_T@,$ECHO_T,;t t
29694 s,@LIBS@,$LIBS,;t t
29695 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29696 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29697 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29698 s,@CC@,$CC,;t t
29699 s,@CFLAGS@,$CFLAGS,;t t
29700 s,@LDFLAGS@,$LDFLAGS,;t t
29701 s,@CPPFLAGS@,$CPPFLAGS,;t t
29702 s,@ac_ct_CC@,$ac_ct_CC,;t t
29703 s,@EXEEXT@,$EXEEXT,;t t
29704 s,@OBJEXT@,$OBJEXT,;t t
29705 s,@CYGPATH_W@,$CYGPATH_W,;t t
29706 s,@PACKAGE@,$PACKAGE,;t t
29707 s,@VERSION@,$VERSION,;t t
29708 s,@ACLOCAL@,$ACLOCAL,;t t
29709 s,@AUTOCONF@,$AUTOCONF,;t t
29710 s,@AUTOMAKE@,$AUTOMAKE,;t t
29711 s,@AUTOHEADER@,$AUTOHEADER,;t t
29712 s,@MAKEINFO@,$MAKEINFO,;t t
29713 s,@install_sh@,$install_sh,;t t
29714 s,@STRIP@,$STRIP,;t t
29715 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29716 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29717 s,@mkdir_p@,$mkdir_p,;t t
29718 s,@AWK@,$AWK,;t t
29719 s,@SET_MAKE@,$SET_MAKE,;t t
29720 s,@am__leading_dot@,$am__leading_dot,;t t
29721 s,@AMTAR@,$AMTAR,;t t
29722 s,@am__tar@,$am__tar,;t t
29723 s,@am__untar@,$am__untar,;t t
29724 s,@DEPDIR@,$DEPDIR,;t t
29725 s,@am__include@,$am__include,;t t
29726 s,@am__quote@,$am__quote,;t t
29727 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29728 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29729 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29730 s,@CCDEPMODE@,$CCDEPMODE,;t t
29731 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29732 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29733 s,@build@,$build,;t t
29734 s,@build_cpu@,$build_cpu,;t t
29735 s,@build_vendor@,$build_vendor,;t t
29736 s,@build_os@,$build_os,;t t
29737 s,@host@,$host,;t t
29738 s,@host_cpu@,$host_cpu,;t t
29739 s,@host_vendor@,$host_vendor,;t t
29740 s,@host_os@,$host_os,;t t
29741 s,@EGREP@,$EGREP,;t t
29742 s,@LN_S@,$LN_S,;t t
29743 s,@ECHO@,$ECHO,;t t
29744 s,@AR@,$AR,;t t
29745 s,@ac_ct_AR@,$ac_ct_AR,;t t
29746 s,@RANLIB@,$RANLIB,;t t
29747 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29748 s,@CPP@,$CPP,;t t
29749 s,@CXX@,$CXX,;t t
29750 s,@CXXFLAGS@,$CXXFLAGS,;t t
29751 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29752 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29753 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29754 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29755 s,@CXXCPP@,$CXXCPP,;t t
29756 s,@F77@,$F77,;t t
29757 s,@FFLAGS@,$FFLAGS,;t t
29758 s,@ac_ct_F77@,$ac_ct_F77,;t t
29759 s,@LIBTOOL@,$LIBTOOL,;t t
29760 s,@ALLOCA@,$ALLOCA,;t t
29761 s,@GSM_VERSION@,$GSM_VERSION,;t t
29762 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
29763 s,@USE_NLS@,$USE_NLS,;t t
29764 s,@MSGFMT@,$MSGFMT,;t t
29765 s,@GMSGFMT@,$GMSGFMT,;t t
29766 s,@XGETTEXT@,$XGETTEXT,;t t
29767 s,@MSGMERGE@,$MSGMERGE,;t t
29768 s,@GLIBC2@,$GLIBC2,;t t
29769 s,@GLIBC21@,$GLIBC21,;t t
29770 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
29771 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
29772 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
29773 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
29774 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
29775 s,@LIBICONV@,$LIBICONV,;t t
29776 s,@LTLIBICONV@,$LTLIBICONV,;t t
29777 s,@INTLBISON@,$INTLBISON,;t t
29778 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
29779 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
29780 s,@CATOBJEXT@,$CATOBJEXT,;t t
29781 s,@DATADIRNAME@,$DATADIRNAME,;t t
29782 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29783 s,@GENCAT@,$GENCAT,;t t
29784 s,@INTLOBJS@,$INTLOBJS,;t t
29785 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
29786 s,@INTLLIBS@,$INTLLIBS,;t t
29787 s,@LIBINTL@,$LIBINTL,;t t
29788 s,@LTLIBINTL@,$LTLIBINTL,;t t
29789 s,@POSUB@,$POSUB,;t t
29790 s,@COMPILE_INTL_TRUE@,$COMPILE_INTL_TRUE,;t t
29791 s,@COMPILE_INTL_FALSE@,$COMPILE_INTL_FALSE,;t t
29792 s,@LIBOBJS@,$LIBOBJS,;t t
29793 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29794 CEOF
29795
29796 _ACEOF
29797
29798 cat >>$CONFIG_STATUS <<\_ACEOF
29799 # Split the substitutions into bite-sized pieces for seds with
29800 # small command number limits, like on Digital OSF/1 and HP-UX.
29801 ac_max_sed_lines=48
29802 ac_sed_frag=1 # Number of current file.
29803 ac_beg=1 # First line for current file.
29804 ac_end=$ac_max_sed_lines # Line after last line for current file.
29805 ac_more_lines=:
29806 ac_sed_cmds=
29807 while $ac_more_lines; do
29808 if test $ac_beg -gt 1; then
29809 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29810 else
29811 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29812 fi
29813 if test ! -s $tmp/subs.frag; then
29814 ac_more_lines=false
29815 else
29816 # The purpose of the label and of the branching condition is to
29817 # speed up the sed processing (if there are no `@' at all, there
29818 # is no need to browse any of the substitutions).
29819 # These are the two extra sed commands mentioned above.
29820 (echo ':t
29821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29822 if test -z "$ac_sed_cmds"; then
29823 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29824 else
29825 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29826 fi
29827 ac_sed_frag=`expr $ac_sed_frag + 1`
29828 ac_beg=$ac_end
29829 ac_end=`expr $ac_end + $ac_max_sed_lines`
29830 fi
29831 done
29832 if test -z "$ac_sed_cmds"; then
29833 ac_sed_cmds=cat
29834 fi
29835 fi # test -n "$CONFIG_FILES"
29836
29837 _ACEOF
29838 cat >>$CONFIG_STATUS <<\_ACEOF
29839 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29841 case $ac_file in
29842 - | *:- | *:-:* ) # input from stdin
29843 cat >$tmp/stdin
29844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29848 * ) ac_file_in=$ac_file.in ;;
29849 esac
29850
29851 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29852 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29854 X"$ac_file" : 'X\(//\)[^/]' \| \
29855 X"$ac_file" : 'X\(//\)$' \| \
29856 X"$ac_file" : 'X\(/\)' \| \
29857 . : '\(.\)' 2>/dev/null ||
29858 echo X"$ac_file" |
29859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29861 /^X\(\/\/\)$/{ s//\1/; q; }
29862 /^X\(\/\).*/{ s//\1/; q; }
29863 s/.*/./; q'`
29864 { if $as_mkdir_p; then
29865 mkdir -p "$ac_dir"
29866 else
29867 as_dir="$ac_dir"
29868 as_dirs=
29869 while test ! -d "$as_dir"; do
29870 as_dirs="$as_dir $as_dirs"
29871 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29873 X"$as_dir" : 'X\(//\)[^/]' \| \
29874 X"$as_dir" : 'X\(//\)$' \| \
29875 X"$as_dir" : 'X\(/\)' \| \
29876 . : '\(.\)' 2>/dev/null ||
29877 echo X"$as_dir" |
29878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29880 /^X\(\/\/\)$/{ s//\1/; q; }
29881 /^X\(\/\).*/{ s//\1/; q; }
29882 s/.*/./; q'`
29883 done
29884 test ! -n "$as_dirs" || mkdir $as_dirs
29885 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29886 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29887 { (exit 1); exit 1; }; }; }
29888
29889 ac_builddir=.
29890
29891 if test "$ac_dir" != .; then
29892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29893 # A "../" for each directory in $ac_dir_suffix.
29894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29895 else
29896 ac_dir_suffix= ac_top_builddir=
29897 fi
29898
29899 case $srcdir in
29900 .) # No --srcdir option. We are building in place.
29901 ac_srcdir=.
29902 if test -z "$ac_top_builddir"; then
29903 ac_top_srcdir=.
29904 else
29905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29906 fi ;;
29907 [\\/]* | ?:[\\/]* ) # Absolute path.
29908 ac_srcdir=$srcdir$ac_dir_suffix;
29909 ac_top_srcdir=$srcdir ;;
29910 *) # Relative path.
29911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29913 esac
29914
29915 # Do not use `cd foo && pwd` to compute absolute paths, because
29916 # the directories may not exist.
29917 case `pwd` in
29918 .) ac_abs_builddir="$ac_dir";;
29919 *)
29920 case "$ac_dir" in
29921 .) ac_abs_builddir=`pwd`;;
29922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29924 esac;;
29925 esac
29926 case $ac_abs_builddir in
29927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29928 *)
29929 case ${ac_top_builddir}. in
29930 .) ac_abs_top_builddir=$ac_abs_builddir;;
29931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29933 esac;;
29934 esac
29935 case $ac_abs_builddir in
29936 .) ac_abs_srcdir=$ac_srcdir;;
29937 *)
29938 case $ac_srcdir in
29939 .) ac_abs_srcdir=$ac_abs_builddir;;
29940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29942 esac;;
29943 esac
29944 case $ac_abs_builddir in
29945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29946 *)
29947 case $ac_top_srcdir in
29948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29951 esac;;
29952 esac
29953
29954
29955 case $INSTALL in
29956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29957 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29958 esac
29959
29960 # Let's still pretend it is `configure' which instantiates (i.e., don't
29961 # use $as_me), people would be surprised to read:
29962 # /* config.h. Generated by config.status. */
29963 if test x"$ac_file" = x-; then
29964 configure_input=
29965 else
29966 configure_input="$ac_file. "
29967 fi
29968 configure_input=$configure_input"Generated from `echo $ac_file_in |
29969 sed 's,.*/,,'` by configure."
29970
29971 # First look for the input files in the build tree, otherwise in the
29972 # src tree.
29973 ac_file_inputs=`IFS=:
29974 for f in $ac_file_in; do
29975 case $f in
29976 -) echo $tmp/stdin ;;
29977 [\\/$]*)
29978 # Absolute (can't be DOS-style, as IFS=:)
29979 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29980 echo "$as_me: error: cannot find input file: $f" >&2;}
29981 { (exit 1); exit 1; }; }
29982 echo "$f";;
29983 *) # Relative
29984 if test -f "$f"; then
29985 # Build tree
29986 echo "$f"
29987 elif test -f "$srcdir/$f"; then
29988 # Source tree
29989 echo "$srcdir/$f"
29990 else
29991 # /dev/null tree
29992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29993 echo "$as_me: error: cannot find input file: $f" >&2;}
29994 { (exit 1); exit 1; }; }
29995 fi;;
29996 esac
29997 done` || { (exit 1); exit 1; }
29998
29999 if test x"$ac_file" != x-; then
30000 { echo "$as_me:$LINENO: creating $ac_file" >&5
30001 echo "$as_me: creating $ac_file" >&6;}
30002 rm -f "$ac_file"
30003 fi
30004 _ACEOF
30005 cat >>$CONFIG_STATUS <<_ACEOF
30006 sed "$ac_vpsub
30007 $extrasub
30008 _ACEOF
30009 cat >>$CONFIG_STATUS <<\_ACEOF
30010 :t
30011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30012 s,@configure_input@,$configure_input,;t t
30013 s,@srcdir@,$ac_srcdir,;t t
30014 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30015 s,@top_srcdir@,$ac_top_srcdir,;t t
30016 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30017 s,@builddir@,$ac_builddir,;t t
30018 s,@abs_builddir@,$ac_abs_builddir,;t t
30019 s,@top_builddir@,$ac_top_builddir,;t t
30020 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30021 s,@INSTALL@,$ac_INSTALL,;t t
30022 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30023 rm -f $tmp/stdin
30024 if test x"$ac_file" != x-; then
30025 mv $tmp/out $ac_file
30026 else
30027 cat $tmp/out
30028 rm -f $tmp/out
30029 fi
30030
30031 done
30032 _ACEOF
30033 cat >>$CONFIG_STATUS <<\_ACEOF
30034
30035 #
30036 # CONFIG_HEADER section.
30037 #
30038
30039 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30040 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30041 #
30042 # ac_d sets the value in "#define NAME VALUE" lines.
30043 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30044 ac_dB='[ ].*$,\1#\2'
30045 ac_dC=' '
30046 ac_dD=',;t'
30047 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30048 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30049 ac_uB='$,\1#\2define\3'
30050 ac_uC=' '
30051 ac_uD=',;t'
30052
30053 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30054 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30055 case $ac_file in
30056 - | *:- | *:-:* ) # input from stdin
30057 cat >$tmp/stdin
30058 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30060 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30061 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30062 * ) ac_file_in=$ac_file.in ;;
30063 esac
30064
30065 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30066 echo "$as_me: creating $ac_file" >&6;}
30067
30068 # First look for the input files in the build tree, otherwise in the
30069 # src tree.
30070 ac_file_inputs=`IFS=:
30071 for f in $ac_file_in; do
30072 case $f in
30073 -) echo $tmp/stdin ;;
30074 [\\/$]*)
30075 # Absolute (can't be DOS-style, as IFS=:)
30076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30077 echo "$as_me: error: cannot find input file: $f" >&2;}
30078 { (exit 1); exit 1; }; }
30079 # Do quote $f, to prevent DOS paths from being IFS'd.
30080 echo "$f";;
30081 *) # Relative
30082 if test -f "$f"; then
30083 # Build tree
30084 echo "$f"
30085 elif test -f "$srcdir/$f"; then
30086 # Source tree
30087 echo "$srcdir/$f"
30088 else
30089 # /dev/null tree
30090 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30091 echo "$as_me: error: cannot find input file: $f" >&2;}
30092 { (exit 1); exit 1; }; }
30093 fi;;
30094 esac
30095 done` || { (exit 1); exit 1; }
30096 # Remove the trailing spaces.
30097 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30098
30099 _ACEOF
30100
30101 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30102 # `conftest.undefs', that substitutes the proper values into
30103 # config.h.in to produce config.h. The first handles `#define'
30104 # templates, and the second `#undef' templates.
30105 # And first: Protect against being on the right side of a sed subst in
30106 # config.status. Protect against being in an unquoted here document
30107 # in config.status.
30108 rm -f conftest.defines conftest.undefs
30109 # Using a here document instead of a string reduces the quoting nightmare.
30110 # Putting comments in sed scripts is not portable.
30111 #
30112 # `end' is used to avoid that the second main sed command (meant for
30113 # 0-ary CPP macros) applies to n-ary macro definitions.
30114 # See the Autoconf documentation for `clear'.
30115 cat >confdef2sed.sed <<\_ACEOF
30116 s/[\\&,]/\\&/g
30117 s,[\\$`],\\&,g
30118 t clear
30119 : clear
30120 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30121 t end
30122 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30123 : end
30124 _ACEOF
30125 # If some macros were called several times there might be several times
30126 # the same #defines, which is useless. Nevertheless, we may not want to
30127 # sort them, since we want the *last* AC-DEFINE to be honored.
30128 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30129 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30130 rm -f confdef2sed.sed
30131
30132 # This sed command replaces #undef with comments. This is necessary, for
30133 # example, in the case of _POSIX_SOURCE, which is predefined and required
30134 # on some systems where configure will not decide to define it.
30135 cat >>conftest.undefs <<\_ACEOF
30136 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30137 _ACEOF
30138
30139 # Break up conftest.defines because some shells have a limit on the size
30140 # of here documents, and old seds have small limits too (100 cmds).
30141 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30142 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30143 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30144 echo ' :' >>$CONFIG_STATUS
30145 rm -f conftest.tail
30146 while grep . conftest.defines >/dev/null
30147 do
30148 # Write a limited-size here document to $tmp/defines.sed.
30149 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30150 # Speed up: don't consider the non `#define' lines.
30151 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30152 # Work around the forget-to-reset-the-flag bug.
30153 echo 't clr' >>$CONFIG_STATUS
30154 echo ': clr' >>$CONFIG_STATUS
30155 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30156 echo 'CEOF
30157 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30158 rm -f $tmp/in
30159 mv $tmp/out $tmp/in
30160 ' >>$CONFIG_STATUS
30161 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30162 rm -f conftest.defines
30163 mv conftest.tail conftest.defines
30164 done
30165 rm -f conftest.defines
30166 echo ' fi # grep' >>$CONFIG_STATUS
30167 echo >>$CONFIG_STATUS
30168
30169 # Break up conftest.undefs because some shells have a limit on the size
30170 # of here documents, and old seds have small limits too (100 cmds).
30171 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30172 rm -f conftest.tail
30173 while grep . conftest.undefs >/dev/null
30174 do
30175 # Write a limited-size here document to $tmp/undefs.sed.
30176 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30177 # Speed up: don't consider the non `#undef'
30178 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30179 # Work around the forget-to-reset-the-flag bug.
30180 echo 't clr' >>$CONFIG_STATUS
30181 echo ': clr' >>$CONFIG_STATUS
30182 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30183 echo 'CEOF
30184 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30185 rm -f $tmp/in
30186 mv $tmp/out $tmp/in
30187 ' >>$CONFIG_STATUS
30188 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30189 rm -f conftest.undefs
30190 mv conftest.tail conftest.undefs
30191 done
30192 rm -f conftest.undefs
30193
30194 cat >>$CONFIG_STATUS <<\_ACEOF
30195 # Let's still pretend it is `configure' which instantiates (i.e., don't
30196 # use $as_me), people would be surprised to read:
30197 # /* config.h. Generated by config.status. */
30198 if test x"$ac_file" = x-; then
30199 echo "/* Generated by configure. */" >$tmp/config.h
30200 else
30201 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30202 fi
30203 cat $tmp/in >>$tmp/config.h
30204 rm -f $tmp/in
30205 if test x"$ac_file" != x-; then
30206 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30207 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30208 echo "$as_me: $ac_file is unchanged" >&6;}
30209 else
30210 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30212 X"$ac_file" : 'X\(//\)[^/]' \| \
30213 X"$ac_file" : 'X\(//\)$' \| \
30214 X"$ac_file" : 'X\(/\)' \| \
30215 . : '\(.\)' 2>/dev/null ||
30216 echo X"$ac_file" |
30217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30219 /^X\(\/\/\)$/{ s//\1/; q; }
30220 /^X\(\/\).*/{ s//\1/; q; }
30221 s/.*/./; q'`
30222 { if $as_mkdir_p; then
30223 mkdir -p "$ac_dir"
30224 else
30225 as_dir="$ac_dir"
30226 as_dirs=
30227 while test ! -d "$as_dir"; do
30228 as_dirs="$as_dir $as_dirs"
30229 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30231 X"$as_dir" : 'X\(//\)[^/]' \| \
30232 X"$as_dir" : 'X\(//\)$' \| \
30233 X"$as_dir" : 'X\(/\)' \| \
30234 . : '\(.\)' 2>/dev/null ||
30235 echo X"$as_dir" |
30236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30238 /^X\(\/\/\)$/{ s//\1/; q; }
30239 /^X\(\/\).*/{ s//\1/; q; }
30240 s/.*/./; q'`
30241 done
30242 test ! -n "$as_dirs" || mkdir $as_dirs
30243 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30244 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30245 { (exit 1); exit 1; }; }; }
30246
30247 rm -f $ac_file
30248 mv $tmp/config.h $ac_file
30249 fi
30250 else
30251 cat $tmp/config.h
30252 rm -f $tmp/config.h
30253 fi
30254 # Compute $ac_file's index in $config_headers.
30255 _am_stamp_count=1
30256 for _am_header in $config_headers :; do
30257 case $_am_header in
30258 $ac_file | $ac_file:* )
30259 break ;;
30260 * )
30261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30262 esac
30263 done
30264 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30265 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30266 X$ac_file : 'X\(//\)[^/]' \| \
30267 X$ac_file : 'X\(//\)$' \| \
30268 X$ac_file : 'X\(/\)' \| \
30269 . : '\(.\)' 2>/dev/null ||
30270 echo X$ac_file |
30271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30273 /^X\(\/\/\)$/{ s//\1/; q; }
30274 /^X\(\/\).*/{ s//\1/; q; }
30275 s/.*/./; q'`/stamp-h$_am_stamp_count
30276 done
30277 _ACEOF
30278 cat >>$CONFIG_STATUS <<\_ACEOF
30279
30280 #
30281 # CONFIG_COMMANDS section.
30282 #
30283 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30284 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30285 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30286 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30287 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30288 X"$ac_dest" : 'X\(//\)[^/]' \| \
30289 X"$ac_dest" : 'X\(//\)$' \| \
30290 X"$ac_dest" : 'X\(/\)' \| \
30291 . : '\(.\)' 2>/dev/null ||
30292 echo X"$ac_dest" |
30293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30295 /^X\(\/\/\)$/{ s//\1/; q; }
30296 /^X\(\/\).*/{ s//\1/; q; }
30297 s/.*/./; q'`
30298 { if $as_mkdir_p; then
30299 mkdir -p "$ac_dir"
30300 else
30301 as_dir="$ac_dir"
30302 as_dirs=
30303 while test ! -d "$as_dir"; do
30304 as_dirs="$as_dir $as_dirs"
30305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30307 X"$as_dir" : 'X\(//\)[^/]' \| \
30308 X"$as_dir" : 'X\(//\)$' \| \
30309 X"$as_dir" : 'X\(/\)' \| \
30310 . : '\(.\)' 2>/dev/null ||
30311 echo X"$as_dir" |
30312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30314 /^X\(\/\/\)$/{ s//\1/; q; }
30315 /^X\(\/\).*/{ s//\1/; q; }
30316 s/.*/./; q'`
30317 done
30318 test ! -n "$as_dirs" || mkdir $as_dirs
30319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30321 { (exit 1); exit 1; }; }; }
30322
30323 ac_builddir=.
30324
30325 if test "$ac_dir" != .; then
30326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30327 # A "../" for each directory in $ac_dir_suffix.
30328 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30329 else
30330 ac_dir_suffix= ac_top_builddir=
30331 fi
30332
30333 case $srcdir in
30334 .) # No --srcdir option. We are building in place.
30335 ac_srcdir=.
30336 if test -z "$ac_top_builddir"; then
30337 ac_top_srcdir=.
30338 else
30339 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30340 fi ;;
30341 [\\/]* | ?:[\\/]* ) # Absolute path.
30342 ac_srcdir=$srcdir$ac_dir_suffix;
30343 ac_top_srcdir=$srcdir ;;
30344 *) # Relative path.
30345 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30346 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30347 esac
30348
30349 # Do not use `cd foo && pwd` to compute absolute paths, because
30350 # the directories may not exist.
30351 case `pwd` in
30352 .) ac_abs_builddir="$ac_dir";;
30353 *)
30354 case "$ac_dir" in
30355 .) ac_abs_builddir=`pwd`;;
30356 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30357 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30358 esac;;
30359 esac
30360 case $ac_abs_builddir in
30361 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30362 *)
30363 case ${ac_top_builddir}. in
30364 .) ac_abs_top_builddir=$ac_abs_builddir;;
30365 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30366 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30367 esac;;
30368 esac
30369 case $ac_abs_builddir in
30370 .) ac_abs_srcdir=$ac_srcdir;;
30371 *)
30372 case $ac_srcdir in
30373 .) ac_abs_srcdir=$ac_abs_builddir;;
30374 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30375 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30376 esac;;
30377 esac
30378 case $ac_abs_builddir in
30379 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30380 *)
30381 case $ac_top_srcdir in
30382 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30383 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30384 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30385 esac;;
30386 esac
30387
30388
30389 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30390 echo "$as_me: executing $ac_dest commands" >&6;}
30391 case $ac_dest in
30392 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30393 # Strip MF so we end up with the name of the file.
30394 mf=`echo "$mf" | sed -e 's/:.*$//'`
30395 # Check whether this is an Automake generated Makefile or not.
30396 # We used to match only the files named `Makefile.in', but
30397 # some people rename them; so instead we look at the file content.
30398 # Grep'ing the first line is not enough: some people post-process
30399 # each Makefile.in and add a new line on top of each file to say so.
30400 # So let's grep whole file.
30401 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30402 dirpart=`(dirname "$mf") 2>/dev/null ||
30403 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30404 X"$mf" : 'X\(//\)[^/]' \| \
30405 X"$mf" : 'X\(//\)$' \| \
30406 X"$mf" : 'X\(/\)' \| \
30407 . : '\(.\)' 2>/dev/null ||
30408 echo X"$mf" |
30409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30411 /^X\(\/\/\)$/{ s//\1/; q; }
30412 /^X\(\/\).*/{ s//\1/; q; }
30413 s/.*/./; q'`
30414 else
30415 continue
30416 fi
30417 # Extract the definition of DEPDIR, am__include, and am__quote
30418 # from the Makefile without running `make'.
30419 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30420 test -z "$DEPDIR" && continue
30421 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30422 test -z "am__include" && continue
30423 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30424 # When using ansi2knr, U may be empty or an underscore; expand it
30425 U=`sed -n 's/^U = //p' < "$mf"`
30426 # Find all dependency output files, they are included files with
30427 # $(DEPDIR) in their names. We invoke sed twice because it is the
30428 # simplest approach to changing $(DEPDIR) to its actual value in the
30429 # expansion.
30430 for file in `sed -n "
30431 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30432 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30433 # Make sure the directory exists.
30434 test -f "$dirpart/$file" && continue
30435 fdir=`(dirname "$file") 2>/dev/null ||
30436 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30437 X"$file" : 'X\(//\)[^/]' \| \
30438 X"$file" : 'X\(//\)$' \| \
30439 X"$file" : 'X\(/\)' \| \
30440 . : '\(.\)' 2>/dev/null ||
30441 echo X"$file" |
30442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30444 /^X\(\/\/\)$/{ s//\1/; q; }
30445 /^X\(\/\).*/{ s//\1/; q; }
30446 s/.*/./; q'`
30447 { if $as_mkdir_p; then
30448 mkdir -p $dirpart/$fdir
30449 else
30450 as_dir=$dirpart/$fdir
30451 as_dirs=
30452 while test ! -d "$as_dir"; do
30453 as_dirs="$as_dir $as_dirs"
30454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30456 X"$as_dir" : 'X\(//\)[^/]' \| \
30457 X"$as_dir" : 'X\(//\)$' \| \
30458 X"$as_dir" : 'X\(/\)' \| \
30459 . : '\(.\)' 2>/dev/null ||
30460 echo X"$as_dir" |
30461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30463 /^X\(\/\/\)$/{ s//\1/; q; }
30464 /^X\(\/\).*/{ s//\1/; q; }
30465 s/.*/./; q'`
30466 done
30467 test ! -n "$as_dirs" || mkdir $as_dirs
30468 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30469 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30470 { (exit 1); exit 1; }; }; }
30471
30472 # echo "creating $dirpart/$file"
30473 echo '# dummy' > "$dirpart/$file"
30474 done
30475 done
30476 ;;
30477 default-1 )
30478 for ac_file in $CONFIG_FILES; do
30479 # Support "outfile[:infile[:infile...]]"
30480 case "$ac_file" in
30481 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30482 esac
30483 # PO directories have a Makefile.in generated from Makefile.in.in.
30484 case "$ac_file" in */Makefile.in)
30485 # Adjust a relative srcdir.
30486 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30487 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
30488 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30489 # In autoconf-2.13 it is called $ac_given_srcdir.
30490 # In autoconf-2.50 it is called $srcdir.
30491 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30492 case "$ac_given_srcdir" in
30493 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30494 /*) top_srcdir="$ac_given_srcdir" ;;
30495 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
30496 esac
30497 # Treat a directory as a PO directory if and only if it has a
30498 # POTFILES.in file. This allows packages to have multiple PO
30499 # directories under different names or in different locations.
30500 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30501 rm -f "$ac_dir/POTFILES"
30502 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30503 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30504 POMAKEFILEDEPS="POTFILES.in"
30505 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30506 # on $ac_dir but don't depend on user-specified configuration
30507 # parameters.
30508 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30509 # The LINGUAS file contains the set of available languages.
30510 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30511 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30512 fi
30513 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30514 # Hide the ALL_LINGUAS assigment from automake.
30515 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30516 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30517 else
30518 # The set of available languages was given in configure.in.
30519 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30520 fi
30521 # Compute POFILES
30522 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30523 # Compute UPDATEPOFILES
30524 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30525 # Compute DUMMYPOFILES
30526 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30527 # Compute GMOFILES
30528 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30529 case "$ac_given_srcdir" in
30530 .) srcdirpre= ;;
30531 *) srcdirpre='$(srcdir)/' ;;
30532 esac
30533 POFILES=
30534 UPDATEPOFILES=
30535 DUMMYPOFILES=
30536 GMOFILES=
30537 for lang in $ALL_LINGUAS; do
30538 POFILES="$POFILES $srcdirpre$lang.po"
30539 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30540 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30541 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30542 done
30543 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30544 # environment variable.
30545 INST_LINGUAS=
30546 if test -n "$ALL_LINGUAS"; then
30547 for presentlang in $ALL_LINGUAS; do
30548 useit=no
30549 if test "%UNSET%" != "$LINGUAS"; then
30550 desiredlanguages="$LINGUAS"
30551 else
30552 desiredlanguages="$ALL_LINGUAS"
30553 fi
30554 for desiredlang in $desiredlanguages; do
30555 # Use the presentlang catalog if desiredlang is
30556 # a. equal to presentlang, or
30557 # b. a variant of presentlang (because in this case,
30558 # presentlang can be used as a fallback for messages
30559 # which are not translated in the desiredlang catalog).
30560 case "$desiredlang" in
30561 "$presentlang"*) useit=yes;;
30562 esac
30563 done
30564 if test $useit = yes; then
30565 INST_LINGUAS="$INST_LINGUAS $presentlang"
30566 fi
30567 done
30568 fi
30569 CATALOGS=
30570 if test -n "$INST_LINGUAS"; then
30571 for lang in $INST_LINGUAS; do
30572 CATALOGS="$CATALOGS $lang.gmo"
30573 done
30574 fi
30575 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30576 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
30577 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30578 if test -f "$f"; then
30579 case "$f" in
30580 *.orig | *.bak | *~) ;;
30581 *) cat "$f" >> "$ac_dir/Makefile" ;;
30582 esac
30583 fi
30584 done
30585 fi
30586 ;;
30587 esac
30588 done ;;
30589 default ) echo timestamp > stamp-h ;;
30590 esac
30591 done
30592 _ACEOF
30593
30594 cat >>$CONFIG_STATUS <<\_ACEOF
30595
30596 { (exit 0); exit 0; }
30597 _ACEOF
30598 chmod +x $CONFIG_STATUS
30599 ac_clean_files=$ac_clean_files_save
30600
30601
30602 # configure is writing to config.log, and then calls config.status.
30603 # config.status does its own redirection, appending to config.log.
30604 # Unfortunately, on DOS this fails, as config.log is still kept open
30605 # by configure, so config.status won't be able to write to it; its
30606 # output is simply discarded. So we exec the FD to /dev/null,
30607 # effectively closing config.log, so it can be properly (re)opened and
30608 # appended to by config.status. When coming back to configure, we
30609 # need to make the FD available again.
30610 if test "$no_create" != yes; then
30611 ac_cs_success=:
30612 ac_config_status_args=
30613 test "$silent" = yes &&
30614 ac_config_status_args="$ac_config_status_args --quiet"
30615 exec 5>/dev/null
30616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30617 exec 5>>config.log
30618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30619 # would make configure fail if this is the last instruction.
30620 $ac_cs_success || { (exit 1); exit 1; }
30621 fi
30622
30623