* Add ipkg for future development
[project/opkg-lede.git] / configure
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="ipkg.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S EGREP 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 ipkglibdir 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
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1044 --with-ipkglibdir=DIR specifies directory to put status and info files.
1045 "/ipkg" is always added so if you want your files
1046 to be in /usr/lib/ipkg you should indicate
1047 --with-ipkglibdir=/usr/lib
1048
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1062
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1065
1066 _ACEOF
1067 fi
1068
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1071 ac_popdir=`pwd`
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1074 ac_builddir=.
1075
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081 ac_dir_suffix= ac_top_builddir=
1082 fi
1083
1084 case $srcdir in
1085 .) # No --srcdir option. We are building in place.
1086 ac_srcdir=.
1087 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=.
1089 else
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 fi ;;
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1095 *) # Relative path.
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1099
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1104 *)
1105 case "$ac_dir" in
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *)
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118 esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1122 *)
1123 case $ac_srcdir in
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127 esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *)
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136 esac;;
1137 esac
1138
1139 cd $ac_dir
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1142 echo
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1145 echo
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1149 echo
1150 $ac_configure --help
1151 else
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1153 fi
1154 cd $ac_popdir
1155 done
1156 fi
1157
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160 cat <<\_ACEOF
1161
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166 exit 0
1167 fi
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1172
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1175
1176 $ $0 $@
1177
1178 _ACEOF
1179 {
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1184
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1190
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1193
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201
1202 _ASUNAME
1203
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1206 do
1207 IFS=$as_save_IFS
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1210 done
1211
1212 } >&5
1213
1214 cat >&5 <<_ACEOF
1215
1216
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1220
1221 _ACEOF
1222
1223
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1235 do
1236 for ac_arg
1237 do
1238 case $ac_arg in
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 continue ;;
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245 esac
1246 case $ac_pass in
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1248 2)
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1252 else
1253 case $ac_arg in
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260 esac
1261 ;;
1262 -* ) ac_must_keep_next=true ;;
1263 esac
1264 fi
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1267 ac_sep=" "
1268 ;;
1269 esac
1270 done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1274
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1282 {
1283 echo
1284
1285 cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290 echo
1291 # The following way of writing the cache mishandles newlines in values,
1292 {
1293 (set) 2>&1 |
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295 *ac_space=\ *)
1296 sed -n \
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 ;;
1300 *)
1301 sed -n \
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1303 ;;
1304 esac;
1305 }
1306 echo
1307
1308 cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313 echo
1314 for ac_var in $ac_subst_vars
1315 do
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1320
1321 if test -n "$ac_subst_files"; then
1322 cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327 echo
1328 for ac_var in $ac_subst_files
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334 fi
1335
1336 if test -s confdefs.h; then
1337 cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342 echo
1343 sed "/^$/d" confdefs.h | sort
1344 echo
1345 fi
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1349 } >&5
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352 exit $exit_status
1353 ' 0
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1358
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1363
1364 # Predefined preprocessor variables.
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1389
1390
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 else
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1398 fi
1399 fi
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1405 . "$ac_site_file"
1406 fi
1407 done
1408
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415 case $cache_file in
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1418 esac
1419 fi
1420 else
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423 >$cache_file
1424 fi
1425
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1436 set,)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,set)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,);;
1445 *)
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1454 fi;;
1455 esac
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1458 case $ac_new_val in
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1462 esac
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 esac
1467 fi
1468 done
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1475 fi
1476
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 am__api_version="1.9"
1502 ac_aux_dir=
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif 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/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517 done
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522 fi
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1533 # AIX /bin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 # Account for people who put trailing slashes in PATH elements.
1552 case $as_dir/ in
1553 ./ | .// | /cC/* | \
1554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1556 /usr/ucb/* ) ;;
1557 *)
1558 # OSF1 and SCO ODT 3.0 have their own names for install.
1559 # Don't use installbsd from OSF since it installs stuff as root
1560 # by default.
1561 for ac_prog in ginstall scoinst install; do
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564 if test $ac_prog = install &&
1565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # AIX install. It has an incompatible calling convention.
1567 :
1568 elif test $ac_prog = install &&
1569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # program-specific install script used by HP pwplus--don't use.
1571 :
1572 else
1573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1574 break 3
1575 fi
1576 fi
1577 done
1578 done
1579 ;;
1580 esac
1581 done
1582
1583
1584 fi
1585 if test "${ac_cv_path_install+set}" = set; then
1586 INSTALL=$ac_cv_path_install
1587 else
1588 # As a last resort, use the slow shell script. We don't cache a
1589 # path for INSTALL within a source directory, because that will
1590 # break other packages using the cache if that directory is
1591 # removed, or if the path is relative.
1592 INSTALL=$ac_install_sh
1593 fi
1594 fi
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1597
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608 # Just in case
1609 sleep 1
1610 echo timestamp > conftest.file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments. Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1615 # directory).
1616 if (
1617 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618 if test "$*" = "X"; then
1619 # -L didn't work.
1620 set X `ls -t $srcdir/configure conftest.file`
1621 fi
1622 rm -f conftest.file
1623 if test "$*" != "X $srcdir/configure conftest.file" \
1624 && test "$*" != "X conftest.file $srcdir/configure"; then
1625
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1635 fi
1636
1637 test "$2" = conftest.file
1638 )
1639 then
1640 # Ok.
1641 :
1642 else
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE &&
1652 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE &&
1655 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $. echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF >conftest.sed
1659 s/[\\$]/&&/g;s/;s,x,x,$//
1660 _ACEOF
1661 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662 rm conftest.sed
1663
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1666
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1671 else
1672 am_missing_run=
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 fi
1676
1677 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1678 # We used to keeping the `.' as first argument, in order to
1679 # allow $(mkdir_p) to be used without argument. As in
1680 # $(mkdir_p) $(somedir)
1681 # where $(somedir) is conditionally defined. However this is wrong
1682 # for two reasons:
1683 # 1. if the package is installed by a user who cannot write `.'
1684 # make install will fail,
1685 # 2. the above comment should most certainly read
1686 # $(mkdir_p) $(DESTDIR)$(somedir)
1687 # so it does not work when $(somedir) is undefined and
1688 # $(DESTDIR) is not.
1689 # To support the latter case, we have to write
1690 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1691 # so the `.' trick is pointless.
1692 mkdir_p='mkdir -p --'
1693 else
1694 # On NextStep and OpenStep, the `mkdir' command does not
1695 # recognize any option. It will interpret all options as
1696 # directories to create, and then abort because `.' already
1697 # exists.
1698 for d in ./-p ./--version;
1699 do
1700 test -d $d && rmdir $d
1701 done
1702 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1703 if test -f "$ac_aux_dir/mkinstalldirs"; then
1704 mkdir_p='$(mkinstalldirs)'
1705 else
1706 mkdir_p='$(install_sh) -d'
1707 fi
1708 fi
1709
1710 for ac_prog in gawk mawk nawk awk
1711 do
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy $ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_AWK+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719 if test -n "$AWK"; then
1720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_AWK="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733 done
1734 done
1735
1736 fi
1737 fi
1738 AWK=$ac_cv_prog_AWK
1739 if test -n "$AWK"; then
1740 echo "$as_me:$LINENO: result: $AWK" >&5
1741 echo "${ECHO_T}$AWK" >&6
1742 else
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 fi
1746
1747 test -n "$AWK" && break
1748 done
1749
1750 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1751 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1753 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 cat >conftest.make <<\_ACEOF
1757 all:
1758 @echo 'ac_maketemp="$(MAKE)"'
1759 _ACEOF
1760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1761 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1762 if test -n "$ac_maketemp"; then
1763 eval ac_cv_prog_make_${ac_make}_set=yes
1764 else
1765 eval ac_cv_prog_make_${ac_make}_set=no
1766 fi
1767 rm -f conftest.make
1768 fi
1769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1770 echo "$as_me:$LINENO: result: yes" >&5
1771 echo "${ECHO_T}yes" >&6
1772 SET_MAKE=
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 SET_MAKE="MAKE=${MAKE-make}"
1777 fi
1778
1779 rm -rf .tst 2>/dev/null
1780 mkdir .tst 2>/dev/null
1781 if test -d .tst; then
1782 am__leading_dot=.
1783 else
1784 am__leading_dot=_
1785 fi
1786 rmdir .tst 2>/dev/null
1787
1788 # test to see if srcdir already configured
1789 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1790 test -f $srcdir/config.status; then
1791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1792 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1793 { (exit 1); exit 1; }; }
1794 fi
1795
1796 # test whether we have cygpath
1797 if test -z "$CYGPATH_W"; then
1798 if (cygpath --version) >/dev/null 2>/dev/null; then
1799 CYGPATH_W='cygpath -w'
1800 else
1801 CYGPATH_W=echo
1802 fi
1803 fi
1804
1805
1806 # Define the identity of the package.
1807 PACKAGE=ipkg
1808 VERSION=0.99.163
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE "$PACKAGE"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define VERSION "$VERSION"
1818 _ACEOF
1819
1820 # Some tools Automake needs.
1821
1822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823
1824
1825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826
1827
1828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829
1830
1831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832
1833
1834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835
1836 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837
1838 # Installed binaries are usually stripped using `strip' when the user
1839 # run `make install-strip'. However `strip' might not be the right
1840 # tool to use in cross-compilation environments, therefore Automake
1841 # will honor the `STRIP' environment variable to overrule this program.
1842 if test "$cross_compiling" != no; then
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}strip; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_STRIP+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$STRIP"; then
1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865 done
1866 done
1867
1868 fi
1869 fi
1870 STRIP=$ac_cv_prog_STRIP
1871 if test -n "$STRIP"; then
1872 echo "$as_me:$LINENO: result: $STRIP" >&5
1873 echo "${ECHO_T}$STRIP" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 fi
1878
1879 fi
1880 if test -z "$ac_cv_prog_STRIP"; then
1881 ac_ct_STRIP=$STRIP
1882 # Extract the first word of "strip", so it can be a program name with args.
1883 set dummy strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$ac_ct_STRIP"; then
1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_STRIP="strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1902 fi
1903 done
1904 done
1905
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 fi
1908 fi
1909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1910 if test -n "$ac_ct_STRIP"; then
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 STRIP=$ac_ct_STRIP
1919 else
1920 STRIP="$ac_cv_prog_STRIP"
1921 fi
1922
1923 fi
1924 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925
1926 # We need awk for the "check" target. The system "awk" is bad on
1927 # some platforms.
1928 # Always define AMTAR for backward compatibility.
1929
1930 AMTAR=${AMTAR-"${am_missing_run}tar"}
1931
1932 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1933
1934
1935
1936
1937
1938 ac_config_headers="$ac_config_headers config.h"
1939
1940
1941 # Make sure we can run config.sub.
1942 $ac_config_sub sun4 >/dev/null 2>&1 ||
1943 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1944 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1945 { (exit 1); exit 1; }; }
1946
1947 echo "$as_me:$LINENO: checking build system type" >&5
1948 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1949 if test "${ac_cv_build+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 else
1952 ac_cv_build_alias=$build_alias
1953 test -z "$ac_cv_build_alias" &&
1954 ac_cv_build_alias=`$ac_config_guess`
1955 test -z "$ac_cv_build_alias" &&
1956 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1957 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1958 { (exit 1); exit 1; }; }
1959 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1963
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1966 echo "${ECHO_T}$ac_cv_build" >&6
1967 build=$ac_cv_build
1968 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1969 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1970 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1971
1972
1973 echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 ac_cv_host_alias=$host_alias
1979 test -z "$ac_cv_host_alias" &&
1980 ac_cv_host_alias=$ac_cv_build_alias
1981 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1983 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1985
1986 fi
1987 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6
1989 host=$ac_cv_host
1990 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1991 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1992 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1993
1994
1995
1996
1997 for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
1998 test -f $top_builddir/configure && break
1999 done
2000
2001
2002 # Checks for programs
2003 for ac_prog in gawk mawk nawk awk
2004 do
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_AWK+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test -n "$AWK"; then
2013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_AWK="$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 break 2
2025 fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 AWK=$ac_cv_prog_AWK
2032 if test -n "$AWK"; then
2033 echo "$as_me:$LINENO: result: $AWK" >&5
2034 echo "${ECHO_T}$AWK" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040 test -n "$AWK" && break
2041 done
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC="$CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 break 2
2069 fi
2070 done
2071 done
2072
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084 fi
2085 if test -z "$ac_cv_prog_CC"; then
2086 ac_ct_CC=$CC
2087 # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC="gcc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2
2107 fi
2108 done
2109 done
2110
2111 fi
2112 fi
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2120 fi
2121
2122 CC=$ac_ct_CC
2123 else
2124 CC="$ac_cv_prog_CC"
2125 fi
2126
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2149 fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164 fi
2165 if test -z "$ac_cv_prog_CC"; then
2166 ac_ct_CC=$CC
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188 done
2189 done
2190
2191 fi
2192 fi
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2197 else
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2201
2202 CC=$ac_ct_CC
2203 else
2204 CC="$ac_cv_prog_CC"
2205 fi
2206
2207 fi
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else
2219 ac_prog_rejected=no
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228 ac_prog_rejected=yes
2229 continue
2230 fi
2231 ac_cv_prog_CC="cc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235 done
2236 done
2237
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy $ac_cv_prog_CC
2241 shift
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2246 shift
2247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248 fi
2249 fi
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2264 for ac_prog in cl
2265 do
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2296 else
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301 test -n "$CC" && break
2302 done
2303 fi
2304 if test -z "$CC"; then
2305 ac_ct_CC=$CC
2306 for ac_prog in cl
2307 do
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2328 fi
2329 done
2330 done
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343 test -n "$ac_ct_CC" && break
2344 done
2345
2346 CC=$ac_ct_CC
2347 fi
2348
2349 fi
2350
2351
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2357
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360 "checking for C compiler version" >&5
2361 ac_compiler=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363 (eval $ac_compiler --version </dev/null >&5) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368 (eval $ac_compiler -v </dev/null >&5) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373 (eval $ac_compiler -V </dev/null >&5) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h. */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2384
2385 int
2386 main ()
2387 {
2388
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2408 # resort.
2409
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2412 ac_cv_exeext=
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415 do
2416 test -f "$ac_file" || continue
2417 case $ac_file in
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419 ;;
2420 conftest.$ac_ext )
2421 # This is the source file.
2422 ;;
2423 [ab].out )
2424 # We found the default executable, but exeext='' is most
2425 # certainly right.
2426 break;;
2427 *.* )
2428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2432 export ac_cv_exeext
2433 break;;
2434 * )
2435 break;;
2436 esac
2437 done
2438 else
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }
2447 fi
2448
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2452
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460 if { ac_try='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 cross_compiling=no
2467 else
2468 if test "$cross_compiling" = maybe; then
2469 cross_compiling=yes
2470 else
2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2478 fi
2479 fi
2480 fi
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2483
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2492
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2503 # `rm'.
2504 for ac_file in conftest.exe conftest conftest.*; do
2505 test -f "$ac_file" || continue
2506 case $ac_file in
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 export ac_cv_exeext
2510 break;;
2511 * ) break;;
2512 esac
2513 done
2514 else
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520 fi
2521
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2525
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2528 ac_exeext=$EXEEXT
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534 cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h. */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540
2541 int
2542 main ()
2543 {
2544
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561 done
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595 choke me
2596 #endif
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_compiler_gnu=yes
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 ac_compiler_gnu=no
2630 fi
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633
2634 fi
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS=${CFLAGS+set}
2639 ac_save_CFLAGS=$CFLAGS
2640 CFLAGS="-g"
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652
2653 int
2654 main ()
2655 {
2656
2657 ;
2658 return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 ac_cv_prog_cc_g=yes
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 ac_cv_prog_cc_g=no
2689 fi
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2698 CFLAGS="-g -O2"
2699 else
2700 CFLAGS="-g"
2701 fi
2702 else
2703 if test "$GCC" = yes; then
2704 CFLAGS="-O2"
2705 else
2706 CFLAGS=
2707 fi
2708 fi
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 ac_cv_prog_cc_stdc=no
2715 ac_save_CC=$CC
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2722 #include <stdarg.h>
2723 #include <stdio.h>
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2730 char **p;
2731 int i;
2732 {
2733 return p[i];
2734 }
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2736 {
2737 char *s;
2738 va_list v;
2739 va_start (v,p);
2740 s = g (p, va_arg (v,int));
2741 va_end (v);
2742 return s;
2743 }
2744
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2758 int argc;
2759 char **argv;
2760 int
2761 main ()
2762 {
2763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2764 ;
2765 return 0;
2766 }
2767 _ACEOF
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 do
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc=$ac_arg
2801 break
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext
2808 done
2809 rm -f conftest.$ac_ext conftest.$ac_objext
2810 CC=$ac_save_CC
2811
2812 fi
2813
2814 case "x$ac_cv_prog_cc_stdc" in
2815 x|xno)
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2818 *)
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC="$CC $ac_cv_prog_cc_stdc" ;;
2822 esac
2823
2824 # Some people use a C++ compiler to compile C. Since we use `exit',
2825 # in C++ we need to declare it. In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #ifndef __cplusplus
2830 choke me
2831 #endif
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration in \
2856 '' \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2861 'void exit (int);'
2862 do
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 $ac_declaration
2870 #include <stdlib.h>
2871 int
2872 main ()
2873 {
2874 exit (42);
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 :
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 continue
2907 fi
2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 $ac_declaration
2916 int
2917 main ()
2918 {
2919 exit (42);
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 break
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 fi
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 done
2954 rm -f conftest*
2955 if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2959 fi
2960
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 fi
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 DEPDIR="${am__leading_dot}deps"
2973
2974 ac_config_commands="$ac_config_commands depfiles"
2975
2976
2977 am_make=${MAKE-make}
2978 cat > confinc << 'END'
2979 am__doit:
2980 @echo done
2981 .PHONY: am__doit
2982 END
2983 # If we don't find an include directive, just comment out the code.
2984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2986 am__include="#"
2987 am__quote=
2988 _am_result=none
2989 # First try GNU make style include.
2990 echo "include confinc" > confmf
2991 # We grep out `Entering directory' and `Leaving directory'
2992 # messages which can occur if `w' ends up in MAKEFLAGS.
2993 # In particular we don't look at `^make:' because GNU make might
2994 # be invoked under some other name (usually "gmake"), in which
2995 # case it prints its new name instead of `make'.
2996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2997 am__include=include
2998 am__quote=
2999 _am_result=GNU
3000 fi
3001 # Now try BSD make style include.
3002 if test "$am__include" = "#"; then
3003 echo '.include "confinc"' > confmf
3004 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3005 am__include=.include
3006 am__quote="\""
3007 _am_result=BSD
3008 fi
3009 fi
3010
3011
3012 echo "$as_me:$LINENO: result: $_am_result" >&5
3013 echo "${ECHO_T}$_am_result" >&6
3014 rm -f confinc confmf
3015
3016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3017 if test "${enable_dependency_tracking+set}" = set; then
3018 enableval="$enable_dependency_tracking"
3019
3020 fi;
3021 if test "x$enable_dependency_tracking" != xno; then
3022 am_depcomp="$ac_aux_dir/depcomp"
3023 AMDEPBACKSLASH='\'
3024 fi
3025
3026
3027 if test "x$enable_dependency_tracking" != xno; then
3028 AMDEP_TRUE=
3029 AMDEP_FALSE='#'
3030 else
3031 AMDEP_TRUE='#'
3032 AMDEP_FALSE=
3033 fi
3034
3035
3036
3037
3038 depcc="$CC" am_compiler_list=
3039
3040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3046 # We make a subdir and do the tests there. Otherwise we can end up
3047 # making bogus files that we don't know about and never remove. For
3048 # instance it was reported that on HP-UX the gcc test will end up
3049 # making a dummy file named `D' -- because `-MD' means `put the output
3050 # in D'.
3051 mkdir conftest.dir
3052 # Copy depcomp to subdir because otherwise we won't find it if we're
3053 # using a relative directory.
3054 cp "$am_depcomp" conftest.dir
3055 cd conftest.dir
3056 # We will build objects and dependencies in a subdirectory because
3057 # it helps to detect inapplicable dependency modes. For instance
3058 # both Tru64's cc and ICC support -MD to output dependencies as a
3059 # side effect of compilation, but ICC will put the dependencies in
3060 # the current directory while Tru64 will put them in the object
3061 # directory.
3062 mkdir sub
3063
3064 am_cv_CC_dependencies_compiler_type=none
3065 if test "$am_compiler_list" = ""; then
3066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3067 fi
3068 for depmode in $am_compiler_list; do
3069 # Setup a source with many dependencies, because some compilers
3070 # like to wrap large dependency lists on column 80 (with \), and
3071 # we should not choose a depcomp mode which is confused by this.
3072 #
3073 # We need to recreate these files for each test, as the compiler may
3074 # overwrite some of them when testing with obscure command lines.
3075 # This happens at least with the AIX C compiler.
3076 : > sub/conftest.c
3077 for i in 1 2 3 4 5 6; do
3078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3080 # Solaris 8's {/usr,}/bin/sh.
3081 touch sub/conftst$i.h
3082 done
3083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3084
3085 case $depmode in
3086 nosideeffect)
3087 # after this tag, mechanisms are not by side-effect, so they'll
3088 # only be used when explicitly requested
3089 if test "x$enable_dependency_tracking" = xyes; then
3090 continue
3091 else
3092 break
3093 fi
3094 ;;
3095 none) break ;;
3096 esac
3097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3098 # mode. It turns out that the SunPro C++ compiler does not properly
3099 # handle `-M -o', and we need to detect this.
3100 if depmode=$depmode \
3101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3104 >/dev/null 2>conftest.err &&
3105 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3106 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3107 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3108 # icc doesn't choke on unknown options, it will just issue warnings
3109 # or remarks (even with -Werror). So we grep stderr for any message
3110 # that says an option was ignored or not supported.
3111 # When given -MP, icc 7.0 and 7.1 complain thusly:
3112 # icc: Command line warning: ignoring option '-M'; no argument required
3113 # The diagnosis changed in icc 8.0:
3114 # icc: Command line remark: option '-MP' not supported
3115 if (grep 'ignoring option' conftest.err ||
3116 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3117 am_cv_CC_dependencies_compiler_type=$depmode
3118 break
3119 fi
3120 fi
3121 done
3122
3123 cd ..
3124 rm -rf conftest.dir
3125 else
3126 am_cv_CC_dependencies_compiler_type=none
3127 fi
3128
3129 fi
3130 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3131 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3132 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3133
3134
3135
3136 if
3137 test "x$enable_dependency_tracking" != xno \
3138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3139 am__fastdepCC_TRUE=
3140 am__fastdepCC_FALSE='#'
3141 else
3142 am__fastdepCC_TRUE='#'
3143 am__fastdepCC_FALSE=
3144 fi
3145
3146
3147 # Find a good install program. We prefer a C program (faster),
3148 # so one script is as good as another. But avoid the broken or
3149 # incompatible versions:
3150 # SysV /etc/install, /usr/sbin/install
3151 # SunOS /usr/etc/install
3152 # IRIX /sbin/install
3153 # AIX /bin/install
3154 # AmigaOS /C/install, which installs bootblocks on floppy discs
3155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3158 # OS/2's system install, which has a completely different semantic
3159 # ./install, which can be erroneously created by make from ./install.sh.
3160 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3161 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3162 if test -z "$INSTALL"; then
3163 if test "${ac_cv_path_install+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 # Account for people who put trailing slashes in PATH elements.
3172 case $as_dir/ in
3173 ./ | .// | /cC/* | \
3174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3176 /usr/ucb/* ) ;;
3177 *)
3178 # OSF1 and SCO ODT 3.0 have their own names for install.
3179 # Don't use installbsd from OSF since it installs stuff as root
3180 # by default.
3181 for ac_prog in ginstall scoinst install; do
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3184 if test $ac_prog = install &&
3185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186 # AIX install. It has an incompatible calling convention.
3187 :
3188 elif test $ac_prog = install &&
3189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3190 # program-specific install script used by HP pwplus--don't use.
3191 :
3192 else
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3194 break 3
3195 fi
3196 fi
3197 done
3198 done
3199 ;;
3200 esac
3201 done
3202
3203
3204 fi
3205 if test "${ac_cv_path_install+set}" = set; then
3206 INSTALL=$ac_cv_path_install
3207 else
3208 # As a last resort, use the slow shell script. We don't cache a
3209 # path for INSTALL within a source directory, because that will
3210 # break other packages using the cache if that directory is
3211 # removed, or if the path is relative.
3212 INSTALL=$ac_install_sh
3213 fi
3214 fi
3215 echo "$as_me:$LINENO: result: $INSTALL" >&5
3216 echo "${ECHO_T}$INSTALL" >&6
3217
3218 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3219 # It thinks the first close brace ends the variable substitution.
3220 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3221
3222 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3223
3224 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3225
3226 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3227 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3228 LN_S=$as_ln_s
3229 if test "$LN_S" = "ln -s"; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3232 else
3233 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3234 echo "${ECHO_T}no, using $LN_S" >&6
3235 fi
3236
3237 # Installed binaries are usually stripped using `strip' when the user
3238 # run `make install-strip'. However `strip' might not be the right
3239 # tool to use in cross-compilation environments, therefore Automake
3240 # will honor the `STRIP' environment variable to overrule this program.
3241 if test "$cross_compiling" != no; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}strip; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_STRIP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$STRIP"; then
3251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266
3267 fi
3268 fi
3269 STRIP=$ac_cv_prog_STRIP
3270 if test -n "$STRIP"; then
3271 echo "$as_me:$LINENO: result: $STRIP" >&5
3272 echo "${ECHO_T}$STRIP" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276 fi
3277
3278 fi
3279 if test -z "$ac_cv_prog_STRIP"; then
3280 ac_ct_STRIP=$STRIP
3281 # Extract the first word of "strip", so it can be a program name with args.
3282 set dummy strip; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$ac_ct_STRIP"; then
3289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_STRIP="strip"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304
3305 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3306 fi
3307 fi
3308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3309 if test -n "$ac_ct_STRIP"; then
3310 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3311 echo "${ECHO_T}$ac_ct_STRIP" >&6
3312 else
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317 STRIP=$ac_ct_STRIP
3318 else
3319 STRIP="$ac_cv_prog_STRIP"
3320 fi
3321
3322 fi
3323 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3324
3325 # Check whether --enable-shared or --disable-shared was given.
3326 if test "${enable_shared+set}" = set; then
3327 enableval="$enable_shared"
3328 p=${PACKAGE-default}
3329 case $enableval in
3330 yes) enable_shared=yes ;;
3331 no) enable_shared=no ;;
3332 *)
3333 enable_shared=no
3334 # Look at the argument we got. We use all the common list separators.
3335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3336 for pkg in $enableval; do
3337 IFS="$lt_save_ifs"
3338 if test "X$pkg" = "X$p"; then
3339 enable_shared=yes
3340 fi
3341 done
3342 IFS="$lt_save_ifs"
3343 ;;
3344 esac
3345 else
3346 enable_shared=yes
3347 fi;
3348
3349 # Check whether --enable-static or --disable-static was given.
3350 if test "${enable_static+set}" = set; then
3351 enableval="$enable_static"
3352 p=${PACKAGE-default}
3353 case $enableval in
3354 yes) enable_static=yes ;;
3355 no) enable_static=no ;;
3356 *)
3357 enable_static=no
3358 # Look at the argument we got. We use all the common list separators.
3359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3360 for pkg in $enableval; do
3361 IFS="$lt_save_ifs"
3362 if test "X$pkg" = "X$p"; then
3363 enable_static=yes
3364 fi
3365 done
3366 IFS="$lt_save_ifs"
3367 ;;
3368 esac
3369 else
3370 enable_static=yes
3371 fi;
3372
3373 # Check whether --enable-fast-install or --disable-fast-install was given.
3374 if test "${enable_fast_install+set}" = set; then
3375 enableval="$enable_fast_install"
3376 p=${PACKAGE-default}
3377 case $enableval in
3378 yes) enable_fast_install=yes ;;
3379 no) enable_fast_install=no ;;
3380 *)
3381 enable_fast_install=no
3382 # Look at the argument we got. We use all the common list separators.
3383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3384 for pkg in $enableval; do
3385 IFS="$lt_save_ifs"
3386 if test "X$pkg" = "X$p"; then
3387 enable_fast_install=yes
3388 fi
3389 done
3390 IFS="$lt_save_ifs"
3391 ;;
3392 esac
3393 else
3394 enable_fast_install=yes
3395 fi;
3396
3397 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3398 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3399 if test "${lt_cv_path_SED+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 # Loop through the user's path and test for sed and gsed.
3403 # Then use that list of sed's as ones to test for truncation.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for lt_ac_prog in sed gsed; do
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3412 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3413 fi
3414 done
3415 done
3416 done
3417 lt_ac_max=0
3418 lt_ac_count=0
3419 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3420 # along with /bin/sed that truncates output.
3421 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3422 test ! -f $lt_ac_sed && continue
3423 cat /dev/null > conftest.in
3424 lt_ac_count=0
3425 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3426 # Check for GNU sed and select it if it is found.
3427 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3428 lt_cv_path_SED=$lt_ac_sed
3429 break
3430 fi
3431 while true; do
3432 cat conftest.in conftest.in >conftest.tmp
3433 mv conftest.tmp conftest.in
3434 cp conftest.in conftest.nl
3435 echo >>conftest.nl
3436 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3437 cmp -s conftest.out conftest.nl || break
3438 # 10000 chars as input seems more than enough
3439 test $lt_ac_count -gt 10 && break
3440 lt_ac_count=`expr $lt_ac_count + 1`
3441 if test $lt_ac_count -gt $lt_ac_max; then
3442 lt_ac_max=$lt_ac_count
3443 lt_cv_path_SED=$lt_ac_sed
3444 fi
3445 done
3446 done
3447
3448 fi
3449
3450 SED=$lt_cv_path_SED
3451 echo "$as_me:$LINENO: result: $SED" >&5
3452 echo "${ECHO_T}$SED" >&6
3453
3454 echo "$as_me:$LINENO: checking for egrep" >&5
3455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3456 if test "${ac_cv_prog_egrep+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3460 then ac_cv_prog_egrep='grep -E'
3461 else ac_cv_prog_egrep='egrep'
3462 fi
3463 fi
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3465 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3466 EGREP=$ac_cv_prog_egrep
3467
3468
3469
3470 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3471 if test "${with_gnu_ld+set}" = set; then
3472 withval="$with_gnu_ld"
3473 test "$withval" = no || with_gnu_ld=yes
3474 else
3475 with_gnu_ld=no
3476 fi;
3477 ac_prog=ld
3478 if test "$GCC" = yes; then
3479 # Check if gcc -print-prog-name=ld gives a path.
3480 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3481 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3482 case $host in
3483 *-*-mingw*)
3484 # gcc leaves a trailing carriage return which upsets mingw
3485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3486 *)
3487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3488 esac
3489 case $ac_prog in
3490 # Accept absolute paths.
3491 [\\/]* | ?:[\\/]*)
3492 re_direlt='/[^/][^/]*/\.\./'
3493 # Canonicalize the pathname of ld
3494 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3495 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3496 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3497 done
3498 test -z "$LD" && LD="$ac_prog"
3499 ;;
3500 "")
3501 # If it fails, then pretend we aren't using GCC.
3502 ac_prog=ld
3503 ;;
3504 *)
3505 # If it is relative, then search for the first ld in PATH.
3506 with_gnu_ld=unknown
3507 ;;
3508 esac
3509 elif test "$with_gnu_ld" = yes; then
3510 echo "$as_me:$LINENO: checking for GNU ld" >&5
3511 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3512 else
3513 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3514 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3515 fi
3516 if test "${lt_cv_path_LD+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -z "$LD"; then
3520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3521 for ac_dir in $PATH; do
3522 IFS="$lt_save_ifs"
3523 test -z "$ac_dir" && ac_dir=.
3524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3525 lt_cv_path_LD="$ac_dir/$ac_prog"
3526 # Check to see if the program is GNU ld. I'd rather use --version,
3527 # but apparently some variants of GNU ld only accept -v.
3528 # Break only if it was the GNU/non-GNU ld that we prefer.
3529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3530 *GNU* | *'with BFD'*)
3531 test "$with_gnu_ld" != no && break
3532 ;;
3533 *)
3534 test "$with_gnu_ld" != yes && break
3535 ;;
3536 esac
3537 fi
3538 done
3539 IFS="$lt_save_ifs"
3540 else
3541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3542 fi
3543 fi
3544
3545 LD="$lt_cv_path_LD"
3546 if test -n "$LD"; then
3547 echo "$as_me:$LINENO: result: $LD" >&5
3548 echo "${ECHO_T}$LD" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552 fi
3553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3555 { (exit 1); exit 1; }; }
3556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3562 case `$LD -v 2>&1 </dev/null` in
3563 *GNU* | *'with BFD'*)
3564 lt_cv_prog_gnu_ld=yes
3565 ;;
3566 *)
3567 lt_cv_prog_gnu_ld=no
3568 ;;
3569 esac
3570 fi
3571 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3573 with_gnu_ld=$lt_cv_prog_gnu_ld
3574
3575
3576 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3578 if test "${lt_cv_ld_reload_flag+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 lt_cv_ld_reload_flag='-r'
3582 fi
3583 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3585 reload_flag=$lt_cv_ld_reload_flag
3586 case $reload_flag in
3587 "" | " "*) ;;
3588 *) reload_flag=" $reload_flag" ;;
3589 esac
3590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3591 case $host_os in
3592 darwin*)
3593 if test "$GCC" = yes; then
3594 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3595 else
3596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3597 fi
3598 ;;
3599 esac
3600
3601 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3602 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3603 if test "${lt_cv_path_NM+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$NM"; then
3607 # Let the user override the test.
3608 lt_cv_path_NM="$NM"
3609 else
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3612 IFS="$lt_save_ifs"
3613 test -z "$ac_dir" && ac_dir=.
3614 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3615 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3616 # Check to see if the nm accepts a BSD-compat flag.
3617 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3618 # nm: unknown option "B" ignored
3619 # Tru64's nm complains that /dev/null is an invalid object file
3620 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3621 */dev/null* | *'Invalid file or object type'*)
3622 lt_cv_path_NM="$tmp_nm -B"
3623 break
3624 ;;
3625 *)
3626 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3627 */dev/null*)
3628 lt_cv_path_NM="$tmp_nm -p"
3629 break
3630 ;;
3631 *)
3632 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3633 continue # so that we can try to find one that supports BSD flags
3634 ;;
3635 esac
3636 esac
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3641 fi
3642 fi
3643 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3644 echo "${ECHO_T}$lt_cv_path_NM" >&6
3645 NM="$lt_cv_path_NM"
3646
3647 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3648 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3649 if test "${lt_cv_deplibs_check_method+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 lt_cv_file_magic_cmd='$MAGIC_CMD'
3653 lt_cv_file_magic_test_file=
3654 lt_cv_deplibs_check_method='unknown'
3655 # Need to set the preceding variable on all platforms that support
3656 # interlibrary dependencies.
3657 # 'none' -- dependencies not supported.
3658 # `unknown' -- same as none, but documents that we really don't know.
3659 # 'pass_all' -- all dependencies passed with no checks.
3660 # 'test_compile' -- check by making test program.
3661 # 'file_magic [[regex]]' -- check by looking for files in library path
3662 # which responds to the $file_magic_cmd with a given extended regex.
3663 # If you have `file' or equivalent on your system and you're not sure
3664 # whether `pass_all' will *always* work, you probably want this one.
3665
3666 case $host_os in
3667 aix4* | aix5*)
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670
3671 beos*)
3672 lt_cv_deplibs_check_method=pass_all
3673 ;;
3674
3675 bsdi[45]*)
3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3677 lt_cv_file_magic_cmd='/usr/bin/file -L'
3678 lt_cv_file_magic_test_file=/shlib/libc.so
3679 ;;
3680
3681 cygwin*)
3682 # func_win32_libid is a shell function defined in ltmain.sh
3683 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3684 lt_cv_file_magic_cmd='func_win32_libid'
3685 ;;
3686
3687 mingw* | pw32*)
3688 # Base MSYS/MinGW do not provide the 'file' command needed by
3689 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3690 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3691 lt_cv_file_magic_cmd='$OBJDUMP -f'
3692 ;;
3693
3694 darwin* | rhapsody*)
3695 lt_cv_deplibs_check_method=pass_all
3696 ;;
3697
3698 freebsd* | kfreebsd*-gnu | dragonfly*)
3699 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3700 case $host_cpu in
3701 i*86 )
3702 # Not sure whether the presence of OpenBSD here was a mistake.
3703 # Let's accept both of them until this is cleared up.
3704 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3705 lt_cv_file_magic_cmd=/usr/bin/file
3706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3707 ;;
3708 esac
3709 else
3710 lt_cv_deplibs_check_method=pass_all
3711 fi
3712 ;;
3713
3714 gnu*)
3715 lt_cv_deplibs_check_method=pass_all
3716 ;;
3717
3718 hpux10.20* | hpux11*)
3719 lt_cv_file_magic_cmd=/usr/bin/file
3720 case $host_cpu in
3721 ia64*)
3722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3723 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3724 ;;
3725 hppa*64*)
3726 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]'
3727 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3728 ;;
3729 *)
3730 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3731 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3732 ;;
3733 esac
3734 ;;
3735
3736 irix5* | irix6* | nonstopux*)
3737 case $LD in
3738 *-32|*"-32 ") libmagic=32-bit;;
3739 *-n32|*"-n32 ") libmagic=N32;;
3740 *-64|*"-64 ") libmagic=64-bit;;
3741 *) libmagic=never-match;;
3742 esac
3743 lt_cv_deplibs_check_method=pass_all
3744 ;;
3745
3746 # This must be Linux ELF.
3747 linux*)
3748 lt_cv_deplibs_check_method=pass_all
3749 ;;
3750
3751 netbsd*)
3752 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3754 else
3755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3756 fi
3757 ;;
3758
3759 newos6*)
3760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3761 lt_cv_file_magic_cmd=/usr/bin/file
3762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3763 ;;
3764
3765 nto-qnx*)
3766 lt_cv_deplibs_check_method=unknown
3767 ;;
3768
3769 openbsd*)
3770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3772 else
3773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3774 fi
3775 ;;
3776
3777 osf3* | osf4* | osf5*)
3778 lt_cv_deplibs_check_method=pass_all
3779 ;;
3780
3781 sco3.2v5*)
3782 lt_cv_deplibs_check_method=pass_all
3783 ;;
3784
3785 solaris*)
3786 lt_cv_deplibs_check_method=pass_all
3787 ;;
3788
3789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3790 case $host_vendor in
3791 motorola)
3792 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]'
3793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3794 ;;
3795 ncr)
3796 lt_cv_deplibs_check_method=pass_all
3797 ;;
3798 sequent)
3799 lt_cv_file_magic_cmd='/bin/file'
3800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3801 ;;
3802 sni)
3803 lt_cv_file_magic_cmd='/bin/file'
3804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3805 lt_cv_file_magic_test_file=/lib/libc.so
3806 ;;
3807 siemens)
3808 lt_cv_deplibs_check_method=pass_all
3809 ;;
3810 esac
3811 ;;
3812
3813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3814 lt_cv_deplibs_check_method=pass_all
3815 ;;
3816 esac
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3820 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3821 file_magic_cmd=$lt_cv_file_magic_cmd
3822 deplibs_check_method=$lt_cv_deplibs_check_method
3823 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3824
3825
3826
3827
3828 # If no C compiler was specified, use CC.
3829 LTCC=${LTCC-"$CC"}
3830
3831 # Allow CC to be a program name with arguments.
3832 compiler=$CC
3833
3834
3835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3836 if test "${enable_libtool_lock+set}" = set; then
3837 enableval="$enable_libtool_lock"
3838
3839 fi;
3840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3841
3842 # Some flags need to be propagated to the compiler or linker for good
3843 # libtool support.
3844 case $host in
3845 ia64-*-hpux*)
3846 # Find out which ABI we are using.
3847 echo 'int i;' > conftest.$ac_ext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; then
3853 case `/usr/bin/file conftest.$ac_objext` in
3854 *ELF-32*)
3855 HPUX_IA64_MODE="32"
3856 ;;
3857 *ELF-64*)
3858 HPUX_IA64_MODE="64"
3859 ;;
3860 esac
3861 fi
3862 rm -rf conftest*
3863 ;;
3864 *-*-irix6*)
3865 # Find out which ABI we are using.
3866 echo '#line 3866 "configure"' > conftest.$ac_ext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; then
3872 if test "$lt_cv_prog_gnu_ld" = yes; then
3873 case `/usr/bin/file conftest.$ac_objext` in
3874 *32-bit*)
3875 LD="${LD-ld} -melf32bsmip"
3876 ;;
3877 *N32*)
3878 LD="${LD-ld} -melf32bmipn32"
3879 ;;
3880 *64-bit*)
3881 LD="${LD-ld} -melf64bmip"
3882 ;;
3883 esac
3884 else
3885 case `/usr/bin/file conftest.$ac_objext` in
3886 *32-bit*)
3887 LD="${LD-ld} -32"
3888 ;;
3889 *N32*)
3890 LD="${LD-ld} -n32"
3891 ;;
3892 *64-bit*)
3893 LD="${LD-ld} -64"
3894 ;;
3895 esac
3896 fi
3897 fi
3898 rm -rf conftest*
3899 ;;
3900
3901 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3902 # Find out which ABI we are using.
3903 echo 'int i;' > conftest.$ac_ext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; then
3909 case `/usr/bin/file conftest.o` in
3910 *32-bit*)
3911 case $host in
3912 x86_64-*linux*)
3913 LD="${LD-ld} -m elf_i386"
3914 ;;
3915 ppc64-*linux*|powerpc64-*linux*)
3916 LD="${LD-ld} -m elf32ppclinux"
3917 ;;
3918 s390x-*linux*)
3919 LD="${LD-ld} -m elf_s390"
3920 ;;
3921 sparc64-*linux*)
3922 LD="${LD-ld} -m elf32_sparc"
3923 ;;
3924 esac
3925 ;;
3926 *64-bit*)
3927 case $host in
3928 x86_64-*linux*)
3929 LD="${LD-ld} -m elf_x86_64"
3930 ;;
3931 ppc*-*linux*|powerpc*-*linux*)
3932 LD="${LD-ld} -m elf64ppc"
3933 ;;
3934 s390*-*linux*)
3935 LD="${LD-ld} -m elf64_s390"
3936 ;;
3937 sparc*-*linux*)
3938 LD="${LD-ld} -m elf64_sparc"
3939 ;;
3940 esac
3941 ;;
3942 esac
3943 fi
3944 rm -rf conftest*
3945 ;;
3946
3947 *-*-sco3.2v5*)
3948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3949 SAVE_CFLAGS="$CFLAGS"
3950 CFLAGS="$CFLAGS -belf"
3951 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3952 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3953 if test "${lt_cv_cc_needs_belf+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979 (eval $ac_link) 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -z "$ac_c_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 lt_cv_cc_needs_belf=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 lt_cv_cc_needs_belf=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext \
4007 conftest$ac_exeext conftest.$ac_ext
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014 fi
4015 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4016 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4019 CFLAGS="$SAVE_CFLAGS"
4020 fi
4021 ;;
4022
4023 esac
4024
4025 need_locks="$enable_libtool_lock"
4026
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4034 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4037 CPP=
4038 fi
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045 do
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null; then
4076 if test -s conftest.err; then
4077 ac_cpp_err=$ac_c_preproc_warn_flag
4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079 else
4080 ac_cpp_err=
4081 fi
4082 else
4083 ac_cpp_err=yes
4084 fi
4085 if test -z "$ac_cpp_err"; then
4086 :
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 # Broken: fails on valid input.
4092 continue
4093 fi
4094 rm -f conftest.err conftest.$ac_ext
4095
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4105 _ACEOF
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117 else
4118 ac_cpp_err=
4119 fi
4120 else
4121 ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4125 continue
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4140 break
4141 fi
4142
4143 done
4144 ac_cv_prog_CPP=$CPP
4145
4146 fi
4147 CPP=$ac_cv_prog_CPP
4148 else
4149 ac_cv_prog_CPP=$CPP
4150 fi
4151 echo "$as_me:$LINENO: result: $CPP" >&5
4152 echo "${ECHO_T}$CPP" >&6
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173 Syntax error
4174 _ACEOF
4175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev/null; then
4183 if test -s conftest.err; then
4184 ac_cpp_err=$ac_c_preproc_warn_flag
4185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4186 else
4187 ac_cpp_err=
4188 fi
4189 else
4190 ac_cpp_err=yes
4191 fi
4192 if test -z "$ac_cpp_err"; then
4193 :
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 # Broken: fails on valid input.
4199 continue
4200 fi
4201 rm -f conftest.err conftest.$ac_ext
4202
4203 # OK, works on sane cases. Now check whether non-existent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224 else
4225 ac_cpp_err=
4226 fi
4227 else
4228 ac_cpp_err=yes
4229 fi
4230 if test -z "$ac_cpp_err"; then
4231 # Broken: success on invalid input.
4232 continue
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 # Passes both tests.
4238 ac_preproc_ok=:
4239 break
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4247 :
4248 else
4249 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4265 if test "${ac_cv_header_stdc+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <stdlib.h>
4275 #include <stdarg.h>
4276 #include <string.h>
4277 #include <float.h>
4278
4279 int
4280 main ()
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_header_stdc=yes
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 ac_cv_header_stdc=no
4315 fi
4316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317
4318 if test $ac_cv_header_stdc = yes; then
4319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
4327
4328 _ACEOF
4329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4330 $EGREP "memchr" >/dev/null 2>&1; then
4331 :
4332 else
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f conftest*
4336
4337 fi
4338
4339 if test $ac_cv_header_stdc = yes; then
4340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <stdlib.h>
4348
4349 _ACEOF
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 $EGREP "free" >/dev/null 2>&1; then
4352 :
4353 else
4354 ac_cv_header_stdc=no
4355 fi
4356 rm -f conftest*
4357
4358 fi
4359
4360 if test $ac_cv_header_stdc = yes; then
4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362 if test "$cross_compiling" = yes; then
4363 :
4364 else
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <ctype.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381 #endif
4382
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 int
4385 main ()
4386 {
4387 int i;
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4391 exit(2);
4392 exit (0);
4393 }
4394 _ACEOF
4395 rm -f conftest$ac_exeext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397 (eval $ac_link) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 :
4407 else
4408 echo "$as_me: program exited with status $ac_status" >&5
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ( exit $ac_status )
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 fi
4418 fi
4419 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4420 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4421 if test $ac_cv_header_stdc = yes; then
4422
4423 cat >>confdefs.h <<\_ACEOF
4424 #define STDC_HEADERS 1
4425 _ACEOF
4426
4427 fi
4428
4429 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4440 inttypes.h stdint.h unistd.h
4441 do
4442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 echo "$as_me:$LINENO: checking for $ac_header" >&5
4444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4455
4456 #include <$ac_header>
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 eval "$as_ac_Header=yes"
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 eval "$as_ac_Header=no"
4486 fi
4487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4488 fi
4489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4492 cat >>confdefs.h <<_ACEOF
4493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4494 _ACEOF
4495
4496 fi
4497
4498 done
4499
4500
4501
4502 for ac_header in dlfcn.h
4503 do
4504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4506 echo "$as_me:$LINENO: checking for $ac_header" >&5
4507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 fi
4511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4513 else
4514 # Is the header compilable?
4515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h. */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 #include <$ac_header>
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_header_compiler=yes
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4552
4553 ac_header_compiler=no
4554 fi
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4557 echo "${ECHO_T}$ac_header_compiler" >&6
4558
4559 # Is the header present?
4560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 #include <$ac_header>
4569 _ACEOF
4570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null; then
4578 if test -s conftest.err; then
4579 ac_cpp_err=$ac_c_preproc_warn_flag
4580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4581 else
4582 ac_cpp_err=
4583 fi
4584 else
4585 ac_cpp_err=yes
4586 fi
4587 if test -z "$ac_cpp_err"; then
4588 ac_header_preproc=yes
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 ac_header_preproc=no
4594 fi
4595 rm -f conftest.err conftest.$ac_ext
4596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4597 echo "${ECHO_T}$ac_header_preproc" >&6
4598
4599 # So? What about this header?
4600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4601 yes:no: )
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4606 ac_header_preproc=yes
4607 ;;
4608 no:yes:* )
4609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4621 (
4622 cat <<\_ASBOX
4623 ## ------------------------------------------ ##
4624 ## Report this to the AC_PACKAGE_NAME lists. ##
4625 ## ------------------------------------------ ##
4626 _ASBOX
4627 ) |
4628 sed "s/^/$as_me: WARNING: /" >&2
4629 ;;
4630 esac
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 eval "$as_ac_Header=\$ac_header_preproc"
4637 fi
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640
4641 fi
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF
4646
4647 fi
4648
4649 done
4650
4651 ac_ext=cc
4652 ac_cpp='$CXXCPP $CPPFLAGS'
4653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4658 do
4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_CXX+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 if test -n "$CXX"; then
4667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682
4683 fi
4684 fi
4685 CXX=$ac_cv_prog_CXX
4686 if test -n "$CXX"; then
4687 echo "$as_me:$LINENO: result: $CXX" >&5
4688 echo "${ECHO_T}$CXX" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 fi
4693
4694 test -n "$CXX" && break
4695 done
4696 fi
4697 if test -z "$CXX"; then
4698 ac_ct_CXX=$CXX
4699 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4700 do
4701 # Extract the first word of "$ac_prog", so it can be a program name with args.
4702 set dummy $ac_prog; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 if test -n "$ac_ct_CXX"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_ac_ct_CXX="$ac_prog"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724
4725 fi
4726 fi
4727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4728 if test -n "$ac_ct_CXX"; then
4729 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4730 echo "${ECHO_T}$ac_ct_CXX" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4734 fi
4735
4736 test -n "$ac_ct_CXX" && break
4737 done
4738 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4739
4740 CXX=$ac_ct_CXX
4741 fi
4742
4743
4744 # Provide some information about the compiler.
4745 echo "$as_me:$LINENO:" \
4746 "checking for C++ compiler version" >&5
4747 ac_compiler=`set X $ac_compile; echo $2`
4748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4749 (eval $ac_compiler --version </dev/null >&5) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }
4753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4754 (eval $ac_compiler -v </dev/null >&5) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }
4758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4759 (eval $ac_compiler -V </dev/null >&5) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }
4763
4764 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4765 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4766 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775
4776 int
4777 main ()
4778 {
4779 #ifndef __GNUC__
4780 choke me
4781 #endif
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_cxx_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_compiler_gnu=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 ac_compiler_gnu=no
4815 fi
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4818
4819 fi
4820 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4821 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4822 GXX=`test $ac_compiler_gnu = yes && echo yes`
4823 ac_test_CXXFLAGS=${CXXFLAGS+set}
4824 ac_save_CXXFLAGS=$CXXFLAGS
4825 CXXFLAGS="-g"
4826 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4827 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cxx_g+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_cxx_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_prog_cxx_g=yes
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ac_cv_prog_cxx_g=no
4874 fi
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4879 if test "$ac_test_CXXFLAGS" = set; then
4880 CXXFLAGS=$ac_save_CXXFLAGS
4881 elif test $ac_cv_prog_cxx_g = yes; then
4882 if test "$GXX" = yes; then
4883 CXXFLAGS="-g -O2"
4884 else
4885 CXXFLAGS="-g"
4886 fi
4887 else
4888 if test "$GXX" = yes; then
4889 CXXFLAGS="-O2"
4890 else
4891 CXXFLAGS=
4892 fi
4893 fi
4894 for ac_declaration in \
4895 '' \
4896 'extern "C" void std::exit (int) throw (); using std::exit;' \
4897 'extern "C" void std::exit (int); using std::exit;' \
4898 'extern "C" void exit (int) throw ();' \
4899 'extern "C" void exit (int);' \
4900 'void exit (int);'
4901 do
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 $ac_declaration
4909 #include <stdlib.h>
4910 int
4911 main ()
4912 {
4913 exit (42);
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_cxx_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 :
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 continue
4946 fi
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_declaration
4955 int
4956 main ()
4957 {
4958 exit (42);
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -z "$ac_cxx_werror_flag"
4973 || test ! -s conftest.err'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 break
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 fi
4991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4992 done
4993 rm -f conftest*
4994 if test -n "$ac_declaration"; then
4995 echo '#ifdef __cplusplus' >>confdefs.h
4996 echo $ac_declaration >>confdefs.h
4997 echo '#endif' >>confdefs.h
4998 fi
4999
5000 ac_ext=cc
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005
5006 depcc="$CXX" am_compiler_list=
5007
5008 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5010 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014 # We make a subdir and do the tests there. Otherwise we can end up
5015 # making bogus files that we don't know about and never remove. For
5016 # instance it was reported that on HP-UX the gcc test will end up
5017 # making a dummy file named `D' -- because `-MD' means `put the output
5018 # in D'.
5019 mkdir conftest.dir
5020 # Copy depcomp to subdir because otherwise we won't find it if we're
5021 # using a relative directory.
5022 cp "$am_depcomp" conftest.dir
5023 cd conftest.dir
5024 # We will build objects and dependencies in a subdirectory because
5025 # it helps to detect inapplicable dependency modes. For instance
5026 # both Tru64's cc and ICC support -MD to output dependencies as a
5027 # side effect of compilation, but ICC will put the dependencies in
5028 # the current directory while Tru64 will put them in the object
5029 # directory.
5030 mkdir sub
5031
5032 am_cv_CXX_dependencies_compiler_type=none
5033 if test "$am_compiler_list" = ""; then
5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035 fi
5036 for depmode in $am_compiler_list; do
5037 # Setup a source with many dependencies, because some compilers
5038 # like to wrap large dependency lists on column 80 (with \), and
5039 # we should not choose a depcomp mode which is confused by this.
5040 #
5041 # We need to recreate these files for each test, as the compiler may
5042 # overwrite some of them when testing with obscure command lines.
5043 # This happens at least with the AIX C compiler.
5044 : > sub/conftest.c
5045 for i in 1 2 3 4 5 6; do
5046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5048 # Solaris 8's {/usr,}/bin/sh.
5049 touch sub/conftst$i.h
5050 done
5051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5052
5053 case $depmode in
5054 nosideeffect)
5055 # after this tag, mechanisms are not by side-effect, so they'll
5056 # only be used when explicitly requested
5057 if test "x$enable_dependency_tracking" = xyes; then
5058 continue
5059 else
5060 break
5061 fi
5062 ;;
5063 none) break ;;
5064 esac
5065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066 # mode. It turns out that the SunPro C++ compiler does not properly
5067 # handle `-M -o', and we need to detect this.
5068 if depmode=$depmode \
5069 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5072 >/dev/null 2>conftest.err &&
5073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5074 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5076 # icc doesn't choke on unknown options, it will just issue warnings
5077 # or remarks (even with -Werror). So we grep stderr for any message
5078 # that says an option was ignored or not supported.
5079 # When given -MP, icc 7.0 and 7.1 complain thusly:
5080 # icc: Command line warning: ignoring option '-M'; no argument required
5081 # The diagnosis changed in icc 8.0:
5082 # icc: Command line remark: option '-MP' not supported
5083 if (grep 'ignoring option' conftest.err ||
5084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5085 am_cv_CXX_dependencies_compiler_type=$depmode
5086 break
5087 fi
5088 fi
5089 done
5090
5091 cd ..
5092 rm -rf conftest.dir
5093 else
5094 am_cv_CXX_dependencies_compiler_type=none
5095 fi
5096
5097 fi
5098 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5099 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5100 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5101
5102
5103
5104 if
5105 test "x$enable_dependency_tracking" != xno \
5106 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5107 am__fastdepCXX_TRUE=
5108 am__fastdepCXX_FALSE='#'
5109 else
5110 am__fastdepCXX_TRUE='#'
5111 am__fastdepCXX_FALSE=
5112 fi
5113
5114
5115
5116
5117 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5118 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5119 (test "X$CXX" != "Xg++"))) ; then
5120 ac_ext=cc
5121 ac_cpp='$CXXCPP $CPPFLAGS'
5122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5126 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5127 if test -z "$CXXCPP"; then
5128 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 # Double quotes because CXXCPP needs to be expanded
5132 for CXXCPP in "$CXX -E" "/lib/cpp"
5133 do
5134 ac_preproc_ok=false
5135 for ac_cxx_preproc_warn_flag in '' yes
5136 do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } >/dev/null; then
5164 if test -s conftest.err; then
5165 ac_cpp_err=$ac_cxx_preproc_warn_flag
5166 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5167 else
5168 ac_cpp_err=
5169 fi
5170 else
5171 ac_cpp_err=yes
5172 fi
5173 if test -z "$ac_cpp_err"; then
5174 :
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 # Broken: fails on valid input.
5180 continue
5181 fi
5182 rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether non-existent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_cxx_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5205 else
5206 ac_cpp_err=
5207 fi
5208 else
5209 ac_cpp_err=yes
5210 fi
5211 if test -z "$ac_cpp_err"; then
5212 # Broken: success on invalid input.
5213 continue
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5228 break
5229 fi
5230
5231 done
5232 ac_cv_prog_CXXCPP=$CXXCPP
5233
5234 fi
5235 CXXCPP=$ac_cv_prog_CXXCPP
5236 else
5237 ac_cv_prog_CXXCPP=$CXXCPP
5238 fi
5239 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5240 echo "${ECHO_T}$CXXCPP" >&6
5241 ac_preproc_ok=false
5242 for ac_cxx_preproc_warn_flag in '' yes
5243 do
5244 # Use a header file that comes with gcc, so configuring glibc
5245 # with a fresh cross-compiler works.
5246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 # <limits.h> exists even on freestanding compilers.
5248 # On the NeXT, cc -E runs the code through the compiler's parser,
5249 # not just through cpp. "Syntax error" is here to catch this case.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261 Syntax error
5262 _ACEOF
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_cxx_preproc_warn_flag
5273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5274 else
5275 ac_cpp_err=
5276 fi
5277 else
5278 ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281 :
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 # Broken: fails on valid input.
5287 continue
5288 fi
5289 rm -f conftest.err conftest.$ac_ext
5290
5291 # OK, works on sane cases. Now check whether non-existent headers
5292 # can be detected and how.
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ac_nonexistent.h>
5300 _ACEOF
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_cxx_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5312 else
5313 ac_cpp_err=
5314 fi
5315 else
5316 ac_cpp_err=yes
5317 fi
5318 if test -z "$ac_cpp_err"; then
5319 # Broken: success on invalid input.
5320 continue
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 # Passes both tests.
5326 ac_preproc_ok=:
5327 break
5328 fi
5329 rm -f conftest.err conftest.$ac_ext
5330
5331 done
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5335 :
5336 else
5337 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5342 fi
5343
5344 ac_ext=cc
5345 ac_cpp='$CXXCPP $CPPFLAGS'
5346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5349
5350 fi
5351
5352
5353 ac_ext=f
5354 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5355 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5357 if test -n "$ac_tool_prefix"; then
5358 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5359 do
5360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5362 echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364 if test "${ac_cv_prog_F77+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 if test -n "$F77"; then
5368 ac_cv_prog_F77="$F77" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383
5384 fi
5385 fi
5386 F77=$ac_cv_prog_F77
5387 if test -n "$F77"; then
5388 echo "$as_me:$LINENO: result: $F77" >&5
5389 echo "${ECHO_T}$F77" >&6
5390 else
5391 echo "$as_me:$LINENO: result: no" >&5
5392 echo "${ECHO_T}no" >&6
5393 fi
5394
5395 test -n "$F77" && break
5396 done
5397 fi
5398 if test -z "$F77"; then
5399 ac_ct_F77=$F77
5400 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5401 do
5402 # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 if test -n "$ac_ct_F77"; then
5410 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_F77="$ac_prog"
5420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425
5426 fi
5427 fi
5428 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5429 if test -n "$ac_ct_F77"; then
5430 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5431 echo "${ECHO_T}$ac_ct_F77" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6
5435 fi
5436
5437 test -n "$ac_ct_F77" && break
5438 done
5439
5440 F77=$ac_ct_F77
5441 fi
5442
5443
5444 # Provide some information about the compiler.
5445 echo "$as_me:5445:" \
5446 "checking for Fortran 77 compiler version" >&5
5447 ac_compiler=`set X $ac_compile; echo $2`
5448 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5449 (eval $ac_compiler --version </dev/null >&5) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5454 (eval $ac_compiler -v </dev/null >&5) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }
5458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5459 (eval $ac_compiler -V </dev/null >&5) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
5463 rm -f a.out
5464
5465 # If we don't use `.F' as extension, the preprocessor is not run on the
5466 # input file. (Note that this only needs to work for GNU compilers.)
5467 ac_save_ext=$ac_ext
5468 ac_ext=F
5469 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5470 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5471 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 cat >conftest.$ac_ext <<_ACEOF
5475 program main
5476 #ifndef __GNUC__
5477 choke me
5478 #endif
5479
5480 end
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -z "$ac_f77_werror_flag"
5492 || test ! -s conftest.err'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; } &&
5498 { ac_try='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 (eval $ac_try) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 ac_compiler_gnu=yes
5505 else
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_compiler_gnu=no
5510 fi
5511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5513
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5516 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5517 ac_ext=$ac_save_ext
5518 ac_test_FFLAGS=${FFLAGS+set}
5519 ac_save_FFLAGS=$FFLAGS
5520 FFLAGS=
5521 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5522 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5523 if test "${ac_cv_prog_f77_g+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 FFLAGS=-g
5527 cat >conftest.$ac_ext <<_ACEOF
5528 program main
5529
5530 end
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534 (eval $ac_compile) 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_f77_werror_flag"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest.$ac_objext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_prog_f77_g=yes
5555 else
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 ac_cv_prog_f77_g=no
5560 fi
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562
5563 fi
5564 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5565 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5566 if test "$ac_test_FFLAGS" = set; then
5567 FFLAGS=$ac_save_FFLAGS
5568 elif test $ac_cv_prog_f77_g = yes; then
5569 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5570 FFLAGS="-g -O2"
5571 else
5572 FFLAGS="-g"
5573 fi
5574 else
5575 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5576 FFLAGS="-O2"
5577 else
5578 FFLAGS=
5579 fi
5580 fi
5581
5582 G77=`test $ac_compiler_gnu = yes && echo yes`
5583 ac_ext=c
5584 ac_cpp='$CPP $CPPFLAGS'
5585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5588
5589
5590
5591 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5592
5593 # find the maximum length of command line arguments
5594 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5595 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5596 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 i=0
5600 teststring="ABCD"
5601
5602 case $build_os in
5603 msdosdjgpp*)
5604 # On DJGPP, this test can blow up pretty badly due to problems in libc
5605 # (any single argument exceeding 2000 bytes causes a buffer overrun
5606 # during glob expansion). Even if it were fixed, the result of this
5607 # check would be larger than it should be.
5608 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5609 ;;
5610
5611 gnu*)
5612 # Under GNU Hurd, this test is not required because there is
5613 # no limit to the length of command line arguments.
5614 # Libtool will interpret -1 as no limit whatsoever
5615 lt_cv_sys_max_cmd_len=-1;
5616 ;;
5617
5618 cygwin* | mingw*)
5619 # On Win9x/ME, this test blows up -- it succeeds, but takes
5620 # about 5 minutes as the teststring grows exponentially.
5621 # Worse, since 9x/ME are not pre-emptively multitasking,
5622 # you end up with a "frozen" computer, even though with patience
5623 # the test eventually succeeds (with a max line length of 256k).
5624 # Instead, let's just punt: use the minimum linelength reported by
5625 # all of the supported platforms: 8192 (on NT/2K/XP).
5626 lt_cv_sys_max_cmd_len=8192;
5627 ;;
5628
5629 amigaos*)
5630 # On AmigaOS with pdksh, this test takes hours, literally.
5631 # So we just punt and use a minimum line length of 8192.
5632 lt_cv_sys_max_cmd_len=8192;
5633 ;;
5634
5635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5636 # This has been around since 386BSD, at least. Likely further.
5637 if test -x /sbin/sysctl; then
5638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5639 elif test -x /usr/sbin/sysctl; then
5640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5641 else
5642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5643 fi
5644 # And add a safety zone
5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5647 ;;
5648 osf*)
5649 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5650 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5651 # nice to cause kernel panics so lets avoid the loop below.
5652 # First set a reasonable default.
5653 lt_cv_sys_max_cmd_len=16384
5654 #
5655 if test -x /sbin/sysconfig; then
5656 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5657 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5658 esac
5659 fi
5660 ;;
5661 *)
5662 # If test is not a shell built-in, we'll probably end up computing a
5663 # maximum length that is only half of the actual maximum length, but
5664 # we can't tell.
5665 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5666 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5667 = "XX$teststring") >/dev/null 2>&1 &&
5668 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5669 lt_cv_sys_max_cmd_len=$new_result &&
5670 test $i != 17 # 1/2 MB should be enough
5671 do
5672 i=`expr $i + 1`
5673 teststring=$teststring$teststring
5674 done
5675 teststring=
5676 # Add a significant safety factor because C++ compilers can tack on massive
5677 # amounts of additional arguments before passing them to the linker.
5678 # It appears as though 1/2 is a usable value.
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5680 ;;
5681 esac
5682
5683 fi
5684
5685 if test -n $lt_cv_sys_max_cmd_len ; then
5686 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5687 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5688 else
5689 echo "$as_me:$LINENO: result: none" >&5
5690 echo "${ECHO_T}none" >&6
5691 fi
5692
5693
5694
5695
5696 # Check for command to grab the raw symbol name followed by C symbol from nm.
5697 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5698 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5699 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702
5703 # These are sane defaults that work on at least a few old systems.
5704 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5705
5706 # Character class describing NM global symbol codes.
5707 symcode='[BCDEGRST]'
5708
5709 # Regexp to match symbols that can be accessed directly from C.
5710 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5711
5712 # Transform an extracted symbol line into a proper C declaration
5713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5714
5715 # Transform an extracted symbol line into symbol name and symbol address
5716 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'"
5717
5718 # Define system-specific variables.
5719 case $host_os in
5720 aix*)
5721 symcode='[BCDT]'
5722 ;;
5723 cygwin* | mingw* | pw32*)
5724 symcode='[ABCDGISTW]'
5725 ;;
5726 hpux*) # Its linker distinguishes data from code symbols
5727 if test "$host_cpu" = ia64; then
5728 symcode='[ABCDEGRST]'
5729 fi
5730 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5731 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'"
5732 ;;
5733 linux*)
5734 if test "$host_cpu" = ia64; then
5735 symcode='[ABCDGIRSTW]'
5736 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5737 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'"
5738 fi
5739 ;;
5740 irix* | nonstopux*)
5741 symcode='[BCDEGRST]'
5742 ;;
5743 osf*)
5744 symcode='[BCDEGQRST]'
5745 ;;
5746 solaris* | sysv5*)
5747 symcode='[BDRT]'
5748 ;;
5749 sysv4)
5750 symcode='[DFNSTU]'
5751 ;;
5752 esac
5753
5754 # Handle CRLF in mingw tool chain
5755 opt_cr=
5756 case $build_os in
5757 mingw*)
5758 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5759 ;;
5760 esac
5761
5762 # If we're using GNU nm, then use its standard symbol codes.
5763 case `$NM -V 2>&1` in
5764 *GNU* | *'with BFD'*)
5765 symcode='[ABCDGIRSTW]' ;;
5766 esac
5767
5768 # Try without a prefix undercore, then with it.
5769 for ac_symprfx in "" "_"; do
5770
5771 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772 symxfrm="\\1 $ac_symprfx\\2 \\2"
5773
5774 # Write the raw and C identifiers.
5775 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5776
5777 # Check to see that the pipe works correctly.
5778 pipe_works=no
5779
5780 rm -f conftest*
5781 cat > conftest.$ac_ext <<EOF
5782 #ifdef __cplusplus
5783 extern "C" {
5784 #endif
5785 char nm_test_var;
5786 void nm_test_func(){}
5787 #ifdef __cplusplus
5788 }
5789 #endif
5790 int main(){nm_test_var='a';nm_test_func();return(0);}
5791 EOF
5792
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; then
5798 # Now try to grab the symbols.
5799 nlist=conftest.nm
5800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && test -s "$nlist"; then
5805 # Try sorting and uniquifying the output.
5806 if sort "$nlist" | uniq > "$nlist"T; then
5807 mv -f "$nlist"T "$nlist"
5808 else
5809 rm -f "$nlist"T
5810 fi
5811
5812 # Make sure that we snagged all the symbols we need.
5813 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5814 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5815 cat <<EOF > conftest.$ac_ext
5816 #ifdef __cplusplus
5817 extern "C" {
5818 #endif
5819
5820 EOF
5821 # Now generate the symbol file.
5822 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5823
5824 cat <<EOF >> conftest.$ac_ext
5825 #if defined (__STDC__) && __STDC__
5826 # define lt_ptr_t void *
5827 #else
5828 # define lt_ptr_t char *
5829 # define const
5830 #endif
5831
5832 /* The mapping between symbol names and symbols. */
5833 const struct {
5834 const char *name;
5835 lt_ptr_t address;
5836 }
5837 lt_preloaded_symbols[] =
5838 {
5839 EOF
5840 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5841 cat <<\EOF >> conftest.$ac_ext
5842 {0, (lt_ptr_t) 0}
5843 };
5844
5845 #ifdef __cplusplus
5846 }
5847 #endif
5848 EOF
5849 # Now try linking the two files.
5850 mv conftest.$ac_objext conftstm.$ac_objext
5851 lt_save_LIBS="$LIBS"
5852 lt_save_CFLAGS="$CFLAGS"
5853 LIBS="conftstm.$ac_objext"
5854 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5860 pipe_works=yes
5861 fi
5862 LIBS="$lt_save_LIBS"
5863 CFLAGS="$lt_save_CFLAGS"
5864 else
5865 echo "cannot find nm_test_func in $nlist" >&5
5866 fi
5867 else
5868 echo "cannot find nm_test_var in $nlist" >&5
5869 fi
5870 else
5871 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5872 fi
5873 else
5874 echo "$progname: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5876 fi
5877 rm -f conftest* conftst*
5878
5879 # Do not use the global_symbol_pipe unless it works.
5880 if test "$pipe_works" = yes; then
5881 break
5882 else
5883 lt_cv_sys_global_symbol_pipe=
5884 fi
5885 done
5886
5887 fi
5888
5889 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5890 lt_cv_sys_global_symbol_to_cdecl=
5891 fi
5892 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5893 echo "$as_me:$LINENO: result: failed" >&5
5894 echo "${ECHO_T}failed" >&6
5895 else
5896 echo "$as_me:$LINENO: result: ok" >&5
5897 echo "${ECHO_T}ok" >&6
5898 fi
5899
5900 echo "$as_me:$LINENO: checking for objdir" >&5
5901 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5902 if test "${lt_cv_objdir+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 rm -f .libs 2>/dev/null
5906 mkdir .libs 2>/dev/null
5907 if test -d .libs; then
5908 lt_cv_objdir=.libs
5909 else
5910 # MS-DOS does not allow filenames that begin with a dot.
5911 lt_cv_objdir=_libs
5912 fi
5913 rmdir .libs 2>/dev/null
5914 fi
5915 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5916 echo "${ECHO_T}$lt_cv_objdir" >&6
5917 objdir=$lt_cv_objdir
5918
5919
5920
5921
5922
5923 case $host_os in
5924 aix3*)
5925 # AIX sometimes has problems with the GCC collect2 program. For some
5926 # reason, if we set the COLLECT_NAMES environment variable, the problems
5927 # vanish in a puff of smoke.
5928 if test "X${COLLECT_NAMES+set}" != Xset; then
5929 COLLECT_NAMES=
5930 export COLLECT_NAMES
5931 fi
5932 ;;
5933 esac
5934
5935 # Sed substitution that helps us do robust quoting. It backslashifies
5936 # metacharacters that are still active within double-quoted strings.
5937 Xsed='sed -e 1s/^X//'
5938 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5939
5940 # Same as above, but do not quote variable references.
5941 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5942
5943 # Sed substitution to delay expansion of an escaped shell variable in a
5944 # double_quote_subst'ed string.
5945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5946
5947 # Sed substitution to avoid accidental globbing in evaled expressions
5948 no_glob_subst='s/\*/\\\*/g'
5949
5950 # Constants:
5951 rm="rm -f"
5952
5953 # Global variables:
5954 default_ofile=libtool
5955 can_build_shared=yes
5956
5957 # All known linkers require a `.a' archive for static linking (except MSVC,
5958 # which needs '.lib').
5959 libext=a
5960 ltmain="$ac_aux_dir/ltmain.sh"
5961 ofile="$default_ofile"
5962 with_gnu_ld="$lt_cv_prog_gnu_ld"
5963
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}ar; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_AR+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 if test -n "$AR"; then
5973 ac_cv_prog_AR="$AR" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_AR="${ac_tool_prefix}ar"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 break 2
5985 fi
5986 done
5987 done
5988
5989 fi
5990 fi
5991 AR=$ac_cv_prog_AR
5992 if test -n "$AR"; then
5993 echo "$as_me:$LINENO: result: $AR" >&5
5994 echo "${ECHO_T}$AR" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
5998 fi
5999
6000 fi
6001 if test -z "$ac_cv_prog_AR"; then
6002 ac_ct_AR=$AR
6003 # Extract the first word of "ar", so it can be a program name with args.
6004 set dummy ar; ac_word=$2
6005 echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6007 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 if test -n "$ac_ct_AR"; then
6011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_ac_ct_AR="ar"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026
6027 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6028 fi
6029 fi
6030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031 if test -n "$ac_ct_AR"; then
6032 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6033 echo "${ECHO_T}$ac_ct_AR" >&6
6034 else
6035 echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6
6037 fi
6038
6039 AR=$ac_ct_AR
6040 else
6041 AR="$ac_cv_prog_AR"
6042 fi
6043
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_RANLIB+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 if test -n "$RANLIB"; then
6053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068
6069 fi
6070 fi
6071 RANLIB=$ac_cv_prog_RANLIB
6072 if test -n "$RANLIB"; then
6073 echo "$as_me:$LINENO: result: $RANLIB" >&5
6074 echo "${ECHO_T}$RANLIB" >&6
6075 else
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6078 fi
6079
6080 fi
6081 if test -z "$ac_cv_prog_RANLIB"; then
6082 ac_ct_RANLIB=$RANLIB
6083 # Extract the first word of "ranlib", so it can be a program name with args.
6084 set dummy ranlib; ac_word=$2
6085 echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 if test -n "$ac_ct_RANLIB"; then
6091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_RANLIB="ranlib"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106
6107 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6108 fi
6109 fi
6110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6111 if test -n "$ac_ct_RANLIB"; then
6112 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6113 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6114 else
6115 echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6
6117 fi
6118
6119 RANLIB=$ac_ct_RANLIB
6120 else
6121 RANLIB="$ac_cv_prog_RANLIB"
6122 fi
6123
6124 if test -n "$ac_tool_prefix"; then
6125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}strip; ac_word=$2
6127 echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6129 if test "${ac_cv_prog_STRIP+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 if test -n "$STRIP"; then
6133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148
6149 fi
6150 fi
6151 STRIP=$ac_cv_prog_STRIP
6152 if test -n "$STRIP"; then
6153 echo "$as_me:$LINENO: result: $STRIP" >&5
6154 echo "${ECHO_T}$STRIP" >&6
6155 else
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6158 fi
6159
6160 fi
6161 if test -z "$ac_cv_prog_STRIP"; then
6162 ac_ct_STRIP=$STRIP
6163 # Extract the first word of "strip", so it can be a program name with args.
6164 set dummy strip; ac_word=$2
6165 echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6167 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 if test -n "$ac_ct_STRIP"; then
6171 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_STRIP="strip"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186
6187 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6188 fi
6189 fi
6190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6191 if test -n "$ac_ct_STRIP"; then
6192 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6193 echo "${ECHO_T}$ac_ct_STRIP" >&6
6194 else
6195 echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6
6197 fi
6198
6199 STRIP=$ac_ct_STRIP
6200 else
6201 STRIP="$ac_cv_prog_STRIP"
6202 fi
6203
6204
6205 old_CC="$CC"
6206 old_CFLAGS="$CFLAGS"
6207
6208 # Set sane defaults for various variables
6209 test -z "$AR" && AR=ar
6210 test -z "$AR_FLAGS" && AR_FLAGS=cru
6211 test -z "$AS" && AS=as
6212 test -z "$CC" && CC=cc
6213 test -z "$LTCC" && LTCC=$CC
6214 test -z "$DLLTOOL" && DLLTOOL=dlltool
6215 test -z "$LD" && LD=ld
6216 test -z "$LN_S" && LN_S="ln -s"
6217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6218 test -z "$NM" && NM=nm
6219 test -z "$SED" && SED=sed
6220 test -z "$OBJDUMP" && OBJDUMP=objdump
6221 test -z "$RANLIB" && RANLIB=:
6222 test -z "$STRIP" && STRIP=:
6223 test -z "$ac_objext" && ac_objext=o
6224
6225 # Determine commands to create old-style static archives.
6226 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6227 old_postinstall_cmds='chmod 644 $oldlib'
6228 old_postuninstall_cmds=
6229
6230 if test -n "$RANLIB"; then
6231 case $host_os in
6232 openbsd*)
6233 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6234 ;;
6235 *)
6236 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6237 ;;
6238 esac
6239 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6240 fi
6241
6242 for cc_temp in $compiler""; do
6243 case $cc_temp in
6244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6246 \-*) ;;
6247 *) break;;
6248 esac
6249 done
6250 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6251
6252
6253 # Only perform the check for file, if the check method requires it
6254 case $deplibs_check_method in
6255 file_magic*)
6256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6257 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6258 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6259 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 case $MAGIC_CMD in
6263 [\\/*] | ?:[\\/]*)
6264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 lt_save_MAGIC_CMD="$MAGIC_CMD"
6268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6270 for ac_dir in $ac_dummy; do
6271 IFS="$lt_save_ifs"
6272 test -z "$ac_dir" && ac_dir=.
6273 if test -f $ac_dir/${ac_tool_prefix}file; then
6274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6275 if test -n "$file_magic_test_file"; then
6276 case $deplibs_check_method in
6277 "file_magic "*)
6278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6281 $EGREP "$file_magic_regex" > /dev/null; then
6282 :
6283 else
6284 cat <<EOF 1>&2
6285
6286 *** Warning: the command libtool uses to detect shared libraries,
6287 *** $file_magic_cmd, produces output that libtool cannot recognize.
6288 *** The result is that libtool may fail to recognize shared libraries
6289 *** as such. This will affect the creation of libtool libraries that
6290 *** depend on shared libraries, but programs linked with such libtool
6291 *** libraries will work regardless of this problem. Nevertheless, you
6292 *** may want to report the problem to your system manager and/or to
6293 *** bug-libtool@gnu.org
6294
6295 EOF
6296 fi ;;
6297 esac
6298 fi
6299 break
6300 fi
6301 done
6302 IFS="$lt_save_ifs"
6303 MAGIC_CMD="$lt_save_MAGIC_CMD"
6304 ;;
6305 esac
6306 fi
6307
6308 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6309 if test -n "$MAGIC_CMD"; then
6310 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6311 echo "${ECHO_T}$MAGIC_CMD" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6
6315 fi
6316
6317 if test -z "$lt_cv_path_MAGIC_CMD"; then
6318 if test -n "$ac_tool_prefix"; then
6319 echo "$as_me:$LINENO: checking for file" >&5
6320 echo $ECHO_N "checking for file... $ECHO_C" >&6
6321 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 case $MAGIC_CMD in
6325 [\\/*] | ?:[\\/]*)
6326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6327 ;;
6328 *)
6329 lt_save_MAGIC_CMD="$MAGIC_CMD"
6330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6332 for ac_dir in $ac_dummy; do
6333 IFS="$lt_save_ifs"
6334 test -z "$ac_dir" && ac_dir=.
6335 if test -f $ac_dir/file; then
6336 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6337 if test -n "$file_magic_test_file"; then
6338 case $deplibs_check_method in
6339 "file_magic "*)
6340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6343 $EGREP "$file_magic_regex" > /dev/null; then
6344 :
6345 else
6346 cat <<EOF 1>&2
6347
6348 *** Warning: the command libtool uses to detect shared libraries,
6349 *** $file_magic_cmd, produces output that libtool cannot recognize.
6350 *** The result is that libtool may fail to recognize shared libraries
6351 *** as such. This will affect the creation of libtool libraries that
6352 *** depend on shared libraries, but programs linked with such libtool
6353 *** libraries will work regardless of this problem. Nevertheless, you
6354 *** may want to report the problem to your system manager and/or to
6355 *** bug-libtool@gnu.org
6356
6357 EOF
6358 fi ;;
6359 esac
6360 fi
6361 break
6362 fi
6363 done
6364 IFS="$lt_save_ifs"
6365 MAGIC_CMD="$lt_save_MAGIC_CMD"
6366 ;;
6367 esac
6368 fi
6369
6370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6371 if test -n "$MAGIC_CMD"; then
6372 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6373 echo "${ECHO_T}$MAGIC_CMD" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6377 fi
6378
6379 else
6380 MAGIC_CMD=:
6381 fi
6382 fi
6383
6384 fi
6385 ;;
6386 esac
6387
6388 enable_dlopen=no
6389 enable_win32_dll=no
6390
6391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6392 if test "${enable_libtool_lock+set}" = set; then
6393 enableval="$enable_libtool_lock"
6394
6395 fi;
6396 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6397
6398
6399 # Check whether --with-pic or --without-pic was given.
6400 if test "${with_pic+set}" = set; then
6401 withval="$with_pic"
6402 pic_mode="$withval"
6403 else
6404 pic_mode=default
6405 fi;
6406 test -z "$pic_mode" && pic_mode=default
6407
6408 # Use C for the default configuration in the libtool script
6409 tagname=
6410 lt_save_CC="$CC"
6411 ac_ext=c
6412 ac_cpp='$CPP $CPPFLAGS'
6413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417
6418 # Source file extension for C test sources.
6419 ac_ext=c
6420
6421 # Object file extension for compiled C test sources.
6422 objext=o
6423 objext=$objext
6424
6425 # Code to be used in simple compile tests
6426 lt_simple_compile_test_code="int some_variable = 0;\n"
6427
6428 # Code to be used in simple link tests
6429 lt_simple_link_test_code='int main(){return(0);}\n'
6430
6431
6432 # If no C compiler was specified, use CC.
6433 LTCC=${LTCC-"$CC"}
6434
6435 # Allow CC to be a program name with arguments.
6436 compiler=$CC
6437
6438
6439 # save warnings/boilerplate of simple test code
6440 ac_outfile=conftest.$ac_objext
6441 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6443 _lt_compiler_boilerplate=`cat conftest.err`
6444 $rm conftest*
6445
6446 ac_outfile=conftest.$ac_objext
6447 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6449 _lt_linker_boilerplate=`cat conftest.err`
6450 $rm conftest*
6451
6452
6453 #
6454 # Check for any special shared library compilation flags.
6455 #
6456 lt_prog_cc_shlib=
6457 if test "$GCC" = no; then
6458 case $host_os in
6459 sco3.2v5*)
6460 lt_prog_cc_shlib='-belf'
6461 ;;
6462 esac
6463 fi
6464 if test -n "$lt_prog_cc_shlib"; then
6465 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6466 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6467 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6468 else
6469 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6470 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6471 lt_cv_prog_cc_can_build_shared=no
6472 fi
6473 fi
6474
6475
6476 #
6477 # Check to make sure the static flag actually works.
6478 #
6479 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6480 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6481 if test "${lt_prog_compiler_static_works+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 lt_prog_compiler_static_works=no
6485 save_LDFLAGS="$LDFLAGS"
6486 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6487 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6489 # The linker can only warn and ignore the option if not recognized
6490 # So say no if there are warnings
6491 if test -s conftest.err; then
6492 # Append any errors to the config.log.
6493 cat conftest.err 1>&5
6494 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6495 $SED '/^$/d' conftest.err >conftest.er2
6496 if diff conftest.exp conftest.er2 >/dev/null; then
6497 lt_prog_compiler_static_works=yes
6498 fi
6499 else
6500 lt_prog_compiler_static_works=yes
6501 fi
6502 fi
6503 $rm conftest*
6504 LDFLAGS="$save_LDFLAGS"
6505
6506 fi
6507 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6508 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6509
6510 if test x"$lt_prog_compiler_static_works" = xyes; then
6511 :
6512 else
6513 lt_prog_compiler_static=
6514 fi
6515
6516
6517
6518
6519 lt_prog_compiler_no_builtin_flag=
6520
6521 if test "$GCC" = yes; then
6522 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6523
6524
6525 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6526 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6527 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 lt_cv_prog_compiler_rtti_exceptions=no
6531 ac_outfile=conftest.$ac_objext
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533 lt_compiler_flag="-fno-rtti -fno-exceptions"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 # The option is referenced via a variable to avoid confusing sed.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>conftest.err)
6545 ac_status=$?
6546 cat conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s "$ac_outfile"; then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings other than the usual output.
6551 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6552 $SED '/^$/d' conftest.err >conftest.er2
6553 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6554 lt_cv_prog_compiler_rtti_exceptions=yes
6555 fi
6556 fi
6557 $rm conftest*
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6561 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6562
6563 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6564 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6565 else
6566 :
6567 fi
6568
6569 fi
6570
6571 lt_prog_compiler_wl=
6572 lt_prog_compiler_pic=
6573 lt_prog_compiler_static=
6574
6575 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6576 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6577
6578 if test "$GCC" = yes; then
6579 lt_prog_compiler_wl='-Wl,'
6580 lt_prog_compiler_static='-static'
6581
6582 case $host_os in
6583 aix*)
6584 # All AIX code is PIC.
6585 if test "$host_cpu" = ia64; then
6586 # AIX 5 now supports IA64 processor
6587 lt_prog_compiler_static='-Bstatic'
6588 fi
6589 ;;
6590
6591 amigaos*)
6592 # FIXME: we need at least 68020 code to build shared libraries, but
6593 # adding the `-m68020' flag to GCC prevents building anything better,
6594 # like `-m68040'.
6595 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6596 ;;
6597
6598 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6599 # PIC is the default for these OSes.
6600 ;;
6601
6602 mingw* | pw32* | os2*)
6603 # This hack is so that the source file can tell whether it is being
6604 # built for inclusion in a dll (and should export symbols for example).
6605 lt_prog_compiler_pic='-DDLL_EXPORT'
6606 ;;
6607
6608 darwin* | rhapsody*)
6609 # PIC is the default on this platform
6610 # Common symbols not allowed in MH_DYLIB files
6611 lt_prog_compiler_pic='-fno-common'
6612 ;;
6613
6614 msdosdjgpp*)
6615 # Just because we use GCC doesn't mean we suddenly get shared libraries
6616 # on systems that don't support them.
6617 lt_prog_compiler_can_build_shared=no
6618 enable_shared=no
6619 ;;
6620
6621 sysv4*MP*)
6622 if test -d /usr/nec; then
6623 lt_prog_compiler_pic=-Kconform_pic
6624 fi
6625 ;;
6626
6627 hpux*)
6628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6629 # not for PA HP-UX.
6630 case $host_cpu in
6631 hppa*64*|ia64*)
6632 # +Z the default
6633 ;;
6634 *)
6635 lt_prog_compiler_pic='-fPIC'
6636 ;;
6637 esac
6638 ;;
6639
6640 *)
6641 lt_prog_compiler_pic='-fPIC'
6642 ;;
6643 esac
6644 else
6645 # PORTME Check for flag to pass linker flags through the system compiler.
6646 case $host_os in
6647 aix*)
6648 lt_prog_compiler_wl='-Wl,'
6649 if test "$host_cpu" = ia64; then
6650 # AIX 5 now supports IA64 processor
6651 lt_prog_compiler_static='-Bstatic'
6652 else
6653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6654 fi
6655 ;;
6656 darwin*)
6657 # PIC is the default on this platform
6658 # Common symbols not allowed in MH_DYLIB files
6659 case $cc_basename in
6660 xlc*)
6661 lt_prog_compiler_pic='-qnocommon'
6662 lt_prog_compiler_wl='-Wl,'
6663 ;;
6664 esac
6665 ;;
6666
6667 mingw* | pw32* | os2*)
6668 # This hack is so that the source file can tell whether it is being
6669 # built for inclusion in a dll (and should export symbols for example).
6670 lt_prog_compiler_pic='-DDLL_EXPORT'
6671 ;;
6672
6673 hpux9* | hpux10* | hpux11*)
6674 lt_prog_compiler_wl='-Wl,'
6675 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6676 # not for PA HP-UX.
6677 case $host_cpu in
6678 hppa*64*|ia64*)
6679 # +Z the default
6680 ;;
6681 *)
6682 lt_prog_compiler_pic='+Z'
6683 ;;
6684 esac
6685 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6686 lt_prog_compiler_static='${wl}-a ${wl}archive'
6687 ;;
6688
6689 irix5* | irix6* | nonstopux*)
6690 lt_prog_compiler_wl='-Wl,'
6691 # PIC (with -KPIC) is the default.
6692 lt_prog_compiler_static='-non_shared'
6693 ;;
6694
6695 newsos6)
6696 lt_prog_compiler_pic='-KPIC'
6697 lt_prog_compiler_static='-Bstatic'
6698 ;;
6699
6700 linux*)
6701 case $cc_basename in
6702 icc* | ecc*)
6703 lt_prog_compiler_wl='-Wl,'
6704 lt_prog_compiler_pic='-KPIC'
6705 lt_prog_compiler_static='-static'
6706 ;;
6707 pgcc* | pgf77* | pgf90* | pgf95*)
6708 # Portland Group compilers (*not* the Pentium gcc compiler,
6709 # which looks to be a dead project)
6710 lt_prog_compiler_wl='-Wl,'
6711 lt_prog_compiler_pic='-fpic'
6712 lt_prog_compiler_static='-Bstatic'
6713 ;;
6714 ccc*)
6715 lt_prog_compiler_wl='-Wl,'
6716 # All Alpha code is PIC.
6717 lt_prog_compiler_static='-non_shared'
6718 ;;
6719 esac
6720 ;;
6721
6722 osf3* | osf4* | osf5*)
6723 lt_prog_compiler_wl='-Wl,'
6724 # All OSF/1 code is PIC.
6725 lt_prog_compiler_static='-non_shared'
6726 ;;
6727
6728 sco3.2v5*)
6729 lt_prog_compiler_pic='-Kpic'
6730 lt_prog_compiler_static='-dn'
6731 ;;
6732
6733 solaris*)
6734 lt_prog_compiler_pic='-KPIC'
6735 lt_prog_compiler_static='-Bstatic'
6736 case $cc_basename in
6737 f77* | f90* | f95*)
6738 lt_prog_compiler_wl='-Qoption ld ';;
6739 *)
6740 lt_prog_compiler_wl='-Wl,';;
6741 esac
6742 ;;
6743
6744 sunos4*)
6745 lt_prog_compiler_wl='-Qoption ld '
6746 lt_prog_compiler_pic='-PIC'
6747 lt_prog_compiler_static='-Bstatic'
6748 ;;
6749
6750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6751 lt_prog_compiler_wl='-Wl,'
6752 lt_prog_compiler_pic='-KPIC'
6753 lt_prog_compiler_static='-Bstatic'
6754 ;;
6755
6756 sysv4*MP*)
6757 if test -d /usr/nec ;then
6758 lt_prog_compiler_pic='-Kconform_pic'
6759 lt_prog_compiler_static='-Bstatic'
6760 fi
6761 ;;
6762
6763 unicos*)
6764 lt_prog_compiler_wl='-Wl,'
6765 lt_prog_compiler_can_build_shared=no
6766 ;;
6767
6768 uts4*)
6769 lt_prog_compiler_pic='-pic'
6770 lt_prog_compiler_static='-Bstatic'
6771 ;;
6772
6773 *)
6774 lt_prog_compiler_can_build_shared=no
6775 ;;
6776 esac
6777 fi
6778
6779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6780 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6781
6782 #
6783 # Check to make sure the PIC flag actually works.
6784 #
6785 if test -n "$lt_prog_compiler_pic"; then
6786
6787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6789 if test "${lt_prog_compiler_pic_works+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 lt_prog_compiler_pic_works=no
6793 ac_outfile=conftest.$ac_objext
6794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6796 # Insert the option either (1) after the last *FLAGS variable, or
6797 # (2) before a word containing "conftest.", or (3) at the end.
6798 # Note that $ac_compile itself does not contain backslashes and begins
6799 # with a dollar sign (not a hyphen), so the echo should work correctly.
6800 # The option is referenced via a variable to avoid confusing sed.
6801 lt_compile=`echo "$ac_compile" | $SED \
6802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6804 -e 's:$: $lt_compiler_flag:'`
6805 (eval echo "\"\$as_me:6805: $lt_compile\"" >&5)
6806 (eval "$lt_compile" 2>conftest.err)
6807 ac_status=$?
6808 cat conftest.err >&5
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 if (exit $ac_status) && test -s "$ac_outfile"; then
6811 # The compiler can only warn and ignore the option if not recognized
6812 # So say no if there are warnings other than the usual output.
6813 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6814 $SED '/^$/d' conftest.err >conftest.er2
6815 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6816 lt_prog_compiler_pic_works=yes
6817 fi
6818 fi
6819 $rm conftest*
6820
6821 fi
6822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6823 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6824
6825 if test x"$lt_prog_compiler_pic_works" = xyes; then
6826 case $lt_prog_compiler_pic in
6827 "" | " "*) ;;
6828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6829 esac
6830 else
6831 lt_prog_compiler_pic=
6832 lt_prog_compiler_can_build_shared=no
6833 fi
6834
6835 fi
6836 case $host_os in
6837 # For platforms which do not support PIC, -DPIC is meaningless:
6838 *djgpp*)
6839 lt_prog_compiler_pic=
6840 ;;
6841 *)
6842 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6843 ;;
6844 esac
6845
6846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6848 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 lt_cv_prog_compiler_c_o=no
6852 $rm -r conftest 2>/dev/null
6853 mkdir conftest
6854 cd conftest
6855 mkdir out
6856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6857
6858 lt_compiler_flag="-o out/conftest2.$ac_objext"
6859 # Insert the option either (1) after the last *FLAGS variable, or
6860 # (2) before a word containing "conftest.", or (3) at the end.
6861 # Note that $ac_compile itself does not contain backslashes and begins
6862 # with a dollar sign (not a hyphen), so the echo should work correctly.
6863 lt_compile=`echo "$ac_compile" | $SED \
6864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866 -e 's:$: $lt_compiler_flag:'`
6867 (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868 (eval "$lt_compile" 2>out/conftest.err)
6869 ac_status=$?
6870 cat out/conftest.err >&5
6871 echo "$as_me:6871: \$? = $ac_status" >&5
6872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6873 then
6874 # The compiler can only warn and ignore the option if not recognized
6875 # So say no if there are warnings
6876 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6877 $SED '/^$/d' out/conftest.err >out/conftest.er2
6878 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6879 lt_cv_prog_compiler_c_o=yes
6880 fi
6881 fi
6882 chmod u+w . 2>&5
6883 $rm conftest*
6884 # SGI C++ compiler will create directory out/ii_files/ for
6885 # template instantiation
6886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6887 $rm out/* && rmdir out
6888 cd ..
6889 rmdir conftest
6890 $rm conftest*
6891
6892 fi
6893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6895
6896
6897 hard_links="nottested"
6898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6899 # do not overwrite the value of need_locks provided by the user
6900 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6902 hard_links=yes
6903 $rm conftest*
6904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6905 touch conftest.a
6906 ln conftest.a conftest.b 2>&5 || hard_links=no
6907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6908 echo "$as_me:$LINENO: result: $hard_links" >&5
6909 echo "${ECHO_T}$hard_links" >&6
6910 if test "$hard_links" = no; then
6911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6913 need_locks=warn
6914 fi
6915 else
6916 need_locks=no
6917 fi
6918
6919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6921
6922 runpath_var=
6923 allow_undefined_flag=
6924 enable_shared_with_static_runtimes=no
6925 archive_cmds=
6926 archive_expsym_cmds=
6927 old_archive_From_new_cmds=
6928 old_archive_from_expsyms_cmds=
6929 export_dynamic_flag_spec=
6930 whole_archive_flag_spec=
6931 thread_safe_flag_spec=
6932 hardcode_libdir_flag_spec=
6933 hardcode_libdir_flag_spec_ld=
6934 hardcode_libdir_separator=
6935 hardcode_direct=no
6936 hardcode_minus_L=no
6937 hardcode_shlibpath_var=unsupported
6938 link_all_deplibs=unknown
6939 hardcode_automatic=no
6940 module_cmds=
6941 module_expsym_cmds=
6942 always_export_symbols=no
6943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6944 # include_expsyms should be a list of space-separated symbols to be *always*
6945 # included in the symbol list
6946 include_expsyms=
6947 # exclude_expsyms can be an extended regexp of symbols to exclude
6948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6950 # as well as any symbol that contains `d'.
6951 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6953 # platforms (ab)use it in PIC code, but their linkers get confused if
6954 # the symbol is explicitly referenced. Since portable code cannot
6955 # rely on this symbol name, it's probably fine to never include it in
6956 # preloaded symbol tables.
6957 extract_expsyms_cmds=
6958 # Just being paranoid about ensuring that cc_basename is set.
6959 for cc_temp in $compiler""; do
6960 case $cc_temp in
6961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6963 \-*) ;;
6964 *) break;;
6965 esac
6966 done
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6968
6969 case $host_os in
6970 cygwin* | mingw* | pw32*)
6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972 # When not using gcc, we currently assume that we are using
6973 # Microsoft Visual C++.
6974 if test "$GCC" != yes; then
6975 with_gnu_ld=no
6976 fi
6977 ;;
6978 openbsd*)
6979 with_gnu_ld=no
6980 ;;
6981 esac
6982
6983 ld_shlibs=yes
6984 if test "$with_gnu_ld" = yes; then
6985 # If archive_cmds runs LD, not CC, wlarc should be empty
6986 wlarc='${wl}'
6987
6988 # Set some defaults for GNU ld with shared library support. These
6989 # are reset later if shared libraries are not supported. Putting them
6990 # here allows them to be overridden if necessary.
6991 runpath_var=LD_RUN_PATH
6992 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6993 export_dynamic_flag_spec='${wl}--export-dynamic'
6994 # ancient GNU ld didn't support --whole-archive et. al.
6995 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6997 else
6998 whole_archive_flag_spec=
6999 fi
7000 supports_anon_versioning=no
7001 case `$LD -v 2>/dev/null` in
7002 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7003 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7004 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7005 *\ 2.11.*) ;; # other 2.11 versions
7006 *) supports_anon_versioning=yes ;;
7007 esac
7008
7009 # See if GNU ld supports shared libraries.
7010 case $host_os in
7011 aix3* | aix4* | aix5*)
7012 # On AIX/PPC, the GNU linker is very broken
7013 if test "$host_cpu" != ia64; then
7014 ld_shlibs=no
7015 cat <<EOF 1>&2
7016
7017 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7018 *** to be unable to reliably create shared libraries on AIX.
7019 *** Therefore, libtool is disabling shared libraries support. If you
7020 *** really care for shared libraries, you may want to modify your PATH
7021 *** so that a non-GNU linker is found, and then restart.
7022
7023 EOF
7024 fi
7025 ;;
7026
7027 amigaos*)
7028 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)'
7029 hardcode_libdir_flag_spec='-L$libdir'
7030 hardcode_minus_L=yes
7031
7032 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7033 # that the semantics of dynamic libraries on AmigaOS, at least up
7034 # to version 4, is to share data among multiple programs linked
7035 # with the same dynamic library. Since this doesn't match the
7036 # behavior of shared libraries on other platforms, we can't use
7037 # them.
7038 ld_shlibs=no
7039 ;;
7040
7041 beos*)
7042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043 allow_undefined_flag=unsupported
7044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7045 # support --undefined. This deserves some investigation. FIXME
7046 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047 else
7048 ld_shlibs=no
7049 fi
7050 ;;
7051
7052 cygwin* | mingw* | pw32*)
7053 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7054 # as there is no search path for DLLs.
7055 hardcode_libdir_flag_spec='-L$libdir'
7056 allow_undefined_flag=unsupported
7057 always_export_symbols=no
7058 enable_shared_with_static_runtimes=yes
7059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7060
7061 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7063 # If the export-symbols file already is a .def file (1st line
7064 # is EXPORTS), use it as is; otherwise, prepend...
7065 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7066 cp $export_symbols $output_objdir/$soname.def;
7067 else
7068 echo EXPORTS > $output_objdir/$soname.def;
7069 cat $export_symbols >> $output_objdir/$soname.def;
7070 fi~
7071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7072 else
7073 ld_shlibs=no
7074 fi
7075 ;;
7076
7077 linux*)
7078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7079 tmp_addflag=
7080 case $cc_basename,$host_cpu in
7081 pgcc*) # Portland Group C compiler
7082 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'
7083 tmp_addflag=' $pic_flag'
7084 ;;
7085 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7086 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'
7087 tmp_addflag=' $pic_flag -Mnomain' ;;
7088 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7089 tmp_addflag=' -i_dynamic' ;;
7090 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7091 tmp_addflag=' -i_dynamic -nofor_main' ;;
7092 ifc* | ifort*) # Intel Fortran compiler
7093 tmp_addflag=' -nofor_main' ;;
7094 esac
7095 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7096
7097 if test $supports_anon_versioning = yes; then
7098 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7100 $echo "local: *; };" >> $output_objdir/$libname.ver~
7101 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7102 fi
7103 else
7104 ld_shlibs=no
7105 fi
7106 ;;
7107
7108 netbsd*)
7109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7111 wlarc=
7112 else
7113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7115 fi
7116 ;;
7117
7118 solaris* | sysv5*)
7119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7120 ld_shlibs=no
7121 cat <<EOF 1>&2
7122
7123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7124 *** create shared libraries on Solaris systems. Therefore, libtool
7125 *** is disabling shared libraries support. We urge you to upgrade GNU
7126 *** binutils to release 2.9.1 or newer. Another option is to modify
7127 *** your PATH or compiler configuration so that the native linker is
7128 *** used, and then restart.
7129
7130 EOF
7131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7134 else
7135 ld_shlibs=no
7136 fi
7137 ;;
7138
7139 sunos4*)
7140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7141 wlarc=
7142 hardcode_direct=yes
7143 hardcode_shlibpath_var=no
7144 ;;
7145
7146 *)
7147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7150 else
7151 ld_shlibs=no
7152 fi
7153 ;;
7154 esac
7155
7156 if test "$ld_shlibs" = no; then
7157 runpath_var=
7158 hardcode_libdir_flag_spec=
7159 export_dynamic_flag_spec=
7160 whole_archive_flag_spec=
7161 fi
7162 else
7163 # PORTME fill in a description of your system's linker (not GNU ld)
7164 case $host_os in
7165 aix3*)
7166 allow_undefined_flag=unsupported
7167 always_export_symbols=yes
7168 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'
7169 # Note: this linker hardcodes the directories in LIBPATH if there
7170 # are no directories specified by -L.
7171 hardcode_minus_L=yes
7172 if test "$GCC" = yes && test -z "$link_static_flag"; then
7173 # Neither direct hardcoding nor static linking is supported with a
7174 # broken collect2.
7175 hardcode_direct=unsupported
7176 fi
7177 ;;
7178
7179 aix4* | aix5*)
7180 if test "$host_cpu" = ia64; then
7181 # On IA64, the linker does run time linking by default, so we don't
7182 # have to do anything special.
7183 aix_use_runtimelinking=no
7184 exp_sym_flag='-Bexport'
7185 no_entry_flag=""
7186 else
7187 # If we're using GNU nm, then we don't want the "-C" option.
7188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7190 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'
7191 else
7192 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'
7193 fi
7194 aix_use_runtimelinking=no
7195
7196 # Test if we are trying to use run time linking or normal
7197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7198 # need to do runtime linking.
7199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7200 for ld_flag in $LDFLAGS; do
7201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7202 aix_use_runtimelinking=yes
7203 break
7204 fi
7205 done
7206 esac
7207
7208 exp_sym_flag='-bexport'
7209 no_entry_flag='-bnoentry'
7210 fi
7211
7212 # When large executables or shared objects are built, AIX ld can
7213 # have problems creating the table of contents. If linking a library
7214 # or program results in "error TOC overflow" add -mminimal-toc to
7215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7217
7218 archive_cmds=''
7219 hardcode_direct=yes
7220 hardcode_libdir_separator=':'
7221 link_all_deplibs=yes
7222
7223 if test "$GCC" = yes; then
7224 case $host_os in aix4.[012]|aix4.[012].*)
7225 # We only want to do this on AIX 4.2 and lower, the check
7226 # below for broken collect2 doesn't work under 4.3+
7227 collect2name=`${CC} -print-prog-name=collect2`
7228 if test -f "$collect2name" && \
7229 strings "$collect2name" | grep resolve_lib_name >/dev/null
7230 then
7231 # We have reworked collect2
7232 hardcode_direct=yes
7233 else
7234 # We have old collect2
7235 hardcode_direct=unsupported
7236 # It fails to find uninstalled libraries when the uninstalled
7237 # path is not listed in the libpath. Setting hardcode_minus_L
7238 # to unsupported forces relinking
7239 hardcode_minus_L=yes
7240 hardcode_libdir_flag_spec='-L$libdir'
7241 hardcode_libdir_separator=
7242 fi
7243 esac
7244 shared_flag='-shared'
7245 if test "$aix_use_runtimelinking" = yes; then
7246 shared_flag="$shared_flag "'${wl}-G'
7247 fi
7248 else
7249 # not using gcc
7250 if test "$host_cpu" = ia64; then
7251 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7252 # chokes on -Wl,-G. The following line is correct:
7253 shared_flag='-G'
7254 else
7255 if test "$aix_use_runtimelinking" = yes; then
7256 shared_flag='${wl}-G'
7257 else
7258 shared_flag='${wl}-bM:SRE'
7259 fi
7260 fi
7261 fi
7262
7263 # It seems that -bexpall does not export symbols beginning with
7264 # underscore (_), so it is better to generate a list of symbols to export.
7265 always_export_symbols=yes
7266 if test "$aix_use_runtimelinking" = yes; then
7267 # Warning - without using the other runtime loading flags (-brtl),
7268 # -berok will link without error, but may produce a broken library.
7269 allow_undefined_flag='-berok'
7270 # Determine the default libpath from the value encoded in an empty executable.
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308
7309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7310 }'`
7311 # Check for a 64-bit object if we didn't find anything.
7312 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; }
7313 }'`; fi
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 fi
7319 rm -f conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
7321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7322
7323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7324 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"
7325 else
7326 if test "$host_cpu" = ia64; then
7327 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7328 allow_undefined_flag="-z nodefs"
7329 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"
7330 else
7331 # Determine the default libpath from the value encoded in an empty executable.
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338
7339 int
7340 main ()
7341 {
7342
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 rm -f conftest.$ac_objext conftest$ac_exeext
7348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7349 (eval $ac_link) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -z "$ac_c_werror_flag"
7357 || test ! -s conftest.err'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; } &&
7363 { ac_try='test -s conftest$ac_exeext'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369
7370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7371 }'`
7372 # Check for a 64-bit object if we didn't find anything.
7373 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; }
7374 }'`; fi
7375 else
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379 fi
7380 rm -f conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7383
7384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7385 # Warning - without using the other run time loading flags,
7386 # -berok will link without error, but may produce a broken library.
7387 no_undefined_flag=' ${wl}-bernotok'
7388 allow_undefined_flag=' ${wl}-berok'
7389 # -bexpall does not export symbols beginning with underscore (_)
7390 always_export_symbols=yes
7391 # Exported symbols can be pulled into shared objects from archives
7392 whole_archive_flag_spec=' '
7393 archive_cmds_need_lc=yes
7394 # This is similar to how AIX traditionally builds its shared libraries.
7395 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'
7396 fi
7397 fi
7398 ;;
7399
7400 amigaos*)
7401 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)'
7402 hardcode_libdir_flag_spec='-L$libdir'
7403 hardcode_minus_L=yes
7404 # see comment about different semantics on the GNU ld section
7405 ld_shlibs=no
7406 ;;
7407
7408 bsdi[45]*)
7409 export_dynamic_flag_spec=-rdynamic
7410 ;;
7411
7412 cygwin* | mingw* | pw32*)
7413 # When not using gcc, we currently assume that we are using
7414 # Microsoft Visual C++.
7415 # hardcode_libdir_flag_spec is actually meaningless, as there is
7416 # no search path for DLLs.
7417 hardcode_libdir_flag_spec=' '
7418 allow_undefined_flag=unsupported
7419 # Tell ltmain to make .lib files, not .a files.
7420 libext=lib
7421 # Tell ltmain to make .dll files, not .so files.
7422 shrext_cmds=".dll"
7423 # FIXME: Setting linknames here is a bad hack.
7424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7425 # The linker will automatically build a .lib file if we build a DLL.
7426 old_archive_From_new_cmds='true'
7427 # FIXME: Should let the user specify the lib program.
7428 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7429 fix_srcfile_path='`cygpath -w "$srcfile"`'
7430 enable_shared_with_static_runtimes=yes
7431 ;;
7432
7433 darwin* | rhapsody*)
7434 case $host_os in
7435 rhapsody* | darwin1.[012])
7436 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7437 ;;
7438 *) # Darwin 1.3 on
7439 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7440 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7441 else
7442 case ${MACOSX_DEPLOYMENT_TARGET} in
7443 10.[012])
7444 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7445 ;;
7446 10.*)
7447 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7448 ;;
7449 esac
7450 fi
7451 ;;
7452 esac
7453 archive_cmds_need_lc=no
7454 hardcode_direct=no
7455 hardcode_automatic=yes
7456 hardcode_shlibpath_var=unsupported
7457 whole_archive_flag_spec=''
7458 link_all_deplibs=yes
7459 if test "$GCC" = yes ; then
7460 output_verbose_link_cmd='echo'
7461 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7462 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7464 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}'
7465 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}'
7466 else
7467 case $cc_basename in
7468 xlc*)
7469 output_verbose_link_cmd='echo'
7470 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7471 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7473 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}'
7474 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}'
7475 ;;
7476 *)
7477 ld_shlibs=no
7478 ;;
7479 esac
7480 fi
7481 ;;
7482
7483 dgux*)
7484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7485 hardcode_libdir_flag_spec='-L$libdir'
7486 hardcode_shlibpath_var=no
7487 ;;
7488
7489 freebsd1*)
7490 ld_shlibs=no
7491 ;;
7492
7493 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7494 # support. Future versions do this automatically, but an explicit c++rt0.o
7495 # does not break anything, and helps significantly (at the cost of a little
7496 # extra space).
7497 freebsd2.2*)
7498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7499 hardcode_libdir_flag_spec='-R$libdir'
7500 hardcode_direct=yes
7501 hardcode_shlibpath_var=no
7502 ;;
7503
7504 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7505 freebsd2*)
7506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507 hardcode_direct=yes
7508 hardcode_minus_L=yes
7509 hardcode_shlibpath_var=no
7510 ;;
7511
7512 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7513 freebsd* | kfreebsd*-gnu | dragonfly*)
7514 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7515 hardcode_libdir_flag_spec='-R$libdir'
7516 hardcode_direct=yes
7517 hardcode_shlibpath_var=no
7518 ;;
7519
7520 hpux9*)
7521 if test "$GCC" = yes; then
7522 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'
7523 else
7524 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'
7525 fi
7526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527 hardcode_libdir_separator=:
7528 hardcode_direct=yes
7529
7530 # hardcode_minus_L: Not really in the search PATH,
7531 # but as the default location of the library.
7532 hardcode_minus_L=yes
7533 export_dynamic_flag_spec='${wl}-E'
7534 ;;
7535
7536 hpux10* | hpux11*)
7537 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7538 case $host_cpu in
7539 hppa*64*|ia64*)
7540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7541 ;;
7542 *)
7543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7544 ;;
7545 esac
7546 else
7547 case $host_cpu in
7548 hppa*64*|ia64*)
7549 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7550 ;;
7551 *)
7552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7553 ;;
7554 esac
7555 fi
7556 if test "$with_gnu_ld" = no; then
7557 case $host_cpu in
7558 hppa*64*)
7559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7560 hardcode_libdir_flag_spec_ld='+b $libdir'
7561 hardcode_libdir_separator=:
7562 hardcode_direct=no
7563 hardcode_shlibpath_var=no
7564 ;;
7565 ia64*)
7566 hardcode_libdir_flag_spec='-L$libdir'
7567 hardcode_direct=no
7568 hardcode_shlibpath_var=no
7569
7570 # hardcode_minus_L: Not really in the search PATH,
7571 # but as the default location of the library.
7572 hardcode_minus_L=yes
7573 ;;
7574 *)
7575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7576 hardcode_libdir_separator=:
7577 hardcode_direct=yes
7578 export_dynamic_flag_spec='${wl}-E'
7579
7580 # hardcode_minus_L: Not really in the search PATH,
7581 # but as the default location of the library.
7582 hardcode_minus_L=yes
7583 ;;
7584 esac
7585 fi
7586 ;;
7587
7588 irix5* | irix6* | nonstopux*)
7589 if test "$GCC" = yes; then
7590 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'
7591 else
7592 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'
7593 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7594 fi
7595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7596 hardcode_libdir_separator=:
7597 link_all_deplibs=yes
7598 ;;
7599
7600 netbsd*)
7601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7603 else
7604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7605 fi
7606 hardcode_libdir_flag_spec='-R$libdir'
7607 hardcode_direct=yes
7608 hardcode_shlibpath_var=no
7609 ;;
7610
7611 newsos6)
7612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613 hardcode_direct=yes
7614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7615 hardcode_libdir_separator=:
7616 hardcode_shlibpath_var=no
7617 ;;
7618
7619 openbsd*)
7620 hardcode_direct=yes
7621 hardcode_shlibpath_var=no
7622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7626 export_dynamic_flag_spec='${wl}-E'
7627 else
7628 case $host_os in
7629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7631 hardcode_libdir_flag_spec='-R$libdir'
7632 ;;
7633 *)
7634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7635 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7636 ;;
7637 esac
7638 fi
7639 ;;
7640
7641 os2*)
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_minus_L=yes
7644 allow_undefined_flag=unsupported
7645 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'
7646 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7647 ;;
7648
7649 osf3*)
7650 if test "$GCC" = yes; then
7651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7652 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'
7653 else
7654 allow_undefined_flag=' -expect_unresolved \*'
7655 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'
7656 fi
7657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7658 hardcode_libdir_separator=:
7659 ;;
7660
7661 osf4* | osf5*) # as osf3* with the addition of -msym flag
7662 if test "$GCC" = yes; then
7663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7664 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'
7665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7666 else
7667 allow_undefined_flag=' -expect_unresolved \*'
7668 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'
7669 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7670 $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'
7671
7672 # Both c and cxx compiler support -rpath directly
7673 hardcode_libdir_flag_spec='-rpath $libdir'
7674 fi
7675 hardcode_libdir_separator=:
7676 ;;
7677
7678 sco3.2v5*)
7679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7680 hardcode_shlibpath_var=no
7681 export_dynamic_flag_spec='${wl}-Bexport'
7682 runpath_var=LD_RUN_PATH
7683 hardcode_runpath_var=yes
7684 ;;
7685
7686 solaris*)
7687 no_undefined_flag=' -z text'
7688 if test "$GCC" = yes; then
7689 wlarc='${wl}'
7690 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7691 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7692 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7693 else
7694 wlarc=''
7695 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7697 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7698 fi
7699 hardcode_libdir_flag_spec='-R$libdir'
7700 hardcode_shlibpath_var=no
7701 case $host_os in
7702 solaris2.[0-5] | solaris2.[0-5].*) ;;
7703 *)
7704 # The compiler driver will combine linker options so we
7705 # cannot just pass the convience library names through
7706 # without $wl, iff we do not link with $LD.
7707 # Luckily, gcc supports the same syntax we need for Sun Studio.
7708 # Supported since Solaris 2.6 (maybe 2.5.1?)
7709 case $wlarc in
7710 '')
7711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7712 *)
7713 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' ;;
7714 esac ;;
7715 esac
7716 link_all_deplibs=yes
7717 ;;
7718
7719 sunos4*)
7720 if test "x$host_vendor" = xsequent; then
7721 # Use $CC to link under sequent, because it throws in some extra .o
7722 # files that make .init and .fini sections work.
7723 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7724 else
7725 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7726 fi
7727 hardcode_libdir_flag_spec='-L$libdir'
7728 hardcode_direct=yes
7729 hardcode_minus_L=yes
7730 hardcode_shlibpath_var=no
7731 ;;
7732
7733 sysv4)
7734 case $host_vendor in
7735 sni)
7736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7737 hardcode_direct=yes # is this really true???
7738 ;;
7739 siemens)
7740 ## LD is ld it makes a PLAMLIB
7741 ## CC just makes a GrossModule.
7742 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7743 reload_cmds='$CC -r -o $output$reload_objs'
7744 hardcode_direct=no
7745 ;;
7746 motorola)
7747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7748 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7749 ;;
7750 esac
7751 runpath_var='LD_RUN_PATH'
7752 hardcode_shlibpath_var=no
7753 ;;
7754
7755 sysv4.3*)
7756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757 hardcode_shlibpath_var=no
7758 export_dynamic_flag_spec='-Bexport'
7759 ;;
7760
7761 sysv4*MP*)
7762 if test -d /usr/nec; then
7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764 hardcode_shlibpath_var=no
7765 runpath_var=LD_RUN_PATH
7766 hardcode_runpath_var=yes
7767 ld_shlibs=yes
7768 fi
7769 ;;
7770
7771 sysv4.2uw2*)
7772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7773 hardcode_direct=yes
7774 hardcode_minus_L=no
7775 hardcode_shlibpath_var=no
7776 hardcode_runpath_var=yes
7777 runpath_var=LD_RUN_PATH
7778 ;;
7779
7780 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7781 no_undefined_flag='${wl}-z ${wl}text'
7782 if test "$GCC" = yes; then
7783 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7784 else
7785 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7786 fi
7787 runpath_var='LD_RUN_PATH'
7788 hardcode_shlibpath_var=no
7789 ;;
7790
7791 sysv5*)
7792 no_undefined_flag=' -z text'
7793 # $CC -shared without GNU ld will not create a library from C++
7794 # object files and a static libstdc++, better avoid it by now
7795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7798 hardcode_libdir_flag_spec=
7799 hardcode_shlibpath_var=no
7800 runpath_var='LD_RUN_PATH'
7801 ;;
7802
7803 uts4*)
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_libdir_flag_spec='-L$libdir'
7806 hardcode_shlibpath_var=no
7807 ;;
7808
7809 *)
7810 ld_shlibs=no
7811 ;;
7812 esac
7813 fi
7814
7815 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7816 echo "${ECHO_T}$ld_shlibs" >&6
7817 test "$ld_shlibs" = no && can_build_shared=no
7818
7819 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7820 if test "$GCC" = yes; then
7821 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7822 fi
7823
7824 #
7825 # Do we need to explicitly link libc?
7826 #
7827 case "x$archive_cmds_need_lc" in
7828 x|xyes)
7829 # Assume -lc should be added
7830 archive_cmds_need_lc=yes
7831
7832 if test "$enable_shared" = yes && test "$GCC" = yes; then
7833 case $archive_cmds in
7834 *'~'*)
7835 # FIXME: we may have to deal with multi-command sequences.
7836 ;;
7837 '$CC '*)
7838 # Test whether the compiler implicitly links with -lc since on some
7839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7840 # to ld, don't add -lc before -lgcc.
7841 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7843 $rm conftest*
7844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7845
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } 2>conftest.err; then
7851 soname=conftest
7852 lib=conftest
7853 libobjs=conftest.$ac_objext
7854 deplibs=
7855 wl=$lt_prog_compiler_wl
7856 compiler_flags=-v
7857 linker_flags=-v
7858 verstring=
7859 output_objdir=.
7860 libname=conftest
7861 lt_save_allow_undefined_flag=$allow_undefined_flag
7862 allow_undefined_flag=
7863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7864 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }
7868 then
7869 archive_cmds_need_lc=no
7870 else
7871 archive_cmds_need_lc=yes
7872 fi
7873 allow_undefined_flag=$lt_save_allow_undefined_flag
7874 else
7875 cat conftest.err 1>&5
7876 fi
7877 $rm conftest*
7878 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7879 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7880 ;;
7881 esac
7882 fi
7883 ;;
7884 esac
7885
7886 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7887 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7888 library_names_spec=
7889 libname_spec='lib$name'
7890 soname_spec=
7891 shrext_cmds=".so"
7892 postinstall_cmds=
7893 postuninstall_cmds=
7894 finish_cmds=
7895 finish_eval=
7896 shlibpath_var=
7897 shlibpath_overrides_runpath=unknown
7898 version_type=none
7899 dynamic_linker="$host_os ld.so"
7900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7901 if test "$GCC" = yes; then
7902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7904 # if the path contains ";" then we assume it to be the separator
7905 # otherwise default to the standard path separator (i.e. ":") - it is
7906 # assumed that no part of a normal pathname contains ";" but that should
7907 # okay in the real world where ";" in dirpaths is itself problematic.
7908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7909 else
7910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7911 fi
7912 else
7913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7914 fi
7915 need_lib_prefix=unknown
7916 hardcode_into_libs=no
7917
7918 # when you set need_version to no, make sure it does not cause -set_version
7919 # flags to be left without arguments
7920 need_version=unknown
7921
7922 case $host_os in
7923 aix3*)
7924 version_type=linux
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7926 shlibpath_var=LIBPATH
7927
7928 # AIX 3 has no versioning support, so we append a major version to the name.
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 ;;
7931
7932 aix4* | aix5*)
7933 version_type=linux
7934 need_lib_prefix=no
7935 need_version=no
7936 hardcode_into_libs=yes
7937 if test "$host_cpu" = ia64; then
7938 # AIX 5 supports IA64
7939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7940 shlibpath_var=LD_LIBRARY_PATH
7941 else
7942 # With GCC up to 2.95.x, collect2 would create an import file
7943 # for dependence libraries. The import file would start with
7944 # the line `#! .'. This would cause the generated library to
7945 # depend on `.', always an invalid library. This was fixed in
7946 # development snapshots of GCC prior to 3.0.
7947 case $host_os in
7948 aix4 | aix4.[01] | aix4.[01].*)
7949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7950 echo ' yes '
7951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7952 :
7953 else
7954 can_build_shared=no
7955 fi
7956 ;;
7957 esac
7958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7959 # soname into executable. Probably we can add versioning support to
7960 # collect2, so additional links can be useful in future.
7961 if test "$aix_use_runtimelinking" = yes; then
7962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7963 # instead of lib<name>.a to let people know that these are not
7964 # typical AIX shared libraries.
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 else
7967 # We preserve .a as extension for shared libraries through AIX4.2
7968 # and later when we are not doing run time linking.
7969 library_names_spec='${libname}${release}.a $libname.a'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7971 fi
7972 shlibpath_var=LIBPATH
7973 fi
7974 ;;
7975
7976 amigaos*)
7977 library_names_spec='$libname.ixlibrary $libname.a'
7978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7979 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'
7980 ;;
7981
7982 beos*)
7983 library_names_spec='${libname}${shared_ext}'
7984 dynamic_linker="$host_os ld.so"
7985 shlibpath_var=LIBRARY_PATH
7986 ;;
7987
7988 bsdi[45]*)
7989 version_type=linux
7990 need_version=no
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7994 shlibpath_var=LD_LIBRARY_PATH
7995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7997 # the default ld.so.conf also contains /usr/contrib/lib and
7998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7999 # libtool to hard-code these into programs
8000 ;;
8001
8002 cygwin* | mingw* | pw32*)
8003 version_type=windows
8004 shrext_cmds=".dll"
8005 need_version=no
8006 need_lib_prefix=no
8007
8008 case $GCC,$host_os in
8009 yes,cygwin* | yes,mingw* | yes,pw32*)
8010 library_names_spec='$libname.dll.a'
8011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8012 postinstall_cmds='base_file=`basename \${file}`~
8013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8014 dldir=$destdir/`dirname \$dlpath`~
8015 test -d \$dldir || mkdir -p \$dldir~
8016 $install_prog $dir/$dlname \$dldir/$dlname~
8017 chmod a+x \$dldir/$dlname'
8018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8019 dlpath=$dir/\$dldll~
8020 $rm \$dlpath'
8021 shlibpath_overrides_runpath=yes
8022
8023 case $host_os in
8024 cygwin*)
8025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8028 ;;
8029 mingw*)
8030 # MinGW DLLs use traditional 'lib' prefix
8031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8034 # It is most probably a Windows format PATH printed by
8035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8036 # path with ; separators, and with drive letters. We can handle the
8037 # drive letters (cygwin fileutils understands them), so leave them,
8038 # especially as we might pass files found there to a mingw objdump,
8039 # which wouldn't understand a cygwinified path. Ahh.
8040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8041 else
8042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8043 fi
8044 ;;
8045 pw32*)
8046 # pw32 DLLs use 'pw' prefix rather than 'lib'
8047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8048 ;;
8049 esac
8050 ;;
8051
8052 *)
8053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8054 ;;
8055 esac
8056 dynamic_linker='Win32 ld.exe'
8057 # FIXME: first we should search . and the directory the executable is in
8058 shlibpath_var=PATH
8059 ;;
8060
8061 darwin* | rhapsody*)
8062 dynamic_linker="$host_os dyld"
8063 version_type=darwin
8064 need_lib_prefix=no
8065 need_version=no
8066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8067 soname_spec='${libname}${release}${major}$shared_ext'
8068 shlibpath_overrides_runpath=yes
8069 shlibpath_var=DYLD_LIBRARY_PATH
8070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8072 if test "$GCC" = yes; then
8073 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"`
8074 else
8075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8076 fi
8077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8078 ;;
8079
8080 dgux*)
8081 version_type=linux
8082 need_lib_prefix=no
8083 need_version=no
8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8085 soname_spec='${libname}${release}${shared_ext}$major'
8086 shlibpath_var=LD_LIBRARY_PATH
8087 ;;
8088
8089 freebsd1*)
8090 dynamic_linker=no
8091 ;;
8092
8093 kfreebsd*-gnu)
8094 version_type=linux
8095 need_lib_prefix=no
8096 need_version=no
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 shlibpath_overrides_runpath=no
8101 hardcode_into_libs=yes
8102 dynamic_linker='GNU ld.so'
8103 ;;
8104
8105 freebsd* | dragonfly*)
8106 # DragonFly does not have aout. When/if they implement a new
8107 # versioning mechanism, adjust this.
8108 if test -x /usr/bin/objformat; then
8109 objformat=`/usr/bin/objformat`
8110 else
8111 case $host_os in
8112 freebsd[123]*) objformat=aout ;;
8113 *) objformat=elf ;;
8114 esac
8115 fi
8116 version_type=freebsd-$objformat
8117 case $version_type in
8118 freebsd-elf*)
8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8120 need_version=no
8121 need_lib_prefix=no
8122 ;;
8123 freebsd-*)
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8125 need_version=yes
8126 ;;
8127 esac
8128 shlibpath_var=LD_LIBRARY_PATH
8129 case $host_os in
8130 freebsd2*)
8131 shlibpath_overrides_runpath=yes
8132 ;;
8133 freebsd3.[01]* | freebsdelf3.[01]*)
8134 shlibpath_overrides_runpath=yes
8135 hardcode_into_libs=yes
8136 ;;
8137 *) # from 3.2 on
8138 shlibpath_overrides_runpath=no
8139 hardcode_into_libs=yes
8140 ;;
8141 esac
8142 ;;
8143
8144 gnu*)
8145 version_type=linux
8146 need_lib_prefix=no
8147 need_version=no
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 shlibpath_var=LD_LIBRARY_PATH
8151 hardcode_into_libs=yes
8152 ;;
8153
8154 hpux9* | hpux10* | hpux11*)
8155 # Give a soname corresponding to the major version so that dld.sl refuses to
8156 # link against other versions.
8157 version_type=sunos
8158 need_lib_prefix=no
8159 need_version=no
8160 case $host_cpu in
8161 ia64*)
8162 shrext_cmds='.so'
8163 hardcode_into_libs=yes
8164 dynamic_linker="$host_os dld.so"
8165 shlibpath_var=LD_LIBRARY_PATH
8166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168 soname_spec='${libname}${release}${shared_ext}$major'
8169 if test "X$HPUX_IA64_MODE" = X32; then
8170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8171 else
8172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8173 fi
8174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8175 ;;
8176 hppa*64*)
8177 shrext_cmds='.sl'
8178 hardcode_into_libs=yes
8179 dynamic_linker="$host_os dld.sl"
8180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8186 ;;
8187 *)
8188 shrext_cmds='.sl'
8189 dynamic_linker="$host_os dld.sl"
8190 shlibpath_var=SHLIB_PATH
8191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 ;;
8195 esac
8196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8197 postinstall_cmds='chmod 555 $lib'
8198 ;;
8199
8200 irix5* | irix6* | nonstopux*)
8201 case $host_os in
8202 nonstopux*) version_type=nonstopux ;;
8203 *)
8204 if test "$lt_cv_prog_gnu_ld" = yes; then
8205 version_type=linux
8206 else
8207 version_type=irix
8208 fi ;;
8209 esac
8210 need_lib_prefix=no
8211 need_version=no
8212 soname_spec='${libname}${release}${shared_ext}$major'
8213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8214 case $host_os in
8215 irix5* | nonstopux*)
8216 libsuff= shlibsuff=
8217 ;;
8218 *)
8219 case $LD in # libtool.m4 will add one of these switches to LD
8220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8221 libsuff= shlibsuff= libmagic=32-bit;;
8222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8223 libsuff=32 shlibsuff=N32 libmagic=N32;;
8224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8226 *) libsuff= shlibsuff= libmagic=never-match;;
8227 esac
8228 ;;
8229 esac
8230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8231 shlibpath_overrides_runpath=no
8232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8234 hardcode_into_libs=yes
8235 ;;
8236
8237 # No shared lib support for Linux oldld, aout, or coff.
8238 linux*oldld* | linux*aout* | linux*coff*)
8239 dynamic_linker=no
8240 ;;
8241
8242 # This must be Linux ELF.
8243 linux*)
8244 version_type=linux
8245 need_lib_prefix=no
8246 need_version=no
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 soname_spec='${libname}${release}${shared_ext}$major'
8249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=no
8252 # This implies no fast_install, which is unacceptable.
8253 # Some rework will be needed to allow for fast_install
8254 # before this can be enabled.
8255 hardcode_into_libs=yes
8256
8257 # Append ld.so.conf contents to the search path
8258 if test -f /etc/ld.so.conf; then
8259 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' ' '`
8260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8261 fi
8262
8263 # We used to test for /lib/ld.so.1 and disable shared libraries on
8264 # powerpc, because MkLinux only supported shared libraries with the
8265 # GNU dynamic linker. Since this was broken with cross compilers,
8266 # most powerpc-linux boxes support dynamic linking these days and
8267 # people can always --disable-shared, the test was removed, and we
8268 # assume the GNU/Linux dynamic linker is in use.
8269 dynamic_linker='GNU/Linux ld.so'
8270 ;;
8271
8272 knetbsd*-gnu)
8273 version_type=linux
8274 need_lib_prefix=no
8275 need_version=no
8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8277 soname_spec='${libname}${release}${shared_ext}$major'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=no
8280 hardcode_into_libs=yes
8281 dynamic_linker='GNU ld.so'
8282 ;;
8283
8284 netbsd*)
8285 version_type=sunos
8286 need_lib_prefix=no
8287 need_version=no
8288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8291 dynamic_linker='NetBSD (a.out) ld.so'
8292 else
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8294 soname_spec='${libname}${release}${shared_ext}$major'
8295 dynamic_linker='NetBSD ld.elf_so'
8296 fi
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=yes
8299 hardcode_into_libs=yes
8300 ;;
8301
8302 newsos6)
8303 version_type=linux
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 shlibpath_var=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath=yes
8307 ;;
8308
8309 nto-qnx*)
8310 version_type=linux
8311 need_lib_prefix=no
8312 need_version=no
8313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8314 soname_spec='${libname}${release}${shared_ext}$major'
8315 shlibpath_var=LD_LIBRARY_PATH
8316 shlibpath_overrides_runpath=yes
8317 ;;
8318
8319 openbsd*)
8320 version_type=sunos
8321 need_lib_prefix=no
8322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8323 case $host_os in
8324 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8325 *) need_version=no ;;
8326 esac
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8329 shlibpath_var=LD_LIBRARY_PATH
8330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8331 case $host_os in
8332 openbsd2.[89] | openbsd2.[89].*)
8333 shlibpath_overrides_runpath=no
8334 ;;
8335 *)
8336 shlibpath_overrides_runpath=yes
8337 ;;
8338 esac
8339 else
8340 shlibpath_overrides_runpath=yes
8341 fi
8342 ;;
8343
8344 os2*)
8345 libname_spec='$name'
8346 shrext_cmds=".dll"
8347 need_lib_prefix=no
8348 library_names_spec='$libname${shared_ext} $libname.a'
8349 dynamic_linker='OS/2 ld.exe'
8350 shlibpath_var=LIBPATH
8351 ;;
8352
8353 osf3* | osf4* | osf5*)
8354 version_type=osf
8355 need_lib_prefix=no
8356 need_version=no
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8359 shlibpath_var=LD_LIBRARY_PATH
8360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8362 ;;
8363
8364 sco3.2v5*)
8365 version_type=osf
8366 soname_spec='${libname}${release}${shared_ext}$major'
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 ;;
8370
8371 solaris*)
8372 version_type=linux
8373 need_lib_prefix=no
8374 need_version=no
8375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8376 soname_spec='${libname}${release}${shared_ext}$major'
8377 shlibpath_var=LD_LIBRARY_PATH
8378 shlibpath_overrides_runpath=yes
8379 hardcode_into_libs=yes
8380 # ldd complains unless libraries are executable
8381 postinstall_cmds='chmod +x $lib'
8382 ;;
8383
8384 sunos4*)
8385 version_type=sunos
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8388 shlibpath_var=LD_LIBRARY_PATH
8389 shlibpath_overrides_runpath=yes
8390 if test "$with_gnu_ld" = yes; then
8391 need_lib_prefix=no
8392 fi
8393 need_version=yes
8394 ;;
8395
8396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8397 version_type=linux
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 shlibpath_var=LD_LIBRARY_PATH
8401 case $host_vendor in
8402 sni)
8403 shlibpath_overrides_runpath=no
8404 need_lib_prefix=no
8405 export_dynamic_flag_spec='${wl}-Blargedynsym'
8406 runpath_var=LD_RUN_PATH
8407 ;;
8408 siemens)
8409 need_lib_prefix=no
8410 ;;
8411 motorola)
8412 need_lib_prefix=no
8413 need_version=no
8414 shlibpath_overrides_runpath=no
8415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8416 ;;
8417 esac
8418 ;;
8419
8420 sysv4*MP*)
8421 if test -d /usr/nec ;then
8422 version_type=linux
8423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8424 soname_spec='$libname${shared_ext}.$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8426 fi
8427 ;;
8428
8429 uts4*)
8430 version_type=linux
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8434 ;;
8435
8436 *)
8437 dynamic_linker=no
8438 ;;
8439 esac
8440 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8441 echo "${ECHO_T}$dynamic_linker" >&6
8442 test "$dynamic_linker" = no && can_build_shared=no
8443
8444 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8446 hardcode_action=
8447 if test -n "$hardcode_libdir_flag_spec" || \
8448 test -n "$runpath_var" || \
8449 test "X$hardcode_automatic" = "Xyes" ; then
8450
8451 # We can hardcode non-existant directories.
8452 if test "$hardcode_direct" != no &&
8453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8454 # have to relink, otherwise we might link with an installed library
8455 # when we should be linking with a yet-to-be-installed one
8456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8457 test "$hardcode_minus_L" != no; then
8458 # Linking always hardcodes the temporary library directory.
8459 hardcode_action=relink
8460 else
8461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8462 hardcode_action=immediate
8463 fi
8464 else
8465 # We cannot hardcode anything, or else we can only hardcode existing
8466 # directories.
8467 hardcode_action=unsupported
8468 fi
8469 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8470 echo "${ECHO_T}$hardcode_action" >&6
8471
8472 if test "$hardcode_action" = relink; then
8473 # Fast installation is not supported
8474 enable_fast_install=no
8475 elif test "$shlibpath_overrides_runpath" = yes ||
8476 test "$enable_shared" = no; then
8477 # Fast installation is not necessary
8478 enable_fast_install=needless
8479 fi
8480
8481 striplib=
8482 old_striplib=
8483 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8484 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8485 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8486 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8487 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8488 echo "$as_me:$LINENO: result: yes" >&5
8489 echo "${ECHO_T}yes" >&6
8490 else
8491 # FIXME - insert some real tests, host_os isn't really good enough
8492 case $host_os in
8493 darwin*)
8494 if test -n "$STRIP" ; then
8495 striplib="$STRIP -x"
8496 echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6
8498 else
8499 echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8501 fi
8502 ;;
8503 *)
8504 echo "$as_me:$LINENO: result: no" >&5
8505 echo "${ECHO_T}no" >&6
8506 ;;
8507 esac
8508 fi
8509
8510 if test "x$enable_dlopen" != xyes; then
8511 enable_dlopen=unknown
8512 enable_dlopen_self=unknown
8513 enable_dlopen_self_static=unknown
8514 else
8515 lt_cv_dlopen=no
8516 lt_cv_dlopen_libs=
8517
8518 case $host_os in
8519 beos*)
8520 lt_cv_dlopen="load_add_on"
8521 lt_cv_dlopen_libs=
8522 lt_cv_dlopen_self=yes
8523 ;;
8524
8525 mingw* | pw32*)
8526 lt_cv_dlopen="LoadLibrary"
8527 lt_cv_dlopen_libs=
8528 ;;
8529
8530 cygwin*)
8531 lt_cv_dlopen="dlopen"
8532 lt_cv_dlopen_libs=
8533 ;;
8534
8535 darwin*)
8536 # if libdl is installed we need to link against it
8537 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 ac_check_lib_save_LIBS=$LIBS
8543 LIBS="-ldl $LIBS"
8544 cat >conftest.$ac_ext <<_ACEOF
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550
8551 /* Override any gcc2 internal prototype to avoid an error. */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char dlopen ();
8558 int
8559 main ()
8560 {
8561 dlopen ();
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_lib_dl_dlopen=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_cv_lib_dl_dlopen=no
8594 fi
8595 rm -f conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_lib_save_LIBS
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8601 if test $ac_cv_lib_dl_dlopen = yes; then
8602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8603 else
8604
8605 lt_cv_dlopen="dyld"
8606 lt_cv_dlopen_libs=
8607 lt_cv_dlopen_self=yes
8608
8609 fi
8610
8611 ;;
8612
8613 *)
8614 echo "$as_me:$LINENO: checking for shl_load" >&5
8615 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8616 if test "${ac_cv_func_shl_load+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8627 #define shl_load innocuous_shl_load
8628
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char shl_load (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
8633
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8639
8640 #undef shl_load
8641
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 #ifdef __cplusplus
8644 extern "C"
8645 {
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char shl_load ();
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8654 choke me
8655 #else
8656 char (*f) () = shl_load;
8657 #endif
8658 #ifdef __cplusplus
8659 }
8660 #endif
8661
8662 int
8663 main ()
8664 {
8665 return f != shl_load;
8666 ;
8667 return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_func_shl_load=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 ac_cv_func_shl_load=no
8698 fi
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 fi
8702 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8703 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8704 if test $ac_cv_func_shl_load = yes; then
8705 lt_cv_dlopen="shl_load"
8706 else
8707 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8708 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 ac_check_lib_save_LIBS=$LIBS
8713 LIBS="-ldld $LIBS"
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h. */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720
8721 /* Override any gcc2 internal prototype to avoid an error. */
8722 #ifdef __cplusplus
8723 extern "C"
8724 #endif
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8727 char shl_load ();
8728 int
8729 main ()
8730 {
8731 shl_load ();
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -z "$ac_c_werror_flag"
8746 || test ! -s conftest.err'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 (eval $ac_try) 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; } &&
8752 { ac_try='test -s conftest$ac_exeext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_lib_dld_shl_load=yes
8759 else
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_cv_lib_dld_shl_load=no
8764 fi
8765 rm -f conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8768 fi
8769 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8770 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8771 if test $ac_cv_lib_dld_shl_load = yes; then
8772 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8773 else
8774 echo "$as_me:$LINENO: checking for dlopen" >&5
8775 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8776 if test "${ac_cv_func_dlopen+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8787 #define dlopen innocuous_dlopen
8788
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char dlopen (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8793
8794 #ifdef __STDC__
8795 # include <limits.h>
8796 #else
8797 # include <assert.h>
8798 #endif
8799
8800 #undef dlopen
8801
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 {
8806 #endif
8807 /* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
8809 char dlopen ();
8810 /* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8814 choke me
8815 #else
8816 char (*f) () = dlopen;
8817 #endif
8818 #ifdef __cplusplus
8819 }
8820 #endif
8821
8822 int
8823 main ()
8824 {
8825 return f != dlopen;
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_func_dlopen=yes
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_func_dlopen=no
8858 fi
8859 rm -f conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 fi
8862 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8863 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8864 if test $ac_cv_func_dlopen = yes; then
8865 lt_cv_dlopen="dlopen"
8866 else
8867 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 ac_check_lib_save_LIBS=$LIBS
8873 LIBS="-ldl $LIBS"
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 #ifdef __cplusplus
8883 extern "C"
8884 #endif
8885 /* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8887 char dlopen ();
8888 int
8889 main ()
8890 {
8891 dlopen ();
8892 ;
8893 return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898 (eval $ac_link) 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -z "$ac_c_werror_flag"
8906 || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_cv_lib_dl_dlopen=yes
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ac_cv_lib_dl_dlopen=no
8924 fi
8925 rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8928 fi
8929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8931 if test $ac_cv_lib_dl_dlopen = yes; then
8932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8933 else
8934 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8935 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8936 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lsvld $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947
8948 /* Override any gcc2 internal prototype to avoid an error. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8954 char dlopen ();
8955 int
8956 main ()
8957 {
8958 dlopen ();
8959 ;
8960 return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_lib_svld_dlopen=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_cv_lib_svld_dlopen=no
8991 fi
8992 rm -f conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8997 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8998 if test $ac_cv_lib_svld_dlopen = yes; then
8999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9000 else
9001 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9002 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9003 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 ac_check_lib_save_LIBS=$LIBS
9007 LIBS="-ldld $LIBS"
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9021 char dld_link ();
9022 int
9023 main ()
9024 {
9025 dld_link ();
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_lib_dld_dld_link=yes
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_cv_lib_dld_dld_link=no
9058 fi
9059 rm -f conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9062 fi
9063 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9065 if test $ac_cv_lib_dld_dld_link = yes; then
9066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9067 fi
9068
9069
9070 fi
9071
9072
9073 fi
9074
9075
9076 fi
9077
9078
9079 fi
9080
9081
9082 fi
9083
9084 ;;
9085 esac
9086
9087 if test "x$lt_cv_dlopen" != xno; then
9088 enable_dlopen=yes
9089 else
9090 enable_dlopen=no
9091 fi
9092
9093 case $lt_cv_dlopen in
9094 dlopen)
9095 save_CPPFLAGS="$CPPFLAGS"
9096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9097
9098 save_LDFLAGS="$LDFLAGS"
9099 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9100
9101 save_LIBS="$LIBS"
9102 LIBS="$lt_cv_dlopen_libs $LIBS"
9103
9104 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9105 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9106 if test "${lt_cv_dlopen_self+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 if test "$cross_compiling" = yes; then :
9110 lt_cv_dlopen_self=cross
9111 else
9112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9113 lt_status=$lt_dlunknown
9114 cat > conftest.$ac_ext <<EOF
9115 #line 9115 "configure"
9116 #include "confdefs.h"
9117
9118 #if HAVE_DLFCN_H
9119 #include <dlfcn.h>
9120 #endif
9121
9122 #include <stdio.h>
9123
9124 #ifdef RTLD_GLOBAL
9125 # define LT_DLGLOBAL RTLD_GLOBAL
9126 #else
9127 # ifdef DL_GLOBAL
9128 # define LT_DLGLOBAL DL_GLOBAL
9129 # else
9130 # define LT_DLGLOBAL 0
9131 # endif
9132 #endif
9133
9134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9135 find out it does not work in some platform. */
9136 #ifndef LT_DLLAZY_OR_NOW
9137 # ifdef RTLD_LAZY
9138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9139 # else
9140 # ifdef DL_LAZY
9141 # define LT_DLLAZY_OR_NOW DL_LAZY
9142 # else
9143 # ifdef RTLD_NOW
9144 # define LT_DLLAZY_OR_NOW RTLD_NOW
9145 # else
9146 # ifdef DL_NOW
9147 # define LT_DLLAZY_OR_NOW DL_NOW
9148 # else
9149 # define LT_DLLAZY_OR_NOW 0
9150 # endif
9151 # endif
9152 # endif
9153 # endif
9154 #endif
9155
9156 #ifdef __cplusplus
9157 extern "C" void exit (int);
9158 #endif
9159
9160 void fnord() { int i=42;}
9161 int main ()
9162 {
9163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9164 int status = $lt_dlunknown;
9165
9166 if (self)
9167 {
9168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9169 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9170 /* dlclose (self); */
9171 }
9172
9173 exit (status);
9174 }
9175 EOF
9176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9181 (./conftest; exit; ) >&5 2>/dev/null
9182 lt_status=$?
9183 case x$lt_status in
9184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9186 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9187 esac
9188 else :
9189 # compilation failed
9190 lt_cv_dlopen_self=no
9191 fi
9192 fi
9193 rm -fr conftest*
9194
9195
9196 fi
9197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9198 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9199
9200 if test "x$lt_cv_dlopen_self" = xyes; then
9201 LDFLAGS="$LDFLAGS $link_static_flag"
9202 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9203 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9204 if test "${lt_cv_dlopen_self_static+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 if test "$cross_compiling" = yes; then :
9208 lt_cv_dlopen_self_static=cross
9209 else
9210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9211 lt_status=$lt_dlunknown
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9213 "configure"
9214 #include "confdefs.h"
9215
9216 #if HAVE_DLFCN_H
9217 #include <dlfcn.h>
9218 #endif
9219
9220 #include <stdio.h>
9221
9222 #ifdef RTLD_GLOBAL
9223 # define LT_DLGLOBAL RTLD_GLOBAL
9224 #else
9225 # ifdef DL_GLOBAL
9226 # define LT_DLGLOBAL DL_GLOBAL
9227 # else
9228 # define LT_DLGLOBAL 0
9229 # endif
9230 #endif
9231
9232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9233 find out it does not work in some platform. */
9234 #ifndef LT_DLLAZY_OR_NOW
9235 # ifdef RTLD_LAZY
9236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9237 # else
9238 # ifdef DL_LAZY
9239 # define LT_DLLAZY_OR_NOW DL_LAZY
9240 # else
9241 # ifdef RTLD_NOW
9242 # define LT_DLLAZY_OR_NOW RTLD_NOW
9243 # else
9244 # ifdef DL_NOW
9245 # define LT_DLLAZY_OR_NOW DL_NOW
9246 # else
9247 # define LT_DLLAZY_OR_NOW 0
9248 # endif
9249 # endif
9250 # endif
9251 # endif
9252 #endif
9253
9254 #ifdef __cplusplus
9255 extern "C" void exit (int);
9256 #endif
9257
9258 void fnord() { int i=42;}
9259 int main ()
9260 {
9261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9262 int status = $lt_dlunknown;
9263
9264 if (self)
9265 {
9266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9268 /* dlclose (self); */
9269 }
9270
9271 exit (status);
9272 }
9273 EOF
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9279 (./conftest; exit; ) >&5 2>/dev/null
9280 lt_status=$?
9281 case x$lt_status in
9282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9284 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9285 esac
9286 else :
9287 # compilation failed
9288 lt_cv_dlopen_self_static=no
9289 fi
9290 fi
9291 rm -fr conftest*
9292
9293
9294 fi
9295 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9296 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9297 fi
9298
9299 CPPFLAGS="$save_CPPFLAGS"
9300 LDFLAGS="$save_LDFLAGS"
9301 LIBS="$save_LIBS"
9302 ;;
9303 esac
9304
9305 case $lt_cv_dlopen_self in
9306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9307 *) enable_dlopen_self=unknown ;;
9308 esac
9309
9310 case $lt_cv_dlopen_self_static in
9311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9312 *) enable_dlopen_self_static=unknown ;;
9313 esac
9314 fi
9315
9316
9317 # Report which librarie types wil actually be built
9318 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9319 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9320 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9321 echo "${ECHO_T}$can_build_shared" >&6
9322
9323 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9324 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9325 test "$can_build_shared" = "no" && enable_shared=no
9326
9327 # On AIX, shared libraries and static libraries use the same namespace, and
9328 # are all built from PIC.
9329 case $host_os in
9330 aix3*)
9331 test "$enable_shared" = yes && enable_static=no
9332 if test -n "$RANLIB"; then
9333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9334 postinstall_cmds='$RANLIB $lib'
9335 fi
9336 ;;
9337
9338 aix4* | aix5*)
9339 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9340 test "$enable_shared" = yes && enable_static=no
9341 fi
9342 ;;
9343 esac
9344 echo "$as_me:$LINENO: result: $enable_shared" >&5
9345 echo "${ECHO_T}$enable_shared" >&6
9346
9347 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9348 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9349 # Make sure either enable_shared or enable_static is yes.
9350 test "$enable_shared" = yes || enable_static=yes
9351 echo "$as_me:$LINENO: result: $enable_static" >&5
9352 echo "${ECHO_T}$enable_static" >&6
9353
9354 # The else clause should only fire when bootstrapping the
9355 # libtool distribution, otherwise you forgot to ship ltmain.sh
9356 # with your package, and you will get complaints that there are
9357 # no rules to generate ltmain.sh.
9358 if test -f "$ltmain"; then
9359 # See if we are running on zsh, and set the options which allow our commands through
9360 # without removal of \ escapes.
9361 if test -n "${ZSH_VERSION+set}" ; then
9362 setopt NO_GLOB_SUBST
9363 fi
9364 # Now quote all the things that may contain metacharacters while being
9365 # careful not to overquote the AC_SUBSTed values. We take copies of the
9366 # variables and quote the copies for generation of the libtool script.
9367 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9368 SED SHELL STRIP \
9369 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9370 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9371 deplibs_check_method reload_flag reload_cmds need_locks \
9372 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9373 lt_cv_sys_global_symbol_to_c_name_address \
9374 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9375 old_postinstall_cmds old_postuninstall_cmds \
9376 compiler \
9377 CC \
9378 LD \
9379 lt_prog_compiler_wl \
9380 lt_prog_compiler_pic \
9381 lt_prog_compiler_static \
9382 lt_prog_compiler_no_builtin_flag \
9383 export_dynamic_flag_spec \
9384 thread_safe_flag_spec \
9385 whole_archive_flag_spec \
9386 enable_shared_with_static_runtimes \
9387 old_archive_cmds \
9388 old_archive_from_new_cmds \
9389 predep_objects \
9390 postdep_objects \
9391 predeps \
9392 postdeps \
9393 compiler_lib_search_path \
9394 archive_cmds \
9395 archive_expsym_cmds \
9396 postinstall_cmds \
9397 postuninstall_cmds \
9398 old_archive_from_expsyms_cmds \
9399 allow_undefined_flag \
9400 no_undefined_flag \
9401 export_symbols_cmds \
9402 hardcode_libdir_flag_spec \
9403 hardcode_libdir_flag_spec_ld \
9404 hardcode_libdir_separator \
9405 hardcode_automatic \
9406 module_cmds \
9407 module_expsym_cmds \
9408 lt_cv_prog_compiler_c_o \
9409 exclude_expsyms \
9410 include_expsyms; do
9411
9412 case $var in
9413 old_archive_cmds | \
9414 old_archive_from_new_cmds | \
9415 archive_cmds | \
9416 archive_expsym_cmds | \
9417 module_cmds | \
9418 module_expsym_cmds | \
9419 old_archive_from_expsyms_cmds | \
9420 export_symbols_cmds | \
9421 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9422 postinstall_cmds | postuninstall_cmds | \
9423 old_postinstall_cmds | old_postuninstall_cmds | \
9424 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9425 # Double-quote double-evaled strings.
9426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9427 ;;
9428 *)
9429 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9430 ;;
9431 esac
9432 done
9433
9434 case $lt_echo in
9435 *'\$0 --fallback-echo"')
9436 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9437 ;;
9438 esac
9439
9440 cfgfile="${ofile}T"
9441 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9442 $rm -f "$cfgfile"
9443 { echo "$as_me:$LINENO: creating $ofile" >&5
9444 echo "$as_me: creating $ofile" >&6;}
9445
9446 cat <<__EOF__ >> "$cfgfile"
9447 #! $SHELL
9448
9449 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9450 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9451 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9452 #
9453 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9454 # Free Software Foundation, Inc.
9455 #
9456 # This file is part of GNU Libtool:
9457 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9458 #
9459 # This program is free software; you can redistribute it and/or modify
9460 # it under the terms of the GNU General Public License as published by
9461 # the Free Software Foundation; either version 2 of the License, or
9462 # (at your option) any later version.
9463 #
9464 # This program is distributed in the hope that it will be useful, but
9465 # WITHOUT ANY WARRANTY; without even the implied warranty of
9466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9467 # General Public License for more details.
9468 #
9469 # You should have received a copy of the GNU General Public License
9470 # along with this program; if not, write to the Free Software
9471 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9472 #
9473 # As a special exception to the GNU General Public License, if you
9474 # distribute this file as part of a program that contains a
9475 # configuration script generated by Autoconf, you may include it under
9476 # the same distribution terms that you use for the rest of that program.
9477
9478 # A sed program that does not truncate output.
9479 SED=$lt_SED
9480
9481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9482 Xsed="$SED -e 1s/^X//"
9483
9484 # The HP-UX ksh and POSIX shell print the target directory to stdout
9485 # if CDPATH is set.
9486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9487
9488 # The names of the tagged configurations supported by this script.
9489 available_tags=
9490
9491 # ### BEGIN LIBTOOL CONFIG
9492
9493 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9494
9495 # Shell to use when invoking shell scripts.
9496 SHELL=$lt_SHELL
9497
9498 # Whether or not to build shared libraries.
9499 build_libtool_libs=$enable_shared
9500
9501 # Whether or not to build static libraries.
9502 build_old_libs=$enable_static
9503
9504 # Whether or not to add -lc for building shared libraries.
9505 build_libtool_need_lc=$archive_cmds_need_lc
9506
9507 # Whether or not to disallow shared libs when runtime libs are static
9508 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9509
9510 # Whether or not to optimize for fast installation.
9511 fast_install=$enable_fast_install
9512
9513 # The host system.
9514 host_alias=$host_alias
9515 host=$host
9516 host_os=$host_os
9517
9518 # The build system.
9519 build_alias=$build_alias
9520 build=$build
9521 build_os=$build_os
9522
9523 # An echo program that does not interpret backslashes.
9524 echo=$lt_echo
9525
9526 # The archiver.
9527 AR=$lt_AR
9528 AR_FLAGS=$lt_AR_FLAGS
9529
9530 # A C compiler.
9531 LTCC=$lt_LTCC
9532
9533 # A language-specific compiler.
9534 CC=$lt_compiler
9535
9536 # Is the compiler the GNU C compiler?
9537 with_gcc=$GCC
9538
9539 # An ERE matcher.
9540 EGREP=$lt_EGREP
9541
9542 # The linker used to build libraries.
9543 LD=$lt_LD
9544
9545 # Whether we need hard or soft links.
9546 LN_S=$lt_LN_S
9547
9548 # A BSD-compatible nm program.
9549 NM=$lt_NM
9550
9551 # A symbol stripping program
9552 STRIP=$lt_STRIP
9553
9554 # Used to examine libraries when file_magic_cmd begins "file"
9555 MAGIC_CMD=$MAGIC_CMD
9556
9557 # Used on cygwin: DLL creation program.
9558 DLLTOOL="$DLLTOOL"
9559
9560 # Used on cygwin: object dumper.
9561 OBJDUMP="$OBJDUMP"
9562
9563 # Used on cygwin: assembler.
9564 AS="$AS"
9565
9566 # The name of the directory that contains temporary libtool files.
9567 objdir=$objdir
9568
9569 # How to create reloadable object files.
9570 reload_flag=$lt_reload_flag
9571 reload_cmds=$lt_reload_cmds
9572
9573 # How to pass a linker flag through the compiler.
9574 wl=$lt_lt_prog_compiler_wl
9575
9576 # Object file suffix (normally "o").
9577 objext="$ac_objext"
9578
9579 # Old archive suffix (normally "a").
9580 libext="$libext"
9581
9582 # Shared library suffix (normally ".so").
9583 shrext_cmds='$shrext_cmds'
9584
9585 # Executable file suffix (normally "").
9586 exeext="$exeext"
9587
9588 # Additional compiler flags for building library objects.
9589 pic_flag=$lt_lt_prog_compiler_pic
9590 pic_mode=$pic_mode
9591
9592 # What is the maximum length of a command?
9593 max_cmd_len=$lt_cv_sys_max_cmd_len
9594
9595 # Does compiler simultaneously support -c and -o options?
9596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9597
9598 # Must we lock files when doing compilation?
9599 need_locks=$lt_need_locks
9600
9601 # Do we need the lib prefix for modules?
9602 need_lib_prefix=$need_lib_prefix
9603
9604 # Do we need a version for libraries?
9605 need_version=$need_version
9606
9607 # Whether dlopen is supported.
9608 dlopen_support=$enable_dlopen
9609
9610 # Whether dlopen of programs is supported.
9611 dlopen_self=$enable_dlopen_self
9612
9613 # Whether dlopen of statically linked programs is supported.
9614 dlopen_self_static=$enable_dlopen_self_static
9615
9616 # Compiler flag to prevent dynamic linking.
9617 link_static_flag=$lt_lt_prog_compiler_static
9618
9619 # Compiler flag to turn off builtin functions.
9620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9621
9622 # Compiler flag to allow reflexive dlopens.
9623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9624
9625 # Compiler flag to generate shared objects directly from archives.
9626 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9627
9628 # Compiler flag to generate thread-safe objects.
9629 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9630
9631 # Library versioning type.
9632 version_type=$version_type
9633
9634 # Format of library name prefix.
9635 libname_spec=$lt_libname_spec
9636
9637 # List of archive names. First name is the real one, the rest are links.
9638 # The last name is the one that the linker finds with -lNAME.
9639 library_names_spec=$lt_library_names_spec
9640
9641 # The coded name of the library, if different from the real name.
9642 soname_spec=$lt_soname_spec
9643
9644 # Commands used to build and install an old-style archive.
9645 RANLIB=$lt_RANLIB
9646 old_archive_cmds=$lt_old_archive_cmds
9647 old_postinstall_cmds=$lt_old_postinstall_cmds
9648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9649
9650 # Create an old-style archive from a shared archive.
9651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9652
9653 # Create a temporary old-style archive to link instead of a shared archive.
9654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9655
9656 # Commands used to build and install a shared archive.
9657 archive_cmds=$lt_archive_cmds
9658 archive_expsym_cmds=$lt_archive_expsym_cmds
9659 postinstall_cmds=$lt_postinstall_cmds
9660 postuninstall_cmds=$lt_postuninstall_cmds
9661
9662 # Commands used to build a loadable module (assumed same as above if empty)
9663 module_cmds=$lt_module_cmds
9664 module_expsym_cmds=$lt_module_expsym_cmds
9665
9666 # Commands to strip libraries.
9667 old_striplib=$lt_old_striplib
9668 striplib=$lt_striplib
9669
9670 # Dependencies to place before the objects being linked to create a
9671 # shared library.
9672 predep_objects=$lt_predep_objects
9673
9674 # Dependencies to place after the objects being linked to create a
9675 # shared library.
9676 postdep_objects=$lt_postdep_objects
9677
9678 # Dependencies to place before the objects being linked to create a
9679 # shared library.
9680 predeps=$lt_predeps
9681
9682 # Dependencies to place after the objects being linked to create a
9683 # shared library.
9684 postdeps=$lt_postdeps
9685
9686 # The library search path used internally by the compiler when linking
9687 # a shared library.
9688 compiler_lib_search_path=$lt_compiler_lib_search_path
9689
9690 # Method to check whether dependent libraries are shared objects.
9691 deplibs_check_method=$lt_deplibs_check_method
9692
9693 # Command to use when deplibs_check_method == file_magic.
9694 file_magic_cmd=$lt_file_magic_cmd
9695
9696 # Flag that allows shared libraries with undefined symbols to be built.
9697 allow_undefined_flag=$lt_allow_undefined_flag
9698
9699 # Flag that forces no undefined symbols.
9700 no_undefined_flag=$lt_no_undefined_flag
9701
9702 # Commands used to finish a libtool library installation in a directory.
9703 finish_cmds=$lt_finish_cmds
9704
9705 # Same as above, but a single script fragment to be evaled but not shown.
9706 finish_eval=$lt_finish_eval
9707
9708 # Take the output of nm and produce a listing of raw symbols and C names.
9709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9710
9711 # Transform the output of nm in a proper C declaration
9712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9713
9714 # Transform the output of nm in a C name address pair
9715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9716
9717 # This is the shared library runtime path variable.
9718 runpath_var=$runpath_var
9719
9720 # This is the shared library path variable.
9721 shlibpath_var=$shlibpath_var
9722
9723 # Is shlibpath searched before the hard-coded library search path?
9724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9725
9726 # How to hardcode a shared library path into an executable.
9727 hardcode_action=$hardcode_action
9728
9729 # Whether we should hardcode library paths into libraries.
9730 hardcode_into_libs=$hardcode_into_libs
9731
9732 # Flag to hardcode \$libdir into a binary during linking.
9733 # This must work even if \$libdir does not exist.
9734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9735
9736 # If ld is used when linking, flag to hardcode \$libdir into
9737 # a binary during linking. This must work even if \$libdir does
9738 # not exist.
9739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9740
9741 # Whether we need a single -rpath flag with a separated argument.
9742 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9743
9744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9745 # resulting binary.
9746 hardcode_direct=$hardcode_direct
9747
9748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9749 # resulting binary.
9750 hardcode_minus_L=$hardcode_minus_L
9751
9752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9753 # the resulting binary.
9754 hardcode_shlibpath_var=$hardcode_shlibpath_var
9755
9756 # Set to yes if building a shared library automatically hardcodes DIR into the library
9757 # and all subsequent libraries and executables linked against it.
9758 hardcode_automatic=$hardcode_automatic
9759
9760 # Variables whose values should be saved in libtool wrapper scripts and
9761 # restored at relink time.
9762 variables_saved_for_relink="$variables_saved_for_relink"
9763
9764 # Whether libtool must link a program against all its dependency libraries.
9765 link_all_deplibs=$link_all_deplibs
9766
9767 # Compile-time system search path for libraries
9768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9769
9770 # Run-time system search path for libraries
9771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9772
9773 # Fix the shell variable \$srcfile for the compiler.
9774 fix_srcfile_path="$fix_srcfile_path"
9775
9776 # Set to yes if exported symbols are required.
9777 always_export_symbols=$always_export_symbols
9778
9779 # The commands to list exported symbols.
9780 export_symbols_cmds=$lt_export_symbols_cmds
9781
9782 # The commands to extract the exported symbol list from a shared archive.
9783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9784
9785 # Symbols that should not be listed in the preloaded symbols.
9786 exclude_expsyms=$lt_exclude_expsyms
9787
9788 # Symbols that must always be exported.
9789 include_expsyms=$lt_include_expsyms
9790
9791 # ### END LIBTOOL CONFIG
9792
9793 __EOF__
9794
9795
9796 case $host_os in
9797 aix3*)
9798 cat <<\EOF >> "$cfgfile"
9799
9800 # AIX sometimes has problems with the GCC collect2 program. For some
9801 # reason, if we set the COLLECT_NAMES environment variable, the problems
9802 # vanish in a puff of smoke.
9803 if test "X${COLLECT_NAMES+set}" != Xset; then
9804 COLLECT_NAMES=
9805 export COLLECT_NAMES
9806 fi
9807 EOF
9808 ;;
9809 esac
9810
9811 # We use sed instead of cat because bash on DJGPP gets confused if
9812 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9813 # text mode, it properly converts lines to CR/LF. This bash problem
9814 # is reportedly fixed, but why not run on old versions too?
9815 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9816
9817 mv -f "$cfgfile" "$ofile" || \
9818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9819 chmod +x "$ofile"
9820
9821 else
9822 # If there is no Makefile yet, we rely on a make rule to execute
9823 # `config.status --recheck' to rerun these tests and create the
9824 # libtool script then.
9825 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9826 if test -f "$ltmain_in"; then
9827 test -f Makefile && make "$ltmain"
9828 fi
9829 fi
9830
9831
9832 ac_ext=c
9833 ac_cpp='$CPP $CPPFLAGS'
9834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9837
9838 CC="$lt_save_CC"
9839
9840
9841 # Check whether --with-tags or --without-tags was given.
9842 if test "${with_tags+set}" = set; then
9843 withval="$with_tags"
9844 tagnames="$withval"
9845 fi;
9846
9847 if test -f "$ltmain" && test -n "$tagnames"; then
9848 if test ! -f "${ofile}"; then
9849 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9850 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9851 fi
9852
9853 if test -z "$LTCC"; then
9854 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9855 if test -z "$LTCC"; then
9856 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9857 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9858 else
9859 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9860 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9861 fi
9862 fi
9863
9864 # Extract list of available tagged configurations in $ofile.
9865 # Note that this assumes the entire list is on one line.
9866 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9867
9868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9869 for tagname in $tagnames; do
9870 IFS="$lt_save_ifs"
9871 # Check whether tagname contains only valid characters
9872 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9873 "") ;;
9874 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9875 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9876 { (exit 1); exit 1; }; }
9877 ;;
9878 esac
9879
9880 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9881 then
9882 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9883 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9884 { (exit 1); exit 1; }; }
9885 fi
9886
9887 # Update the list of available tags.
9888 if test -n "$tagname"; then
9889 echo appending configuration tag \"$tagname\" to $ofile
9890
9891 case $tagname in
9892 CXX)
9893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9895 (test "X$CXX" != "Xg++"))) ; then
9896 ac_ext=cc
9897 ac_cpp='$CXXCPP $CPPFLAGS'
9898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9901
9902
9903
9904
9905 archive_cmds_need_lc_CXX=no
9906 allow_undefined_flag_CXX=
9907 always_export_symbols_CXX=no
9908 archive_expsym_cmds_CXX=
9909 export_dynamic_flag_spec_CXX=
9910 hardcode_direct_CXX=no
9911 hardcode_libdir_flag_spec_CXX=
9912 hardcode_libdir_flag_spec_ld_CXX=
9913 hardcode_libdir_separator_CXX=
9914 hardcode_minus_L_CXX=no
9915 hardcode_automatic_CXX=no
9916 module_cmds_CXX=
9917 module_expsym_cmds_CXX=
9918 link_all_deplibs_CXX=unknown
9919 old_archive_cmds_CXX=$old_archive_cmds
9920 no_undefined_flag_CXX=
9921 whole_archive_flag_spec_CXX=
9922 enable_shared_with_static_runtimes_CXX=no
9923
9924 # Dependencies to place before and after the object being linked:
9925 predep_objects_CXX=
9926 postdep_objects_CXX=
9927 predeps_CXX=
9928 postdeps_CXX=
9929 compiler_lib_search_path_CXX=
9930
9931 # Source file extension for C++ test sources.
9932 ac_ext=cpp
9933
9934 # Object file extension for compiled C++ test sources.
9935 objext=o
9936 objext_CXX=$objext
9937
9938 # Code to be used in simple compile tests
9939 lt_simple_compile_test_code="int some_variable = 0;\n"
9940
9941 # Code to be used in simple link tests
9942 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9943
9944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9945
9946 # If no C compiler was specified, use CC.
9947 LTCC=${LTCC-"$CC"}
9948
9949 # Allow CC to be a program name with arguments.
9950 compiler=$CC
9951
9952
9953 # save warnings/boilerplate of simple test code
9954 ac_outfile=conftest.$ac_objext
9955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9957 _lt_compiler_boilerplate=`cat conftest.err`
9958 $rm conftest*
9959
9960 ac_outfile=conftest.$ac_objext
9961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9963 _lt_linker_boilerplate=`cat conftest.err`
9964 $rm conftest*
9965
9966
9967 # Allow CC to be a program name with arguments.
9968 lt_save_CC=$CC
9969 lt_save_LD=$LD
9970 lt_save_GCC=$GCC
9971 GCC=$GXX
9972 lt_save_with_gnu_ld=$with_gnu_ld
9973 lt_save_path_LD=$lt_cv_path_LD
9974 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9975 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9976 else
9977 unset lt_cv_prog_gnu_ld
9978 fi
9979 if test -n "${lt_cv_path_LDCXX+set}"; then
9980 lt_cv_path_LD=$lt_cv_path_LDCXX
9981 else
9982 unset lt_cv_path_LD
9983 fi
9984 test -z "${LDCXX+set}" || LD=$LDCXX
9985 CC=${CXX-"c++"}
9986 compiler=$CC
9987 compiler_CXX=$CC
9988 for cc_temp in $compiler""; do
9989 case $cc_temp in
9990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9992 \-*) ;;
9993 *) break;;
9994 esac
9995 done
9996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9997
9998
9999 # We don't want -fno-exception wen compiling C++ code, so set the
10000 # no_builtin_flag separately
10001 if test "$GXX" = yes; then
10002 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10003 else
10004 lt_prog_compiler_no_builtin_flag_CXX=
10005 fi
10006
10007 if test "$GXX" = yes; then
10008 # Set up default GNU C++ configuration
10009
10010
10011 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10012 if test "${with_gnu_ld+set}" = set; then
10013 withval="$with_gnu_ld"
10014 test "$withval" = no || with_gnu_ld=yes
10015 else
10016 with_gnu_ld=no
10017 fi;
10018 ac_prog=ld
10019 if test "$GCC" = yes; then
10020 # Check if gcc -print-prog-name=ld gives a path.
10021 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10022 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10023 case $host in
10024 *-*-mingw*)
10025 # gcc leaves a trailing carriage return which upsets mingw
10026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10027 *)
10028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10029 esac
10030 case $ac_prog in
10031 # Accept absolute paths.
10032 [\\/]* | ?:[\\/]*)
10033 re_direlt='/[^/][^/]*/\.\./'
10034 # Canonicalize the pathname of ld
10035 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10036 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10037 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10038 done
10039 test -z "$LD" && LD="$ac_prog"
10040 ;;
10041 "")
10042 # If it fails, then pretend we aren't using GCC.
10043 ac_prog=ld
10044 ;;
10045 *)
10046 # If it is relative, then search for the first ld in PATH.
10047 with_gnu_ld=unknown
10048 ;;
10049 esac
10050 elif test "$with_gnu_ld" = yes; then
10051 echo "$as_me:$LINENO: checking for GNU ld" >&5
10052 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10053 else
10054 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10055 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10056 fi
10057 if test "${lt_cv_path_LD+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 if test -z "$LD"; then
10061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10062 for ac_dir in $PATH; do
10063 IFS="$lt_save_ifs"
10064 test -z "$ac_dir" && ac_dir=.
10065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10066 lt_cv_path_LD="$ac_dir/$ac_prog"
10067 # Check to see if the program is GNU ld. I'd rather use --version,
10068 # but apparently some variants of GNU ld only accept -v.
10069 # Break only if it was the GNU/non-GNU ld that we prefer.
10070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10071 *GNU* | *'with BFD'*)
10072 test "$with_gnu_ld" != no && break
10073 ;;
10074 *)
10075 test "$with_gnu_ld" != yes && break
10076 ;;
10077 esac
10078 fi
10079 done
10080 IFS="$lt_save_ifs"
10081 else
10082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10083 fi
10084 fi
10085
10086 LD="$lt_cv_path_LD"
10087 if test -n "$LD"; then
10088 echo "$as_me:$LINENO: result: $LD" >&5
10089 echo "${ECHO_T}$LD" >&6
10090 else
10091 echo "$as_me:$LINENO: result: no" >&5
10092 echo "${ECHO_T}no" >&6
10093 fi
10094 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10095 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10096 { (exit 1); exit 1; }; }
10097 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10098 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10099 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10103 case `$LD -v 2>&1 </dev/null` in
10104 *GNU* | *'with BFD'*)
10105 lt_cv_prog_gnu_ld=yes
10106 ;;
10107 *)
10108 lt_cv_prog_gnu_ld=no
10109 ;;
10110 esac
10111 fi
10112 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10113 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10114 with_gnu_ld=$lt_cv_prog_gnu_ld
10115
10116
10117
10118 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10119 # archiving commands below assume that GNU ld is being used.
10120 if test "$with_gnu_ld" = yes; then
10121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 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'
10123
10124 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10126
10127 # If archive_cmds runs LD, not CC, wlarc should be empty
10128 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10129 # investigate it a little bit more. (MM)
10130 wlarc='${wl}'
10131
10132 # ancient GNU ld didn't support --whole-archive et. al.
10133 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10134 grep 'no-whole-archive' > /dev/null; then
10135 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10136 else
10137 whole_archive_flag_spec_CXX=
10138 fi
10139 else
10140 with_gnu_ld=no
10141 wlarc=
10142
10143 # A generic and very simple default shared library creation
10144 # command for GNU C++ for the case where it uses the native
10145 # linker, instead of GNU ld. If possible, this setting should
10146 # overridden to take advantage of the native linker features on
10147 # the platform it is being used on.
10148 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10149 fi
10150
10151 # Commands to make compiler produce verbose output that lists
10152 # what "hidden" libraries, object files and flags are used when
10153 # linking a shared library.
10154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10155
10156 else
10157 GXX=no
10158 with_gnu_ld=no
10159 wlarc=
10160 fi
10161
10162 # PORTME: fill in a description of your system's C++ link characteristics
10163 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10164 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10165 ld_shlibs_CXX=yes
10166 case $host_os in
10167 aix3*)
10168 # FIXME: insert proper C++ library support
10169 ld_shlibs_CXX=no
10170 ;;
10171 aix4* | aix5*)
10172 if test "$host_cpu" = ia64; then
10173 # On IA64, the linker does run time linking by default, so we don't
10174 # have to do anything special.
10175 aix_use_runtimelinking=no
10176 exp_sym_flag='-Bexport'
10177 no_entry_flag=""
10178 else
10179 aix_use_runtimelinking=no
10180
10181 # Test if we are trying to use run time linking or normal
10182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10183 # need to do runtime linking.
10184 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10185 for ld_flag in $LDFLAGS; do
10186 case $ld_flag in
10187 *-brtl*)
10188 aix_use_runtimelinking=yes
10189 break
10190 ;;
10191 esac
10192 done
10193 esac
10194
10195 exp_sym_flag='-bexport'
10196 no_entry_flag='-bnoentry'
10197 fi
10198
10199 # When large executables or shared objects are built, AIX ld can
10200 # have problems creating the table of contents. If linking a library
10201 # or program results in "error TOC overflow" add -mminimal-toc to
10202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10204
10205 archive_cmds_CXX=''
10206 hardcode_direct_CXX=yes
10207 hardcode_libdir_separator_CXX=':'
10208 link_all_deplibs_CXX=yes
10209
10210 if test "$GXX" = yes; then
10211 case $host_os in aix4.[012]|aix4.[012].*)
10212 # We only want to do this on AIX 4.2 and lower, the check
10213 # below for broken collect2 doesn't work under 4.3+
10214 collect2name=`${CC} -print-prog-name=collect2`
10215 if test -f "$collect2name" && \
10216 strings "$collect2name" | grep resolve_lib_name >/dev/null
10217 then
10218 # We have reworked collect2
10219 hardcode_direct_CXX=yes
10220 else
10221 # We have old collect2
10222 hardcode_direct_CXX=unsupported
10223 # It fails to find uninstalled libraries when the uninstalled
10224 # path is not listed in the libpath. Setting hardcode_minus_L
10225 # to unsupported forces relinking
10226 hardcode_minus_L_CXX=yes
10227 hardcode_libdir_flag_spec_CXX='-L$libdir'
10228 hardcode_libdir_separator_CXX=
10229 fi
10230 esac
10231 shared_flag='-shared'
10232 if test "$aix_use_runtimelinking" = yes; then
10233 shared_flag="$shared_flag "'${wl}-G'
10234 fi
10235 else
10236 # not using gcc
10237 if test "$host_cpu" = ia64; then
10238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10239 # chokes on -Wl,-G. The following line is correct:
10240 shared_flag='-G'
10241 else
10242 if test "$aix_use_runtimelinking" = yes; then
10243 shared_flag='${wl}-G'
10244 else
10245 shared_flag='${wl}-bM:SRE'
10246 fi
10247 fi
10248 fi
10249
10250 # It seems that -bexpall does not export symbols beginning with
10251 # underscore (_), so it is better to generate a list of symbols to export.
10252 always_export_symbols_CXX=yes
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # Warning - without using the other runtime loading flags (-brtl),
10255 # -berok will link without error, but may produce a broken library.
10256 allow_undefined_flag_CXX='-berok'
10257 # Determine the default libpath from the value encoded in an empty executable.
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h. */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264
10265 int
10266 main ()
10267 {
10268
10269 ;
10270 return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_cxx_werror_flag"
10283 || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest$ac_exeext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295
10296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10297 }'`
10298 # Check for a 64-bit object if we didn't find anything.
10299 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; }
10300 }'`; fi
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 fi
10306 rm -f conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10309
10310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10311
10312 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"
10313 else
10314 if test "$host_cpu" = ia64; then
10315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10316 allow_undefined_flag_CXX="-z nodefs"
10317 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"
10318 else
10319 # Determine the default libpath from the value encoded in an empty executable.
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326
10327 int
10328 main ()
10329 {
10330
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_cxx_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357
10358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10359 }'`
10360 # Check for a 64-bit object if we didn't find anything.
10361 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; }
10362 }'`; fi
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 fi
10368 rm -f conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10371
10372 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10373 # Warning - without using the other run time loading flags,
10374 # -berok will link without error, but may produce a broken library.
10375 no_undefined_flag_CXX=' ${wl}-bernotok'
10376 allow_undefined_flag_CXX=' ${wl}-berok'
10377 # -bexpall does not export symbols beginning with underscore (_)
10378 always_export_symbols_CXX=yes
10379 # Exported symbols can be pulled into shared objects from archives
10380 whole_archive_flag_spec_CXX=' '
10381 archive_cmds_need_lc_CXX=yes
10382 # This is similar to how AIX traditionally builds its shared libraries.
10383 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'
10384 fi
10385 fi
10386 ;;
10387 chorus*)
10388 case $cc_basename in
10389 *)
10390 # FIXME: insert proper C++ library support
10391 ld_shlibs_CXX=no
10392 ;;
10393 esac
10394 ;;
10395
10396
10397 cygwin* | mingw* | pw32*)
10398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10399 # as there is no search path for DLLs.
10400 hardcode_libdir_flag_spec_CXX='-L$libdir'
10401 allow_undefined_flag_CXX=unsupported
10402 always_export_symbols_CXX=no
10403 enable_shared_with_static_runtimes_CXX=yes
10404
10405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10406 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'
10407 # If the export-symbols file already is a .def file (1st line
10408 # is EXPORTS), use it as is; otherwise, prepend...
10409 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10410 cp $export_symbols $output_objdir/$soname.def;
10411 else
10412 echo EXPORTS > $output_objdir/$soname.def;
10413 cat $export_symbols >> $output_objdir/$soname.def;
10414 fi~
10415 $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'
10416 else
10417 ld_shlibs_CXX=no
10418 fi
10419 ;;
10420 darwin* | rhapsody*)
10421 case $host_os in
10422 rhapsody* | darwin1.[012])
10423 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10424 ;;
10425 *) # Darwin 1.3 on
10426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10428 else
10429 case ${MACOSX_DEPLOYMENT_TARGET} in
10430 10.[012])
10431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10432 ;;
10433 10.*)
10434 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10435 ;;
10436 esac
10437 fi
10438 ;;
10439 esac
10440 archive_cmds_need_lc_CXX=no
10441 hardcode_direct_CXX=no
10442 hardcode_automatic_CXX=yes
10443 hardcode_shlibpath_var_CXX=unsupported
10444 whole_archive_flag_spec_CXX=''
10445 link_all_deplibs_CXX=yes
10446
10447 if test "$GXX" = yes ; then
10448 lt_int_apple_cc_single_mod=no
10449 output_verbose_link_cmd='echo'
10450 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10451 lt_int_apple_cc_single_mod=yes
10452 fi
10453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10454 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10455 else
10456 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'
10457 fi
10458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10461 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}'
10462 else
10463 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}'
10464 fi
10465 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}'
10466 else
10467 case $cc_basename in
10468 xlc*)
10469 output_verbose_link_cmd='echo'
10470 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'
10471 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10473 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}'
10474 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}'
10475 ;;
10476 *)
10477 ld_shlibs_CXX=no
10478 ;;
10479 esac
10480 fi
10481 ;;
10482
10483 dgux*)
10484 case $cc_basename in
10485 ec++*)
10486 # FIXME: insert proper C++ library support
10487 ld_shlibs_CXX=no
10488 ;;
10489 ghcx*)
10490 # Green Hills C++ Compiler
10491 # FIXME: insert proper C++ library support
10492 ld_shlibs_CXX=no
10493 ;;
10494 *)
10495 # FIXME: insert proper C++ library support
10496 ld_shlibs_CXX=no
10497 ;;
10498 esac
10499 ;;
10500 freebsd[12]*)
10501 # C++ shared libraries reported to be fairly broken before switch to ELF
10502 ld_shlibs_CXX=no
10503 ;;
10504 freebsd-elf*)
10505 archive_cmds_need_lc_CXX=no
10506 ;;
10507 freebsd* | kfreebsd*-gnu | dragonfly*)
10508 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10509 # conventions
10510 ld_shlibs_CXX=yes
10511 ;;
10512 gnu*)
10513 ;;
10514 hpux9*)
10515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516 hardcode_libdir_separator_CXX=:
10517 export_dynamic_flag_spec_CXX='${wl}-E'
10518 hardcode_direct_CXX=yes
10519 hardcode_minus_L_CXX=yes # Not in the search PATH,
10520 # but as the default
10521 # location of the library.
10522
10523 case $cc_basename in
10524 CC*)
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10527 ;;
10528 aCC*)
10529 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'
10530 # Commands to make compiler produce verbose output that lists
10531 # what "hidden" libraries, object files and flags are used when
10532 # linking a shared library.
10533 #
10534 # There doesn't appear to be a way to prevent this compiler from
10535 # explicitly linking system object files so we need to strip them
10536 # from the output so that they don't get included in the library
10537 # dependencies.
10538 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'
10539 ;;
10540 *)
10541 if test "$GXX" = yes; then
10542 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'
10543 else
10544 # FIXME: insert proper C++ library support
10545 ld_shlibs_CXX=no
10546 fi
10547 ;;
10548 esac
10549 ;;
10550 hpux10*|hpux11*)
10551 if test $with_gnu_ld = no; then
10552 case $host_cpu in
10553 hppa*64*)
10554 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10555 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10556 hardcode_libdir_separator_CXX=:
10557 ;;
10558 ia64*)
10559 hardcode_libdir_flag_spec_CXX='-L$libdir'
10560 ;;
10561 *)
10562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10563 hardcode_libdir_separator_CXX=:
10564 export_dynamic_flag_spec_CXX='${wl}-E'
10565 ;;
10566 esac
10567 fi
10568 case $host_cpu in
10569 hppa*64*)
10570 hardcode_direct_CXX=no
10571 hardcode_shlibpath_var_CXX=no
10572 ;;
10573 ia64*)
10574 hardcode_direct_CXX=no
10575 hardcode_shlibpath_var_CXX=no
10576 hardcode_minus_L_CXX=yes # Not in the search PATH,
10577 # but as the default
10578 # location of the library.
10579 ;;
10580 *)
10581 hardcode_direct_CXX=yes
10582 hardcode_minus_L_CXX=yes # Not in the search PATH,
10583 # but as the default
10584 # location of the library.
10585 ;;
10586 esac
10587
10588 case $cc_basename in
10589 CC*)
10590 # FIXME: insert proper C++ library support
10591 ld_shlibs_CXX=no
10592 ;;
10593 aCC*)
10594 case $host_cpu in
10595 hppa*64*|ia64*)
10596 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10597 ;;
10598 *)
10599 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10600 ;;
10601 esac
10602 # Commands to make compiler produce verbose output that lists
10603 # what "hidden" libraries, object files and flags are used when
10604 # linking a shared library.
10605 #
10606 # There doesn't appear to be a way to prevent this compiler from
10607 # explicitly linking system object files so we need to strip them
10608 # from the output so that they don't get included in the library
10609 # dependencies.
10610 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'
10611 ;;
10612 *)
10613 if test "$GXX" = yes; then
10614 if test $with_gnu_ld = no; then
10615 case $host_cpu in
10616 ia64*|hppa*64*)
10617 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10618 ;;
10619 *)
10620 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'
10621 ;;
10622 esac
10623 fi
10624 else
10625 # FIXME: insert proper C++ library support
10626 ld_shlibs_CXX=no
10627 fi
10628 ;;
10629 esac
10630 ;;
10631 irix5* | irix6*)
10632 case $cc_basename in
10633 CC*)
10634 # SGI C++
10635 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'
10636
10637 # Archives containing C++ object files must be created using
10638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10639 # necessary to make sure instantiated templates are included
10640 # in the archive.
10641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10642 ;;
10643 *)
10644 if test "$GXX" = yes; then
10645 if test "$with_gnu_ld" = no; then
10646 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'
10647 else
10648 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'
10649 fi
10650 fi
10651 link_all_deplibs_CXX=yes
10652 ;;
10653 esac
10654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator_CXX=:
10656 ;;
10657 linux*)
10658 case $cc_basename in
10659 KCC*)
10660 # Kuck and Associates, Inc. (KAI) C++ Compiler
10661
10662 # KCC will only create a shared library if the output file
10663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10664 # to its proper name (with version) after linking.
10665 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'
10666 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'
10667 # Commands to make compiler produce verbose output that lists
10668 # what "hidden" libraries, object files and flags are used when
10669 # linking a shared library.
10670 #
10671 # There doesn't appear to be a way to prevent this compiler from
10672 # explicitly linking system object files so we need to strip them
10673 # from the output so that they don't get included in the library
10674 # dependencies.
10675 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'
10676
10677 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679
10680 # Archives containing C++ object files must be created using
10681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10683 ;;
10684 icpc*)
10685 # Intel C++
10686 with_gnu_ld=yes
10687 # version 8.0 and above of icpc choke on multiply defined symbols
10688 # if we add $predep_objects and $postdep_objects, however 7.1 and
10689 # earlier do not add the objects themselves.
10690 case `$CC -V 2>&1` in
10691 *"Version 7."*)
10692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 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'
10694 ;;
10695 *) # Version 8.0 or newer
10696 tmp_idyn=
10697 case $host_cpu in
10698 ia64*) tmp_idyn=' -i_dynamic';;
10699 esac
10700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10701 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'
10702 ;;
10703 esac
10704 archive_cmds_need_lc_CXX=no
10705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10708 ;;
10709 pgCC*)
10710 # Portland Group C++ compiler
10711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10712 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'
10713
10714 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10716 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'
10717 ;;
10718 cxx*)
10719 # Compaq C++
10720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 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'
10722
10723 runpath_var=LD_RUN_PATH
10724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10725 hardcode_libdir_separator_CXX=:
10726
10727 # Commands to make compiler produce verbose output that lists
10728 # what "hidden" libraries, object files and flags are used when
10729 # linking a shared library.
10730 #
10731 # There doesn't appear to be a way to prevent this compiler from
10732 # explicitly linking system object files so we need to strip them
10733 # from the output so that they don't get included in the library
10734 # dependencies.
10735 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'
10736 ;;
10737 esac
10738 ;;
10739 lynxos*)
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10742 ;;
10743 m88k*)
10744 # FIXME: insert proper C++ library support
10745 ld_shlibs_CXX=no
10746 ;;
10747 mvs*)
10748 case $cc_basename in
10749 cxx*)
10750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 *)
10754 # FIXME: insert proper C++ library support
10755 ld_shlibs_CXX=no
10756 ;;
10757 esac
10758 ;;
10759 netbsd*)
10760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10761 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10762 wlarc=
10763 hardcode_libdir_flag_spec_CXX='-R$libdir'
10764 hardcode_direct_CXX=yes
10765 hardcode_shlibpath_var_CXX=no
10766 fi
10767 # Workaround some broken pre-1.5 toolchains
10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10769 ;;
10770 openbsd2*)
10771 # C++ shared libraries are fairly broken
10772 ld_shlibs_CXX=no
10773 ;;
10774 openbsd*)
10775 hardcode_direct_CXX=yes
10776 hardcode_shlibpath_var_CXX=no
10777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10781 export_dynamic_flag_spec_CXX='${wl}-E'
10782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10783 fi
10784 output_verbose_link_cmd='echo'
10785 ;;
10786 osf3*)
10787 case $cc_basename in
10788 KCC*)
10789 # Kuck and Associates, Inc. (KAI) C++ Compiler
10790
10791 # KCC will only create a shared library if the output file
10792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10793 # to its proper name (with version) after linking.
10794 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'
10795
10796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10797 hardcode_libdir_separator_CXX=:
10798
10799 # Archives containing C++ object files must be created using
10800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10802
10803 ;;
10804 RCC*)
10805 # Rational C++ 2.4.1
10806 # FIXME: insert proper C++ library support
10807 ld_shlibs_CXX=no
10808 ;;
10809 cxx*)
10810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10811 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'
10812
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10814 hardcode_libdir_separator_CXX=:
10815
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10819 #
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10823 # dependencies.
10824 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'
10825 ;;
10826 *)
10827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10829 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'
10830
10831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10832 hardcode_libdir_separator_CXX=:
10833
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10838
10839 else
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10842 fi
10843 ;;
10844 esac
10845 ;;
10846 osf4* | osf5*)
10847 case $cc_basename in
10848 KCC*)
10849 # Kuck and Associates, Inc. (KAI) C++ Compiler
10850
10851 # KCC will only create a shared library if the output file
10852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10853 # to its proper name (with version) after linking.
10854 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'
10855
10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10857 hardcode_libdir_separator_CXX=:
10858
10859 # Archives containing C++ object files must be created using
10860 # the KAI C++ compiler.
10861 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10862 ;;
10863 RCC*)
10864 # Rational C++ 2.4.1
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10867 ;;
10868 cxx*)
10869 allow_undefined_flag_CXX=' -expect_unresolved \*'
10870 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'
10871 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10872 echo "-hidden">> $lib.exp~
10873 $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~
10874 $rm $lib.exp'
10875
10876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10877 hardcode_libdir_separator_CXX=:
10878
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 #
10883 # There doesn't appear to be a way to prevent this compiler from
10884 # explicitly linking system object files so we need to strip them
10885 # from the output so that they don't get included in the library
10886 # dependencies.
10887 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'
10888 ;;
10889 *)
10890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10892 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'
10893
10894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10896
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10901
10902 else
10903 # FIXME: insert proper C++ library support
10904 ld_shlibs_CXX=no
10905 fi
10906 ;;
10907 esac
10908 ;;
10909 psos*)
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10912 ;;
10913 sco*)
10914 archive_cmds_need_lc_CXX=no
10915 case $cc_basename in
10916 CC*)
10917 # FIXME: insert proper C++ library support
10918 ld_shlibs_CXX=no
10919 ;;
10920 *)
10921 # FIXME: insert proper C++ library support
10922 ld_shlibs_CXX=no
10923 ;;
10924 esac
10925 ;;
10926 sunos4*)
10927 case $cc_basename in
10928 CC*)
10929 # Sun C++ 4.x
10930 # FIXME: insert proper C++ library support
10931 ld_shlibs_CXX=no
10932 ;;
10933 lcc*)
10934 # Lucid
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10937 ;;
10938 *)
10939 # FIXME: insert proper C++ library support
10940 ld_shlibs_CXX=no
10941 ;;
10942 esac
10943 ;;
10944 solaris*)
10945 case $cc_basename in
10946 CC*)
10947 # Sun C++ 4.2, 5.x and Centerline C++
10948 archive_cmds_need_lc_CXX=yes
10949 no_undefined_flag_CXX=' -zdefs'
10950 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10951 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10952 $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'
10953
10954 hardcode_libdir_flag_spec_CXX='-R$libdir'
10955 hardcode_shlibpath_var_CXX=no
10956 case $host_os in
10957 solaris2.[0-5] | solaris2.[0-5].*) ;;
10958 *)
10959 # The C++ compiler is used as linker so we must use $wl
10960 # flag to pass the commands to the underlying system
10961 # linker. We must also pass each convience library through
10962 # to the system linker between allextract/defaultextract.
10963 # The C++ compiler will combine linker options so we
10964 # cannot just pass the convience library names through
10965 # without $wl.
10966 # Supported since Solaris 2.6 (maybe 2.5.1?)
10967 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'
10968 ;;
10969 esac
10970 link_all_deplibs_CXX=yes
10971
10972 output_verbose_link_cmd='echo'
10973
10974 # Archives containing C++ object files must be created using
10975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10976 # necessary to make sure instantiated templates are included
10977 # in the archive.
10978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10979 ;;
10980 gcx*)
10981 # Green Hills C++ Compiler
10982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10983
10984 # The C++ compiler must be used to create the archive.
10985 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10986 ;;
10987 *)
10988 # GNU C++ compiler with Solaris linker
10989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10990 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10991 if $CC --version | grep -v '^2\.7' > /dev/null; then
10992 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10994 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10995
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
10999 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11000 else
11001 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11002 # platform.
11003 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11004 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11005 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11006
11007 # Commands to make compiler produce verbose output that lists
11008 # what "hidden" libraries, object files and flags are used when
11009 # linking a shared library.
11010 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11011 fi
11012
11013 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11014 fi
11015 ;;
11016 esac
11017 ;;
11018 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11019 archive_cmds_need_lc_CXX=no
11020 ;;
11021 tandem*)
11022 case $cc_basename in
11023 NCC*)
11024 # NonStop-UX NCC 3.20
11025 # FIXME: insert proper C++ library support
11026 ld_shlibs_CXX=no
11027 ;;
11028 *)
11029 # FIXME: insert proper C++ library support
11030 ld_shlibs_CXX=no
11031 ;;
11032 esac
11033 ;;
11034 vxworks*)
11035 # FIXME: insert proper C++ library support
11036 ld_shlibs_CXX=no
11037 ;;
11038 *)
11039 # FIXME: insert proper C++ library support
11040 ld_shlibs_CXX=no
11041 ;;
11042 esac
11043 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11044 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11045 test "$ld_shlibs_CXX" = no && can_build_shared=no
11046
11047 GCC_CXX="$GXX"
11048 LD_CXX="$LD"
11049
11050
11051 cat > conftest.$ac_ext <<EOF
11052 class Foo
11053 {
11054 public:
11055 Foo (void) { a = 0; }
11056 private:
11057 int a;
11058 };
11059 EOF
11060
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; then
11066 # Parse the compiler output and extract the necessary
11067 # objects, libraries and library flags.
11068
11069 # Sentinel used to keep track of whether or not we are before
11070 # the conftest object file.
11071 pre_test_object_deps_done=no
11072
11073 # The `*' in the case matches for architectures that use `case' in
11074 # $output_verbose_cmd can trigger glob expansion during the loop
11075 # eval without this substitution.
11076 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11077
11078 for p in `eval $output_verbose_link_cmd`; do
11079 case $p in
11080
11081 -L* | -R* | -l*)
11082 # Some compilers place space between "-{L,R}" and the path.
11083 # Remove the space.
11084 if test $p = "-L" \
11085 || test $p = "-R"; then
11086 prev=$p
11087 continue
11088 else
11089 prev=
11090 fi
11091
11092 if test "$pre_test_object_deps_done" = no; then
11093 case $p in
11094 -L* | -R*)
11095 # Internal compiler library paths should come after those
11096 # provided the user. The postdeps already come after the
11097 # user supplied libs so there is no need to process them.
11098 if test -z "$compiler_lib_search_path_CXX"; then
11099 compiler_lib_search_path_CXX="${prev}${p}"
11100 else
11101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11102 fi
11103 ;;
11104 # The "-l" case would never come before the object being
11105 # linked, so don't bother handling this case.
11106 esac
11107 else
11108 if test -z "$postdeps_CXX"; then
11109 postdeps_CXX="${prev}${p}"
11110 else
11111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11112 fi
11113 fi
11114 ;;
11115
11116 *.$objext)
11117 # This assumes that the test object file only shows up
11118 # once in the compiler output.
11119 if test "$p" = "conftest.$objext"; then
11120 pre_test_object_deps_done=yes
11121 continue
11122 fi
11123
11124 if test "$pre_test_object_deps_done" = no; then
11125 if test -z "$predep_objects_CXX"; then
11126 predep_objects_CXX="$p"
11127 else
11128 predep_objects_CXX="$predep_objects_CXX $p"
11129 fi
11130 else
11131 if test -z "$postdep_objects_CXX"; then
11132 postdep_objects_CXX="$p"
11133 else
11134 postdep_objects_CXX="$postdep_objects_CXX $p"
11135 fi
11136 fi
11137 ;;
11138
11139 *) ;; # Ignore the rest.
11140
11141 esac
11142 done
11143
11144 # Clean up.
11145 rm -f a.out a.exe
11146 else
11147 echo "libtool.m4: error: problem compiling CXX test program"
11148 fi
11149
11150 $rm -f confest.$objext
11151
11152 # PORTME: override above test on systems where it is broken
11153 case $host_os in
11154 solaris*)
11155 case $cc_basename in
11156 CC*)
11157 # Adding this requires a known-good setup of shared libraries for
11158 # Sun compiler versions before 5.6, else PIC objects from an old
11159 # archive will be linked into the output, leading to subtle bugs.
11160 postdeps_CXX='-lCstd -lCrun'
11161 ;;
11162 esac
11163 esac
11164
11165
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11168 esac
11169
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11173
11174 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11176
11177 # C++ specific cases for pic, static, wl, etc.
11178 if test "$GXX" = yes; then
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 lt_prog_compiler_static_CXX='-static'
11181
11182 case $host_os in
11183 aix*)
11184 # All AIX code is PIC.
11185 if test "$host_cpu" = ia64; then
11186 # AIX 5 now supports IA64 processor
11187 lt_prog_compiler_static_CXX='-Bstatic'
11188 fi
11189 ;;
11190 amigaos*)
11191 # FIXME: we need at least 68020 code to build shared libraries, but
11192 # adding the `-m68020' flag to GCC prevents building anything better,
11193 # like `-m68040'.
11194 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11195 ;;
11196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197 # PIC is the default for these OSes.
11198 ;;
11199 mingw* | os2* | pw32*)
11200 # This hack is so that the source file can tell whether it is being
11201 # built for inclusion in a dll (and should export symbols for example).
11202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11203 ;;
11204 darwin* | rhapsody*)
11205 # PIC is the default on this platform
11206 # Common symbols not allowed in MH_DYLIB files
11207 lt_prog_compiler_pic_CXX='-fno-common'
11208 ;;
11209 *djgpp*)
11210 # DJGPP does not support shared libraries at all
11211 lt_prog_compiler_pic_CXX=
11212 ;;
11213 sysv4*MP*)
11214 if test -d /usr/nec; then
11215 lt_prog_compiler_pic_CXX=-Kconform_pic
11216 fi
11217 ;;
11218 hpux*)
11219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11220 # not for PA HP-UX.
11221 case $host_cpu in
11222 hppa*64*|ia64*)
11223 ;;
11224 *)
11225 lt_prog_compiler_pic_CXX='-fPIC'
11226 ;;
11227 esac
11228 ;;
11229 *)
11230 lt_prog_compiler_pic_CXX='-fPIC'
11231 ;;
11232 esac
11233 else
11234 case $host_os in
11235 aix4* | aix5*)
11236 # All AIX code is PIC.
11237 if test "$host_cpu" = ia64; then
11238 # AIX 5 now supports IA64 processor
11239 lt_prog_compiler_static_CXX='-Bstatic'
11240 else
11241 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11242 fi
11243 ;;
11244 chorus*)
11245 case $cc_basename in
11246 cxch68*)
11247 # Green Hills C++ Compiler
11248 # _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"
11249 ;;
11250 esac
11251 ;;
11252 darwin*)
11253 # PIC is the default on this platform
11254 # Common symbols not allowed in MH_DYLIB files
11255 case $cc_basename in
11256 xlc*)
11257 lt_prog_compiler_pic_CXX='-qnocommon'
11258 lt_prog_compiler_wl_CXX='-Wl,'
11259 ;;
11260 esac
11261 ;;
11262 dgux*)
11263 case $cc_basename in
11264 ec++*)
11265 lt_prog_compiler_pic_CXX='-KPIC'
11266 ;;
11267 ghcx*)
11268 # Green Hills C++ Compiler
11269 lt_prog_compiler_pic_CXX='-pic'
11270 ;;
11271 *)
11272 ;;
11273 esac
11274 ;;
11275 freebsd* | kfreebsd*-gnu | dragonfly*)
11276 # FreeBSD uses GNU C++
11277 ;;
11278 hpux9* | hpux10* | hpux11*)
11279 case $cc_basename in
11280 CC*)
11281 lt_prog_compiler_wl_CXX='-Wl,'
11282 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11283 if test "$host_cpu" != ia64; then
11284 lt_prog_compiler_pic_CXX='+Z'
11285 fi
11286 ;;
11287 aCC*)
11288 lt_prog_compiler_wl_CXX='-Wl,'
11289 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11290 case $host_cpu in
11291 hppa*64*|ia64*)
11292 # +Z the default
11293 ;;
11294 *)
11295 lt_prog_compiler_pic_CXX='+Z'
11296 ;;
11297 esac
11298 ;;
11299 *)
11300 ;;
11301 esac
11302 ;;
11303 irix5* | irix6* | nonstopux*)
11304 case $cc_basename in
11305 CC*)
11306 lt_prog_compiler_wl_CXX='-Wl,'
11307 lt_prog_compiler_static_CXX='-non_shared'
11308 # CC pic flag -KPIC is the default.
11309 ;;
11310 *)
11311 ;;
11312 esac
11313 ;;
11314 linux*)
11315 case $cc_basename in
11316 KCC*)
11317 # KAI C++ Compiler
11318 lt_prog_compiler_wl_CXX='--backend -Wl,'
11319 lt_prog_compiler_pic_CXX='-fPIC'
11320 ;;
11321 icpc* | ecpc*)
11322 # Intel C++
11323 lt_prog_compiler_wl_CXX='-Wl,'
11324 lt_prog_compiler_pic_CXX='-KPIC'
11325 lt_prog_compiler_static_CXX='-static'
11326 ;;
11327 pgCC*)
11328 # Portland Group C++ compiler.
11329 lt_prog_compiler_wl_CXX='-Wl,'
11330 lt_prog_compiler_pic_CXX='-fpic'
11331 lt_prog_compiler_static_CXX='-Bstatic'
11332 ;;
11333 cxx*)
11334 # Compaq C++
11335 # Make sure the PIC flag is empty. It appears that all Alpha
11336 # Linux and Compaq Tru64 Unix objects are PIC.
11337 lt_prog_compiler_pic_CXX=
11338 lt_prog_compiler_static_CXX='-non_shared'
11339 ;;
11340 *)
11341 ;;
11342 esac
11343 ;;
11344 lynxos*)
11345 ;;
11346 m88k*)
11347 ;;
11348 mvs*)
11349 case $cc_basename in
11350 cxx*)
11351 lt_prog_compiler_pic_CXX='-W c,exportall'
11352 ;;
11353 *)
11354 ;;
11355 esac
11356 ;;
11357 netbsd*)
11358 ;;
11359 osf3* | osf4* | osf5*)
11360 case $cc_basename in
11361 KCC*)
11362 lt_prog_compiler_wl_CXX='--backend -Wl,'
11363 ;;
11364 RCC*)
11365 # Rational C++ 2.4.1
11366 lt_prog_compiler_pic_CXX='-pic'
11367 ;;
11368 cxx*)
11369 # Digital/Compaq C++
11370 lt_prog_compiler_wl_CXX='-Wl,'
11371 # Make sure the PIC flag is empty. It appears that all Alpha
11372 # Linux and Compaq Tru64 Unix objects are PIC.
11373 lt_prog_compiler_pic_CXX=
11374 lt_prog_compiler_static_CXX='-non_shared'
11375 ;;
11376 *)
11377 ;;
11378 esac
11379 ;;
11380 psos*)
11381 ;;
11382 sco*)
11383 case $cc_basename in
11384 CC*)
11385 lt_prog_compiler_pic_CXX='-fPIC'
11386 ;;
11387 *)
11388 ;;
11389 esac
11390 ;;
11391 solaris*)
11392 case $cc_basename in
11393 CC*)
11394 # Sun C++ 4.2, 5.x and Centerline C++
11395 lt_prog_compiler_pic_CXX='-KPIC'
11396 lt_prog_compiler_static_CXX='-Bstatic'
11397 lt_prog_compiler_wl_CXX='-Qoption ld '
11398 ;;
11399 gcx*)
11400 # Green Hills C++ Compiler
11401 lt_prog_compiler_pic_CXX='-PIC'
11402 ;;
11403 *)
11404 ;;
11405 esac
11406 ;;
11407 sunos4*)
11408 case $cc_basename in
11409 CC*)
11410 # Sun C++ 4.x
11411 lt_prog_compiler_pic_CXX='-pic'
11412 lt_prog_compiler_static_CXX='-Bstatic'
11413 ;;
11414 lcc*)
11415 # Lucid
11416 lt_prog_compiler_pic_CXX='-pic'
11417 ;;
11418 *)
11419 ;;
11420 esac
11421 ;;
11422 tandem*)
11423 case $cc_basename in
11424 NCC*)
11425 # NonStop-UX NCC 3.20
11426 lt_prog_compiler_pic_CXX='-KPIC'
11427 ;;
11428 *)
11429 ;;
11430 esac
11431 ;;
11432 unixware*)
11433 ;;
11434 vxworks*)
11435 ;;
11436 *)
11437 lt_prog_compiler_can_build_shared_CXX=no
11438 ;;
11439 esac
11440 fi
11441
11442 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11443 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11444
11445 #
11446 # Check to make sure the PIC flag actually works.
11447 #
11448 if test -n "$lt_prog_compiler_pic_CXX"; then
11449
11450 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11451 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11452 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455 lt_prog_compiler_pic_works_CXX=no
11456 ac_outfile=conftest.$ac_objext
11457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11458 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11459 # Insert the option either (1) after the last *FLAGS variable, or
11460 # (2) before a word containing "conftest.", or (3) at the end.
11461 # Note that $ac_compile itself does not contain backslashes and begins
11462 # with a dollar sign (not a hyphen), so the echo should work correctly.
11463 # The option is referenced via a variable to avoid confusing sed.
11464 lt_compile=`echo "$ac_compile" | $SED \
11465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11467 -e 's:$: $lt_compiler_flag:'`
11468 (eval echo "\"\$as_me:11468: $lt_compile\"" >&5)
11469 (eval "$lt_compile" 2>conftest.err)
11470 ac_status=$?
11471 cat conftest.err >&5
11472 echo "$as_me:11472: \$? = $ac_status" >&5
11473 if (exit $ac_status) && test -s "$ac_outfile"; then
11474 # The compiler can only warn and ignore the option if not recognized
11475 # So say no if there are warnings other than the usual output.
11476 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11477 $SED '/^$/d' conftest.err >conftest.er2
11478 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11479 lt_prog_compiler_pic_works_CXX=yes
11480 fi
11481 fi
11482 $rm conftest*
11483
11484 fi
11485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11486 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11487
11488 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11489 case $lt_prog_compiler_pic_CXX in
11490 "" | " "*) ;;
11491 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11492 esac
11493 else
11494 lt_prog_compiler_pic_CXX=
11495 lt_prog_compiler_can_build_shared_CXX=no
11496 fi
11497
11498 fi
11499 case $host_os in
11500 # For platforms which do not support PIC, -DPIC is meaningless:
11501 *djgpp*)
11502 lt_prog_compiler_pic_CXX=
11503 ;;
11504 *)
11505 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11506 ;;
11507 esac
11508
11509 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514 lt_cv_prog_compiler_c_o_CXX=no
11515 $rm -r conftest 2>/dev/null
11516 mkdir conftest
11517 cd conftest
11518 mkdir out
11519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11520
11521 lt_compiler_flag="-o out/conftest2.$ac_objext"
11522 # Insert the option either (1) after the last *FLAGS variable, or
11523 # (2) before a word containing "conftest.", or (3) at the end.
11524 # Note that $ac_compile itself does not contain backslashes and begins
11525 # with a dollar sign (not a hyphen), so the echo should work correctly.
11526 lt_compile=`echo "$ac_compile" | $SED \
11527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11529 -e 's:$: $lt_compiler_flag:'`
11530 (eval echo "\"\$as_me:11530: $lt_compile\"" >&5)
11531 (eval "$lt_compile" 2>out/conftest.err)
11532 ac_status=$?
11533 cat out/conftest.err >&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11536 then
11537 # The compiler can only warn and ignore the option if not recognized
11538 # So say no if there are warnings
11539 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11540 $SED '/^$/d' out/conftest.err >out/conftest.er2
11541 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11542 lt_cv_prog_compiler_c_o_CXX=yes
11543 fi
11544 fi
11545 chmod u+w . 2>&5
11546 $rm conftest*
11547 # SGI C++ compiler will create directory out/ii_files/ for
11548 # template instantiation
11549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11550 $rm out/* && rmdir out
11551 cd ..
11552 rmdir conftest
11553 $rm conftest*
11554
11555 fi
11556 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11558
11559
11560 hard_links="nottested"
11561 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11562 # do not overwrite the value of need_locks provided by the user
11563 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11565 hard_links=yes
11566 $rm conftest*
11567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11568 touch conftest.a
11569 ln conftest.a conftest.b 2>&5 || hard_links=no
11570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11571 echo "$as_me:$LINENO: result: $hard_links" >&5
11572 echo "${ECHO_T}$hard_links" >&6
11573 if test "$hard_links" = no; then
11574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11576 need_locks=warn
11577 fi
11578 else
11579 need_locks=no
11580 fi
11581
11582 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11584
11585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11586 case $host_os in
11587 aix4* | aix5*)
11588 # If we're using GNU nm, then we don't want the "-C" option.
11589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11591 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'
11592 else
11593 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'
11594 fi
11595 ;;
11596 pw32*)
11597 export_symbols_cmds_CXX="$ltdll_cmds"
11598 ;;
11599 cygwin* | mingw*)
11600 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'
11601 ;;
11602 *)
11603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11604 ;;
11605 esac
11606
11607 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11608 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11609 test "$ld_shlibs_CXX" = no && can_build_shared=no
11610
11611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11612 if test "$GCC" = yes; then
11613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11614 fi
11615
11616 #
11617 # Do we need to explicitly link libc?
11618 #
11619 case "x$archive_cmds_need_lc_CXX" in
11620 x|xyes)
11621 # Assume -lc should be added
11622 archive_cmds_need_lc_CXX=yes
11623
11624 if test "$enable_shared" = yes && test "$GCC" = yes; then
11625 case $archive_cmds_CXX in
11626 *'~'*)
11627 # FIXME: we may have to deal with multi-command sequences.
11628 ;;
11629 '$CC '*)
11630 # Test whether the compiler implicitly links with -lc since on some
11631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11632 # to ld, don't add -lc before -lgcc.
11633 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11634 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11635 $rm conftest*
11636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11637
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } 2>conftest.err; then
11643 soname=conftest
11644 lib=conftest
11645 libobjs=conftest.$ac_objext
11646 deplibs=
11647 wl=$lt_prog_compiler_wl_CXX
11648 compiler_flags=-v
11649 linker_flags=-v
11650 verstring=
11651 output_objdir=.
11652 libname=conftest
11653 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11654 allow_undefined_flag_CXX=
11655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11656 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }
11660 then
11661 archive_cmds_need_lc_CXX=no
11662 else
11663 archive_cmds_need_lc_CXX=yes
11664 fi
11665 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11666 else
11667 cat conftest.err 1>&5
11668 fi
11669 $rm conftest*
11670 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11671 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11672 ;;
11673 esac
11674 fi
11675 ;;
11676 esac
11677
11678 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11679 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11680 library_names_spec=
11681 libname_spec='lib$name'
11682 soname_spec=
11683 shrext_cmds=".so"
11684 postinstall_cmds=
11685 postuninstall_cmds=
11686 finish_cmds=
11687 finish_eval=
11688 shlibpath_var=
11689 shlibpath_overrides_runpath=unknown
11690 version_type=none
11691 dynamic_linker="$host_os ld.so"
11692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11693 if test "$GCC" = yes; then
11694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11695 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11696 # if the path contains ";" then we assume it to be the separator
11697 # otherwise default to the standard path separator (i.e. ":") - it is
11698 # assumed that no part of a normal pathname contains ";" but that should
11699 # okay in the real world where ";" in dirpaths is itself problematic.
11700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11701 else
11702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11703 fi
11704 else
11705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11706 fi
11707 need_lib_prefix=unknown
11708 hardcode_into_libs=no
11709
11710 # when you set need_version to no, make sure it does not cause -set_version
11711 # flags to be left without arguments
11712 need_version=unknown
11713
11714 case $host_os in
11715 aix3*)
11716 version_type=linux
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11718 shlibpath_var=LIBPATH
11719
11720 # AIX 3 has no versioning support, so we append a major version to the name.
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 ;;
11723
11724 aix4* | aix5*)
11725 version_type=linux
11726 need_lib_prefix=no
11727 need_version=no
11728 hardcode_into_libs=yes
11729 if test "$host_cpu" = ia64; then
11730 # AIX 5 supports IA64
11731 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 else
11734 # With GCC up to 2.95.x, collect2 would create an import file
11735 # for dependence libraries. The import file would start with
11736 # the line `#! .'. This would cause the generated library to
11737 # depend on `.', always an invalid library. This was fixed in
11738 # development snapshots of GCC prior to 3.0.
11739 case $host_os in
11740 aix4 | aix4.[01] | aix4.[01].*)
11741 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11742 echo ' yes '
11743 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11744 :
11745 else
11746 can_build_shared=no
11747 fi
11748 ;;
11749 esac
11750 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11751 # soname into executable. Probably we can add versioning support to
11752 # collect2, so additional links can be useful in future.
11753 if test "$aix_use_runtimelinking" = yes; then
11754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11755 # instead of lib<name>.a to let people know that these are not
11756 # typical AIX shared libraries.
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 else
11759 # We preserve .a as extension for shared libraries through AIX4.2
11760 # and later when we are not doing run time linking.
11761 library_names_spec='${libname}${release}.a $libname.a'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 fi
11764 shlibpath_var=LIBPATH
11765 fi
11766 ;;
11767
11768 amigaos*)
11769 library_names_spec='$libname.ixlibrary $libname.a'
11770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11771 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'
11772 ;;
11773
11774 beos*)
11775 library_names_spec='${libname}${shared_ext}'
11776 dynamic_linker="$host_os ld.so"
11777 shlibpath_var=LIBRARY_PATH
11778 ;;
11779
11780 bsdi[45]*)
11781 version_type=linux
11782 need_version=no
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11789 # the default ld.so.conf also contains /usr/contrib/lib and
11790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11791 # libtool to hard-code these into programs
11792 ;;
11793
11794 cygwin* | mingw* | pw32*)
11795 version_type=windows
11796 shrext_cmds=".dll"
11797 need_version=no
11798 need_lib_prefix=no
11799
11800 case $GCC,$host_os in
11801 yes,cygwin* | yes,mingw* | yes,pw32*)
11802 library_names_spec='$libname.dll.a'
11803 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11804 postinstall_cmds='base_file=`basename \${file}`~
11805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11806 dldir=$destdir/`dirname \$dlpath`~
11807 test -d \$dldir || mkdir -p \$dldir~
11808 $install_prog $dir/$dlname \$dldir/$dlname~
11809 chmod a+x \$dldir/$dlname'
11810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11811 dlpath=$dir/\$dldll~
11812 $rm \$dlpath'
11813 shlibpath_overrides_runpath=yes
11814
11815 case $host_os in
11816 cygwin*)
11817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11820 ;;
11821 mingw*)
11822 # MinGW DLLs use traditional 'lib' prefix
11823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11826 # It is most probably a Windows format PATH printed by
11827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11828 # path with ; separators, and with drive letters. We can handle the
11829 # drive letters (cygwin fileutils understands them), so leave them,
11830 # especially as we might pass files found there to a mingw objdump,
11831 # which wouldn't understand a cygwinified path. Ahh.
11832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11833 else
11834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11835 fi
11836 ;;
11837 pw32*)
11838 # pw32 DLLs use 'pw' prefix rather than 'lib'
11839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11840 ;;
11841 esac
11842 ;;
11843
11844 *)
11845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11846 ;;
11847 esac
11848 dynamic_linker='Win32 ld.exe'
11849 # FIXME: first we should search . and the directory the executable is in
11850 shlibpath_var=PATH
11851 ;;
11852
11853 darwin* | rhapsody*)
11854 dynamic_linker="$host_os dyld"
11855 version_type=darwin
11856 need_lib_prefix=no
11857 need_version=no
11858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11859 soname_spec='${libname}${release}${major}$shared_ext'
11860 shlibpath_overrides_runpath=yes
11861 shlibpath_var=DYLD_LIBRARY_PATH
11862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11863 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11864 if test "$GCC" = yes; then
11865 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"`
11866 else
11867 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11868 fi
11869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11870 ;;
11871
11872 dgux*)
11873 version_type=linux
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 ;;
11880
11881 freebsd1*)
11882 dynamic_linker=no
11883 ;;
11884
11885 kfreebsd*-gnu)
11886 version_type=linux
11887 need_lib_prefix=no
11888 need_version=no
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 dynamic_linker='GNU ld.so'
11895 ;;
11896
11897 freebsd* | dragonfly*)
11898 # DragonFly does not have aout. When/if they implement a new
11899 # versioning mechanism, adjust this.
11900 if test -x /usr/bin/objformat; then
11901 objformat=`/usr/bin/objformat`
11902 else
11903 case $host_os in
11904 freebsd[123]*) objformat=aout ;;
11905 *) objformat=elf ;;
11906 esac
11907 fi
11908 version_type=freebsd-$objformat
11909 case $version_type in
11910 freebsd-elf*)
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11912 need_version=no
11913 need_lib_prefix=no
11914 ;;
11915 freebsd-*)
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11917 need_version=yes
11918 ;;
11919 esac
11920 shlibpath_var=LD_LIBRARY_PATH
11921 case $host_os in
11922 freebsd2*)
11923 shlibpath_overrides_runpath=yes
11924 ;;
11925 freebsd3.[01]* | freebsdelf3.[01]*)
11926 shlibpath_overrides_runpath=yes
11927 hardcode_into_libs=yes
11928 ;;
11929 *) # from 3.2 on
11930 shlibpath_overrides_runpath=no
11931 hardcode_into_libs=yes
11932 ;;
11933 esac
11934 ;;
11935
11936 gnu*)
11937 version_type=linux
11938 need_lib_prefix=no
11939 need_version=no
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 hardcode_into_libs=yes
11944 ;;
11945
11946 hpux9* | hpux10* | hpux11*)
11947 # Give a soname corresponding to the major version so that dld.sl refuses to
11948 # link against other versions.
11949 version_type=sunos
11950 need_lib_prefix=no
11951 need_version=no
11952 case $host_cpu in
11953 ia64*)
11954 shrext_cmds='.so'
11955 hardcode_into_libs=yes
11956 dynamic_linker="$host_os dld.so"
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 if test "X$HPUX_IA64_MODE" = X32; then
11962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11963 else
11964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11965 fi
11966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11967 ;;
11968 hppa*64*)
11969 shrext_cmds='.sl'
11970 hardcode_into_libs=yes
11971 dynamic_linker="$host_os dld.sl"
11972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11978 ;;
11979 *)
11980 shrext_cmds='.sl'
11981 dynamic_linker="$host_os dld.sl"
11982 shlibpath_var=SHLIB_PATH
11983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 ;;
11987 esac
11988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11989 postinstall_cmds='chmod 555 $lib'
11990 ;;
11991
11992 irix5* | irix6* | nonstopux*)
11993 case $host_os in
11994 nonstopux*) version_type=nonstopux ;;
11995 *)
11996 if test "$lt_cv_prog_gnu_ld" = yes; then
11997 version_type=linux
11998 else
11999 version_type=irix
12000 fi ;;
12001 esac
12002 need_lib_prefix=no
12003 need_version=no
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12006 case $host_os in
12007 irix5* | nonstopux*)
12008 libsuff= shlibsuff=
12009 ;;
12010 *)
12011 case $LD in # libtool.m4 will add one of these switches to LD
12012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12013 libsuff= shlibsuff= libmagic=32-bit;;
12014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12015 libsuff=32 shlibsuff=N32 libmagic=N32;;
12016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12018 *) libsuff= shlibsuff= libmagic=never-match;;
12019 esac
12020 ;;
12021 esac
12022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12023 shlibpath_overrides_runpath=no
12024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12026 hardcode_into_libs=yes
12027 ;;
12028
12029 # No shared lib support for Linux oldld, aout, or coff.
12030 linux*oldld* | linux*aout* | linux*coff*)
12031 dynamic_linker=no
12032 ;;
12033
12034 # This must be Linux ELF.
12035 linux*)
12036 version_type=linux
12037 need_lib_prefix=no
12038 need_version=no
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=no
12044 # This implies no fast_install, which is unacceptable.
12045 # Some rework will be needed to allow for fast_install
12046 # before this can be enabled.
12047 hardcode_into_libs=yes
12048
12049 # Append ld.so.conf contents to the search path
12050 if test -f /etc/ld.so.conf; then
12051 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' ' '`
12052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12053 fi
12054
12055 # We used to test for /lib/ld.so.1 and disable shared libraries on
12056 # powerpc, because MkLinux only supported shared libraries with the
12057 # GNU dynamic linker. Since this was broken with cross compilers,
12058 # most powerpc-linux boxes support dynamic linking these days and
12059 # people can always --disable-shared, the test was removed, and we
12060 # assume the GNU/Linux dynamic linker is in use.
12061 dynamic_linker='GNU/Linux ld.so'
12062 ;;
12063
12064 knetbsd*-gnu)
12065 version_type=linux
12066 need_lib_prefix=no
12067 need_version=no
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=no
12072 hardcode_into_libs=yes
12073 dynamic_linker='GNU ld.so'
12074 ;;
12075
12076 netbsd*)
12077 version_type=sunos
12078 need_lib_prefix=no
12079 need_version=no
12080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12083 dynamic_linker='NetBSD (a.out) ld.so'
12084 else
12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12086 soname_spec='${libname}${release}${shared_ext}$major'
12087 dynamic_linker='NetBSD ld.elf_so'
12088 fi
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=yes
12091 hardcode_into_libs=yes
12092 ;;
12093
12094 newsos6)
12095 version_type=linux
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 shlibpath_overrides_runpath=yes
12099 ;;
12100
12101 nto-qnx*)
12102 version_type=linux
12103 need_lib_prefix=no
12104 need_version=no
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes
12109 ;;
12110
12111 openbsd*)
12112 version_type=sunos
12113 need_lib_prefix=no
12114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12115 case $host_os in
12116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12117 *) need_version=no ;;
12118 esac
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12123 case $host_os in
12124 openbsd2.[89] | openbsd2.[89].*)
12125 shlibpath_overrides_runpath=no
12126 ;;
12127 *)
12128 shlibpath_overrides_runpath=yes
12129 ;;
12130 esac
12131 else
12132 shlibpath_overrides_runpath=yes
12133 fi
12134 ;;
12135
12136 os2*)
12137 libname_spec='$name'
12138 shrext_cmds=".dll"
12139 need_lib_prefix=no
12140 library_names_spec='$libname${shared_ext} $libname.a'
12141 dynamic_linker='OS/2 ld.exe'
12142 shlibpath_var=LIBPATH
12143 ;;
12144
12145 osf3* | osf4* | osf5*)
12146 version_type=osf
12147 need_lib_prefix=no
12148 need_version=no
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12154 ;;
12155
12156 sco3.2v5*)
12157 version_type=osf
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 ;;
12162
12163 solaris*)
12164 version_type=linux
12165 need_lib_prefix=no
12166 need_version=no
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 # ldd complains unless libraries are executable
12173 postinstall_cmds='chmod +x $lib'
12174 ;;
12175
12176 sunos4*)
12177 version_type=sunos
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes
12182 if test "$with_gnu_ld" = yes; then
12183 need_lib_prefix=no
12184 fi
12185 need_version=yes
12186 ;;
12187
12188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189 version_type=linux
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 shlibpath_var=LD_LIBRARY_PATH
12193 case $host_vendor in
12194 sni)
12195 shlibpath_overrides_runpath=no
12196 need_lib_prefix=no
12197 export_dynamic_flag_spec='${wl}-Blargedynsym'
12198 runpath_var=LD_RUN_PATH
12199 ;;
12200 siemens)
12201 need_lib_prefix=no
12202 ;;
12203 motorola)
12204 need_lib_prefix=no
12205 need_version=no
12206 shlibpath_overrides_runpath=no
12207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12208 ;;
12209 esac
12210 ;;
12211
12212 sysv4*MP*)
12213 if test -d /usr/nec ;then
12214 version_type=linux
12215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12216 soname_spec='$libname${shared_ext}.$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 fi
12219 ;;
12220
12221 uts4*)
12222 version_type=linux
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 ;;
12227
12228 *)
12229 dynamic_linker=no
12230 ;;
12231 esac
12232 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12233 echo "${ECHO_T}$dynamic_linker" >&6
12234 test "$dynamic_linker" = no && can_build_shared=no
12235
12236 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12237 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12238 hardcode_action_CXX=
12239 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12240 test -n "$runpath_var_CXX" || \
12241 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12242
12243 # We can hardcode non-existant directories.
12244 if test "$hardcode_direct_CXX" != no &&
12245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12246 # have to relink, otherwise we might link with an installed library
12247 # when we should be linking with a yet-to-be-installed one
12248 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12249 test "$hardcode_minus_L_CXX" != no; then
12250 # Linking always hardcodes the temporary library directory.
12251 hardcode_action_CXX=relink
12252 else
12253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12254 hardcode_action_CXX=immediate
12255 fi
12256 else
12257 # We cannot hardcode anything, or else we can only hardcode existing
12258 # directories.
12259 hardcode_action_CXX=unsupported
12260 fi
12261 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12262 echo "${ECHO_T}$hardcode_action_CXX" >&6
12263
12264 if test "$hardcode_action_CXX" = relink; then
12265 # Fast installation is not supported
12266 enable_fast_install=no
12267 elif test "$shlibpath_overrides_runpath" = yes ||
12268 test "$enable_shared" = no; then
12269 # Fast installation is not necessary
12270 enable_fast_install=needless
12271 fi
12272
12273 striplib=
12274 old_striplib=
12275 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12276 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12277 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12278 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12279 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12280 echo "$as_me:$LINENO: result: yes" >&5
12281 echo "${ECHO_T}yes" >&6
12282 else
12283 # FIXME - insert some real tests, host_os isn't really good enough
12284 case $host_os in
12285 darwin*)
12286 if test -n "$STRIP" ; then
12287 striplib="$STRIP -x"
12288 echo "$as_me:$LINENO: result: yes" >&5
12289 echo "${ECHO_T}yes" >&6
12290 else
12291 echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12293 fi
12294 ;;
12295 *)
12296 echo "$as_me:$LINENO: result: no" >&5
12297 echo "${ECHO_T}no" >&6
12298 ;;
12299 esac
12300 fi
12301
12302 if test "x$enable_dlopen" != xyes; then
12303 enable_dlopen=unknown
12304 enable_dlopen_self=unknown
12305 enable_dlopen_self_static=unknown
12306 else
12307 lt_cv_dlopen=no
12308 lt_cv_dlopen_libs=
12309
12310 case $host_os in
12311 beos*)
12312 lt_cv_dlopen="load_add_on"
12313 lt_cv_dlopen_libs=
12314 lt_cv_dlopen_self=yes
12315 ;;
12316
12317 mingw* | pw32*)
12318 lt_cv_dlopen="LoadLibrary"
12319 lt_cv_dlopen_libs=
12320 ;;
12321
12322 cygwin*)
12323 lt_cv_dlopen="dlopen"
12324 lt_cv_dlopen_libs=
12325 ;;
12326
12327 darwin*)
12328 # if libdl is installed we need to link against it
12329 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12330 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12331 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334 ac_check_lib_save_LIBS=$LIBS
12335 LIBS="-ldl $LIBS"
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342
12343 /* Override any gcc2 internal prototype to avoid an error. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12349 char dlopen ();
12350 int
12351 main ()
12352 {
12353 dlopen ();
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_lib_dl_dlopen=yes
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 ac_cv_lib_dl_dlopen=no
12386 fi
12387 rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12393 if test $ac_cv_lib_dl_dlopen = yes; then
12394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12395 else
12396
12397 lt_cv_dlopen="dyld"
12398 lt_cv_dlopen_libs=
12399 lt_cv_dlopen_self=yes
12400
12401 fi
12402
12403 ;;
12404
12405 *)
12406 echo "$as_me:$LINENO: checking for shl_load" >&5
12407 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12408 if test "${ac_cv_func_shl_load+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define shl_load innocuous_shl_load
12420
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char shl_load (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12425
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12431
12432 #undef shl_load
12433
12434 /* Override any gcc2 internal prototype to avoid an error. */
12435 #ifdef __cplusplus
12436 extern "C"
12437 {
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12441 char shl_load ();
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12446 choke me
12447 #else
12448 char (*f) () = shl_load;
12449 #endif
12450 #ifdef __cplusplus
12451 }
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return f != shl_load;
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_cxx_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_func_shl_load=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 ac_cv_func_shl_load=no
12490 fi
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 fi
12494 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12495 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12496 if test $ac_cv_func_shl_load = yes; then
12497 lt_cv_dlopen="shl_load"
12498 else
12499 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12500 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504 ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-ldld $LIBS"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512
12513 /* Override any gcc2 internal prototype to avoid an error. */
12514 #ifdef __cplusplus
12515 extern "C"
12516 #endif
12517 /* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519 char shl_load ();
12520 int
12521 main ()
12522 {
12523 shl_load ();
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_cxx_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_lib_dld_shl_load=yes
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_cv_lib_dld_shl_load=no
12556 fi
12557 rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559 LIBS=$ac_check_lib_save_LIBS
12560 fi
12561 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12562 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12563 if test $ac_cv_lib_dld_shl_load = yes; then
12564 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12565 else
12566 echo "$as_me:$LINENO: checking for dlopen" >&5
12567 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12568 if test "${ac_cv_func_dlopen+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579 #define dlopen innocuous_dlopen
12580
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char dlopen (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12585
12586 #ifdef __STDC__
12587 # include <limits.h>
12588 #else
12589 # include <assert.h>
12590 #endif
12591
12592 #undef dlopen
12593
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 #ifdef __cplusplus
12596 extern "C"
12597 {
12598 #endif
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12601 char dlopen ();
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12606 choke me
12607 #else
12608 char (*f) () = dlopen;
12609 #endif
12610 #ifdef __cplusplus
12611 }
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 return f != dlopen;
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_cxx_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_func_dlopen=yes
12645 else
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_cv_func_dlopen=no
12650 fi
12651 rm -f conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 fi
12654 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12655 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12656 if test $ac_cv_func_dlopen = yes; then
12657 lt_cv_dlopen="dlopen"
12658 else
12659 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-ldl $LIBS"
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char dlopen ();
12680 int
12681 main ()
12682 {
12683 dlopen ();
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_cxx_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_dl_dlopen=yes
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ac_cv_lib_dl_dlopen=no
12716 fi
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12720 fi
12721 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12723 if test $ac_cv_lib_dl_dlopen = yes; then
12724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12725 else
12726 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12727 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12728 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lsvld $LIBS"
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h. */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739
12740 /* Override any gcc2 internal prototype to avoid an error. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 /* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746 char dlopen ();
12747 int
12748 main ()
12749 {
12750 dlopen ();
12751 ;
12752 return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_cxx_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_svld_dlopen=yes
12778 else
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 ac_cv_lib_svld_dlopen=no
12783 fi
12784 rm -f conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12789 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12790 if test $ac_cv_lib_svld_dlopen = yes; then
12791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12792 else
12793 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12794 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12795 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 ac_check_lib_save_LIBS=$LIBS
12799 LIBS="-ldld $LIBS"
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806
12807 /* Override any gcc2 internal prototype to avoid an error. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12813 char dld_link ();
12814 int
12815 main ()
12816 {
12817 dld_link ();
12818 ;
12819 return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_cxx_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_cv_lib_dld_dld_link=yes
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 ac_cv_lib_dld_dld_link=no
12850 fi
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 LIBS=$ac_check_lib_save_LIBS
12854 fi
12855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12856 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12857 if test $ac_cv_lib_dld_dld_link = yes; then
12858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12859 fi
12860
12861
12862 fi
12863
12864
12865 fi
12866
12867
12868 fi
12869
12870
12871 fi
12872
12873
12874 fi
12875
12876 ;;
12877 esac
12878
12879 if test "x$lt_cv_dlopen" != xno; then
12880 enable_dlopen=yes
12881 else
12882 enable_dlopen=no
12883 fi
12884
12885 case $lt_cv_dlopen in
12886 dlopen)
12887 save_CPPFLAGS="$CPPFLAGS"
12888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12889
12890 save_LDFLAGS="$LDFLAGS"
12891 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12892
12893 save_LIBS="$LIBS"
12894 LIBS="$lt_cv_dlopen_libs $LIBS"
12895
12896 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12897 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12898 if test "${lt_cv_dlopen_self+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 if test "$cross_compiling" = yes; then :
12902 lt_cv_dlopen_self=cross
12903 else
12904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12905 lt_status=$lt_dlunknown
12906 cat > conftest.$ac_ext <<EOF
12907 #line 12907 "configure"
12908 #include "confdefs.h"
12909
12910 #if HAVE_DLFCN_H
12911 #include <dlfcn.h>
12912 #endif
12913
12914 #include <stdio.h>
12915
12916 #ifdef RTLD_GLOBAL
12917 # define LT_DLGLOBAL RTLD_GLOBAL
12918 #else
12919 # ifdef DL_GLOBAL
12920 # define LT_DLGLOBAL DL_GLOBAL
12921 # else
12922 # define LT_DLGLOBAL 0
12923 # endif
12924 #endif
12925
12926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12927 find out it does not work in some platform. */
12928 #ifndef LT_DLLAZY_OR_NOW
12929 # ifdef RTLD_LAZY
12930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12931 # else
12932 # ifdef DL_LAZY
12933 # define LT_DLLAZY_OR_NOW DL_LAZY
12934 # else
12935 # ifdef RTLD_NOW
12936 # define LT_DLLAZY_OR_NOW RTLD_NOW
12937 # else
12938 # ifdef DL_NOW
12939 # define LT_DLLAZY_OR_NOW DL_NOW
12940 # else
12941 # define LT_DLLAZY_OR_NOW 0
12942 # endif
12943 # endif
12944 # endif
12945 # endif
12946 #endif
12947
12948 #ifdef __cplusplus
12949 extern "C" void exit (int);
12950 #endif
12951
12952 void fnord() { int i=42;}
12953 int main ()
12954 {
12955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12956 int status = $lt_dlunknown;
12957
12958 if (self)
12959 {
12960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12962 /* dlclose (self); */
12963 }
12964
12965 exit (status);
12966 }
12967 EOF
12968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969 (eval $ac_link) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12973 (./conftest; exit; ) >&5 2>/dev/null
12974 lt_status=$?
12975 case x$lt_status in
12976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12978 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12979 esac
12980 else :
12981 # compilation failed
12982 lt_cv_dlopen_self=no
12983 fi
12984 fi
12985 rm -fr conftest*
12986
12987
12988 fi
12989 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12990 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12991
12992 if test "x$lt_cv_dlopen_self" = xyes; then
12993 LDFLAGS="$LDFLAGS $link_static_flag"
12994 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12995 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12996 if test "${lt_cv_dlopen_self_static+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 if test "$cross_compiling" = yes; then :
13000 lt_cv_dlopen_self_static=cross
13001 else
13002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13003 lt_status=$lt_dlunknown
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13005 "configure"
13006 #include "confdefs.h"
13007
13008 #if HAVE_DLFCN_H
13009 #include <dlfcn.h>
13010 #endif
13011
13012 #include <stdio.h>
13013
13014 #ifdef RTLD_GLOBAL
13015 # define LT_DLGLOBAL RTLD_GLOBAL
13016 #else
13017 # ifdef DL_GLOBAL
13018 # define LT_DLGLOBAL DL_GLOBAL
13019 # else
13020 # define LT_DLGLOBAL 0
13021 # endif
13022 #endif
13023
13024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13025 find out it does not work in some platform. */
13026 #ifndef LT_DLLAZY_OR_NOW
13027 # ifdef RTLD_LAZY
13028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13029 # else
13030 # ifdef DL_LAZY
13031 # define LT_DLLAZY_OR_NOW DL_LAZY
13032 # else
13033 # ifdef RTLD_NOW
13034 # define LT_DLLAZY_OR_NOW RTLD_NOW
13035 # else
13036 # ifdef DL_NOW
13037 # define LT_DLLAZY_OR_NOW DL_NOW
13038 # else
13039 # define LT_DLLAZY_OR_NOW 0
13040 # endif
13041 # endif
13042 # endif
13043 # endif
13044 #endif
13045
13046 #ifdef __cplusplus
13047 extern "C" void exit (int);
13048 #endif
13049
13050 void fnord() { int i=42;}
13051 int main ()
13052 {
13053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13054 int status = $lt_dlunknown;
13055
13056 if (self)
13057 {
13058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060 /* dlclose (self); */
13061 }
13062
13063 exit (status);
13064 }
13065 EOF
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13071 (./conftest; exit; ) >&5 2>/dev/null
13072 lt_status=$?
13073 case x$lt_status in
13074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13076 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13077 esac
13078 else :
13079 # compilation failed
13080 lt_cv_dlopen_self_static=no
13081 fi
13082 fi
13083 rm -fr conftest*
13084
13085
13086 fi
13087 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13088 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13089 fi
13090
13091 CPPFLAGS="$save_CPPFLAGS"
13092 LDFLAGS="$save_LDFLAGS"
13093 LIBS="$save_LIBS"
13094 ;;
13095 esac
13096
13097 case $lt_cv_dlopen_self in
13098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13099 *) enable_dlopen_self=unknown ;;
13100 esac
13101
13102 case $lt_cv_dlopen_self_static in
13103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13104 *) enable_dlopen_self_static=unknown ;;
13105 esac
13106 fi
13107
13108
13109 # The else clause should only fire when bootstrapping the
13110 # libtool distribution, otherwise you forgot to ship ltmain.sh
13111 # with your package, and you will get complaints that there are
13112 # no rules to generate ltmain.sh.
13113 if test -f "$ltmain"; then
13114 # See if we are running on zsh, and set the options which allow our commands through
13115 # without removal of \ escapes.
13116 if test -n "${ZSH_VERSION+set}" ; then
13117 setopt NO_GLOB_SUBST
13118 fi
13119 # Now quote all the things that may contain metacharacters while being
13120 # careful not to overquote the AC_SUBSTed values. We take copies of the
13121 # variables and quote the copies for generation of the libtool script.
13122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13123 SED SHELL STRIP \
13124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13126 deplibs_check_method reload_flag reload_cmds need_locks \
13127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13128 lt_cv_sys_global_symbol_to_c_name_address \
13129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13130 old_postinstall_cmds old_postuninstall_cmds \
13131 compiler_CXX \
13132 CC_CXX \
13133 LD_CXX \
13134 lt_prog_compiler_wl_CXX \
13135 lt_prog_compiler_pic_CXX \
13136 lt_prog_compiler_static_CXX \
13137 lt_prog_compiler_no_builtin_flag_CXX \
13138 export_dynamic_flag_spec_CXX \
13139 thread_safe_flag_spec_CXX \
13140 whole_archive_flag_spec_CXX \
13141 enable_shared_with_static_runtimes_CXX \
13142 old_archive_cmds_CXX \
13143 old_archive_from_new_cmds_CXX \
13144 predep_objects_CXX \
13145 postdep_objects_CXX \
13146 predeps_CXX \
13147 postdeps_CXX \
13148 compiler_lib_search_path_CXX \
13149 archive_cmds_CXX \
13150 archive_expsym_cmds_CXX \
13151 postinstall_cmds_CXX \
13152 postuninstall_cmds_CXX \
13153 old_archive_from_expsyms_cmds_CXX \
13154 allow_undefined_flag_CXX \
13155 no_undefined_flag_CXX \
13156 export_symbols_cmds_CXX \
13157 hardcode_libdir_flag_spec_CXX \
13158 hardcode_libdir_flag_spec_ld_CXX \
13159 hardcode_libdir_separator_CXX \
13160 hardcode_automatic_CXX \
13161 module_cmds_CXX \
13162 module_expsym_cmds_CXX \
13163 lt_cv_prog_compiler_c_o_CXX \
13164 exclude_expsyms_CXX \
13165 include_expsyms_CXX; do
13166
13167 case $var in
13168 old_archive_cmds_CXX | \
13169 old_archive_from_new_cmds_CXX | \
13170 archive_cmds_CXX | \
13171 archive_expsym_cmds_CXX | \
13172 module_cmds_CXX | \
13173 module_expsym_cmds_CXX | \
13174 old_archive_from_expsyms_cmds_CXX | \
13175 export_symbols_cmds_CXX | \
13176 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13177 postinstall_cmds | postuninstall_cmds | \
13178 old_postinstall_cmds | old_postuninstall_cmds | \
13179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13180 # Double-quote double-evaled strings.
13181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13182 ;;
13183 *)
13184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13185 ;;
13186 esac
13187 done
13188
13189 case $lt_echo in
13190 *'\$0 --fallback-echo"')
13191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13192 ;;
13193 esac
13194
13195 cfgfile="$ofile"
13196
13197 cat <<__EOF__ >> "$cfgfile"
13198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13199
13200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13201
13202 # Shell to use when invoking shell scripts.
13203 SHELL=$lt_SHELL
13204
13205 # Whether or not to build shared libraries.
13206 build_libtool_libs=$enable_shared
13207
13208 # Whether or not to build static libraries.
13209 build_old_libs=$enable_static
13210
13211 # Whether or not to add -lc for building shared libraries.
13212 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13213
13214 # Whether or not to disallow shared libs when runtime libs are static
13215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13216
13217 # Whether or not to optimize for fast installation.
13218 fast_install=$enable_fast_install
13219
13220 # The host system.
13221 host_alias=$host_alias
13222 host=$host
13223 host_os=$host_os
13224
13225 # The build system.
13226 build_alias=$build_alias
13227 build=$build
13228 build_os=$build_os
13229
13230 # An echo program that does not interpret backslashes.
13231 echo=$lt_echo
13232
13233 # The archiver.
13234 AR=$lt_AR
13235 AR_FLAGS=$lt_AR_FLAGS
13236
13237 # A C compiler.
13238 LTCC=$lt_LTCC
13239
13240 # A language-specific compiler.
13241 CC=$lt_compiler_CXX
13242
13243 # Is the compiler the GNU C compiler?
13244 with_gcc=$GCC_CXX
13245
13246 # An ERE matcher.
13247 EGREP=$lt_EGREP
13248
13249 # The linker used to build libraries.
13250 LD=$lt_LD_CXX
13251
13252 # Whether we need hard or soft links.
13253 LN_S=$lt_LN_S
13254
13255 # A BSD-compatible nm program.
13256 NM=$lt_NM
13257
13258 # A symbol stripping program
13259 STRIP=$lt_STRIP
13260
13261 # Used to examine libraries when file_magic_cmd begins "file"
13262 MAGIC_CMD=$MAGIC_CMD
13263
13264 # Used on cygwin: DLL creation program.
13265 DLLTOOL="$DLLTOOL"
13266
13267 # Used on cygwin: object dumper.
13268 OBJDUMP="$OBJDUMP"
13269
13270 # Used on cygwin: assembler.
13271 AS="$AS"
13272
13273 # The name of the directory that contains temporary libtool files.
13274 objdir=$objdir
13275
13276 # How to create reloadable object files.
13277 reload_flag=$lt_reload_flag
13278 reload_cmds=$lt_reload_cmds
13279
13280 # How to pass a linker flag through the compiler.
13281 wl=$lt_lt_prog_compiler_wl_CXX
13282
13283 # Object file suffix (normally "o").
13284 objext="$ac_objext"
13285
13286 # Old archive suffix (normally "a").
13287 libext="$libext"
13288
13289 # Shared library suffix (normally ".so").
13290 shrext_cmds='$shrext_cmds'
13291
13292 # Executable file suffix (normally "").
13293 exeext="$exeext"
13294
13295 # Additional compiler flags for building library objects.
13296 pic_flag=$lt_lt_prog_compiler_pic_CXX
13297 pic_mode=$pic_mode
13298
13299 # What is the maximum length of a command?
13300 max_cmd_len=$lt_cv_sys_max_cmd_len
13301
13302 # Does compiler simultaneously support -c and -o options?
13303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13304
13305 # Must we lock files when doing compilation?
13306 need_locks=$lt_need_locks
13307
13308 # Do we need the lib prefix for modules?
13309 need_lib_prefix=$need_lib_prefix
13310
13311 # Do we need a version for libraries?
13312 need_version=$need_version
13313
13314 # Whether dlopen is supported.
13315 dlopen_support=$enable_dlopen
13316
13317 # Whether dlopen of programs is supported.
13318 dlopen_self=$enable_dlopen_self
13319
13320 # Whether dlopen of statically linked programs is supported.
13321 dlopen_self_static=$enable_dlopen_self_static
13322
13323 # Compiler flag to prevent dynamic linking.
13324 link_static_flag=$lt_lt_prog_compiler_static_CXX
13325
13326 # Compiler flag to turn off builtin functions.
13327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13328
13329 # Compiler flag to allow reflexive dlopens.
13330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13331
13332 # Compiler flag to generate shared objects directly from archives.
13333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13334
13335 # Compiler flag to generate thread-safe objects.
13336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13337
13338 # Library versioning type.
13339 version_type=$version_type
13340
13341 # Format of library name prefix.
13342 libname_spec=$lt_libname_spec
13343
13344 # List of archive names. First name is the real one, the rest are links.
13345 # The last name is the one that the linker finds with -lNAME.
13346 library_names_spec=$lt_library_names_spec
13347
13348 # The coded name of the library, if different from the real name.
13349 soname_spec=$lt_soname_spec
13350
13351 # Commands used to build and install an old-style archive.
13352 RANLIB=$lt_RANLIB
13353 old_archive_cmds=$lt_old_archive_cmds_CXX
13354 old_postinstall_cmds=$lt_old_postinstall_cmds
13355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13356
13357 # Create an old-style archive from a shared archive.
13358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13359
13360 # Create a temporary old-style archive to link instead of a shared archive.
13361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13362
13363 # Commands used to build and install a shared archive.
13364 archive_cmds=$lt_archive_cmds_CXX
13365 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13366 postinstall_cmds=$lt_postinstall_cmds
13367 postuninstall_cmds=$lt_postuninstall_cmds
13368
13369 # Commands used to build a loadable module (assumed same as above if empty)
13370 module_cmds=$lt_module_cmds_CXX
13371 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13372
13373 # Commands to strip libraries.
13374 old_striplib=$lt_old_striplib
13375 striplib=$lt_striplib
13376
13377 # Dependencies to place before the objects being linked to create a
13378 # shared library.
13379 predep_objects=$lt_predep_objects_CXX
13380
13381 # Dependencies to place after the objects being linked to create a
13382 # shared library.
13383 postdep_objects=$lt_postdep_objects_CXX
13384
13385 # Dependencies to place before the objects being linked to create a
13386 # shared library.
13387 predeps=$lt_predeps_CXX
13388
13389 # Dependencies to place after the objects being linked to create a
13390 # shared library.
13391 postdeps=$lt_postdeps_CXX
13392
13393 # The library search path used internally by the compiler when linking
13394 # a shared library.
13395 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13396
13397 # Method to check whether dependent libraries are shared objects.
13398 deplibs_check_method=$lt_deplibs_check_method
13399
13400 # Command to use when deplibs_check_method == file_magic.
13401 file_magic_cmd=$lt_file_magic_cmd
13402
13403 # Flag that allows shared libraries with undefined symbols to be built.
13404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13405
13406 # Flag that forces no undefined symbols.
13407 no_undefined_flag=$lt_no_undefined_flag_CXX
13408
13409 # Commands used to finish a libtool library installation in a directory.
13410 finish_cmds=$lt_finish_cmds
13411
13412 # Same as above, but a single script fragment to be evaled but not shown.
13413 finish_eval=$lt_finish_eval
13414
13415 # Take the output of nm and produce a listing of raw symbols and C names.
13416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13417
13418 # Transform the output of nm in a proper C declaration
13419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13420
13421 # Transform the output of nm in a C name address pair
13422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13423
13424 # This is the shared library runtime path variable.
13425 runpath_var=$runpath_var
13426
13427 # This is the shared library path variable.
13428 shlibpath_var=$shlibpath_var
13429
13430 # Is shlibpath searched before the hard-coded library search path?
13431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13432
13433 # How to hardcode a shared library path into an executable.
13434 hardcode_action=$hardcode_action_CXX
13435
13436 # Whether we should hardcode library paths into libraries.
13437 hardcode_into_libs=$hardcode_into_libs
13438
13439 # Flag to hardcode \$libdir into a binary during linking.
13440 # This must work even if \$libdir does not exist.
13441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13442
13443 # If ld is used when linking, flag to hardcode \$libdir into
13444 # a binary during linking. This must work even if \$libdir does
13445 # not exist.
13446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13447
13448 # Whether we need a single -rpath flag with a separated argument.
13449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13450
13451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13452 # resulting binary.
13453 hardcode_direct=$hardcode_direct_CXX
13454
13455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13456 # resulting binary.
13457 hardcode_minus_L=$hardcode_minus_L_CXX
13458
13459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13460 # the resulting binary.
13461 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13462
13463 # Set to yes if building a shared library automatically hardcodes DIR into the library
13464 # and all subsequent libraries and executables linked against it.
13465 hardcode_automatic=$hardcode_automatic_CXX
13466
13467 # Variables whose values should be saved in libtool wrapper scripts and
13468 # restored at relink time.
13469 variables_saved_for_relink="$variables_saved_for_relink"
13470
13471 # Whether libtool must link a program against all its dependency libraries.
13472 link_all_deplibs=$link_all_deplibs_CXX
13473
13474 # Compile-time system search path for libraries
13475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13476
13477 # Run-time system search path for libraries
13478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13479
13480 # Fix the shell variable \$srcfile for the compiler.
13481 fix_srcfile_path="$fix_srcfile_path_CXX"
13482
13483 # Set to yes if exported symbols are required.
13484 always_export_symbols=$always_export_symbols_CXX
13485
13486 # The commands to list exported symbols.
13487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13488
13489 # The commands to extract the exported symbol list from a shared archive.
13490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13491
13492 # Symbols that should not be listed in the preloaded symbols.
13493 exclude_expsyms=$lt_exclude_expsyms_CXX
13494
13495 # Symbols that must always be exported.
13496 include_expsyms=$lt_include_expsyms_CXX
13497
13498 # ### END LIBTOOL TAG CONFIG: $tagname
13499
13500 __EOF__
13501
13502
13503 else
13504 # If there is no Makefile yet, we rely on a make rule to execute
13505 # `config.status --recheck' to rerun these tests and create the
13506 # libtool script then.
13507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13508 if test -f "$ltmain_in"; then
13509 test -f Makefile && make "$ltmain"
13510 fi
13511 fi
13512
13513
13514 ac_ext=c
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
13520 CC=$lt_save_CC
13521 LDCXX=$LD
13522 LD=$lt_save_LD
13523 GCC=$lt_save_GCC
13524 with_gnu_ldcxx=$with_gnu_ld
13525 with_gnu_ld=$lt_save_with_gnu_ld
13526 lt_cv_path_LDCXX=$lt_cv_path_LD
13527 lt_cv_path_LD=$lt_save_path_LD
13528 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13529 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13530
13531 else
13532 tagname=""
13533 fi
13534 ;;
13535
13536 F77)
13537 if test -n "$F77" && test "X$F77" != "Xno"; then
13538
13539 ac_ext=f
13540 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13541 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13542 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13543
13544
13545 archive_cmds_need_lc_F77=no
13546 allow_undefined_flag_F77=
13547 always_export_symbols_F77=no
13548 archive_expsym_cmds_F77=
13549 export_dynamic_flag_spec_F77=
13550 hardcode_direct_F77=no
13551 hardcode_libdir_flag_spec_F77=
13552 hardcode_libdir_flag_spec_ld_F77=
13553 hardcode_libdir_separator_F77=
13554 hardcode_minus_L_F77=no
13555 hardcode_automatic_F77=no
13556 module_cmds_F77=
13557 module_expsym_cmds_F77=
13558 link_all_deplibs_F77=unknown
13559 old_archive_cmds_F77=$old_archive_cmds
13560 no_undefined_flag_F77=
13561 whole_archive_flag_spec_F77=
13562 enable_shared_with_static_runtimes_F77=no
13563
13564 # Source file extension for f77 test sources.
13565 ac_ext=f
13566
13567 # Object file extension for compiled f77 test sources.
13568 objext=o
13569 objext_F77=$objext
13570
13571 # Code to be used in simple compile tests
13572 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13573
13574 # Code to be used in simple link tests
13575 lt_simple_link_test_code=" program t\n end\n"
13576
13577 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13578
13579 # If no C compiler was specified, use CC.
13580 LTCC=${LTCC-"$CC"}
13581
13582 # Allow CC to be a program name with arguments.
13583 compiler=$CC
13584
13585
13586 # save warnings/boilerplate of simple test code
13587 ac_outfile=conftest.$ac_objext
13588 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13590 _lt_compiler_boilerplate=`cat conftest.err`
13591 $rm conftest*
13592
13593 ac_outfile=conftest.$ac_objext
13594 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13596 _lt_linker_boilerplate=`cat conftest.err`
13597 $rm conftest*
13598
13599
13600 # Allow CC to be a program name with arguments.
13601 lt_save_CC="$CC"
13602 CC=${F77-"f77"}
13603 compiler=$CC
13604 compiler_F77=$CC
13605 for cc_temp in $compiler""; do
13606 case $cc_temp in
13607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13609 \-*) ;;
13610 *) break;;
13611 esac
13612 done
13613 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13614
13615
13616 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13617 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13618 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13619 echo "${ECHO_T}$can_build_shared" >&6
13620
13621 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13622 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13623 test "$can_build_shared" = "no" && enable_shared=no
13624
13625 # On AIX, shared libraries and static libraries use the same namespace, and
13626 # are all built from PIC.
13627 case $host_os in
13628 aix3*)
13629 test "$enable_shared" = yes && enable_static=no
13630 if test -n "$RANLIB"; then
13631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13632 postinstall_cmds='$RANLIB $lib'
13633 fi
13634 ;;
13635 aix4* | aix5*)
13636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13637 test "$enable_shared" = yes && enable_static=no
13638 fi
13639 ;;
13640 esac
13641 echo "$as_me:$LINENO: result: $enable_shared" >&5
13642 echo "${ECHO_T}$enable_shared" >&6
13643
13644 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13645 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13646 # Make sure either enable_shared or enable_static is yes.
13647 test "$enable_shared" = yes || enable_static=yes
13648 echo "$as_me:$LINENO: result: $enable_static" >&5
13649 echo "${ECHO_T}$enable_static" >&6
13650
13651 test "$ld_shlibs_F77" = no && can_build_shared=no
13652
13653 GCC_F77="$G77"
13654 LD_F77="$LD"
13655
13656 lt_prog_compiler_wl_F77=
13657 lt_prog_compiler_pic_F77=
13658 lt_prog_compiler_static_F77=
13659
13660 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13662
13663 if test "$GCC" = yes; then
13664 lt_prog_compiler_wl_F77='-Wl,'
13665 lt_prog_compiler_static_F77='-static'
13666
13667 case $host_os in
13668 aix*)
13669 # All AIX code is PIC.
13670 if test "$host_cpu" = ia64; then
13671 # AIX 5 now supports IA64 processor
13672 lt_prog_compiler_static_F77='-Bstatic'
13673 fi
13674 ;;
13675
13676 amigaos*)
13677 # FIXME: we need at least 68020 code to build shared libraries, but
13678 # adding the `-m68020' flag to GCC prevents building anything better,
13679 # like `-m68040'.
13680 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13681 ;;
13682
13683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13684 # PIC is the default for these OSes.
13685 ;;
13686
13687 mingw* | pw32* | os2*)
13688 # This hack is so that the source file can tell whether it is being
13689 # built for inclusion in a dll (and should export symbols for example).
13690 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13691 ;;
13692
13693 darwin* | rhapsody*)
13694 # PIC is the default on this platform
13695 # Common symbols not allowed in MH_DYLIB files
13696 lt_prog_compiler_pic_F77='-fno-common'
13697 ;;
13698
13699 msdosdjgpp*)
13700 # Just because we use GCC doesn't mean we suddenly get shared libraries
13701 # on systems that don't support them.
13702 lt_prog_compiler_can_build_shared_F77=no
13703 enable_shared=no
13704 ;;
13705
13706 sysv4*MP*)
13707 if test -d /usr/nec; then
13708 lt_prog_compiler_pic_F77=-Kconform_pic
13709 fi
13710 ;;
13711
13712 hpux*)
13713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13714 # not for PA HP-UX.
13715 case $host_cpu in
13716 hppa*64*|ia64*)
13717 # +Z the default
13718 ;;
13719 *)
13720 lt_prog_compiler_pic_F77='-fPIC'
13721 ;;
13722 esac
13723 ;;
13724
13725 *)
13726 lt_prog_compiler_pic_F77='-fPIC'
13727 ;;
13728 esac
13729 else
13730 # PORTME Check for flag to pass linker flags through the system compiler.
13731 case $host_os in
13732 aix*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 if test "$host_cpu" = ia64; then
13735 # AIX 5 now supports IA64 processor
13736 lt_prog_compiler_static_F77='-Bstatic'
13737 else
13738 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13739 fi
13740 ;;
13741 darwin*)
13742 # PIC is the default on this platform
13743 # Common symbols not allowed in MH_DYLIB files
13744 case $cc_basename in
13745 xlc*)
13746 lt_prog_compiler_pic_F77='-qnocommon'
13747 lt_prog_compiler_wl_F77='-Wl,'
13748 ;;
13749 esac
13750 ;;
13751
13752 mingw* | pw32* | os2*)
13753 # This hack is so that the source file can tell whether it is being
13754 # built for inclusion in a dll (and should export symbols for example).
13755 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13756 ;;
13757
13758 hpux9* | hpux10* | hpux11*)
13759 lt_prog_compiler_wl_F77='-Wl,'
13760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13761 # not for PA HP-UX.
13762 case $host_cpu in
13763 hppa*64*|ia64*)
13764 # +Z the default
13765 ;;
13766 *)
13767 lt_prog_compiler_pic_F77='+Z'
13768 ;;
13769 esac
13770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13771 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13772 ;;
13773
13774 irix5* | irix6* | nonstopux*)
13775 lt_prog_compiler_wl_F77='-Wl,'
13776 # PIC (with -KPIC) is the default.
13777 lt_prog_compiler_static_F77='-non_shared'
13778 ;;
13779
13780 newsos6)
13781 lt_prog_compiler_pic_F77='-KPIC'
13782 lt_prog_compiler_static_F77='-Bstatic'
13783 ;;
13784
13785 linux*)
13786 case $cc_basename in
13787 icc* | ecc*)
13788 lt_prog_compiler_wl_F77='-Wl,'
13789 lt_prog_compiler_pic_F77='-KPIC'
13790 lt_prog_compiler_static_F77='-static'
13791 ;;
13792 pgcc* | pgf77* | pgf90* | pgf95*)
13793 # Portland Group compilers (*not* the Pentium gcc compiler,
13794 # which looks to be a dead project)
13795 lt_prog_compiler_wl_F77='-Wl,'
13796 lt_prog_compiler_pic_F77='-fpic'
13797 lt_prog_compiler_static_F77='-Bstatic'
13798 ;;
13799 ccc*)
13800 lt_prog_compiler_wl_F77='-Wl,'
13801 # All Alpha code is PIC.
13802 lt_prog_compiler_static_F77='-non_shared'
13803 ;;
13804 esac
13805 ;;
13806
13807 osf3* | osf4* | osf5*)
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 # All OSF/1 code is PIC.
13810 lt_prog_compiler_static_F77='-non_shared'
13811 ;;
13812
13813 sco3.2v5*)
13814 lt_prog_compiler_pic_F77='-Kpic'
13815 lt_prog_compiler_static_F77='-dn'
13816 ;;
13817
13818 solaris*)
13819 lt_prog_compiler_pic_F77='-KPIC'
13820 lt_prog_compiler_static_F77='-Bstatic'
13821 case $cc_basename in
13822 f77* | f90* | f95*)
13823 lt_prog_compiler_wl_F77='-Qoption ld ';;
13824 *)
13825 lt_prog_compiler_wl_F77='-Wl,';;
13826 esac
13827 ;;
13828
13829 sunos4*)
13830 lt_prog_compiler_wl_F77='-Qoption ld '
13831 lt_prog_compiler_pic_F77='-PIC'
13832 lt_prog_compiler_static_F77='-Bstatic'
13833 ;;
13834
13835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13836 lt_prog_compiler_wl_F77='-Wl,'
13837 lt_prog_compiler_pic_F77='-KPIC'
13838 lt_prog_compiler_static_F77='-Bstatic'
13839 ;;
13840
13841 sysv4*MP*)
13842 if test -d /usr/nec ;then
13843 lt_prog_compiler_pic_F77='-Kconform_pic'
13844 lt_prog_compiler_static_F77='-Bstatic'
13845 fi
13846 ;;
13847
13848 unicos*)
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 lt_prog_compiler_can_build_shared_F77=no
13851 ;;
13852
13853 uts4*)
13854 lt_prog_compiler_pic_F77='-pic'
13855 lt_prog_compiler_static_F77='-Bstatic'
13856 ;;
13857
13858 *)
13859 lt_prog_compiler_can_build_shared_F77=no
13860 ;;
13861 esac
13862 fi
13863
13864 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13865 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13866
13867 #
13868 # Check to make sure the PIC flag actually works.
13869 #
13870 if test -n "$lt_prog_compiler_pic_F77"; then
13871
13872 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13874 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 lt_prog_compiler_pic_works_F77=no
13878 ac_outfile=conftest.$ac_objext
13879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13880 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13881 # Insert the option either (1) after the last *FLAGS variable, or
13882 # (2) before a word containing "conftest.", or (3) at the end.
13883 # Note that $ac_compile itself does not contain backslashes and begins
13884 # with a dollar sign (not a hyphen), so the echo should work correctly.
13885 # The option is referenced via a variable to avoid confusing sed.
13886 lt_compile=`echo "$ac_compile" | $SED \
13887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13889 -e 's:$: $lt_compiler_flag:'`
13890 (eval echo "\"\$as_me:13890: $lt_compile\"" >&5)
13891 (eval "$lt_compile" 2>conftest.err)
13892 ac_status=$?
13893 cat conftest.err >&5
13894 echo "$as_me:13894: \$? = $ac_status" >&5
13895 if (exit $ac_status) && test -s "$ac_outfile"; then
13896 # The compiler can only warn and ignore the option if not recognized
13897 # So say no if there are warnings other than the usual output.
13898 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13899 $SED '/^$/d' conftest.err >conftest.er2
13900 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13901 lt_prog_compiler_pic_works_F77=yes
13902 fi
13903 fi
13904 $rm conftest*
13905
13906 fi
13907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13909
13910 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13911 case $lt_prog_compiler_pic_F77 in
13912 "" | " "*) ;;
13913 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13914 esac
13915 else
13916 lt_prog_compiler_pic_F77=
13917 lt_prog_compiler_can_build_shared_F77=no
13918 fi
13919
13920 fi
13921 case $host_os in
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13923 *djgpp*)
13924 lt_prog_compiler_pic_F77=
13925 ;;
13926 *)
13927 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13928 ;;
13929 esac
13930
13931 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13932 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13933 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 lt_cv_prog_compiler_c_o_F77=no
13937 $rm -r conftest 2>/dev/null
13938 mkdir conftest
13939 cd conftest
13940 mkdir out
13941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13942
13943 lt_compiler_flag="-o out/conftest2.$ac_objext"
13944 # Insert the option either (1) after the last *FLAGS variable, or
13945 # (2) before a word containing "conftest.", or (3) at the end.
13946 # Note that $ac_compile itself does not contain backslashes and begins
13947 # with a dollar sign (not a hyphen), so the echo should work correctly.
13948 lt_compile=`echo "$ac_compile" | $SED \
13949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13951 -e 's:$: $lt_compiler_flag:'`
13952 (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953 (eval "$lt_compile" 2>out/conftest.err)
13954 ac_status=$?
13955 cat out/conftest.err >&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13958 then
13959 # The compiler can only warn and ignore the option if not recognized
13960 # So say no if there are warnings
13961 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13962 $SED '/^$/d' out/conftest.err >out/conftest.er2
13963 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13964 lt_cv_prog_compiler_c_o_F77=yes
13965 fi
13966 fi
13967 chmod u+w . 2>&5
13968 $rm conftest*
13969 # SGI C++ compiler will create directory out/ii_files/ for
13970 # template instantiation
13971 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13972 $rm out/* && rmdir out
13973 cd ..
13974 rmdir conftest
13975 $rm conftest*
13976
13977 fi
13978 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13979 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13980
13981
13982 hard_links="nottested"
13983 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13984 # do not overwrite the value of need_locks provided by the user
13985 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13987 hard_links=yes
13988 $rm conftest*
13989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13990 touch conftest.a
13991 ln conftest.a conftest.b 2>&5 || hard_links=no
13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13993 echo "$as_me:$LINENO: result: $hard_links" >&5
13994 echo "${ECHO_T}$hard_links" >&6
13995 if test "$hard_links" = no; then
13996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13998 need_locks=warn
13999 fi
14000 else
14001 need_locks=no
14002 fi
14003
14004 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14005 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14006
14007 runpath_var=
14008 allow_undefined_flag_F77=
14009 enable_shared_with_static_runtimes_F77=no
14010 archive_cmds_F77=
14011 archive_expsym_cmds_F77=
14012 old_archive_From_new_cmds_F77=
14013 old_archive_from_expsyms_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 whole_archive_flag_spec_F77=
14016 thread_safe_flag_spec_F77=
14017 hardcode_libdir_flag_spec_F77=
14018 hardcode_libdir_flag_spec_ld_F77=
14019 hardcode_libdir_separator_F77=
14020 hardcode_direct_F77=no
14021 hardcode_minus_L_F77=no
14022 hardcode_shlibpath_var_F77=unsupported
14023 link_all_deplibs_F77=unknown
14024 hardcode_automatic_F77=no
14025 module_cmds_F77=
14026 module_expsym_cmds_F77=
14027 always_export_symbols_F77=no
14028 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14029 # include_expsyms should be a list of space-separated symbols to be *always*
14030 # included in the symbol list
14031 include_expsyms_F77=
14032 # exclude_expsyms can be an extended regexp of symbols to exclude
14033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14035 # as well as any symbol that contains `d'.
14036 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14038 # platforms (ab)use it in PIC code, but their linkers get confused if
14039 # the symbol is explicitly referenced. Since portable code cannot
14040 # rely on this symbol name, it's probably fine to never include it in
14041 # preloaded symbol tables.
14042 extract_expsyms_cmds=
14043 # Just being paranoid about ensuring that cc_basename is set.
14044 for cc_temp in $compiler""; do
14045 case $cc_temp in
14046 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14047 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14048 \-*) ;;
14049 *) break;;
14050 esac
14051 done
14052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14053
14054 case $host_os in
14055 cygwin* | mingw* | pw32*)
14056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14057 # When not using gcc, we currently assume that we are using
14058 # Microsoft Visual C++.
14059 if test "$GCC" != yes; then
14060 with_gnu_ld=no
14061 fi
14062 ;;
14063 openbsd*)
14064 with_gnu_ld=no
14065 ;;
14066 esac
14067
14068 ld_shlibs_F77=yes
14069 if test "$with_gnu_ld" = yes; then
14070 # If archive_cmds runs LD, not CC, wlarc should be empty
14071 wlarc='${wl}'
14072
14073 # Set some defaults for GNU ld with shared library support. These
14074 # are reset later if shared libraries are not supported. Putting them
14075 # here allows them to be overridden if necessary.
14076 runpath_var=LD_RUN_PATH
14077 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14078 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14079 # ancient GNU ld didn't support --whole-archive et. al.
14080 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14081 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14082 else
14083 whole_archive_flag_spec_F77=
14084 fi
14085 supports_anon_versioning=no
14086 case `$LD -v 2>/dev/null` in
14087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14090 *\ 2.11.*) ;; # other 2.11 versions
14091 *) supports_anon_versioning=yes ;;
14092 esac
14093
14094 # See if GNU ld supports shared libraries.
14095 case $host_os in
14096 aix3* | aix4* | aix5*)
14097 # On AIX/PPC, the GNU linker is very broken
14098 if test "$host_cpu" != ia64; then
14099 ld_shlibs_F77=no
14100 cat <<EOF 1>&2
14101
14102 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14103 *** to be unable to reliably create shared libraries on AIX.
14104 *** Therefore, libtool is disabling shared libraries support. If you
14105 *** really care for shared libraries, you may want to modify your PATH
14106 *** so that a non-GNU linker is found, and then restart.
14107
14108 EOF
14109 fi
14110 ;;
14111
14112 amigaos*)
14113 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)'
14114 hardcode_libdir_flag_spec_F77='-L$libdir'
14115 hardcode_minus_L_F77=yes
14116
14117 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14118 # that the semantics of dynamic libraries on AmigaOS, at least up
14119 # to version 4, is to share data among multiple programs linked
14120 # with the same dynamic library. Since this doesn't match the
14121 # behavior of shared libraries on other platforms, we can't use
14122 # them.
14123 ld_shlibs_F77=no
14124 ;;
14125
14126 beos*)
14127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14128 allow_undefined_flag_F77=unsupported
14129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14130 # support --undefined. This deserves some investigation. FIXME
14131 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14132 else
14133 ld_shlibs_F77=no
14134 fi
14135 ;;
14136
14137 cygwin* | mingw* | pw32*)
14138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14139 # as there is no search path for DLLs.
14140 hardcode_libdir_flag_spec_F77='-L$libdir'
14141 allow_undefined_flag_F77=unsupported
14142 always_export_symbols_F77=no
14143 enable_shared_with_static_runtimes_F77=yes
14144 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14145
14146 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14147 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14148 # If the export-symbols file already is a .def file (1st line
14149 # is EXPORTS), use it as is; otherwise, prepend...
14150 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14151 cp $export_symbols $output_objdir/$soname.def;
14152 else
14153 echo EXPORTS > $output_objdir/$soname.def;
14154 cat $export_symbols >> $output_objdir/$soname.def;
14155 fi~
14156 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14157 else
14158 ld_shlibs_F77=no
14159 fi
14160 ;;
14161
14162 linux*)
14163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14164 tmp_addflag=
14165 case $cc_basename,$host_cpu in
14166 pgcc*) # Portland Group C compiler
14167 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'
14168 tmp_addflag=' $pic_flag'
14169 ;;
14170 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14171 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'
14172 tmp_addflag=' $pic_flag -Mnomain' ;;
14173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14174 tmp_addflag=' -i_dynamic' ;;
14175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14176 tmp_addflag=' -i_dynamic -nofor_main' ;;
14177 ifc* | ifort*) # Intel Fortran compiler
14178 tmp_addflag=' -nofor_main' ;;
14179 esac
14180 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181
14182 if test $supports_anon_versioning = yes; then
14183 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14185 $echo "local: *; };" >> $output_objdir/$libname.ver~
14186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14187 fi
14188 else
14189 ld_shlibs_F77=no
14190 fi
14191 ;;
14192
14193 netbsd*)
14194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14195 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14196 wlarc=
14197 else
14198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14200 fi
14201 ;;
14202
14203 solaris* | sysv5*)
14204 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14205 ld_shlibs_F77=no
14206 cat <<EOF 1>&2
14207
14208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14209 *** create shared libraries on Solaris systems. Therefore, libtool
14210 *** is disabling shared libraries support. We urge you to upgrade GNU
14211 *** binutils to release 2.9.1 or newer. Another option is to modify
14212 *** your PATH or compiler configuration so that the native linker is
14213 *** used, and then restart.
14214
14215 EOF
14216 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14217 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14219 else
14220 ld_shlibs_F77=no
14221 fi
14222 ;;
14223
14224 sunos4*)
14225 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14226 wlarc=
14227 hardcode_direct_F77=yes
14228 hardcode_shlibpath_var_F77=no
14229 ;;
14230
14231 *)
14232 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14233 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14234 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14235 else
14236 ld_shlibs_F77=no
14237 fi
14238 ;;
14239 esac
14240
14241 if test "$ld_shlibs_F77" = no; then
14242 runpath_var=
14243 hardcode_libdir_flag_spec_F77=
14244 export_dynamic_flag_spec_F77=
14245 whole_archive_flag_spec_F77=
14246 fi
14247 else
14248 # PORTME fill in a description of your system's linker (not GNU ld)
14249 case $host_os in
14250 aix3*)
14251 allow_undefined_flag_F77=unsupported
14252 always_export_symbols_F77=yes
14253 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'
14254 # Note: this linker hardcodes the directories in LIBPATH if there
14255 # are no directories specified by -L.
14256 hardcode_minus_L_F77=yes
14257 if test "$GCC" = yes && test -z "$link_static_flag"; then
14258 # Neither direct hardcoding nor static linking is supported with a
14259 # broken collect2.
14260 hardcode_direct_F77=unsupported
14261 fi
14262 ;;
14263
14264 aix4* | aix5*)
14265 if test "$host_cpu" = ia64; then
14266 # On IA64, the linker does run time linking by default, so we don't
14267 # have to do anything special.
14268 aix_use_runtimelinking=no
14269 exp_sym_flag='-Bexport'
14270 no_entry_flag=""
14271 else
14272 # If we're using GNU nm, then we don't want the "-C" option.
14273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14274 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14275 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'
14276 else
14277 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'
14278 fi
14279 aix_use_runtimelinking=no
14280
14281 # Test if we are trying to use run time linking or normal
14282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14283 # need to do runtime linking.
14284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14285 for ld_flag in $LDFLAGS; do
14286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14287 aix_use_runtimelinking=yes
14288 break
14289 fi
14290 done
14291 esac
14292
14293 exp_sym_flag='-bexport'
14294 no_entry_flag='-bnoentry'
14295 fi
14296
14297 # When large executables or shared objects are built, AIX ld can
14298 # have problems creating the table of contents. If linking a library
14299 # or program results in "error TOC overflow" add -mminimal-toc to
14300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14302
14303 archive_cmds_F77=''
14304 hardcode_direct_F77=yes
14305 hardcode_libdir_separator_F77=':'
14306 link_all_deplibs_F77=yes
14307
14308 if test "$GCC" = yes; then
14309 case $host_os in aix4.[012]|aix4.[012].*)
14310 # We only want to do this on AIX 4.2 and lower, the check
14311 # below for broken collect2 doesn't work under 4.3+
14312 collect2name=`${CC} -print-prog-name=collect2`
14313 if test -f "$collect2name" && \
14314 strings "$collect2name" | grep resolve_lib_name >/dev/null
14315 then
14316 # We have reworked collect2
14317 hardcode_direct_F77=yes
14318 else
14319 # We have old collect2
14320 hardcode_direct_F77=unsupported
14321 # It fails to find uninstalled libraries when the uninstalled
14322 # path is not listed in the libpath. Setting hardcode_minus_L
14323 # to unsupported forces relinking
14324 hardcode_minus_L_F77=yes
14325 hardcode_libdir_flag_spec_F77='-L$libdir'
14326 hardcode_libdir_separator_F77=
14327 fi
14328 esac
14329 shared_flag='-shared'
14330 if test "$aix_use_runtimelinking" = yes; then
14331 shared_flag="$shared_flag "'${wl}-G'
14332 fi
14333 else
14334 # not using gcc
14335 if test "$host_cpu" = ia64; then
14336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14337 # chokes on -Wl,-G. The following line is correct:
14338 shared_flag='-G'
14339 else
14340 if test "$aix_use_runtimelinking" = yes; then
14341 shared_flag='${wl}-G'
14342 else
14343 shared_flag='${wl}-bM:SRE'
14344 fi
14345 fi
14346 fi
14347
14348 # It seems that -bexpall does not export symbols beginning with
14349 # underscore (_), so it is better to generate a list of symbols to export.
14350 always_export_symbols_F77=yes
14351 if test "$aix_use_runtimelinking" = yes; then
14352 # Warning - without using the other runtime loading flags (-brtl),
14353 # -berok will link without error, but may produce a broken library.
14354 allow_undefined_flag_F77='-berok'
14355 # Determine the default libpath from the value encoded in an empty executable.
14356 cat >conftest.$ac_ext <<_ACEOF
14357 program main
14358
14359 end
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_f77_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383
14384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14385 }'`
14386 # Check for a 64-bit object if we didn't find anything.
14387 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; }
14388 }'`; fi
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 fi
14394 rm -f conftest.err conftest.$ac_objext \
14395 conftest$ac_exeext conftest.$ac_ext
14396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14397
14398 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14399 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"
14400 else
14401 if test "$host_cpu" = ia64; then
14402 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14403 allow_undefined_flag_F77="-z nodefs"
14404 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"
14405 else
14406 # Determine the default libpath from the value encoded in an empty executable.
14407 cat >conftest.$ac_ext <<_ACEOF
14408 program main
14409
14410 end
14411 _ACEOF
14412 rm -f conftest.$ac_objext conftest$ac_exeext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14414 (eval $ac_link) 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_f77_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434
14435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14436 }'`
14437 # Check for a 64-bit object if we didn't find anything.
14438 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; }
14439 }'`; fi
14440 else
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444 fi
14445 rm -f conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14448
14449 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14450 # Warning - without using the other run time loading flags,
14451 # -berok will link without error, but may produce a broken library.
14452 no_undefined_flag_F77=' ${wl}-bernotok'
14453 allow_undefined_flag_F77=' ${wl}-berok'
14454 # -bexpall does not export symbols beginning with underscore (_)
14455 always_export_symbols_F77=yes
14456 # Exported symbols can be pulled into shared objects from archives
14457 whole_archive_flag_spec_F77=' '
14458 archive_cmds_need_lc_F77=yes
14459 # This is similar to how AIX traditionally builds its shared libraries.
14460 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'
14461 fi
14462 fi
14463 ;;
14464
14465 amigaos*)
14466 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)'
14467 hardcode_libdir_flag_spec_F77='-L$libdir'
14468 hardcode_minus_L_F77=yes
14469 # see comment about different semantics on the GNU ld section
14470 ld_shlibs_F77=no
14471 ;;
14472
14473 bsdi[45]*)
14474 export_dynamic_flag_spec_F77=-rdynamic
14475 ;;
14476
14477 cygwin* | mingw* | pw32*)
14478 # When not using gcc, we currently assume that we are using
14479 # Microsoft Visual C++.
14480 # hardcode_libdir_flag_spec is actually meaningless, as there is
14481 # no search path for DLLs.
14482 hardcode_libdir_flag_spec_F77=' '
14483 allow_undefined_flag_F77=unsupported
14484 # Tell ltmain to make .lib files, not .a files.
14485 libext=lib
14486 # Tell ltmain to make .dll files, not .so files.
14487 shrext_cmds=".dll"
14488 # FIXME: Setting linknames here is a bad hack.
14489 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14490 # The linker will automatically build a .lib file if we build a DLL.
14491 old_archive_From_new_cmds_F77='true'
14492 # FIXME: Should let the user specify the lib program.
14493 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14494 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14495 enable_shared_with_static_runtimes_F77=yes
14496 ;;
14497
14498 darwin* | rhapsody*)
14499 case $host_os in
14500 rhapsody* | darwin1.[012])
14501 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14502 ;;
14503 *) # Darwin 1.3 on
14504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14505 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14506 else
14507 case ${MACOSX_DEPLOYMENT_TARGET} in
14508 10.[012])
14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14510 ;;
14511 10.*)
14512 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14513 ;;
14514 esac
14515 fi
14516 ;;
14517 esac
14518 archive_cmds_need_lc_F77=no
14519 hardcode_direct_F77=no
14520 hardcode_automatic_F77=yes
14521 hardcode_shlibpath_var_F77=unsupported
14522 whole_archive_flag_spec_F77=''
14523 link_all_deplibs_F77=yes
14524 if test "$GCC" = yes ; then
14525 output_verbose_link_cmd='echo'
14526 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14527 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14529 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}'
14530 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}'
14531 else
14532 case $cc_basename in
14533 xlc*)
14534 output_verbose_link_cmd='echo'
14535 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14536 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14538 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}'
14539 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}'
14540 ;;
14541 *)
14542 ld_shlibs_F77=no
14543 ;;
14544 esac
14545 fi
14546 ;;
14547
14548 dgux*)
14549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_libdir_flag_spec_F77='-L$libdir'
14551 hardcode_shlibpath_var_F77=no
14552 ;;
14553
14554 freebsd1*)
14555 ld_shlibs_F77=no
14556 ;;
14557
14558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14559 # support. Future versions do this automatically, but an explicit c++rt0.o
14560 # does not break anything, and helps significantly (at the cost of a little
14561 # extra space).
14562 freebsd2.2*)
14563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14564 hardcode_libdir_flag_spec_F77='-R$libdir'
14565 hardcode_direct_F77=yes
14566 hardcode_shlibpath_var_F77=no
14567 ;;
14568
14569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14570 freebsd2*)
14571 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_direct_F77=yes
14573 hardcode_minus_L_F77=yes
14574 hardcode_shlibpath_var_F77=no
14575 ;;
14576
14577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14578 freebsd* | kfreebsd*-gnu | dragonfly*)
14579 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14580 hardcode_libdir_flag_spec_F77='-R$libdir'
14581 hardcode_direct_F77=yes
14582 hardcode_shlibpath_var_F77=no
14583 ;;
14584
14585 hpux9*)
14586 if test "$GCC" = yes; then
14587 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'
14588 else
14589 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'
14590 fi
14591 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14592 hardcode_libdir_separator_F77=:
14593 hardcode_direct_F77=yes
14594
14595 # hardcode_minus_L: Not really in the search PATH,
14596 # but as the default location of the library.
14597 hardcode_minus_L_F77=yes
14598 export_dynamic_flag_spec_F77='${wl}-E'
14599 ;;
14600
14601 hpux10* | hpux11*)
14602 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14603 case $host_cpu in
14604 hppa*64*|ia64*)
14605 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 ;;
14607 *)
14608 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14609 ;;
14610 esac
14611 else
14612 case $host_cpu in
14613 hppa*64*|ia64*)
14614 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 ;;
14616 *)
14617 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14618 ;;
14619 esac
14620 fi
14621 if test "$with_gnu_ld" = no; then
14622 case $host_cpu in
14623 hppa*64*)
14624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14625 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14626 hardcode_libdir_separator_F77=:
14627 hardcode_direct_F77=no
14628 hardcode_shlibpath_var_F77=no
14629 ;;
14630 ia64*)
14631 hardcode_libdir_flag_spec_F77='-L$libdir'
14632 hardcode_direct_F77=no
14633 hardcode_shlibpath_var_F77=no
14634
14635 # hardcode_minus_L: Not really in the search PATH,
14636 # but as the default location of the library.
14637 hardcode_minus_L_F77=yes
14638 ;;
14639 *)
14640 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14641 hardcode_libdir_separator_F77=:
14642 hardcode_direct_F77=yes
14643 export_dynamic_flag_spec_F77='${wl}-E'
14644
14645 # hardcode_minus_L: Not really in the search PATH,
14646 # but as the default location of the library.
14647 hardcode_minus_L_F77=yes
14648 ;;
14649 esac
14650 fi
14651 ;;
14652
14653 irix5* | irix6* | nonstopux*)
14654 if test "$GCC" = yes; then
14655 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'
14656 else
14657 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'
14658 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14659 fi
14660 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14661 hardcode_libdir_separator_F77=:
14662 link_all_deplibs_F77=yes
14663 ;;
14664
14665 netbsd*)
14666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14667 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14668 else
14669 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14670 fi
14671 hardcode_libdir_flag_spec_F77='-R$libdir'
14672 hardcode_direct_F77=yes
14673 hardcode_shlibpath_var_F77=no
14674 ;;
14675
14676 newsos6)
14677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678 hardcode_direct_F77=yes
14679 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14680 hardcode_libdir_separator_F77=:
14681 hardcode_shlibpath_var_F77=no
14682 ;;
14683
14684 openbsd*)
14685 hardcode_direct_F77=yes
14686 hardcode_shlibpath_var_F77=no
14687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14690 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14691 export_dynamic_flag_spec_F77='${wl}-E'
14692 else
14693 case $host_os in
14694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14695 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14696 hardcode_libdir_flag_spec_F77='-R$libdir'
14697 ;;
14698 *)
14699 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14700 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14701 ;;
14702 esac
14703 fi
14704 ;;
14705
14706 os2*)
14707 hardcode_libdir_flag_spec_F77='-L$libdir'
14708 hardcode_minus_L_F77=yes
14709 allow_undefined_flag_F77=unsupported
14710 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'
14711 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14712 ;;
14713
14714 osf3*)
14715 if test "$GCC" = yes; then
14716 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14717 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'
14718 else
14719 allow_undefined_flag_F77=' -expect_unresolved \*'
14720 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'
14721 fi
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_F77=:
14724 ;;
14725
14726 osf4* | osf5*) # as osf3* with the addition of -msym flag
14727 if test "$GCC" = yes; then
14728 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14729 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'
14730 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14731 else
14732 allow_undefined_flag_F77=' -expect_unresolved \*'
14733 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'
14734 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~
14735 $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'
14736
14737 # Both c and cxx compiler support -rpath directly
14738 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14739 fi
14740 hardcode_libdir_separator_F77=:
14741 ;;
14742
14743 sco3.2v5*)
14744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14745 hardcode_shlibpath_var_F77=no
14746 export_dynamic_flag_spec_F77='${wl}-Bexport'
14747 runpath_var=LD_RUN_PATH
14748 hardcode_runpath_var=yes
14749 ;;
14750
14751 solaris*)
14752 no_undefined_flag_F77=' -z text'
14753 if test "$GCC" = yes; then
14754 wlarc='${wl}'
14755 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14757 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14758 else
14759 wlarc=''
14760 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14763 fi
14764 hardcode_libdir_flag_spec_F77='-R$libdir'
14765 hardcode_shlibpath_var_F77=no
14766 case $host_os in
14767 solaris2.[0-5] | solaris2.[0-5].*) ;;
14768 *)
14769 # The compiler driver will combine linker options so we
14770 # cannot just pass the convience library names through
14771 # without $wl, iff we do not link with $LD.
14772 # Luckily, gcc supports the same syntax we need for Sun Studio.
14773 # Supported since Solaris 2.6 (maybe 2.5.1?)
14774 case $wlarc in
14775 '')
14776 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14777 *)
14778 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' ;;
14779 esac ;;
14780 esac
14781 link_all_deplibs_F77=yes
14782 ;;
14783
14784 sunos4*)
14785 if test "x$host_vendor" = xsequent; then
14786 # Use $CC to link under sequent, because it throws in some extra .o
14787 # files that make .init and .fini sections work.
14788 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14789 else
14790 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14791 fi
14792 hardcode_libdir_flag_spec_F77='-L$libdir'
14793 hardcode_direct_F77=yes
14794 hardcode_minus_L_F77=yes
14795 hardcode_shlibpath_var_F77=no
14796 ;;
14797
14798 sysv4)
14799 case $host_vendor in
14800 sni)
14801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_direct_F77=yes # is this really true???
14803 ;;
14804 siemens)
14805 ## LD is ld it makes a PLAMLIB
14806 ## CC just makes a GrossModule.
14807 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14808 reload_cmds_F77='$CC -r -o $output$reload_objs'
14809 hardcode_direct_F77=no
14810 ;;
14811 motorola)
14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14814 ;;
14815 esac
14816 runpath_var='LD_RUN_PATH'
14817 hardcode_shlibpath_var_F77=no
14818 ;;
14819
14820 sysv4.3*)
14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822 hardcode_shlibpath_var_F77=no
14823 export_dynamic_flag_spec_F77='-Bexport'
14824 ;;
14825
14826 sysv4*MP*)
14827 if test -d /usr/nec; then
14828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_shlibpath_var_F77=no
14830 runpath_var=LD_RUN_PATH
14831 hardcode_runpath_var=yes
14832 ld_shlibs_F77=yes
14833 fi
14834 ;;
14835
14836 sysv4.2uw2*)
14837 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_direct_F77=yes
14839 hardcode_minus_L_F77=no
14840 hardcode_shlibpath_var_F77=no
14841 hardcode_runpath_var=yes
14842 runpath_var=LD_RUN_PATH
14843 ;;
14844
14845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14846 no_undefined_flag_F77='${wl}-z ${wl}text'
14847 if test "$GCC" = yes; then
14848 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 else
14850 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 fi
14852 runpath_var='LD_RUN_PATH'
14853 hardcode_shlibpath_var_F77=no
14854 ;;
14855
14856 sysv5*)
14857 no_undefined_flag_F77=' -z text'
14858 # $CC -shared without GNU ld will not create a library from C++
14859 # object files and a static libstdc++, better avoid it by now
14860 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14861 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14863 hardcode_libdir_flag_spec_F77=
14864 hardcode_shlibpath_var_F77=no
14865 runpath_var='LD_RUN_PATH'
14866 ;;
14867
14868 uts4*)
14869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14870 hardcode_libdir_flag_spec_F77='-L$libdir'
14871 hardcode_shlibpath_var_F77=no
14872 ;;
14873
14874 *)
14875 ld_shlibs_F77=no
14876 ;;
14877 esac
14878 fi
14879
14880 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14881 echo "${ECHO_T}$ld_shlibs_F77" >&6
14882 test "$ld_shlibs_F77" = no && can_build_shared=no
14883
14884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885 if test "$GCC" = yes; then
14886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14887 fi
14888
14889 #
14890 # Do we need to explicitly link libc?
14891 #
14892 case "x$archive_cmds_need_lc_F77" in
14893 x|xyes)
14894 # Assume -lc should be added
14895 archive_cmds_need_lc_F77=yes
14896
14897 if test "$enable_shared" = yes && test "$GCC" = yes; then
14898 case $archive_cmds_F77 in
14899 *'~'*)
14900 # FIXME: we may have to deal with multi-command sequences.
14901 ;;
14902 '$CC '*)
14903 # Test whether the compiler implicitly links with -lc since on some
14904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14905 # to ld, don't add -lc before -lgcc.
14906 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14907 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14908 $rm conftest*
14909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14910
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } 2>conftest.err; then
14916 soname=conftest
14917 lib=conftest
14918 libobjs=conftest.$ac_objext
14919 deplibs=
14920 wl=$lt_prog_compiler_wl_F77
14921 compiler_flags=-v
14922 linker_flags=-v
14923 verstring=
14924 output_objdir=.
14925 libname=conftest
14926 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14927 allow_undefined_flag_F77=
14928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14929 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }
14933 then
14934 archive_cmds_need_lc_F77=no
14935 else
14936 archive_cmds_need_lc_F77=yes
14937 fi
14938 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14939 else
14940 cat conftest.err 1>&5
14941 fi
14942 $rm conftest*
14943 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14944 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14945 ;;
14946 esac
14947 fi
14948 ;;
14949 esac
14950
14951 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14953 library_names_spec=
14954 libname_spec='lib$name'
14955 soname_spec=
14956 shrext_cmds=".so"
14957 postinstall_cmds=
14958 postuninstall_cmds=
14959 finish_cmds=
14960 finish_eval=
14961 shlibpath_var=
14962 shlibpath_overrides_runpath=unknown
14963 version_type=none
14964 dynamic_linker="$host_os ld.so"
14965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14966 if test "$GCC" = yes; then
14967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14968 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14969 # if the path contains ";" then we assume it to be the separator
14970 # otherwise default to the standard path separator (i.e. ":") - it is
14971 # assumed that no part of a normal pathname contains ";" but that should
14972 # okay in the real world where ";" in dirpaths is itself problematic.
14973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14974 else
14975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14976 fi
14977 else
14978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14979 fi
14980 need_lib_prefix=unknown
14981 hardcode_into_libs=no
14982
14983 # when you set need_version to no, make sure it does not cause -set_version
14984 # flags to be left without arguments
14985 need_version=unknown
14986
14987 case $host_os in
14988 aix3*)
14989 version_type=linux
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14991 shlibpath_var=LIBPATH
14992
14993 # AIX 3 has no versioning support, so we append a major version to the name.
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 ;;
14996
14997 aix4* | aix5*)
14998 version_type=linux
14999 need_lib_prefix=no
15000 need_version=no
15001 hardcode_into_libs=yes
15002 if test "$host_cpu" = ia64; then
15003 # AIX 5 supports IA64
15004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 else
15007 # With GCC up to 2.95.x, collect2 would create an import file
15008 # for dependence libraries. The import file would start with
15009 # the line `#! .'. This would cause the generated library to
15010 # depend on `.', always an invalid library. This was fixed in
15011 # development snapshots of GCC prior to 3.0.
15012 case $host_os in
15013 aix4 | aix4.[01] | aix4.[01].*)
15014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15015 echo ' yes '
15016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15017 :
15018 else
15019 can_build_shared=no
15020 fi
15021 ;;
15022 esac
15023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15024 # soname into executable. Probably we can add versioning support to
15025 # collect2, so additional links can be useful in future.
15026 if test "$aix_use_runtimelinking" = yes; then
15027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15028 # instead of lib<name>.a to let people know that these are not
15029 # typical AIX shared libraries.
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 else
15032 # We preserve .a as extension for shared libraries through AIX4.2
15033 # and later when we are not doing run time linking.
15034 library_names_spec='${libname}${release}.a $libname.a'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 fi
15037 shlibpath_var=LIBPATH
15038 fi
15039 ;;
15040
15041 amigaos*)
15042 library_names_spec='$libname.ixlibrary $libname.a'
15043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15044 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'
15045 ;;
15046
15047 beos*)
15048 library_names_spec='${libname}${shared_ext}'
15049 dynamic_linker="$host_os ld.so"
15050 shlibpath_var=LIBRARY_PATH
15051 ;;
15052
15053 bsdi[45]*)
15054 version_type=linux
15055 need_version=no
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15062 # the default ld.so.conf also contains /usr/contrib/lib and
15063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15064 # libtool to hard-code these into programs
15065 ;;
15066
15067 cygwin* | mingw* | pw32*)
15068 version_type=windows
15069 shrext_cmds=".dll"
15070 need_version=no
15071 need_lib_prefix=no
15072
15073 case $GCC,$host_os in
15074 yes,cygwin* | yes,mingw* | yes,pw32*)
15075 library_names_spec='$libname.dll.a'
15076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15077 postinstall_cmds='base_file=`basename \${file}`~
15078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15079 dldir=$destdir/`dirname \$dlpath`~
15080 test -d \$dldir || mkdir -p \$dldir~
15081 $install_prog $dir/$dlname \$dldir/$dlname~
15082 chmod a+x \$dldir/$dlname'
15083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15084 dlpath=$dir/\$dldll~
15085 $rm \$dlpath'
15086 shlibpath_overrides_runpath=yes
15087
15088 case $host_os in
15089 cygwin*)
15090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15093 ;;
15094 mingw*)
15095 # MinGW DLLs use traditional 'lib' prefix
15096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15099 # It is most probably a Windows format PATH printed by
15100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15101 # path with ; separators, and with drive letters. We can handle the
15102 # drive letters (cygwin fileutils understands them), so leave them,
15103 # especially as we might pass files found there to a mingw objdump,
15104 # which wouldn't understand a cygwinified path. Ahh.
15105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15106 else
15107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15108 fi
15109 ;;
15110 pw32*)
15111 # pw32 DLLs use 'pw' prefix rather than 'lib'
15112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113 ;;
15114 esac
15115 ;;
15116
15117 *)
15118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15119 ;;
15120 esac
15121 dynamic_linker='Win32 ld.exe'
15122 # FIXME: first we should search . and the directory the executable is in
15123 shlibpath_var=PATH
15124 ;;
15125
15126 darwin* | rhapsody*)
15127 dynamic_linker="$host_os dyld"
15128 version_type=darwin
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15132 soname_spec='${libname}${release}${major}$shared_ext'
15133 shlibpath_overrides_runpath=yes
15134 shlibpath_var=DYLD_LIBRARY_PATH
15135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15136 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15137 if test "$GCC" = yes; then
15138 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"`
15139 else
15140 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15141 fi
15142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15143 ;;
15144
15145 dgux*)
15146 version_type=linux
15147 need_lib_prefix=no
15148 need_version=no
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 ;;
15153
15154 freebsd1*)
15155 dynamic_linker=no
15156 ;;
15157
15158 kfreebsd*-gnu)
15159 version_type=linux
15160 need_lib_prefix=no
15161 need_version=no
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=no
15166 hardcode_into_libs=yes
15167 dynamic_linker='GNU ld.so'
15168 ;;
15169
15170 freebsd* | dragonfly*)
15171 # DragonFly does not have aout. When/if they implement a new
15172 # versioning mechanism, adjust this.
15173 if test -x /usr/bin/objformat; then
15174 objformat=`/usr/bin/objformat`
15175 else
15176 case $host_os in
15177 freebsd[123]*) objformat=aout ;;
15178 *) objformat=elf ;;
15179 esac
15180 fi
15181 version_type=freebsd-$objformat
15182 case $version_type in
15183 freebsd-elf*)
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15185 need_version=no
15186 need_lib_prefix=no
15187 ;;
15188 freebsd-*)
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15190 need_version=yes
15191 ;;
15192 esac
15193 shlibpath_var=LD_LIBRARY_PATH
15194 case $host_os in
15195 freebsd2*)
15196 shlibpath_overrides_runpath=yes
15197 ;;
15198 freebsd3.[01]* | freebsdelf3.[01]*)
15199 shlibpath_overrides_runpath=yes
15200 hardcode_into_libs=yes
15201 ;;
15202 *) # from 3.2 on
15203 shlibpath_overrides_runpath=no
15204 hardcode_into_libs=yes
15205 ;;
15206 esac
15207 ;;
15208
15209 gnu*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 hardcode_into_libs=yes
15217 ;;
15218
15219 hpux9* | hpux10* | hpux11*)
15220 # Give a soname corresponding to the major version so that dld.sl refuses to
15221 # link against other versions.
15222 version_type=sunos
15223 need_lib_prefix=no
15224 need_version=no
15225 case $host_cpu in
15226 ia64*)
15227 shrext_cmds='.so'
15228 hardcode_into_libs=yes
15229 dynamic_linker="$host_os dld.so"
15230 shlibpath_var=LD_LIBRARY_PATH
15231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 if test "X$HPUX_IA64_MODE" = X32; then
15235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15236 else
15237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15238 fi
15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15240 ;;
15241 hppa*64*)
15242 shrext_cmds='.sl'
15243 hardcode_into_libs=yes
15244 dynamic_linker="$host_os dld.sl"
15245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15251 ;;
15252 *)
15253 shrext_cmds='.sl'
15254 dynamic_linker="$host_os dld.sl"
15255 shlibpath_var=SHLIB_PATH
15256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 ;;
15260 esac
15261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15262 postinstall_cmds='chmod 555 $lib'
15263 ;;
15264
15265 irix5* | irix6* | nonstopux*)
15266 case $host_os in
15267 nonstopux*) version_type=nonstopux ;;
15268 *)
15269 if test "$lt_cv_prog_gnu_ld" = yes; then
15270 version_type=linux
15271 else
15272 version_type=irix
15273 fi ;;
15274 esac
15275 need_lib_prefix=no
15276 need_version=no
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15279 case $host_os in
15280 irix5* | nonstopux*)
15281 libsuff= shlibsuff=
15282 ;;
15283 *)
15284 case $LD in # libtool.m4 will add one of these switches to LD
15285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15286 libsuff= shlibsuff= libmagic=32-bit;;
15287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15288 libsuff=32 shlibsuff=N32 libmagic=N32;;
15289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15291 *) libsuff= shlibsuff= libmagic=never-match;;
15292 esac
15293 ;;
15294 esac
15295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15296 shlibpath_overrides_runpath=no
15297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15299 hardcode_into_libs=yes
15300 ;;
15301
15302 # No shared lib support for Linux oldld, aout, or coff.
15303 linux*oldld* | linux*aout* | linux*coff*)
15304 dynamic_linker=no
15305 ;;
15306
15307 # This must be Linux ELF.
15308 linux*)
15309 version_type=linux
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=no
15317 # This implies no fast_install, which is unacceptable.
15318 # Some rework will be needed to allow for fast_install
15319 # before this can be enabled.
15320 hardcode_into_libs=yes
15321
15322 # Append ld.so.conf contents to the search path
15323 if test -f /etc/ld.so.conf; then
15324 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' ' '`
15325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15326 fi
15327
15328 # We used to test for /lib/ld.so.1 and disable shared libraries on
15329 # powerpc, because MkLinux only supported shared libraries with the
15330 # GNU dynamic linker. Since this was broken with cross compilers,
15331 # most powerpc-linux boxes support dynamic linking these days and
15332 # people can always --disable-shared, the test was removed, and we
15333 # assume the GNU/Linux dynamic linker is in use.
15334 dynamic_linker='GNU/Linux ld.so'
15335 ;;
15336
15337 knetbsd*-gnu)
15338 version_type=linux
15339 need_lib_prefix=no
15340 need_version=no
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15342 soname_spec='${libname}${release}${shared_ext}$major'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15346 dynamic_linker='GNU ld.so'
15347 ;;
15348
15349 netbsd*)
15350 version_type=sunos
15351 need_lib_prefix=no
15352 need_version=no
15353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 dynamic_linker='NetBSD (a.out) ld.so'
15357 else
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 dynamic_linker='NetBSD ld.elf_so'
15361 fi
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15365 ;;
15366
15367 newsos6)
15368 version_type=linux
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373
15374 nto-qnx*)
15375 version_type=linux
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=yes
15382 ;;
15383
15384 openbsd*)
15385 version_type=sunos
15386 need_lib_prefix=no
15387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15388 case $host_os in
15389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15390 *) need_version=no ;;
15391 esac
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15396 case $host_os in
15397 openbsd2.[89] | openbsd2.[89].*)
15398 shlibpath_overrides_runpath=no
15399 ;;
15400 *)
15401 shlibpath_overrides_runpath=yes
15402 ;;
15403 esac
15404 else
15405 shlibpath_overrides_runpath=yes
15406 fi
15407 ;;
15408
15409 os2*)
15410 libname_spec='$name'
15411 shrext_cmds=".dll"
15412 need_lib_prefix=no
15413 library_names_spec='$libname${shared_ext} $libname.a'
15414 dynamic_linker='OS/2 ld.exe'
15415 shlibpath_var=LIBPATH
15416 ;;
15417
15418 osf3* | osf4* | osf5*)
15419 version_type=osf
15420 need_lib_prefix=no
15421 need_version=no
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15427 ;;
15428
15429 sco3.2v5*)
15430 version_type=osf
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 ;;
15435
15436 solaris*)
15437 version_type=linux
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 # ldd complains unless libraries are executable
15446 postinstall_cmds='chmod +x $lib'
15447 ;;
15448
15449 sunos4*)
15450 version_type=sunos
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 if test "$with_gnu_ld" = yes; then
15456 need_lib_prefix=no
15457 fi
15458 need_version=yes
15459 ;;
15460
15461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15462 version_type=linux
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 case $host_vendor in
15467 sni)
15468 shlibpath_overrides_runpath=no
15469 need_lib_prefix=no
15470 export_dynamic_flag_spec='${wl}-Blargedynsym'
15471 runpath_var=LD_RUN_PATH
15472 ;;
15473 siemens)
15474 need_lib_prefix=no
15475 ;;
15476 motorola)
15477 need_lib_prefix=no
15478 need_version=no
15479 shlibpath_overrides_runpath=no
15480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15481 ;;
15482 esac
15483 ;;
15484
15485 sysv4*MP*)
15486 if test -d /usr/nec ;then
15487 version_type=linux
15488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15489 soname_spec='$libname${shared_ext}.$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 fi
15492 ;;
15493
15494 uts4*)
15495 version_type=linux
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 ;;
15500
15501 *)
15502 dynamic_linker=no
15503 ;;
15504 esac
15505 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15506 echo "${ECHO_T}$dynamic_linker" >&6
15507 test "$dynamic_linker" = no && can_build_shared=no
15508
15509 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15511 hardcode_action_F77=
15512 if test -n "$hardcode_libdir_flag_spec_F77" || \
15513 test -n "$runpath_var_F77" || \
15514 test "X$hardcode_automatic_F77" = "Xyes" ; then
15515
15516 # We can hardcode non-existant directories.
15517 if test "$hardcode_direct_F77" != no &&
15518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15519 # have to relink, otherwise we might link with an installed library
15520 # when we should be linking with a yet-to-be-installed one
15521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15522 test "$hardcode_minus_L_F77" != no; then
15523 # Linking always hardcodes the temporary library directory.
15524 hardcode_action_F77=relink
15525 else
15526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15527 hardcode_action_F77=immediate
15528 fi
15529 else
15530 # We cannot hardcode anything, or else we can only hardcode existing
15531 # directories.
15532 hardcode_action_F77=unsupported
15533 fi
15534 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15535 echo "${ECHO_T}$hardcode_action_F77" >&6
15536
15537 if test "$hardcode_action_F77" = relink; then
15538 # Fast installation is not supported
15539 enable_fast_install=no
15540 elif test "$shlibpath_overrides_runpath" = yes ||
15541 test "$enable_shared" = no; then
15542 # Fast installation is not necessary
15543 enable_fast_install=needless
15544 fi
15545
15546 striplib=
15547 old_striplib=
15548 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15549 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15550 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15553 echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6
15555 else
15556 # FIXME - insert some real tests, host_os isn't really good enough
15557 case $host_os in
15558 darwin*)
15559 if test -n "$STRIP" ; then
15560 striplib="$STRIP -x"
15561 echo "$as_me:$LINENO: result: yes" >&5
15562 echo "${ECHO_T}yes" >&6
15563 else
15564 echo "$as_me:$LINENO: result: no" >&5
15565 echo "${ECHO_T}no" >&6
15566 fi
15567 ;;
15568 *)
15569 echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6
15571 ;;
15572 esac
15573 fi
15574
15575
15576
15577 # The else clause should only fire when bootstrapping the
15578 # libtool distribution, otherwise you forgot to ship ltmain.sh
15579 # with your package, and you will get complaints that there are
15580 # no rules to generate ltmain.sh.
15581 if test -f "$ltmain"; then
15582 # See if we are running on zsh, and set the options which allow our commands through
15583 # without removal of \ escapes.
15584 if test -n "${ZSH_VERSION+set}" ; then
15585 setopt NO_GLOB_SUBST
15586 fi
15587 # Now quote all the things that may contain metacharacters while being
15588 # careful not to overquote the AC_SUBSTed values. We take copies of the
15589 # variables and quote the copies for generation of the libtool script.
15590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15591 SED SHELL STRIP \
15592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15594 deplibs_check_method reload_flag reload_cmds need_locks \
15595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15596 lt_cv_sys_global_symbol_to_c_name_address \
15597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15598 old_postinstall_cmds old_postuninstall_cmds \
15599 compiler_F77 \
15600 CC_F77 \
15601 LD_F77 \
15602 lt_prog_compiler_wl_F77 \
15603 lt_prog_compiler_pic_F77 \
15604 lt_prog_compiler_static_F77 \
15605 lt_prog_compiler_no_builtin_flag_F77 \
15606 export_dynamic_flag_spec_F77 \
15607 thread_safe_flag_spec_F77 \
15608 whole_archive_flag_spec_F77 \
15609 enable_shared_with_static_runtimes_F77 \
15610 old_archive_cmds_F77 \
15611 old_archive_from_new_cmds_F77 \
15612 predep_objects_F77 \
15613 postdep_objects_F77 \
15614 predeps_F77 \
15615 postdeps_F77 \
15616 compiler_lib_search_path_F77 \
15617 archive_cmds_F77 \
15618 archive_expsym_cmds_F77 \
15619 postinstall_cmds_F77 \
15620 postuninstall_cmds_F77 \
15621 old_archive_from_expsyms_cmds_F77 \
15622 allow_undefined_flag_F77 \
15623 no_undefined_flag_F77 \
15624 export_symbols_cmds_F77 \
15625 hardcode_libdir_flag_spec_F77 \
15626 hardcode_libdir_flag_spec_ld_F77 \
15627 hardcode_libdir_separator_F77 \
15628 hardcode_automatic_F77 \
15629 module_cmds_F77 \
15630 module_expsym_cmds_F77 \
15631 lt_cv_prog_compiler_c_o_F77 \
15632 exclude_expsyms_F77 \
15633 include_expsyms_F77; do
15634
15635 case $var in
15636 old_archive_cmds_F77 | \
15637 old_archive_from_new_cmds_F77 | \
15638 archive_cmds_F77 | \
15639 archive_expsym_cmds_F77 | \
15640 module_cmds_F77 | \
15641 module_expsym_cmds_F77 | \
15642 old_archive_from_expsyms_cmds_F77 | \
15643 export_symbols_cmds_F77 | \
15644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15645 postinstall_cmds | postuninstall_cmds | \
15646 old_postinstall_cmds | old_postuninstall_cmds | \
15647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15648 # Double-quote double-evaled strings.
15649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15650 ;;
15651 *)
15652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15653 ;;
15654 esac
15655 done
15656
15657 case $lt_echo in
15658 *'\$0 --fallback-echo"')
15659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15660 ;;
15661 esac
15662
15663 cfgfile="$ofile"
15664
15665 cat <<__EOF__ >> "$cfgfile"
15666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15667
15668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15669
15670 # Shell to use when invoking shell scripts.
15671 SHELL=$lt_SHELL
15672
15673 # Whether or not to build shared libraries.
15674 build_libtool_libs=$enable_shared
15675
15676 # Whether or not to build static libraries.
15677 build_old_libs=$enable_static
15678
15679 # Whether or not to add -lc for building shared libraries.
15680 build_libtool_need_lc=$archive_cmds_need_lc_F77
15681
15682 # Whether or not to disallow shared libs when runtime libs are static
15683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15684
15685 # Whether or not to optimize for fast installation.
15686 fast_install=$enable_fast_install
15687
15688 # The host system.
15689 host_alias=$host_alias
15690 host=$host
15691 host_os=$host_os
15692
15693 # The build system.
15694 build_alias=$build_alias
15695 build=$build
15696 build_os=$build_os
15697
15698 # An echo program that does not interpret backslashes.
15699 echo=$lt_echo
15700
15701 # The archiver.
15702 AR=$lt_AR
15703 AR_FLAGS=$lt_AR_FLAGS
15704
15705 # A C compiler.
15706 LTCC=$lt_LTCC
15707
15708 # A language-specific compiler.
15709 CC=$lt_compiler_F77
15710
15711 # Is the compiler the GNU C compiler?
15712 with_gcc=$GCC_F77
15713
15714 # An ERE matcher.
15715 EGREP=$lt_EGREP
15716
15717 # The linker used to build libraries.
15718 LD=$lt_LD_F77
15719
15720 # Whether we need hard or soft links.
15721 LN_S=$lt_LN_S
15722
15723 # A BSD-compatible nm program.
15724 NM=$lt_NM
15725
15726 # A symbol stripping program
15727 STRIP=$lt_STRIP
15728
15729 # Used to examine libraries when file_magic_cmd begins "file"
15730 MAGIC_CMD=$MAGIC_CMD
15731
15732 # Used on cygwin: DLL creation program.
15733 DLLTOOL="$DLLTOOL"
15734
15735 # Used on cygwin: object dumper.
15736 OBJDUMP="$OBJDUMP"
15737
15738 # Used on cygwin: assembler.
15739 AS="$AS"
15740
15741 # The name of the directory that contains temporary libtool files.
15742 objdir=$objdir
15743
15744 # How to create reloadable object files.
15745 reload_flag=$lt_reload_flag
15746 reload_cmds=$lt_reload_cmds
15747
15748 # How to pass a linker flag through the compiler.
15749 wl=$lt_lt_prog_compiler_wl_F77
15750
15751 # Object file suffix (normally "o").
15752 objext="$ac_objext"
15753
15754 # Old archive suffix (normally "a").
15755 libext="$libext"
15756
15757 # Shared library suffix (normally ".so").
15758 shrext_cmds='$shrext_cmds'
15759
15760 # Executable file suffix (normally "").
15761 exeext="$exeext"
15762
15763 # Additional compiler flags for building library objects.
15764 pic_flag=$lt_lt_prog_compiler_pic_F77
15765 pic_mode=$pic_mode
15766
15767 # What is the maximum length of a command?
15768 max_cmd_len=$lt_cv_sys_max_cmd_len
15769
15770 # Does compiler simultaneously support -c and -o options?
15771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15772
15773 # Must we lock files when doing compilation?
15774 need_locks=$lt_need_locks
15775
15776 # Do we need the lib prefix for modules?
15777 need_lib_prefix=$need_lib_prefix
15778
15779 # Do we need a version for libraries?
15780 need_version=$need_version
15781
15782 # Whether dlopen is supported.
15783 dlopen_support=$enable_dlopen
15784
15785 # Whether dlopen of programs is supported.
15786 dlopen_self=$enable_dlopen_self
15787
15788 # Whether dlopen of statically linked programs is supported.
15789 dlopen_self_static=$enable_dlopen_self_static
15790
15791 # Compiler flag to prevent dynamic linking.
15792 link_static_flag=$lt_lt_prog_compiler_static_F77
15793
15794 # Compiler flag to turn off builtin functions.
15795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15796
15797 # Compiler flag to allow reflexive dlopens.
15798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15799
15800 # Compiler flag to generate shared objects directly from archives.
15801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15802
15803 # Compiler flag to generate thread-safe objects.
15804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15805
15806 # Library versioning type.
15807 version_type=$version_type
15808
15809 # Format of library name prefix.
15810 libname_spec=$lt_libname_spec
15811
15812 # List of archive names. First name is the real one, the rest are links.
15813 # The last name is the one that the linker finds with -lNAME.
15814 library_names_spec=$lt_library_names_spec
15815
15816 # The coded name of the library, if different from the real name.
15817 soname_spec=$lt_soname_spec
15818
15819 # Commands used to build and install an old-style archive.
15820 RANLIB=$lt_RANLIB
15821 old_archive_cmds=$lt_old_archive_cmds_F77
15822 old_postinstall_cmds=$lt_old_postinstall_cmds
15823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15824
15825 # Create an old-style archive from a shared archive.
15826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15827
15828 # Create a temporary old-style archive to link instead of a shared archive.
15829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15830
15831 # Commands used to build and install a shared archive.
15832 archive_cmds=$lt_archive_cmds_F77
15833 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15834 postinstall_cmds=$lt_postinstall_cmds
15835 postuninstall_cmds=$lt_postuninstall_cmds
15836
15837 # Commands used to build a loadable module (assumed same as above if empty)
15838 module_cmds=$lt_module_cmds_F77
15839 module_expsym_cmds=$lt_module_expsym_cmds_F77
15840
15841 # Commands to strip libraries.
15842 old_striplib=$lt_old_striplib
15843 striplib=$lt_striplib
15844
15845 # Dependencies to place before the objects being linked to create a
15846 # shared library.
15847 predep_objects=$lt_predep_objects_F77
15848
15849 # Dependencies to place after the objects being linked to create a
15850 # shared library.
15851 postdep_objects=$lt_postdep_objects_F77
15852
15853 # Dependencies to place before the objects being linked to create a
15854 # shared library.
15855 predeps=$lt_predeps_F77
15856
15857 # Dependencies to place after the objects being linked to create a
15858 # shared library.
15859 postdeps=$lt_postdeps_F77
15860
15861 # The library search path used internally by the compiler when linking
15862 # a shared library.
15863 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15864
15865 # Method to check whether dependent libraries are shared objects.
15866 deplibs_check_method=$lt_deplibs_check_method
15867
15868 # Command to use when deplibs_check_method == file_magic.
15869 file_magic_cmd=$lt_file_magic_cmd
15870
15871 # Flag that allows shared libraries with undefined symbols to be built.
15872 allow_undefined_flag=$lt_allow_undefined_flag_F77
15873
15874 # Flag that forces no undefined symbols.
15875 no_undefined_flag=$lt_no_undefined_flag_F77
15876
15877 # Commands used to finish a libtool library installation in a directory.
15878 finish_cmds=$lt_finish_cmds
15879
15880 # Same as above, but a single script fragment to be evaled but not shown.
15881 finish_eval=$lt_finish_eval
15882
15883 # Take the output of nm and produce a listing of raw symbols and C names.
15884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15885
15886 # Transform the output of nm in a proper C declaration
15887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15888
15889 # Transform the output of nm in a C name address pair
15890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15891
15892 # This is the shared library runtime path variable.
15893 runpath_var=$runpath_var
15894
15895 # This is the shared library path variable.
15896 shlibpath_var=$shlibpath_var
15897
15898 # Is shlibpath searched before the hard-coded library search path?
15899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15900
15901 # How to hardcode a shared library path into an executable.
15902 hardcode_action=$hardcode_action_F77
15903
15904 # Whether we should hardcode library paths into libraries.
15905 hardcode_into_libs=$hardcode_into_libs
15906
15907 # Flag to hardcode \$libdir into a binary during linking.
15908 # This must work even if \$libdir does not exist.
15909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15910
15911 # If ld is used when linking, flag to hardcode \$libdir into
15912 # a binary during linking. This must work even if \$libdir does
15913 # not exist.
15914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15915
15916 # Whether we need a single -rpath flag with a separated argument.
15917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15918
15919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_direct=$hardcode_direct_F77
15922
15923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15924 # resulting binary.
15925 hardcode_minus_L=$hardcode_minus_L_F77
15926
15927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15928 # the resulting binary.
15929 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15930
15931 # Set to yes if building a shared library automatically hardcodes DIR into the library
15932 # and all subsequent libraries and executables linked against it.
15933 hardcode_automatic=$hardcode_automatic_F77
15934
15935 # Variables whose values should be saved in libtool wrapper scripts and
15936 # restored at relink time.
15937 variables_saved_for_relink="$variables_saved_for_relink"
15938
15939 # Whether libtool must link a program against all its dependency libraries.
15940 link_all_deplibs=$link_all_deplibs_F77
15941
15942 # Compile-time system search path for libraries
15943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15944
15945 # Run-time system search path for libraries
15946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15947
15948 # Fix the shell variable \$srcfile for the compiler.
15949 fix_srcfile_path="$fix_srcfile_path_F77"
15950
15951 # Set to yes if exported symbols are required.
15952 always_export_symbols=$always_export_symbols_F77
15953
15954 # The commands to list exported symbols.
15955 export_symbols_cmds=$lt_export_symbols_cmds_F77
15956
15957 # The commands to extract the exported symbol list from a shared archive.
15958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15959
15960 # Symbols that should not be listed in the preloaded symbols.
15961 exclude_expsyms=$lt_exclude_expsyms_F77
15962
15963 # Symbols that must always be exported.
15964 include_expsyms=$lt_include_expsyms_F77
15965
15966 # ### END LIBTOOL TAG CONFIG: $tagname
15967
15968 __EOF__
15969
15970
15971 else
15972 # If there is no Makefile yet, we rely on a make rule to execute
15973 # `config.status --recheck' to rerun these tests and create the
15974 # libtool script then.
15975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15976 if test -f "$ltmain_in"; then
15977 test -f Makefile && make "$ltmain"
15978 fi
15979 fi
15980
15981
15982 ac_ext=c
15983 ac_cpp='$CPP $CPPFLAGS'
15984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15987
15988 CC="$lt_save_CC"
15989
15990 else
15991 tagname=""
15992 fi
15993 ;;
15994
15995 GCJ)
15996 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15997
15998
15999
16000 # Source file extension for Java test sources.
16001 ac_ext=java
16002
16003 # Object file extension for compiled Java test sources.
16004 objext=o
16005 objext_GCJ=$objext
16006
16007 # Code to be used in simple compile tests
16008 lt_simple_compile_test_code="class foo {}\n"
16009
16010 # Code to be used in simple link tests
16011 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16012
16013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16014
16015 # If no C compiler was specified, use CC.
16016 LTCC=${LTCC-"$CC"}
16017
16018 # Allow CC to be a program name with arguments.
16019 compiler=$CC
16020
16021
16022 # save warnings/boilerplate of simple test code
16023 ac_outfile=conftest.$ac_objext
16024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16026 _lt_compiler_boilerplate=`cat conftest.err`
16027 $rm conftest*
16028
16029 ac_outfile=conftest.$ac_objext
16030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16032 _lt_linker_boilerplate=`cat conftest.err`
16033 $rm conftest*
16034
16035
16036 # Allow CC to be a program name with arguments.
16037 lt_save_CC="$CC"
16038 CC=${GCJ-"gcj"}
16039 compiler=$CC
16040 compiler_GCJ=$CC
16041 for cc_temp in $compiler""; do
16042 case $cc_temp in
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045 \-*) ;;
16046 *) break;;
16047 esac
16048 done
16049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16050
16051
16052 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16053 archive_cmds_need_lc_GCJ=no
16054
16055 old_archive_cmds_GCJ=$old_archive_cmds
16056
16057
16058 lt_prog_compiler_no_builtin_flag_GCJ=
16059
16060 if test "$GCC" = yes; then
16061 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16062
16063
16064 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16065 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069 lt_cv_prog_compiler_rtti_exceptions=no
16070 ac_outfile=conftest.$ac_objext
16071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16072 lt_compiler_flag="-fno-rtti -fno-exceptions"
16073 # Insert the option either (1) after the last *FLAGS variable, or
16074 # (2) before a word containing "conftest.", or (3) at the end.
16075 # Note that $ac_compile itself does not contain backslashes and begins
16076 # with a dollar sign (not a hyphen), so the echo should work correctly.
16077 # The option is referenced via a variable to avoid confusing sed.
16078 lt_compile=`echo "$ac_compile" | $SED \
16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16081 -e 's:$: $lt_compiler_flag:'`
16082 (eval echo "\"\$as_me:16082: $lt_compile\"" >&5)
16083 (eval "$lt_compile" 2>conftest.err)
16084 ac_status=$?
16085 cat conftest.err >&5
16086 echo "$as_me:16086: \$? = $ac_status" >&5
16087 if (exit $ac_status) && test -s "$ac_outfile"; then
16088 # The compiler can only warn and ignore the option if not recognized
16089 # So say no if there are warnings other than the usual output.
16090 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16091 $SED '/^$/d' conftest.err >conftest.er2
16092 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16093 lt_cv_prog_compiler_rtti_exceptions=yes
16094 fi
16095 fi
16096 $rm conftest*
16097
16098 fi
16099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16100 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16101
16102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16103 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16104 else
16105 :
16106 fi
16107
16108 fi
16109
16110 lt_prog_compiler_wl_GCJ=
16111 lt_prog_compiler_pic_GCJ=
16112 lt_prog_compiler_static_GCJ=
16113
16114 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16115 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16116
16117 if test "$GCC" = yes; then
16118 lt_prog_compiler_wl_GCJ='-Wl,'
16119 lt_prog_compiler_static_GCJ='-static'
16120
16121 case $host_os in
16122 aix*)
16123 # All AIX code is PIC.
16124 if test "$host_cpu" = ia64; then
16125 # AIX 5 now supports IA64 processor
16126 lt_prog_compiler_static_GCJ='-Bstatic'
16127 fi
16128 ;;
16129
16130 amigaos*)
16131 # FIXME: we need at least 68020 code to build shared libraries, but
16132 # adding the `-m68020' flag to GCC prevents building anything better,
16133 # like `-m68040'.
16134 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16135 ;;
16136
16137 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16138 # PIC is the default for these OSes.
16139 ;;
16140
16141 mingw* | pw32* | os2*)
16142 # This hack is so that the source file can tell whether it is being
16143 # built for inclusion in a dll (and should export symbols for example).
16144 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16145 ;;
16146
16147 darwin* | rhapsody*)
16148 # PIC is the default on this platform
16149 # Common symbols not allowed in MH_DYLIB files
16150 lt_prog_compiler_pic_GCJ='-fno-common'
16151 ;;
16152
16153 msdosdjgpp*)
16154 # Just because we use GCC doesn't mean we suddenly get shared libraries
16155 # on systems that don't support them.
16156 lt_prog_compiler_can_build_shared_GCJ=no
16157 enable_shared=no
16158 ;;
16159
16160 sysv4*MP*)
16161 if test -d /usr/nec; then
16162 lt_prog_compiler_pic_GCJ=-Kconform_pic
16163 fi
16164 ;;
16165
16166 hpux*)
16167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16168 # not for PA HP-UX.
16169 case $host_cpu in
16170 hppa*64*|ia64*)
16171 # +Z the default
16172 ;;
16173 *)
16174 lt_prog_compiler_pic_GCJ='-fPIC'
16175 ;;
16176 esac
16177 ;;
16178
16179 *)
16180 lt_prog_compiler_pic_GCJ='-fPIC'
16181 ;;
16182 esac
16183 else
16184 # PORTME Check for flag to pass linker flags through the system compiler.
16185 case $host_os in
16186 aix*)
16187 lt_prog_compiler_wl_GCJ='-Wl,'
16188 if test "$host_cpu" = ia64; then
16189 # AIX 5 now supports IA64 processor
16190 lt_prog_compiler_static_GCJ='-Bstatic'
16191 else
16192 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16193 fi
16194 ;;
16195 darwin*)
16196 # PIC is the default on this platform
16197 # Common symbols not allowed in MH_DYLIB files
16198 case $cc_basename in
16199 xlc*)
16200 lt_prog_compiler_pic_GCJ='-qnocommon'
16201 lt_prog_compiler_wl_GCJ='-Wl,'
16202 ;;
16203 esac
16204 ;;
16205
16206 mingw* | pw32* | os2*)
16207 # This hack is so that the source file can tell whether it is being
16208 # built for inclusion in a dll (and should export symbols for example).
16209 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16210 ;;
16211
16212 hpux9* | hpux10* | hpux11*)
16213 lt_prog_compiler_wl_GCJ='-Wl,'
16214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16215 # not for PA HP-UX.
16216 case $host_cpu in
16217 hppa*64*|ia64*)
16218 # +Z the default
16219 ;;
16220 *)
16221 lt_prog_compiler_pic_GCJ='+Z'
16222 ;;
16223 esac
16224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16225 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16226 ;;
16227
16228 irix5* | irix6* | nonstopux*)
16229 lt_prog_compiler_wl_GCJ='-Wl,'
16230 # PIC (with -KPIC) is the default.
16231 lt_prog_compiler_static_GCJ='-non_shared'
16232 ;;
16233
16234 newsos6)
16235 lt_prog_compiler_pic_GCJ='-KPIC'
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16237 ;;
16238
16239 linux*)
16240 case $cc_basename in
16241 icc* | ecc*)
16242 lt_prog_compiler_wl_GCJ='-Wl,'
16243 lt_prog_compiler_pic_GCJ='-KPIC'
16244 lt_prog_compiler_static_GCJ='-static'
16245 ;;
16246 pgcc* | pgf77* | pgf90* | pgf95*)
16247 # Portland Group compilers (*not* the Pentium gcc compiler,
16248 # which looks to be a dead project)
16249 lt_prog_compiler_wl_GCJ='-Wl,'
16250 lt_prog_compiler_pic_GCJ='-fpic'
16251 lt_prog_compiler_static_GCJ='-Bstatic'
16252 ;;
16253 ccc*)
16254 lt_prog_compiler_wl_GCJ='-Wl,'
16255 # All Alpha code is PIC.
16256 lt_prog_compiler_static_GCJ='-non_shared'
16257 ;;
16258 esac
16259 ;;
16260
16261 osf3* | osf4* | osf5*)
16262 lt_prog_compiler_wl_GCJ='-Wl,'
16263 # All OSF/1 code is PIC.
16264 lt_prog_compiler_static_GCJ='-non_shared'
16265 ;;
16266
16267 sco3.2v5*)
16268 lt_prog_compiler_pic_GCJ='-Kpic'
16269 lt_prog_compiler_static_GCJ='-dn'
16270 ;;
16271
16272 solaris*)
16273 lt_prog_compiler_pic_GCJ='-KPIC'
16274 lt_prog_compiler_static_GCJ='-Bstatic'
16275 case $cc_basename in
16276 f77* | f90* | f95*)
16277 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16278 *)
16279 lt_prog_compiler_wl_GCJ='-Wl,';;
16280 esac
16281 ;;
16282
16283 sunos4*)
16284 lt_prog_compiler_wl_GCJ='-Qoption ld '
16285 lt_prog_compiler_pic_GCJ='-PIC'
16286 lt_prog_compiler_static_GCJ='-Bstatic'
16287 ;;
16288
16289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16290 lt_prog_compiler_wl_GCJ='-Wl,'
16291 lt_prog_compiler_pic_GCJ='-KPIC'
16292 lt_prog_compiler_static_GCJ='-Bstatic'
16293 ;;
16294
16295 sysv4*MP*)
16296 if test -d /usr/nec ;then
16297 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16298 lt_prog_compiler_static_GCJ='-Bstatic'
16299 fi
16300 ;;
16301
16302 unicos*)
16303 lt_prog_compiler_wl_GCJ='-Wl,'
16304 lt_prog_compiler_can_build_shared_GCJ=no
16305 ;;
16306
16307 uts4*)
16308 lt_prog_compiler_pic_GCJ='-pic'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16310 ;;
16311
16312 *)
16313 lt_prog_compiler_can_build_shared_GCJ=no
16314 ;;
16315 esac
16316 fi
16317
16318 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16319 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16320
16321 #
16322 # Check to make sure the PIC flag actually works.
16323 #
16324 if test -n "$lt_prog_compiler_pic_GCJ"; then
16325
16326 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16327 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16328 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 lt_prog_compiler_pic_works_GCJ=no
16332 ac_outfile=conftest.$ac_objext
16333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16334 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16335 # Insert the option either (1) after the last *FLAGS variable, or
16336 # (2) before a word containing "conftest.", or (3) at the end.
16337 # Note that $ac_compile itself does not contain backslashes and begins
16338 # with a dollar sign (not a hyphen), so the echo should work correctly.
16339 # The option is referenced via a variable to avoid confusing sed.
16340 lt_compile=`echo "$ac_compile" | $SED \
16341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16343 -e 's:$: $lt_compiler_flag:'`
16344 (eval echo "\"\$as_me:16344: $lt_compile\"" >&5)
16345 (eval "$lt_compile" 2>conftest.err)
16346 ac_status=$?
16347 cat conftest.err >&5
16348 echo "$as_me:16348: \$? = $ac_status" >&5
16349 if (exit $ac_status) && test -s "$ac_outfile"; then
16350 # The compiler can only warn and ignore the option if not recognized
16351 # So say no if there are warnings other than the usual output.
16352 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16353 $SED '/^$/d' conftest.err >conftest.er2
16354 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16355 lt_prog_compiler_pic_works_GCJ=yes
16356 fi
16357 fi
16358 $rm conftest*
16359
16360 fi
16361 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16362 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16363
16364 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16365 case $lt_prog_compiler_pic_GCJ in
16366 "" | " "*) ;;
16367 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16368 esac
16369 else
16370 lt_prog_compiler_pic_GCJ=
16371 lt_prog_compiler_can_build_shared_GCJ=no
16372 fi
16373
16374 fi
16375 case $host_os in
16376 # For platforms which do not support PIC, -DPIC is meaningless:
16377 *djgpp*)
16378 lt_prog_compiler_pic_GCJ=
16379 ;;
16380 *)
16381 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16382 ;;
16383 esac
16384
16385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16387 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390 lt_cv_prog_compiler_c_o_GCJ=no
16391 $rm -r conftest 2>/dev/null
16392 mkdir conftest
16393 cd conftest
16394 mkdir out
16395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16396
16397 lt_compiler_flag="-o out/conftest2.$ac_objext"
16398 # Insert the option either (1) after the last *FLAGS variable, or
16399 # (2) before a word containing "conftest.", or (3) at the end.
16400 # Note that $ac_compile itself does not contain backslashes and begins
16401 # with a dollar sign (not a hyphen), so the echo should work correctly.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
16406 (eval echo "\"\$as_me:16406: $lt_compile\"" >&5)
16407 (eval "$lt_compile" 2>out/conftest.err)
16408 ac_status=$?
16409 cat out/conftest.err >&5
16410 echo "$as_me:16410: \$? = $ac_status" >&5
16411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16412 then
16413 # The compiler can only warn and ignore the option if not recognized
16414 # So say no if there are warnings
16415 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16416 $SED '/^$/d' out/conftest.err >out/conftest.er2
16417 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16418 lt_cv_prog_compiler_c_o_GCJ=yes
16419 fi
16420 fi
16421 chmod u+w . 2>&5
16422 $rm conftest*
16423 # SGI C++ compiler will create directory out/ii_files/ for
16424 # template instantiation
16425 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16426 $rm out/* && rmdir out
16427 cd ..
16428 rmdir conftest
16429 $rm conftest*
16430
16431 fi
16432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16434
16435
16436 hard_links="nottested"
16437 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16438 # do not overwrite the value of need_locks provided by the user
16439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16441 hard_links=yes
16442 $rm conftest*
16443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16444 touch conftest.a
16445 ln conftest.a conftest.b 2>&5 || hard_links=no
16446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16447 echo "$as_me:$LINENO: result: $hard_links" >&5
16448 echo "${ECHO_T}$hard_links" >&6
16449 if test "$hard_links" = no; then
16450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16452 need_locks=warn
16453 fi
16454 else
16455 need_locks=no
16456 fi
16457
16458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16460
16461 runpath_var=
16462 allow_undefined_flag_GCJ=
16463 enable_shared_with_static_runtimes_GCJ=no
16464 archive_cmds_GCJ=
16465 archive_expsym_cmds_GCJ=
16466 old_archive_From_new_cmds_GCJ=
16467 old_archive_from_expsyms_cmds_GCJ=
16468 export_dynamic_flag_spec_GCJ=
16469 whole_archive_flag_spec_GCJ=
16470 thread_safe_flag_spec_GCJ=
16471 hardcode_libdir_flag_spec_GCJ=
16472 hardcode_libdir_flag_spec_ld_GCJ=
16473 hardcode_libdir_separator_GCJ=
16474 hardcode_direct_GCJ=no
16475 hardcode_minus_L_GCJ=no
16476 hardcode_shlibpath_var_GCJ=unsupported
16477 link_all_deplibs_GCJ=unknown
16478 hardcode_automatic_GCJ=no
16479 module_cmds_GCJ=
16480 module_expsym_cmds_GCJ=
16481 always_export_symbols_GCJ=no
16482 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16483 # include_expsyms should be a list of space-separated symbols to be *always*
16484 # included in the symbol list
16485 include_expsyms_GCJ=
16486 # exclude_expsyms can be an extended regexp of symbols to exclude
16487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16489 # as well as any symbol that contains `d'.
16490 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16492 # platforms (ab)use it in PIC code, but their linkers get confused if
16493 # the symbol is explicitly referenced. Since portable code cannot
16494 # rely on this symbol name, it's probably fine to never include it in
16495 # preloaded symbol tables.
16496 extract_expsyms_cmds=
16497 # Just being paranoid about ensuring that cc_basename is set.
16498 for cc_temp in $compiler""; do
16499 case $cc_temp in
16500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16502 \-*) ;;
16503 *) break;;
16504 esac
16505 done
16506 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16507
16508 case $host_os in
16509 cygwin* | mingw* | pw32*)
16510 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16511 # When not using gcc, we currently assume that we are using
16512 # Microsoft Visual C++.
16513 if test "$GCC" != yes; then
16514 with_gnu_ld=no
16515 fi
16516 ;;
16517 openbsd*)
16518 with_gnu_ld=no
16519 ;;
16520 esac
16521
16522 ld_shlibs_GCJ=yes
16523 if test "$with_gnu_ld" = yes; then
16524 # If archive_cmds runs LD, not CC, wlarc should be empty
16525 wlarc='${wl}'
16526
16527 # Set some defaults for GNU ld with shared library support. These
16528 # are reset later if shared libraries are not supported. Putting them
16529 # here allows them to be overridden if necessary.
16530 runpath_var=LD_RUN_PATH
16531 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16532 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16533 # ancient GNU ld didn't support --whole-archive et. al.
16534 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16535 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16536 else
16537 whole_archive_flag_spec_GCJ=
16538 fi
16539 supports_anon_versioning=no
16540 case `$LD -v 2>/dev/null` in
16541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16544 *\ 2.11.*) ;; # other 2.11 versions
16545 *) supports_anon_versioning=yes ;;
16546 esac
16547
16548 # See if GNU ld supports shared libraries.
16549 case $host_os in
16550 aix3* | aix4* | aix5*)
16551 # On AIX/PPC, the GNU linker is very broken
16552 if test "$host_cpu" != ia64; then
16553 ld_shlibs_GCJ=no
16554 cat <<EOF 1>&2
16555
16556 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16557 *** to be unable to reliably create shared libraries on AIX.
16558 *** Therefore, libtool is disabling shared libraries support. If you
16559 *** really care for shared libraries, you may want to modify your PATH
16560 *** so that a non-GNU linker is found, and then restart.
16561
16562 EOF
16563 fi
16564 ;;
16565
16566 amigaos*)
16567 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)'
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_minus_L_GCJ=yes
16570
16571 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16572 # that the semantics of dynamic libraries on AmigaOS, at least up
16573 # to version 4, is to share data among multiple programs linked
16574 # with the same dynamic library. Since this doesn't match the
16575 # behavior of shared libraries on other platforms, we can't use
16576 # them.
16577 ld_shlibs_GCJ=no
16578 ;;
16579
16580 beos*)
16581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16582 allow_undefined_flag_GCJ=unsupported
16583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16584 # support --undefined. This deserves some investigation. FIXME
16585 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 else
16587 ld_shlibs_GCJ=no
16588 fi
16589 ;;
16590
16591 cygwin* | mingw* | pw32*)
16592 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16593 # as there is no search path for DLLs.
16594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16595 allow_undefined_flag_GCJ=unsupported
16596 always_export_symbols_GCJ=no
16597 enable_shared_with_static_runtimes_GCJ=yes
16598 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16599
16600 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16601 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16602 # If the export-symbols file already is a .def file (1st line
16603 # is EXPORTS), use it as is; otherwise, prepend...
16604 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16605 cp $export_symbols $output_objdir/$soname.def;
16606 else
16607 echo EXPORTS > $output_objdir/$soname.def;
16608 cat $export_symbols >> $output_objdir/$soname.def;
16609 fi~
16610 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16611 else
16612 ld_shlibs_GCJ=no
16613 fi
16614 ;;
16615
16616 linux*)
16617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16618 tmp_addflag=
16619 case $cc_basename,$host_cpu in
16620 pgcc*) # Portland Group C compiler
16621 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'
16622 tmp_addflag=' $pic_flag'
16623 ;;
16624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16625 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'
16626 tmp_addflag=' $pic_flag -Mnomain' ;;
16627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16628 tmp_addflag=' -i_dynamic' ;;
16629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16630 tmp_addflag=' -i_dynamic -nofor_main' ;;
16631 ifc* | ifort*) # Intel Fortran compiler
16632 tmp_addflag=' -nofor_main' ;;
16633 esac
16634 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16635
16636 if test $supports_anon_versioning = yes; then
16637 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16638 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16639 $echo "local: *; };" >> $output_objdir/$libname.ver~
16640 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16641 fi
16642 else
16643 ld_shlibs_GCJ=no
16644 fi
16645 ;;
16646
16647 netbsd*)
16648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16649 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16650 wlarc=
16651 else
16652 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16653 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16654 fi
16655 ;;
16656
16657 solaris* | sysv5*)
16658 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16659 ld_shlibs_GCJ=no
16660 cat <<EOF 1>&2
16661
16662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16663 *** create shared libraries on Solaris systems. Therefore, libtool
16664 *** is disabling shared libraries support. We urge you to upgrade GNU
16665 *** binutils to release 2.9.1 or newer. Another option is to modify
16666 *** your PATH or compiler configuration so that the native linker is
16667 *** used, and then restart.
16668
16669 EOF
16670 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16672 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16673 else
16674 ld_shlibs_GCJ=no
16675 fi
16676 ;;
16677
16678 sunos4*)
16679 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680 wlarc=
16681 hardcode_direct_GCJ=yes
16682 hardcode_shlibpath_var_GCJ=no
16683 ;;
16684
16685 *)
16686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16689 else
16690 ld_shlibs_GCJ=no
16691 fi
16692 ;;
16693 esac
16694
16695 if test "$ld_shlibs_GCJ" = no; then
16696 runpath_var=
16697 hardcode_libdir_flag_spec_GCJ=
16698 export_dynamic_flag_spec_GCJ=
16699 whole_archive_flag_spec_GCJ=
16700 fi
16701 else
16702 # PORTME fill in a description of your system's linker (not GNU ld)
16703 case $host_os in
16704 aix3*)
16705 allow_undefined_flag_GCJ=unsupported
16706 always_export_symbols_GCJ=yes
16707 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'
16708 # Note: this linker hardcodes the directories in LIBPATH if there
16709 # are no directories specified by -L.
16710 hardcode_minus_L_GCJ=yes
16711 if test "$GCC" = yes && test -z "$link_static_flag"; then
16712 # Neither direct hardcoding nor static linking is supported with a
16713 # broken collect2.
16714 hardcode_direct_GCJ=unsupported
16715 fi
16716 ;;
16717
16718 aix4* | aix5*)
16719 if test "$host_cpu" = ia64; then
16720 # On IA64, the linker does run time linking by default, so we don't
16721 # have to do anything special.
16722 aix_use_runtimelinking=no
16723 exp_sym_flag='-Bexport'
16724 no_entry_flag=""
16725 else
16726 # If we're using GNU nm, then we don't want the "-C" option.
16727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16729 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'
16730 else
16731 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'
16732 fi
16733 aix_use_runtimelinking=no
16734
16735 # Test if we are trying to use run time linking or normal
16736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16737 # need to do runtime linking.
16738 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16739 for ld_flag in $LDFLAGS; do
16740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16741 aix_use_runtimelinking=yes
16742 break
16743 fi
16744 done
16745 esac
16746
16747 exp_sym_flag='-bexport'
16748 no_entry_flag='-bnoentry'
16749 fi
16750
16751 # When large executables or shared objects are built, AIX ld can
16752 # have problems creating the table of contents. If linking a library
16753 # or program results in "error TOC overflow" add -mminimal-toc to
16754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16756
16757 archive_cmds_GCJ=''
16758 hardcode_direct_GCJ=yes
16759 hardcode_libdir_separator_GCJ=':'
16760 link_all_deplibs_GCJ=yes
16761
16762 if test "$GCC" = yes; then
16763 case $host_os in aix4.[012]|aix4.[012].*)
16764 # We only want to do this on AIX 4.2 and lower, the check
16765 # below for broken collect2 doesn't work under 4.3+
16766 collect2name=`${CC} -print-prog-name=collect2`
16767 if test -f "$collect2name" && \
16768 strings "$collect2name" | grep resolve_lib_name >/dev/null
16769 then
16770 # We have reworked collect2
16771 hardcode_direct_GCJ=yes
16772 else
16773 # We have old collect2
16774 hardcode_direct_GCJ=unsupported
16775 # It fails to find uninstalled libraries when the uninstalled
16776 # path is not listed in the libpath. Setting hardcode_minus_L
16777 # to unsupported forces relinking
16778 hardcode_minus_L_GCJ=yes
16779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16780 hardcode_libdir_separator_GCJ=
16781 fi
16782 esac
16783 shared_flag='-shared'
16784 if test "$aix_use_runtimelinking" = yes; then
16785 shared_flag="$shared_flag "'${wl}-G'
16786 fi
16787 else
16788 # not using gcc
16789 if test "$host_cpu" = ia64; then
16790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16791 # chokes on -Wl,-G. The following line is correct:
16792 shared_flag='-G'
16793 else
16794 if test "$aix_use_runtimelinking" = yes; then
16795 shared_flag='${wl}-G'
16796 else
16797 shared_flag='${wl}-bM:SRE'
16798 fi
16799 fi
16800 fi
16801
16802 # It seems that -bexpall does not export symbols beginning with
16803 # underscore (_), so it is better to generate a list of symbols to export.
16804 always_export_symbols_GCJ=yes
16805 if test "$aix_use_runtimelinking" = yes; then
16806 # Warning - without using the other runtime loading flags (-brtl),
16807 # -berok will link without error, but may produce a broken library.
16808 allow_undefined_flag_GCJ='-berok'
16809 # Determine the default libpath from the value encoded in an empty executable.
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816
16817 int
16818 main ()
16819 {
16820
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>conftest.er1
16828 ac_status=$?
16829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest$ac_exeext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847
16848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16849 }'`
16850 # Check for a 64-bit object if we didn't find anything.
16851 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; }
16852 }'`; fi
16853 else
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 fi
16858 rm -f conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16861
16862 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16863 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"
16864 else
16865 if test "$host_cpu" = ia64; then
16866 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16867 allow_undefined_flag_GCJ="-z nodefs"
16868 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"
16869 else
16870 # Determine the default libpath from the value encoded in an empty executable.
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877
16878 int
16879 main ()
16880 {
16881
16882 ;
16883 return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>conftest.er1
16889 ac_status=$?
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908
16909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16910 }'`
16911 # Check for a 64-bit object if we didn't find anything.
16912 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; }
16913 }'`; fi
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 fi
16919 rm -f conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16922
16923 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16924 # Warning - without using the other run time loading flags,
16925 # -berok will link without error, but may produce a broken library.
16926 no_undefined_flag_GCJ=' ${wl}-bernotok'
16927 allow_undefined_flag_GCJ=' ${wl}-berok'
16928 # -bexpall does not export symbols beginning with underscore (_)
16929 always_export_symbols_GCJ=yes
16930 # Exported symbols can be pulled into shared objects from archives
16931 whole_archive_flag_spec_GCJ=' '
16932 archive_cmds_need_lc_GCJ=yes
16933 # This is similar to how AIX traditionally builds its shared libraries.
16934 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'
16935 fi
16936 fi
16937 ;;
16938
16939 amigaos*)
16940 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)'
16941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942 hardcode_minus_L_GCJ=yes
16943 # see comment about different semantics on the GNU ld section
16944 ld_shlibs_GCJ=no
16945 ;;
16946
16947 bsdi[45]*)
16948 export_dynamic_flag_spec_GCJ=-rdynamic
16949 ;;
16950
16951 cygwin* | mingw* | pw32*)
16952 # When not using gcc, we currently assume that we are using
16953 # Microsoft Visual C++.
16954 # hardcode_libdir_flag_spec is actually meaningless, as there is
16955 # no search path for DLLs.
16956 hardcode_libdir_flag_spec_GCJ=' '
16957 allow_undefined_flag_GCJ=unsupported
16958 # Tell ltmain to make .lib files, not .a files.
16959 libext=lib
16960 # Tell ltmain to make .dll files, not .so files.
16961 shrext_cmds=".dll"
16962 # FIXME: Setting linknames here is a bad hack.
16963 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16964 # The linker will automatically build a .lib file if we build a DLL.
16965 old_archive_From_new_cmds_GCJ='true'
16966 # FIXME: Should let the user specify the lib program.
16967 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16968 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16969 enable_shared_with_static_runtimes_GCJ=yes
16970 ;;
16971
16972 darwin* | rhapsody*)
16973 case $host_os in
16974 rhapsody* | darwin1.[012])
16975 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16976 ;;
16977 *) # Darwin 1.3 on
16978 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16979 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16980 else
16981 case ${MACOSX_DEPLOYMENT_TARGET} in
16982 10.[012])
16983 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16984 ;;
16985 10.*)
16986 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16987 ;;
16988 esac
16989 fi
16990 ;;
16991 esac
16992 archive_cmds_need_lc_GCJ=no
16993 hardcode_direct_GCJ=no
16994 hardcode_automatic_GCJ=yes
16995 hardcode_shlibpath_var_GCJ=unsupported
16996 whole_archive_flag_spec_GCJ=''
16997 link_all_deplibs_GCJ=yes
16998 if test "$GCC" = yes ; then
16999 output_verbose_link_cmd='echo'
17000 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17001 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17003 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}'
17004 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}'
17005 else
17006 case $cc_basename in
17007 xlc*)
17008 output_verbose_link_cmd='echo'
17009 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17010 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17012 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}'
17013 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}'
17014 ;;
17015 *)
17016 ld_shlibs_GCJ=no
17017 ;;
17018 esac
17019 fi
17020 ;;
17021
17022 dgux*)
17023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 hardcode_shlibpath_var_GCJ=no
17026 ;;
17027
17028 freebsd1*)
17029 ld_shlibs_GCJ=no
17030 ;;
17031
17032 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17033 # support. Future versions do this automatically, but an explicit c++rt0.o
17034 # does not break anything, and helps significantly (at the cost of a little
17035 # extra space).
17036 freebsd2.2*)
17037 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17038 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17039 hardcode_direct_GCJ=yes
17040 hardcode_shlibpath_var_GCJ=no
17041 ;;
17042
17043 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17044 freebsd2*)
17045 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17046 hardcode_direct_GCJ=yes
17047 hardcode_minus_L_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17049 ;;
17050
17051 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17052 freebsd* | kfreebsd*-gnu | dragonfly*)
17053 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17054 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17055 hardcode_direct_GCJ=yes
17056 hardcode_shlibpath_var_GCJ=no
17057 ;;
17058
17059 hpux9*)
17060 if test "$GCC" = yes; then
17061 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'
17062 else
17063 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'
17064 fi
17065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17066 hardcode_libdir_separator_GCJ=:
17067 hardcode_direct_GCJ=yes
17068
17069 # hardcode_minus_L: Not really in the search PATH,
17070 # but as the default location of the library.
17071 hardcode_minus_L_GCJ=yes
17072 export_dynamic_flag_spec_GCJ='${wl}-E'
17073 ;;
17074
17075 hpux10* | hpux11*)
17076 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17077 case $host_cpu in
17078 hppa*64*|ia64*)
17079 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 ;;
17081 *)
17082 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17083 ;;
17084 esac
17085 else
17086 case $host_cpu in
17087 hppa*64*|ia64*)
17088 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17089 ;;
17090 *)
17091 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17092 ;;
17093 esac
17094 fi
17095 if test "$with_gnu_ld" = no; then
17096 case $host_cpu in
17097 hppa*64*)
17098 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17099 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17100 hardcode_libdir_separator_GCJ=:
17101 hardcode_direct_GCJ=no
17102 hardcode_shlibpath_var_GCJ=no
17103 ;;
17104 ia64*)
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_direct_GCJ=no
17107 hardcode_shlibpath_var_GCJ=no
17108
17109 # hardcode_minus_L: Not really in the search PATH,
17110 # but as the default location of the library.
17111 hardcode_minus_L_GCJ=yes
17112 ;;
17113 *)
17114 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17115 hardcode_libdir_separator_GCJ=:
17116 hardcode_direct_GCJ=yes
17117 export_dynamic_flag_spec_GCJ='${wl}-E'
17118
17119 # hardcode_minus_L: Not really in the search PATH,
17120 # but as the default location of the library.
17121 hardcode_minus_L_GCJ=yes
17122 ;;
17123 esac
17124 fi
17125 ;;
17126
17127 irix5* | irix6* | nonstopux*)
17128 if test "$GCC" = yes; then
17129 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'
17130 else
17131 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'
17132 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17133 fi
17134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17135 hardcode_libdir_separator_GCJ=:
17136 link_all_deplibs_GCJ=yes
17137 ;;
17138
17139 netbsd*)
17140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17141 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17142 else
17143 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17144 fi
17145 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17146 hardcode_direct_GCJ=yes
17147 hardcode_shlibpath_var_GCJ=no
17148 ;;
17149
17150 newsos6)
17151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17152 hardcode_direct_GCJ=yes
17153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17154 hardcode_libdir_separator_GCJ=:
17155 hardcode_shlibpath_var_GCJ=no
17156 ;;
17157
17158 openbsd*)
17159 hardcode_direct_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17162 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17165 export_dynamic_flag_spec_GCJ='${wl}-E'
17166 else
17167 case $host_os in
17168 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17170 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17171 ;;
17172 *)
17173 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17175 ;;
17176 esac
17177 fi
17178 ;;
17179
17180 os2*)
17181 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17182 hardcode_minus_L_GCJ=yes
17183 allow_undefined_flag_GCJ=unsupported
17184 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'
17185 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17186 ;;
17187
17188 osf3*)
17189 if test "$GCC" = yes; then
17190 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17191 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'
17192 else
17193 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17194 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'
17195 fi
17196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17197 hardcode_libdir_separator_GCJ=:
17198 ;;
17199
17200 osf4* | osf5*) # as osf3* with the addition of -msym flag
17201 if test "$GCC" = yes; then
17202 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17203 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'
17204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17205 else
17206 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17207 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'
17208 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~
17209 $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'
17210
17211 # Both c and cxx compiler support -rpath directly
17212 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17213 fi
17214 hardcode_libdir_separator_GCJ=:
17215 ;;
17216
17217 sco3.2v5*)
17218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_shlibpath_var_GCJ=no
17220 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17221 runpath_var=LD_RUN_PATH
17222 hardcode_runpath_var=yes
17223 ;;
17224
17225 solaris*)
17226 no_undefined_flag_GCJ=' -z text'
17227 if test "$GCC" = yes; then
17228 wlarc='${wl}'
17229 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17232 else
17233 wlarc=''
17234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17237 fi
17238 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17239 hardcode_shlibpath_var_GCJ=no
17240 case $host_os in
17241 solaris2.[0-5] | solaris2.[0-5].*) ;;
17242 *)
17243 # The compiler driver will combine linker options so we
17244 # cannot just pass the convience library names through
17245 # without $wl, iff we do not link with $LD.
17246 # Luckily, gcc supports the same syntax we need for Sun Studio.
17247 # Supported since Solaris 2.6 (maybe 2.5.1?)
17248 case $wlarc in
17249 '')
17250 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17251 *)
17252 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' ;;
17253 esac ;;
17254 esac
17255 link_all_deplibs_GCJ=yes
17256 ;;
17257
17258 sunos4*)
17259 if test "x$host_vendor" = xsequent; then
17260 # Use $CC to link under sequent, because it throws in some extra .o
17261 # files that make .init and .fini sections work.
17262 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17263 else
17264 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17265 fi
17266 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17267 hardcode_direct_GCJ=yes
17268 hardcode_minus_L_GCJ=yes
17269 hardcode_shlibpath_var_GCJ=no
17270 ;;
17271
17272 sysv4)
17273 case $host_vendor in
17274 sni)
17275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_direct_GCJ=yes # is this really true???
17277 ;;
17278 siemens)
17279 ## LD is ld it makes a PLAMLIB
17280 ## CC just makes a GrossModule.
17281 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17282 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17283 hardcode_direct_GCJ=no
17284 ;;
17285 motorola)
17286 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17287 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17288 ;;
17289 esac
17290 runpath_var='LD_RUN_PATH'
17291 hardcode_shlibpath_var_GCJ=no
17292 ;;
17293
17294 sysv4.3*)
17295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17296 hardcode_shlibpath_var_GCJ=no
17297 export_dynamic_flag_spec_GCJ='-Bexport'
17298 ;;
17299
17300 sysv4*MP*)
17301 if test -d /usr/nec; then
17302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17303 hardcode_shlibpath_var_GCJ=no
17304 runpath_var=LD_RUN_PATH
17305 hardcode_runpath_var=yes
17306 ld_shlibs_GCJ=yes
17307 fi
17308 ;;
17309
17310 sysv4.2uw2*)
17311 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct_GCJ=yes
17313 hardcode_minus_L_GCJ=no
17314 hardcode_shlibpath_var_GCJ=no
17315 hardcode_runpath_var=yes
17316 runpath_var=LD_RUN_PATH
17317 ;;
17318
17319 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17320 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17321 if test "$GCC" = yes; then
17322 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17323 else
17324 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17325 fi
17326 runpath_var='LD_RUN_PATH'
17327 hardcode_shlibpath_var_GCJ=no
17328 ;;
17329
17330 sysv5*)
17331 no_undefined_flag_GCJ=' -z text'
17332 # $CC -shared without GNU ld will not create a library from C++
17333 # object files and a static libstdc++, better avoid it by now
17334 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337 hardcode_libdir_flag_spec_GCJ=
17338 hardcode_shlibpath_var_GCJ=no
17339 runpath_var='LD_RUN_PATH'
17340 ;;
17341
17342 uts4*)
17343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17345 hardcode_shlibpath_var_GCJ=no
17346 ;;
17347
17348 *)
17349 ld_shlibs_GCJ=no
17350 ;;
17351 esac
17352 fi
17353
17354 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17355 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17356 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17357
17358 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17359 if test "$GCC" = yes; then
17360 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17361 fi
17362
17363 #
17364 # Do we need to explicitly link libc?
17365 #
17366 case "x$archive_cmds_need_lc_GCJ" in
17367 x|xyes)
17368 # Assume -lc should be added
17369 archive_cmds_need_lc_GCJ=yes
17370
17371 if test "$enable_shared" = yes && test "$GCC" = yes; then
17372 case $archive_cmds_GCJ in
17373 *'~'*)
17374 # FIXME: we may have to deal with multi-command sequences.
17375 ;;
17376 '$CC '*)
17377 # Test whether the compiler implicitly links with -lc since on some
17378 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17379 # to ld, don't add -lc before -lgcc.
17380 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17381 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17382 $rm conftest*
17383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17384
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } 2>conftest.err; then
17390 soname=conftest
17391 lib=conftest
17392 libobjs=conftest.$ac_objext
17393 deplibs=
17394 wl=$lt_prog_compiler_wl_GCJ
17395 compiler_flags=-v
17396 linker_flags=-v
17397 verstring=
17398 output_objdir=.
17399 libname=conftest
17400 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17401 allow_undefined_flag_GCJ=
17402 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17403 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }
17407 then
17408 archive_cmds_need_lc_GCJ=no
17409 else
17410 archive_cmds_need_lc_GCJ=yes
17411 fi
17412 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17413 else
17414 cat conftest.err 1>&5
17415 fi
17416 $rm conftest*
17417 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17418 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17419 ;;
17420 esac
17421 fi
17422 ;;
17423 esac
17424
17425 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17427 library_names_spec=
17428 libname_spec='lib$name'
17429 soname_spec=
17430 shrext_cmds=".so"
17431 postinstall_cmds=
17432 postuninstall_cmds=
17433 finish_cmds=
17434 finish_eval=
17435 shlibpath_var=
17436 shlibpath_overrides_runpath=unknown
17437 version_type=none
17438 dynamic_linker="$host_os ld.so"
17439 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17440 if test "$GCC" = yes; then
17441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17442 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17443 # if the path contains ";" then we assume it to be the separator
17444 # otherwise default to the standard path separator (i.e. ":") - it is
17445 # assumed that no part of a normal pathname contains ";" but that should
17446 # okay in the real world where ";" in dirpaths is itself problematic.
17447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17448 else
17449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17450 fi
17451 else
17452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17453 fi
17454 need_lib_prefix=unknown
17455 hardcode_into_libs=no
17456
17457 # when you set need_version to no, make sure it does not cause -set_version
17458 # flags to be left without arguments
17459 need_version=unknown
17460
17461 case $host_os in
17462 aix3*)
17463 version_type=linux
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17465 shlibpath_var=LIBPATH
17466
17467 # AIX 3 has no versioning support, so we append a major version to the name.
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 ;;
17470
17471 aix4* | aix5*)
17472 version_type=linux
17473 need_lib_prefix=no
17474 need_version=no
17475 hardcode_into_libs=yes
17476 if test "$host_cpu" = ia64; then
17477 # AIX 5 supports IA64
17478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 else
17481 # With GCC up to 2.95.x, collect2 would create an import file
17482 # for dependence libraries. The import file would start with
17483 # the line `#! .'. This would cause the generated library to
17484 # depend on `.', always an invalid library. This was fixed in
17485 # development snapshots of GCC prior to 3.0.
17486 case $host_os in
17487 aix4 | aix4.[01] | aix4.[01].*)
17488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17489 echo ' yes '
17490 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17491 :
17492 else
17493 can_build_shared=no
17494 fi
17495 ;;
17496 esac
17497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17498 # soname into executable. Probably we can add versioning support to
17499 # collect2, so additional links can be useful in future.
17500 if test "$aix_use_runtimelinking" = yes; then
17501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17502 # instead of lib<name>.a to let people know that these are not
17503 # typical AIX shared libraries.
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 else
17506 # We preserve .a as extension for shared libraries through AIX4.2
17507 # and later when we are not doing run time linking.
17508 library_names_spec='${libname}${release}.a $libname.a'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 fi
17511 shlibpath_var=LIBPATH
17512 fi
17513 ;;
17514
17515 amigaos*)
17516 library_names_spec='$libname.ixlibrary $libname.a'
17517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17518 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'
17519 ;;
17520
17521 beos*)
17522 library_names_spec='${libname}${shared_ext}'
17523 dynamic_linker="$host_os ld.so"
17524 shlibpath_var=LIBRARY_PATH
17525 ;;
17526
17527 bsdi[45]*)
17528 version_type=linux
17529 need_version=no
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17536 # the default ld.so.conf also contains /usr/contrib/lib and
17537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17538 # libtool to hard-code these into programs
17539 ;;
17540
17541 cygwin* | mingw* | pw32*)
17542 version_type=windows
17543 shrext_cmds=".dll"
17544 need_version=no
17545 need_lib_prefix=no
17546
17547 case $GCC,$host_os in
17548 yes,cygwin* | yes,mingw* | yes,pw32*)
17549 library_names_spec='$libname.dll.a'
17550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17551 postinstall_cmds='base_file=`basename \${file}`~
17552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17553 dldir=$destdir/`dirname \$dlpath`~
17554 test -d \$dldir || mkdir -p \$dldir~
17555 $install_prog $dir/$dlname \$dldir/$dlname~
17556 chmod a+x \$dldir/$dlname'
17557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17558 dlpath=$dir/\$dldll~
17559 $rm \$dlpath'
17560 shlibpath_overrides_runpath=yes
17561
17562 case $host_os in
17563 cygwin*)
17564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17567 ;;
17568 mingw*)
17569 # MinGW DLLs use traditional 'lib' prefix
17570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17572 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17573 # It is most probably a Windows format PATH printed by
17574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17575 # path with ; separators, and with drive letters. We can handle the
17576 # drive letters (cygwin fileutils understands them), so leave them,
17577 # especially as we might pass files found there to a mingw objdump,
17578 # which wouldn't understand a cygwinified path. Ahh.
17579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17580 else
17581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17582 fi
17583 ;;
17584 pw32*)
17585 # pw32 DLLs use 'pw' prefix rather than 'lib'
17586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17587 ;;
17588 esac
17589 ;;
17590
17591 *)
17592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17593 ;;
17594 esac
17595 dynamic_linker='Win32 ld.exe'
17596 # FIXME: first we should search . and the directory the executable is in
17597 shlibpath_var=PATH
17598 ;;
17599
17600 darwin* | rhapsody*)
17601 dynamic_linker="$host_os dyld"
17602 version_type=darwin
17603 need_lib_prefix=no
17604 need_version=no
17605 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17606 soname_spec='${libname}${release}${major}$shared_ext'
17607 shlibpath_overrides_runpath=yes
17608 shlibpath_var=DYLD_LIBRARY_PATH
17609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17610 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17611 if test "$GCC" = yes; then
17612 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"`
17613 else
17614 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17615 fi
17616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17617 ;;
17618
17619 dgux*)
17620 version_type=linux
17621 need_lib_prefix=no
17622 need_version=no
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17626 ;;
17627
17628 freebsd1*)
17629 dynamic_linker=no
17630 ;;
17631
17632 kfreebsd*-gnu)
17633 version_type=linux
17634 need_lib_prefix=no
17635 need_version=no
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17637 soname_spec='${libname}${release}${shared_ext}$major'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17641 dynamic_linker='GNU ld.so'
17642 ;;
17643
17644 freebsd* | dragonfly*)
17645 # DragonFly does not have aout. When/if they implement a new
17646 # versioning mechanism, adjust this.
17647 if test -x /usr/bin/objformat; then
17648 objformat=`/usr/bin/objformat`
17649 else
17650 case $host_os in
17651 freebsd[123]*) objformat=aout ;;
17652 *) objformat=elf ;;
17653 esac
17654 fi
17655 version_type=freebsd-$objformat
17656 case $version_type in
17657 freebsd-elf*)
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17659 need_version=no
17660 need_lib_prefix=no
17661 ;;
17662 freebsd-*)
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17664 need_version=yes
17665 ;;
17666 esac
17667 shlibpath_var=LD_LIBRARY_PATH
17668 case $host_os in
17669 freebsd2*)
17670 shlibpath_overrides_runpath=yes
17671 ;;
17672 freebsd3.[01]* | freebsdelf3.[01]*)
17673 shlibpath_overrides_runpath=yes
17674 hardcode_into_libs=yes
17675 ;;
17676 *) # from 3.2 on
17677 shlibpath_overrides_runpath=no
17678 hardcode_into_libs=yes
17679 ;;
17680 esac
17681 ;;
17682
17683 gnu*)
17684 version_type=linux
17685 need_lib_prefix=no
17686 need_version=no
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 hardcode_into_libs=yes
17691 ;;
17692
17693 hpux9* | hpux10* | hpux11*)
17694 # Give a soname corresponding to the major version so that dld.sl refuses to
17695 # link against other versions.
17696 version_type=sunos
17697 need_lib_prefix=no
17698 need_version=no
17699 case $host_cpu in
17700 ia64*)
17701 shrext_cmds='.so'
17702 hardcode_into_libs=yes
17703 dynamic_linker="$host_os dld.so"
17704 shlibpath_var=LD_LIBRARY_PATH
17705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 if test "X$HPUX_IA64_MODE" = X32; then
17709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17710 else
17711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17712 fi
17713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17714 ;;
17715 hppa*64*)
17716 shrext_cmds='.sl'
17717 hardcode_into_libs=yes
17718 dynamic_linker="$host_os dld.sl"
17719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 soname_spec='${libname}${release}${shared_ext}$major'
17723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17725 ;;
17726 *)
17727 shrext_cmds='.sl'
17728 dynamic_linker="$host_os dld.sl"
17729 shlibpath_var=SHLIB_PATH
17730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732 soname_spec='${libname}${release}${shared_ext}$major'
17733 ;;
17734 esac
17735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17736 postinstall_cmds='chmod 555 $lib'
17737 ;;
17738
17739 irix5* | irix6* | nonstopux*)
17740 case $host_os in
17741 nonstopux*) version_type=nonstopux ;;
17742 *)
17743 if test "$lt_cv_prog_gnu_ld" = yes; then
17744 version_type=linux
17745 else
17746 version_type=irix
17747 fi ;;
17748 esac
17749 need_lib_prefix=no
17750 need_version=no
17751 soname_spec='${libname}${release}${shared_ext}$major'
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17753 case $host_os in
17754 irix5* | nonstopux*)
17755 libsuff= shlibsuff=
17756 ;;
17757 *)
17758 case $LD in # libtool.m4 will add one of these switches to LD
17759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17760 libsuff= shlibsuff= libmagic=32-bit;;
17761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17762 libsuff=32 shlibsuff=N32 libmagic=N32;;
17763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17765 *) libsuff= shlibsuff= libmagic=never-match;;
17766 esac
17767 ;;
17768 esac
17769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17770 shlibpath_overrides_runpath=no
17771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17773 hardcode_into_libs=yes
17774 ;;
17775
17776 # No shared lib support for Linux oldld, aout, or coff.
17777 linux*oldld* | linux*aout* | linux*coff*)
17778 dynamic_linker=no
17779 ;;
17780
17781 # This must be Linux ELF.
17782 linux*)
17783 version_type=linux
17784 need_lib_prefix=no
17785 need_version=no
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=no
17791 # This implies no fast_install, which is unacceptable.
17792 # Some rework will be needed to allow for fast_install
17793 # before this can be enabled.
17794 hardcode_into_libs=yes
17795
17796 # Append ld.so.conf contents to the search path
17797 if test -f /etc/ld.so.conf; then
17798 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' ' '`
17799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17800 fi
17801
17802 # We used to test for /lib/ld.so.1 and disable shared libraries on
17803 # powerpc, because MkLinux only supported shared libraries with the
17804 # GNU dynamic linker. Since this was broken with cross compilers,
17805 # most powerpc-linux boxes support dynamic linking these days and
17806 # people can always --disable-shared, the test was removed, and we
17807 # assume the GNU/Linux dynamic linker is in use.
17808 dynamic_linker='GNU/Linux ld.so'
17809 ;;
17810
17811 knetbsd*-gnu)
17812 version_type=linux
17813 need_lib_prefix=no
17814 need_version=no
17815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17816 soname_spec='${libname}${release}${shared_ext}$major'
17817 shlibpath_var=LD_LIBRARY_PATH
17818 shlibpath_overrides_runpath=no
17819 hardcode_into_libs=yes
17820 dynamic_linker='GNU ld.so'
17821 ;;
17822
17823 netbsd*)
17824 version_type=sunos
17825 need_lib_prefix=no
17826 need_version=no
17827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17830 dynamic_linker='NetBSD (a.out) ld.so'
17831 else
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 dynamic_linker='NetBSD ld.elf_so'
17835 fi
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17839 ;;
17840
17841 newsos6)
17842 version_type=linux
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 ;;
17847
17848 nto-qnx*)
17849 version_type=linux
17850 need_lib_prefix=no
17851 need_version=no
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=yes
17856 ;;
17857
17858 openbsd*)
17859 version_type=sunos
17860 need_lib_prefix=no
17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17862 case $host_os in
17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17864 *) need_version=no ;;
17865 esac
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17870 case $host_os in
17871 openbsd2.[89] | openbsd2.[89].*)
17872 shlibpath_overrides_runpath=no
17873 ;;
17874 *)
17875 shlibpath_overrides_runpath=yes
17876 ;;
17877 esac
17878 else
17879 shlibpath_overrides_runpath=yes
17880 fi
17881 ;;
17882
17883 os2*)
17884 libname_spec='$name'
17885 shrext_cmds=".dll"
17886 need_lib_prefix=no
17887 library_names_spec='$libname${shared_ext} $libname.a'
17888 dynamic_linker='OS/2 ld.exe'
17889 shlibpath_var=LIBPATH
17890 ;;
17891
17892 osf3* | osf4* | osf5*)
17893 version_type=osf
17894 need_lib_prefix=no
17895 need_version=no
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17901 ;;
17902
17903 sco3.2v5*)
17904 version_type=osf
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 ;;
17909
17910 solaris*)
17911 version_type=linux
17912 need_lib_prefix=no
17913 need_version=no
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=yes
17918 hardcode_into_libs=yes
17919 # ldd complains unless libraries are executable
17920 postinstall_cmds='chmod +x $lib'
17921 ;;
17922
17923 sunos4*)
17924 version_type=sunos
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17926 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 shlibpath_overrides_runpath=yes
17929 if test "$with_gnu_ld" = yes; then
17930 need_lib_prefix=no
17931 fi
17932 need_version=yes
17933 ;;
17934
17935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17936 version_type=linux
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 shlibpath_var=LD_LIBRARY_PATH
17940 case $host_vendor in
17941 sni)
17942 shlibpath_overrides_runpath=no
17943 need_lib_prefix=no
17944 export_dynamic_flag_spec='${wl}-Blargedynsym'
17945 runpath_var=LD_RUN_PATH
17946 ;;
17947 siemens)
17948 need_lib_prefix=no
17949 ;;
17950 motorola)
17951 need_lib_prefix=no
17952 need_version=no
17953 shlibpath_overrides_runpath=no
17954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17955 ;;
17956 esac
17957 ;;
17958
17959 sysv4*MP*)
17960 if test -d /usr/nec ;then
17961 version_type=linux
17962 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17963 soname_spec='$libname${shared_ext}.$major'
17964 shlibpath_var=LD_LIBRARY_PATH
17965 fi
17966 ;;
17967
17968 uts4*)
17969 version_type=linux
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 ;;
17974
17975 *)
17976 dynamic_linker=no
17977 ;;
17978 esac
17979 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17980 echo "${ECHO_T}$dynamic_linker" >&6
17981 test "$dynamic_linker" = no && can_build_shared=no
17982
17983 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17984 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17985 hardcode_action_GCJ=
17986 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17987 test -n "$runpath_var_GCJ" || \
17988 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17989
17990 # We can hardcode non-existant directories.
17991 if test "$hardcode_direct_GCJ" != no &&
17992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17993 # have to relink, otherwise we might link with an installed library
17994 # when we should be linking with a yet-to-be-installed one
17995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17996 test "$hardcode_minus_L_GCJ" != no; then
17997 # Linking always hardcodes the temporary library directory.
17998 hardcode_action_GCJ=relink
17999 else
18000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18001 hardcode_action_GCJ=immediate
18002 fi
18003 else
18004 # We cannot hardcode anything, or else we can only hardcode existing
18005 # directories.
18006 hardcode_action_GCJ=unsupported
18007 fi
18008 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18009 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18010
18011 if test "$hardcode_action_GCJ" = relink; then
18012 # Fast installation is not supported
18013 enable_fast_install=no
18014 elif test "$shlibpath_overrides_runpath" = yes ||
18015 test "$enable_shared" = no; then
18016 # Fast installation is not necessary
18017 enable_fast_install=needless
18018 fi
18019
18020 striplib=
18021 old_striplib=
18022 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18023 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18024 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18025 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18026 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18027 echo "$as_me:$LINENO: result: yes" >&5
18028 echo "${ECHO_T}yes" >&6
18029 else
18030 # FIXME - insert some real tests, host_os isn't really good enough
18031 case $host_os in
18032 darwin*)
18033 if test -n "$STRIP" ; then
18034 striplib="$STRIP -x"
18035 echo "$as_me:$LINENO: result: yes" >&5
18036 echo "${ECHO_T}yes" >&6
18037 else
18038 echo "$as_me:$LINENO: result: no" >&5
18039 echo "${ECHO_T}no" >&6
18040 fi
18041 ;;
18042 *)
18043 echo "$as_me:$LINENO: result: no" >&5
18044 echo "${ECHO_T}no" >&6
18045 ;;
18046 esac
18047 fi
18048
18049 if test "x$enable_dlopen" != xyes; then
18050 enable_dlopen=unknown
18051 enable_dlopen_self=unknown
18052 enable_dlopen_self_static=unknown
18053 else
18054 lt_cv_dlopen=no
18055 lt_cv_dlopen_libs=
18056
18057 case $host_os in
18058 beos*)
18059 lt_cv_dlopen="load_add_on"
18060 lt_cv_dlopen_libs=
18061 lt_cv_dlopen_self=yes
18062 ;;
18063
18064 mingw* | pw32*)
18065 lt_cv_dlopen="LoadLibrary"
18066 lt_cv_dlopen_libs=
18067 ;;
18068
18069 cygwin*)
18070 lt_cv_dlopen="dlopen"
18071 lt_cv_dlopen_libs=
18072 ;;
18073
18074 darwin*)
18075 # if libdl is installed we need to link against it
18076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081 ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-ldl $LIBS"
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089
18090 /* Override any gcc2 internal prototype to avoid an error. */
18091 #ifdef __cplusplus
18092 extern "C"
18093 #endif
18094 /* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18096 char dlopen ();
18097 int
18098 main ()
18099 {
18100 dlopen ();
18101 ;
18102 return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107 (eval $ac_link) 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_lib_dl_dlopen=yes
18128 else
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_cv_lib_dl_dlopen=no
18133 fi
18134 rm -f conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18137 fi
18138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18140 if test $ac_cv_lib_dl_dlopen = yes; then
18141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18142 else
18143
18144 lt_cv_dlopen="dyld"
18145 lt_cv_dlopen_libs=
18146 lt_cv_dlopen_self=yes
18147
18148 fi
18149
18150 ;;
18151
18152 *)
18153 echo "$as_me:$LINENO: checking for shl_load" >&5
18154 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18155 if test "${ac_cv_func_shl_load+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18166 #define shl_load innocuous_shl_load
18167
18168 /* System header to define __stub macros and hopefully few prototypes,
18169 which can conflict with char shl_load (); below.
18170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171 <limits.h> exists even on freestanding compilers. */
18172
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18178
18179 #undef shl_load
18180
18181 /* Override any gcc2 internal prototype to avoid an error. */
18182 #ifdef __cplusplus
18183 extern "C"
18184 {
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char shl_load ();
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18193 choke me
18194 #else
18195 char (*f) () = shl_load;
18196 #endif
18197 #ifdef __cplusplus
18198 }
18199 #endif
18200
18201 int
18202 main ()
18203 {
18204 return f != shl_load;
18205 ;
18206 return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest$ac_exeext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_cv_func_shl_load=yes
18232 else
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 ac_cv_func_shl_load=no
18237 fi
18238 rm -f conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18240 fi
18241 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18243 if test $ac_cv_func_shl_load = yes; then
18244 lt_cv_dlopen="shl_load"
18245 else
18246 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251 ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-ldld $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259
18260 /* Override any gcc2 internal prototype to avoid an error. */
18261 #ifdef __cplusplus
18262 extern "C"
18263 #endif
18264 /* We use char because int might match the return type of a gcc2
18265 builtin and then its argument prototype would still apply. */
18266 char shl_load ();
18267 int
18268 main ()
18269 {
18270 shl_load ();
18271 ;
18272 return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_dld_shl_load=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 ac_cv_lib_dld_shl_load=no
18303 fi
18304 rm -f conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18307 fi
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18310 if test $ac_cv_lib_dld_shl_load = yes; then
18311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18312 else
18313 echo "$as_me:$LINENO: checking for dlopen" >&5
18314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18315 if test "${ac_cv_func_dlopen+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18326 #define dlopen innocuous_dlopen
18327
18328 /* System header to define __stub macros and hopefully few prototypes,
18329 which can conflict with char dlopen (); below.
18330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18331 <limits.h> exists even on freestanding compilers. */
18332
18333 #ifdef __STDC__
18334 # include <limits.h>
18335 #else
18336 # include <assert.h>
18337 #endif
18338
18339 #undef dlopen
18340
18341 /* Override any gcc2 internal prototype to avoid an error. */
18342 #ifdef __cplusplus
18343 extern "C"
18344 {
18345 #endif
18346 /* We use char because int might match the return type of a gcc2
18347 builtin and then its argument prototype would still apply. */
18348 char dlopen ();
18349 /* The GNU C library defines this for functions which it implements
18350 to always fail with ENOSYS. Some functions are actually named
18351 something starting with __ and the normal name is an alias. */
18352 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18353 choke me
18354 #else
18355 char (*f) () = dlopen;
18356 #endif
18357 #ifdef __cplusplus
18358 }
18359 #endif
18360
18361 int
18362 main ()
18363 {
18364 return f != dlopen;
18365 ;
18366 return 0;
18367 }
18368 _ACEOF
18369 rm -f conftest.$ac_objext conftest$ac_exeext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18371 (eval $ac_link) 2>conftest.er1
18372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag"
18379 || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_func_dlopen=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 ac_cv_func_dlopen=no
18397 fi
18398 rm -f conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 fi
18401 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18402 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18403 if test $ac_cv_func_dlopen = yes; then
18404 lt_cv_dlopen="dlopen"
18405 else
18406 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411 ac_check_lib_save_LIBS=$LIBS
18412 LIBS="-ldl $LIBS"
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419
18420 /* Override any gcc2 internal prototype to avoid an error. */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 /* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426 char dlopen ();
18427 int
18428 main ()
18429 {
18430 dlopen ();
18431 ;
18432 return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -z "$ac_c_werror_flag"
18445 || test ! -s conftest.err'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_cv_lib_dl_dlopen=yes
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 ac_cv_lib_dl_dlopen=no
18463 fi
18464 rm -f conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18467 fi
18468 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18470 if test $ac_cv_lib_dl_dlopen = yes; then
18471 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18472 else
18473 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18474 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18475 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478 ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lsvld $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h. */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486
18487 /* Override any gcc2 internal prototype to avoid an error. */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 /* We use char because int might match the return type of a gcc2
18492 builtin and then its argument prototype would still apply. */
18493 char dlopen ();
18494 int
18495 main ()
18496 {
18497 dlopen ();
18498 ;
18499 return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>conftest.er1
18505 ac_status=$?
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_c_werror_flag"
18512 || test ! -s conftest.err'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 ac_cv_lib_svld_dlopen=yes
18525 else
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529 ac_cv_lib_svld_dlopen=no
18530 fi
18531 rm -f conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18534 fi
18535 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18536 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18537 if test $ac_cv_lib_svld_dlopen = yes; then
18538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18539 else
18540 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18541 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18542 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545 ac_check_lib_save_LIBS=$LIBS
18546 LIBS="-ldld $LIBS"
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h. */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h. */
18553
18554 /* Override any gcc2 internal prototype to avoid an error. */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 /* We use char because int might match the return type of a gcc2
18559 builtin and then its argument prototype would still apply. */
18560 char dld_link ();
18561 int
18562 main ()
18563 {
18564 dld_link ();
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18571 (eval $ac_link) 2>conftest.er1
18572 ac_status=$?
18573 grep -v '^ *+' conftest.er1 >conftest.err
18574 rm -f conftest.er1
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } &&
18578 { ac_try='test -z "$ac_c_werror_flag"
18579 || test ! -s conftest.err'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_dld_dld_link=yes
18592 else
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_lib_dld_dld_link=no
18597 fi
18598 rm -f conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18601 fi
18602 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18604 if test $ac_cv_lib_dld_dld_link = yes; then
18605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18606 fi
18607
18608
18609 fi
18610
18611
18612 fi
18613
18614
18615 fi
18616
18617
18618 fi
18619
18620
18621 fi
18622
18623 ;;
18624 esac
18625
18626 if test "x$lt_cv_dlopen" != xno; then
18627 enable_dlopen=yes
18628 else
18629 enable_dlopen=no
18630 fi
18631
18632 case $lt_cv_dlopen in
18633 dlopen)
18634 save_CPPFLAGS="$CPPFLAGS"
18635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18636
18637 save_LDFLAGS="$LDFLAGS"
18638 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18639
18640 save_LIBS="$LIBS"
18641 LIBS="$lt_cv_dlopen_libs $LIBS"
18642
18643 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18645 if test "${lt_cv_dlopen_self+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648 if test "$cross_compiling" = yes; then :
18649 lt_cv_dlopen_self=cross
18650 else
18651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18652 lt_status=$lt_dlunknown
18653 cat > conftest.$ac_ext <<EOF
18654 #line 18654 "configure"
18655 #include "confdefs.h"
18656
18657 #if HAVE_DLFCN_H
18658 #include <dlfcn.h>
18659 #endif
18660
18661 #include <stdio.h>
18662
18663 #ifdef RTLD_GLOBAL
18664 # define LT_DLGLOBAL RTLD_GLOBAL
18665 #else
18666 # ifdef DL_GLOBAL
18667 # define LT_DLGLOBAL DL_GLOBAL
18668 # else
18669 # define LT_DLGLOBAL 0
18670 # endif
18671 #endif
18672
18673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18674 find out it does not work in some platform. */
18675 #ifndef LT_DLLAZY_OR_NOW
18676 # ifdef RTLD_LAZY
18677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18678 # else
18679 # ifdef DL_LAZY
18680 # define LT_DLLAZY_OR_NOW DL_LAZY
18681 # else
18682 # ifdef RTLD_NOW
18683 # define LT_DLLAZY_OR_NOW RTLD_NOW
18684 # else
18685 # ifdef DL_NOW
18686 # define LT_DLLAZY_OR_NOW DL_NOW
18687 # else
18688 # define LT_DLLAZY_OR_NOW 0
18689 # endif
18690 # endif
18691 # endif
18692 # endif
18693 #endif
18694
18695 #ifdef __cplusplus
18696 extern "C" void exit (int);
18697 #endif
18698
18699 void fnord() { int i=42;}
18700 int main ()
18701 {
18702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18703 int status = $lt_dlunknown;
18704
18705 if (self)
18706 {
18707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18709 /* dlclose (self); */
18710 }
18711
18712 exit (status);
18713 }
18714 EOF
18715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18720 (./conftest; exit; ) >&5 2>/dev/null
18721 lt_status=$?
18722 case x$lt_status in
18723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18725 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18726 esac
18727 else :
18728 # compilation failed
18729 lt_cv_dlopen_self=no
18730 fi
18731 fi
18732 rm -fr conftest*
18733
18734
18735 fi
18736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18738
18739 if test "x$lt_cv_dlopen_self" = xyes; then
18740 LDFLAGS="$LDFLAGS $link_static_flag"
18741 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18743 if test "${lt_cv_dlopen_self_static+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 if test "$cross_compiling" = yes; then :
18747 lt_cv_dlopen_self_static=cross
18748 else
18749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18750 lt_status=$lt_dlunknown
18751 cat > conftest.$ac_ext <<EOF
18752 #line 18752 "configure"
18753 #include "confdefs.h"
18754
18755 #if HAVE_DLFCN_H
18756 #include <dlfcn.h>
18757 #endif
18758
18759 #include <stdio.h>
18760
18761 #ifdef RTLD_GLOBAL
18762 # define LT_DLGLOBAL RTLD_GLOBAL
18763 #else
18764 # ifdef DL_GLOBAL
18765 # define LT_DLGLOBAL DL_GLOBAL
18766 # else
18767 # define LT_DLGLOBAL 0
18768 # endif
18769 #endif
18770
18771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18772 find out it does not work in some platform. */
18773 #ifndef LT_DLLAZY_OR_NOW
18774 # ifdef RTLD_LAZY
18775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18776 # else
18777 # ifdef DL_LAZY
18778 # define LT_DLLAZY_OR_NOW DL_LAZY
18779 # else
18780 # ifdef RTLD_NOW
18781 # define LT_DLLAZY_OR_NOW RTLD_NOW
18782 # else
18783 # ifdef DL_NOW
18784 # define LT_DLLAZY_OR_NOW DL_NOW
18785 # else
18786 # define LT_DLLAZY_OR_NOW 0
18787 # endif
18788 # endif
18789 # endif
18790 # endif
18791 #endif
18792
18793 #ifdef __cplusplus
18794 extern "C" void exit (int);
18795 #endif
18796
18797 void fnord() { int i=42;}
18798 int main ()
18799 {
18800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18801 int status = $lt_dlunknown;
18802
18803 if (self)
18804 {
18805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18807 /* dlclose (self); */
18808 }
18809
18810 exit (status);
18811 }
18812 EOF
18813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18818 (./conftest; exit; ) >&5 2>/dev/null
18819 lt_status=$?
18820 case x$lt_status in
18821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18823 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18824 esac
18825 else :
18826 # compilation failed
18827 lt_cv_dlopen_self_static=no
18828 fi
18829 fi
18830 rm -fr conftest*
18831
18832
18833 fi
18834 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18836 fi
18837
18838 CPPFLAGS="$save_CPPFLAGS"
18839 LDFLAGS="$save_LDFLAGS"
18840 LIBS="$save_LIBS"
18841 ;;
18842 esac
18843
18844 case $lt_cv_dlopen_self in
18845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18846 *) enable_dlopen_self=unknown ;;
18847 esac
18848
18849 case $lt_cv_dlopen_self_static in
18850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18851 *) enable_dlopen_self_static=unknown ;;
18852 esac
18853 fi
18854
18855
18856 # The else clause should only fire when bootstrapping the
18857 # libtool distribution, otherwise you forgot to ship ltmain.sh
18858 # with your package, and you will get complaints that there are
18859 # no rules to generate ltmain.sh.
18860 if test -f "$ltmain"; then
18861 # See if we are running on zsh, and set the options which allow our commands through
18862 # without removal of \ escapes.
18863 if test -n "${ZSH_VERSION+set}" ; then
18864 setopt NO_GLOB_SUBST
18865 fi
18866 # Now quote all the things that may contain metacharacters while being
18867 # careful not to overquote the AC_SUBSTed values. We take copies of the
18868 # variables and quote the copies for generation of the libtool script.
18869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18870 SED SHELL STRIP \
18871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18873 deplibs_check_method reload_flag reload_cmds need_locks \
18874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18875 lt_cv_sys_global_symbol_to_c_name_address \
18876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18877 old_postinstall_cmds old_postuninstall_cmds \
18878 compiler_GCJ \
18879 CC_GCJ \
18880 LD_GCJ \
18881 lt_prog_compiler_wl_GCJ \
18882 lt_prog_compiler_pic_GCJ \
18883 lt_prog_compiler_static_GCJ \
18884 lt_prog_compiler_no_builtin_flag_GCJ \
18885 export_dynamic_flag_spec_GCJ \
18886 thread_safe_flag_spec_GCJ \
18887 whole_archive_flag_spec_GCJ \
18888 enable_shared_with_static_runtimes_GCJ \
18889 old_archive_cmds_GCJ \
18890 old_archive_from_new_cmds_GCJ \
18891 predep_objects_GCJ \
18892 postdep_objects_GCJ \
18893 predeps_GCJ \
18894 postdeps_GCJ \
18895 compiler_lib_search_path_GCJ \
18896 archive_cmds_GCJ \
18897 archive_expsym_cmds_GCJ \
18898 postinstall_cmds_GCJ \
18899 postuninstall_cmds_GCJ \
18900 old_archive_from_expsyms_cmds_GCJ \
18901 allow_undefined_flag_GCJ \
18902 no_undefined_flag_GCJ \
18903 export_symbols_cmds_GCJ \
18904 hardcode_libdir_flag_spec_GCJ \
18905 hardcode_libdir_flag_spec_ld_GCJ \
18906 hardcode_libdir_separator_GCJ \
18907 hardcode_automatic_GCJ \
18908 module_cmds_GCJ \
18909 module_expsym_cmds_GCJ \
18910 lt_cv_prog_compiler_c_o_GCJ \
18911 exclude_expsyms_GCJ \
18912 include_expsyms_GCJ; do
18913
18914 case $var in
18915 old_archive_cmds_GCJ | \
18916 old_archive_from_new_cmds_GCJ | \
18917 archive_cmds_GCJ | \
18918 archive_expsym_cmds_GCJ | \
18919 module_cmds_GCJ | \
18920 module_expsym_cmds_GCJ | \
18921 old_archive_from_expsyms_cmds_GCJ | \
18922 export_symbols_cmds_GCJ | \
18923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18924 postinstall_cmds | postuninstall_cmds | \
18925 old_postinstall_cmds | old_postuninstall_cmds | \
18926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18927 # Double-quote double-evaled strings.
18928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18929 ;;
18930 *)
18931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18932 ;;
18933 esac
18934 done
18935
18936 case $lt_echo in
18937 *'\$0 --fallback-echo"')
18938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18939 ;;
18940 esac
18941
18942 cfgfile="$ofile"
18943
18944 cat <<__EOF__ >> "$cfgfile"
18945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18946
18947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18948
18949 # Shell to use when invoking shell scripts.
18950 SHELL=$lt_SHELL
18951
18952 # Whether or not to build shared libraries.
18953 build_libtool_libs=$enable_shared
18954
18955 # Whether or not to build static libraries.
18956 build_old_libs=$enable_static
18957
18958 # Whether or not to add -lc for building shared libraries.
18959 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18960
18961 # Whether or not to disallow shared libs when runtime libs are static
18962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18963
18964 # Whether or not to optimize for fast installation.
18965 fast_install=$enable_fast_install
18966
18967 # The host system.
18968 host_alias=$host_alias
18969 host=$host
18970 host_os=$host_os
18971
18972 # The build system.
18973 build_alias=$build_alias
18974 build=$build
18975 build_os=$build_os
18976
18977 # An echo program that does not interpret backslashes.
18978 echo=$lt_echo
18979
18980 # The archiver.
18981 AR=$lt_AR
18982 AR_FLAGS=$lt_AR_FLAGS
18983
18984 # A C compiler.
18985 LTCC=$lt_LTCC
18986
18987 # A language-specific compiler.
18988 CC=$lt_compiler_GCJ
18989
18990 # Is the compiler the GNU C compiler?
18991 with_gcc=$GCC_GCJ
18992
18993 # An ERE matcher.
18994 EGREP=$lt_EGREP
18995
18996 # The linker used to build libraries.
18997 LD=$lt_LD_GCJ
18998
18999 # Whether we need hard or soft links.
19000 LN_S=$lt_LN_S
19001
19002 # A BSD-compatible nm program.
19003 NM=$lt_NM
19004
19005 # A symbol stripping program
19006 STRIP=$lt_STRIP
19007
19008 # Used to examine libraries when file_magic_cmd begins "file"
19009 MAGIC_CMD=$MAGIC_CMD
19010
19011 # Used on cygwin: DLL creation program.
19012 DLLTOOL="$DLLTOOL"
19013
19014 # Used on cygwin: object dumper.
19015 OBJDUMP="$OBJDUMP"
19016
19017 # Used on cygwin: assembler.
19018 AS="$AS"
19019
19020 # The name of the directory that contains temporary libtool files.
19021 objdir=$objdir
19022
19023 # How to create reloadable object files.
19024 reload_flag=$lt_reload_flag
19025 reload_cmds=$lt_reload_cmds
19026
19027 # How to pass a linker flag through the compiler.
19028 wl=$lt_lt_prog_compiler_wl_GCJ
19029
19030 # Object file suffix (normally "o").
19031 objext="$ac_objext"
19032
19033 # Old archive suffix (normally "a").
19034 libext="$libext"
19035
19036 # Shared library suffix (normally ".so").
19037 shrext_cmds='$shrext_cmds'
19038
19039 # Executable file suffix (normally "").
19040 exeext="$exeext"
19041
19042 # Additional compiler flags for building library objects.
19043 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19044 pic_mode=$pic_mode
19045
19046 # What is the maximum length of a command?
19047 max_cmd_len=$lt_cv_sys_max_cmd_len
19048
19049 # Does compiler simultaneously support -c and -o options?
19050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19051
19052 # Must we lock files when doing compilation?
19053 need_locks=$lt_need_locks
19054
19055 # Do we need the lib prefix for modules?
19056 need_lib_prefix=$need_lib_prefix
19057
19058 # Do we need a version for libraries?
19059 need_version=$need_version
19060
19061 # Whether dlopen is supported.
19062 dlopen_support=$enable_dlopen
19063
19064 # Whether dlopen of programs is supported.
19065 dlopen_self=$enable_dlopen_self
19066
19067 # Whether dlopen of statically linked programs is supported.
19068 dlopen_self_static=$enable_dlopen_self_static
19069
19070 # Compiler flag to prevent dynamic linking.
19071 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19072
19073 # Compiler flag to turn off builtin functions.
19074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19075
19076 # Compiler flag to allow reflexive dlopens.
19077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19078
19079 # Compiler flag to generate shared objects directly from archives.
19080 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19081
19082 # Compiler flag to generate thread-safe objects.
19083 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19084
19085 # Library versioning type.
19086 version_type=$version_type
19087
19088 # Format of library name prefix.
19089 libname_spec=$lt_libname_spec
19090
19091 # List of archive names. First name is the real one, the rest are links.
19092 # The last name is the one that the linker finds with -lNAME.
19093 library_names_spec=$lt_library_names_spec
19094
19095 # The coded name of the library, if different from the real name.
19096 soname_spec=$lt_soname_spec
19097
19098 # Commands used to build and install an old-style archive.
19099 RANLIB=$lt_RANLIB
19100 old_archive_cmds=$lt_old_archive_cmds_GCJ
19101 old_postinstall_cmds=$lt_old_postinstall_cmds
19102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19103
19104 # Create an old-style archive from a shared archive.
19105 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19106
19107 # Create a temporary old-style archive to link instead of a shared archive.
19108 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19109
19110 # Commands used to build and install a shared archive.
19111 archive_cmds=$lt_archive_cmds_GCJ
19112 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19113 postinstall_cmds=$lt_postinstall_cmds
19114 postuninstall_cmds=$lt_postuninstall_cmds
19115
19116 # Commands used to build a loadable module (assumed same as above if empty)
19117 module_cmds=$lt_module_cmds_GCJ
19118 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19119
19120 # Commands to strip libraries.
19121 old_striplib=$lt_old_striplib
19122 striplib=$lt_striplib
19123
19124 # Dependencies to place before the objects being linked to create a
19125 # shared library.
19126 predep_objects=$lt_predep_objects_GCJ
19127
19128 # Dependencies to place after the objects being linked to create a
19129 # shared library.
19130 postdep_objects=$lt_postdep_objects_GCJ
19131
19132 # Dependencies to place before the objects being linked to create a
19133 # shared library.
19134 predeps=$lt_predeps_GCJ
19135
19136 # Dependencies to place after the objects being linked to create a
19137 # shared library.
19138 postdeps=$lt_postdeps_GCJ
19139
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19143
19144 # Method to check whether dependent libraries are shared objects.
19145 deplibs_check_method=$lt_deplibs_check_method
19146
19147 # Command to use when deplibs_check_method == file_magic.
19148 file_magic_cmd=$lt_file_magic_cmd
19149
19150 # Flag that allows shared libraries with undefined symbols to be built.
19151 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19152
19153 # Flag that forces no undefined symbols.
19154 no_undefined_flag=$lt_no_undefined_flag_GCJ
19155
19156 # Commands used to finish a libtool library installation in a directory.
19157 finish_cmds=$lt_finish_cmds
19158
19159 # Same as above, but a single script fragment to be evaled but not shown.
19160 finish_eval=$lt_finish_eval
19161
19162 # Take the output of nm and produce a listing of raw symbols and C names.
19163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19164
19165 # Transform the output of nm in a proper C declaration
19166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19167
19168 # Transform the output of nm in a C name address pair
19169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19170
19171 # This is the shared library runtime path variable.
19172 runpath_var=$runpath_var
19173
19174 # This is the shared library path variable.
19175 shlibpath_var=$shlibpath_var
19176
19177 # Is shlibpath searched before the hard-coded library search path?
19178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19179
19180 # How to hardcode a shared library path into an executable.
19181 hardcode_action=$hardcode_action_GCJ
19182
19183 # Whether we should hardcode library paths into libraries.
19184 hardcode_into_libs=$hardcode_into_libs
19185
19186 # Flag to hardcode \$libdir into a binary during linking.
19187 # This must work even if \$libdir does not exist.
19188 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19189
19190 # If ld is used when linking, flag to hardcode \$libdir into
19191 # a binary during linking. This must work even if \$libdir does
19192 # not exist.
19193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19194
19195 # Whether we need a single -rpath flag with a separated argument.
19196 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19197
19198 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19199 # resulting binary.
19200 hardcode_direct=$hardcode_direct_GCJ
19201
19202 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19203 # resulting binary.
19204 hardcode_minus_L=$hardcode_minus_L_GCJ
19205
19206 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19207 # the resulting binary.
19208 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19209
19210 # Set to yes if building a shared library automatically hardcodes DIR into the library
19211 # and all subsequent libraries and executables linked against it.
19212 hardcode_automatic=$hardcode_automatic_GCJ
19213
19214 # Variables whose values should be saved in libtool wrapper scripts and
19215 # restored at relink time.
19216 variables_saved_for_relink="$variables_saved_for_relink"
19217
19218 # Whether libtool must link a program against all its dependency libraries.
19219 link_all_deplibs=$link_all_deplibs_GCJ
19220
19221 # Compile-time system search path for libraries
19222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19223
19224 # Run-time system search path for libraries
19225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19226
19227 # Fix the shell variable \$srcfile for the compiler.
19228 fix_srcfile_path="$fix_srcfile_path_GCJ"
19229
19230 # Set to yes if exported symbols are required.
19231 always_export_symbols=$always_export_symbols_GCJ
19232
19233 # The commands to list exported symbols.
19234 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19235
19236 # The commands to extract the exported symbol list from a shared archive.
19237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19238
19239 # Symbols that should not be listed in the preloaded symbols.
19240 exclude_expsyms=$lt_exclude_expsyms_GCJ
19241
19242 # Symbols that must always be exported.
19243 include_expsyms=$lt_include_expsyms_GCJ
19244
19245 # ### END LIBTOOL TAG CONFIG: $tagname
19246
19247 __EOF__
19248
19249
19250 else
19251 # If there is no Makefile yet, we rely on a make rule to execute
19252 # `config.status --recheck' to rerun these tests and create the
19253 # libtool script then.
19254 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19255 if test -f "$ltmain_in"; then
19256 test -f Makefile && make "$ltmain"
19257 fi
19258 fi
19259
19260
19261 ac_ext=c
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19266
19267 CC="$lt_save_CC"
19268
19269 else
19270 tagname=""
19271 fi
19272 ;;
19273
19274 RC)
19275
19276
19277
19278 # Source file extension for RC test sources.
19279 ac_ext=rc
19280
19281 # Object file extension for compiled RC test sources.
19282 objext=o
19283 objext_RC=$objext
19284
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19287
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19290
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19292
19293 # If no C compiler was specified, use CC.
19294 LTCC=${LTCC-"$CC"}
19295
19296 # Allow CC to be a program name with arguments.
19297 compiler=$CC
19298
19299
19300 # save warnings/boilerplate of simple test code
19301 ac_outfile=conftest.$ac_objext
19302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19304 _lt_compiler_boilerplate=`cat conftest.err`
19305 $rm conftest*
19306
19307 ac_outfile=conftest.$ac_objext
19308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19310 _lt_linker_boilerplate=`cat conftest.err`
19311 $rm conftest*
19312
19313
19314 # Allow CC to be a program name with arguments.
19315 lt_save_CC="$CC"
19316 CC=${RC-"windres"}
19317 compiler=$CC
19318 compiler_RC=$CC
19319 for cc_temp in $compiler""; do
19320 case $cc_temp in
19321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19323 \-*) ;;
19324 *) break;;
19325 esac
19326 done
19327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19328
19329 lt_cv_prog_compiler_c_o_RC=yes
19330
19331 # The else clause should only fire when bootstrapping the
19332 # libtool distribution, otherwise you forgot to ship ltmain.sh
19333 # with your package, and you will get complaints that there are
19334 # no rules to generate ltmain.sh.
19335 if test -f "$ltmain"; then
19336 # See if we are running on zsh, and set the options which allow our commands through
19337 # without removal of \ escapes.
19338 if test -n "${ZSH_VERSION+set}" ; then
19339 setopt NO_GLOB_SUBST
19340 fi
19341 # Now quote all the things that may contain metacharacters while being
19342 # careful not to overquote the AC_SUBSTed values. We take copies of the
19343 # variables and quote the copies for generation of the libtool script.
19344 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19345 SED SHELL STRIP \
19346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19348 deplibs_check_method reload_flag reload_cmds need_locks \
19349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19350 lt_cv_sys_global_symbol_to_c_name_address \
19351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19352 old_postinstall_cmds old_postuninstall_cmds \
19353 compiler_RC \
19354 CC_RC \
19355 LD_RC \
19356 lt_prog_compiler_wl_RC \
19357 lt_prog_compiler_pic_RC \
19358 lt_prog_compiler_static_RC \
19359 lt_prog_compiler_no_builtin_flag_RC \
19360 export_dynamic_flag_spec_RC \
19361 thread_safe_flag_spec_RC \
19362 whole_archive_flag_spec_RC \
19363 enable_shared_with_static_runtimes_RC \
19364 old_archive_cmds_RC \
19365 old_archive_from_new_cmds_RC \
19366 predep_objects_RC \
19367 postdep_objects_RC \
19368 predeps_RC \
19369 postdeps_RC \
19370 compiler_lib_search_path_RC \
19371 archive_cmds_RC \
19372 archive_expsym_cmds_RC \
19373 postinstall_cmds_RC \
19374 postuninstall_cmds_RC \
19375 old_archive_from_expsyms_cmds_RC \
19376 allow_undefined_flag_RC \
19377 no_undefined_flag_RC \
19378 export_symbols_cmds_RC \
19379 hardcode_libdir_flag_spec_RC \
19380 hardcode_libdir_flag_spec_ld_RC \
19381 hardcode_libdir_separator_RC \
19382 hardcode_automatic_RC \
19383 module_cmds_RC \
19384 module_expsym_cmds_RC \
19385 lt_cv_prog_compiler_c_o_RC \
19386 exclude_expsyms_RC \
19387 include_expsyms_RC; do
19388
19389 case $var in
19390 old_archive_cmds_RC | \
19391 old_archive_from_new_cmds_RC | \
19392 archive_cmds_RC | \
19393 archive_expsym_cmds_RC | \
19394 module_cmds_RC | \
19395 module_expsym_cmds_RC | \
19396 old_archive_from_expsyms_cmds_RC | \
19397 export_symbols_cmds_RC | \
19398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19399 postinstall_cmds | postuninstall_cmds | \
19400 old_postinstall_cmds | old_postuninstall_cmds | \
19401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19402 # Double-quote double-evaled strings.
19403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19404 ;;
19405 *)
19406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19407 ;;
19408 esac
19409 done
19410
19411 case $lt_echo in
19412 *'\$0 --fallback-echo"')
19413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19414 ;;
19415 esac
19416
19417 cfgfile="$ofile"
19418
19419 cat <<__EOF__ >> "$cfgfile"
19420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19421
19422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19423
19424 # Shell to use when invoking shell scripts.
19425 SHELL=$lt_SHELL
19426
19427 # Whether or not to build shared libraries.
19428 build_libtool_libs=$enable_shared
19429
19430 # Whether or not to build static libraries.
19431 build_old_libs=$enable_static
19432
19433 # Whether or not to add -lc for building shared libraries.
19434 build_libtool_need_lc=$archive_cmds_need_lc_RC
19435
19436 # Whether or not to disallow shared libs when runtime libs are static
19437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19438
19439 # Whether or not to optimize for fast installation.
19440 fast_install=$enable_fast_install
19441
19442 # The host system.
19443 host_alias=$host_alias
19444 host=$host
19445 host_os=$host_os
19446
19447 # The build system.
19448 build_alias=$build_alias
19449 build=$build
19450 build_os=$build_os
19451
19452 # An echo program that does not interpret backslashes.
19453 echo=$lt_echo
19454
19455 # The archiver.
19456 AR=$lt_AR
19457 AR_FLAGS=$lt_AR_FLAGS
19458
19459 # A C compiler.
19460 LTCC=$lt_LTCC
19461
19462 # A language-specific compiler.
19463 CC=$lt_compiler_RC
19464
19465 # Is the compiler the GNU C compiler?
19466 with_gcc=$GCC_RC
19467
19468 # An ERE matcher.
19469 EGREP=$lt_EGREP
19470
19471 # The linker used to build libraries.
19472 LD=$lt_LD_RC
19473
19474 # Whether we need hard or soft links.
19475 LN_S=$lt_LN_S
19476
19477 # A BSD-compatible nm program.
19478 NM=$lt_NM
19479
19480 # A symbol stripping program
19481 STRIP=$lt_STRIP
19482
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19485
19486 # Used on cygwin: DLL creation program.
19487 DLLTOOL="$DLLTOOL"
19488
19489 # Used on cygwin: object dumper.
19490 OBJDUMP="$OBJDUMP"
19491
19492 # Used on cygwin: assembler.
19493 AS="$AS"
19494
19495 # The name of the directory that contains temporary libtool files.
19496 objdir=$objdir
19497
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19501
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19504
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19507
19508 # Old archive suffix (normally "a").
19509 libext="$libext"
19510
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19513
19514 # Executable file suffix (normally "").
19515 exeext="$exeext"
19516
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19519 pic_mode=$pic_mode
19520
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19523
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19526
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19529
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19532
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19535
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19538
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19541
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19544
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19547
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19550
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19553
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19556
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19559
19560 # Library versioning type.
19561 version_type=$version_type
19562
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19565
19566 # List of archive names. First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19569
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19572
19573 # Commands used to build and install an old-style archive.
19574 RANLIB=$lt_RANLIB
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19578
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19581
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19584
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19590
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19594
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19598
19599 # Dependencies to place before the objects being linked to create a
19600 # shared library.
19601 predep_objects=$lt_predep_objects_RC
19602
19603 # Dependencies to place after the objects being linked to create a
19604 # shared library.
19605 postdep_objects=$lt_postdep_objects_RC
19606
19607 # Dependencies to place before the objects being linked to create a
19608 # shared library.
19609 predeps=$lt_predeps_RC
19610
19611 # Dependencies to place after the objects being linked to create a
19612 # shared library.
19613 postdeps=$lt_postdeps_RC
19614
19615 # The library search path used internally by the compiler when linking
19616 # a shared library.
19617 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19618
19619 # Method to check whether dependent libraries are shared objects.
19620 deplibs_check_method=$lt_deplibs_check_method
19621
19622 # Command to use when deplibs_check_method == file_magic.
19623 file_magic_cmd=$lt_file_magic_cmd
19624
19625 # Flag that allows shared libraries with undefined symbols to be built.
19626 allow_undefined_flag=$lt_allow_undefined_flag_RC
19627
19628 # Flag that forces no undefined symbols.
19629 no_undefined_flag=$lt_no_undefined_flag_RC
19630
19631 # Commands used to finish a libtool library installation in a directory.
19632 finish_cmds=$lt_finish_cmds
19633
19634 # Same as above, but a single script fragment to be evaled but not shown.
19635 finish_eval=$lt_finish_eval
19636
19637 # Take the output of nm and produce a listing of raw symbols and C names.
19638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19639
19640 # Transform the output of nm in a proper C declaration
19641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19642
19643 # Transform the output of nm in a C name address pair
19644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19645
19646 # This is the shared library runtime path variable.
19647 runpath_var=$runpath_var
19648
19649 # This is the shared library path variable.
19650 shlibpath_var=$shlibpath_var
19651
19652 # Is shlibpath searched before the hard-coded library search path?
19653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19654
19655 # How to hardcode a shared library path into an executable.
19656 hardcode_action=$hardcode_action_RC
19657
19658 # Whether we should hardcode library paths into libraries.
19659 hardcode_into_libs=$hardcode_into_libs
19660
19661 # Flag to hardcode \$libdir into a binary during linking.
19662 # This must work even if \$libdir does not exist.
19663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19664
19665 # If ld is used when linking, flag to hardcode \$libdir into
19666 # a binary during linking. This must work even if \$libdir does
19667 # not exist.
19668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19669
19670 # Whether we need a single -rpath flag with a separated argument.
19671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19672
19673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19674 # resulting binary.
19675 hardcode_direct=$hardcode_direct_RC
19676
19677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_minus_L=$hardcode_minus_L_RC
19680
19681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19682 # the resulting binary.
19683 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19684
19685 # Set to yes if building a shared library automatically hardcodes DIR into the library
19686 # and all subsequent libraries and executables linked against it.
19687 hardcode_automatic=$hardcode_automatic_RC
19688
19689 # Variables whose values should be saved in libtool wrapper scripts and
19690 # restored at relink time.
19691 variables_saved_for_relink="$variables_saved_for_relink"
19692
19693 # Whether libtool must link a program against all its dependency libraries.
19694 link_all_deplibs=$link_all_deplibs_RC
19695
19696 # Compile-time system search path for libraries
19697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19698
19699 # Run-time system search path for libraries
19700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19701
19702 # Fix the shell variable \$srcfile for the compiler.
19703 fix_srcfile_path="$fix_srcfile_path_RC"
19704
19705 # Set to yes if exported symbols are required.
19706 always_export_symbols=$always_export_symbols_RC
19707
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds_RC
19710
19711 # The commands to extract the exported symbol list from a shared archive.
19712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19713
19714 # Symbols that should not be listed in the preloaded symbols.
19715 exclude_expsyms=$lt_exclude_expsyms_RC
19716
19717 # Symbols that must always be exported.
19718 include_expsyms=$lt_include_expsyms_RC
19719
19720 # ### END LIBTOOL TAG CONFIG: $tagname
19721
19722 __EOF__
19723
19724
19725 else
19726 # If there is no Makefile yet, we rely on a make rule to execute
19727 # `config.status --recheck' to rerun these tests and create the
19728 # libtool script then.
19729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19730 if test -f "$ltmain_in"; then
19731 test -f Makefile && make "$ltmain"
19732 fi
19733 fi
19734
19735
19736 ac_ext=c
19737 ac_cpp='$CPP $CPPFLAGS'
19738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19741
19742 CC="$lt_save_CC"
19743
19744 ;;
19745
19746 *)
19747 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19748 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19749 { (exit 1); exit 1; }; }
19750 ;;
19751 esac
19752
19753 # Append the new tag name to the list of available tags.
19754 if test -n "$tagname" ; then
19755 available_tags="$available_tags $tagname"
19756 fi
19757 fi
19758 done
19759 IFS="$lt_save_ifs"
19760
19761 # Now substitute the updated list of available tags.
19762 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19763 mv "${ofile}T" "$ofile"
19764 chmod +x "$ofile"
19765 else
19766 rm -f "${ofile}T"
19767 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19768 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19769 { (exit 1); exit 1; }; }
19770 fi
19771 fi
19772
19773
19774
19775 # This can be used to rebuild libtool when needed
19776 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19777
19778 # Always use our own libtool.
19779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19780
19781 # Prevent multiple expansion
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803 # Checks for libraries (hah! ipkg is pretty much self-contained)
19804
19805 # Checks for header files
19806
19807
19808
19809
19810
19811 ac_header_dirent=no
19812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19814 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 else
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h. */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 #include <sys/types.h>
19826 #include <$ac_hdr>
19827
19828 int
19829 main ()
19830 {
19831 if ((DIR *) 0)
19832 return 0;
19833 ;
19834 return 0;
19835 }
19836 _ACEOF
19837 rm -f conftest.$ac_objext
19838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19839 (eval $ac_compile) 2>conftest.er1
19840 ac_status=$?
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_c_werror_flag"
19847 || test ! -s conftest.err'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 eval "$as_ac_Header=yes"
19860 else
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 eval "$as_ac_Header=no"
19865 fi
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19867 fi
19868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19871 cat >>confdefs.h <<_ACEOF
19872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19873 _ACEOF
19874
19875 ac_header_dirent=$ac_hdr; break
19876 fi
19877
19878 done
19879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19880 if test $ac_header_dirent = dirent.h; then
19881 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19883 if test "${ac_cv_search_opendir+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886 ac_func_search_save_LIBS=$LIBS
19887 ac_cv_search_opendir=no
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894
19895 /* Override any gcc2 internal prototype to avoid an error. */
19896 #ifdef __cplusplus
19897 extern "C"
19898 #endif
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19901 char opendir ();
19902 int
19903 main ()
19904 {
19905 opendir ();
19906 ;
19907 return 0;
19908 }
19909 _ACEOF
19910 rm -f conftest.$ac_objext conftest$ac_exeext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19912 (eval $ac_link) 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
19919 { ac_try='test -z "$ac_c_werror_flag"
19920 || test ! -s conftest.err'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; } &&
19926 { ac_try='test -s conftest$ac_exeext'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_search_opendir="none required"
19933 else
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 fi
19938 rm -f conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 if test "$ac_cv_search_opendir" = no; then
19941 for ac_lib in dir; do
19942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949
19950 /* Override any gcc2 internal prototype to avoid an error. */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 /* We use char because int might match the return type of a gcc2
19955 builtin and then its argument prototype would still apply. */
19956 char opendir ();
19957 int
19958 main ()
19959 {
19960 opendir ();
19961 ;
19962 return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967 (eval $ac_link) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest$ac_exeext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_cv_search_opendir="-l$ac_lib"
19988 break
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 fi
19994 rm -f conftest.err conftest.$ac_objext \
19995 conftest$ac_exeext conftest.$ac_ext
19996 done
19997 fi
19998 LIBS=$ac_func_search_save_LIBS
19999 fi
20000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20002 if test "$ac_cv_search_opendir" != no; then
20003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20004
20005 fi
20006
20007 else
20008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20010 if test "${ac_cv_search_opendir+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013 ac_func_search_save_LIBS=$LIBS
20014 ac_cv_search_opendir=no
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h. */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021
20022 /* Override any gcc2 internal prototype to avoid an error. */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 /* We use char because int might match the return type of a gcc2
20027 builtin and then its argument prototype would still apply. */
20028 char opendir ();
20029 int
20030 main ()
20031 {
20032 opendir ();
20033 ;
20034 return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_search_opendir="none required"
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 fi
20065 rm -f conftest.err conftest.$ac_objext \
20066 conftest$ac_exeext conftest.$ac_ext
20067 if test "$ac_cv_search_opendir" = no; then
20068 for ac_lib in x; do
20069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076
20077 /* Override any gcc2 internal prototype to avoid an error. */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 /* We use char because int might match the return type of a gcc2
20082 builtin and then its argument prototype would still apply. */
20083 char opendir ();
20084 int
20085 main ()
20086 {
20087 opendir ();
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094 (eval $ac_link) 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest$ac_exeext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 ac_cv_search_opendir="-l$ac_lib"
20115 break
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 fi
20121 rm -f conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 done
20124 fi
20125 LIBS=$ac_func_search_save_LIBS
20126 fi
20127 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20128 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20129 if test "$ac_cv_search_opendir" != no; then
20130 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20131
20132 fi
20133
20134 fi
20135
20136 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20138 if test "${ac_cv_header_stdc+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <stdlib.h>
20148 #include <stdarg.h>
20149 #include <string.h>
20150 #include <float.h>
20151
20152 int
20153 main ()
20154 {
20155
20156 ;
20157 return 0;
20158 }
20159 _ACEOF
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_header_stdc=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_cv_header_stdc=no
20188 fi
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20190
20191 if test $ac_cv_header_stdc = yes; then
20192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #include <string.h>
20200
20201 _ACEOF
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203 $EGREP "memchr" >/dev/null 2>&1; then
20204 :
20205 else
20206 ac_cv_header_stdc=no
20207 fi
20208 rm -f conftest*
20209
20210 fi
20211
20212 if test $ac_cv_header_stdc = yes; then
20213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <stdlib.h>
20221
20222 _ACEOF
20223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20224 $EGREP "free" >/dev/null 2>&1; then
20225 :
20226 else
20227 ac_cv_header_stdc=no
20228 fi
20229 rm -f conftest*
20230
20231 fi
20232
20233 if test $ac_cv_header_stdc = yes; then
20234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20235 if test "$cross_compiling" = yes; then
20236 :
20237 else
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 #include <ctype.h>
20245 #if ((' ' & 0x0FF) == 0x020)
20246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20248 #else
20249 # define ISLOWER(c) \
20250 (('a' <= (c) && (c) <= 'i') \
20251 || ('j' <= (c) && (c) <= 'r') \
20252 || ('s' <= (c) && (c) <= 'z'))
20253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20254 #endif
20255
20256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20257 int
20258 main ()
20259 {
20260 int i;
20261 for (i = 0; i < 256; i++)
20262 if (XOR (islower (i), ISLOWER (i))
20263 || toupper (i) != TOUPPER (i))
20264 exit(2);
20265 exit (0);
20266 }
20267 _ACEOF
20268 rm -f conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 :
20280 else
20281 echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285 ( exit $ac_status )
20286 ac_cv_header_stdc=no
20287 fi
20288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289 fi
20290 fi
20291 fi
20292 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20293 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20294 if test $ac_cv_header_stdc = yes; then
20295
20296 cat >>confdefs.h <<\_ACEOF
20297 #define STDC_HEADERS 1
20298 _ACEOF
20299
20300 fi
20301
20302 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20303 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20304 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h. */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20313 #include <sys/types.h>
20314 #include <sys/wait.h>
20315 #ifndef WEXITSTATUS
20316 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20317 #endif
20318 #ifndef WIFEXITED
20319 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20320 #endif
20321
20322 int
20323 main ()
20324 {
20325 int s;
20326 wait (&s);
20327 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20328 ;
20329 return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20334 (eval $ac_compile) 2>conftest.er1
20335 ac_status=$?
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 ac_cv_header_sys_wait_h=yes
20355 else
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359 ac_cv_header_sys_wait_h=no
20360 fi
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20362 fi
20363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20364 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20365 if test $ac_cv_header_sys_wait_h = yes; then
20366
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_SYS_WAIT_H 1
20369 _ACEOF
20370
20371 fi
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383 for ac_header in errno.h fcntl.h memory.h regex.h stddef.h stdlib.h string.h strings.h unistd.h utime.h
20384 do
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 fi
20392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20394 else
20395 # Is the header compilable?
20396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20405 #include <$ac_header>
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
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); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_header_compiler=yes
20430 else
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_header_compiler=no
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20438 echo "${ECHO_T}$ac_header_compiler" >&6
20439
20440 # Is the header present?
20441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
20450 _ACEOF
20451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev/null; then
20459 if test -s conftest.err; then
20460 ac_cpp_err=$ac_c_preproc_warn_flag
20461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20462 else
20463 ac_cpp_err=
20464 fi
20465 else
20466 ac_cpp_err=yes
20467 fi
20468 if test -z "$ac_cpp_err"; then
20469 ac_header_preproc=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_header_preproc=no
20475 fi
20476 rm -f conftest.err conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20478 echo "${ECHO_T}$ac_header_preproc" >&6
20479
20480 # So? What about this header?
20481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20482 yes:no: )
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20487 ac_header_preproc=yes
20488 ;;
20489 no:yes:* )
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20502 (
20503 cat <<\_ASBOX
20504 ## ------------------------------------------ ##
20505 ## Report this to the AC_PACKAGE_NAME lists. ##
20506 ## ------------------------------------------ ##
20507 _ASBOX
20508 ) |
20509 sed "s/^/$as_me: WARNING: /" >&2
20510 ;;
20511 esac
20512 echo "$as_me:$LINENO: checking for $ac_header" >&5
20513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517 eval "$as_ac_Header=\$ac_header_preproc"
20518 fi
20519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20521
20522 fi
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20526 _ACEOF
20527
20528 fi
20529
20530 done
20531
20532
20533 # Checks for typedefs, structures, and compiler characteristics.
20534 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20535 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20536 if test "${ac_cv_c_const+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h. */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545
20546 int
20547 main ()
20548 {
20549 /* FIXME: Include the comments suggested by Paul. */
20550 #ifndef __cplusplus
20551 /* Ultrix mips cc rejects this. */
20552 typedef int charset[2];
20553 const charset x;
20554 /* SunOS 4.1.1 cc rejects this. */
20555 char const *const *ccp;
20556 char **p;
20557 /* NEC SVR4.0.2 mips cc rejects this. */
20558 struct point {int x, y;};
20559 static struct point const zero = {0,0};
20560 /* AIX XL C 1.02.0.0 rejects this.
20561 It does not let you subtract one const X* pointer from another in
20562 an arm of an if-expression whose if-part is not a constant
20563 expression */
20564 const char *g = "string";
20565 ccp = &g + (g ? g-g : 0);
20566 /* HPUX 7.0 cc rejects these. */
20567 ++ccp;
20568 p = (char**) ccp;
20569 ccp = (char const *const *) p;
20570 { /* SCO 3.2v4 cc rejects this. */
20571 char *t;
20572 char const *s = 0 ? (char *) 0 : (char const *) 0;
20573
20574 *t++ = 0;
20575 }
20576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20577 int x[] = {25, 17};
20578 const int *foo = &x[0];
20579 ++foo;
20580 }
20581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20582 typedef const int *iptr;
20583 iptr p = 0;
20584 ++p;
20585 }
20586 { /* AIX XL C 1.02.0.0 rejects this saying
20587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20588 struct s { int j; const int *ap[3]; };
20589 struct s *b; b->j = 5;
20590 }
20591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20592 const int foo = 10;
20593 }
20594 #endif
20595
20596 ;
20597 return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>conftest.er1
20603 ac_status=$?
20604 grep -v '^ *+' conftest.er1 >conftest.err
20605 rm -f conftest.er1
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } &&
20609 { ac_try='test -z "$ac_c_werror_flag"
20610 || test ! -s conftest.err'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_c_const=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_cv_c_const=no
20628 fi
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 fi
20631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20632 echo "${ECHO_T}$ac_cv_c_const" >&6
20633 if test $ac_cv_c_const = no; then
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define const
20637 _ACEOF
20638
20639 fi
20640
20641 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20642 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20643 if test "${ac_cv_type_uid_t+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <sys/types.h>
20653
20654 _ACEOF
20655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20656 $EGREP "uid_t" >/dev/null 2>&1; then
20657 ac_cv_type_uid_t=yes
20658 else
20659 ac_cv_type_uid_t=no
20660 fi
20661 rm -f conftest*
20662
20663 fi
20664 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20665 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20666 if test $ac_cv_type_uid_t = no; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define uid_t int
20670 _ACEOF
20671
20672
20673 cat >>confdefs.h <<\_ACEOF
20674 #define gid_t int
20675 _ACEOF
20676
20677 fi
20678
20679 echo "$as_me:$LINENO: checking for mode_t" >&5
20680 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20681 if test "${ac_cv_type_mode_t+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 int
20692 main ()
20693 {
20694 if ((mode_t *) 0)
20695 return 0;
20696 if (sizeof (mode_t))
20697 return 0;
20698 ;
20699 return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>conftest.er1
20705 ac_status=$?
20706 grep -v '^ *+' conftest.er1 >conftest.err
20707 rm -f conftest.er1
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag"
20712 || test ! -s conftest.err'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; } &&
20718 { ac_try='test -s conftest.$ac_objext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_type_mode_t=yes
20725 else
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729 ac_cv_type_mode_t=no
20730 fi
20731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732 fi
20733 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20734 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20735 if test $ac_cv_type_mode_t = yes; then
20736 :
20737 else
20738
20739 cat >>confdefs.h <<_ACEOF
20740 #define mode_t int
20741 _ACEOF
20742
20743 fi
20744
20745 echo "$as_me:$LINENO: checking for off_t" >&5
20746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20747 if test "${ac_cv_type_off_t+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 $ac_includes_default
20757 int
20758 main ()
20759 {
20760 if ((off_t *) 0)
20761 return 0;
20762 if (sizeof (off_t))
20763 return 0;
20764 ;
20765 return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770 (eval $ac_compile) 2>conftest.er1
20771 ac_status=$?
20772 grep -v '^ *+' conftest.er1 >conftest.err
20773 rm -f conftest.er1
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag"
20778 || test ! -s conftest.err'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 ac_cv_type_off_t=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 ac_cv_type_off_t=no
20796 fi
20797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20798 fi
20799 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20800 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20801 if test $ac_cv_type_off_t = yes; then
20802 :
20803 else
20804
20805 cat >>confdefs.h <<_ACEOF
20806 #define off_t long
20807 _ACEOF
20808
20809 fi
20810
20811 echo "$as_me:$LINENO: checking for pid_t" >&5
20812 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20813 if test "${ac_cv_type_pid_t+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20823 int
20824 main ()
20825 {
20826 if ((pid_t *) 0)
20827 return 0;
20828 if (sizeof (pid_t))
20829 return 0;
20830 ;
20831 return 0;
20832 }
20833 _ACEOF
20834 rm -f conftest.$ac_objext
20835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20836 (eval $ac_compile) 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try='test -z "$ac_c_werror_flag"
20844 || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_cv_type_pid_t=yes
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_cv_type_pid_t=no
20862 fi
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 fi
20865 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20866 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20867 if test $ac_cv_type_pid_t = yes; then
20868 :
20869 else
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define pid_t int
20873 _ACEOF
20874
20875 fi
20876
20877 echo "$as_me:$LINENO: checking for size_t" >&5
20878 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20879 if test "${ac_cv_type_size_t+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 else
20882 cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h. */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 $ac_includes_default
20889 int
20890 main ()
20891 {
20892 if ((size_t *) 0)
20893 return 0;
20894 if (sizeof (size_t))
20895 return 0;
20896 ;
20897 return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext
20901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20902 (eval $ac_compile) 2>conftest.er1
20903 ac_status=$?
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 ac_cv_type_size_t=yes
20923 else
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 ac_cv_type_size_t=no
20928 fi
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20930 fi
20931 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20932 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20933 if test $ac_cv_type_size_t = yes; then
20934 :
20935 else
20936
20937 cat >>confdefs.h <<_ACEOF
20938 #define size_t unsigned
20939 _ACEOF
20940
20941 fi
20942
20943 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20944 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20945 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 $ac_includes_default
20955 int
20956 main ()
20957 {
20958 static struct stat ac_aggr;
20959 if (ac_aggr.st_rdev)
20960 return 0;
20961 ;
20962 return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag"
20975 || test ! -s conftest.err'
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); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_cv_member_struct_stat_st_rdev=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20991
20992 cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h. */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 $ac_includes_default
20999 int
21000 main ()
21001 {
21002 static struct stat ac_aggr;
21003 if (sizeof ac_aggr.st_rdev)
21004 return 0;
21005 ;
21006 return 0;
21007 }
21008 _ACEOF
21009 rm -f conftest.$ac_objext
21010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011 (eval $ac_compile) 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } &&
21018 { ac_try='test -z "$ac_c_werror_flag"
21019 || test ! -s conftest.err'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 ac_cv_member_struct_stat_st_rdev=yes
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 ac_cv_member_struct_stat_st_rdev=no
21037 fi
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21039 fi
21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21041 fi
21042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
21044 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21045
21046 cat >>confdefs.h <<_ACEOF
21047 #define HAVE_STRUCT_STAT_ST_RDEV 1
21048 _ACEOF
21049
21050
21051 fi
21052
21053
21054 # Don't do annoying tests that don't work when cross-compiling, just trust them.
21055 # The AC_FUNC_MEMCMP test doesn't work during a cross-compile, disable.
21056 # AC_FUNC_MEMCMP
21057 # The AC_FUNC_STAT test doesn't work during a cross-compile, disable.
21058 # AC_FUNC_STAT
21059
21060 # Checks for library functions
21061
21062 for ac_header in unistd.h
21063 do
21064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21066 echo "$as_me:$LINENO: checking for $ac_header" >&5
21067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21069 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
21074 # Is the header compilable?
21075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h. */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag"
21096 || test ! -s conftest.err'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 ac_header_compiler=yes
21109 else
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 ac_header_compiler=no
21114 fi
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21117 echo "${ECHO_T}$ac_header_compiler" >&6
21118
21119 # Is the header present?
21120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <$ac_header>
21129 _ACEOF
21130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } >/dev/null; then
21138 if test -s conftest.err; then
21139 ac_cpp_err=$ac_c_preproc_warn_flag
21140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21141 else
21142 ac_cpp_err=
21143 fi
21144 else
21145 ac_cpp_err=yes
21146 fi
21147 if test -z "$ac_cpp_err"; then
21148 ac_header_preproc=yes
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 ac_header_preproc=no
21154 fi
21155 rm -f conftest.err conftest.$ac_ext
21156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21157 echo "${ECHO_T}$ac_header_preproc" >&6
21158
21159 # So? What about this header?
21160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21161 yes:no: )
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21166 ac_header_preproc=yes
21167 ;;
21168 no:yes:* )
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21181 (
21182 cat <<\_ASBOX
21183 ## ------------------------------------------ ##
21184 ## Report this to the AC_PACKAGE_NAME lists. ##
21185 ## ------------------------------------------ ##
21186 _ASBOX
21187 ) |
21188 sed "s/^/$as_me: WARNING: /" >&2
21189 ;;
21190 esac
21191 echo "$as_me:$LINENO: checking for $ac_header" >&5
21192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196 eval "$as_ac_Header=\$ac_header_preproc"
21197 fi
21198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21200
21201 fi
21202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21203 cat >>confdefs.h <<_ACEOF
21204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21205 _ACEOF
21206
21207 fi
21208
21209 done
21210
21211 echo "$as_me:$LINENO: checking for working chown" >&5
21212 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21213 if test "${ac_cv_func_chown_works+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216 if test "$cross_compiling" = yes; then
21217 ac_cv_func_chown_works=no
21218 else
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h. */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21226 #include <fcntl.h>
21227
21228 int
21229 main ()
21230 {
21231 char *f = "conftest.chown";
21232 struct stat before, after;
21233
21234 if (creat (f, 0600) < 0)
21235 exit (1);
21236 if (stat (f, &before) < 0)
21237 exit (1);
21238 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21239 exit (1);
21240 if (stat (f, &after) < 0)
21241 exit (1);
21242 exit ((before.st_uid == after.st_uid
21243 && before.st_gid == after.st_gid) ? 0 : 1);
21244
21245 ;
21246 return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251 (eval $ac_link) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 ac_cv_func_chown_works=yes
21261 else
21262 echo "$as_me: program exited with status $ac_status" >&5
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266 ( exit $ac_status )
21267 ac_cv_func_chown_works=no
21268 fi
21269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21270 fi
21271 rm -f conftest.chown
21272
21273 fi
21274 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21275 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
21276 if test $ac_cv_func_chown_works = yes; then
21277
21278 cat >>confdefs.h <<\_ACEOF
21279 #define HAVE_CHOWN 1
21280 _ACEOF
21281
21282 fi
21283
21284
21285
21286 for ac_header in unistd.h vfork.h
21287 do
21288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21290 echo "$as_me:$LINENO: checking for $ac_header" >&5
21291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 fi
21295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21297 else
21298 # Is the header compilable?
21299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 $ac_includes_default
21308 #include <$ac_header>
21309 _ACEOF
21310 rm -f conftest.$ac_objext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312 (eval $ac_compile) 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest.$ac_objext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_header_compiler=yes
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_header_compiler=no
21338 fi
21339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21341 echo "${ECHO_T}$ac_header_compiler" >&6
21342
21343 # Is the header present?
21344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h. */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 #include <$ac_header>
21353 _ACEOF
21354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } >/dev/null; then
21362 if test -s conftest.err; then
21363 ac_cpp_err=$ac_c_preproc_warn_flag
21364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21365 else
21366 ac_cpp_err=
21367 fi
21368 else
21369 ac_cpp_err=yes
21370 fi
21371 if test -z "$ac_cpp_err"; then
21372 ac_header_preproc=yes
21373 else
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377 ac_header_preproc=no
21378 fi
21379 rm -f conftest.err conftest.$ac_ext
21380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21381 echo "${ECHO_T}$ac_header_preproc" >&6
21382
21383 # So? What about this header?
21384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21385 yes:no: )
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21390 ac_header_preproc=yes
21391 ;;
21392 no:yes:* )
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21405 (
21406 cat <<\_ASBOX
21407 ## ------------------------------------------ ##
21408 ## Report this to the AC_PACKAGE_NAME lists. ##
21409 ## ------------------------------------------ ##
21410 _ASBOX
21411 ) |
21412 sed "s/^/$as_me: WARNING: /" >&2
21413 ;;
21414 esac
21415 echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420 eval "$as_ac_Header=\$ac_header_preproc"
21421 fi
21422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21424
21425 fi
21426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21427 cat >>confdefs.h <<_ACEOF
21428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21429 _ACEOF
21430
21431 fi
21432
21433 done
21434
21435
21436
21437 for ac_func in fork vfork
21438 do
21439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21440 echo "$as_me:$LINENO: checking for $ac_func" >&5
21441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21442 if eval "test \"\${$as_ac_var+set}\" = set"; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21453 #define $ac_func innocuous_$ac_func
21454
21455 /* System header to define __stub macros and hopefully few prototypes,
21456 which can conflict with char $ac_func (); below.
21457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21458 <limits.h> exists even on freestanding compilers. */
21459
21460 #ifdef __STDC__
21461 # include <limits.h>
21462 #else
21463 # include <assert.h>
21464 #endif
21465
21466 #undef $ac_func
21467
21468 /* Override any gcc2 internal prototype to avoid an error. */
21469 #ifdef __cplusplus
21470 extern "C"
21471 {
21472 #endif
21473 /* We use char because int might match the return type of a gcc2
21474 builtin and then its argument prototype would still apply. */
21475 char $ac_func ();
21476 /* The GNU C library defines this for functions which it implements
21477 to always fail with ENOSYS. Some functions are actually named
21478 something starting with __ and the normal name is an alias. */
21479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21480 choke me
21481 #else
21482 char (*f) () = $ac_func;
21483 #endif
21484 #ifdef __cplusplus
21485 }
21486 #endif
21487
21488 int
21489 main ()
21490 {
21491 return f != $ac_func;
21492 ;
21493 return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21498 (eval $ac_link) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag"
21506 || test ! -s conftest.err'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest$ac_exeext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 eval "$as_ac_var=yes"
21519 else
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523 eval "$as_ac_var=no"
21524 fi
21525 rm -f conftest.err conftest.$ac_objext \
21526 conftest$ac_exeext conftest.$ac_ext
21527 fi
21528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21530 if test `eval echo '${'$as_ac_var'}'` = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21533 _ACEOF
21534
21535 fi
21536 done
21537
21538 if test "x$ac_cv_func_fork" = xyes; then
21539 echo "$as_me:$LINENO: checking for working fork" >&5
21540 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21541 if test "${ac_cv_func_fork_works+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544 if test "$cross_compiling" = yes; then
21545 ac_cv_func_fork_works=cross
21546 else
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* By Ruediger Kuhlmann. */
21549 #include <sys/types.h>
21550 #if HAVE_UNISTD_H
21551 # include <unistd.h>
21552 #endif
21553 /* Some systems only have a dummy stub for fork() */
21554 int main ()
21555 {
21556 if (fork() < 0)
21557 exit (1);
21558 exit (0);
21559 }
21560 _ACEOF
21561 rm -f conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_func_fork_works=yes
21573 else
21574 echo "$as_me: program exited with status $ac_status" >&5
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ( exit $ac_status )
21579 ac_cv_func_fork_works=no
21580 fi
21581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582 fi
21583 fi
21584 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21585 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21586
21587 else
21588 ac_cv_func_fork_works=$ac_cv_func_fork
21589 fi
21590 if test "x$ac_cv_func_fork_works" = xcross; then
21591 case $host in
21592 *-*-amigaos* | *-*-msdosdjgpp*)
21593 # Override, as these systems have only a dummy fork() stub
21594 ac_cv_func_fork_works=no
21595 ;;
21596 *)
21597 ac_cv_func_fork_works=yes
21598 ;;
21599 esac
21600 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21601 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21602 fi
21603 ac_cv_func_vfork_works=$ac_cv_func_vfork
21604 if test "x$ac_cv_func_vfork" = xyes; then
21605 echo "$as_me:$LINENO: checking for working vfork" >&5
21606 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21607 if test "${ac_cv_func_vfork_works+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 else
21610 if test "$cross_compiling" = yes; then
21611 ac_cv_func_vfork_works=cross
21612 else
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 /* Thanks to Paul Eggert for this test. */
21620 #include <stdio.h>
21621 #include <stdlib.h>
21622 #include <sys/types.h>
21623 #include <sys/stat.h>
21624 #include <sys/wait.h>
21625 #if HAVE_UNISTD_H
21626 # include <unistd.h>
21627 #endif
21628 #if HAVE_VFORK_H
21629 # include <vfork.h>
21630 #endif
21631 /* On some sparc systems, changes by the child to local and incoming
21632 argument registers are propagated back to the parent. The compiler
21633 is told about this with #include <vfork.h>, but some compilers
21634 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21635 static variable whose address is put into a register that is
21636 clobbered by the vfork. */
21637 static void
21638 #ifdef __cplusplus
21639 sparc_address_test (int arg)
21640 # else
21641 sparc_address_test (arg) int arg;
21642 #endif
21643 {
21644 static pid_t child;
21645 if (!child) {
21646 child = vfork ();
21647 if (child < 0) {
21648 perror ("vfork");
21649 _exit(2);
21650 }
21651 if (!child) {
21652 arg = getpid();
21653 write(-1, "", 0);
21654 _exit (arg);
21655 }
21656 }
21657 }
21658
21659 int
21660 main ()
21661 {
21662 pid_t parent = getpid ();
21663 pid_t child;
21664
21665 sparc_address_test (0);
21666
21667 child = vfork ();
21668
21669 if (child == 0) {
21670 /* Here is another test for sparc vfork register problems. This
21671 test uses lots of local variables, at least as many local
21672 variables as main has allocated so far including compiler
21673 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21674 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21675 reuse the register of parent for one of the local variables,
21676 since it will think that parent can't possibly be used any more
21677 in this routine. Assigning to the local variable will thus
21678 munge parent in the parent process. */
21679 pid_t
21680 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21681 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21682 /* Convince the compiler that p..p7 are live; otherwise, it might
21683 use the same hardware register for all 8 local variables. */
21684 if (p != p1 || p != p2 || p != p3 || p != p4
21685 || p != p5 || p != p6 || p != p7)
21686 _exit(1);
21687
21688 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21689 from child file descriptors. If the child closes a descriptor
21690 before it execs or exits, this munges the parent's descriptor
21691 as well. Test for this by closing stdout in the child. */
21692 _exit(close(fileno(stdout)) != 0);
21693 } else {
21694 int status;
21695 struct stat st;
21696
21697 while (wait(&status) != child)
21698 ;
21699 exit(
21700 /* Was there some problem with vforking? */
21701 child < 0
21702
21703 /* Did the child fail? (This shouldn't happen.) */
21704 || status
21705
21706 /* Did the vfork/compiler bug occur? */
21707 || parent != getpid()
21708
21709 /* Did the file descriptor bug occur? */
21710 || fstat(fileno(stdout), &st) != 0
21711 );
21712 }
21713 }
21714 _ACEOF
21715 rm -f conftest$ac_exeext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21717 (eval $ac_link) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; }; then
21726 ac_cv_func_vfork_works=yes
21727 else
21728 echo "$as_me: program exited with status $ac_status" >&5
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ( exit $ac_status )
21733 ac_cv_func_vfork_works=no
21734 fi
21735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21736 fi
21737 fi
21738 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21739 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21740
21741 fi;
21742 if test "x$ac_cv_func_fork_works" = xcross; then
21743 ac_cv_func_vfork_works=$ac_cv_func_vfork
21744 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21745 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21746 fi
21747
21748 if test "x$ac_cv_func_vfork_works" = xyes; then
21749
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_WORKING_VFORK 1
21752 _ACEOF
21753
21754 else
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define vfork fork
21758 _ACEOF
21759
21760 fi
21761 if test "x$ac_cv_func_fork_works" = xyes; then
21762
21763 cat >>confdefs.h <<\_ACEOF
21764 #define HAVE_WORKING_FORK 1
21765 _ACEOF
21766
21767 fi
21768
21769 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21770 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21771 if test "${ac_cv_type_signal+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h. */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 #include <sys/types.h>
21781 #include <signal.h>
21782 #ifdef signal
21783 # undef signal
21784 #endif
21785 #ifdef __cplusplus
21786 extern "C" void (*signal (int, void (*)(int)))(int);
21787 #else
21788 void (*signal ()) ();
21789 #endif
21790
21791 int
21792 main ()
21793 {
21794 int i;
21795 ;
21796 return 0;
21797 }
21798 _ACEOF
21799 rm -f conftest.$ac_objext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801 (eval $ac_compile) 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_c_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest.$ac_objext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_type_signal=void
21822 else
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826 ac_cv_type_signal=int
21827 fi
21828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829 fi
21830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21831 echo "${ECHO_T}$ac_cv_type_signal" >&6
21832
21833 cat >>confdefs.h <<_ACEOF
21834 #define RETSIGTYPE $ac_cv_type_signal
21835 _ACEOF
21836
21837
21838 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
21839 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
21840 if test "${ac_cv_func_utime_null+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 rm -f conftest.data; >conftest.data
21844 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
21845 if test "$cross_compiling" = yes; then
21846 ac_cv_func_utime_null=no
21847 else
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h. */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 int
21856 main ()
21857 {
21858 struct stat s, t;
21859 exit (!(stat ("conftest.data", &s) == 0
21860 && utime ("conftest.data", (long *)0) == 0
21861 && stat ("conftest.data", &t) == 0
21862 && t.st_mtime >= s.st_mtime
21863 && t.st_mtime - s.st_mtime < 120));
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest$ac_exeext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; }; then
21879 ac_cv_func_utime_null=yes
21880 else
21881 echo "$as_me: program exited with status $ac_status" >&5
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885 ( exit $ac_status )
21886 ac_cv_func_utime_null=no
21887 fi
21888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 rm -f core *.core
21891 fi
21892 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
21893 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
21894 if test $ac_cv_func_utime_null = yes; then
21895
21896 cat >>confdefs.h <<\_ACEOF
21897 #define HAVE_UTIME_NULL 1
21898 _ACEOF
21899
21900 fi
21901 rm -f conftest.data
21902
21903
21904 for ac_func in vprintf
21905 do
21906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21907 echo "$as_me:$LINENO: checking for $ac_func" >&5
21908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21909 if eval "test \"\${$as_ac_var+set}\" = set"; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 else
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21920 #define $ac_func innocuous_$ac_func
21921
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char $ac_func (); below.
21924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21925 <limits.h> exists even on freestanding compilers. */
21926
21927 #ifdef __STDC__
21928 # include <limits.h>
21929 #else
21930 # include <assert.h>
21931 #endif
21932
21933 #undef $ac_func
21934
21935 /* Override any gcc2 internal prototype to avoid an error. */
21936 #ifdef __cplusplus
21937 extern "C"
21938 {
21939 #endif
21940 /* We use char because int might match the return type of a gcc2
21941 builtin and then its argument prototype would still apply. */
21942 char $ac_func ();
21943 /* The GNU C library defines this for functions which it implements
21944 to always fail with ENOSYS. Some functions are actually named
21945 something starting with __ and the normal name is an alias. */
21946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21947 choke me
21948 #else
21949 char (*f) () = $ac_func;
21950 #endif
21951 #ifdef __cplusplus
21952 }
21953 #endif
21954
21955 int
21956 main ()
21957 {
21958 return f != $ac_func;
21959 ;
21960 return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21965 (eval $ac_link) 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest$ac_exeext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 eval "$as_ac_var=yes"
21986 else
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 eval "$as_ac_var=no"
21991 fi
21992 rm -f conftest.err conftest.$ac_objext \
21993 conftest$ac_exeext conftest.$ac_ext
21994 fi
21995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21997 if test `eval echo '${'$as_ac_var'}'` = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22000 _ACEOF
22001
22002 echo "$as_me:$LINENO: checking for _doprnt" >&5
22003 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
22004 if test "${ac_cv_func__doprnt+set}" = set; then
22005 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007 cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h. */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22015 #define _doprnt innocuous__doprnt
22016
22017 /* System header to define __stub macros and hopefully few prototypes,
22018 which can conflict with char _doprnt (); below.
22019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22020 <limits.h> exists even on freestanding compilers. */
22021
22022 #ifdef __STDC__
22023 # include <limits.h>
22024 #else
22025 # include <assert.h>
22026 #endif
22027
22028 #undef _doprnt
22029
22030 /* Override any gcc2 internal prototype to avoid an error. */
22031 #ifdef __cplusplus
22032 extern "C"
22033 {
22034 #endif
22035 /* We use char because int might match the return type of a gcc2
22036 builtin and then its argument prototype would still apply. */
22037 char _doprnt ();
22038 /* The GNU C library defines this for functions which it implements
22039 to always fail with ENOSYS. Some functions are actually named
22040 something starting with __ and the normal name is an alias. */
22041 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22042 choke me
22043 #else
22044 char (*f) () = _doprnt;
22045 #endif
22046 #ifdef __cplusplus
22047 }
22048 #endif
22049
22050 int
22051 main ()
22052 {
22053 return f != _doprnt;
22054 ;
22055 return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest$ac_exeext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_func__doprnt=yes
22081 else
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ac_cv_func__doprnt=no
22086 fi
22087 rm -f conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22089 fi
22090 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22091 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22092 if test $ac_cv_func__doprnt = yes; then
22093
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_DOPRNT 1
22096 _ACEOF
22097
22098 fi
22099
22100 fi
22101 done
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119 for ac_func in memmove memset mkdir regcomp strchr strcspn strdup strerror strndup strrchr strstr strtol strtoul sysinfo utime
22120 do
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22124 if eval "test \"\${$as_ac_var+set}\" = set"; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h. */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22135 #define $ac_func innocuous_$ac_func
22136
22137 /* System header to define __stub macros and hopefully few prototypes,
22138 which can conflict with char $ac_func (); below.
22139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22140 <limits.h> exists even on freestanding compilers. */
22141
22142 #ifdef __STDC__
22143 # include <limits.h>
22144 #else
22145 # include <assert.h>
22146 #endif
22147
22148 #undef $ac_func
22149
22150 /* Override any gcc2 internal prototype to avoid an error. */
22151 #ifdef __cplusplus
22152 extern "C"
22153 {
22154 #endif
22155 /* We use char because int might match the return type of a gcc2
22156 builtin and then its argument prototype would still apply. */
22157 char $ac_func ();
22158 /* The GNU C library defines this for functions which it implements
22159 to always fail with ENOSYS. Some functions are actually named
22160 something starting with __ and the normal name is an alias. */
22161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22162 choke me
22163 #else
22164 char (*f) () = $ac_func;
22165 #endif
22166 #ifdef __cplusplus
22167 }
22168 #endif
22169
22170 int
22171 main ()
22172 {
22173 return f != $ac_func;
22174 ;
22175 return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22180 (eval $ac_link) 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_c_werror_flag"
22188 || test ! -s conftest.err'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 eval "$as_ac_var=yes"
22201 else
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 eval "$as_ac_var=no"
22206 fi
22207 rm -f conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22209 fi
22210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22212 if test `eval echo '${'$as_ac_var'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22215 _ACEOF
22216
22217 fi
22218 done
22219
22220
22221 ipkglibdir=
22222
22223 # Check whether --with-ipkglibdir or --without-ipkglibdir was given.
22224 if test "${with_ipkglibdir+set}" = set; then
22225 withval="$with_ipkglibdir"
22226 case "${withval}" in
22227 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for ipkg libs directories " >&5
22228 echo "$as_me: error: bad value ${withval} given for ipkg libs directories " >&2;}
22229 { (exit 1); exit 1; }; } ;;
22230 no) ;;
22231 *) ipkglibdir=$with_ipkglibdir ;;
22232 esac
22233 fi;
22234
22235 # Default local prefix if it is empty
22236 if test x$ipkglibdir = x; then
22237 ipkglibdir=/usr/lib
22238 fi
22239
22240
22241
22242 ac_config_files="$ac_config_files Makefile etc/Makefile familiar/Makefile familiar/control familiar/control-unstripped familiar/libipkg-control familiar/libipkg-dev-control libbb/Makefile libipkg.pc ipkg.h"
22243 cat >confcache <<\_ACEOF
22244 # This file is a shell script that caches the results of configure
22245 # tests run on this system so they can be shared between configure
22246 # scripts and configure runs, see configure's option --config-cache.
22247 # It is not useful on other systems. If it contains results you don't
22248 # want to keep, you may remove or edit it.
22249 #
22250 # config.status only pays attention to the cache file if you give it
22251 # the --recheck option to rerun configure.
22252 #
22253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22255 # following values.
22256
22257 _ACEOF
22258
22259 # The following way of writing the cache mishandles newlines in values,
22260 # but we know of no workaround that is simple, portable, and efficient.
22261 # So, don't put newlines in cache variables' values.
22262 # Ultrix sh set writes to stderr and can't be redirected directly,
22263 # and sets the high bit in the cache file unless we assign to the vars.
22264 {
22265 (set) 2>&1 |
22266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22267 *ac_space=\ *)
22268 # `set' does not quote correctly, so add quotes (double-quote
22269 # substitution turns \\\\ into \\, and sed turns \\ into \).
22270 sed -n \
22271 "s/'/'\\\\''/g;
22272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22273 ;;
22274 *)
22275 # `set' quotes correctly as required by POSIX, so do not add quotes.
22276 sed -n \
22277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22278 ;;
22279 esac;
22280 } |
22281 sed '
22282 t clear
22283 : clear
22284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22285 t end
22286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22287 : end' >>confcache
22288 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22289 if test -w $cache_file; then
22290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22291 cat confcache >$cache_file
22292 else
22293 echo "not updating unwritable cache $cache_file"
22294 fi
22295 fi
22296 rm -f confcache
22297
22298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22299 # Let make expand exec_prefix.
22300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22301
22302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22304 # trailing colons and then remove the whole line if VPATH becomes empty
22305 # (actually we leave an empty line to preserve line numbers).
22306 if test "x$srcdir" = x.; then
22307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22308 s/:*\$(srcdir):*/:/;
22309 s/:*\${srcdir}:*/:/;
22310 s/:*@srcdir@:*/:/;
22311 s/^\([^=]*=[ ]*\):*/\1/;
22312 s/:*$//;
22313 s/^[^=]*=[ ]*$//;
22314 }'
22315 fi
22316
22317 DEFS=-DHAVE_CONFIG_H
22318
22319 ac_libobjs=
22320 ac_ltlibobjs=
22321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22322 # 1. Remove the extension, and $U if already installed.
22323 ac_i=`echo "$ac_i" |
22324 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22325 # 2. Add them.
22326 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22327 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22328 done
22329 LIBOBJS=$ac_libobjs
22330
22331 LTLIBOBJS=$ac_ltlibobjs
22332
22333
22334 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22335 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22336 Usually this means the macro was only invoked conditionally." >&5
22337 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22338 Usually this means the macro was only invoked conditionally." >&2;}
22339 { (exit 1); exit 1; }; }
22340 fi
22341 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22342 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22343 Usually this means the macro was only invoked conditionally." >&5
22344 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22345 Usually this means the macro was only invoked conditionally." >&2;}
22346 { (exit 1); exit 1; }; }
22347 fi
22348 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22349 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22350 Usually this means the macro was only invoked conditionally." >&5
22351 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22352 Usually this means the macro was only invoked conditionally." >&2;}
22353 { (exit 1); exit 1; }; }
22354 fi
22355
22356 : ${CONFIG_STATUS=./config.status}
22357 ac_clean_files_save=$ac_clean_files
22358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22361 cat >$CONFIG_STATUS <<_ACEOF
22362 #! $SHELL
22363 # Generated by $as_me.
22364 # Run this file to recreate the current configuration.
22365 # Compiler output produced by configure, useful for debugging
22366 # configure, is in config.log if it exists.
22367
22368 debug=false
22369 ac_cs_recheck=false
22370 ac_cs_silent=false
22371 SHELL=\${CONFIG_SHELL-$SHELL}
22372 _ACEOF
22373
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22375 ## --------------------- ##
22376 ## M4sh Initialization. ##
22377 ## --------------------- ##
22378
22379 # Be Bourne compatible
22380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22381 emulate sh
22382 NULLCMD=:
22383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22384 # is contrary to our usage. Disable this feature.
22385 alias -g '${1+"$@"}'='"$@"'
22386 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22387 set -o posix
22388 fi
22389 DUALCASE=1; export DUALCASE # for MKS sh
22390
22391 # Support unset when possible.
22392 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22393 as_unset=unset
22394 else
22395 as_unset=false
22396 fi
22397
22398
22399 # Work around bugs in pre-3.0 UWIN ksh.
22400 $as_unset ENV MAIL MAILPATH
22401 PS1='$ '
22402 PS2='> '
22403 PS4='+ '
22404
22405 # NLS nuisances.
22406 for as_var in \
22407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22409 LC_TELEPHONE LC_TIME
22410 do
22411 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22412 eval $as_var=C; export $as_var
22413 else
22414 $as_unset $as_var
22415 fi
22416 done
22417
22418 # Required to use basename.
22419 if expr a : '\(a\)' >/dev/null 2>&1; then
22420 as_expr=expr
22421 else
22422 as_expr=false
22423 fi
22424
22425 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22426 as_basename=basename
22427 else
22428 as_basename=false
22429 fi
22430
22431
22432 # Name of the executable.
22433 as_me=`$as_basename "$0" ||
22434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22435 X"$0" : 'X\(//\)$' \| \
22436 X"$0" : 'X\(/\)$' \| \
22437 . : '\(.\)' 2>/dev/null ||
22438 echo X/"$0" |
22439 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22440 /^X\/\(\/\/\)$/{ s//\1/; q; }
22441 /^X\/\(\/\).*/{ s//\1/; q; }
22442 s/.*/./; q'`
22443
22444
22445 # PATH needs CR, and LINENO needs CR and PATH.
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits='0123456789'
22451 as_cr_alnum=$as_cr_Letters$as_cr_digits
22452
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455 echo "#! /bin/sh" >conf$$.sh
22456 echo "exit 0" >>conf$$.sh
22457 chmod +x conf$$.sh
22458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22459 PATH_SEPARATOR=';'
22460 else
22461 PATH_SEPARATOR=:
22462 fi
22463 rm -f conf$$.sh
22464 fi
22465
22466
22467 as_lineno_1=$LINENO
22468 as_lineno_2=$LINENO
22469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22470 test "x$as_lineno_1" != "x$as_lineno_2" &&
22471 test "x$as_lineno_3" = "x$as_lineno_2" || {
22472 # Find who we are. Look in the path if we contain no path at all
22473 # relative or not.
22474 case $0 in
22475 *[\\/]* ) as_myself=$0 ;;
22476 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477 for as_dir in $PATH
22478 do
22479 IFS=$as_save_IFS
22480 test -z "$as_dir" && as_dir=.
22481 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22482 done
22483
22484 ;;
22485 esac
22486 # We did not find ourselves, most probably we were run as `sh COMMAND'
22487 # in which case we are not to be found in the path.
22488 if test "x$as_myself" = x; then
22489 as_myself=$0
22490 fi
22491 if test ! -f "$as_myself"; then
22492 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22493 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22494 { (exit 1); exit 1; }; }
22495 fi
22496 case $CONFIG_SHELL in
22497 '')
22498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22499 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22500 do
22501 IFS=$as_save_IFS
22502 test -z "$as_dir" && as_dir=.
22503 for as_base in sh bash ksh sh5; do
22504 case $as_dir in
22505 /*)
22506 if ("$as_dir/$as_base" -c '
22507 as_lineno_1=$LINENO
22508 as_lineno_2=$LINENO
22509 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22510 test "x$as_lineno_1" != "x$as_lineno_2" &&
22511 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22512 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22513 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22514 CONFIG_SHELL=$as_dir/$as_base
22515 export CONFIG_SHELL
22516 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22517 fi;;
22518 esac
22519 done
22520 done
22521 ;;
22522 esac
22523
22524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22525 # uniformly replaced by the line number. The first 'sed' inserts a
22526 # line-number line before each line; the second 'sed' does the real
22527 # work. The second script uses 'N' to pair each line-number line
22528 # with the numbered line, and appends trailing '-' during
22529 # substitution so that $LINENO is not a special case at line end.
22530 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22531 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22532 sed '=' <$as_myself |
22533 sed '
22534 N
22535 s,$,-,
22536 : loop
22537 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22538 t loop
22539 s,-$,,
22540 s,^['$as_cr_digits']*\n,,
22541 ' >$as_me.lineno &&
22542 chmod +x $as_me.lineno ||
22543 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22544 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22545 { (exit 1); exit 1; }; }
22546
22547 # Don't try to exec as it changes $[0], causing all sort of problems
22548 # (the dirname of $[0] is not the place where we might find the
22549 # original and so on. Autoconf is especially sensible to this).
22550 . ./$as_me.lineno
22551 # Exit status is that of the last command.
22552 exit
22553 }
22554
22555
22556 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22557 *c*,-n*) ECHO_N= ECHO_C='
22558 ' ECHO_T=' ' ;;
22559 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22560 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22561 esac
22562
22563 if expr a : '\(a\)' >/dev/null 2>&1; then
22564 as_expr=expr
22565 else
22566 as_expr=false
22567 fi
22568
22569 rm -f conf$$ conf$$.exe conf$$.file
22570 echo >conf$$.file
22571 if ln -s conf$$.file conf$$ 2>/dev/null; then
22572 # We could just check for DJGPP; but this test a) works b) is more generic
22573 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22574 if test -f conf$$.exe; then
22575 # Don't use ln at all; we don't have any links
22576 as_ln_s='cp -p'
22577 else
22578 as_ln_s='ln -s'
22579 fi
22580 elif ln conf$$.file conf$$ 2>/dev/null; then
22581 as_ln_s=ln
22582 else
22583 as_ln_s='cp -p'
22584 fi
22585 rm -f conf$$ conf$$.exe conf$$.file
22586
22587 if mkdir -p . 2>/dev/null; then
22588 as_mkdir_p=:
22589 else
22590 test -d ./-p && rmdir ./-p
22591 as_mkdir_p=false
22592 fi
22593
22594 as_executable_p="test -f"
22595
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22598
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22601
22602
22603 # IFS
22604 # We need space, tab and new line, in precisely that order.
22605 as_nl='
22606 '
22607 IFS=" $as_nl"
22608
22609 # CDPATH.
22610 $as_unset CDPATH
22611
22612 exec 6>&1
22613
22614 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22615 # report actual input values of CONFIG_FILES etc. instead of their
22616 # values after options handling. Logging --version etc. is OK.
22617 exec 5>>config.log
22618 {
22619 echo
22620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22621 ## Running $as_me. ##
22622 _ASBOX
22623 } >&5
22624 cat >&5 <<_CSEOF
22625
22626 This file was extended by $as_me, which was
22627 generated by GNU Autoconf 2.59. Invocation command line was
22628
22629 CONFIG_FILES = $CONFIG_FILES
22630 CONFIG_HEADERS = $CONFIG_HEADERS
22631 CONFIG_LINKS = $CONFIG_LINKS
22632 CONFIG_COMMANDS = $CONFIG_COMMANDS
22633 $ $0 $@
22634
22635 _CSEOF
22636 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22637 echo >&5
22638 _ACEOF
22639
22640 # Files that config.status was made for.
22641 if test -n "$ac_config_files"; then
22642 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22643 fi
22644
22645 if test -n "$ac_config_headers"; then
22646 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22647 fi
22648
22649 if test -n "$ac_config_links"; then
22650 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22651 fi
22652
22653 if test -n "$ac_config_commands"; then
22654 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22655 fi
22656
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658
22659 ac_cs_usage="\
22660 \`$as_me' instantiates files from templates according to the
22661 current configuration.
22662
22663 Usage: $0 [OPTIONS] [FILE]...
22664
22665 -h, --help print this help, then exit
22666 -V, --version print version number, then exit
22667 -q, --quiet do not print progress messages
22668 -d, --debug don't remove temporary files
22669 --recheck update $as_me by reconfiguring in the same conditions
22670 --file=FILE[:TEMPLATE]
22671 instantiate the configuration file FILE
22672 --header=FILE[:TEMPLATE]
22673 instantiate the configuration header FILE
22674
22675 Configuration files:
22676 $config_files
22677
22678 Configuration headers:
22679 $config_headers
22680
22681 Configuration commands:
22682 $config_commands
22683
22684 Report bugs to <bug-autoconf@gnu.org>."
22685 _ACEOF
22686
22687 cat >>$CONFIG_STATUS <<_ACEOF
22688 ac_cs_version="\\
22689 config.status
22690 configured by $0, generated by GNU Autoconf 2.59,
22691 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22692
22693 Copyright (C) 2003 Free Software Foundation, Inc.
22694 This config.status script is free software; the Free Software Foundation
22695 gives unlimited permission to copy, distribute and modify it."
22696 srcdir=$srcdir
22697 INSTALL="$INSTALL"
22698 _ACEOF
22699
22700 cat >>$CONFIG_STATUS <<\_ACEOF
22701 # If no file are specified by the user, then we need to provide default
22702 # value. By we need to know if files were specified by the user.
22703 ac_need_defaults=:
22704 while test $# != 0
22705 do
22706 case $1 in
22707 --*=*)
22708 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22709 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22710 ac_shift=:
22711 ;;
22712 -*)
22713 ac_option=$1
22714 ac_optarg=$2
22715 ac_shift=shift
22716 ;;
22717 *) # This is not an option, so the user has probably given explicit
22718 # arguments.
22719 ac_option=$1
22720 ac_need_defaults=false;;
22721 esac
22722
22723 case $ac_option in
22724 # Handling of the options.
22725 _ACEOF
22726 cat >>$CONFIG_STATUS <<\_ACEOF
22727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22728 ac_cs_recheck=: ;;
22729 --version | --vers* | -V )
22730 echo "$ac_cs_version"; exit 0 ;;
22731 --he | --h)
22732 # Conflict between --help and --header
22733 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22734 Try \`$0 --help' for more information." >&5
22735 echo "$as_me: error: ambiguous option: $1
22736 Try \`$0 --help' for more information." >&2;}
22737 { (exit 1); exit 1; }; };;
22738 --help | --hel | -h )
22739 echo "$ac_cs_usage"; exit 0 ;;
22740 --debug | --d* | -d )
22741 debug=: ;;
22742 --file | --fil | --fi | --f )
22743 $ac_shift
22744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22745 ac_need_defaults=false;;
22746 --header | --heade | --head | --hea )
22747 $ac_shift
22748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22749 ac_need_defaults=false;;
22750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22752 ac_cs_silent=: ;;
22753
22754 # This is an error.
22755 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22756 Try \`$0 --help' for more information." >&5
22757 echo "$as_me: error: unrecognized option: $1
22758 Try \`$0 --help' for more information." >&2;}
22759 { (exit 1); exit 1; }; } ;;
22760
22761 *) ac_config_targets="$ac_config_targets $1" ;;
22762
22763 esac
22764 shift
22765 done
22766
22767 ac_configure_extra_args=
22768
22769 if $ac_cs_silent; then
22770 exec 6>/dev/null
22771 ac_configure_extra_args="$ac_configure_extra_args --silent"
22772 fi
22773
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<_ACEOF
22776 if \$ac_cs_recheck; then
22777 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22778 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22779 fi
22780
22781 _ACEOF
22782
22783 cat >>$CONFIG_STATUS <<_ACEOF
22784 #
22785 # INIT-COMMANDS section.
22786 #
22787
22788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22789
22790 _ACEOF
22791
22792
22793
22794 cat >>$CONFIG_STATUS <<\_ACEOF
22795 for ac_config_target in $ac_config_targets
22796 do
22797 case "$ac_config_target" in
22798 # Handling of arguments.
22799 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22800 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
22801 "familiar/Makefile" ) CONFIG_FILES="$CONFIG_FILES familiar/Makefile" ;;
22802 "familiar/control" ) CONFIG_FILES="$CONFIG_FILES familiar/control" ;;
22803 "familiar/control-unstripped" ) CONFIG_FILES="$CONFIG_FILES familiar/control-unstripped" ;;
22804 "familiar/libipkg-control" ) CONFIG_FILES="$CONFIG_FILES familiar/libipkg-control" ;;
22805 "familiar/libipkg-dev-control" ) CONFIG_FILES="$CONFIG_FILES familiar/libipkg-dev-control" ;;
22806 "libbb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbb/Makefile" ;;
22807 "libipkg.pc" ) CONFIG_FILES="$CONFIG_FILES libipkg.pc" ;;
22808 "ipkg.h" ) CONFIG_FILES="$CONFIG_FILES ipkg.h" ;;
22809 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22810 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22811 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22813 { (exit 1); exit 1; }; };;
22814 esac
22815 done
22816
22817 # If the user did not use the arguments to specify the items to instantiate,
22818 # then the envvar interface is used. Set only those that are not.
22819 # We use the long form for the default assignment because of an extremely
22820 # bizarre bug on SunOS 4.1.3.
22821 if $ac_need_defaults; then
22822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22824 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22825 fi
22826
22827 # Have a temporary directory for convenience. Make it in the build tree
22828 # simply because there is no reason to put it here, and in addition,
22829 # creating and moving files from /tmp can sometimes cause problems.
22830 # Create a temporary directory, and hook for its removal unless debugging.
22831 $debug ||
22832 {
22833 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22834 trap '{ (exit 1); exit 1; }' 1 2 13 15
22835 }
22836
22837 # Create a (secure) tmp directory for tmp files.
22838
22839 {
22840 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22841 test -n "$tmp" && test -d "$tmp"
22842 } ||
22843 {
22844 tmp=./confstat$$-$RANDOM
22845 (umask 077 && mkdir $tmp)
22846 } ||
22847 {
22848 echo "$me: cannot create a temporary directory in ." >&2
22849 { (exit 1); exit 1; }
22850 }
22851
22852 _ACEOF
22853
22854 cat >>$CONFIG_STATUS <<_ACEOF
22855
22856 #
22857 # CONFIG_FILES section.
22858 #
22859
22860 # No need to generate the scripts if there are no CONFIG_FILES.
22861 # This happens for instance when ./config.status config.h
22862 if test -n "\$CONFIG_FILES"; then
22863 # Protect against being on the right side of a sed subst in config.status.
22864 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22865 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22866 s,@SHELL@,$SHELL,;t t
22867 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22868 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22869 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22870 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22871 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22872 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22873 s,@exec_prefix@,$exec_prefix,;t t
22874 s,@prefix@,$prefix,;t t
22875 s,@program_transform_name@,$program_transform_name,;t t
22876 s,@bindir@,$bindir,;t t
22877 s,@sbindir@,$sbindir,;t t
22878 s,@libexecdir@,$libexecdir,;t t
22879 s,@datadir@,$datadir,;t t
22880 s,@sysconfdir@,$sysconfdir,;t t
22881 s,@sharedstatedir@,$sharedstatedir,;t t
22882 s,@localstatedir@,$localstatedir,;t t
22883 s,@libdir@,$libdir,;t t
22884 s,@includedir@,$includedir,;t t
22885 s,@oldincludedir@,$oldincludedir,;t t
22886 s,@infodir@,$infodir,;t t
22887 s,@mandir@,$mandir,;t t
22888 s,@build_alias@,$build_alias,;t t
22889 s,@host_alias@,$host_alias,;t t
22890 s,@target_alias@,$target_alias,;t t
22891 s,@DEFS@,$DEFS,;t t
22892 s,@ECHO_C@,$ECHO_C,;t t
22893 s,@ECHO_N@,$ECHO_N,;t t
22894 s,@ECHO_T@,$ECHO_T,;t t
22895 s,@LIBS@,$LIBS,;t t
22896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22899 s,@CYGPATH_W@,$CYGPATH_W,;t t
22900 s,@PACKAGE@,$PACKAGE,;t t
22901 s,@VERSION@,$VERSION,;t t
22902 s,@ACLOCAL@,$ACLOCAL,;t t
22903 s,@AUTOCONF@,$AUTOCONF,;t t
22904 s,@AUTOMAKE@,$AUTOMAKE,;t t
22905 s,@AUTOHEADER@,$AUTOHEADER,;t t
22906 s,@MAKEINFO@,$MAKEINFO,;t t
22907 s,@install_sh@,$install_sh,;t t
22908 s,@STRIP@,$STRIP,;t t
22909 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22910 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22911 s,@mkdir_p@,$mkdir_p,;t t
22912 s,@AWK@,$AWK,;t t
22913 s,@SET_MAKE@,$SET_MAKE,;t t
22914 s,@am__leading_dot@,$am__leading_dot,;t t
22915 s,@AMTAR@,$AMTAR,;t t
22916 s,@am__tar@,$am__tar,;t t
22917 s,@am__untar@,$am__untar,;t t
22918 s,@build@,$build,;t t
22919 s,@build_cpu@,$build_cpu,;t t
22920 s,@build_vendor@,$build_vendor,;t t
22921 s,@build_os@,$build_os,;t t
22922 s,@host@,$host,;t t
22923 s,@host_cpu@,$host_cpu,;t t
22924 s,@host_vendor@,$host_vendor,;t t
22925 s,@host_os@,$host_os,;t t
22926 s,@CC@,$CC,;t t
22927 s,@CFLAGS@,$CFLAGS,;t t
22928 s,@LDFLAGS@,$LDFLAGS,;t t
22929 s,@CPPFLAGS@,$CPPFLAGS,;t t
22930 s,@ac_ct_CC@,$ac_ct_CC,;t t
22931 s,@EXEEXT@,$EXEEXT,;t t
22932 s,@OBJEXT@,$OBJEXT,;t t
22933 s,@DEPDIR@,$DEPDIR,;t t
22934 s,@am__include@,$am__include,;t t
22935 s,@am__quote@,$am__quote,;t t
22936 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22937 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22938 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22939 s,@CCDEPMODE@,$CCDEPMODE,;t t
22940 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22941 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22942 s,@LN_S@,$LN_S,;t t
22943 s,@EGREP@,$EGREP,;t t
22944 s,@ECHO@,$ECHO,;t t
22945 s,@AR@,$AR,;t t
22946 s,@ac_ct_AR@,$ac_ct_AR,;t t
22947 s,@RANLIB@,$RANLIB,;t t
22948 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22949 s,@CPP@,$CPP,;t t
22950 s,@CXX@,$CXX,;t t
22951 s,@CXXFLAGS@,$CXXFLAGS,;t t
22952 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22953 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22954 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22955 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22956 s,@CXXCPP@,$CXXCPP,;t t
22957 s,@F77@,$F77,;t t
22958 s,@FFLAGS@,$FFLAGS,;t t
22959 s,@ac_ct_F77@,$ac_ct_F77,;t t
22960 s,@LIBTOOL@,$LIBTOOL,;t t
22961 s,@ipkglibdir@,$ipkglibdir,;t t
22962 s,@LIBOBJS@,$LIBOBJS,;t t
22963 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22964 CEOF
22965
22966 _ACEOF
22967
22968 cat >>$CONFIG_STATUS <<\_ACEOF
22969 # Split the substitutions into bite-sized pieces for seds with
22970 # small command number limits, like on Digital OSF/1 and HP-UX.
22971 ac_max_sed_lines=48
22972 ac_sed_frag=1 # Number of current file.
22973 ac_beg=1 # First line for current file.
22974 ac_end=$ac_max_sed_lines # Line after last line for current file.
22975 ac_more_lines=:
22976 ac_sed_cmds=
22977 while $ac_more_lines; do
22978 if test $ac_beg -gt 1; then
22979 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22980 else
22981 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22982 fi
22983 if test ! -s $tmp/subs.frag; then
22984 ac_more_lines=false
22985 else
22986 # The purpose of the label and of the branching condition is to
22987 # speed up the sed processing (if there are no `@' at all, there
22988 # is no need to browse any of the substitutions).
22989 # These are the two extra sed commands mentioned above.
22990 (echo ':t
22991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22992 if test -z "$ac_sed_cmds"; then
22993 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22994 else
22995 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22996 fi
22997 ac_sed_frag=`expr $ac_sed_frag + 1`
22998 ac_beg=$ac_end
22999 ac_end=`expr $ac_end + $ac_max_sed_lines`
23000 fi
23001 done
23002 if test -z "$ac_sed_cmds"; then
23003 ac_sed_cmds=cat
23004 fi
23005 fi # test -n "$CONFIG_FILES"
23006
23007 _ACEOF
23008 cat >>$CONFIG_STATUS <<\_ACEOF
23009 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23011 case $ac_file in
23012 - | *:- | *:-:* ) # input from stdin
23013 cat >$tmp/stdin
23014 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23016 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23018 * ) ac_file_in=$ac_file.in ;;
23019 esac
23020
23021 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23022 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23024 X"$ac_file" : 'X\(//\)[^/]' \| \
23025 X"$ac_file" : 'X\(//\)$' \| \
23026 X"$ac_file" : 'X\(/\)' \| \
23027 . : '\(.\)' 2>/dev/null ||
23028 echo X"$ac_file" |
23029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23031 /^X\(\/\/\)$/{ s//\1/; q; }
23032 /^X\(\/\).*/{ s//\1/; q; }
23033 s/.*/./; q'`
23034 { if $as_mkdir_p; then
23035 mkdir -p "$ac_dir"
23036 else
23037 as_dir="$ac_dir"
23038 as_dirs=
23039 while test ! -d "$as_dir"; do
23040 as_dirs="$as_dir $as_dirs"
23041 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23043 X"$as_dir" : 'X\(//\)[^/]' \| \
23044 X"$as_dir" : 'X\(//\)$' \| \
23045 X"$as_dir" : 'X\(/\)' \| \
23046 . : '\(.\)' 2>/dev/null ||
23047 echo X"$as_dir" |
23048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23050 /^X\(\/\/\)$/{ s//\1/; q; }
23051 /^X\(\/\).*/{ s//\1/; q; }
23052 s/.*/./; q'`
23053 done
23054 test ! -n "$as_dirs" || mkdir $as_dirs
23055 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23056 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23057 { (exit 1); exit 1; }; }; }
23058
23059 ac_builddir=.
23060
23061 if test "$ac_dir" != .; then
23062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23063 # A "../" for each directory in $ac_dir_suffix.
23064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23065 else
23066 ac_dir_suffix= ac_top_builddir=
23067 fi
23068
23069 case $srcdir in
23070 .) # No --srcdir option. We are building in place.
23071 ac_srcdir=.
23072 if test -z "$ac_top_builddir"; then
23073 ac_top_srcdir=.
23074 else
23075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23076 fi ;;
23077 [\\/]* | ?:[\\/]* ) # Absolute path.
23078 ac_srcdir=$srcdir$ac_dir_suffix;
23079 ac_top_srcdir=$srcdir ;;
23080 *) # Relative path.
23081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23083 esac
23084
23085 # Do not use `cd foo && pwd` to compute absolute paths, because
23086 # the directories may not exist.
23087 case `pwd` in
23088 .) ac_abs_builddir="$ac_dir";;
23089 *)
23090 case "$ac_dir" in
23091 .) ac_abs_builddir=`pwd`;;
23092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23094 esac;;
23095 esac
23096 case $ac_abs_builddir in
23097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23098 *)
23099 case ${ac_top_builddir}. in
23100 .) ac_abs_top_builddir=$ac_abs_builddir;;
23101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23103 esac;;
23104 esac
23105 case $ac_abs_builddir in
23106 .) ac_abs_srcdir=$ac_srcdir;;
23107 *)
23108 case $ac_srcdir in
23109 .) ac_abs_srcdir=$ac_abs_builddir;;
23110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23112 esac;;
23113 esac
23114 case $ac_abs_builddir in
23115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23116 *)
23117 case $ac_top_srcdir in
23118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23121 esac;;
23122 esac
23123
23124
23125 case $INSTALL in
23126 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23127 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23128 esac
23129
23130 if test x"$ac_file" != x-; then
23131 { echo "$as_me:$LINENO: creating $ac_file" >&5
23132 echo "$as_me: creating $ac_file" >&6;}
23133 rm -f "$ac_file"
23134 fi
23135 # Let's still pretend it is `configure' which instantiates (i.e., don't
23136 # use $as_me), people would be surprised to read:
23137 # /* config.h. Generated by config.status. */
23138 if test x"$ac_file" = x-; then
23139 configure_input=
23140 else
23141 configure_input="$ac_file. "
23142 fi
23143 configure_input=$configure_input"Generated from `echo $ac_file_in |
23144 sed 's,.*/,,'` by configure."
23145
23146 # First look for the input files in the build tree, otherwise in the
23147 # src tree.
23148 ac_file_inputs=`IFS=:
23149 for f in $ac_file_in; do
23150 case $f in
23151 -) echo $tmp/stdin ;;
23152 [\\/$]*)
23153 # Absolute (can't be DOS-style, as IFS=:)
23154 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23155 echo "$as_me: error: cannot find input file: $f" >&2;}
23156 { (exit 1); exit 1; }; }
23157 echo "$f";;
23158 *) # Relative
23159 if test -f "$f"; then
23160 # Build tree
23161 echo "$f"
23162 elif test -f "$srcdir/$f"; then
23163 # Source tree
23164 echo "$srcdir/$f"
23165 else
23166 # /dev/null tree
23167 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23168 echo "$as_me: error: cannot find input file: $f" >&2;}
23169 { (exit 1); exit 1; }; }
23170 fi;;
23171 esac
23172 done` || { (exit 1); exit 1; }
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<_ACEOF
23175 sed "$ac_vpsub
23176 $extrasub
23177 _ACEOF
23178 cat >>$CONFIG_STATUS <<\_ACEOF
23179 :t
23180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23181 s,@configure_input@,$configure_input,;t t
23182 s,@srcdir@,$ac_srcdir,;t t
23183 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23184 s,@top_srcdir@,$ac_top_srcdir,;t t
23185 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23186 s,@builddir@,$ac_builddir,;t t
23187 s,@abs_builddir@,$ac_abs_builddir,;t t
23188 s,@top_builddir@,$ac_top_builddir,;t t
23189 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23190 s,@INSTALL@,$ac_INSTALL,;t t
23191 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23192 rm -f $tmp/stdin
23193 if test x"$ac_file" != x-; then
23194 mv $tmp/out $ac_file
23195 else
23196 cat $tmp/out
23197 rm -f $tmp/out
23198 fi
23199
23200 done
23201 _ACEOF
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23203
23204 #
23205 # CONFIG_HEADER section.
23206 #
23207
23208 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23209 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23210 #
23211 # ac_d sets the value in "#define NAME VALUE" lines.
23212 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23213 ac_dB='[ ].*$,\1#\2'
23214 ac_dC=' '
23215 ac_dD=',;t'
23216 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23217 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23218 ac_uB='$,\1#\2define\3'
23219 ac_uC=' '
23220 ac_uD=',;t'
23221
23222 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23224 case $ac_file in
23225 - | *:- | *:-:* ) # input from stdin
23226 cat >$tmp/stdin
23227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23231 * ) ac_file_in=$ac_file.in ;;
23232 esac
23233
23234 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23235 echo "$as_me: creating $ac_file" >&6;}
23236
23237 # First look for the input files in the build tree, otherwise in the
23238 # src tree.
23239 ac_file_inputs=`IFS=:
23240 for f in $ac_file_in; do
23241 case $f in
23242 -) echo $tmp/stdin ;;
23243 [\\/$]*)
23244 # Absolute (can't be DOS-style, as IFS=:)
23245 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23246 echo "$as_me: error: cannot find input file: $f" >&2;}
23247 { (exit 1); exit 1; }; }
23248 # Do quote $f, to prevent DOS paths from being IFS'd.
23249 echo "$f";;
23250 *) # Relative
23251 if test -f "$f"; then
23252 # Build tree
23253 echo "$f"
23254 elif test -f "$srcdir/$f"; then
23255 # Source tree
23256 echo "$srcdir/$f"
23257 else
23258 # /dev/null tree
23259 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23260 echo "$as_me: error: cannot find input file: $f" >&2;}
23261 { (exit 1); exit 1; }; }
23262 fi;;
23263 esac
23264 done` || { (exit 1); exit 1; }
23265 # Remove the trailing spaces.
23266 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23267
23268 _ACEOF
23269
23270 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23271 # `conftest.undefs', that substitutes the proper values into
23272 # config.h.in to produce config.h. The first handles `#define'
23273 # templates, and the second `#undef' templates.
23274 # And first: Protect against being on the right side of a sed subst in
23275 # config.status. Protect against being in an unquoted here document
23276 # in config.status.
23277 rm -f conftest.defines conftest.undefs
23278 # Using a here document instead of a string reduces the quoting nightmare.
23279 # Putting comments in sed scripts is not portable.
23280 #
23281 # `end' is used to avoid that the second main sed command (meant for
23282 # 0-ary CPP macros) applies to n-ary macro definitions.
23283 # See the Autoconf documentation for `clear'.
23284 cat >confdef2sed.sed <<\_ACEOF
23285 s/[\\&,]/\\&/g
23286 s,[\\$`],\\&,g
23287 t clear
23288 : clear
23289 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23290 t end
23291 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23292 : end
23293 _ACEOF
23294 # If some macros were called several times there might be several times
23295 # the same #defines, which is useless. Nevertheless, we may not want to
23296 # sort them, since we want the *last* AC-DEFINE to be honored.
23297 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23298 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23299 rm -f confdef2sed.sed
23300
23301 # This sed command replaces #undef with comments. This is necessary, for
23302 # example, in the case of _POSIX_SOURCE, which is predefined and required
23303 # on some systems where configure will not decide to define it.
23304 cat >>conftest.undefs <<\_ACEOF
23305 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23306 _ACEOF
23307
23308 # Break up conftest.defines because some shells have a limit on the size
23309 # of here documents, and old seds have small limits too (100 cmds).
23310 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23311 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23312 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23313 echo ' :' >>$CONFIG_STATUS
23314 rm -f conftest.tail
23315 while grep . conftest.defines >/dev/null
23316 do
23317 # Write a limited-size here document to $tmp/defines.sed.
23318 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23319 # Speed up: don't consider the non `#define' lines.
23320 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23321 # Work around the forget-to-reset-the-flag bug.
23322 echo 't clr' >>$CONFIG_STATUS
23323 echo ': clr' >>$CONFIG_STATUS
23324 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23325 echo 'CEOF
23326 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23327 rm -f $tmp/in
23328 mv $tmp/out $tmp/in
23329 ' >>$CONFIG_STATUS
23330 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23331 rm -f conftest.defines
23332 mv conftest.tail conftest.defines
23333 done
23334 rm -f conftest.defines
23335 echo ' fi # grep' >>$CONFIG_STATUS
23336 echo >>$CONFIG_STATUS
23337
23338 # Break up conftest.undefs because some shells have a limit on the size
23339 # of here documents, and old seds have small limits too (100 cmds).
23340 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23341 rm -f conftest.tail
23342 while grep . conftest.undefs >/dev/null
23343 do
23344 # Write a limited-size here document to $tmp/undefs.sed.
23345 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23346 # Speed up: don't consider the non `#undef'
23347 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23348 # Work around the forget-to-reset-the-flag bug.
23349 echo 't clr' >>$CONFIG_STATUS
23350 echo ': clr' >>$CONFIG_STATUS
23351 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23352 echo 'CEOF
23353 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23354 rm -f $tmp/in
23355 mv $tmp/out $tmp/in
23356 ' >>$CONFIG_STATUS
23357 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23358 rm -f conftest.undefs
23359 mv conftest.tail conftest.undefs
23360 done
23361 rm -f conftest.undefs
23362
23363 cat >>$CONFIG_STATUS <<\_ACEOF
23364 # Let's still pretend it is `configure' which instantiates (i.e., don't
23365 # use $as_me), people would be surprised to read:
23366 # /* config.h. Generated by config.status. */
23367 if test x"$ac_file" = x-; then
23368 echo "/* Generated by configure. */" >$tmp/config.h
23369 else
23370 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23371 fi
23372 cat $tmp/in >>$tmp/config.h
23373 rm -f $tmp/in
23374 if test x"$ac_file" != x-; then
23375 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23376 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23377 echo "$as_me: $ac_file is unchanged" >&6;}
23378 else
23379 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381 X"$ac_file" : 'X\(//\)[^/]' \| \
23382 X"$ac_file" : 'X\(//\)$' \| \
23383 X"$ac_file" : 'X\(/\)' \| \
23384 . : '\(.\)' 2>/dev/null ||
23385 echo X"$ac_file" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23388 /^X\(\/\/\)$/{ s//\1/; q; }
23389 /^X\(\/\).*/{ s//\1/; q; }
23390 s/.*/./; q'`
23391 { if $as_mkdir_p; then
23392 mkdir -p "$ac_dir"
23393 else
23394 as_dir="$ac_dir"
23395 as_dirs=
23396 while test ! -d "$as_dir"; do
23397 as_dirs="$as_dir $as_dirs"
23398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23400 X"$as_dir" : 'X\(//\)[^/]' \| \
23401 X"$as_dir" : 'X\(//\)$' \| \
23402 X"$as_dir" : 'X\(/\)' \| \
23403 . : '\(.\)' 2>/dev/null ||
23404 echo X"$as_dir" |
23405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23407 /^X\(\/\/\)$/{ s//\1/; q; }
23408 /^X\(\/\).*/{ s//\1/; q; }
23409 s/.*/./; q'`
23410 done
23411 test ! -n "$as_dirs" || mkdir $as_dirs
23412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23414 { (exit 1); exit 1; }; }; }
23415
23416 rm -f $ac_file
23417 mv $tmp/config.h $ac_file
23418 fi
23419 else
23420 cat $tmp/config.h
23421 rm -f $tmp/config.h
23422 fi
23423 # Compute $ac_file's index in $config_headers.
23424 _am_stamp_count=1
23425 for _am_header in $config_headers :; do
23426 case $_am_header in
23427 $ac_file | $ac_file:* )
23428 break ;;
23429 * )
23430 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23431 esac
23432 done
23433 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23434 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23435 X$ac_file : 'X\(//\)[^/]' \| \
23436 X$ac_file : 'X\(//\)$' \| \
23437 X$ac_file : 'X\(/\)' \| \
23438 . : '\(.\)' 2>/dev/null ||
23439 echo X$ac_file |
23440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23442 /^X\(\/\/\)$/{ s//\1/; q; }
23443 /^X\(\/\).*/{ s//\1/; q; }
23444 s/.*/./; q'`/stamp-h$_am_stamp_count
23445 done
23446 _ACEOF
23447 cat >>$CONFIG_STATUS <<\_ACEOF
23448
23449 #
23450 # CONFIG_COMMANDS section.
23451 #
23452 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23453 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23454 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23455 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23456 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23457 X"$ac_dest" : 'X\(//\)[^/]' \| \
23458 X"$ac_dest" : 'X\(//\)$' \| \
23459 X"$ac_dest" : 'X\(/\)' \| \
23460 . : '\(.\)' 2>/dev/null ||
23461 echo X"$ac_dest" |
23462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23464 /^X\(\/\/\)$/{ s//\1/; q; }
23465 /^X\(\/\).*/{ s//\1/; q; }
23466 s/.*/./; q'`
23467 { if $as_mkdir_p; then
23468 mkdir -p "$ac_dir"
23469 else
23470 as_dir="$ac_dir"
23471 as_dirs=
23472 while test ! -d "$as_dir"; do
23473 as_dirs="$as_dir $as_dirs"
23474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23476 X"$as_dir" : 'X\(//\)[^/]' \| \
23477 X"$as_dir" : 'X\(//\)$' \| \
23478 X"$as_dir" : 'X\(/\)' \| \
23479 . : '\(.\)' 2>/dev/null ||
23480 echo X"$as_dir" |
23481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23483 /^X\(\/\/\)$/{ s//\1/; q; }
23484 /^X\(\/\).*/{ s//\1/; q; }
23485 s/.*/./; q'`
23486 done
23487 test ! -n "$as_dirs" || mkdir $as_dirs
23488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23490 { (exit 1); exit 1; }; }; }
23491
23492 ac_builddir=.
23493
23494 if test "$ac_dir" != .; then
23495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23496 # A "../" for each directory in $ac_dir_suffix.
23497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23498 else
23499 ac_dir_suffix= ac_top_builddir=
23500 fi
23501
23502 case $srcdir in
23503 .) # No --srcdir option. We are building in place.
23504 ac_srcdir=.
23505 if test -z "$ac_top_builddir"; then
23506 ac_top_srcdir=.
23507 else
23508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23509 fi ;;
23510 [\\/]* | ?:[\\/]* ) # Absolute path.
23511 ac_srcdir=$srcdir$ac_dir_suffix;
23512 ac_top_srcdir=$srcdir ;;
23513 *) # Relative path.
23514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23516 esac
23517
23518 # Do not use `cd foo && pwd` to compute absolute paths, because
23519 # the directories may not exist.
23520 case `pwd` in
23521 .) ac_abs_builddir="$ac_dir";;
23522 *)
23523 case "$ac_dir" in
23524 .) ac_abs_builddir=`pwd`;;
23525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23527 esac;;
23528 esac
23529 case $ac_abs_builddir in
23530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23531 *)
23532 case ${ac_top_builddir}. in
23533 .) ac_abs_top_builddir=$ac_abs_builddir;;
23534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23536 esac;;
23537 esac
23538 case $ac_abs_builddir in
23539 .) ac_abs_srcdir=$ac_srcdir;;
23540 *)
23541 case $ac_srcdir in
23542 .) ac_abs_srcdir=$ac_abs_builddir;;
23543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23545 esac;;
23546 esac
23547 case $ac_abs_builddir in
23548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23549 *)
23550 case $ac_top_srcdir in
23551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23554 esac;;
23555 esac
23556
23557
23558 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23559 echo "$as_me: executing $ac_dest commands" >&6;}
23560 case $ac_dest in
23561 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23562 # Strip MF so we end up with the name of the file.
23563 mf=`echo "$mf" | sed -e 's/:.*$//'`
23564 # Check whether this is an Automake generated Makefile or not.
23565 # We used to match only the files named `Makefile.in', but
23566 # some people rename them; so instead we look at the file content.
23567 # Grep'ing the first line is not enough: some people post-process
23568 # each Makefile.in and add a new line on top of each file to say so.
23569 # So let's grep whole file.
23570 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23571 dirpart=`(dirname "$mf") 2>/dev/null ||
23572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23573 X"$mf" : 'X\(//\)[^/]' \| \
23574 X"$mf" : 'X\(//\)$' \| \
23575 X"$mf" : 'X\(/\)' \| \
23576 . : '\(.\)' 2>/dev/null ||
23577 echo X"$mf" |
23578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23580 /^X\(\/\/\)$/{ s//\1/; q; }
23581 /^X\(\/\).*/{ s//\1/; q; }
23582 s/.*/./; q'`
23583 else
23584 continue
23585 fi
23586 # Extract the definition of DEPDIR, am__include, and am__quote
23587 # from the Makefile without running `make'.
23588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23589 test -z "$DEPDIR" && continue
23590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23591 test -z "am__include" && continue
23592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23593 # When using ansi2knr, U may be empty or an underscore; expand it
23594 U=`sed -n 's/^U = //p' < "$mf"`
23595 # Find all dependency output files, they are included files with
23596 # $(DEPDIR) in their names. We invoke sed twice because it is the
23597 # simplest approach to changing $(DEPDIR) to its actual value in the
23598 # expansion.
23599 for file in `sed -n "
23600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23602 # Make sure the directory exists.
23603 test -f "$dirpart/$file" && continue
23604 fdir=`(dirname "$file") 2>/dev/null ||
23605 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23606 X"$file" : 'X\(//\)[^/]' \| \
23607 X"$file" : 'X\(//\)$' \| \
23608 X"$file" : 'X\(/\)' \| \
23609 . : '\(.\)' 2>/dev/null ||
23610 echo X"$file" |
23611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23613 /^X\(\/\/\)$/{ s//\1/; q; }
23614 /^X\(\/\).*/{ s//\1/; q; }
23615 s/.*/./; q'`
23616 { if $as_mkdir_p; then
23617 mkdir -p $dirpart/$fdir
23618 else
23619 as_dir=$dirpart/$fdir
23620 as_dirs=
23621 while test ! -d "$as_dir"; do
23622 as_dirs="$as_dir $as_dirs"
23623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23625 X"$as_dir" : 'X\(//\)[^/]' \| \
23626 X"$as_dir" : 'X\(//\)$' \| \
23627 X"$as_dir" : 'X\(/\)' \| \
23628 . : '\(.\)' 2>/dev/null ||
23629 echo X"$as_dir" |
23630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23632 /^X\(\/\/\)$/{ s//\1/; q; }
23633 /^X\(\/\).*/{ s//\1/; q; }
23634 s/.*/./; q'`
23635 done
23636 test ! -n "$as_dirs" || mkdir $as_dirs
23637 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23638 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23639 { (exit 1); exit 1; }; }; }
23640
23641 # echo "creating $dirpart/$file"
23642 echo '# dummy' > "$dirpart/$file"
23643 done
23644 done
23645 ;;
23646 esac
23647 done
23648 _ACEOF
23649
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651
23652 { (exit 0); exit 0; }
23653 _ACEOF
23654 chmod +x $CONFIG_STATUS
23655 ac_clean_files=$ac_clean_files_save
23656
23657
23658 # configure is writing to config.log, and then calls config.status.
23659 # config.status does its own redirection, appending to config.log.
23660 # Unfortunately, on DOS this fails, as config.log is still kept open
23661 # by configure, so config.status won't be able to write to it; its
23662 # output is simply discarded. So we exec the FD to /dev/null,
23663 # effectively closing config.log, so it can be properly (re)opened and
23664 # appended to by config.status. When coming back to configure, we
23665 # need to make the FD available again.
23666 if test "$no_create" != yes; then
23667 ac_cs_success=:
23668 ac_config_status_args=
23669 test "$silent" = yes &&
23670 ac_config_status_args="$ac_config_status_args --quiet"
23671 exec 5>/dev/null
23672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23673 exec 5>>config.log
23674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23675 # would make configure fail if this is the last instruction.
23676 $ac_cs_success || { (exit 1); exit 1; }
23677 fi
23678