sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
[gcc.git] / libssp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libssp 1.0.
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$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_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 <<_LT_EOF
274 $*
275 _LT_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libssp'
418 PACKAGE_TARNAME='libssp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libssp 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
968
969 cat <<\_ACEOF
970
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
975
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libssp 1.0:";;
986 esac
987 cat <<\_ACEOF
988
989 Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1005
1006 Optional Packages:
1007 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1008 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1009 --with-pic try to use only PIC/non-PIC objects [default=use
1010 both]
1011 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1012
1013 Some influential environment variables:
1014 CC C compiler command
1015 CFLAGS C compiler flags
1016 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1017 nonstandard directory <lib dir>
1018 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1019 headers in a nonstandard directory <include dir>
1020 CPP C preprocessor
1021
1022 Use these variables to override the choices made by `configure' or to help
1023 it to find libraries and programs with nonstandard names/locations.
1024
1025 _ACEOF
1026 fi
1027
1028 if test "$ac_init_help" = "recursive"; then
1029 # If there are subdirs, report their specific --help.
1030 ac_popdir=`pwd`
1031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1032 test -d $ac_dir || continue
1033 ac_builddir=.
1034
1035 if test "$ac_dir" != .; then
1036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1037 # A "../" for each directory in $ac_dir_suffix.
1038 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 else
1040 ac_dir_suffix= ac_top_builddir=
1041 fi
1042
1043 case $srcdir in
1044 .) # No --srcdir option. We are building in place.
1045 ac_srcdir=.
1046 if test -z "$ac_top_builddir"; then
1047 ac_top_srcdir=.
1048 else
1049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050 fi ;;
1051 [\\/]* | ?:[\\/]* ) # Absolute path.
1052 ac_srcdir=$srcdir$ac_dir_suffix;
1053 ac_top_srcdir=$srcdir ;;
1054 *) # Relative path.
1055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1057 esac
1058
1059 # Do not use `cd foo && pwd` to compute absolute paths, because
1060 # the directories may not exist.
1061 case `pwd` in
1062 .) ac_abs_builddir="$ac_dir";;
1063 *)
1064 case "$ac_dir" in
1065 .) ac_abs_builddir=`pwd`;;
1066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1068 esac;;
1069 esac
1070 case $ac_abs_builddir in
1071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *)
1073 case ${ac_top_builddir}. in
1074 .) ac_abs_top_builddir=$ac_abs_builddir;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1076 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1077 esac;;
1078 esac
1079 case $ac_abs_builddir in
1080 .) ac_abs_srcdir=$ac_srcdir;;
1081 *)
1082 case $ac_srcdir in
1083 .) ac_abs_srcdir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *)
1091 case $ac_top_srcdir in
1092 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1094 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1095 esac;;
1096 esac
1097
1098 cd $ac_dir
1099 # Check for guested configure; otherwise get Cygnus style configure.
1100 if test -f $ac_srcdir/configure.gnu; then
1101 echo
1102 $SHELL $ac_srcdir/configure.gnu --help=recursive
1103 elif test -f $ac_srcdir/configure; then
1104 echo
1105 $SHELL $ac_srcdir/configure --help=recursive
1106 elif test -f $ac_srcdir/configure.ac ||
1107 test -f $ac_srcdir/configure.in; then
1108 echo
1109 $ac_configure --help
1110 else
1111 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1112 fi
1113 cd $ac_popdir
1114 done
1115 fi
1116
1117 test -n "$ac_init_help" && exit 0
1118 if $ac_init_version; then
1119 cat <<\_ACEOF
1120 libssp configure 1.0
1121 generated by GNU Autoconf 2.59
1122
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127 exit 0
1128 fi
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1133
1134 It was created by libssp $as_me 1.0, which was
1135 generated by GNU Autoconf 2.59. Invocation command line was
1136
1137 $ $0 $@
1138
1139 _ACEOF
1140 {
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1145
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154
1155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1162
1163 _ASUNAME
1164
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1167 do
1168 IFS=$as_save_IFS
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
1171 done
1172
1173 } >&5
1174
1175 cat >&5 <<_ACEOF
1176
1177
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1181
1182 _ACEOF
1183
1184
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1196 do
1197 for ac_arg
1198 do
1199 case $ac_arg in
1200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 continue ;;
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 esac
1207 case $ac_pass in
1208 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209 2)
1210 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211 if test $ac_must_keep_next = true; then
1212 ac_must_keep_next=false # Got value, back to normal.
1213 else
1214 case $ac_arg in
1215 *=* | --config-cache | -C | -disable-* | --disable-* \
1216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218 | -with-* | --with-* | -without-* | --without-* | --x)
1219 case "$ac_configure_args0 " in
1220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 esac
1222 ;;
1223 -* ) ac_must_keep_next=true ;;
1224 esac
1225 fi
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
1228 ac_sep=" "
1229 ;;
1230 esac
1231 done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log. We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242 # Save into config.log some information that might help in debugging.
1243 {
1244 echo
1245
1246 cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251 echo
1252 # The following way of writing the cache mishandles newlines in values,
1253 {
1254 (set) 2>&1 |
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 *ac_space=\ *)
1257 sed -n \
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260 ;;
1261 *)
1262 sed -n \
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264 ;;
1265 esac;
1266 }
1267 echo
1268
1269 cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274 echo
1275 for ac_var in $ac_subst_vars
1276 do
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1279 done | sort
1280 echo
1281
1282 if test -n "$ac_subst_files"; then
1283 cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288 echo
1289 for ac_var in $ac_subst_files
1290 do
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1295 fi
1296
1297 if test -s confdefs.h; then
1298 cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303 echo
1304 sed "/^$/d" confdefs.h | sort
1305 echo
1306 fi
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1310 } >&5
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 exit $exit_status
1314 ' 0
1315 for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1319
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1324
1325 # Predefined preprocessor variables.
1326
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1330
1331
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1335
1336
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1340
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1350
1351
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355 if test "x$prefix" != xNONE; then
1356 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 else
1358 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359 fi
1360 fi
1361 for ac_site_file in $CONFIG_SITE; do
1362 if test -r "$ac_site_file"; then
1363 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365 sed 's/^/| /' "$ac_site_file" >&5
1366 . "$ac_site_file"
1367 fi
1368 done
1369
1370 if test -r "$cache_file"; then
1371 # Some versions of bash will fail to source /dev/null (special
1372 # files actually), so we avoid doing that.
1373 if test -f "$cache_file"; then
1374 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376 case $cache_file in
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1379 esac
1380 fi
1381 else
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384 >$cache_file
1385 fi
1386
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393 eval ac_new_set=\$ac_env_${ac_var}_set
1394 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395 eval ac_new_val="\$ac_env_${ac_var}_value"
1396 case $ac_old_set,$ac_new_set in
1397 set,)
1398 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400 ac_cache_corrupted=: ;;
1401 ,set)
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1405 ,);;
1406 *)
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
1408 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1409 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1410 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1411 echo "$as_me: former value: $ac_old_val" >&2;}
1412 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1413 echo "$as_me: current value: $ac_new_val" >&2;}
1414 ac_cache_corrupted=:
1415 fi;;
1416 esac
1417 # Pass precious variables to config.status.
1418 if test "$ac_new_set" = set; then
1419 case $ac_new_val in
1420 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1422 *) ac_arg=$ac_var=$ac_new_val ;;
1423 esac
1424 case " $ac_configure_args " in
1425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1426 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1427 esac
1428 fi
1429 done
1430 if $ac_cache_corrupted; then
1431 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1432 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1433 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1434 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1435 { (exit 1); exit 1; }; }
1436 fi
1437
1438 ac_ext=c
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 ac_aux_dir=
1472 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1473 if test -f $ac_dir/install-sh; then
1474 ac_aux_dir=$ac_dir
1475 ac_install_sh="$ac_aux_dir/install-sh -c"
1476 break
1477 elif test -f $ac_dir/install.sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install.sh -c"
1480 break
1481 elif test -f $ac_dir/shtool; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/shtool install -c"
1484 break
1485 fi
1486 done
1487 if test -z "$ac_aux_dir"; then
1488 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1489 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1490 { (exit 1); exit 1; }; }
1491 fi
1492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1494 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1495
1496 # Make sure we can run config.sub.
1497 $ac_config_sub sun4 >/dev/null 2>&1 ||
1498 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500 { (exit 1); exit 1; }; }
1501
1502 echo "$as_me:$LINENO: checking build system type" >&5
1503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504 if test "${ac_cv_build+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 ac_cv_build_alias=$build_alias
1508 test -z "$ac_cv_build_alias" &&
1509 ac_cv_build_alias=`$ac_config_guess`
1510 test -z "$ac_cv_build_alias" &&
1511 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513 { (exit 1); exit 1; }; }
1514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521 echo "${ECHO_T}$ac_cv_build" >&6
1522 build=$ac_cv_build
1523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 echo "$as_me:$LINENO: checking host system type" >&5
1529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530 if test "${ac_cv_host+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 ac_cv_host_alias=$host_alias
1534 test -z "$ac_cv_host_alias" &&
1535 ac_cv_host_alias=$ac_cv_build_alias
1536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543 echo "${ECHO_T}$ac_cv_host" >&6
1544 host=$ac_cv_host
1545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking target system type" >&5
1551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1552 if test "${ac_cv_target+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_target_alias=$target_alias
1556 test "x$ac_cv_target_alias" = "x" &&
1557 ac_cv_target_alias=$ac_cv_host_alias
1558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1565 echo "${ECHO_T}$ac_cv_target" >&6
1566 target=$ac_cv_target
1567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 # The aliases save the names the user supplied, while $host etc.
1573 # will get canonicalized.
1574 test -n "$target_alias" &&
1575 test "$program_prefix$program_suffix$program_transform_name" = \
1576 NONENONEs,x,x, &&
1577 program_prefix=${target_alias}-
1578 case ${build_alias} in
1579 "") build_noncanonical=${build} ;;
1580 *) build_noncanonical=${build_alias} ;;
1581 esac
1582
1583 case ${host_alias} in
1584 "") host_noncanonical=${build_noncanonical} ;;
1585 *) host_noncanonical=${host_alias} ;;
1586 esac
1587
1588 case ${target_alias} in
1589 "") target_noncanonical=${host_noncanonical} ;;
1590 *) target_noncanonical=${target_alias} ;;
1591 esac
1592
1593
1594
1595
1596 am__api_version="1.9"
1597 # Find a good install program. We prefer a C program (faster),
1598 # so one script is as good as another. But avoid the broken or
1599 # incompatible versions:
1600 # SysV /etc/install, /usr/sbin/install
1601 # SunOS /usr/etc/install
1602 # IRIX /sbin/install
1603 # AIX /bin/install
1604 # AmigaOS /C/install, which installs bootblocks on floppy discs
1605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1608 # OS/2's system install, which has a completely different semantic
1609 # ./install, which can be erroneously created by make from ./install.sh.
1610 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1611 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1612 if test -z "$INSTALL"; then
1613 if test "${ac_cv_path_install+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 # Account for people who put trailing slashes in PATH elements.
1622 case $as_dir/ in
1623 ./ | .// | /cC/* | \
1624 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1625 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1626 /usr/ucb/* ) ;;
1627 *)
1628 # OSF1 and SCO ODT 3.0 have their own names for install.
1629 # Don't use installbsd from OSF since it installs stuff as root
1630 # by default.
1631 for ac_prog in ginstall scoinst install; do
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1634 if test $ac_prog = install &&
1635 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1636 # AIX install. It has an incompatible calling convention.
1637 :
1638 elif test $ac_prog = install &&
1639 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1640 # program-specific install script used by HP pwplus--don't use.
1641 :
1642 else
1643 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1644 break 3
1645 fi
1646 fi
1647 done
1648 done
1649 ;;
1650 esac
1651 done
1652
1653
1654 fi
1655 if test "${ac_cv_path_install+set}" = set; then
1656 INSTALL=$ac_cv_path_install
1657 else
1658 # As a last resort, use the slow shell script. We don't cache a
1659 # path for INSTALL within a source directory, because that will
1660 # break other packages using the cache if that directory is
1661 # removed, or if the path is relative.
1662 INSTALL=$ac_install_sh
1663 fi
1664 fi
1665 echo "$as_me:$LINENO: result: $INSTALL" >&5
1666 echo "${ECHO_T}$INSTALL" >&6
1667
1668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1669 # It thinks the first close brace ends the variable substitution.
1670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1671
1672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1673
1674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1675
1676 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1677 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1678 # Just in case
1679 sleep 1
1680 echo timestamp > conftest.file
1681 # Do `set' in a subshell so we don't clobber the current shell's
1682 # arguments. Must try -L first in case configure is actually a
1683 # symlink; some systems play weird games with the mod time of symlinks
1684 # (eg FreeBSD returns the mod time of the symlink's containing
1685 # directory).
1686 if (
1687 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1688 if test "$*" = "X"; then
1689 # -L didn't work.
1690 set X `ls -t $srcdir/configure conftest.file`
1691 fi
1692 rm -f conftest.file
1693 if test "$*" != "X $srcdir/configure conftest.file" \
1694 && test "$*" != "X conftest.file $srcdir/configure"; then
1695
1696 # If neither matched, then we have a broken ls. This can happen
1697 # if, for instance, CONFIG_SHELL is bash and it inherits a
1698 # broken ls alias from the environment. This has actually
1699 # happened. Such a system could not be considered "sane".
1700 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1701 alias in your environment" >&5
1702 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1703 alias in your environment" >&2;}
1704 { (exit 1); exit 1; }; }
1705 fi
1706
1707 test "$2" = conftest.file
1708 )
1709 then
1710 # Ok.
1711 :
1712 else
1713 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1714 Check your system clock" >&5
1715 echo "$as_me: error: newly created file is older than distributed files!
1716 Check your system clock" >&2;}
1717 { (exit 1); exit 1; }; }
1718 fi
1719 echo "$as_me:$LINENO: result: yes" >&5
1720 echo "${ECHO_T}yes" >&6
1721 test "$program_prefix" != NONE &&
1722 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1723 # Use a double $ so make ignores it.
1724 test "$program_suffix" != NONE &&
1725 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1726 # Double any \ or $. echo might interpret backslashes.
1727 # By default was `s,x,x', remove it if useless.
1728 cat <<\_ACEOF >conftest.sed
1729 s/[\\$]/&&/g;s/;s,x,x,$//
1730 _ACEOF
1731 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1732 rm conftest.sed
1733
1734 # expand $ac_aux_dir to an absolute path
1735 am_aux_dir=`cd $ac_aux_dir && pwd`
1736
1737 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1738 # Use eval to expand $SHELL
1739 if eval "$MISSING --run true"; then
1740 am_missing_run="$MISSING --run "
1741 else
1742 am_missing_run=
1743 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1744 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1745 fi
1746
1747 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1748 # We used to keeping the `.' as first argument, in order to
1749 # allow $(mkdir_p) to be used without argument. As in
1750 # $(mkdir_p) $(somedir)
1751 # where $(somedir) is conditionally defined. However this is wrong
1752 # for two reasons:
1753 # 1. if the package is installed by a user who cannot write `.'
1754 # make install will fail,
1755 # 2. the above comment should most certainly read
1756 # $(mkdir_p) $(DESTDIR)$(somedir)
1757 # so it does not work when $(somedir) is undefined and
1758 # $(DESTDIR) is not.
1759 # To support the latter case, we have to write
1760 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1761 # so the `.' trick is pointless.
1762 mkdir_p='mkdir -p --'
1763 else
1764 # On NextStep and OpenStep, the `mkdir' command does not
1765 # recognize any option. It will interpret all options as
1766 # directories to create, and then abort because `.' already
1767 # exists.
1768 for d in ./-p ./--version;
1769 do
1770 test -d $d && rmdir $d
1771 done
1772 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1773 if test -f "$ac_aux_dir/mkinstalldirs"; then
1774 mkdir_p='$(mkinstalldirs)'
1775 else
1776 mkdir_p='$(install_sh) -d'
1777 fi
1778 fi
1779
1780 for ac_prog in gawk mawk nawk awk
1781 do
1782 # Extract the first word of "$ac_prog", so it can be a program name with args.
1783 set dummy $ac_prog; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_AWK+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$AWK"; then
1790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_AWK="$ac_prog"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1802 fi
1803 done
1804 done
1805
1806 fi
1807 fi
1808 AWK=$ac_cv_prog_AWK
1809 if test -n "$AWK"; then
1810 echo "$as_me:$LINENO: result: $AWK" >&5
1811 echo "${ECHO_T}$AWK" >&6
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 test -n "$AWK" && break
1818 done
1819
1820 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1821 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1823 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826 cat >conftest.make <<\_ACEOF
1827 all:
1828 @echo 'ac_maketemp="$(MAKE)"'
1829 _ACEOF
1830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1831 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1832 if test -n "$ac_maketemp"; then
1833 eval ac_cv_prog_make_${ac_make}_set=yes
1834 else
1835 eval ac_cv_prog_make_${ac_make}_set=no
1836 fi
1837 rm -f conftest.make
1838 fi
1839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1840 echo "$as_me:$LINENO: result: yes" >&5
1841 echo "${ECHO_T}yes" >&6
1842 SET_MAKE=
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 SET_MAKE="MAKE=${MAKE-make}"
1847 fi
1848
1849 rm -rf .tst 2>/dev/null
1850 mkdir .tst 2>/dev/null
1851 if test -d .tst; then
1852 am__leading_dot=.
1853 else
1854 am__leading_dot=_
1855 fi
1856 rmdir .tst 2>/dev/null
1857
1858 # test to see if srcdir already configured
1859 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1860 test -f $srcdir/config.status; then
1861 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1862 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865
1866 # test whether we have cygpath
1867 if test -z "$CYGPATH_W"; then
1868 if (cygpath --version) >/dev/null 2>/dev/null; then
1869 CYGPATH_W='cygpath -w'
1870 else
1871 CYGPATH_W=echo
1872 fi
1873 fi
1874
1875
1876 # Define the identity of the package.
1877 PACKAGE='libssp'
1878 VERSION='1.0'
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE "$PACKAGE"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define VERSION "$VERSION"
1888 _ACEOF
1889
1890 # Some tools Automake needs.
1891
1892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1893
1894
1895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1896
1897
1898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1899
1900
1901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1902
1903
1904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1905
1906 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1907
1908 # Installed binaries are usually stripped using `strip' when the user
1909 # run `make install-strip'. However `strip' might not be the right
1910 # tool to use in cross-compilation environments, therefore Automake
1911 # will honor the `STRIP' environment variable to overrule this program.
1912 if test "$cross_compiling" != no; then
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}strip; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_STRIP+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$STRIP"; then
1922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 STRIP=$ac_cv_prog_STRIP
1941 if test -n "$STRIP"; then
1942 echo "$as_me:$LINENO: result: $STRIP" >&5
1943 echo "${ECHO_T}$STRIP" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$ac_cv_prog_STRIP"; then
1951 ac_ct_STRIP=$STRIP
1952 # Extract the first word of "strip", so it can be a program name with args.
1953 set dummy strip; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$ac_ct_STRIP"; then
1960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_ac_ct_STRIP="strip"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973 done
1974 done
1975
1976 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1977 fi
1978 fi
1979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1980 if test -n "$ac_ct_STRIP"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1982 echo "${ECHO_T}$ac_ct_STRIP" >&6
1983 else
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 STRIP=$ac_ct_STRIP
1989 else
1990 STRIP="$ac_cv_prog_STRIP"
1991 fi
1992
1993 fi
1994 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1995
1996 # We need awk for the "check" target. The system "awk" is bad on
1997 # some platforms.
1998 # Always define AMTAR for backward compatibility.
1999
2000 AMTAR=${AMTAR-"${am_missing_run}tar"}
2001
2002 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2003
2004
2005
2006
2007
2008
2009 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2010 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2011 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2012 if test "${enable_version_specific_runtime_libs+set}" = set; then
2013 enableval="$enable_version_specific_runtime_libs"
2014 case "$enableval" in
2015 yes) version_specific_libs=yes ;;
2016 no) version_specific_libs=no ;;
2017 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2018 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2019 { (exit 1); exit 1; }; };;
2020 esac
2021 else
2022 version_specific_libs=no
2023 fi;
2024 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2025 echo "${ECHO_T}$version_specific_libs" >&6
2026
2027 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2028 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2029 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2030 if test "${enable_maintainer_mode+set}" = set; then
2031 enableval="$enable_maintainer_mode"
2032 USE_MAINTAINER_MODE=$enableval
2033 else
2034 USE_MAINTAINER_MODE=no
2035 fi;
2036 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2037 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2038
2039
2040 if test $USE_MAINTAINER_MODE = yes; then
2041 MAINTAINER_MODE_TRUE=
2042 MAINTAINER_MODE_FALSE='#'
2043 else
2044 MAINTAINER_MODE_TRUE='#'
2045 MAINTAINER_MODE_FALSE=
2046 fi
2047
2048 MAINT=$MAINTAINER_MODE_TRUE
2049
2050
2051
2052
2053
2054 # Default to --enable-multilib
2055 # Check whether --enable-multilib or --disable-multilib was given.
2056 if test "${enable_multilib+set}" = set; then
2057 enableval="$enable_multilib"
2058 case "$enableval" in
2059 yes) multilib=yes ;;
2060 no) multilib=no ;;
2061 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2062 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2063 { (exit 1); exit 1; }; } ;;
2064 esac
2065 else
2066 multilib=yes
2067 fi;
2068
2069 # We may get other options which we leave undocumented:
2070 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2071 # See config-ml.in if you want the gory details.
2072
2073 if test "$srcdir" = "."; then
2074 if test "$with_target_subdir" != "."; then
2075 multi_basedir="$srcdir/$with_multisrctop../.."
2076 else
2077 multi_basedir="$srcdir/$with_multisrctop.."
2078 fi
2079 else
2080 multi_basedir="$srcdir/.."
2081 fi
2082
2083
2084 # Even if the default multilib is not a cross compilation,
2085 # it may be that some of the other multilibs are.
2086 if test $cross_compiling = no && test $multilib = yes \
2087 && test "x${with_multisubdir}" != x ; then
2088 cross_compiling=maybe
2089 fi
2090
2091 ac_config_commands="$ac_config_commands default-1"
2092
2093
2094 target_alias=${target_alias-$host_alias}
2095
2096
2097 ac_config_headers="$ac_config_headers config.h"
2098
2099
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2107 # We must force CC to /not/ be precious variables; otherwise
2108 # the wrong, non-multilib-adjusted value will be used in multilibs.
2109 # As a side effect, we have to subst CFLAGS ourselves.
2110
2111
2112
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 if test -n "$ac_tool_prefix"; then
2119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2121 echo "$as_me:$LINENO: checking for $ac_word" >&5
2122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123 if test "${ac_cv_prog_CC+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 if test -n "$CC"; then
2127 ac_cv_prog_CC="$CC" # Let the user override the test.
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_exec_ext in '' $ac_executable_extensions; do
2135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 break 2
2139 fi
2140 done
2141 done
2142
2143 fi
2144 fi
2145 CC=$ac_cv_prog_CC
2146 if test -n "$CC"; then
2147 echo "$as_me:$LINENO: result: $CC" >&5
2148 echo "${ECHO_T}$CC" >&6
2149 else
2150 echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6
2152 fi
2153
2154 fi
2155 if test -z "$ac_cv_prog_CC"; then
2156 ac_ct_CC=$CC
2157 # Extract the first word of "gcc", so it can be a program name with args.
2158 set dummy gcc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$ac_ct_CC"; then
2165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_ac_ct_CC="gcc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2177 fi
2178 done
2179 done
2180
2181 fi
2182 fi
2183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184 if test -n "$ac_ct_CC"; then
2185 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186 echo "${ECHO_T}$ac_ct_CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2190 fi
2191
2192 CC=$ac_ct_CC
2193 else
2194 CC="$ac_cv_prog_CC"
2195 fi
2196
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_CC="${ac_tool_prefix}cc"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2219 fi
2220 done
2221 done
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2229 else
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2232 fi
2233
2234 fi
2235 if test -z "$ac_cv_prog_CC"; then
2236 ac_ct_CC=$CC
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$ac_ct_CC"; then
2245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254 ac_cv_prog_ac_ct_CC="cc"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2257 fi
2258 done
2259 done
2260
2261 fi
2262 fi
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6
2267 else
2268 echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2270 fi
2271
2272 CC=$ac_ct_CC
2273 else
2274 CC="$ac_cv_prog_CC"
2275 fi
2276
2277 fi
2278 if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283 if test "${ac_cv_prog_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 ac_prog_rejected=no
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298 ac_prog_rejected=yes
2299 continue
2300 fi
2301 ac_cv_prog_CC="cc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305 done
2306 done
2307
2308 if test $ac_prog_rejected = yes; then
2309 # We found a bogon in the path, so make sure we never use it.
2310 set dummy $ac_cv_prog_CC
2311 shift
2312 if test $# != 0; then
2313 # We chose a different compiler from the bogus one.
2314 # However, it has the same basename, so the bogon will be chosen
2315 # first if we set CC to just the basename; use the full file name.
2316 shift
2317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2318 fi
2319 fi
2320 fi
2321 fi
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324 echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6
2326 else
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331 fi
2332 if test -z "$CC"; then
2333 if test -n "$ac_tool_prefix"; then
2334 for ac_prog in cl
2335 do
2336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2356 fi
2357 done
2358 done
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371 test -n "$CC" && break
2372 done
2373 fi
2374 if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl
2377 do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399 done
2400 done
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2411 fi
2412
2413 test -n "$ac_ct_CC" && break
2414 done
2415
2416 CC=$ac_ct_CC
2417 fi
2418
2419 fi
2420
2421
2422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: no acceptable C compiler found in \$PATH
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO:" \
2430 "checking for C compiler version" >&5
2431 ac_compiler=`set X $ac_compile; echo $2`
2432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2433 (eval $ac_compiler --version </dev/null >&5) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2438 (eval $ac_compiler -v </dev/null >&5) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2443 (eval $ac_compiler -V </dev/null >&5) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h. */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2454
2455 int
2456 main ()
2457 {
2458
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 # FIXME: Cleanup?
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465 (eval $ac_link) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 gcc_no_link=no
2470 else
2471 gcc_no_link=yes
2472 fi
2473
2474 if test x$gcc_no_link = xyes; then
2475 # Setting cross_compile will disable run tests; it will
2476 # also disable AC_CHECK_FILE but that's generally
2477 # correct if we can't link.
2478 cross_compiling=yes
2479 EXEEXT=
2480 else
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487
2488 int
2489 main ()
2490 {
2491
2492 ;
2493 return 0;
2494 }
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2505 (eval $ac_link_default) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # Find the output, starting from the most likely. This scheme is
2510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2511 # resort.
2512
2513 # Be careful to initialize this variable, since it used to be cached.
2514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2515 ac_cv_exeext=
2516 # b.out is created by i960 compilers.
2517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2518 do
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2522 ;;
2523 conftest.$ac_ext )
2524 # This is the source file.
2525 ;;
2526 [ab].out )
2527 # We found the default executable, but exeext='' is most
2528 # certainly right.
2529 break;;
2530 *.* )
2531 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 # FIXME: I believe we export ac_cv_exeext for Libtool,
2533 # but it would be cool to find out if it's true. Does anybody
2534 # maintain Libtool? --akim.
2535 export ac_cv_exeext
2536 break;;
2537 * )
2538 break;;
2539 esac
2540 done
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&2;}
2549 { (exit 77); exit 77; }; }
2550 fi
2551
2552 ac_exeext=$ac_cv_exeext
2553 echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6
2555
2556 # Check the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563 if { ac_try='./$ac_file'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 cross_compiling=no
2570 else
2571 if test "$cross_compiling" = maybe; then
2572 cross_compiling=yes
2573 else
2574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2581 fi
2582 fi
2583 fi
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2586
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run. If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2595
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608 test -f "$ac_file" || continue
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612 export ac_cv_exeext
2613 break;;
2614 * ) break;;
2615 esac
2616 done
2617 else
2618 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&2;}
2622 { (exit 1); exit 1; }; }
2623 fi
2624
2625 rm -f conftest$ac_cv_exeext
2626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2627 echo "${ECHO_T}$ac_cv_exeext" >&6
2628
2629 rm -f conftest.$ac_ext
2630 EXEEXT=$ac_cv_exeext
2631 ac_exeext=$EXEEXT
2632 fi
2633 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2634 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2635 if test "${ac_cv_objext+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644
2645 int
2646 main ()
2647 {
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.o conftest.obj
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2660 case $ac_file in
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2662 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2663 break;;
2664 esac
2665 done
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2675 fi
2676
2677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2680 echo "${ECHO_T}$ac_cv_objext" >&6
2681 OBJEXT=$ac_cv_objext
2682 ac_objext=$OBJEXT
2683 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2684 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2685 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694
2695 int
2696 main ()
2697 {
2698 #ifndef __GNUC__
2699 choke me
2700 #endif
2701
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_compiler_gnu=yes
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_compiler_gnu=no
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2741 GCC=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CFLAGS=${CFLAGS+set}
2743 ac_save_CFLAGS=$CFLAGS
2744 CFLAGS="-g"
2745 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756
2757 int
2758 main ()
2759 {
2760
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_cv_prog_cc_g=yes
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_cv_prog_cc_g=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2798 if test "$ac_test_CFLAGS" = set; then
2799 CFLAGS=$ac_save_CFLAGS
2800 elif test $ac_cv_prog_cc_g = yes; then
2801 if test "$GCC" = yes; then
2802 CFLAGS="-g -O2"
2803 else
2804 CFLAGS="-g"
2805 fi
2806 else
2807 if test "$GCC" = yes; then
2808 CFLAGS="-O2"
2809 else
2810 CFLAGS=
2811 fi
2812 fi
2813 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2814 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2815 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 ac_cv_prog_cc_stdc=no
2819 ac_save_CC=$CC
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 #include <stdarg.h>
2827 #include <stdio.h>
2828 #include <sys/types.h>
2829 #include <sys/stat.h>
2830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2831 struct buf { int x; };
2832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2833 static char *e (p, i)
2834 char **p;
2835 int i;
2836 {
2837 return p[i];
2838 }
2839 static char *f (char * (*g) (char **, int), char **p, ...)
2840 {
2841 char *s;
2842 va_list v;
2843 va_start (v,p);
2844 s = g (p, va_arg (v,int));
2845 va_end (v);
2846 return s;
2847 }
2848
2849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2850 function prototypes and stuff, but not '\xHH' hex character constants.
2851 These don't provoke an error unfortunately, instead are silently treated
2852 as 'x'. The following induces an error, until -std1 is added to get
2853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2854 array size at least. It's necessary to write '\x00'==0 to get something
2855 that's true only with -std1. */
2856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2857
2858 int test (int i, double x);
2859 struct s1 {int (*f) (int a);};
2860 struct s2 {int (*f) (double a);};
2861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2862 int argc;
2863 char **argv;
2864 int
2865 main ()
2866 {
2867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2868 ;
2869 return 0;
2870 }
2871 _ACEOF
2872 # Don't try gcc -ansi; that turns off useful extensions and
2873 # breaks some systems' header files.
2874 # AIX -qlanglvl=ansi
2875 # Ultrix and OSF/1 -std1
2876 # HP-UX 10.20 and later -Ae
2877 # HP-UX older versions -Aa -D_HPUX_SOURCE
2878 # SVR4 -Xc -D__EXTENSIONS__
2879 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2880 do
2881 CC="$ac_save_CC $ac_arg"
2882 rm -f conftest.$ac_objext
2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2884 (eval $ac_compile) 2>conftest.er1
2885 ac_status=$?
2886 grep -v '^ *+' conftest.er1 >conftest.err
2887 rm -f conftest.er1
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } &&
2891 { ac_try='test -z "$ac_c_werror_flag"
2892 || test ! -s conftest.err'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 ac_cv_prog_cc_stdc=$ac_arg
2905 break
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 fi
2911 rm -f conftest.err conftest.$ac_objext
2912 done
2913 rm -f conftest.$ac_ext conftest.$ac_objext
2914 CC=$ac_save_CC
2915
2916 fi
2917
2918 case "x$ac_cv_prog_cc_stdc" in
2919 x|xno)
2920 echo "$as_me:$LINENO: result: none needed" >&5
2921 echo "${ECHO_T}none needed" >&6 ;;
2922 *)
2923 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2924 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2925 CC="$CC $ac_cv_prog_cc_stdc" ;;
2926 esac
2927
2928 # Some people use a C++ compiler to compile C. Since we use `exit',
2929 # in C++ we need to declare it. In case someone uses the same compiler
2930 # for both compiling C and C++ we need to have the C++ compiler decide
2931 # the declaration of exit, since it's the most demanding environment.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #ifndef __cplusplus
2934 choke me
2935 #endif
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 for ac_declaration in \
2960 '' \
2961 'extern "C" void std::exit (int) throw (); using std::exit;' \
2962 'extern "C" void std::exit (int); using std::exit;' \
2963 'extern "C" void exit (int) throw ();' \
2964 'extern "C" void exit (int);' \
2965 'void exit (int);'
2966 do
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 $ac_declaration
2974 #include <stdlib.h>
2975 int
2976 main ()
2977 {
2978 exit (42);
2979 ;
2980 return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag"
2993 || test ! -s conftest.err'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 :
3006 else
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 continue
3011 fi
3012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_declaration
3020 int
3021 main ()
3022 {
3023 exit (42);
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 break
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 done
3058 rm -f conftest*
3059 if test -n "$ac_declaration"; then
3060 echo '#ifdef __cplusplus' >>confdefs.h
3061 echo $ac_declaration >>confdefs.h
3062 echo '#endif' >>confdefs.h
3063 fi
3064
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_ext=c
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 DEPDIR="${am__leading_dot}deps"
3077
3078 ac_config_commands="$ac_config_commands depfiles"
3079
3080
3081 am_make=${MAKE-make}
3082 cat > confinc << 'END'
3083 am__doit:
3084 @echo done
3085 .PHONY: am__doit
3086 END
3087 # If we don't find an include directive, just comment out the code.
3088 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3089 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3090 am__include="#"
3091 am__quote=
3092 _am_result=none
3093 # First try GNU make style include.
3094 echo "include confinc" > confmf
3095 # We grep out `Entering directory' and `Leaving directory'
3096 # messages which can occur if `w' ends up in MAKEFLAGS.
3097 # In particular we don't look at `^make:' because GNU make might
3098 # be invoked under some other name (usually "gmake"), in which
3099 # case it prints its new name instead of `make'.
3100 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3101 am__include=include
3102 am__quote=
3103 _am_result=GNU
3104 fi
3105 # Now try BSD make style include.
3106 if test "$am__include" = "#"; then
3107 echo '.include "confinc"' > confmf
3108 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3109 am__include=.include
3110 am__quote="\""
3111 _am_result=BSD
3112 fi
3113 fi
3114
3115
3116 echo "$as_me:$LINENO: result: $_am_result" >&5
3117 echo "${ECHO_T}$_am_result" >&6
3118 rm -f confinc confmf
3119
3120 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3121 if test "${enable_dependency_tracking+set}" = set; then
3122 enableval="$enable_dependency_tracking"
3123
3124 fi;
3125 if test "x$enable_dependency_tracking" != xno; then
3126 am_depcomp="$ac_aux_dir/depcomp"
3127 AMDEPBACKSLASH='\'
3128 fi
3129
3130
3131 if test "x$enable_dependency_tracking" != xno; then
3132 AMDEP_TRUE=
3133 AMDEP_FALSE='#'
3134 else
3135 AMDEP_TRUE='#'
3136 AMDEP_FALSE=
3137 fi
3138
3139
3140
3141
3142 depcc="$CC" am_compiler_list=
3143
3144 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3146 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3150 # We make a subdir and do the tests there. Otherwise we can end up
3151 # making bogus files that we don't know about and never remove. For
3152 # instance it was reported that on HP-UX the gcc test will end up
3153 # making a dummy file named `D' -- because `-MD' means `put the output
3154 # in D'.
3155 mkdir conftest.dir
3156 # Copy depcomp to subdir because otherwise we won't find it if we're
3157 # using a relative directory.
3158 cp "$am_depcomp" conftest.dir
3159 cd conftest.dir
3160 # We will build objects and dependencies in a subdirectory because
3161 # it helps to detect inapplicable dependency modes. For instance
3162 # both Tru64's cc and ICC support -MD to output dependencies as a
3163 # side effect of compilation, but ICC will put the dependencies in
3164 # the current directory while Tru64 will put them in the object
3165 # directory.
3166 mkdir sub
3167
3168 am_cv_CC_dependencies_compiler_type=none
3169 if test "$am_compiler_list" = ""; then
3170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3171 fi
3172 for depmode in $am_compiler_list; do
3173 # Setup a source with many dependencies, because some compilers
3174 # like to wrap large dependency lists on column 80 (with \), and
3175 # we should not choose a depcomp mode which is confused by this.
3176 #
3177 # We need to recreate these files for each test, as the compiler may
3178 # overwrite some of them when testing with obscure command lines.
3179 # This happens at least with the AIX C compiler.
3180 : > sub/conftest.c
3181 for i in 1 2 3 4 5 6; do
3182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3183 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3184 # Solaris 8's {/usr,}/bin/sh.
3185 touch sub/conftst$i.h
3186 done
3187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3188
3189 case $depmode in
3190 nosideeffect)
3191 # after this tag, mechanisms are not by side-effect, so they'll
3192 # only be used when explicitly requested
3193 if test "x$enable_dependency_tracking" = xyes; then
3194 continue
3195 else
3196 break
3197 fi
3198 ;;
3199 none) break ;;
3200 esac
3201 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3202 # mode. It turns out that the SunPro C++ compiler does not properly
3203 # handle `-M -o', and we need to detect this.
3204 if depmode=$depmode \
3205 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3207 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3208 >/dev/null 2>conftest.err &&
3209 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3210 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3211 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3212 # icc doesn't choke on unknown options, it will just issue warnings
3213 # or remarks (even with -Werror). So we grep stderr for any message
3214 # that says an option was ignored or not supported.
3215 # When given -MP, icc 7.0 and 7.1 complain thusly:
3216 # icc: Command line warning: ignoring option '-M'; no argument required
3217 # The diagnosis changed in icc 8.0:
3218 # icc: Command line remark: option '-MP' not supported
3219 if (grep 'ignoring option' conftest.err ||
3220 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3221 am_cv_CC_dependencies_compiler_type=$depmode
3222 break
3223 fi
3224 fi
3225 done
3226
3227 cd ..
3228 rm -rf conftest.dir
3229 else
3230 am_cv_CC_dependencies_compiler_type=none
3231 fi
3232
3233 fi
3234 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3235 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3236 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3237
3238
3239
3240 if
3241 test "x$enable_dependency_tracking" != xno \
3242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3243 am__fastdepCC_TRUE=
3244 am__fastdepCC_FALSE='#'
3245 else
3246 am__fastdepCC_TRUE='#'
3247 am__fastdepCC_FALSE=
3248 fi
3249
3250
3251
3252
3253
3254
3255 if test "x$GCC" != "xyes"; then
3256 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3257 echo "$as_me: error: libssp must be built with GCC" >&2;}
3258 { (exit 1); exit 1; }; }
3259 fi
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3266 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3267 # On Suns, sometimes $CPP names a directory.
3268 if test -n "$CPP" && test -d "$CPP"; then
3269 CPP=
3270 fi
3271 if test -z "$CPP"; then
3272 if test "${ac_cv_prog_CPP+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 # Double quotes because CPP needs to be expanded
3276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3277 do
3278 ac_preproc_ok=false
3279 for ac_c_preproc_warn_flag in '' yes
3280 do
3281 # Use a header file that comes with gcc, so configuring glibc
3282 # with a fresh cross-compiler works.
3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3284 # <limits.h> exists even on freestanding compilers.
3285 # On the NeXT, cc -E runs the code through the compiler's parser,
3286 # not just through cpp. "Syntax error" is here to catch this case.
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #ifdef __STDC__
3294 # include <limits.h>
3295 #else
3296 # include <assert.h>
3297 #endif
3298 Syntax error
3299 _ACEOF
3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
3310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 else
3312 ac_cpp_err=
3313 fi
3314 else
3315 ac_cpp_err=yes
3316 fi
3317 if test -z "$ac_cpp_err"; then
3318 :
3319 else
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 # Broken: fails on valid input.
3324 continue
3325 fi
3326 rm -f conftest.err conftest.$ac_ext
3327
3328 # OK, works on sane cases. Now check whether non-existent headers
3329 # can be detected and how.
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 #include <ac_nonexistent.h>
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349 else
3350 ac_cpp_err=
3351 fi
3352 else
3353 ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356 # Broken: success on invalid input.
3357 continue
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 # Passes both tests.
3363 ac_preproc_ok=:
3364 break
3365 fi
3366 rm -f conftest.err conftest.$ac_ext
3367
3368 done
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.$ac_ext
3371 if $ac_preproc_ok; then
3372 break
3373 fi
3374
3375 done
3376 ac_cv_prog_CPP=$CPP
3377
3378 fi
3379 CPP=$ac_cv_prog_CPP
3380 else
3381 ac_cv_prog_CPP=$CPP
3382 fi
3383 echo "$as_me:$LINENO: result: $CPP" >&5
3384 echo "${ECHO_T}$CPP" >&6
3385 ac_preproc_ok=false
3386 for ac_c_preproc_warn_flag in '' yes
3387 do
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391 # <limits.h> exists even on freestanding compilers.
3392 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 #ifdef __STDC__
3401 # include <limits.h>
3402 #else
3403 # include <assert.h>
3404 #endif
3405 Syntax error
3406 _ACEOF
3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 else
3419 ac_cpp_err=
3420 fi
3421 else
3422 ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425 :
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Broken: fails on valid input.
3431 continue
3432 fi
3433 rm -f conftest.err conftest.$ac_ext
3434
3435 # OK, works on sane cases. Now check whether non-existent headers
3436 # can be detected and how.
3437 cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <ac_nonexistent.h>
3444 _ACEOF
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3458 fi
3459 else
3460 ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463 # Broken: success on invalid input.
3464 continue
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Passes both tests.
3470 ac_preproc_ok=:
3471 break
3472 fi
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479 :
3480 else
3481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3496 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3497 save_CFLAGS="$CFLAGS"
3498 CFLAGS="$CFLAGS -fstack-protector -Werror"
3499
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 void __attribute__((noinline)) bar (char *x)
3508 {
3509 __builtin_memset (x, 0, 64);
3510 }
3511 int
3512 main ()
3513 {
3514 char buf[64]; bar (buf);
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_c_werror_flag"
3529 || test ! -s conftest.err'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542 echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 CFLAGS="$save_CFLAGS"
3552
3553 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3554 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561
3562 void __attribute__((visibility ("hidden"))) bar (void) {}
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ssp_hidden=yes
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 ssp_hidden=no
3599 fi
3600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3602 echo "${ECHO_T}$ssp_hidden" >&6
3603 if test x$ssp_hidden = xyes; then
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define HAVE_HIDDEN_VISIBILITY 1
3607 _ACEOF
3608
3609 fi
3610
3611 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3612 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3613 cat > conftest.map <<EOF
3614 FOO_1.0 {
3615 global: *foo*; bar; local: *;
3616 };
3617 EOF
3618 save_LDFLAGS="$LDFLAGS"
3619 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3620 if test x$gcc_no_link = xyes; then
3621 # If we cannot link, we cannot build shared libraries, so do not use
3622 # symbol versioning.
3623 ssp_use_symver=no
3624 else
3625 if test x$gcc_no_link = xyes; then
3626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3628 { (exit 1); exit 1; }; }
3629 fi
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 int foo;
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest$ac_exeext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ssp_use_symver=yes
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 ssp_use_symver=no
3673 fi
3674 rm -f conftest.err conftest.$ac_objext \
3675 conftest$ac_exeext conftest.$ac_ext
3676 fi
3677 LDFLAGS="$save_LDFLAGS"
3678 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3679 echo "${ECHO_T}$ssp_use_symver" >&6
3680
3681
3682 if test "x$ssp_use_symver" = xyes; then
3683 LIBSSP_USE_SYMVER_TRUE=
3684 LIBSSP_USE_SYMVER_FALSE='#'
3685 else
3686 LIBSSP_USE_SYMVER_TRUE='#'
3687 LIBSSP_USE_SYMVER_FALSE=
3688 fi
3689
3690
3691
3692 echo "$as_me:$LINENO: checking for egrep" >&5
3693 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3694 if test "${ac_cv_prog_egrep+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3698 then ac_cv_prog_egrep='grep -E'
3699 else ac_cv_prog_egrep='egrep'
3700 fi
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3703 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3704 EGREP=$ac_cv_prog_egrep
3705
3706
3707 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3708 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3709 if test "${ac_cv_header_stdc+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 #include <stdlib.h>
3719 #include <stdarg.h>
3720 #include <string.h>
3721 #include <float.h>
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_cv_header_stdc=yes
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_cv_header_stdc=no
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761
3762 if test $ac_cv_header_stdc = yes; then
3763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <string.h>
3771
3772 _ACEOF
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774 $EGREP "memchr" >/dev/null 2>&1; then
3775 :
3776 else
3777 ac_cv_header_stdc=no
3778 fi
3779 rm -f conftest*
3780
3781 fi
3782
3783 if test $ac_cv_header_stdc = yes; then
3784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h. */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #include <stdlib.h>
3792
3793 _ACEOF
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 $EGREP "free" >/dev/null 2>&1; then
3796 :
3797 else
3798 ac_cv_header_stdc=no
3799 fi
3800 rm -f conftest*
3801
3802 fi
3803
3804 if test $ac_cv_header_stdc = yes; then
3805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3806 if test "$cross_compiling" = yes; then
3807 :
3808 else
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #include <ctype.h>
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819 #else
3820 # define ISLOWER(c) \
3821 (('a' <= (c) && (c) <= 'i') \
3822 || ('j' <= (c) && (c) <= 'r') \
3823 || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #endif
3826
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828 int
3829 main ()
3830 {
3831 int i;
3832 for (i = 0; i < 256; i++)
3833 if (XOR (islower (i), ISLOWER (i))
3834 || toupper (i) != TOUPPER (i))
3835 exit(2);
3836 exit (0);
3837 }
3838 _ACEOF
3839 rm -f conftest$ac_exeext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841 (eval $ac_link) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 :
3851 else
3852 echo "$as_me: program exited with status $ac_status" >&5
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ( exit $ac_status )
3857 ac_cv_header_stdc=no
3858 fi
3859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3860 fi
3861 fi
3862 fi
3863 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3864 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3865 if test $ac_cv_header_stdc = yes; then
3866
3867 cat >>confdefs.h <<\_ACEOF
3868 #define STDC_HEADERS 1
3869 _ACEOF
3870
3871 fi
3872
3873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884 inttypes.h stdint.h unistd.h
3885 do
3886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899
3900 #include <$ac_header>
3901 _ACEOF
3902 rm -f conftest.$ac_objext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_c_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 eval "$as_ac_Header=yes"
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 eval "$as_ac_Header=no"
3930 fi
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936 cat >>confdefs.h <<_ACEOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3938 _ACEOF
3939
3940 fi
3941
3942 done
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3954 do
3955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3957 echo "$as_me:$LINENO: checking for $ac_header" >&5
3958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 fi
3962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3964 else
3965 # Is the header compilable?
3966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3975 #include <$ac_header>
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ac_header_compiler=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4008 echo "${ECHO_T}$ac_header_compiler" >&6
4009
4010 # Is the header present?
4011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 #include <$ac_header>
4020 _ACEOF
4021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } >/dev/null; then
4029 if test -s conftest.err; then
4030 ac_cpp_err=$ac_c_preproc_warn_flag
4031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4032 else
4033 ac_cpp_err=
4034 fi
4035 else
4036 ac_cpp_err=yes
4037 fi
4038 if test -z "$ac_cpp_err"; then
4039 ac_header_preproc=yes
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 ac_header_preproc=no
4045 fi
4046 rm -f conftest.err conftest.$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4048 echo "${ECHO_T}$ac_header_preproc" >&6
4049
4050 # So? What about this header?
4051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4052 yes:no: )
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4057 ac_header_preproc=yes
4058 ;;
4059 no:yes:* )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4072 (
4073 cat <<\_ASBOX
4074 ## --------------------------------- ##
4075 ## Report this to the libssp lists. ##
4076 ## --------------------------------- ##
4077 _ASBOX
4078 ) |
4079 sed "s/^/$as_me: WARNING: /" >&2
4080 ;;
4081 esac
4082 echo "$as_me:$LINENO: checking for $ac_header" >&5
4083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 eval "$as_ac_Header=\$ac_header_preproc"
4088 fi
4089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4091
4092 fi
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094 cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 _ACEOF
4097
4098 fi
4099
4100 done
4101
4102
4103 if test x$gcc_no_link = xyes; then
4104 # Presume the ISO C functions are available; add target-specific
4105 # configuration here if required.
4106 cat >>confdefs.h <<\_ACEOF
4107 #define HAVE_STRNCPY 1
4108 _ACEOF
4109
4110 cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_STRNCAT 1
4112 _ACEOF
4113
4114 else
4115
4116
4117
4118 for ac_func in mempcpy strncpy strncat
4119 do
4120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4121 echo "$as_me:$LINENO: checking for $ac_func" >&5
4122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4123 if eval "test \"\${$as_ac_var+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 if test x$gcc_no_link = xyes; then
4127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4129 { (exit 1); exit 1; }; }
4130 fi
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4139 #define $ac_func innocuous_$ac_func
4140
4141 /* System header to define __stub macros and hopefully few prototypes,
4142 which can conflict with char $ac_func (); below.
4143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 <limits.h> exists even on freestanding compilers. */
4145
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151
4152 #undef $ac_func
4153
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 #ifdef __cplusplus
4156 extern "C"
4157 {
4158 #endif
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4161 char $ac_func ();
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4166 choke me
4167 #else
4168 char (*f) () = $ac_func;
4169 #endif
4170 #ifdef __cplusplus
4171 }
4172 #endif
4173
4174 int
4175 main ()
4176 {
4177 return f != $ac_func;
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_c_werror_flag"
4192 || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 eval "$as_ac_var=yes"
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 eval "$as_ac_var=no"
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4213 fi
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216 if test `eval echo '${'$as_ac_var'}'` = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4219 _ACEOF
4220
4221 fi
4222 done
4223
4224 fi
4225
4226 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4227 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4228 if test "$cross_compiling" = yes; then
4229 ssp_have_usable_vsnprintf=undef
4230 else
4231 cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237
4238 #include <stdarg.h>
4239 #include <string.h>
4240 #include <stdio.h>
4241 int foo (char *buf, size_t n, const char *fmt, ...)
4242 {
4243 va_list ap;
4244 int ret;
4245 va_start (ap, fmt);
4246 ret = vsnprintf (buf, n, fmt, ap);
4247 va_end (ap);
4248 return ret;
4249 }
4250 int
4251 main ()
4252 {
4253 char buf[8]; memset (buf, 'A', sizeof (buf));
4254 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4255 return 1;
4256 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 rm -f conftest$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ssp_have_usable_vsnprintf=define
4273 else
4274 echo "$as_me: program exited with status $ac_status" >&5
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ( exit $ac_status )
4279 ssp_have_usable_vsnprintf=undef
4280 fi
4281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4282 fi
4283 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4284 echo "$as_me:$LINENO: result: yes" >&5
4285 echo "${ECHO_T}yes" >&6
4286
4287 cat >>confdefs.h <<\_ACEOF
4288 #define HAVE_USABLE_VSNPRINTF 1
4289 _ACEOF
4290
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297
4298
4299 macro_version='2.1a'
4300 macro_revision='1.2435'
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 ltmain="$ac_aux_dir/ltmain.sh"
4314
4315 # Set options
4316
4317 enable_dlopen=no
4318
4319
4320 enable_win32_dll=no
4321
4322
4323 # Check whether --enable-shared or --disable-shared was given.
4324 if test "${enable_shared+set}" = set; then
4325 enableval="$enable_shared"
4326 p=${PACKAGE-default}
4327 case $enableval in
4328 yes) enable_shared=yes ;;
4329 no) enable_shared=no ;;
4330 *)
4331 enable_shared=no
4332 # Look at the argument we got. We use all the common list separators.
4333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4334 for pkg in $enableval; do
4335 IFS="$lt_save_ifs"
4336 if test "X$pkg" = "X$p"; then
4337 enable_shared=yes
4338 fi
4339 done
4340 IFS="$lt_save_ifs"
4341 ;;
4342 esac
4343 else
4344 enable_shared=yes
4345 fi;
4346
4347
4348
4349
4350
4351
4352
4353
4354 # Check whether --enable-static or --disable-static was given.
4355 if test "${enable_static+set}" = set; then
4356 enableval="$enable_static"
4357 p=${PACKAGE-default}
4358 case $enableval in
4359 yes) enable_static=yes ;;
4360 no) enable_static=no ;;
4361 *)
4362 enable_static=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365 for pkg in $enableval; do
4366 IFS="$lt_save_ifs"
4367 if test "X$pkg" = "X$p"; then
4368 enable_static=yes
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 ;;
4373 esac
4374 else
4375 enable_static=yes
4376 fi;
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386 # Check whether --with-pic or --without-pic was given.
4387 if test "${with_pic+set}" = set; then
4388 withval="$with_pic"
4389 pic_mode="$withval"
4390 else
4391 pic_mode=default
4392 fi;
4393
4394 test -z "$pic_mode" && pic_mode=default
4395
4396
4397
4398
4399
4400
4401
4402 # Check whether --enable-fast-install or --disable-fast-install was given.
4403 if test "${enable_fast_install+set}" = set; then
4404 enableval="$enable_fast_install"
4405 p=${PACKAGE-default}
4406 case $enableval in
4407 yes) enable_fast_install=yes ;;
4408 no) enable_fast_install=no ;;
4409 *)
4410 enable_fast_install=no
4411 # Look at the argument we got. We use all the common list separators.
4412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4413 for pkg in $enableval; do
4414 IFS="$lt_save_ifs"
4415 if test "X$pkg" = "X$p"; then
4416 enable_fast_install=yes
4417 fi
4418 done
4419 IFS="$lt_save_ifs"
4420 ;;
4421 esac
4422 else
4423 enable_fast_install=yes
4424 fi;
4425
4426
4427
4428
4429
4430
4431
4432
4433 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4434 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4435 if test "${lt_cv_path_SED+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 # Loop through the user's path and test for sed and gsed.
4439 # Then use that list of sed's as ones to test for truncation.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for lt_ac_prog in sed gsed; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4448 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4449 fi
4450 done
4451 done
4452 done
4453 IFS=$as_save_IFS
4454 lt_ac_max=0
4455 lt_ac_count=0
4456 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4457 # along with /bin/sed that truncates output.
4458 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4459 test ! -f $lt_ac_sed && continue
4460 cat /dev/null > conftest.in
4461 lt_ac_count=0
4462 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4463 # Check for GNU sed and select it if it is found.
4464 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4465 lt_cv_path_SED=$lt_ac_sed
4466 break
4467 fi
4468 while true; do
4469 cat conftest.in conftest.in >conftest.tmp
4470 mv conftest.tmp conftest.in
4471 cp conftest.in conftest.nl
4472 echo >>conftest.nl
4473 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4474 cmp -s conftest.out conftest.nl || break
4475 # 10000 chars as input seems more than enough
4476 test $lt_ac_count -gt 10 && break
4477 lt_ac_count=`expr $lt_ac_count + 1`
4478 if test $lt_ac_count -gt $lt_ac_max; then
4479 lt_ac_max=$lt_ac_count
4480 lt_cv_path_SED=$lt_ac_sed
4481 fi
4482 done
4483 done
4484
4485 fi
4486
4487 SED=$lt_cv_path_SED
4488
4489 echo "$as_me:$LINENO: result: $SED" >&5
4490 echo "${ECHO_T}$SED" >&6
4491
4492 test -z "$SED" && SED=sed
4493 Xsed="$SED -e 1s/^X//"
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 echo "$as_me:$LINENO: checking for fgrep" >&5
4506 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4507 if test "${ac_cv_prog_fgrep+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4511 then ac_cv_prog_fgrep='grep -F'
4512 else ac_cv_prog_fgrep='fgrep'
4513 fi
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4516 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4517 FGREP=$ac_cv_prog_fgrep
4518
4519
4520 test -z "$GREP" && GREP=grep
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4541 if test "${with_gnu_ld+set}" = set; then
4542 withval="$with_gnu_ld"
4543 test "$withval" = no || with_gnu_ld=yes
4544 else
4545 with_gnu_ld=no
4546 fi;
4547 ac_prog=ld
4548 if test "$GCC" = yes; then
4549 # Check if gcc -print-prog-name=ld gives a path.
4550 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4551 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4552 case $host in
4553 *-*-mingw*)
4554 # gcc leaves a trailing carriage return which upsets mingw
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4556 *)
4557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4558 esac
4559 case $ac_prog in
4560 # Accept absolute paths.
4561 [\\/]* | ?:[\\/]*)
4562 re_direlt='/[^/][^/]*/\.\./'
4563 # Canonicalize the pathname of ld
4564 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4565 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4566 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4567 done
4568 test -z "$LD" && LD="$ac_prog"
4569 ;;
4570 "")
4571 # If it fails, then pretend we aren't using GCC.
4572 ac_prog=ld
4573 ;;
4574 *)
4575 # If it is relative, then search for the first ld in PATH.
4576 with_gnu_ld=unknown
4577 ;;
4578 esac
4579 elif test "$with_gnu_ld" = yes; then
4580 echo "$as_me:$LINENO: checking for GNU ld" >&5
4581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4582 else
4583 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4585 fi
4586 if test "${lt_cv_path_LD+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 if test -z "$LD"; then
4590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4591 for ac_dir in $PATH; do
4592 IFS="$lt_save_ifs"
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4595 lt_cv_path_LD="$ac_dir/$ac_prog"
4596 # Check to see if the program is GNU ld. I'd rather use --version,
4597 # but apparently some variants of GNU ld only accept -v.
4598 # Break only if it was the GNU/non-GNU ld that we prefer.
4599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4600 *GNU* | *'with BFD'*)
4601 test "$with_gnu_ld" != no && break
4602 ;;
4603 *)
4604 test "$with_gnu_ld" != yes && break
4605 ;;
4606 esac
4607 fi
4608 done
4609 IFS="$lt_save_ifs"
4610 else
4611 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4612 fi
4613 fi
4614
4615 LD="$lt_cv_path_LD"
4616 if test -n "$LD"; then
4617 echo "$as_me:$LINENO: result: $LD" >&5
4618 echo "${ECHO_T}$LD" >&6
4619 else
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4622 fi
4623 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4624 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4625 { (exit 1); exit 1; }; }
4626 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4627 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4628 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4632 case `$LD -v 2>&1 </dev/null` in
4633 *GNU* | *'with BFD'*)
4634 lt_cv_prog_gnu_ld=yes
4635 ;;
4636 *)
4637 lt_cv_prog_gnu_ld=no
4638 ;;
4639 esac
4640 fi
4641 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4642 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4643 with_gnu_ld=$lt_cv_prog_gnu_ld
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4655 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4656 if test "${lt_cv_path_NM+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$NM"; then
4660 # Let the user override the test.
4661 lt_cv_path_NM="$NM"
4662 else
4663 lt_nm_to_check="${ac_tool_prefix}nm"
4664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4665 lt_nm_to_check="$lt_nm_to_check nm"
4666 fi
4667 for lt_tmp_nm in $lt_nm_to_check; do
4668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4670 IFS="$lt_save_ifs"
4671 test -z "$ac_dir" && ac_dir=.
4672 tmp_nm="$ac_dir/$lt_tmp_nm"
4673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4674 # Check to see if the nm accepts a BSD-compat flag.
4675 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4676 # nm: unknown option "B" ignored
4677 # Tru64's nm complains that /dev/null is an invalid object file
4678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4679 */dev/null* | *'Invalid file or object type'*)
4680 lt_cv_path_NM="$tmp_nm -B"
4681 break
4682 ;;
4683 *)
4684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685 */dev/null*)
4686 lt_cv_path_NM="$tmp_nm -p"
4687 break
4688 ;;
4689 *)
4690 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691 continue # so that we can try to find one that supports BSD flags
4692 ;;
4693 esac
4694 ;;
4695 esac
4696 fi
4697 done
4698 IFS="$lt_save_ifs"
4699 done
4700 : ${lt_cv_path_NM=no}
4701 fi
4702 fi
4703 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4704 echo "${ECHO_T}$lt_cv_path_NM" >&6
4705 if test "$lt_cv_path_NM" != "no"; then
4706 NM="$lt_cv_path_NM"
4707 else
4708 # Didn't find any BSD compatible name lister, look for dumpbin.
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4711 do
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 if test -n "$DUMPBIN"; then
4720 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735
4736 fi
4737 fi
4738 DUMPBIN=$ac_cv_prog_DUMPBIN
4739 if test -n "$DUMPBIN"; then
4740 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4741 echo "${ECHO_T}$DUMPBIN" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745 fi
4746
4747 test -n "$DUMPBIN" && break
4748 done
4749 fi
4750 if test -z "$DUMPBIN"; then
4751 ac_ct_DUMPBIN=$DUMPBIN
4752 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4753 do
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777
4778 fi
4779 fi
4780 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4781 if test -n "$ac_ct_DUMPBIN"; then
4782 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4783 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4784 else
4785 echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4787 fi
4788
4789 test -n "$ac_ct_DUMPBIN" && break
4790 done
4791 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4792
4793 DUMPBIN=$ac_ct_DUMPBIN
4794 fi
4795
4796
4797 if test "$DUMPBIN" != ":"; then
4798 NM="$DUMPBIN"
4799 fi
4800 fi
4801 test -z "$NM" && NM=nm
4802
4803
4804
4805
4806
4807
4808 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4809 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4810 if test "${lt_cv_nm_interface+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 lt_cv_nm_interface="BSD nm"
4814 echo "int some_variable = 0;" > conftest.$ac_ext
4815 (eval echo "\"\$as_me:4815: $ac_compile\"" >&5)
4816 (eval "$ac_compile" 2>conftest.err)
4817 cat conftest.err >&5
4818 (eval echo "\"\$as_me:4818: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4819 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4820 cat conftest.err >&5
4821 (eval echo "\"\$as_me:4821: output\"" >&5)
4822 cat conftest.out >&5
4823 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4824 lt_cv_nm_interface="MS dumpbin"
4825 fi
4826 rm -f conftest*
4827 fi
4828 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4829 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4830
4831 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4832 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4833 LN_S=$as_ln_s
4834 if test "$LN_S" = "ln -s"; then
4835 echo "$as_me:$LINENO: result: yes" >&5
4836 echo "${ECHO_T}yes" >&6
4837 else
4838 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4839 echo "${ECHO_T}no, using $LN_S" >&6
4840 fi
4841
4842 # find the maximum length of command line arguments
4843 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4844 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4845 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 i=0
4849 teststring="ABCD"
4850
4851 case $build_os in
4852 msdosdjgpp*)
4853 # On DJGPP, this test can blow up pretty badly due to problems in libc
4854 # (any single argument exceeding 2000 bytes causes a buffer overrun
4855 # during glob expansion). Even if it were fixed, the result of this
4856 # check would be larger than it should be.
4857 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4858 ;;
4859
4860 gnu*)
4861 # Under GNU Hurd, this test is not required because there is
4862 # no limit to the length of command line arguments.
4863 # Libtool will interpret -1 as no limit whatsoever
4864 lt_cv_sys_max_cmd_len=-1;
4865 ;;
4866
4867 cygwin* | mingw*)
4868 # On Win9x/ME, this test blows up -- it succeeds, but takes
4869 # about 5 minutes as the teststring grows exponentially.
4870 # Worse, since 9x/ME are not pre-emptively multitasking,
4871 # you end up with a "frozen" computer, even though with patience
4872 # the test eventually succeeds (with a max line length of 256k).
4873 # Instead, let's just punt: use the minimum linelength reported by
4874 # all of the supported platforms: 8192 (on NT/2K/XP).
4875 lt_cv_sys_max_cmd_len=8192;
4876 ;;
4877
4878 amigaos*)
4879 # On AmigaOS with pdksh, this test takes hours, literally.
4880 # So we just punt and use a minimum line length of 8192.
4881 lt_cv_sys_max_cmd_len=8192;
4882 ;;
4883
4884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4885 # This has been around since 386BSD, at least. Likely further.
4886 if test -x /sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4888 elif test -x /usr/sbin/sysctl; then
4889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4890 else
4891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4892 fi
4893 # And add a safety zone
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 ;;
4897
4898 interix*)
4899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4900 lt_cv_sys_max_cmd_len=196608
4901 ;;
4902
4903 osf*)
4904 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4905 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4906 # nice to cause kernel panics so lets avoid the loop below.
4907 # First set a reasonable default.
4908 lt_cv_sys_max_cmd_len=16384
4909 #
4910 if test -x /sbin/sysconfig; then
4911 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4912 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4913 esac
4914 fi
4915 ;;
4916 sco3.2v5*)
4917 lt_cv_sys_max_cmd_len=102400
4918 ;;
4919 sysv5* | sco5v6* | sysv4.2uw2*)
4920 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4921 if test -n "$kargmax"; then
4922 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4923 else
4924 lt_cv_sys_max_cmd_len=32768
4925 fi
4926 ;;
4927 *)
4928 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4929 if test -n $lt_cv_sys_max_cmd_len; then
4930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4932 else
4933 # Make teststring a little bigger before we do anything with it.
4934 # a 1K string should be a reasonable start.
4935 for i in 1 2 3 4 5 6 7 8 ; do
4936 teststring=$teststring$teststring
4937 done
4938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4939 # If test is not a shell built-in, we'll probably end up computing a
4940 # maximum length that is only half of the actual maximum length, but
4941 # we can't tell.
4942 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4943 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4944 test $i != 17 # 1/2 MB should be enough
4945 do
4946 i=`expr $i + 1`
4947 teststring=$teststring$teststring
4948 done
4949 # Only check the string length outside the loop.
4950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4951 teststring=
4952 # Add a significant safety factor because C++ compilers can tack on
4953 # massive amounts of additional arguments before passing them to the
4954 # linker. It appears as though 1/2 is a usable value.
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4956 fi
4957 ;;
4958 esac
4959
4960 fi
4961
4962 if test -n $lt_cv_sys_max_cmd_len ; then
4963 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4964 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4965 else
4966 echo "$as_me:$LINENO: result: none" >&5
4967 echo "${ECHO_T}none" >&6
4968 fi
4969 max_cmd_len=$lt_cv_sys_max_cmd_len
4970
4971
4972
4973
4974
4975
4976
4977 : ${CP="cp -f"}
4978 : ${MV="mv -f"}
4979 : ${RM="rm -f"}
4980
4981 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4982 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4983 # Try some XSI features
4984 xsi_shell=no
4985 ( _lt_dummy="a/b/c"
4986 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4987 = c,a/b,, ) >/dev/null 2>&1 \
4988 && xsi_shell=yes
4989 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4990 echo "${ECHO_T}$xsi_shell" >&6
4991
4992
4993 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4994 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4995 lt_shell_append=no
4996 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4997 >/dev/null 2>&1 \
4998 && lt_shell_append=yes
4999 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5000 echo "${ECHO_T}$lt_shell_append" >&6
5001
5002
5003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5004 lt_unset=unset
5005 else
5006 lt_unset=false
5007 fi
5008
5009
5010
5011
5012
5013 # test EBCDIC or ASCII
5014 case `echo X|tr X '\101'` in
5015 A) # ASCII based system
5016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5017 lt_SP2NL='tr \040 \012'
5018 lt_NL2SP='tr \015\012 \040\040'
5019 ;;
5020 *) # EBCDIC based system
5021 lt_SP2NL='tr \100 \n'
5022 lt_NL2SP='tr \r\n \100\100'
5023 ;;
5024 esac
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5035 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5036 if test "${lt_cv_ld_reload_flag+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 lt_cv_ld_reload_flag='-r'
5040 fi
5041 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5042 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5043 reload_flag=$lt_cv_ld_reload_flag
5044 case $reload_flag in
5045 "" | " "*) ;;
5046 *) reload_flag=" $reload_flag" ;;
5047 esac
5048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049 case $host_os in
5050 darwin*)
5051 if test "$GCC" = yes; then
5052 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5053 else
5054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5055 fi
5056 ;;
5057 esac
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5069 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5070 if test "${lt_cv_deplibs_check_method+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 lt_cv_file_magic_cmd='$MAGIC_CMD'
5074 lt_cv_file_magic_test_file=
5075 lt_cv_deplibs_check_method='unknown'
5076 # Need to set the preceding variable on all platforms that support
5077 # interlibrary dependencies.
5078 # 'none' -- dependencies not supported.
5079 # `unknown' -- same as none, but documents that we really don't know.
5080 # 'pass_all' -- all dependencies passed with no checks.
5081 # 'test_compile' -- check by making test program.
5082 # 'file_magic [[regex]]' -- check by looking for files in library path
5083 # which responds to the $file_magic_cmd with a given extended regex.
5084 # If you have `file' or equivalent on your system and you're not sure
5085 # whether `pass_all' will *always* work, you probably want this one.
5086
5087 case $host_os in
5088 aix4* | aix5*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 beos*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 bsdi[45]*)
5097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5098 lt_cv_file_magic_cmd='/usr/bin/file -L'
5099 lt_cv_file_magic_test_file=/shlib/libc.so
5100 ;;
5101
5102 cygwin*)
5103 # func_win32_libid is a shell function defined in ltmain.sh
5104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5105 lt_cv_file_magic_cmd='func_win32_libid'
5106 ;;
5107
5108 mingw* | pw32*)
5109 # Base MSYS/MinGW do not provide the 'file' command needed by
5110 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5111 # unless we find 'file', for example because we are cross-compiling.
5112 if ( file / ) >/dev/null 2>&1; then
5113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5114 lt_cv_file_magic_cmd='func_win32_libid'
5115 else
5116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5117 lt_cv_file_magic_cmd='$OBJDUMP -f'
5118 fi
5119 ;;
5120
5121 darwin* | rhapsody*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 freebsd* | dragonfly*)
5126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5127 case $host_cpu in
5128 i*86 )
5129 # Not sure whether the presence of OpenBSD here was a mistake.
5130 # Let's accept both of them until this is cleared up.
5131 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5132 lt_cv_file_magic_cmd=/usr/bin/file
5133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5134 ;;
5135 esac
5136 else
5137 lt_cv_deplibs_check_method=pass_all
5138 fi
5139 ;;
5140
5141 gnu*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145 hpux10.20* | hpux11*)
5146 lt_cv_file_magic_cmd=/usr/bin/file
5147 case $host_cpu in
5148 ia64*)
5149 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5150 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5151 ;;
5152 hppa*64*)
5153 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]'
5154 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5155 ;;
5156 *)
5157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5158 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5159 ;;
5160 esac
5161 ;;
5162
5163 interix[3-9]*)
5164 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5166 ;;
5167
5168 irix5* | irix6* | nonstopux*)
5169 case $LD in
5170 *-32|*"-32 ") libmagic=32-bit;;
5171 *-n32|*"-n32 ") libmagic=N32;;
5172 *-64|*"-64 ") libmagic=64-bit;;
5173 *) libmagic=never-match;;
5174 esac
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178 # This must be Linux ELF.
5179 linux* | k*bsd*-gnu)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182
5183 netbsd*)
5184 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5186 else
5187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5188 fi
5189 ;;
5190
5191 newos6*)
5192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5193 lt_cv_file_magic_cmd=/usr/bin/file
5194 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5195 ;;
5196
5197 *nto* | *qnx*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200
5201 openbsd*)
5202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5204 else
5205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5206 fi
5207 ;;
5208
5209 osf3* | osf4* | osf5*)
5210 lt_cv_deplibs_check_method=pass_all
5211 ;;
5212
5213 rdos*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 solaris*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 sysv4 | sysv4.3*)
5226 case $host_vendor in
5227 motorola)
5228 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]'
5229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5230 ;;
5231 ncr)
5232 lt_cv_deplibs_check_method=pass_all
5233 ;;
5234 sequent)
5235 lt_cv_file_magic_cmd='/bin/file'
5236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5237 ;;
5238 sni)
5239 lt_cv_file_magic_cmd='/bin/file'
5240 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5241 lt_cv_file_magic_test_file=/lib/libc.so
5242 ;;
5243 siemens)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 pc)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249 esac
5250 ;;
5251
5252 tpf*)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255 esac
5256
5257 fi
5258 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5259 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5260 file_magic_cmd=$lt_cv_file_magic_cmd
5261 deplibs_check_method=$lt_cv_deplibs_check_method
5262 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 if test -n "$ac_tool_prefix"; then
5276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5277 set dummy ${ac_tool_prefix}ar; ac_word=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_prog_AR+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 if test -n "$AR"; then
5284 ac_cv_prog_AR="$AR" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_AR="${ac_tool_prefix}ar"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299
5300 fi
5301 fi
5302 AR=$ac_cv_prog_AR
5303 if test -n "$AR"; then
5304 echo "$as_me:$LINENO: result: $AR" >&5
5305 echo "${ECHO_T}$AR" >&6
5306 else
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5309 fi
5310
5311 fi
5312 if test -z "$ac_cv_prog_AR"; then
5313 ac_ct_AR=$AR
5314 # Extract the first word of "ar", so it can be a program name with args.
5315 set dummy ar; ac_word=$2
5316 echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 if test -n "$ac_ct_AR"; then
5322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_ac_ct_AR="ar"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337
5338 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5339 fi
5340 fi
5341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5342 if test -n "$ac_ct_AR"; then
5343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5344 echo "${ECHO_T}$ac_ct_AR" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5348 fi
5349
5350 AR=$ac_ct_AR
5351 else
5352 AR="$ac_cv_prog_AR"
5353 fi
5354
5355 test -z "$AR" && AR=ar
5356 test -z "$AR_FLAGS" && AR_FLAGS=cru
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 if test -n "$ac_tool_prefix"; then
5369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5370 set dummy ${ac_tool_prefix}strip; ac_word=$2
5371 echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373 if test "${ac_cv_prog_STRIP+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 if test -n "$STRIP"; then
5377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392
5393 fi
5394 fi
5395 STRIP=$ac_cv_prog_STRIP
5396 if test -n "$STRIP"; then
5397 echo "$as_me:$LINENO: result: $STRIP" >&5
5398 echo "${ECHO_T}$STRIP" >&6
5399 else
5400 echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5402 fi
5403
5404 fi
5405 if test -z "$ac_cv_prog_STRIP"; then
5406 ac_ct_STRIP=$STRIP
5407 # Extract the first word of "strip", so it can be a program name with args.
5408 set dummy strip; ac_word=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 if test -n "$ac_ct_STRIP"; then
5415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_STRIP="strip"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430
5431 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5432 fi
5433 fi
5434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5435 if test -n "$ac_ct_STRIP"; then
5436 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5437 echo "${ECHO_T}$ac_ct_STRIP" >&6
5438 else
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5441 fi
5442
5443 STRIP=$ac_ct_STRIP
5444 else
5445 STRIP="$ac_cv_prog_STRIP"
5446 fi
5447
5448 test -z "$STRIP" && STRIP=:
5449
5450
5451
5452
5453
5454
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458 echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460 if test "${ac_cv_prog_RANLIB+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479
5480 fi
5481 fi
5482 RANLIB=$ac_cv_prog_RANLIB
5483 if test -n "$RANLIB"; then
5484 echo "$as_me:$LINENO: result: $RANLIB" >&5
5485 echo "${ECHO_T}$RANLIB" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5489 fi
5490
5491 fi
5492 if test -z "$ac_cv_prog_RANLIB"; then
5493 ac_ct_RANLIB=$RANLIB
5494 # Extract the first word of "ranlib", so it can be a program name with args.
5495 set dummy ranlib; ac_word=$2
5496 echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 if test -n "$ac_ct_RANLIB"; then
5502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_ac_ct_RANLIB="ranlib"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515 done
5516 done
5517
5518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5519 fi
5520 fi
5521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5522 if test -n "$ac_ct_RANLIB"; then
5523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5524 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5525 else
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5528 fi
5529
5530 RANLIB=$ac_ct_RANLIB
5531 else
5532 RANLIB="$ac_cv_prog_RANLIB"
5533 fi
5534
5535 test -z "$RANLIB" && RANLIB=:
5536
5537
5538
5539
5540
5541
5542 # Determine commands to create old-style static archives.
5543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5544 old_postinstall_cmds='chmod 644 $oldlib'
5545 old_postuninstall_cmds=
5546
5547 if test -n "$RANLIB"; then
5548 case $host_os in
5549 openbsd*)
5550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5551 ;;
5552 *)
5553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5554 ;;
5555 esac
5556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5557 fi
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 # If no C compiler was specified, use CC.
5593 LTCC=${LTCC-"$CC"}
5594
5595 # If no C compiler flags were specified, use CFLAGS.
5596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5597
5598 # Allow CC to be a program name with arguments.
5599 compiler=$CC
5600
5601
5602 # Check for command to grab the raw symbol name followed by C symbol from nm.
5603 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5604 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5605 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608
5609 # These are sane defaults that work on at least a few old systems.
5610 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5611
5612 # Character class describing NM global symbol codes.
5613 symcode='[BCDEGRST]'
5614
5615 # Regexp to match symbols that can be accessed directly from C.
5616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5617
5618 # Define system-specific variables.
5619 case $host_os in
5620 aix*)
5621 symcode='[BCDT]'
5622 ;;
5623 cygwin* | mingw* | pw32*)
5624 symcode='[ABCDGISTW]'
5625 ;;
5626 hpux*)
5627 if test "$host_cpu" = ia64; then
5628 symcode='[ABCDEGRST]'
5629 fi
5630 ;;
5631 irix* | nonstopux*)
5632 symcode='[BCDEGRST]'
5633 ;;
5634 osf*)
5635 symcode='[BCDEGQRST]'
5636 ;;
5637 solaris*)
5638 symcode='[BDRT]'
5639 ;;
5640 sco3.2v5*)
5641 symcode='[DT]'
5642 ;;
5643 sysv4.2uw2*)
5644 symcode='[DT]'
5645 ;;
5646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5647 symcode='[ABDT]'
5648 ;;
5649 sysv4)
5650 symcode='[DFNSTU]'
5651 ;;
5652 esac
5653
5654 # If we're using GNU nm, then use its standard symbol codes.
5655 case `$NM -V 2>&1` in
5656 *GNU* | *'with BFD'*)
5657 symcode='[ABCDGIRSTW]' ;;
5658 esac
5659
5660 # Transform an extracted symbol line into a proper C declaration.
5661 # Some systems (esp. on ia64) link data and code symbols differently,
5662 # so use this general approach.
5663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5664
5665 # Transform an extracted symbol line into symbol name and symbol address
5666 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5667
5668 # Handle CRLF in mingw tool chain
5669 opt_cr=
5670 case $build_os in
5671 mingw*)
5672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5673 ;;
5674 esac
5675
5676 # Try without a prefix underscore, then with it.
5677 for ac_symprfx in "" "_"; do
5678
5679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5680 symxfrm="\\1 $ac_symprfx\\2 \\2"
5681
5682 # Write the raw and C identifiers.
5683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5684 # Fake it for dumpbin and say T for any non-static function
5685 # and D for any global variable.
5686 # Also find C++ and __fastcall symbols from MSVC++,
5687 # which start with @ or ?.
5688 lt_cv_sys_global_symbol_pipe="$AWK '"\
5689 " {last_section=section; section=\$ 3};"\
5690 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5691 " \$ 0!~/External *\|/{next};"\
5692 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5693 " {if(hide[section]) next};"\
5694 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5695 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5696 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5697 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5698 " ' prfx=^$ac_symprfx"
5699 else
5700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5701 fi
5702
5703 # Check to see that the pipe works correctly.
5704 pipe_works=no
5705
5706 rm -f conftest*
5707 cat > conftest.$ac_ext <<_LT_EOF
5708 #ifdef __cplusplus
5709 extern "C" {
5710 #endif
5711 char nm_test_var;
5712 void nm_test_func(void);
5713 void nm_test_func(void){}
5714 #ifdef __cplusplus
5715 }
5716 #endif
5717 int main(){nm_test_var='a';nm_test_func();return(0);}
5718 _LT_EOF
5719
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 (eval $ac_compile) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; then
5725 # Now try to grab the symbols.
5726 nlist=conftest.nm
5727 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5728 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && test -s "$nlist"; then
5732 # Try sorting and uniquifying the output.
5733 if sort "$nlist" | uniq > "$nlist"T; then
5734 mv -f "$nlist"T "$nlist"
5735 else
5736 rm -f "$nlist"T
5737 fi
5738
5739 # Make sure that we snagged all the symbols we need.
5740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5742 cat <<_LT_EOF > conftest.$ac_ext
5743 #ifdef __cplusplus
5744 extern "C" {
5745 #endif
5746
5747 _LT_EOF
5748 # Now generate the symbol file.
5749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5750
5751 cat <<_LT_EOF >> conftest.$ac_ext
5752
5753 /* The mapping between symbol names and symbols. */
5754 const struct {
5755 const char *name;
5756 void *address;
5757 }
5758 lt__PROGRAM__LTX_preloaded_symbols[] =
5759 {
5760 { "@PROGRAM@", (void *) 0 },
5761 _LT_EOF
5762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5763 cat <<\_LT_EOF >> conftest.$ac_ext
5764 {0, (void *) 0}
5765 };
5766
5767 /* This works around a problem in FreeBSD linker */
5768 #ifdef FREEBSD_WORKAROUND
5769 static const void *lt_preloaded_setup() {
5770 return lt__PROGRAM__LTX_preloaded_symbols;
5771 }
5772 #endif
5773
5774 #ifdef __cplusplus
5775 }
5776 #endif
5777 _LT_EOF
5778 # Now try linking the two files.
5779 mv conftest.$ac_objext conftstm.$ac_objext
5780 lt_save_LIBS="$LIBS"
5781 lt_save_CFLAGS="$CFLAGS"
5782 LIBS="conftstm.$ac_objext"
5783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5789 pipe_works=yes
5790 fi
5791 LIBS="$lt_save_LIBS"
5792 CFLAGS="$lt_save_CFLAGS"
5793 else
5794 echo "cannot find nm_test_func in $nlist" >&5
5795 fi
5796 else
5797 echo "cannot find nm_test_var in $nlist" >&5
5798 fi
5799 else
5800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5801 fi
5802 else
5803 echo "$progname: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 fi
5806 rm -f conftest* conftst*
5807
5808 # Do not use the global_symbol_pipe unless it works.
5809 if test "$pipe_works" = yes; then
5810 break
5811 else
5812 lt_cv_sys_global_symbol_pipe=
5813 fi
5814 done
5815
5816 fi
5817
5818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5819 lt_cv_sys_global_symbol_to_cdecl=
5820 fi
5821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5822 echo "$as_me:$LINENO: result: failed" >&5
5823 echo "${ECHO_T}failed" >&6
5824 else
5825 echo "$as_me:$LINENO: result: ok" >&5
5826 echo "${ECHO_T}ok" >&6
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5846 if test "${enable_libtool_lock+set}" = set; then
5847 enableval="$enable_libtool_lock"
5848
5849 fi;
5850 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5851
5852 # Some flags need to be propagated to the compiler or linker for good
5853 # libtool support.
5854 case $host in
5855 ia64-*-hpux*)
5856 # Find out which ABI we are using.
5857 echo 'int i;' > conftest.$ac_ext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; then
5863 case `/usr/bin/file conftest.$ac_objext` in
5864 *ELF-32*)
5865 HPUX_IA64_MODE="32"
5866 ;;
5867 *ELF-64*)
5868 HPUX_IA64_MODE="64"
5869 ;;
5870 esac
5871 fi
5872 rm -rf conftest*
5873 ;;
5874 *-*-irix6*)
5875 # Find out which ABI we are using.
5876 echo '#line 5876 "configure"' > conftest.$ac_ext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; then
5882 if test "$lt_cv_prog_gnu_ld" = yes; then
5883 case `/usr/bin/file conftest.$ac_objext` in
5884 *32-bit*)
5885 LD="${LD-ld} -melf32bsmip"
5886 ;;
5887 *N32*)
5888 LD="${LD-ld} -melf32bmipn32"
5889 ;;
5890 *64-bit*)
5891 LD="${LD-ld} -melf64bmip"
5892 ;;
5893 esac
5894 else
5895 case `/usr/bin/file conftest.$ac_objext` in
5896 *32-bit*)
5897 LD="${LD-ld} -32"
5898 ;;
5899 *N32*)
5900 LD="${LD-ld} -n32"
5901 ;;
5902 *64-bit*)
5903 LD="${LD-ld} -64"
5904 ;;
5905 esac
5906 fi
5907 fi
5908 rm -rf conftest*
5909 ;;
5910
5911 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5912 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5913 # Find out which ABI we are using.
5914 echo 'int i;' > conftest.$ac_ext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; then
5920 case `/usr/bin/file conftest.o` in
5921 *32-bit*)
5922 case $host in
5923 x86_64-*kfreebsd*-gnu)
5924 LD="${LD-ld} -m elf_i386_fbsd"
5925 ;;
5926 x86_64-*linux*)
5927 LD="${LD-ld} -m elf_i386"
5928 ;;
5929 ppc64-*linux*|powerpc64-*linux*)
5930 LD="${LD-ld} -m elf32ppclinux"
5931 ;;
5932 s390x-*linux*)
5933 LD="${LD-ld} -m elf_s390"
5934 ;;
5935 sparc64-*linux*)
5936 LD="${LD-ld} -m elf32_sparc"
5937 ;;
5938 esac
5939 ;;
5940 *64-bit*)
5941 case $host in
5942 x86_64-*kfreebsd*-gnu)
5943 LD="${LD-ld} -m elf_x86_64_fbsd"
5944 ;;
5945 x86_64-*linux*)
5946 LD="${LD-ld} -m elf_x86_64"
5947 ;;
5948 ppc*-*linux*|powerpc*-*linux*)
5949 LD="${LD-ld} -m elf64ppc"
5950 ;;
5951 s390*-*linux*|s390*-*tpf*)
5952 LD="${LD-ld} -m elf64_s390"
5953 ;;
5954 sparc*-*linux*)
5955 LD="${LD-ld} -m elf64_sparc"
5956 ;;
5957 esac
5958 ;;
5959 esac
5960 fi
5961 rm -rf conftest*
5962 ;;
5963
5964 *-*-sco3.2v5*)
5965 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5966 SAVE_CFLAGS="$CFLAGS"
5967 CFLAGS="$CFLAGS -belf"
5968 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5969 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5970 if test "${lt_cv_cc_needs_belf+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978
5979 if test x$gcc_no_link = xyes; then
5980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5982 { (exit 1); exit 1; }; }
5983 fi
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990
5991 int
5992 main ()
5993 {
5994
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001 (eval $ac_link) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest$ac_exeext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 lt_cv_cc_needs_belf=yes
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 lt_cv_cc_needs_belf=no
6027 fi
6028 rm -f conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036 fi
6037 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6038 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6041 CFLAGS="$SAVE_CFLAGS"
6042 fi
6043 ;;
6044 sparc*-*solaris*)
6045 # Find out which ABI we are using.
6046 echo 'int i;' > conftest.$ac_ext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; then
6052 case `/usr/bin/file conftest.o` in
6053 *64-bit*)
6054 case $lt_cv_prog_gnu_ld in
6055 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6056 *) LD="${LD-ld} -64" ;;
6057 esac
6058 ;;
6059 esac
6060 fi
6061 rm -rf conftest*
6062 ;;
6063 esac
6064
6065 need_locks="$enable_libtool_lock"
6066
6067
6068 for ac_header in dlfcn.h
6069 do
6070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6071 echo "$as_me:$LINENO: checking for $ac_header" >&5
6072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 $ac_includes_default
6083
6084 #include <$ac_header>
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 eval "$as_ac_Header=yes"
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 eval "$as_ac_Header=no"
6114 fi
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116 fi
6117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6120 cat >>confdefs.h <<_ACEOF
6121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6122 _ACEOF
6123
6124 fi
6125
6126 done
6127
6128
6129
6130 # This can be used to rebuild libtool when needed
6131 LIBTOOL_DEPS="$ltmain"
6132
6133 # Always use our own libtool.
6134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 test -z "$LN_S" && LN_S="ln -s"
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 if test -n "${ZSH_VERSION+set}" ; then
6176 setopt NO_GLOB_SUBST
6177 fi
6178
6179 echo "$as_me:$LINENO: checking for objdir" >&5
6180 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6181 if test "${lt_cv_objdir+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 rm -f .libs 2>/dev/null
6185 mkdir .libs 2>/dev/null
6186 if test -d .libs; then
6187 lt_cv_objdir=.libs
6188 else
6189 # MS-DOS does not allow filenames that begin with a dot.
6190 lt_cv_objdir=_libs
6191 fi
6192 rmdir .libs 2>/dev/null
6193 fi
6194 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6195 echo "${ECHO_T}$lt_cv_objdir" >&6
6196 objdir=$lt_cv_objdir
6197
6198
6199
6200
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define LT_OBJDIR "$lt_cv_objdir/"
6204 _ACEOF
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222 case $host_os in
6223 aix3*)
6224 # AIX sometimes has problems with the GCC collect2 program. For some
6225 # reason, if we set the COLLECT_NAMES environment variable, the problems
6226 # vanish in a puff of smoke.
6227 if test "X${COLLECT_NAMES+set}" != Xset; then
6228 COLLECT_NAMES=
6229 export COLLECT_NAMES
6230 fi
6231 ;;
6232 esac
6233
6234 # Sed substitution that helps us do robust quoting. It backslashifies
6235 # metacharacters that are still active within double-quoted strings.
6236 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6237
6238 # Same as above, but do not quote variable references.
6239 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6240
6241 # Sed substitution to delay expansion of an escaped shell variable in a
6242 # double_quote_subst'ed string.
6243 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6244
6245 # Sed substitution to delay expansion of an escaped single quote.
6246 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6247
6248 # Sed substitution to avoid accidental globbing in evaled expressions
6249 no_glob_subst='s/\*/\\\*/g'
6250
6251 # Global variables:
6252 ofile=libtool
6253 can_build_shared=yes
6254
6255 # All known linkers require a `.a' archive for static linking (except MSVC,
6256 # which needs '.lib').
6257 libext=a
6258
6259 with_gnu_ld="$lt_cv_prog_gnu_ld"
6260
6261 old_CC="$CC"
6262 old_CFLAGS="$CFLAGS"
6263
6264 # Set sane defaults for various variables
6265 test -z "$CC" && CC=cc
6266 test -z "$LTCC" && LTCC=$CC
6267 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6268 test -z "$LD" && LD=ld
6269 test -z "$ac_objext" && ac_objext=o
6270
6271 for cc_temp in $compiler""; do
6272 case $cc_temp in
6273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6275 \-*) ;;
6276 *) break;;
6277 esac
6278 done
6279 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6280
6281
6282 # Only perform the check for file, if the check method requires it
6283 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6284 case $deplibs_check_method in
6285 file_magic*)
6286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6287 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6288 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292 case $MAGIC_CMD in
6293 [\\/*] | ?:[\\/]*)
6294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6295 ;;
6296 *)
6297 lt_save_MAGIC_CMD="$MAGIC_CMD"
6298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6300 for ac_dir in $ac_dummy; do
6301 IFS="$lt_save_ifs"
6302 test -z "$ac_dir" && ac_dir=.
6303 if test -f $ac_dir/${ac_tool_prefix}file; then
6304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6305 if test -n "$file_magic_test_file"; then
6306 case $deplibs_check_method in
6307 "file_magic "*)
6308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6311 $EGREP "$file_magic_regex" > /dev/null; then
6312 :
6313 else
6314 cat <<_LT_EOF 1>&2
6315
6316 *** Warning: the command libtool uses to detect shared libraries,
6317 *** $file_magic_cmd, produces output that libtool cannot recognize.
6318 *** The result is that libtool may fail to recognize shared libraries
6319 *** as such. This will affect the creation of libtool libraries that
6320 *** depend on shared libraries, but programs linked with such libtool
6321 *** libraries will work regardless of this problem. Nevertheless, you
6322 *** may want to report the problem to your system manager and/or to
6323 *** bug-libtool@gnu.org
6324
6325 _LT_EOF
6326 fi ;;
6327 esac
6328 fi
6329 break
6330 fi
6331 done
6332 IFS="$lt_save_ifs"
6333 MAGIC_CMD="$lt_save_MAGIC_CMD"
6334 ;;
6335 esac
6336 fi
6337
6338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6339 if test -n "$MAGIC_CMD"; then
6340 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6341 echo "${ECHO_T}$MAGIC_CMD" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348
6349
6350
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352 if test -n "$ac_tool_prefix"; then
6353 echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 case $MAGIC_CMD in
6359 [\\/*] | ?:[\\/]*)
6360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6361 ;;
6362 *)
6363 lt_save_MAGIC_CMD="$MAGIC_CMD"
6364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6366 for ac_dir in $ac_dummy; do
6367 IFS="$lt_save_ifs"
6368 test -z "$ac_dir" && ac_dir=.
6369 if test -f $ac_dir/file; then
6370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6371 if test -n "$file_magic_test_file"; then
6372 case $deplibs_check_method in
6373 "file_magic "*)
6374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6377 $EGREP "$file_magic_regex" > /dev/null; then
6378 :
6379 else
6380 cat <<_LT_EOF 1>&2
6381
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such. This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem. Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6390
6391 _LT_EOF
6392 fi ;;
6393 esac
6394 fi
6395 break
6396 fi
6397 done
6398 IFS="$lt_save_ifs"
6399 MAGIC_CMD="$lt_save_MAGIC_CMD"
6400 ;;
6401 esac
6402 fi
6403
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6408 else
6409 echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6411 fi
6412
6413
6414 else
6415 MAGIC_CMD=:
6416 fi
6417 fi
6418
6419 fi
6420 ;;
6421 esac
6422
6423 # Use C for the default configuration in the libtool script
6424
6425 lt_save_CC="$CC"
6426 ac_ext=c
6427 ac_cpp='$CPP $CPPFLAGS'
6428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431
6432
6433 # Source file extension for C test sources.
6434 ac_ext=c
6435
6436 # Object file extension for compiled C test sources.
6437 objext=o
6438 objext=$objext
6439
6440 # Code to be used in simple compile tests
6441 lt_simple_compile_test_code="int some_variable = 0;"
6442
6443 # Code to be used in simple link tests
6444 lt_simple_link_test_code='int main(){return(0);}'
6445
6446
6447
6448
6449
6450
6451
6452 # If no C compiler was specified, use CC.
6453 LTCC=${LTCC-"$CC"}
6454
6455 # If no C compiler flags were specified, use CFLAGS.
6456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6457
6458 # Allow CC to be a program name with arguments.
6459 compiler=$CC
6460
6461 # Save the default compiler, since it gets overwritten when the other
6462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6463 compiler_DEFAULT=$CC
6464
6465 # save warnings/boilerplate of simple test code
6466 ac_outfile=conftest.$ac_objext
6467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6469 _lt_compiler_boilerplate=`cat conftest.err`
6470 $RM conftest*
6471
6472 ac_outfile=conftest.$ac_objext
6473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6475 _lt_linker_boilerplate=`cat conftest.err`
6476 $RM conftest*
6477
6478
6479 ## CAVEAT EMPTOR:
6480 ## There is no encapsulation within the following macros, do not change
6481 ## the running order or otherwise move them around unless you know exactly
6482 ## what you are doing...
6483 if test -n "$compiler"; then
6484
6485 lt_prog_compiler_no_builtin_flag=
6486
6487 if test "$GCC" = yes; then
6488 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6489
6490 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495 lt_cv_prog_compiler_rtti_exceptions=no
6496 ac_outfile=conftest.$ac_objext
6497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6498 lt_compiler_flag="-fno-rtti -fno-exceptions"
6499 # Insert the option either (1) after the last *FLAGS variable, or
6500 # (2) before a word containing "conftest.", or (3) at the end.
6501 # Note that $ac_compile itself does not contain backslashes and begins
6502 # with a dollar sign (not a hyphen), so the echo should work correctly.
6503 # The option is referenced via a variable to avoid confusing sed.
6504 lt_compile=`echo "$ac_compile" | $SED \
6505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6507 -e 's:$: $lt_compiler_flag:'`
6508 (eval echo "\"\$as_me:6508: $lt_compile\"" >&5)
6509 (eval "$lt_compile" 2>conftest.err)
6510 ac_status=$?
6511 cat conftest.err >&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 if (exit $ac_status) && test -s "$ac_outfile"; then
6514 # The compiler can only warn and ignore the option if not recognized
6515 # So say no if there are warnings other than the usual output.
6516 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6519 lt_cv_prog_compiler_rtti_exceptions=yes
6520 fi
6521 fi
6522 $RM conftest*
6523
6524 fi
6525 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6526 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6527
6528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6529 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6530 else
6531 :
6532 fi
6533
6534 fi
6535
6536
6537
6538
6539
6540
6541 lt_prog_compiler_wl=
6542 lt_prog_compiler_pic=
6543 lt_prog_compiler_static=
6544
6545 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6546 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6547
6548 if test "$GCC" = yes; then
6549 lt_prog_compiler_wl='-Wl,'
6550 lt_prog_compiler_static='-static'
6551
6552 case $host_os in
6553 aix*)
6554 # All AIX code is PIC.
6555 if test "$host_cpu" = ia64; then
6556 # AIX 5 now supports IA64 processor
6557 lt_prog_compiler_static='-Bstatic'
6558 fi
6559 ;;
6560
6561 amigaos*)
6562 if test "$host_cpu" = m68k; then
6563 # FIXME: we need at least 68020 code to build shared libraries, but
6564 # adding the `-m68020' flag to GCC prevents building anything better,
6565 # like `-m68040'.
6566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6567 fi
6568 ;;
6569
6570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6571 # PIC is the default for these OSes.
6572 ;;
6573
6574 mingw* | cygwin* | pw32* | os2*)
6575 # This hack is so that the source file can tell whether it is being
6576 # built for inclusion in a dll (and should export symbols for example).
6577 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6578 # (--disable-auto-import) libraries
6579 lt_prog_compiler_pic='-DDLL_EXPORT'
6580 ;;
6581
6582 darwin* | rhapsody*)
6583 # PIC is the default on this platform
6584 # Common symbols not allowed in MH_DYLIB files
6585 lt_prog_compiler_pic='-fno-common'
6586 ;;
6587
6588 hpux*)
6589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6590 # not for PA HP-UX.
6591 case $host_cpu in
6592 hppa*64*|ia64*)
6593 # +Z the default
6594 ;;
6595 *)
6596 lt_prog_compiler_pic='-fPIC'
6597 ;;
6598 esac
6599 ;;
6600
6601 interix[3-9]*)
6602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6603 # Instead, we relocate shared libraries at runtime.
6604 ;;
6605
6606 msdosdjgpp*)
6607 # Just because we use GCC doesn't mean we suddenly get shared libraries
6608 # on systems that don't support them.
6609 lt_prog_compiler_can_build_shared=no
6610 enable_shared=no
6611 ;;
6612
6613 *nto* | *qnx*)
6614 # QNX uses GNU C++, but need to define -shared option too, otherwise
6615 # it will coredump.
6616 lt_prog_compiler_pic='-fPIC -shared'
6617 ;;
6618
6619 sysv4*MP*)
6620 if test -d /usr/nec; then
6621 lt_prog_compiler_pic=-Kconform_pic
6622 fi
6623 ;;
6624
6625 *)
6626 lt_prog_compiler_pic='-fPIC'
6627 ;;
6628 esac
6629 else
6630 # PORTME Check for flag to pass linker flags through the system compiler.
6631 case $host_os in
6632 aix*)
6633 lt_prog_compiler_wl='-Wl,'
6634 if test "$host_cpu" = ia64; then
6635 # AIX 5 now supports IA64 processor
6636 lt_prog_compiler_static='-Bstatic'
6637 else
6638 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6639 fi
6640 ;;
6641 darwin*)
6642 # PIC is the default on this platform
6643 # Common symbols not allowed in MH_DYLIB files
6644 case $cc_basename in
6645 xlc*)
6646 lt_prog_compiler_pic='-qnocommon'
6647 lt_prog_compiler_wl='-Wl,'
6648 ;;
6649 esac
6650 ;;
6651
6652 mingw* | cygwin* | pw32* | os2*)
6653 # This hack is so that the source file can tell whether it is being
6654 # built for inclusion in a dll (and should export symbols for example).
6655 lt_prog_compiler_pic='-DDLL_EXPORT'
6656 ;;
6657
6658 hpux9* | hpux10* | hpux11*)
6659 lt_prog_compiler_wl='-Wl,'
6660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6661 # not for PA HP-UX.
6662 case $host_cpu in
6663 hppa*64*|ia64*)
6664 # +Z the default
6665 ;;
6666 *)
6667 lt_prog_compiler_pic='+Z'
6668 ;;
6669 esac
6670 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6671 lt_prog_compiler_static='${wl}-a ${wl}archive'
6672 ;;
6673
6674 irix5* | irix6* | nonstopux*)
6675 lt_prog_compiler_wl='-Wl,'
6676 # PIC (with -KPIC) is the default.
6677 lt_prog_compiler_static='-non_shared'
6678 ;;
6679
6680 linux* | k*bsd*-gnu)
6681 case $cc_basename in
6682 icc* | ecc*)
6683 lt_prog_compiler_wl='-Wl,'
6684 lt_prog_compiler_pic='-KPIC'
6685 lt_prog_compiler_static='-static'
6686 ;;
6687 pgcc* | pgf77* | pgf90* | pgf95*)
6688 # Portland Group compilers (*not* the Pentium gcc compiler,
6689 # which looks to be a dead project)
6690 lt_prog_compiler_wl='-Wl,'
6691 lt_prog_compiler_pic='-fpic'
6692 lt_prog_compiler_static='-Bstatic'
6693 ;;
6694 ccc*)
6695 lt_prog_compiler_wl='-Wl,'
6696 # All Alpha code is PIC.
6697 lt_prog_compiler_static='-non_shared'
6698 ;;
6699 *)
6700 case `$CC -V 2>&1 | sed 5q` in
6701 *Sun\ C*)
6702 # Sun C 5.9
6703 lt_prog_compiler_pic='-KPIC'
6704 lt_prog_compiler_static='-Bstatic'
6705 lt_prog_compiler_wl='-Wl,'
6706 ;;
6707 *Sun\ F*)
6708 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6709 lt_prog_compiler_pic='-KPIC'
6710 lt_prog_compiler_static='-Bstatic'
6711 lt_prog_compiler_wl=''
6712 ;;
6713 esac
6714 ;;
6715 esac
6716 ;;
6717
6718 newsos6)
6719 lt_prog_compiler_pic='-KPIC'
6720 lt_prog_compiler_static='-Bstatic'
6721 ;;
6722
6723 *nto* | *qnx*)
6724 # QNX uses GNU C++, but need to define -shared option too, otherwise
6725 # it will coredump.
6726 lt_prog_compiler_pic='-fPIC -shared'
6727 ;;
6728
6729 osf3* | osf4* | osf5*)
6730 lt_prog_compiler_wl='-Wl,'
6731 # All OSF/1 code is PIC.
6732 lt_prog_compiler_static='-non_shared'
6733 ;;
6734
6735 rdos*)
6736 lt_prog_compiler_static='-non_shared'
6737 ;;
6738
6739 solaris*)
6740 lt_prog_compiler_pic='-KPIC'
6741 lt_prog_compiler_static='-Bstatic'
6742 case $cc_basename in
6743 f77* | f90* | f95*)
6744 lt_prog_compiler_wl='-Qoption ld ';;
6745 *)
6746 lt_prog_compiler_wl='-Wl,';;
6747 esac
6748 ;;
6749
6750 sunos4*)
6751 lt_prog_compiler_wl='-Qoption ld '
6752 lt_prog_compiler_pic='-PIC'
6753 lt_prog_compiler_static='-Bstatic'
6754 ;;
6755
6756 sysv4 | sysv4.2uw2* | sysv4.3*)
6757 lt_prog_compiler_wl='-Wl,'
6758 lt_prog_compiler_pic='-KPIC'
6759 lt_prog_compiler_static='-Bstatic'
6760 ;;
6761
6762 sysv4*MP*)
6763 if test -d /usr/nec ;then
6764 lt_prog_compiler_pic='-Kconform_pic'
6765 lt_prog_compiler_static='-Bstatic'
6766 fi
6767 ;;
6768
6769 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6770 lt_prog_compiler_wl='-Wl,'
6771 lt_prog_compiler_pic='-KPIC'
6772 lt_prog_compiler_static='-Bstatic'
6773 ;;
6774
6775 unicos*)
6776 lt_prog_compiler_wl='-Wl,'
6777 lt_prog_compiler_can_build_shared=no
6778 ;;
6779
6780 uts4*)
6781 lt_prog_compiler_pic='-pic'
6782 lt_prog_compiler_static='-Bstatic'
6783 ;;
6784
6785 *)
6786 lt_prog_compiler_can_build_shared=no
6787 ;;
6788 esac
6789 fi
6790
6791 case $host_os in
6792 # For platforms which do not support PIC, -DPIC is meaningless:
6793 *djgpp*)
6794 lt_prog_compiler_pic=
6795 ;;
6796 *)
6797 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6798 ;;
6799 esac
6800 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6801 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6802
6803
6804
6805
6806
6807
6808 #
6809 # Check to make sure the PIC flag actually works.
6810 #
6811 if test -n "$lt_prog_compiler_pic"; then
6812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6814 if test "${lt_prog_compiler_pic_works+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 lt_prog_compiler_pic_works=no
6818 ac_outfile=conftest.$ac_objext
6819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6821 # Insert the option either (1) after the last *FLAGS variable, or
6822 # (2) before a word containing "conftest.", or (3) at the end.
6823 # Note that $ac_compile itself does not contain backslashes and begins
6824 # with a dollar sign (not a hyphen), so the echo should work correctly.
6825 # The option is referenced via a variable to avoid confusing sed.
6826 lt_compile=`echo "$ac_compile" | $SED \
6827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6829 -e 's:$: $lt_compiler_flag:'`
6830 (eval echo "\"\$as_me:6830: $lt_compile\"" >&5)
6831 (eval "$lt_compile" 2>conftest.err)
6832 ac_status=$?
6833 cat conftest.err >&5
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 if (exit $ac_status) && test -s "$ac_outfile"; then
6836 # The compiler can only warn and ignore the option if not recognized
6837 # So say no if there are warnings other than the usual output.
6838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6841 lt_prog_compiler_pic_works=yes
6842 fi
6843 fi
6844 $RM conftest*
6845
6846 fi
6847 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6848 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6849
6850 if test x"$lt_prog_compiler_pic_works" = xyes; then
6851 case $lt_prog_compiler_pic in
6852 "" | " "*) ;;
6853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6854 esac
6855 else
6856 lt_prog_compiler_pic=
6857 lt_prog_compiler_can_build_shared=no
6858 fi
6859
6860 fi
6861
6862
6863
6864
6865
6866
6867 #
6868 # Check to make sure the static flag actually works.
6869 #
6870 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6871 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6872 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6873 if test "${lt_prog_compiler_static_works+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 lt_prog_compiler_static_works=no
6877 save_LDFLAGS="$LDFLAGS"
6878 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6879 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6881 # The linker can only warn and ignore the option if not recognized
6882 # So say no if there are warnings
6883 if test -s conftest.err; then
6884 # Append any errors to the config.log.
6885 cat conftest.err 1>&5
6886 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6888 if diff conftest.exp conftest.er2 >/dev/null; then
6889 lt_prog_compiler_static_works=yes
6890 fi
6891 else
6892 lt_prog_compiler_static_works=yes
6893 fi
6894 fi
6895 $RM conftest*
6896 LDFLAGS="$save_LDFLAGS"
6897
6898 fi
6899 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6900 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6901
6902 if test x"$lt_prog_compiler_static_works" = xyes; then
6903 :
6904 else
6905 lt_prog_compiler_static=
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 lt_cv_prog_compiler_c_o=no
6920 $RM -r conftest 2>/dev/null
6921 mkdir conftest
6922 cd conftest
6923 mkdir out
6924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6925
6926 lt_compiler_flag="-o out/conftest2.$ac_objext"
6927 # Insert the option either (1) after the last *FLAGS variable, or
6928 # (2) before a word containing "conftest.", or (3) at the end.
6929 # Note that $ac_compile itself does not contain backslashes and begins
6930 # with a dollar sign (not a hyphen), so the echo should work correctly.
6931 lt_compile=`echo "$ac_compile" | $SED \
6932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6934 -e 's:$: $lt_compiler_flag:'`
6935 (eval echo "\"\$as_me:6935: $lt_compile\"" >&5)
6936 (eval "$lt_compile" 2>out/conftest.err)
6937 ac_status=$?
6938 cat out/conftest.err >&5
6939 echo "$as_me:6939: \$? = $ac_status" >&5
6940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6941 then
6942 # The compiler can only warn and ignore the option if not recognized
6943 # So say no if there are warnings
6944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6947 lt_cv_prog_compiler_c_o=yes
6948 fi
6949 fi
6950 chmod u+w . 2>&5
6951 $RM conftest*
6952 # SGI C++ compiler will create directory out/ii_files/ for
6953 # template instantiation
6954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6955 $RM out/* && rmdir out
6956 cd ..
6957 $RM -r conftest
6958 $RM conftest*
6959
6960 fi
6961 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6963
6964
6965
6966
6967
6968
6969 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6970 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6971 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 lt_cv_prog_compiler_c_o=no
6975 $RM -r conftest 2>/dev/null
6976 mkdir conftest
6977 cd conftest
6978 mkdir out
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980
6981 lt_compiler_flag="-o out/conftest2.$ac_objext"
6982 # Insert the option either (1) after the last *FLAGS variable, or
6983 # (2) before a word containing "conftest.", or (3) at the end.
6984 # Note that $ac_compile itself does not contain backslashes and begins
6985 # with a dollar sign (not a hyphen), so the echo should work correctly.
6986 lt_compile=`echo "$ac_compile" | $SED \
6987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
6990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
6991 (eval "$lt_compile" 2>out/conftest.err)
6992 ac_status=$?
6993 cat out/conftest.err >&5
6994 echo "$as_me:6994: \$? = $ac_status" >&5
6995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6996 then
6997 # The compiler can only warn and ignore the option if not recognized
6998 # So say no if there are warnings
6999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7002 lt_cv_prog_compiler_c_o=yes
7003 fi
7004 fi
7005 chmod u+w . 2>&5
7006 $RM conftest*
7007 # SGI C++ compiler will create directory out/ii_files/ for
7008 # template instantiation
7009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7010 $RM out/* && rmdir out
7011 cd ..
7012 $RM -r conftest
7013 $RM conftest*
7014
7015 fi
7016 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7017 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7018
7019
7020
7021
7022 hard_links="nottested"
7023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7024 # do not overwrite the value of need_locks provided by the user
7025 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7026 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7027 hard_links=yes
7028 $RM conftest*
7029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7030 touch conftest.a
7031 ln conftest.a conftest.b 2>&5 || hard_links=no
7032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7033 echo "$as_me:$LINENO: result: $hard_links" >&5
7034 echo "${ECHO_T}$hard_links" >&6
7035 if test "$hard_links" = no; then
7036 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7037 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7038 need_locks=warn
7039 fi
7040 else
7041 need_locks=no
7042 fi
7043
7044
7045
7046
7047
7048
7049 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7051
7052 runpath_var=
7053 allow_undefined_flag=
7054 always_export_symbols=no
7055 archive_cmds=
7056 archive_expsym_cmds=
7057 compiler_needs_object=no
7058 enable_shared_with_static_runtimes=no
7059 export_dynamic_flag_spec=
7060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7061 hardcode_automatic=no
7062 hardcode_direct=no
7063 hardcode_direct_absolute=no
7064 hardcode_libdir_flag_spec=
7065 hardcode_libdir_flag_spec_ld=
7066 hardcode_libdir_separator=
7067 hardcode_minus_L=no
7068 hardcode_shlibpath_var=unsupported
7069 inherit_rpath=no
7070 link_all_deplibs=unknown
7071 module_cmds=
7072 module_expsym_cmds=
7073 old_archive_from_new_cmds=
7074 old_archive_from_expsyms_cmds=
7075 thread_safe_flag_spec=
7076 whole_archive_flag_spec=
7077 # include_expsyms should be a list of space-separated symbols to be *always*
7078 # included in the symbol list
7079 include_expsyms=
7080 # exclude_expsyms can be an extended regexp of symbols to exclude
7081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7083 # as well as any symbol that contains `d'.
7084 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7086 # platforms (ab)use it in PIC code, but their linkers get confused if
7087 # the symbol is explicitly referenced. Since portable code cannot
7088 # rely on this symbol name, it's probably fine to never include it in
7089 # preloaded symbol tables.
7090 extract_expsyms_cmds=
7091
7092 case $host_os in
7093 cygwin* | mingw* | pw32*)
7094 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7095 # When not using gcc, we currently assume that we are using
7096 # Microsoft Visual C++.
7097 if test "$GCC" != yes; then
7098 with_gnu_ld=no
7099 fi
7100 ;;
7101 interix*)
7102 # we just hope/assume this is gcc and not c89 (= MSVC++)
7103 with_gnu_ld=yes
7104 ;;
7105 openbsd*)
7106 with_gnu_ld=no
7107 ;;
7108 esac
7109
7110 ld_shlibs=yes
7111 if test "$with_gnu_ld" = yes; then
7112 # If archive_cmds runs LD, not CC, wlarc should be empty
7113 wlarc='${wl}'
7114
7115 # Set some defaults for GNU ld with shared library support. These
7116 # are reset later if shared libraries are not supported. Putting them
7117 # here allows them to be overridden if necessary.
7118 runpath_var=LD_RUN_PATH
7119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7120 export_dynamic_flag_spec='${wl}--export-dynamic'
7121 # ancient GNU ld didn't support --whole-archive et. al.
7122 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7123 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7124 else
7125 whole_archive_flag_spec=
7126 fi
7127 supports_anon_versioning=no
7128 case `$LD -v 2>&1` in
7129 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7130 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7131 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7132 *\ 2.11.*) ;; # other 2.11 versions
7133 *) supports_anon_versioning=yes ;;
7134 esac
7135
7136 # See if GNU ld supports shared libraries.
7137 case $host_os in
7138 aix3* | aix4* | aix5*)
7139 # On AIX/PPC, the GNU linker is very broken
7140 if test "$host_cpu" != ia64; then
7141 ld_shlibs=no
7142 cat <<_LT_EOF 1>&2
7143
7144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7145 *** to be unable to reliably create shared libraries on AIX.
7146 *** Therefore, libtool is disabling shared libraries support. If you
7147 *** really care for shared libraries, you may want to modify your PATH
7148 *** so that a non-GNU linker is found, and then restart.
7149
7150 _LT_EOF
7151 fi
7152 ;;
7153
7154 amigaos*)
7155 if test "$host_cpu" = m68k; then
7156 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)'
7157 hardcode_libdir_flag_spec='-L$libdir'
7158 hardcode_minus_L=yes
7159 fi
7160
7161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7162 # that the semantics of dynamic libraries on AmigaOS, at least up
7163 # to version 4, is to share data among multiple programs linked
7164 # with the same dynamic library. Since this doesn't match the
7165 # behavior of shared libraries on other platforms, we can't use
7166 # them.
7167 ld_shlibs=no
7168 ;;
7169
7170 beos*)
7171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7172 allow_undefined_flag=unsupported
7173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7174 # support --undefined. This deserves some investigation. FIXME
7175 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7176 else
7177 ld_shlibs=no
7178 fi
7179 ;;
7180
7181 cygwin* | mingw* | pw32*)
7182 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7183 # as there is no search path for DLLs.
7184 hardcode_libdir_flag_spec='-L$libdir'
7185 allow_undefined_flag=unsupported
7186 always_export_symbols=no
7187 enable_shared_with_static_runtimes=yes
7188 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7189
7190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7192 # If the export-symbols file already is a .def file (1st line
7193 # is EXPORTS), use it as is; otherwise, prepend...
7194 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7195 cp $export_symbols $output_objdir/$soname.def;
7196 else
7197 echo EXPORTS > $output_objdir/$soname.def;
7198 cat $export_symbols >> $output_objdir/$soname.def;
7199 fi~
7200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7201 else
7202 ld_shlibs=no
7203 fi
7204 ;;
7205
7206 interix[3-9]*)
7207 hardcode_direct=no
7208 hardcode_shlibpath_var=no
7209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7210 export_dynamic_flag_spec='${wl}-E'
7211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7212 # Instead, shared libraries are loaded at an image base (0x10000000 by
7213 # default) and relocated if they conflict, which is a slow very memory
7214 # consuming and fragmenting process. To avoid this, we pick a random,
7215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7218 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7219 ;;
7220
7221 gnu* | linux* | tpf* | k*bsd*-gnu)
7222 tmp_diet=no
7223 if test "$host_os" = linux-dietlibc; then
7224 case $cc_basename in
7225 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7226 esac
7227 fi
7228 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7229 && test "$tmp_diet" = no
7230 then
7231 tmp_addflag=
7232 case $cc_basename,$host_cpu in
7233 pgcc*) # Portland Group C compiler
7234 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'
7235 tmp_addflag=' $pic_flag'
7236 ;;
7237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7238 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'
7239 tmp_addflag=' $pic_flag -Mnomain' ;;
7240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7241 tmp_addflag=' -i_dynamic' ;;
7242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7243 tmp_addflag=' -i_dynamic -nofor_main' ;;
7244 ifc* | ifort*) # Intel Fortran compiler
7245 tmp_addflag=' -nofor_main' ;;
7246 esac
7247 case `$CC -V 2>&1 | sed 5q` in
7248 *Sun\ C*) # Sun C 5.9
7249 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7250 compiler_needs_object=yes
7251 tmp_sharedflag='-G' ;;
7252 *Sun\ F*) # Sun Fortran 8.3
7253 tmp_sharedflag='-G' ;;
7254 *)
7255 tmp_sharedflag='-shared' ;;
7256 esac
7257 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258
7259 if test "x$supports_anon_versioning" = xyes; then
7260 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7262 echo "local: *; };" >> $output_objdir/$libname.ver~
7263 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7264 fi
7265 else
7266 ld_shlibs=no
7267 fi
7268 ;;
7269
7270 netbsd*)
7271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7273 wlarc=
7274 else
7275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7277 fi
7278 ;;
7279
7280 solaris*)
7281 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7282 ld_shlibs=no
7283 cat <<_LT_EOF 1>&2
7284
7285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7286 *** create shared libraries on Solaris systems. Therefore, libtool
7287 *** is disabling shared libraries support. We urge you to upgrade GNU
7288 *** binutils to release 2.9.1 or newer. Another option is to modify
7289 *** your PATH or compiler configuration so that the native linker is
7290 *** used, and then restart.
7291
7292 _LT_EOF
7293 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7296 else
7297 ld_shlibs=no
7298 fi
7299 ;;
7300
7301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7302 case `$LD -v 2>&1` in
7303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7304 ld_shlibs=no
7305 cat <<_LT_EOF 1>&2
7306
7307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7308 *** reliably create shared libraries on SCO systems. Therefore, libtool
7309 *** is disabling shared libraries support. We urge you to upgrade GNU
7310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7311 *** your PATH or compiler configuration so that the native linker is
7312 *** used, and then restart.
7313
7314 _LT_EOF
7315 ;;
7316 *)
7317 # For security reasons, it is highly recommended that you always
7318 # use absolute paths for naming shared libraries, and exclude the
7319 # DT_RUNPATH tag from executables and libraries. But doing so
7320 # requires that you compile everything twice, which is a pain.
7321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7325 else
7326 ld_shlibs=no
7327 fi
7328 ;;
7329 esac
7330 ;;
7331
7332 sunos4*)
7333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7334 wlarc=
7335 hardcode_direct=yes
7336 hardcode_shlibpath_var=no
7337 ;;
7338
7339 *)
7340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343 else
7344 ld_shlibs=no
7345 fi
7346 ;;
7347 esac
7348
7349 if test "$ld_shlibs" = no; then
7350 runpath_var=
7351 hardcode_libdir_flag_spec=
7352 export_dynamic_flag_spec=
7353 whole_archive_flag_spec=
7354 fi
7355 else
7356 # PORTME fill in a description of your system's linker (not GNU ld)
7357 case $host_os in
7358 aix3*)
7359 allow_undefined_flag=unsupported
7360 always_export_symbols=yes
7361 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'
7362 # Note: this linker hardcodes the directories in LIBPATH if there
7363 # are no directories specified by -L.
7364 hardcode_minus_L=yes
7365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7366 # Neither direct hardcoding nor static linking is supported with a
7367 # broken collect2.
7368 hardcode_direct=unsupported
7369 fi
7370 ;;
7371
7372 aix4* | aix5*)
7373 if test "$host_cpu" = ia64; then
7374 # On IA64, the linker does run time linking by default, so we don't
7375 # have to do anything special.
7376 aix_use_runtimelinking=no
7377 exp_sym_flag='-Bexport'
7378 no_entry_flag=""
7379 else
7380 # If we're using GNU nm, then we don't want the "-C" option.
7381 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7383 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'
7384 else
7385 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'
7386 fi
7387 aix_use_runtimelinking=no
7388
7389 # Test if we are trying to use run time linking or normal
7390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7391 # need to do runtime linking.
7392 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7393 for ld_flag in $LDFLAGS; do
7394 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7395 aix_use_runtimelinking=yes
7396 break
7397 fi
7398 done
7399 ;;
7400 esac
7401
7402 exp_sym_flag='-bexport'
7403 no_entry_flag='-bnoentry'
7404 fi
7405
7406 # When large executables or shared objects are built, AIX ld can
7407 # have problems creating the table of contents. If linking a library
7408 # or program results in "error TOC overflow" add -mminimal-toc to
7409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7411
7412 archive_cmds=''
7413 hardcode_direct=yes
7414 hardcode_direct_absolute=yes
7415 hardcode_libdir_separator=':'
7416 link_all_deplibs=yes
7417 file_list_spec='${wl}-f,'
7418
7419 if test "$GCC" = yes; then
7420 case $host_os in aix4.[012]|aix4.[012].*)
7421 # We only want to do this on AIX 4.2 and lower, the check
7422 # below for broken collect2 doesn't work under 4.3+
7423 collect2name=`${CC} -print-prog-name=collect2`
7424 if test -f "$collect2name" &&
7425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7426 then
7427 # We have reworked collect2
7428 :
7429 else
7430 # We have old collect2
7431 hardcode_direct=unsupported
7432 # It fails to find uninstalled libraries when the uninstalled
7433 # path is not listed in the libpath. Setting hardcode_minus_L
7434 # to unsupported forces relinking
7435 hardcode_minus_L=yes
7436 hardcode_libdir_flag_spec='-L$libdir'
7437 hardcode_libdir_separator=
7438 fi
7439 ;;
7440 esac
7441 shared_flag='-shared'
7442 if test "$aix_use_runtimelinking" = yes; then
7443 shared_flag="$shared_flag "'${wl}-G'
7444 fi
7445 else
7446 # not using gcc
7447 if test "$host_cpu" = ia64; then
7448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7449 # chokes on -Wl,-G. The following line is correct:
7450 shared_flag='-G'
7451 else
7452 if test "$aix_use_runtimelinking" = yes; then
7453 shared_flag='${wl}-G'
7454 else
7455 shared_flag='${wl}-bM:SRE'
7456 fi
7457 fi
7458 fi
7459
7460 # It seems that -bexpall does not export symbols beginning with
7461 # underscore (_), so it is better to generate a list of symbols to export.
7462 always_export_symbols=yes
7463 if test "$aix_use_runtimelinking" = yes; then
7464 # Warning - without using the other runtime loading flags (-brtl),
7465 # -berok will link without error, but may produce a broken library.
7466 allow_undefined_flag='-berok'
7467 # Determine the default libpath from the value encoded in an
7468 # empty executable.
7469 if test x$gcc_no_link = xyes; then
7470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7472 { (exit 1); exit 1; }; }
7473 fi
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480
7481 int
7482 main ()
7483 {
7484
7485 ;
7486 return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try='test -z "$ac_c_werror_flag"
7499 || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest$ac_exeext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511
7512 lt_aix_libpath_sed='
7513 /Import File Strings/,/^$/ {
7514 /^0/ {
7515 s/^0 *\(.*\)$/\1/
7516 p
7517 }
7518 }'
7519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7520 # Check for a 64-bit object if we didn't find anything.
7521 if test -z "$aix_libpath"; then
7522 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7523 fi
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 fi
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7532
7533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7534 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7535 else
7536 if test "$host_cpu" = ia64; then
7537 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7538 allow_undefined_flag="-z nodefs"
7539 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7540 else
7541 # Determine the default libpath from the value encoded in an
7542 # empty executable.
7543 if test x$gcc_no_link = xyes; then
7544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7546 { (exit 1); exit 1; }; }
7547 fi
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554
7555 int
7556 main ()
7557 {
7558
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
7585
7586 lt_aix_libpath_sed='
7587 /Import File Strings/,/^$/ {
7588 /^0/ {
7589 s/^0 *\(.*\)$/\1/
7590 p
7591 }
7592 }'
7593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7594 # Check for a 64-bit object if we didn't find anything.
7595 if test -z "$aix_libpath"; then
7596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7597 fi
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602 fi
7603 rm -f conftest.err conftest.$ac_objext \
7604 conftest$ac_exeext conftest.$ac_ext
7605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7606
7607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7608 # Warning - without using the other run time loading flags,
7609 # -berok will link without error, but may produce a broken library.
7610 no_undefined_flag=' ${wl}-bernotok'
7611 allow_undefined_flag=' ${wl}-berok'
7612 # Exported symbols can be pulled into shared objects from archives
7613 whole_archive_flag_spec='$convenience'
7614 archive_cmds_need_lc=yes
7615 # This is similar to how AIX traditionally builds its shared libraries.
7616 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7617 fi
7618 fi
7619 ;;
7620
7621 amigaos*)
7622 if test "$host_cpu" = m68k; then
7623 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)'
7624 hardcode_libdir_flag_spec='-L$libdir'
7625 hardcode_minus_L=yes
7626 fi
7627 # see comment about different semantics on the GNU ld section
7628 ld_shlibs=no
7629 ;;
7630
7631 bsdi[45]*)
7632 export_dynamic_flag_spec=-rdynamic
7633 ;;
7634
7635 cygwin* | mingw* | pw32*)
7636 # When not using gcc, we currently assume that we are using
7637 # Microsoft Visual C++.
7638 # hardcode_libdir_flag_spec is actually meaningless, as there is
7639 # no search path for DLLs.
7640 hardcode_libdir_flag_spec=' '
7641 allow_undefined_flag=unsupported
7642 # Tell ltmain to make .lib files, not .a files.
7643 libext=lib
7644 # Tell ltmain to make .dll files, not .so files.
7645 shrext_cmds=".dll"
7646 # FIXME: Setting linknames here is a bad hack.
7647 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7648 # The linker will automatically build a .lib file if we build a DLL.
7649 old_archive_from_new_cmds='true'
7650 # FIXME: Should let the user specify the lib program.
7651 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7652 fix_srcfile_path='`cygpath -w "$srcfile"`'
7653 enable_shared_with_static_runtimes=yes
7654 ;;
7655
7656 darwin* | rhapsody*)
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7660 ;;
7661 *) # Darwin 1.3 on
7662 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7663 10.[012])
7664 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7665 ;;
7666 10.*)
7667 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7668 ;;
7669 esac
7670 ;;
7671 esac
7672 archive_cmds_need_lc=no
7673 hardcode_direct=no
7674 hardcode_automatic=yes
7675 hardcode_shlibpath_var=unsupported
7676 whole_archive_flag_spec=''
7677 link_all_deplibs=yes
7678 if test "$GCC" = yes ; then
7679 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 lt_cv_apple_cc_single_mod=no
7683 if test -z "${LT_MULTI_MODULE}"; then
7684 # By default we will add the -single_module flag. You can override
7685 # by either setting the environment variable LT_MULTI_MODULE
7686 # non-empty at configure time, or by adding -multi-module to the
7687 # link flags.
7688 echo "int foo(void){return 1;}" > conftest.c
7689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690 -dynamiclib ${wl}-single_module conftest.c
7691 if test -f libconftest.dylib; then
7692 lt_cv_apple_cc_single_mod=yes
7693 rm libconftest.dylib
7694 fi
7695 rm conftest.$ac_ext
7696 fi
7697 fi
7698
7699 output_verbose_link_cmd=echo
7700 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7701 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7702 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7703 else
7704 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7705 archive_expsym_cmds='sed "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}'
7706 fi
7707 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7708 module_expsym_cmds='sed -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}'
7709 else
7710 case $cc_basename in
7711 xlc*)
7712 output_verbose_link_cmd=echo
7713 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7714 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7716 archive_expsym_cmds='sed "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}'
7717 module_expsym_cmds='sed "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}'
7718 ;;
7719 *)
7720 ld_shlibs=no
7721 ;;
7722 esac
7723 fi
7724 ;;
7725
7726 dgux*)
7727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7728 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_shlibpath_var=no
7730 ;;
7731
7732 freebsd1*)
7733 ld_shlibs=no
7734 ;;
7735
7736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7737 # support. Future versions do this automatically, but an explicit c++rt0.o
7738 # does not break anything, and helps significantly (at the cost of a little
7739 # extra space).
7740 freebsd2.2*)
7741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7742 hardcode_libdir_flag_spec='-R$libdir'
7743 hardcode_direct=yes
7744 hardcode_shlibpath_var=no
7745 ;;
7746
7747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7748 freebsd2*)
7749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7750 hardcode_direct=yes
7751 hardcode_minus_L=yes
7752 hardcode_shlibpath_var=no
7753 ;;
7754
7755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7756 freebsd* | dragonfly*)
7757 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7758 hardcode_libdir_flag_spec='-R$libdir'
7759 hardcode_direct=yes
7760 hardcode_shlibpath_var=no
7761 ;;
7762
7763 hpux9*)
7764 if test "$GCC" = yes; then
7765 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'
7766 else
7767 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'
7768 fi
7769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7770 hardcode_libdir_separator=:
7771 hardcode_direct=yes
7772
7773 # hardcode_minus_L: Not really in the search PATH,
7774 # but as the default location of the library.
7775 hardcode_minus_L=yes
7776 export_dynamic_flag_spec='${wl}-E'
7777 ;;
7778
7779 hpux10*)
7780 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7782 else
7783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7784 fi
7785 if test "$with_gnu_ld" = no; then
7786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7787 hardcode_libdir_flag_spec_ld='+b $libdir'
7788 hardcode_libdir_separator=:
7789 hardcode_direct=yes
7790 hardcode_direct_absolute=yes
7791 export_dynamic_flag_spec='${wl}-E'
7792 # hardcode_minus_L: Not really in the search PATH,
7793 # but as the default location of the library.
7794 hardcode_minus_L=yes
7795 fi
7796 ;;
7797
7798 hpux11*)
7799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7800 case $host_cpu in
7801 hppa*64*)
7802 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7803 ;;
7804 ia64*)
7805 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7806 ;;
7807 *)
7808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7809 ;;
7810 esac
7811 else
7812 case $host_cpu in
7813 hppa*64*)
7814 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815 ;;
7816 ia64*)
7817 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7818 ;;
7819 *)
7820 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7821 ;;
7822 esac
7823 fi
7824 if test "$with_gnu_ld" = no; then
7825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7826 hardcode_libdir_separator=:
7827
7828 case $host_cpu in
7829 hppa*64*|ia64*)
7830 hardcode_direct=no
7831 hardcode_shlibpath_var=no
7832 ;;
7833 *)
7834 hardcode_direct=yes
7835 hardcode_direct_absolute=yes
7836 export_dynamic_flag_spec='${wl}-E'
7837
7838 # hardcode_minus_L: Not really in the search PATH,
7839 # but as the default location of the library.
7840 hardcode_minus_L=yes
7841 ;;
7842 esac
7843 fi
7844 ;;
7845
7846 irix5* | irix6* | nonstopux*)
7847 if test "$GCC" = yes; then
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7849 # Try to use the -exported_symbol ld option, if it does not
7850 # work, assume that -exports_file does not work either and
7851 # implicitly export all symbols.
7852 save_LDFLAGS="$LDFLAGS"
7853 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7854 if test x$gcc_no_link = xyes; then
7855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7857 { (exit 1); exit 1; }; }
7858 fi
7859 cat >conftest.$ac_ext <<_ACEOF
7860 int foo(void) {}
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7885
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 fi
7891 rm -f conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 LDFLAGS="$save_LDFLAGS"
7894 else
7895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7897 fi
7898 archive_cmds_need_lc='no'
7899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7900 hardcode_libdir_separator=:
7901 inherit_rpath=yes
7902 link_all_deplibs=yes
7903 ;;
7904
7905 netbsd*)
7906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7908 else
7909 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7910 fi
7911 hardcode_libdir_flag_spec='-R$libdir'
7912 hardcode_direct=yes
7913 hardcode_shlibpath_var=no
7914 ;;
7915
7916 newsos6)
7917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7918 hardcode_direct=yes
7919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7920 hardcode_libdir_separator=:
7921 hardcode_shlibpath_var=no
7922 ;;
7923
7924 *nto* | *qnx*)
7925 ;;
7926
7927 openbsd*)
7928 hardcode_direct=yes
7929 hardcode_shlibpath_var=no
7930 hardcode_direct_absolute=yes
7931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935 export_dynamic_flag_spec='${wl}-E'
7936 else
7937 case $host_os in
7938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7940 hardcode_libdir_flag_spec='-R$libdir'
7941 ;;
7942 *)
7943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945 ;;
7946 esac
7947 fi
7948 ;;
7949
7950 os2*)
7951 hardcode_libdir_flag_spec='-L$libdir'
7952 hardcode_minus_L=yes
7953 allow_undefined_flag=unsupported
7954 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'
7955 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7956 ;;
7957
7958 osf3*)
7959 if test "$GCC" = yes; then
7960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7961 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7962 else
7963 allow_undefined_flag=' -expect_unresolved \*'
7964 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7965 fi
7966 archive_cmds_need_lc='no'
7967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7968 hardcode_libdir_separator=:
7969 ;;
7970
7971 osf4* | osf5*) # as osf3* with the addition of -msym flag
7972 if test "$GCC" = yes; then
7973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7974 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976 else
7977 allow_undefined_flag=' -expect_unresolved \*'
7978 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7979 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7980 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7981
7982 # Both c and cxx compiler support -rpath directly
7983 hardcode_libdir_flag_spec='-rpath $libdir'
7984 fi
7985 archive_cmds_need_lc='no'
7986 hardcode_libdir_separator=:
7987 ;;
7988
7989 solaris*)
7990 no_undefined_flag=' -z defs'
7991 if test "$GCC" = yes; then
7992 wlarc='${wl}'
7993 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7995 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7996 else
7997 case `$CC -V 2>&1` in
7998 *"Compilers 5.0"*)
7999 wlarc=''
8000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8003 ;;
8004 *)
8005 wlarc='${wl}'
8006 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8008 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8009 ;;
8010 esac
8011 fi
8012 hardcode_libdir_flag_spec='-R$libdir'
8013 hardcode_shlibpath_var=no
8014 case $host_os in
8015 solaris2.[0-5] | solaris2.[0-5].*) ;;
8016 *)
8017 # The compiler driver will combine and reorder linker options,
8018 # but understands `-z linker_flag'. GCC discards it without `$wl',
8019 # but is careful enough not to reorder.
8020 # Supported since Solaris 2.6 (maybe 2.5.1?)
8021 if test "$GCC" = yes; then
8022 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8023 else
8024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8025 fi
8026 ;;
8027 esac
8028 link_all_deplibs=yes
8029 ;;
8030
8031 sunos4*)
8032 if test "x$host_vendor" = xsequent; then
8033 # Use $CC to link under sequent, because it throws in some extra .o
8034 # files that make .init and .fini sections work.
8035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8036 else
8037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8038 fi
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_direct=yes
8041 hardcode_minus_L=yes
8042 hardcode_shlibpath_var=no
8043 ;;
8044
8045 sysv4)
8046 case $host_vendor in
8047 sni)
8048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049 hardcode_direct=yes # is this really true???
8050 ;;
8051 siemens)
8052 ## LD is ld it makes a PLAMLIB
8053 ## CC just makes a GrossModule.
8054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8055 reload_cmds='$CC -r -o $output$reload_objs'
8056 hardcode_direct=no
8057 ;;
8058 motorola)
8059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8061 ;;
8062 esac
8063 runpath_var='LD_RUN_PATH'
8064 hardcode_shlibpath_var=no
8065 ;;
8066
8067 sysv4.3*)
8068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8069 hardcode_shlibpath_var=no
8070 export_dynamic_flag_spec='-Bexport'
8071 ;;
8072
8073 sysv4*MP*)
8074 if test -d /usr/nec; then
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_shlibpath_var=no
8077 runpath_var=LD_RUN_PATH
8078 hardcode_runpath_var=yes
8079 ld_shlibs=yes
8080 fi
8081 ;;
8082
8083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8084 no_undefined_flag='${wl}-z,text'
8085 archive_cmds_need_lc=no
8086 hardcode_shlibpath_var=no
8087 runpath_var='LD_RUN_PATH'
8088
8089 if test "$GCC" = yes; then
8090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8091 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8092 else
8093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8094 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8095 fi
8096 ;;
8097
8098 sysv5* | sco3.2v5* | sco5v6*)
8099 # Note: We can NOT use -z defs as we might desire, because we do not
8100 # link with -lc, and that would cause any symbols used from libc to
8101 # always be unresolved, which means just about no library would
8102 # ever link correctly. If we're not using GNU ld we use -z text
8103 # though, which does catch some bad symbols but isn't as heavy-handed
8104 # as -z defs.
8105 no_undefined_flag='${wl}-z,text'
8106 allow_undefined_flag='${wl}-z,nodefs'
8107 archive_cmds_need_lc=no
8108 hardcode_shlibpath_var=no
8109 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8110 hardcode_libdir_separator=':'
8111 link_all_deplibs=yes
8112 export_dynamic_flag_spec='${wl}-Bexport'
8113 runpath_var='LD_RUN_PATH'
8114
8115 if test "$GCC" = yes; then
8116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8118 else
8119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8121 fi
8122 ;;
8123
8124 uts4*)
8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_libdir_flag_spec='-L$libdir'
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 *)
8131 ld_shlibs=no
8132 ;;
8133 esac
8134
8135 if test x$host_vendor = xsni; then
8136 case $host in
8137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8138 export_dynamic_flag_spec='${wl}-Blargedynsym'
8139 ;;
8140 esac
8141 fi
8142 fi
8143
8144 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8145 echo "${ECHO_T}$ld_shlibs" >&6
8146 test "$ld_shlibs" = no && can_build_shared=no
8147
8148 with_gnu_ld=$with_gnu_ld
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164 #
8165 # Do we need to explicitly link libc?
8166 #
8167 case "x$archive_cmds_need_lc" in
8168 x|xyes)
8169 # Assume -lc should be added
8170 archive_cmds_need_lc=yes
8171
8172 if test "$enable_shared" = yes && test "$GCC" = yes; then
8173 case $archive_cmds in
8174 *'~'*)
8175 # FIXME: we may have to deal with multi-command sequences.
8176 ;;
8177 '$CC '*)
8178 # Test whether the compiler implicitly links with -lc since on some
8179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8180 # to ld, don't add -lc before -lgcc.
8181 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8183 $RM conftest*
8184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } 2>conftest.err; then
8191 soname=conftest
8192 lib=conftest
8193 libobjs=conftest.$ac_objext
8194 deplibs=
8195 wl=$lt_prog_compiler_wl
8196 pic_flag=$lt_prog_compiler_pic
8197 compiler_flags=-v
8198 linker_flags=-v
8199 verstring=
8200 output_objdir=.
8201 libname=conftest
8202 lt_save_allow_undefined_flag=$allow_undefined_flag
8203 allow_undefined_flag=
8204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8205 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }
8209 then
8210 archive_cmds_need_lc=no
8211 else
8212 archive_cmds_need_lc=yes
8213 fi
8214 allow_undefined_flag=$lt_save_allow_undefined_flag
8215 else
8216 cat conftest.err 1>&5
8217 fi
8218 $RM conftest*
8219 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8220 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8221 ;;
8222 esac
8223 fi
8224 ;;
8225 esac
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8384 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8385 withGCC=$GCC
8386 if test "$withGCC" = yes; then
8387 case $host_os in
8388 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8389 *) lt_awk_arg="/^libraries:/" ;;
8390 esac
8391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8392 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8393 # if the path contains ";" then we assume it to be the separator
8394 # otherwise default to the standard path separator (i.e. ":") - it is
8395 # assumed that no part of a normal pathname contains ";" but that should
8396 # okay in the real world where ";" in dirpaths is itself problematic.
8397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8398 else
8399 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8400 fi
8401 # Ok, now we have the path, separated by spaces, we can step through it
8402 # and add multilib dir if necessary.
8403 lt_tmp_lt_search_path_spec=
8404 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8405 for lt_sys_path in $lt_search_path_spec; do
8406 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8408 else
8409 test -d "$lt_sys_path" && \
8410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8411 fi
8412 done
8413 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8414 BEGIN {RS=" "; FS="/|\n";} {
8415 lt_foo="";
8416 lt_count=0;
8417 for (lt_i = NF; lt_i > 0; lt_i--) {
8418 if ($lt_i != "" && $lt_i != ".") {
8419 if ($lt_i == "..") {
8420 lt_count++;
8421 } else {
8422 if (lt_count == 0) {
8423 lt_foo="/" $lt_i lt_foo;
8424 } else {
8425 lt_count--;
8426 }
8427 }
8428 }
8429 }
8430 if (lt_foo != "") { lt_freq[lt_foo]++; }
8431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8432 }'`
8433 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8434 else
8435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8436 fi
8437 library_names_spec=
8438 libname_spec='lib$name'
8439 soname_spec=
8440 shrext_cmds=".so"
8441 postinstall_cmds=
8442 postuninstall_cmds=
8443 finish_cmds=
8444 finish_eval=
8445 shlibpath_var=
8446 shlibpath_overrides_runpath=unknown
8447 version_type=none
8448 dynamic_linker="$host_os ld.so"
8449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8450 need_lib_prefix=unknown
8451 hardcode_into_libs=no
8452
8453 # when you set need_version to no, make sure it does not cause -set_version
8454 # flags to be left without arguments
8455 need_version=unknown
8456
8457 case $host_os in
8458 aix3*)
8459 version_type=linux
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8461 shlibpath_var=LIBPATH
8462
8463 # AIX 3 has no versioning support, so we append a major version to the name.
8464 soname_spec='${libname}${release}${shared_ext}$major'
8465 ;;
8466
8467 aix4* | aix5*)
8468 version_type=linux
8469 need_lib_prefix=no
8470 need_version=no
8471 hardcode_into_libs=yes
8472 if test "$host_cpu" = ia64; then
8473 # AIX 5 supports IA64
8474 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8475 shlibpath_var=LD_LIBRARY_PATH
8476 else
8477 # With GCC up to 2.95.x, collect2 would create an import file
8478 # for dependence libraries. The import file would start with
8479 # the line `#! .'. This would cause the generated library to
8480 # depend on `.', always an invalid library. This was fixed in
8481 # development snapshots of GCC prior to 3.0.
8482 case $host_os in
8483 aix4 | aix4.[01] | aix4.[01].*)
8484 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8485 echo ' yes '
8486 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8487 :
8488 else
8489 can_build_shared=no
8490 fi
8491 ;;
8492 esac
8493 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8494 # soname into executable. Probably we can add versioning support to
8495 # collect2, so additional links can be useful in future.
8496 if test "$aix_use_runtimelinking" = yes; then
8497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8498 # instead of lib<name>.a to let people know that these are not
8499 # typical AIX shared libraries.
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501 else
8502 # We preserve .a as extension for shared libraries through AIX4.2
8503 # and later when we are not doing run time linking.
8504 library_names_spec='${libname}${release}.a $libname.a'
8505 soname_spec='${libname}${release}${shared_ext}$major'
8506 fi
8507 shlibpath_var=LIBPATH
8508 fi
8509 ;;
8510
8511 amigaos*)
8512 if test "$host_cpu" = m68k; then
8513 library_names_spec='$libname.ixlibrary $libname.a'
8514 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8515 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'
8516 else
8517 dynamic_linker=no
8518 fi
8519 ;;
8520
8521 beos*)
8522 library_names_spec='${libname}${shared_ext}'
8523 dynamic_linker="$host_os ld.so"
8524 shlibpath_var=LIBRARY_PATH
8525 ;;
8526
8527 bsdi[45]*)
8528 version_type=linux
8529 need_version=no
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8536 # the default ld.so.conf also contains /usr/contrib/lib and
8537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8538 # libtool to hard-code these into programs
8539 ;;
8540
8541 cygwin* | mingw* | pw32*)
8542 version_type=windows
8543 shrext_cmds=".dll"
8544 need_version=no
8545 need_lib_prefix=no
8546
8547 case $withGCC,$host_os in
8548 yes,cygwin* | yes,mingw* | yes,pw32*)
8549 library_names_spec='$libname.dll.a'
8550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8551 postinstall_cmds='base_file=`basename \${file}`~
8552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8553 dldir=$destdir/`dirname \$dlpath`~
8554 test -d \$dldir || mkdir -p \$dldir~
8555 $install_prog $dir/$dlname \$dldir/$dlname~
8556 chmod a+x \$dldir/$dlname~
8557 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8558 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8559 fi'
8560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8561 dlpath=$dir/\$dldll~
8562 $RM \$dlpath'
8563 shlibpath_overrides_runpath=yes
8564
8565 case $host_os in
8566 cygwin*)
8567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8569 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8570 ;;
8571 mingw*)
8572 # MinGW DLLs use traditional 'lib' prefix
8573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8574 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8576 # It is most probably a Windows format PATH printed by
8577 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8578 # path with ; separators, and with drive letters. We can handle the
8579 # drive letters (cygwin fileutils understands them), so leave them,
8580 # especially as we might pass files found there to a mingw objdump,
8581 # which wouldn't understand a cygwinified path. Ahh.
8582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8583 else
8584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 fi
8586 ;;
8587 pw32*)
8588 # pw32 DLLs use 'pw' prefix rather than 'lib'
8589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590 ;;
8591 esac
8592 ;;
8593
8594 *)
8595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8596 ;;
8597 esac
8598 dynamic_linker='Win32 ld.exe'
8599 # FIXME: first we should search . and the directory the executable is in
8600 shlibpath_var=PATH
8601 ;;
8602
8603 darwin* | rhapsody*)
8604 dynamic_linker="$host_os dyld"
8605 version_type=darwin
8606 need_lib_prefix=no
8607 need_version=no
8608 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8609 soname_spec='${libname}${release}${major}$shared_ext'
8610 shlibpath_overrides_runpath=yes
8611 shlibpath_var=DYLD_LIBRARY_PATH
8612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8613
8614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8616 ;;
8617
8618 dgux*)
8619 version_type=linux
8620 need_lib_prefix=no
8621 need_version=no
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 ;;
8626
8627 freebsd1*)
8628 dynamic_linker=no
8629 ;;
8630
8631 freebsd* | dragonfly*)
8632 # DragonFly does not have aout. When/if they implement a new
8633 # versioning mechanism, adjust this.
8634 if test -x /usr/bin/objformat; then
8635 objformat=`/usr/bin/objformat`
8636 else
8637 case $host_os in
8638 freebsd[123]*) objformat=aout ;;
8639 *) objformat=elf ;;
8640 esac
8641 fi
8642 version_type=freebsd-$objformat
8643 case $version_type in
8644 freebsd-elf*)
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8646 need_version=no
8647 need_lib_prefix=no
8648 ;;
8649 freebsd-*)
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8651 need_version=yes
8652 ;;
8653 esac
8654 shlibpath_var=LD_LIBRARY_PATH
8655 case $host_os in
8656 freebsd2*)
8657 shlibpath_overrides_runpath=yes
8658 ;;
8659 freebsd3.[01]* | freebsdelf3.[01]*)
8660 shlibpath_overrides_runpath=yes
8661 hardcode_into_libs=yes
8662 ;;
8663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8665 shlibpath_overrides_runpath=no
8666 hardcode_into_libs=yes
8667 ;;
8668 *) # from 4.6 on, and DragonFly
8669 shlibpath_overrides_runpath=yes
8670 hardcode_into_libs=yes
8671 ;;
8672 esac
8673 ;;
8674
8675 gnu*)
8676 version_type=linux
8677 need_lib_prefix=no
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 hardcode_into_libs=yes
8683 ;;
8684
8685 hpux9* | hpux10* | hpux11*)
8686 # Give a soname corresponding to the major version so that dld.sl refuses to
8687 # link against other versions.
8688 version_type=sunos
8689 need_lib_prefix=no
8690 need_version=no
8691 case $host_cpu in
8692 ia64*)
8693 shrext_cmds='.so'
8694 hardcode_into_libs=yes
8695 dynamic_linker="$host_os dld.so"
8696 shlibpath_var=LD_LIBRARY_PATH
8697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 if test "X$HPUX_IA64_MODE" = X32; then
8701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8702 else
8703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8704 fi
8705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8706 ;;
8707 hppa*64*)
8708 shrext_cmds='.sl'
8709 hardcode_into_libs=yes
8710 dynamic_linker="$host_os dld.sl"
8711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8717 ;;
8718 *)
8719 shrext_cmds='.sl'
8720 dynamic_linker="$host_os dld.sl"
8721 shlibpath_var=SHLIB_PATH
8722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 ;;
8726 esac
8727 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8728 postinstall_cmds='chmod 555 $lib'
8729 ;;
8730
8731 interix[3-9]*)
8732 version_type=linux
8733 need_lib_prefix=no
8734 need_version=no
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8738 shlibpath_var=LD_LIBRARY_PATH
8739 shlibpath_overrides_runpath=no
8740 hardcode_into_libs=yes
8741 ;;
8742
8743 irix5* | irix6* | nonstopux*)
8744 case $host_os in
8745 nonstopux*) version_type=nonstopux ;;
8746 *)
8747 if test "$lt_cv_prog_gnu_ld" = yes; then
8748 version_type=linux
8749 else
8750 version_type=irix
8751 fi ;;
8752 esac
8753 need_lib_prefix=no
8754 need_version=no
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8757 case $host_os in
8758 irix5* | nonstopux*)
8759 libsuff= shlibsuff=
8760 ;;
8761 *)
8762 case $LD in # libtool.m4 will add one of these switches to LD
8763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8764 libsuff= shlibsuff= libmagic=32-bit;;
8765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8766 libsuff=32 shlibsuff=N32 libmagic=N32;;
8767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8769 *) libsuff= shlibsuff= libmagic=never-match;;
8770 esac
8771 ;;
8772 esac
8773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8774 shlibpath_overrides_runpath=no
8775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8777 hardcode_into_libs=yes
8778 ;;
8779
8780 # No shared lib support for Linux oldld, aout, or coff.
8781 linux*oldld* | linux*aout* | linux*coff*)
8782 dynamic_linker=no
8783 ;;
8784
8785 # This must be Linux ELF.
8786 linux* | k*bsd*-gnu)
8787 version_type=linux
8788 need_lib_prefix=no
8789 need_version=no
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 shlibpath_overrides_runpath=no
8795 # Some binutils ld are patched to set DT_RUNPATH
8796 save_LDFLAGS=$LDFLAGS
8797 save_libdir=$libdir
8798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8800 if test x$gcc_no_link = xyes; then
8801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8803 { (exit 1); exit 1; }; }
8804 fi
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811
8812 int
8813 main ()
8814 {
8815
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag"
8830 || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8843 shlibpath_overrides_runpath=yes
8844 fi
8845
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 fi
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LDFLAGS=$save_LDFLAGS
8854 libdir=$save_libdir
8855
8856 # This implies no fast_install, which is unacceptable.
8857 # Some rework will be needed to allow for fast_install
8858 # before this can be enabled.
8859 hardcode_into_libs=yes
8860
8861 # Append ld.so.conf contents to the search path
8862 if test -f /etc/ld.so.conf; then
8863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8865 fi
8866
8867 # We used to test for /lib/ld.so.1 and disable shared libraries on
8868 # powerpc, because MkLinux only supported shared libraries with the
8869 # GNU dynamic linker. Since this was broken with cross compilers,
8870 # most powerpc-linux boxes support dynamic linking these days and
8871 # people can always --disable-shared, the test was removed, and we
8872 # assume the GNU/Linux dynamic linker is in use.
8873 dynamic_linker='GNU/Linux ld.so'
8874 ;;
8875
8876 netbsd*)
8877 version_type=sunos
8878 need_lib_prefix=no
8879 need_version=no
8880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8883 dynamic_linker='NetBSD (a.out) ld.so'
8884 else
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 dynamic_linker='NetBSD ld.elf_so'
8888 fi
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes
8891 hardcode_into_libs=yes
8892 ;;
8893
8894 newsos6)
8895 version_type=linux
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=yes
8899 ;;
8900
8901 *nto* | *qnx*)
8902 version_type=qnx
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=no
8909 hardcode_into_libs=yes
8910 dynamic_linker='ldqnx.so'
8911 ;;
8912
8913 openbsd*)
8914 version_type=sunos
8915 sys_lib_dlsearch_path_spec="/usr/lib"
8916 need_lib_prefix=no
8917 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8918 case $host_os in
8919 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8920 *) need_version=no ;;
8921 esac
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8926 case $host_os in
8927 openbsd2.[89] | openbsd2.[89].*)
8928 shlibpath_overrides_runpath=no
8929 ;;
8930 *)
8931 shlibpath_overrides_runpath=yes
8932 ;;
8933 esac
8934 else
8935 shlibpath_overrides_runpath=yes
8936 fi
8937 ;;
8938
8939 os2*)
8940 libname_spec='$name'
8941 shrext_cmds=".dll"
8942 need_lib_prefix=no
8943 library_names_spec='$libname${shared_ext} $libname.a'
8944 dynamic_linker='OS/2 ld.exe'
8945 shlibpath_var=LIBPATH
8946 ;;
8947
8948 osf3* | osf4* | osf5*)
8949 version_type=osf
8950 need_lib_prefix=no
8951 need_version=no
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8956 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8957 ;;
8958
8959 rdos*)
8960 dynamic_linker=no
8961 ;;
8962
8963 solaris*)
8964 version_type=linux
8965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 hardcode_into_libs=yes
8972 # ldd complains unless libraries are executable
8973 postinstall_cmds='chmod +x $lib'
8974 ;;
8975
8976 sunos4*)
8977 version_type=sunos
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8982 if test "$with_gnu_ld" = yes; then
8983 need_lib_prefix=no
8984 fi
8985 need_version=yes
8986 ;;
8987
8988 sysv4 | sysv4.3*)
8989 version_type=linux
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 case $host_vendor in
8994 sni)
8995 shlibpath_overrides_runpath=no
8996 need_lib_prefix=no
8997 runpath_var=LD_RUN_PATH
8998 ;;
8999 siemens)
9000 need_lib_prefix=no
9001 ;;
9002 motorola)
9003 need_lib_prefix=no
9004 need_version=no
9005 shlibpath_overrides_runpath=no
9006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9007 ;;
9008 esac
9009 ;;
9010
9011 sysv4*MP*)
9012 if test -d /usr/nec ;then
9013 version_type=linux
9014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9015 soname_spec='$libname${shared_ext}.$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 fi
9018 ;;
9019
9020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9021 version_type=freebsd-elf
9022 need_lib_prefix=no
9023 need_version=no
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9029 if test "$with_gnu_ld" = yes; then
9030 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9031 else
9032 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9033 case $host_os in
9034 sco3.2v5*)
9035 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9036 ;;
9037 esac
9038 fi
9039 sys_lib_dlsearch_path_spec='/usr/lib'
9040 ;;
9041
9042 tpf*)
9043 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9044 version_type=linux
9045 need_lib_prefix=no
9046 need_version=no
9047 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=no
9050 hardcode_into_libs=yes
9051 ;;
9052
9053 uts4*)
9054 version_type=linux
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 ;;
9059
9060 *)
9061 dynamic_linker=no
9062 ;;
9063 esac
9064 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9065 echo "${ECHO_T}$dynamic_linker" >&6
9066 test "$dynamic_linker" = no && can_build_shared=no
9067
9068 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9069 if test "$GCC" = yes; then
9070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9160 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9161 hardcode_action=
9162 if test -n "$hardcode_libdir_flag_spec" ||
9163 test -n "$runpath_var" ||
9164 test "X$hardcode_automatic" = "Xyes" ; then
9165
9166 # We can hardcode non-existent directories.
9167 if test "$hardcode_direct" != no &&
9168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9169 # have to relink, otherwise we might link with an installed library
9170 # when we should be linking with a yet-to-be-installed one
9171 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9172 test "$hardcode_minus_L" != no; then
9173 # Linking always hardcodes the temporary library directory.
9174 hardcode_action=relink
9175 else
9176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9177 hardcode_action=immediate
9178 fi
9179 else
9180 # We cannot hardcode anything, or else we can only hardcode existing
9181 # directories.
9182 hardcode_action=unsupported
9183 fi
9184 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9185 echo "${ECHO_T}$hardcode_action" >&6
9186
9187 if test "$hardcode_action" = relink ||
9188 test "$inherit_rpath" = yes; then
9189 # Fast installation is not supported
9190 enable_fast_install=no
9191 elif test "$shlibpath_overrides_runpath" = yes ||
9192 test "$enable_shared" = no; then
9193 # Fast installation is not necessary
9194 enable_fast_install=needless
9195 fi
9196
9197
9198
9199
9200
9201
9202 if test "x$enable_dlopen" != xyes; then
9203 enable_dlopen=unknown
9204 enable_dlopen_self=unknown
9205 enable_dlopen_self_static=unknown
9206 else
9207 lt_cv_dlopen=no
9208 lt_cv_dlopen_libs=
9209
9210 case $host_os in
9211 beos*)
9212 lt_cv_dlopen="load_add_on"
9213 lt_cv_dlopen_libs=
9214 lt_cv_dlopen_self=yes
9215 ;;
9216
9217 mingw* | pw32*)
9218 lt_cv_dlopen="LoadLibrary"
9219 lt_cv_dlopen_libs=
9220 ;;
9221
9222 cygwin*)
9223 lt_cv_dlopen="dlopen"
9224 lt_cv_dlopen_libs=
9225 ;;
9226
9227 darwin*)
9228 # if libdl is installed we need to link against it
9229 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9230 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234 ac_check_lib_save_LIBS=$LIBS
9235 LIBS="-ldl $LIBS"
9236 if test x$gcc_no_link = xyes; then
9237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9239 { (exit 1); exit 1; }; }
9240 fi
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9254 char dlopen ();
9255 int
9256 main ()
9257 {
9258 dlopen ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 ac_cv_lib_dl_dlopen=yes
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 ac_cv_lib_dl_dlopen=no
9291 fi
9292 rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9295 fi
9296 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9297 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9298 if test $ac_cv_lib_dl_dlopen = yes; then
9299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9300 else
9301
9302 lt_cv_dlopen="dyld"
9303 lt_cv_dlopen_libs=
9304 lt_cv_dlopen_self=yes
9305
9306 fi
9307
9308 ;;
9309
9310 *)
9311 echo "$as_me:$LINENO: checking for shl_load" >&5
9312 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9313 if test "${ac_cv_func_shl_load+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316 if test x$gcc_no_link = xyes; then
9317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9319 { (exit 1); exit 1; }; }
9320 fi
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9329 #define shl_load innocuous_shl_load
9330
9331 /* System header to define __stub macros and hopefully few prototypes,
9332 which can conflict with char shl_load (); below.
9333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9334 <limits.h> exists even on freestanding compilers. */
9335
9336 #ifdef __STDC__
9337 # include <limits.h>
9338 #else
9339 # include <assert.h>
9340 #endif
9341
9342 #undef shl_load
9343
9344 /* Override any gcc2 internal prototype to avoid an error. */
9345 #ifdef __cplusplus
9346 extern "C"
9347 {
9348 #endif
9349 /* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */
9351 char shl_load ();
9352 /* The GNU C library defines this for functions which it implements
9353 to always fail with ENOSYS. Some functions are actually named
9354 something starting with __ and the normal name is an alias. */
9355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9356 choke me
9357 #else
9358 char (*f) () = shl_load;
9359 #endif
9360 #ifdef __cplusplus
9361 }
9362 #endif
9363
9364 int
9365 main ()
9366 {
9367 return f != shl_load;
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_func_shl_load=yes
9395 else
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_func_shl_load=no
9400 fi
9401 rm -f conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 fi
9404 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9406 if test $ac_cv_func_shl_load = yes; then
9407 lt_cv_dlopen="shl_load"
9408 else
9409 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 ac_check_lib_save_LIBS=$LIBS
9415 LIBS="-ldld $LIBS"
9416 if test x$gcc_no_link = xyes; then
9417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9419 { (exit 1); exit 1; }; }
9420 fi
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427
9428 /* Override any gcc2 internal prototype to avoid an error. */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char shl_load ();
9435 int
9436 main ()
9437 {
9438 shl_load ();
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_lib_dld_shl_load=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_lib_dld_shl_load=no
9471 fi
9472 rm -f conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LIBS=$ac_check_lib_save_LIBS
9475 fi
9476 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9477 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9478 if test $ac_cv_lib_dld_shl_load = yes; then
9479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9480 else
9481 echo "$as_me:$LINENO: checking for dlopen" >&5
9482 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9483 if test "${ac_cv_func_dlopen+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 if test x$gcc_no_link = xyes; then
9487 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9489 { (exit 1); exit 1; }; }
9490 fi
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define dlopen innocuous_dlopen
9500
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char dlopen (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9505
9506 #ifdef __STDC__
9507 # include <limits.h>
9508 #else
9509 # include <assert.h>
9510 #endif
9511
9512 #undef dlopen
9513
9514 /* Override any gcc2 internal prototype to avoid an error. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char dlopen ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9526 choke me
9527 #else
9528 char (*f) () = dlopen;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != dlopen;
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_func_dlopen=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_cv_func_dlopen=no
9570 fi
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 fi
9574 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9575 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9576 if test $ac_cv_func_dlopen = yes; then
9577 lt_cv_dlopen="dlopen"
9578 else
9579 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9580 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584 ac_check_lib_save_LIBS=$LIBS
9585 LIBS="-ldl $LIBS"
9586 if test x$gcc_no_link = xyes; then
9587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597
9598 /* Override any gcc2 internal prototype to avoid an error. */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 /* We use char because int might match the return type of a gcc2
9603 builtin and then its argument prototype would still apply. */
9604 char dlopen ();
9605 int
9606 main ()
9607 {
9608 dlopen ();
9609 ;
9610 return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_c_werror_flag"
9623 || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_lib_dl_dlopen=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_cv_lib_dl_dlopen=no
9641 fi
9642 rm -f conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LIBS=$ac_check_lib_save_LIBS
9645 fi
9646 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9647 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9648 if test $ac_cv_lib_dl_dlopen = yes; then
9649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9650 else
9651 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9652 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9653 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lsvld $LIBS"
9658 if test x$gcc_no_link = xyes; then
9659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9661 { (exit 1); exit 1; }; }
9662 fi
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669
9670 /* Override any gcc2 internal prototype to avoid an error. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9676 char dlopen ();
9677 int
9678 main ()
9679 {
9680 dlopen ();
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -z "$ac_c_werror_flag"
9695 || test ! -s conftest.err'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 (eval $ac_try) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; } &&
9701 { ac_try='test -s conftest$ac_exeext'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_lib_svld_dlopen=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712 ac_cv_lib_svld_dlopen=no
9713 fi
9714 rm -f conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9717 fi
9718 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9720 if test $ac_cv_lib_svld_dlopen = yes; then
9721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9722 else
9723 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldld $LIBS"
9730 if test x$gcc_no_link = xyes; then
9731 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9733 { (exit 1); exit 1; }; }
9734 fi
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char dld_link ();
9749 int
9750 main ()
9751 {
9752 dld_link ();
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_lib_dld_dld_link=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_cv_lib_dld_dld_link=no
9785 fi
9786 rm -f conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LIBS=$ac_check_lib_save_LIBS
9789 fi
9790 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9791 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9792 if test $ac_cv_lib_dld_dld_link = yes; then
9793 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9794 fi
9795
9796
9797 fi
9798
9799
9800 fi
9801
9802
9803 fi
9804
9805
9806 fi
9807
9808
9809 fi
9810
9811 ;;
9812 esac
9813
9814 if test "x$lt_cv_dlopen" != xno; then
9815 enable_dlopen=yes
9816 else
9817 enable_dlopen=no
9818 fi
9819
9820 case $lt_cv_dlopen in
9821 dlopen)
9822 save_CPPFLAGS="$CPPFLAGS"
9823 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9824
9825 save_LDFLAGS="$LDFLAGS"
9826 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9827
9828 save_LIBS="$LIBS"
9829 LIBS="$lt_cv_dlopen_libs $LIBS"
9830
9831 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9832 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9833 if test "${lt_cv_dlopen_self+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 if test "$cross_compiling" = yes; then :
9837 lt_cv_dlopen_self=cross
9838 else
9839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9840 lt_status=$lt_dlunknown
9841 cat > conftest.$ac_ext <<_LT_EOF
9842 #line 9842 "configure"
9843 #include "confdefs.h"
9844
9845 #if HAVE_DLFCN_H
9846 #include <dlfcn.h>
9847 #endif
9848
9849 #include <stdio.h>
9850
9851 #ifdef RTLD_GLOBAL
9852 # define LT_DLGLOBAL RTLD_GLOBAL
9853 #else
9854 # ifdef DL_GLOBAL
9855 # define LT_DLGLOBAL DL_GLOBAL
9856 # else
9857 # define LT_DLGLOBAL 0
9858 # endif
9859 #endif
9860
9861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9862 find out it does not work in some platform. */
9863 #ifndef LT_DLLAZY_OR_NOW
9864 # ifdef RTLD_LAZY
9865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9866 # else
9867 # ifdef DL_LAZY
9868 # define LT_DLLAZY_OR_NOW DL_LAZY
9869 # else
9870 # ifdef RTLD_NOW
9871 # define LT_DLLAZY_OR_NOW RTLD_NOW
9872 # else
9873 # ifdef DL_NOW
9874 # define LT_DLLAZY_OR_NOW DL_NOW
9875 # else
9876 # define LT_DLLAZY_OR_NOW 0
9877 # endif
9878 # endif
9879 # endif
9880 # endif
9881 #endif
9882
9883 #ifdef __cplusplus
9884 extern "C" void exit (int);
9885 #endif
9886
9887 void fnord() { int i=42;}
9888 int main ()
9889 {
9890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9891 int status = $lt_dlunknown;
9892
9893 if (self)
9894 {
9895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9897 /* dlclose (self); */
9898 }
9899 else
9900 puts (dlerror ());
9901
9902 exit (status);
9903 }
9904 _LT_EOF
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9910 (./conftest; exit; ) >&5 2>/dev/null
9911 lt_status=$?
9912 case x$lt_status in
9913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9915 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9916 esac
9917 else :
9918 # compilation failed
9919 lt_cv_dlopen_self=no
9920 fi
9921 fi
9922 rm -fr conftest*
9923
9924
9925 fi
9926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9927 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9928
9929 if test "x$lt_cv_dlopen_self" = xyes; then
9930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9931 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9932 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9933 if test "${lt_cv_dlopen_self_static+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 if test "$cross_compiling" = yes; then :
9937 lt_cv_dlopen_self_static=cross
9938 else
9939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9940 lt_status=$lt_dlunknown
9941 cat > conftest.$ac_ext <<_LT_EOF
9942 #line 9942 "configure"
9943 #include "confdefs.h"
9944
9945 #if HAVE_DLFCN_H
9946 #include <dlfcn.h>
9947 #endif
9948
9949 #include <stdio.h>
9950
9951 #ifdef RTLD_GLOBAL
9952 # define LT_DLGLOBAL RTLD_GLOBAL
9953 #else
9954 # ifdef DL_GLOBAL
9955 # define LT_DLGLOBAL DL_GLOBAL
9956 # else
9957 # define LT_DLGLOBAL 0
9958 # endif
9959 #endif
9960
9961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9962 find out it does not work in some platform. */
9963 #ifndef LT_DLLAZY_OR_NOW
9964 # ifdef RTLD_LAZY
9965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9966 # else
9967 # ifdef DL_LAZY
9968 # define LT_DLLAZY_OR_NOW DL_LAZY
9969 # else
9970 # ifdef RTLD_NOW
9971 # define LT_DLLAZY_OR_NOW RTLD_NOW
9972 # else
9973 # ifdef DL_NOW
9974 # define LT_DLLAZY_OR_NOW DL_NOW
9975 # else
9976 # define LT_DLLAZY_OR_NOW 0
9977 # endif
9978 # endif
9979 # endif
9980 # endif
9981 #endif
9982
9983 #ifdef __cplusplus
9984 extern "C" void exit (int);
9985 #endif
9986
9987 void fnord() { int i=42;}
9988 int main ()
9989 {
9990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9991 int status = $lt_dlunknown;
9992
9993 if (self)
9994 {
9995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9997 /* dlclose (self); */
9998 }
9999 else
10000 puts (dlerror ());
10001
10002 exit (status);
10003 }
10004 _LT_EOF
10005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006 (eval $ac_link) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10010 (./conftest; exit; ) >&5 2>/dev/null
10011 lt_status=$?
10012 case x$lt_status in
10013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10016 esac
10017 else :
10018 # compilation failed
10019 lt_cv_dlopen_self_static=no
10020 fi
10021 fi
10022 rm -fr conftest*
10023
10024
10025 fi
10026 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10027 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10028 fi
10029
10030 CPPFLAGS="$save_CPPFLAGS"
10031 LDFLAGS="$save_LDFLAGS"
10032 LIBS="$save_LIBS"
10033 ;;
10034 esac
10035
10036 case $lt_cv_dlopen_self in
10037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10038 *) enable_dlopen_self=unknown ;;
10039 esac
10040
10041 case $lt_cv_dlopen_self_static in
10042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10043 *) enable_dlopen_self_static=unknown ;;
10044 esac
10045 fi
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063 striplib=
10064 old_striplib=
10065 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10070 echo "$as_me:$LINENO: result: yes" >&5
10071 echo "${ECHO_T}yes" >&6
10072 else
10073 # FIXME - insert some real tests, host_os isn't really good enough
10074 case $host_os in
10075 darwin*)
10076 if test -n "$STRIP" ; then
10077 striplib="$STRIP -x"
10078 old_striplib="$STRIP -S"
10079 echo "$as_me:$LINENO: result: yes" >&5
10080 echo "${ECHO_T}yes" >&6
10081 else
10082 echo "$as_me:$LINENO: result: no" >&5
10083 echo "${ECHO_T}no" >&6
10084 fi
10085 ;;
10086 *)
10087 echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10089 ;;
10090 esac
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 # Report which library types will actually be built
10105 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10106 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10107 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10108 echo "${ECHO_T}$can_build_shared" >&6
10109
10110 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10111 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10112 test "$can_build_shared" = "no" && enable_shared=no
10113
10114 # On AIX, shared libraries and static libraries use the same namespace, and
10115 # are all built from PIC.
10116 case $host_os in
10117 aix3*)
10118 test "$enable_shared" = yes && enable_static=no
10119 if test -n "$RANLIB"; then
10120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10121 postinstall_cmds='$RANLIB $lib'
10122 fi
10123 ;;
10124
10125 aix4* | aix5*)
10126 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10127 test "$enable_shared" = yes && enable_static=no
10128 fi
10129 ;;
10130 esac
10131 echo "$as_me:$LINENO: result: $enable_shared" >&5
10132 echo "${ECHO_T}$enable_shared" >&6
10133
10134 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10136 # Make sure either enable_shared or enable_static is yes.
10137 test "$enable_shared" = yes || enable_static=yes
10138 echo "$as_me:$LINENO: result: $enable_static" >&5
10139 echo "${ECHO_T}$enable_static" >&6
10140
10141
10142
10143
10144 fi
10145 ac_ext=c
10146 ac_cpp='$CPP $CPPFLAGS'
10147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10150
10151 CC="$lt_save_CC"
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165 ac_config_commands="$ac_config_commands libtool"
10166
10167
10168
10169
10170 # Only expand once:
10171
10172
10173
10174
10175
10176 # Calculate toolexeclibdir
10177 # Also toolexecdir, though it's only used in toolexeclibdir
10178 case ${version_specific_libs} in
10179 yes)
10180 # Need the gcc compiler version to know where to install libraries
10181 # and header files if --enable-version-specific-runtime-libs option
10182 # is selected.
10183 toolexecdir='$(libdir)/gcc/$(target_alias)'
10184 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10185 ;;
10186 no)
10187 if test -n "$with_cross_host" &&
10188 test x"$with_cross_host" != x"no"; then
10189 # Install a library built with a cross compiler in tooldir, not libdir.
10190 toolexecdir='$(exec_prefix)/$(target_alias)'
10191 toolexeclibdir='$(toolexecdir)/lib'
10192 else
10193 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10194 toolexeclibdir='$(libdir)'
10195 fi
10196 multi_os_directory=`$CC -print-multi-os-directory`
10197 case $multi_os_directory in
10198 .) ;; # Avoid trailing /.
10199 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10200 esac
10201 ;;
10202 esac
10203
10204
10205
10206 if test ${multilib} = yes; then
10207 multilib_arg="--enable-multilib"
10208 else
10209 multilib_arg=
10210 fi
10211
10212 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10213
10214 cat >confcache <<\_ACEOF
10215 # This file is a shell script that caches the results of configure
10216 # tests run on this system so they can be shared between configure
10217 # scripts and configure runs, see configure's option --config-cache.
10218 # It is not useful on other systems. If it contains results you don't
10219 # want to keep, you may remove or edit it.
10220 #
10221 # config.status only pays attention to the cache file if you give it
10222 # the --recheck option to rerun configure.
10223 #
10224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10226 # following values.
10227
10228 _ACEOF
10229
10230 # The following way of writing the cache mishandles newlines in values,
10231 # but we know of no workaround that is simple, portable, and efficient.
10232 # So, don't put newlines in cache variables' values.
10233 # Ultrix sh set writes to stderr and can't be redirected directly,
10234 # and sets the high bit in the cache file unless we assign to the vars.
10235 {
10236 (set) 2>&1 |
10237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10238 *ac_space=\ *)
10239 # `set' does not quote correctly, so add quotes (double-quote
10240 # substitution turns \\\\ into \\, and sed turns \\ into \).
10241 sed -n \
10242 "s/'/'\\\\''/g;
10243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10244 ;;
10245 *)
10246 # `set' quotes correctly as required by POSIX, so do not add quotes.
10247 sed -n \
10248 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10249 ;;
10250 esac;
10251 } |
10252 sed '
10253 t clear
10254 : clear
10255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10256 t end
10257 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10258 : end' >>confcache
10259 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10260 if test -w $cache_file; then
10261 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10262 cat confcache >$cache_file
10263 else
10264 echo "not updating unwritable cache $cache_file"
10265 fi
10266 fi
10267 rm -f confcache
10268
10269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10270 # Let make expand exec_prefix.
10271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10272
10273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10275 # trailing colons and then remove the whole line if VPATH becomes empty
10276 # (actually we leave an empty line to preserve line numbers).
10277 if test "x$srcdir" = x.; then
10278 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10279 s/:*\$(srcdir):*/:/;
10280 s/:*\${srcdir}:*/:/;
10281 s/:*@srcdir@:*/:/;
10282 s/^\([^=]*=[ ]*\):*/\1/;
10283 s/:*$//;
10284 s/^[^=]*=[ ]*$//;
10285 }'
10286 fi
10287
10288 DEFS=-DHAVE_CONFIG_H
10289
10290 ac_libobjs=
10291 ac_ltlibobjs=
10292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10293 # 1. Remove the extension, and $U if already installed.
10294 ac_i=`echo "$ac_i" |
10295 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10296 # 2. Add them.
10297 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10298 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10299 done
10300 LIBOBJS=$ac_libobjs
10301
10302 LTLIBOBJS=$ac_ltlibobjs
10303
10304
10305 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10306 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10307 Usually this means the macro was only invoked conditionally." >&5
10308 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10309 Usually this means the macro was only invoked conditionally." >&2;}
10310 { (exit 1); exit 1; }; }
10311 fi
10312 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10313 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10314 Usually this means the macro was only invoked conditionally." >&5
10315 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10316 Usually this means the macro was only invoked conditionally." >&2;}
10317 { (exit 1); exit 1; }; }
10318 fi
10319 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10320 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10321 Usually this means the macro was only invoked conditionally." >&5
10322 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10323 Usually this means the macro was only invoked conditionally." >&2;}
10324 { (exit 1); exit 1; }; }
10325 fi
10326 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10327 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10328 Usually this means the macro was only invoked conditionally." >&5
10329 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10330 Usually this means the macro was only invoked conditionally." >&2;}
10331 { (exit 1); exit 1; }; }
10332 fi
10333
10334 : ${CONFIG_STATUS=./config.status}
10335 ac_clean_files_save=$ac_clean_files
10336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10339 cat >$CONFIG_STATUS <<_ACEOF
10340 #! $SHELL
10341 # Generated by $as_me.
10342 # Run this file to recreate the current configuration.
10343 # Compiler output produced by configure, useful for debugging
10344 # configure, is in config.log if it exists.
10345
10346 debug=false
10347 ac_cs_recheck=false
10348 ac_cs_silent=false
10349 SHELL=\${CONFIG_SHELL-$SHELL}
10350 _ACEOF
10351
10352 cat >>$CONFIG_STATUS <<\_ACEOF
10353 ## --------------------- ##
10354 ## M4sh Initialization. ##
10355 ## --------------------- ##
10356
10357 # Be Bourne compatible
10358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10359 emulate sh
10360 NULLCMD=:
10361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10362 # is contrary to our usage. Disable this feature.
10363 alias -g '${1+"$@"}'='"$@"'
10364 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10365 set -o posix
10366 fi
10367 DUALCASE=1; export DUALCASE # for MKS sh
10368
10369 # Support unset when possible.
10370 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10371 as_unset=unset
10372 else
10373 as_unset=false
10374 fi
10375
10376
10377 # Work around bugs in pre-3.0 UWIN ksh.
10378 $as_unset ENV MAIL MAILPATH
10379 PS1='$ '
10380 PS2='> '
10381 PS4='+ '
10382
10383 # NLS nuisances.
10384 for as_var in \
10385 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10386 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10387 LC_TELEPHONE LC_TIME
10388 do
10389 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10390 eval $as_var=C; export $as_var
10391 else
10392 $as_unset $as_var
10393 fi
10394 done
10395
10396 # Required to use basename.
10397 if expr a : '\(a\)' >/dev/null 2>&1; then
10398 as_expr=expr
10399 else
10400 as_expr=false
10401 fi
10402
10403 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10404 as_basename=basename
10405 else
10406 as_basename=false
10407 fi
10408
10409
10410 # Name of the executable.
10411 as_me=`$as_basename "$0" ||
10412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10413 X"$0" : 'X\(//\)$' \| \
10414 X"$0" : 'X\(/\)$' \| \
10415 . : '\(.\)' 2>/dev/null ||
10416 echo X/"$0" |
10417 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10418 /^X\/\(\/\/\)$/{ s//\1/; q; }
10419 /^X\/\(\/\).*/{ s//\1/; q; }
10420 s/.*/./; q'`
10421
10422
10423 # PATH needs CR, and LINENO needs CR and PATH.
10424 # Avoid depending upon Character Ranges.
10425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10428 as_cr_digits='0123456789'
10429 as_cr_alnum=$as_cr_Letters$as_cr_digits
10430
10431 # The user is always right.
10432 if test "${PATH_SEPARATOR+set}" != set; then
10433 echo "#! /bin/sh" >conf$$.sh
10434 echo "exit 0" >>conf$$.sh
10435 chmod +x conf$$.sh
10436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10437 PATH_SEPARATOR=';'
10438 else
10439 PATH_SEPARATOR=:
10440 fi
10441 rm -f conf$$.sh
10442 fi
10443
10444
10445 as_lineno_1=$LINENO
10446 as_lineno_2=$LINENO
10447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10448 test "x$as_lineno_1" != "x$as_lineno_2" &&
10449 test "x$as_lineno_3" = "x$as_lineno_2" || {
10450 # Find who we are. Look in the path if we contain no path at all
10451 # relative or not.
10452 case $0 in
10453 *[\\/]* ) as_myself=$0 ;;
10454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10456 do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10460 done
10461
10462 ;;
10463 esac
10464 # We did not find ourselves, most probably we were run as `sh COMMAND'
10465 # in which case we are not to be found in the path.
10466 if test "x$as_myself" = x; then
10467 as_myself=$0
10468 fi
10469 if test ! -f "$as_myself"; then
10470 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10471 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10472 { (exit 1); exit 1; }; }
10473 fi
10474 case $CONFIG_SHELL in
10475 '')
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10478 do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for as_base in sh bash ksh sh5; do
10482 case $as_dir in
10483 /*)
10484 if ("$as_dir/$as_base" -c '
10485 as_lineno_1=$LINENO
10486 as_lineno_2=$LINENO
10487 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10488 test "x$as_lineno_1" != "x$as_lineno_2" &&
10489 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10490 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10491 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10492 CONFIG_SHELL=$as_dir/$as_base
10493 export CONFIG_SHELL
10494 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10495 fi;;
10496 esac
10497 done
10498 done
10499 ;;
10500 esac
10501
10502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10503 # uniformly replaced by the line number. The first 'sed' inserts a
10504 # line-number line before each line; the second 'sed' does the real
10505 # work. The second script uses 'N' to pair each line-number line
10506 # with the numbered line, and appends trailing '-' during
10507 # substitution so that $LINENO is not a special case at line end.
10508 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10509 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10510 sed '=' <$as_myself |
10511 sed '
10512 N
10513 s,$,-,
10514 : loop
10515 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10516 t loop
10517 s,-$,,
10518 s,^['$as_cr_digits']*\n,,
10519 ' >$as_me.lineno &&
10520 chmod +x $as_me.lineno ||
10521 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10522 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10523 { (exit 1); exit 1; }; }
10524
10525 # Don't try to exec as it changes $[0], causing all sort of problems
10526 # (the dirname of $[0] is not the place where we might find the
10527 # original and so on. Autoconf is especially sensible to this).
10528 . ./$as_me.lineno
10529 # Exit status is that of the last command.
10530 exit
10531 }
10532
10533
10534 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10535 *c*,-n*) ECHO_N= ECHO_C='
10536 ' ECHO_T=' ' ;;
10537 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10538 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10539 esac
10540
10541 if expr a : '\(a\)' >/dev/null 2>&1; then
10542 as_expr=expr
10543 else
10544 as_expr=false
10545 fi
10546
10547 rm -f conf$$ conf$$.exe conf$$.file
10548 echo >conf$$.file
10549 if ln -s conf$$.file conf$$ 2>/dev/null; then
10550 # We could just check for DJGPP; but this test a) works b) is more generic
10551 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10552 if test -f conf$$.exe; then
10553 # Don't use ln at all; we don't have any links
10554 as_ln_s='cp -p'
10555 else
10556 as_ln_s='ln -s'
10557 fi
10558 elif ln conf$$.file conf$$ 2>/dev/null; then
10559 as_ln_s=ln
10560 else
10561 as_ln_s='cp -p'
10562 fi
10563 rm -f conf$$ conf$$.exe conf$$.file
10564
10565 if mkdir -p . 2>/dev/null; then
10566 as_mkdir_p=:
10567 else
10568 test -d ./-p && rmdir ./-p
10569 as_mkdir_p=false
10570 fi
10571
10572 as_executable_p="test -f"
10573
10574 # Sed expression to map a string onto a valid CPP name.
10575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10576
10577 # Sed expression to map a string onto a valid variable name.
10578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10579
10580
10581 # IFS
10582 # We need space, tab and new line, in precisely that order.
10583 as_nl='
10584 '
10585 IFS=" $as_nl"
10586
10587 # CDPATH.
10588 $as_unset CDPATH
10589
10590 exec 6>&1
10591
10592 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10593 # report actual input values of CONFIG_FILES etc. instead of their
10594 # values after options handling. Logging --version etc. is OK.
10595 exec 5>>config.log
10596 {
10597 echo
10598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10599 ## Running $as_me. ##
10600 _ASBOX
10601 } >&5
10602 cat >&5 <<_CSEOF
10603
10604 This file was extended by libssp $as_me 1.0, which was
10605 generated by GNU Autoconf 2.59. Invocation command line was
10606
10607 CONFIG_FILES = $CONFIG_FILES
10608 CONFIG_HEADERS = $CONFIG_HEADERS
10609 CONFIG_LINKS = $CONFIG_LINKS
10610 CONFIG_COMMANDS = $CONFIG_COMMANDS
10611 $ $0 $@
10612
10613 _CSEOF
10614 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10615 echo >&5
10616 _ACEOF
10617
10618 # Files that config.status was made for.
10619 if test -n "$ac_config_files"; then
10620 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10621 fi
10622
10623 if test -n "$ac_config_headers"; then
10624 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10625 fi
10626
10627 if test -n "$ac_config_links"; then
10628 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10629 fi
10630
10631 if test -n "$ac_config_commands"; then
10632 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10633 fi
10634
10635 cat >>$CONFIG_STATUS <<\_ACEOF
10636
10637 ac_cs_usage="\
10638 \`$as_me' instantiates files from templates according to the
10639 current configuration.
10640
10641 Usage: $0 [OPTIONS] [FILE]...
10642
10643 -h, --help print this help, then exit
10644 -V, --version print version number, then exit
10645 -q, --quiet do not print progress messages
10646 -d, --debug don't remove temporary files
10647 --recheck update $as_me by reconfiguring in the same conditions
10648 --file=FILE[:TEMPLATE]
10649 instantiate the configuration file FILE
10650 --header=FILE[:TEMPLATE]
10651 instantiate the configuration header FILE
10652
10653 Configuration files:
10654 $config_files
10655
10656 Configuration headers:
10657 $config_headers
10658
10659 Configuration commands:
10660 $config_commands
10661
10662 Report bugs to <bug-autoconf@gnu.org>."
10663 _ACEOF
10664
10665 cat >>$CONFIG_STATUS <<_ACEOF
10666 ac_cs_version="\\
10667 libssp config.status 1.0
10668 configured by $0, generated by GNU Autoconf 2.59,
10669 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10670
10671 Copyright (C) 2003 Free Software Foundation, Inc.
10672 This config.status script is free software; the Free Software Foundation
10673 gives unlimited permission to copy, distribute and modify it."
10674 srcdir=$srcdir
10675 INSTALL="$INSTALL"
10676 _ACEOF
10677
10678 cat >>$CONFIG_STATUS <<\_ACEOF
10679 # If no file are specified by the user, then we need to provide default
10680 # value. By we need to know if files were specified by the user.
10681 ac_need_defaults=:
10682 while test $# != 0
10683 do
10684 case $1 in
10685 --*=*)
10686 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10687 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10688 ac_shift=:
10689 ;;
10690 -*)
10691 ac_option=$1
10692 ac_optarg=$2
10693 ac_shift=shift
10694 ;;
10695 *) # This is not an option, so the user has probably given explicit
10696 # arguments.
10697 ac_option=$1
10698 ac_need_defaults=false;;
10699 esac
10700
10701 case $ac_option in
10702 # Handling of the options.
10703 _ACEOF
10704 cat >>$CONFIG_STATUS <<\_ACEOF
10705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10706 ac_cs_recheck=: ;;
10707 --version | --vers* | -V )
10708 echo "$ac_cs_version"; exit 0 ;;
10709 --he | --h)
10710 # Conflict between --help and --header
10711 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10712 Try \`$0 --help' for more information." >&5
10713 echo "$as_me: error: ambiguous option: $1
10714 Try \`$0 --help' for more information." >&2;}
10715 { (exit 1); exit 1; }; };;
10716 --help | --hel | -h )
10717 echo "$ac_cs_usage"; exit 0 ;;
10718 --debug | --d* | -d )
10719 debug=: ;;
10720 --file | --fil | --fi | --f )
10721 $ac_shift
10722 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10723 ac_need_defaults=false;;
10724 --header | --heade | --head | --hea )
10725 $ac_shift
10726 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10727 ac_need_defaults=false;;
10728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10730 ac_cs_silent=: ;;
10731
10732 # This is an error.
10733 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10734 Try \`$0 --help' for more information." >&5
10735 echo "$as_me: error: unrecognized option: $1
10736 Try \`$0 --help' for more information." >&2;}
10737 { (exit 1); exit 1; }; } ;;
10738
10739 *) ac_config_targets="$ac_config_targets $1" ;;
10740
10741 esac
10742 shift
10743 done
10744
10745 ac_configure_extra_args=
10746
10747 if $ac_cs_silent; then
10748 exec 6>/dev/null
10749 ac_configure_extra_args="$ac_configure_extra_args --silent"
10750 fi
10751
10752 _ACEOF
10753 cat >>$CONFIG_STATUS <<_ACEOF
10754 if \$ac_cs_recheck; then
10755 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10756 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10757 fi
10758
10759 _ACEOF
10760
10761 cat >>$CONFIG_STATUS <<_ACEOF
10762 #
10763 # INIT-COMMANDS section.
10764 #
10765
10766
10767 srcdir="$srcdir"
10768 host="$host"
10769 target="$target"
10770 with_multisubdir="$with_multisubdir"
10771 with_multisrctop="$with_multisrctop"
10772 with_target_subdir="$with_target_subdir"
10773 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10774 multi_basedir="$multi_basedir"
10775 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10776 CC="$CC"
10777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10778
10779
10780 # The HP-UX ksh and POSIX shell print the target directory to stdout
10781 # if CDPATH is set.
10782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10783
10784 sed_quote_subst='$sed_quote_subst'
10785 double_quote_subst='$double_quote_subst'
10786 delay_variable_subst='$delay_variable_subst'
10787 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10788 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10789 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10790 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10791 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10792 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10793 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10794 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10795 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10796 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10797 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10798 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10799 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10800 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10801 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10802 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10803 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10804 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10805 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10806 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10807 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10808 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10809 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10810 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10811 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10812 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10813 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10814 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10815 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10816 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10817 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10818 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10819 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10820 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10821 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10822 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10823 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10824 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10825 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10826 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10827 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10828 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10829 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10830 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
10831 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10832 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10833 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10834 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10835 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10836 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10837 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10838 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10839 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10840 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10841 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10842 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10843 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10844 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10845 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10846 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10847 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10848 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10849 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10850 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10851 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10852 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10853 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10854 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10855 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10856 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10857 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10858 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10859 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10860 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10861 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10862 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10863 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10864 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10865 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10866 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10867 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10868 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10869 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10870 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10871 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10872 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10873 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10874 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10875 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10876 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10877 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10878 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10879 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10880 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10881 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10882 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10883 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10884 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10885 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10886 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10887 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10888 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10889 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10890 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10891 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10892 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10893 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10894 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10895 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10896 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10897 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10898
10899 LTCC='$LTCC'
10900 LTCFLAGS='$LTCFLAGS'
10901 compiler='$compiler_DEFAULT'
10902
10903 # Quote evaled strings.
10904 for var in SED \
10905 GREP \
10906 EGREP \
10907 FGREP \
10908 LD \
10909 NM \
10910 LN_S \
10911 lt_SP2NL \
10912 lt_NL2SP \
10913 reload_flag \
10914 deplibs_check_method \
10915 file_magic_cmd \
10916 AR \
10917 AR_FLAGS \
10918 STRIP \
10919 RANLIB \
10920 CC \
10921 CFLAGS \
10922 compiler \
10923 lt_cv_sys_global_symbol_pipe \
10924 lt_cv_sys_global_symbol_to_cdecl \
10925 lt_cv_sys_global_symbol_to_c_name_address \
10926 SHELL \
10927 ECHO \
10928 lt_prog_compiler_no_builtin_flag \
10929 lt_prog_compiler_wl \
10930 lt_prog_compiler_pic \
10931 lt_prog_compiler_static \
10932 lt_cv_prog_compiler_c_o \
10933 need_locks \
10934 shrext_cmds \
10935 export_dynamic_flag_spec \
10936 whole_archive_flag_spec \
10937 compiler_needs_object \
10938 with_gnu_ld \
10939 allow_undefined_flag \
10940 no_undefined_flag \
10941 hardcode_libdir_flag_spec \
10942 hardcode_libdir_flag_spec_ld \
10943 hardcode_libdir_separator \
10944 fix_srcfile_path \
10945 exclude_expsyms \
10946 include_expsyms \
10947 file_list_spec \
10948 variables_saved_for_relink \
10949 libname_spec \
10950 library_names_spec \
10951 soname_spec \
10952 finish_eval \
10953 old_striplib \
10954 striplib; do
10955 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10956 *[\\\\\\\`\\"\\\$]*)
10957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10958 ;;
10959 *)
10960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10961 ;;
10962 esac
10963 done
10964
10965 # Double-quote double-evaled strings.
10966 for var in reload_cmds \
10967 old_postinstall_cmds \
10968 old_postuninstall_cmds \
10969 old_archive_cmds \
10970 extract_expsyms_cmds \
10971 old_archive_from_new_cmds \
10972 old_archive_from_expsyms_cmds \
10973 archive_cmds \
10974 archive_expsym_cmds \
10975 module_cmds \
10976 module_expsym_cmds \
10977 export_symbols_cmds \
10978 prelink_cmds \
10979 postinstall_cmds \
10980 postuninstall_cmds \
10981 finish_cmds \
10982 sys_lib_search_path_spec \
10983 sys_lib_dlsearch_path_spec; do
10984 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10985 *[\\\\\\\`\\"\\\$]*)
10986 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
10987 ;;
10988 *)
10989 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10990 ;;
10991 esac
10992 done
10993
10994 # Fix-up fallback echo if it was mangled by the above quoting rules.
10995 case \$lt_ECHO in
10996 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
10997 ;;
10998 esac
10999
11000 ac_aux_dir='$ac_aux_dir'
11001 xsi_shell='$xsi_shell'
11002 lt_shell_append='$lt_shell_append'
11003
11004 # See if we are running on zsh, and set the options which allow our
11005 # commands through without removal of \ escapes INIT.
11006 if test -n "\${ZSH_VERSION+set}" ; then
11007 setopt NO_GLOB_SUBST
11008 fi
11009
11010
11011 PACKAGE='$PACKAGE'
11012 VERSION='$VERSION'
11013 TIMESTAMP='$TIMESTAMP'
11014 RM='$RM'
11015 ofile='$ofile'
11016
11017
11018
11019
11020 _ACEOF
11021
11022
11023
11024 cat >>$CONFIG_STATUS <<\_ACEOF
11025 for ac_config_target in $ac_config_targets
11026 do
11027 case "$ac_config_target" in
11028 # Handling of arguments.
11029 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11030 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11031 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11032 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11033 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11034 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11035 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11037 { (exit 1); exit 1; }; };;
11038 esac
11039 done
11040
11041 # If the user did not use the arguments to specify the items to instantiate,
11042 # then the envvar interface is used. Set only those that are not.
11043 # We use the long form for the default assignment because of an extremely
11044 # bizarre bug on SunOS 4.1.3.
11045 if $ac_need_defaults; then
11046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11049 fi
11050
11051 # Have a temporary directory for convenience. Make it in the build tree
11052 # simply because there is no reason to put it here, and in addition,
11053 # creating and moving files from /tmp can sometimes cause problems.
11054 # Create a temporary directory, and hook for its removal unless debugging.
11055 $debug ||
11056 {
11057 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11058 trap '{ (exit 1); exit 1; }' 1 2 13 15
11059 }
11060
11061 # Create a (secure) tmp directory for tmp files.
11062
11063 {
11064 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11065 test -n "$tmp" && test -d "$tmp"
11066 } ||
11067 {
11068 tmp=./confstat$$-$RANDOM
11069 (umask 077 && mkdir $tmp)
11070 } ||
11071 {
11072 echo "$me: cannot create a temporary directory in ." >&2
11073 { (exit 1); exit 1; }
11074 }
11075
11076 _ACEOF
11077
11078 cat >>$CONFIG_STATUS <<_ACEOF
11079
11080 #
11081 # CONFIG_FILES section.
11082 #
11083
11084 # No need to generate the scripts if there are no CONFIG_FILES.
11085 # This happens for instance when ./config.status config.h
11086 if test -n "\$CONFIG_FILES"; then
11087 # Protect against being on the right side of a sed subst in config.status.
11088 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11089 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11090 s,@SHELL@,$SHELL,;t t
11091 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11092 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11093 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11094 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11095 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11096 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11097 s,@exec_prefix@,$exec_prefix,;t t
11098 s,@prefix@,$prefix,;t t
11099 s,@program_transform_name@,$program_transform_name,;t t
11100 s,@bindir@,$bindir,;t t
11101 s,@sbindir@,$sbindir,;t t
11102 s,@libexecdir@,$libexecdir,;t t
11103 s,@datadir@,$datadir,;t t
11104 s,@sysconfdir@,$sysconfdir,;t t
11105 s,@sharedstatedir@,$sharedstatedir,;t t
11106 s,@localstatedir@,$localstatedir,;t t
11107 s,@libdir@,$libdir,;t t
11108 s,@includedir@,$includedir,;t t
11109 s,@oldincludedir@,$oldincludedir,;t t
11110 s,@infodir@,$infodir,;t t
11111 s,@mandir@,$mandir,;t t
11112 s,@build_alias@,$build_alias,;t t
11113 s,@host_alias@,$host_alias,;t t
11114 s,@target_alias@,$target_alias,;t t
11115 s,@DEFS@,$DEFS,;t t
11116 s,@ECHO_C@,$ECHO_C,;t t
11117 s,@ECHO_N@,$ECHO_N,;t t
11118 s,@ECHO_T@,$ECHO_T,;t t
11119 s,@LIBS@,$LIBS,;t t
11120 s,@build@,$build,;t t
11121 s,@build_cpu@,$build_cpu,;t t
11122 s,@build_vendor@,$build_vendor,;t t
11123 s,@build_os@,$build_os,;t t
11124 s,@host@,$host,;t t
11125 s,@host_cpu@,$host_cpu,;t t
11126 s,@host_vendor@,$host_vendor,;t t
11127 s,@host_os@,$host_os,;t t
11128 s,@target@,$target,;t t
11129 s,@target_cpu@,$target_cpu,;t t
11130 s,@target_vendor@,$target_vendor,;t t
11131 s,@target_os@,$target_os,;t t
11132 s,@target_noncanonical@,$target_noncanonical,;t t
11133 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11134 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11135 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11136 s,@CYGPATH_W@,$CYGPATH_W,;t t
11137 s,@PACKAGE@,$PACKAGE,;t t
11138 s,@VERSION@,$VERSION,;t t
11139 s,@ACLOCAL@,$ACLOCAL,;t t
11140 s,@AUTOCONF@,$AUTOCONF,;t t
11141 s,@AUTOMAKE@,$AUTOMAKE,;t t
11142 s,@AUTOHEADER@,$AUTOHEADER,;t t
11143 s,@MAKEINFO@,$MAKEINFO,;t t
11144 s,@install_sh@,$install_sh,;t t
11145 s,@STRIP@,$STRIP,;t t
11146 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11147 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11148 s,@mkdir_p@,$mkdir_p,;t t
11149 s,@AWK@,$AWK,;t t
11150 s,@SET_MAKE@,$SET_MAKE,;t t
11151 s,@am__leading_dot@,$am__leading_dot,;t t
11152 s,@AMTAR@,$AMTAR,;t t
11153 s,@am__tar@,$am__tar,;t t
11154 s,@am__untar@,$am__untar,;t t
11155 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11156 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11157 s,@MAINT@,$MAINT,;t t
11158 s,@multi_basedir@,$multi_basedir,;t t
11159 s,@CC@,$CC,;t t
11160 s,@ac_ct_CC@,$ac_ct_CC,;t t
11161 s,@EXEEXT@,$EXEEXT,;t t
11162 s,@OBJEXT@,$OBJEXT,;t t
11163 s,@DEPDIR@,$DEPDIR,;t t
11164 s,@am__include@,$am__include,;t t
11165 s,@am__quote@,$am__quote,;t t
11166 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11167 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11168 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11169 s,@CCDEPMODE@,$CCDEPMODE,;t t
11170 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11171 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11172 s,@CFLAGS@,$CFLAGS,;t t
11173 s,@CPP@,$CPP,;t t
11174 s,@CPPFLAGS@,$CPPFLAGS,;t t
11175 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11176 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11177 s,@EGREP@,$EGREP,;t t
11178 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
11179 s,@LIBTOOL@,$LIBTOOL,;t t
11180 s,@SED@,$SED,;t t
11181 s,@FGREP@,$FGREP,;t t
11182 s,@GREP@,$GREP,;t t
11183 s,@LD@,$LD,;t t
11184 s,@DUMPBIN@,$DUMPBIN,;t t
11185 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11186 s,@NM@,$NM,;t t
11187 s,@LN_S@,$LN_S,;t t
11188 s,@AR@,$AR,;t t
11189 s,@ac_ct_AR@,$ac_ct_AR,;t t
11190 s,@RANLIB@,$RANLIB,;t t
11191 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11192 s,@lt_ECHO@,$lt_ECHO,;t t
11193 s,@enable_shared@,$enable_shared,;t t
11194 s,@enable_static@,$enable_static,;t t
11195 s,@toolexecdir@,$toolexecdir,;t t
11196 s,@toolexeclibdir@,$toolexeclibdir,;t t
11197 s,@LIBOBJS@,$LIBOBJS,;t t
11198 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11199 CEOF
11200
11201 _ACEOF
11202
11203 cat >>$CONFIG_STATUS <<\_ACEOF
11204 # Split the substitutions into bite-sized pieces for seds with
11205 # small command number limits, like on Digital OSF/1 and HP-UX.
11206 ac_max_sed_lines=48
11207 ac_sed_frag=1 # Number of current file.
11208 ac_beg=1 # First line for current file.
11209 ac_end=$ac_max_sed_lines # Line after last line for current file.
11210 ac_more_lines=:
11211 ac_sed_cmds=
11212 while $ac_more_lines; do
11213 if test $ac_beg -gt 1; then
11214 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11215 else
11216 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11217 fi
11218 if test ! -s $tmp/subs.frag; then
11219 ac_more_lines=false
11220 else
11221 # The purpose of the label and of the branching condition is to
11222 # speed up the sed processing (if there are no `@' at all, there
11223 # is no need to browse any of the substitutions).
11224 # These are the two extra sed commands mentioned above.
11225 (echo ':t
11226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11227 if test -z "$ac_sed_cmds"; then
11228 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11229 else
11230 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11231 fi
11232 ac_sed_frag=`expr $ac_sed_frag + 1`
11233 ac_beg=$ac_end
11234 ac_end=`expr $ac_end + $ac_max_sed_lines`
11235 fi
11236 done
11237 if test -z "$ac_sed_cmds"; then
11238 ac_sed_cmds=cat
11239 fi
11240 fi # test -n "$CONFIG_FILES"
11241
11242 _ACEOF
11243 cat >>$CONFIG_STATUS <<\_ACEOF
11244 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11246 case $ac_file in
11247 - | *:- | *:-:* ) # input from stdin
11248 cat >$tmp/stdin
11249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11253 * ) ac_file_in=$ac_file.in ;;
11254 esac
11255
11256 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11259 X"$ac_file" : 'X\(//\)[^/]' \| \
11260 X"$ac_file" : 'X\(//\)$' \| \
11261 X"$ac_file" : 'X\(/\)' \| \
11262 . : '\(.\)' 2>/dev/null ||
11263 echo X"$ac_file" |
11264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11266 /^X\(\/\/\)$/{ s//\1/; q; }
11267 /^X\(\/\).*/{ s//\1/; q; }
11268 s/.*/./; q'`
11269 { if $as_mkdir_p; then
11270 mkdir -p "$ac_dir"
11271 else
11272 as_dir="$ac_dir"
11273 as_dirs=
11274 while test ! -d "$as_dir"; do
11275 as_dirs="$as_dir $as_dirs"
11276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11278 X"$as_dir" : 'X\(//\)[^/]' \| \
11279 X"$as_dir" : 'X\(//\)$' \| \
11280 X"$as_dir" : 'X\(/\)' \| \
11281 . : '\(.\)' 2>/dev/null ||
11282 echo X"$as_dir" |
11283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11285 /^X\(\/\/\)$/{ s//\1/; q; }
11286 /^X\(\/\).*/{ s//\1/; q; }
11287 s/.*/./; q'`
11288 done
11289 test ! -n "$as_dirs" || mkdir $as_dirs
11290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11292 { (exit 1); exit 1; }; }; }
11293
11294 ac_builddir=.
11295
11296 if test "$ac_dir" != .; then
11297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11298 # A "../" for each directory in $ac_dir_suffix.
11299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11300 else
11301 ac_dir_suffix= ac_top_builddir=
11302 fi
11303
11304 case $srcdir in
11305 .) # No --srcdir option. We are building in place.
11306 ac_srcdir=.
11307 if test -z "$ac_top_builddir"; then
11308 ac_top_srcdir=.
11309 else
11310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11311 fi ;;
11312 [\\/]* | ?:[\\/]* ) # Absolute path.
11313 ac_srcdir=$srcdir$ac_dir_suffix;
11314 ac_top_srcdir=$srcdir ;;
11315 *) # Relative path.
11316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11318 esac
11319
11320 # Do not use `cd foo && pwd` to compute absolute paths, because
11321 # the directories may not exist.
11322 case `pwd` in
11323 .) ac_abs_builddir="$ac_dir";;
11324 *)
11325 case "$ac_dir" in
11326 .) ac_abs_builddir=`pwd`;;
11327 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11328 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11329 esac;;
11330 esac
11331 case $ac_abs_builddir in
11332 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11333 *)
11334 case ${ac_top_builddir}. in
11335 .) ac_abs_top_builddir=$ac_abs_builddir;;
11336 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11337 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11338 esac;;
11339 esac
11340 case $ac_abs_builddir in
11341 .) ac_abs_srcdir=$ac_srcdir;;
11342 *)
11343 case $ac_srcdir in
11344 .) ac_abs_srcdir=$ac_abs_builddir;;
11345 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11346 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11347 esac;;
11348 esac
11349 case $ac_abs_builddir in
11350 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11351 *)
11352 case $ac_top_srcdir in
11353 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11354 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11355 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11356 esac;;
11357 esac
11358
11359
11360 case $INSTALL in
11361 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11362 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11363 esac
11364
11365 if test x"$ac_file" != x-; then
11366 { echo "$as_me:$LINENO: creating $ac_file" >&5
11367 echo "$as_me: creating $ac_file" >&6;}
11368 rm -f "$ac_file"
11369 fi
11370 # Let's still pretend it is `configure' which instantiates (i.e., don't
11371 # use $as_me), people would be surprised to read:
11372 # /* config.h. Generated by config.status. */
11373 if test x"$ac_file" = x-; then
11374 configure_input=
11375 else
11376 configure_input="$ac_file. "
11377 fi
11378 configure_input=$configure_input"Generated from `echo $ac_file_in |
11379 sed 's,.*/,,'` by configure."
11380
11381 # First look for the input files in the build tree, otherwise in the
11382 # src tree.
11383 ac_file_inputs=`IFS=:
11384 for f in $ac_file_in; do
11385 case $f in
11386 -) echo $tmp/stdin ;;
11387 [\\/$]*)
11388 # Absolute (can't be DOS-style, as IFS=:)
11389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11390 echo "$as_me: error: cannot find input file: $f" >&2;}
11391 { (exit 1); exit 1; }; }
11392 echo "$f";;
11393 *) # Relative
11394 if test -f "$f"; then
11395 # Build tree
11396 echo "$f"
11397 elif test -f "$srcdir/$f"; then
11398 # Source tree
11399 echo "$srcdir/$f"
11400 else
11401 # /dev/null tree
11402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11403 echo "$as_me: error: cannot find input file: $f" >&2;}
11404 { (exit 1); exit 1; }; }
11405 fi;;
11406 esac
11407 done` || { (exit 1); exit 1; }
11408 _ACEOF
11409 cat >>$CONFIG_STATUS <<_ACEOF
11410 sed "$ac_vpsub
11411 $extrasub
11412 _ACEOF
11413 cat >>$CONFIG_STATUS <<\_ACEOF
11414 :t
11415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11416 s,@configure_input@,$configure_input,;t t
11417 s,@srcdir@,$ac_srcdir,;t t
11418 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11419 s,@top_srcdir@,$ac_top_srcdir,;t t
11420 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11421 s,@builddir@,$ac_builddir,;t t
11422 s,@abs_builddir@,$ac_abs_builddir,;t t
11423 s,@top_builddir@,$ac_top_builddir,;t t
11424 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11425 s,@INSTALL@,$ac_INSTALL,;t t
11426 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11427 rm -f $tmp/stdin
11428 if test x"$ac_file" != x-; then
11429 mv $tmp/out $ac_file
11430 else
11431 cat $tmp/out
11432 rm -f $tmp/out
11433 fi
11434
11435 done
11436 _ACEOF
11437 cat >>$CONFIG_STATUS <<\_ACEOF
11438
11439 #
11440 # CONFIG_HEADER section.
11441 #
11442
11443 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11444 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11445 #
11446 # ac_d sets the value in "#define NAME VALUE" lines.
11447 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11448 ac_dB='[ ].*$,\1#\2'
11449 ac_dC=' '
11450 ac_dD=',;t'
11451 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11452 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11453 ac_uB='$,\1#\2define\3'
11454 ac_uC=' '
11455 ac_uD=',;t'
11456
11457 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11459 case $ac_file in
11460 - | *:- | *:-:* ) # input from stdin
11461 cat >$tmp/stdin
11462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11466 * ) ac_file_in=$ac_file.in ;;
11467 esac
11468
11469 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11470 echo "$as_me: creating $ac_file" >&6;}
11471
11472 # First look for the input files in the build tree, otherwise in the
11473 # src tree.
11474 ac_file_inputs=`IFS=:
11475 for f in $ac_file_in; do
11476 case $f in
11477 -) echo $tmp/stdin ;;
11478 [\\/$]*)
11479 # Absolute (can't be DOS-style, as IFS=:)
11480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11481 echo "$as_me: error: cannot find input file: $f" >&2;}
11482 { (exit 1); exit 1; }; }
11483 # Do quote $f, to prevent DOS paths from being IFS'd.
11484 echo "$f";;
11485 *) # Relative
11486 if test -f "$f"; then
11487 # Build tree
11488 echo "$f"
11489 elif test -f "$srcdir/$f"; then
11490 # Source tree
11491 echo "$srcdir/$f"
11492 else
11493 # /dev/null tree
11494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11495 echo "$as_me: error: cannot find input file: $f" >&2;}
11496 { (exit 1); exit 1; }; }
11497 fi;;
11498 esac
11499 done` || { (exit 1); exit 1; }
11500 # Remove the trailing spaces.
11501 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11502
11503 _ACEOF
11504
11505 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11506 # `conftest.undefs', that substitutes the proper values into
11507 # config.h.in to produce config.h. The first handles `#define'
11508 # templates, and the second `#undef' templates.
11509 # And first: Protect against being on the right side of a sed subst in
11510 # config.status. Protect against being in an unquoted here document
11511 # in config.status.
11512 rm -f conftest.defines conftest.undefs
11513 # Using a here document instead of a string reduces the quoting nightmare.
11514 # Putting comments in sed scripts is not portable.
11515 #
11516 # `end' is used to avoid that the second main sed command (meant for
11517 # 0-ary CPP macros) applies to n-ary macro definitions.
11518 # See the Autoconf documentation for `clear'.
11519 cat >confdef2sed.sed <<\_ACEOF
11520 s/[\\&,]/\\&/g
11521 s,[\\$`],\\&,g
11522 t clear
11523 : clear
11524 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11525 t end
11526 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11527 : end
11528 _ACEOF
11529 # If some macros were called several times there might be several times
11530 # the same #defines, which is useless. Nevertheless, we may not want to
11531 # sort them, since we want the *last* AC-DEFINE to be honored.
11532 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11533 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11534 rm -f confdef2sed.sed
11535
11536 # This sed command replaces #undef with comments. This is necessary, for
11537 # example, in the case of _POSIX_SOURCE, which is predefined and required
11538 # on some systems where configure will not decide to define it.
11539 cat >>conftest.undefs <<\_ACEOF
11540 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11541 _ACEOF
11542
11543 # Break up conftest.defines because some shells have a limit on the size
11544 # of here documents, and old seds have small limits too (100 cmds).
11545 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11546 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11547 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11548 echo ' :' >>$CONFIG_STATUS
11549 rm -f conftest.tail
11550 while grep . conftest.defines >/dev/null
11551 do
11552 # Write a limited-size here document to $tmp/defines.sed.
11553 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11554 # Speed up: don't consider the non `#define' lines.
11555 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11556 # Work around the forget-to-reset-the-flag bug.
11557 echo 't clr' >>$CONFIG_STATUS
11558 echo ': clr' >>$CONFIG_STATUS
11559 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11560 echo 'CEOF
11561 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11562 rm -f $tmp/in
11563 mv $tmp/out $tmp/in
11564 ' >>$CONFIG_STATUS
11565 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11566 rm -f conftest.defines
11567 mv conftest.tail conftest.defines
11568 done
11569 rm -f conftest.defines
11570 echo ' fi # grep' >>$CONFIG_STATUS
11571 echo >>$CONFIG_STATUS
11572
11573 # Break up conftest.undefs because some shells have a limit on the size
11574 # of here documents, and old seds have small limits too (100 cmds).
11575 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11576 rm -f conftest.tail
11577 while grep . conftest.undefs >/dev/null
11578 do
11579 # Write a limited-size here document to $tmp/undefs.sed.
11580 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11581 # Speed up: don't consider the non `#undef'
11582 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11583 # Work around the forget-to-reset-the-flag bug.
11584 echo 't clr' >>$CONFIG_STATUS
11585 echo ': clr' >>$CONFIG_STATUS
11586 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11587 echo 'CEOF
11588 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11589 rm -f $tmp/in
11590 mv $tmp/out $tmp/in
11591 ' >>$CONFIG_STATUS
11592 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11593 rm -f conftest.undefs
11594 mv conftest.tail conftest.undefs
11595 done
11596 rm -f conftest.undefs
11597
11598 cat >>$CONFIG_STATUS <<\_ACEOF
11599 # Let's still pretend it is `configure' which instantiates (i.e., don't
11600 # use $as_me), people would be surprised to read:
11601 # /* config.h. Generated by config.status. */
11602 if test x"$ac_file" = x-; then
11603 echo "/* Generated by configure. */" >$tmp/config.h
11604 else
11605 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11606 fi
11607 cat $tmp/in >>$tmp/config.h
11608 rm -f $tmp/in
11609 if test x"$ac_file" != x-; then
11610 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11611 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11612 echo "$as_me: $ac_file is unchanged" >&6;}
11613 else
11614 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11616 X"$ac_file" : 'X\(//\)[^/]' \| \
11617 X"$ac_file" : 'X\(//\)$' \| \
11618 X"$ac_file" : 'X\(/\)' \| \
11619 . : '\(.\)' 2>/dev/null ||
11620 echo X"$ac_file" |
11621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11623 /^X\(\/\/\)$/{ s//\1/; q; }
11624 /^X\(\/\).*/{ s//\1/; q; }
11625 s/.*/./; q'`
11626 { if $as_mkdir_p; then
11627 mkdir -p "$ac_dir"
11628 else
11629 as_dir="$ac_dir"
11630 as_dirs=
11631 while test ! -d "$as_dir"; do
11632 as_dirs="$as_dir $as_dirs"
11633 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11635 X"$as_dir" : 'X\(//\)[^/]' \| \
11636 X"$as_dir" : 'X\(//\)$' \| \
11637 X"$as_dir" : 'X\(/\)' \| \
11638 . : '\(.\)' 2>/dev/null ||
11639 echo X"$as_dir" |
11640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11642 /^X\(\/\/\)$/{ s//\1/; q; }
11643 /^X\(\/\).*/{ s//\1/; q; }
11644 s/.*/./; q'`
11645 done
11646 test ! -n "$as_dirs" || mkdir $as_dirs
11647 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11648 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11649 { (exit 1); exit 1; }; }; }
11650
11651 rm -f $ac_file
11652 mv $tmp/config.h $ac_file
11653 fi
11654 else
11655 cat $tmp/config.h
11656 rm -f $tmp/config.h
11657 fi
11658 # Compute $ac_file's index in $config_headers.
11659 _am_stamp_count=1
11660 for _am_header in $config_headers :; do
11661 case $_am_header in
11662 $ac_file | $ac_file:* )
11663 break ;;
11664 * )
11665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11666 esac
11667 done
11668 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11669 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11670 X$ac_file : 'X\(//\)[^/]' \| \
11671 X$ac_file : 'X\(//\)$' \| \
11672 X$ac_file : 'X\(/\)' \| \
11673 . : '\(.\)' 2>/dev/null ||
11674 echo X$ac_file |
11675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11677 /^X\(\/\/\)$/{ s//\1/; q; }
11678 /^X\(\/\).*/{ s//\1/; q; }
11679 s/.*/./; q'`/stamp-h$_am_stamp_count
11680 done
11681 _ACEOF
11682 cat >>$CONFIG_STATUS <<\_ACEOF
11683
11684 #
11685 # CONFIG_COMMANDS section.
11686 #
11687 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11688 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11689 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11690 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11691 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11692 X"$ac_dest" : 'X\(//\)[^/]' \| \
11693 X"$ac_dest" : 'X\(//\)$' \| \
11694 X"$ac_dest" : 'X\(/\)' \| \
11695 . : '\(.\)' 2>/dev/null ||
11696 echo X"$ac_dest" |
11697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11699 /^X\(\/\/\)$/{ s//\1/; q; }
11700 /^X\(\/\).*/{ s//\1/; q; }
11701 s/.*/./; q'`
11702 { if $as_mkdir_p; then
11703 mkdir -p "$ac_dir"
11704 else
11705 as_dir="$ac_dir"
11706 as_dirs=
11707 while test ! -d "$as_dir"; do
11708 as_dirs="$as_dir $as_dirs"
11709 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11711 X"$as_dir" : 'X\(//\)[^/]' \| \
11712 X"$as_dir" : 'X\(//\)$' \| \
11713 X"$as_dir" : 'X\(/\)' \| \
11714 . : '\(.\)' 2>/dev/null ||
11715 echo X"$as_dir" |
11716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11718 /^X\(\/\/\)$/{ s//\1/; q; }
11719 /^X\(\/\).*/{ s//\1/; q; }
11720 s/.*/./; q'`
11721 done
11722 test ! -n "$as_dirs" || mkdir $as_dirs
11723 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11724 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11725 { (exit 1); exit 1; }; }; }
11726
11727 ac_builddir=.
11728
11729 if test "$ac_dir" != .; then
11730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11731 # A "../" for each directory in $ac_dir_suffix.
11732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11733 else
11734 ac_dir_suffix= ac_top_builddir=
11735 fi
11736
11737 case $srcdir in
11738 .) # No --srcdir option. We are building in place.
11739 ac_srcdir=.
11740 if test -z "$ac_top_builddir"; then
11741 ac_top_srcdir=.
11742 else
11743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11744 fi ;;
11745 [\\/]* | ?:[\\/]* ) # Absolute path.
11746 ac_srcdir=$srcdir$ac_dir_suffix;
11747 ac_top_srcdir=$srcdir ;;
11748 *) # Relative path.
11749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11751 esac
11752
11753 # Do not use `cd foo && pwd` to compute absolute paths, because
11754 # the directories may not exist.
11755 case `pwd` in
11756 .) ac_abs_builddir="$ac_dir";;
11757 *)
11758 case "$ac_dir" in
11759 .) ac_abs_builddir=`pwd`;;
11760 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11761 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11762 esac;;
11763 esac
11764 case $ac_abs_builddir in
11765 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11766 *)
11767 case ${ac_top_builddir}. in
11768 .) ac_abs_top_builddir=$ac_abs_builddir;;
11769 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11770 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11771 esac;;
11772 esac
11773 case $ac_abs_builddir in
11774 .) ac_abs_srcdir=$ac_srcdir;;
11775 *)
11776 case $ac_srcdir in
11777 .) ac_abs_srcdir=$ac_abs_builddir;;
11778 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11779 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11780 esac;;
11781 esac
11782 case $ac_abs_builddir in
11783 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11784 *)
11785 case $ac_top_srcdir in
11786 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11787 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11788 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11789 esac;;
11790 esac
11791
11792
11793 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11794 echo "$as_me: executing $ac_dest commands" >&6;}
11795 case $ac_dest in
11796 default-1 )
11797 # Only add multilib support code if we just rebuilt the top-level
11798 # Makefile.
11799 case " $CONFIG_FILES " in
11800 *" Makefile "*)
11801 ac_file=Makefile . ${multi_basedir}/config-ml.in
11802 ;;
11803 esac ;;
11804 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11805 # Strip MF so we end up with the name of the file.
11806 mf=`echo "$mf" | sed -e 's/:.*$//'`
11807 # Check whether this is an Automake generated Makefile or not.
11808 # We used to match only the files named `Makefile.in', but
11809 # some people rename them; so instead we look at the file content.
11810 # Grep'ing the first line is not enough: some people post-process
11811 # each Makefile.in and add a new line on top of each file to say so.
11812 # So let's grep whole file.
11813 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11814 dirpart=`(dirname "$mf") 2>/dev/null ||
11815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11816 X"$mf" : 'X\(//\)[^/]' \| \
11817 X"$mf" : 'X\(//\)$' \| \
11818 X"$mf" : 'X\(/\)' \| \
11819 . : '\(.\)' 2>/dev/null ||
11820 echo X"$mf" |
11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11823 /^X\(\/\/\)$/{ s//\1/; q; }
11824 /^X\(\/\).*/{ s//\1/; q; }
11825 s/.*/./; q'`
11826 else
11827 continue
11828 fi
11829 # Extract the definition of DEPDIR, am__include, and am__quote
11830 # from the Makefile without running `make'.
11831 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11832 test -z "$DEPDIR" && continue
11833 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11834 test -z "am__include" && continue
11835 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11836 # When using ansi2knr, U may be empty or an underscore; expand it
11837 U=`sed -n 's/^U = //p' < "$mf"`
11838 # Find all dependency output files, they are included files with
11839 # $(DEPDIR) in their names. We invoke sed twice because it is the
11840 # simplest approach to changing $(DEPDIR) to its actual value in the
11841 # expansion.
11842 for file in `sed -n "
11843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11845 # Make sure the directory exists.
11846 test -f "$dirpart/$file" && continue
11847 fdir=`(dirname "$file") 2>/dev/null ||
11848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849 X"$file" : 'X\(//\)[^/]' \| \
11850 X"$file" : 'X\(//\)$' \| \
11851 X"$file" : 'X\(/\)' \| \
11852 . : '\(.\)' 2>/dev/null ||
11853 echo X"$file" |
11854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856 /^X\(\/\/\)$/{ s//\1/; q; }
11857 /^X\(\/\).*/{ s//\1/; q; }
11858 s/.*/./; q'`
11859 { if $as_mkdir_p; then
11860 mkdir -p $dirpart/$fdir
11861 else
11862 as_dir=$dirpart/$fdir
11863 as_dirs=
11864 while test ! -d "$as_dir"; do
11865 as_dirs="$as_dir $as_dirs"
11866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868 X"$as_dir" : 'X\(//\)[^/]' \| \
11869 X"$as_dir" : 'X\(//\)$' \| \
11870 X"$as_dir" : 'X\(/\)' \| \
11871 . : '\(.\)' 2>/dev/null ||
11872 echo X"$as_dir" |
11873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11875 /^X\(\/\/\)$/{ s//\1/; q; }
11876 /^X\(\/\).*/{ s//\1/; q; }
11877 s/.*/./; q'`
11878 done
11879 test ! -n "$as_dirs" || mkdir $as_dirs
11880 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11881 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11882 { (exit 1); exit 1; }; }; }
11883
11884 # echo "creating $dirpart/$file"
11885 echo '# dummy' > "$dirpart/$file"
11886 done
11887 done
11888 ;;
11889 libtool )
11890
11891 # See if we are running on zsh, and set the options which allow our
11892 # commands through without removal of \ escapes.
11893 if test -n "${ZSH_VERSION+set}" ; then
11894 setopt NO_GLOB_SUBST
11895 fi
11896
11897 cfgfile="${ofile}T"
11898 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11899 $RM "$cfgfile"
11900
11901 cat <<_LT_EOF >> "$cfgfile"
11902 #! $SHELL
11903
11904 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11905 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11908 #
11909 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11910 # 2006, 2007 Free Software Foundation, Inc.
11911 #
11912 # This file is part of GNU Libtool:
11913 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11914 #
11915 # This program is free software; you can redistribute it and/or modify
11916 # it under the terms of the GNU General Public License as published by
11917 # the Free Software Foundation; either version 2 of the License, or
11918 # (at your option) any later version.
11919 #
11920 # This program is distributed in the hope that it will be useful, but
11921 # WITHOUT ANY WARRANTY; without even the implied warranty of
11922 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11923 # General Public License for more details.
11924 #
11925 # You should have received a copy of the GNU General Public License
11926 # along with this program; if not, a copy can be downloaded from
11927 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
11928 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
11929 # MA 02110-1301, USA.
11930 #
11931 # As a special exception to the GNU General Public License, if you
11932 # distribute this file as part of a program that contains a
11933 # configuration script generated by Autoconf, you may include it under
11934 # the same distribution terms that you use for the rest of that program.
11935
11936
11937 # The names of the tagged configurations supported by this script.
11938 available_tags=""
11939
11940 # ### BEGIN LIBTOOL CONFIG
11941
11942 # Which release of libtool.m4 was used?
11943 macro_version=$macro_version
11944 macro_revision=$macro_revision
11945
11946 # Whether or not to build shared libraries.
11947 build_libtool_libs=$enable_shared
11948
11949 # Whether or not to build static libraries.
11950 build_old_libs=$enable_static
11951
11952 # What type of objects to build.
11953 pic_mode=$pic_mode
11954
11955 # Whether or not to optimize for fast installation.
11956 fast_install=$enable_fast_install
11957
11958 # The host system.
11959 host_alias=$host_alias
11960 host=$host
11961 host_os=$host_os
11962
11963 # The build system.
11964 build_alias=$build_alias
11965 build=$build
11966 build_os=$build_os
11967
11968 # A sed program that does not truncate output.
11969 SED=$lt_SED
11970
11971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11972 Xsed="\$SED -e 1s/^X//"
11973
11974 # A grep program that handles long lines.
11975 GREP=$lt_GREP
11976
11977 # An ERE matcher.
11978 EGREP=$lt_EGREP
11979
11980 # A literal string matcher.
11981 FGREP=$lt_FGREP
11982
11983 # A BSD- or MS-compatible name lister.
11984 NM=$lt_NM
11985
11986 # Whether we need soft or hard links.
11987 LN_S=$lt_LN_S
11988
11989 # What is the maximum length of a command?
11990 max_cmd_len=$max_cmd_len
11991
11992 # Object file suffix (normally "o").
11993 objext=$ac_objext
11994
11995 # Executable file suffix (normally "").
11996 exeext=$exeext
11997
11998 # whether the shell understands "unset".
11999 lt_unset=$lt_unset
12000
12001 # turn spaces into newlines.
12002 SP2NL=$lt_lt_SP2NL
12003
12004 # turn newlines into spaces.
12005 NL2SP=$lt_lt_NL2SP
12006
12007 # How to create reloadable object files.
12008 reload_flag=$lt_reload_flag
12009 reload_cmds=$lt_reload_cmds
12010
12011 # Method to check whether dependent libraries are shared objects.
12012 deplibs_check_method=$lt_deplibs_check_method
12013
12014 # Command to use when deplibs_check_method == "file_magic".
12015 file_magic_cmd=$lt_file_magic_cmd
12016
12017 # The archiver.
12018 AR=$lt_AR
12019 AR_FLAGS=$lt_AR_FLAGS
12020
12021 # A symbol stripping program.
12022 STRIP=$lt_STRIP
12023
12024 # Commands used to install an old-style archive.
12025 RANLIB=$lt_RANLIB
12026 old_postinstall_cmds=$lt_old_postinstall_cmds
12027 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12028
12029 # A C compiler.
12030 LTCC=$lt_CC
12031
12032 # LTCC compiler flags.
12033 LTCFLAGS=$lt_CFLAGS
12034
12035 # Take the output of nm and produce a listing of raw symbols and C names.
12036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12037
12038 # Transform the output of nm in a proper C declaration.
12039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12040
12041 # Transform the output of nm in a C name address pair.
12042 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12043
12044 # The name of the directory that contains temporary libtool files.
12045 objdir=$objdir
12046
12047 # Shell to use when invoking shell scripts.
12048 SHELL=$lt_SHELL
12049
12050 # An echo program that does not interpret backslashes.
12051 ECHO=$lt_ECHO
12052
12053 # Used to examine libraries when file_magic_cmd begins with "file".
12054 MAGIC_CMD=$MAGIC_CMD
12055
12056 # Must we lock files when doing compilation?
12057 need_locks=$lt_need_locks
12058
12059 # Old archive suffix (normally "a").
12060 libext=$libext
12061
12062 # Shared library suffix (normally ".so").
12063 shrext_cmds=$lt_shrext_cmds
12064
12065 # The commands to extract the exported symbol list from a shared archive.
12066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12067
12068 # Variables whose values should be saved in libtool wrapper scripts and
12069 # restored at link time.
12070 variables_saved_for_relink=$lt_variables_saved_for_relink
12071
12072 # Do we need the "lib" prefix for modules?
12073 need_lib_prefix=$need_lib_prefix
12074
12075 # Do we need a version for libraries?
12076 need_version=$need_version
12077
12078 # Library versioning type.
12079 version_type=$version_type
12080
12081 # Shared library runtime path variable.
12082 runpath_var=$runpath_var
12083
12084 # Shared library path variable.
12085 shlibpath_var=$shlibpath_var
12086
12087 # Is shlibpath searched before the hard-coded library search path?
12088 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12089
12090 # Format of library name prefix.
12091 libname_spec=$lt_libname_spec
12092
12093 # List of archive names. First name is the real one, the rest are links.
12094 # The last name is the one that the linker finds with -lNAME
12095 library_names_spec=$lt_library_names_spec
12096
12097 # The coded name of the library, if different from the real name.
12098 soname_spec=$lt_soname_spec
12099
12100 # Command to use after installation of a shared archive.
12101 postinstall_cmds=$lt_postinstall_cmds
12102
12103 # Command to use after uninstallation of a shared archive.
12104 postuninstall_cmds=$lt_postuninstall_cmds
12105
12106 # Commands used to finish a libtool library installation in a directory.
12107 finish_cmds=$lt_finish_cmds
12108
12109 # As "finish_cmds", except a single script fragment to be evaled but
12110 # not shown.
12111 finish_eval=$lt_finish_eval
12112
12113 # Whether we should hardcode library paths into libraries.
12114 hardcode_into_libs=$hardcode_into_libs
12115
12116 # Compile-time system search path for libraries.
12117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12118
12119 # Run-time system search path for libraries.
12120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12121
12122 # Whether dlopen is supported.
12123 dlopen_support=$enable_dlopen
12124
12125 # Whether dlopen of programs is supported.
12126 dlopen_self=$enable_dlopen_self
12127
12128 # Whether dlopen of statically linked programs is supported.
12129 dlopen_self_static=$enable_dlopen_self_static
12130
12131 # Commands to strip libraries.
12132 old_striplib=$lt_old_striplib
12133 striplib=$lt_striplib
12134
12135
12136 # The linker used to build libraries.
12137 LD=$lt_LD
12138
12139 # Commands used to build an old-style archive.
12140 old_archive_cmds=$lt_old_archive_cmds
12141
12142 # A language specific compiler.
12143 CC=$lt_compiler
12144
12145 # Is the compiler the GNU compiler?
12146 with_gcc=$GCC
12147
12148 # Compiler flag to turn off builtin functions.
12149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12150
12151 # How to pass a linker flag through the compiler.
12152 wl=$lt_lt_prog_compiler_wl
12153
12154 # Additional compiler flags for building library objects.
12155 pic_flag=$lt_lt_prog_compiler_pic
12156
12157 # Compiler flag to prevent dynamic linking.
12158 link_static_flag=$lt_lt_prog_compiler_static
12159
12160 # Does compiler simultaneously support -c and -o options?
12161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12162
12163 # Whether or not to add -lc for building shared libraries.
12164 build_libtool_need_lc=$archive_cmds_need_lc
12165
12166 # Whether or not to disallow shared libs when runtime libs are static.
12167 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12168
12169 # Compiler flag to allow reflexive dlopens.
12170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12171
12172 # Compiler flag to generate shared objects directly from archives.
12173 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12174
12175 # Whether the compiler copes with passing no objects directly.
12176 compiler_needs_object=$lt_compiler_needs_object
12177
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12180
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12183
12184 # Commands used to build a shared archive.
12185 archive_cmds=$lt_archive_cmds
12186 archive_expsym_cmds=$lt_archive_expsym_cmds
12187
12188 # Commands used to build a loadable module if different from building
12189 # a shared archive.
12190 module_cmds=$lt_module_cmds
12191 module_expsym_cmds=$lt_module_expsym_cmds
12192
12193 # Whether we are building with GNU ld or not.
12194 with_gnu_ld=$lt_with_gnu_ld
12195
12196 # Flag that allows shared libraries with undefined symbols to be built.
12197 allow_undefined_flag=$lt_allow_undefined_flag
12198
12199 # Flag that enforces no undefined symbols.
12200 no_undefined_flag=$lt_no_undefined_flag
12201
12202 # Flag to hardcode \$libdir into a binary during linking.
12203 # This must work even if \$libdir does not exist
12204 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12205
12206 # If ld is used when linking, flag to hardcode \$libdir into a binary
12207 # during linking. This must work even if \$libdir does not exist.
12208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12209
12210 # Whether we need a single "-rpath" flag with a separated argument.
12211 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12212
12213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12214 # DIR into the resulting binary.
12215 hardcode_direct=$hardcode_direct
12216
12217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12218 # DIR into the resulting binary and the resulting library dependency is
12219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12220 # library is relocated.
12221 hardcode_direct_absolute=$hardcode_direct_absolute
12222
12223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12224 # into the resulting binary.
12225 hardcode_minus_L=$hardcode_minus_L
12226
12227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12228 # into the resulting binary.
12229 hardcode_shlibpath_var=$hardcode_shlibpath_var
12230
12231 # Set to "yes" if building a shared library automatically hardcodes DIR
12232 # into the library and all subsequent libraries and executables linked
12233 # against it.
12234 hardcode_automatic=$hardcode_automatic
12235
12236 # Set to yes if linker adds runtime paths of dependent libraries
12237 # to runtime path list.
12238 inherit_rpath=$inherit_rpath
12239
12240 # Whether libtool must link a program against all its dependency libraries.
12241 link_all_deplibs=$link_all_deplibs
12242
12243 # Fix the shell variable \$srcfile for the compiler.
12244 fix_srcfile_path=$lt_fix_srcfile_path
12245
12246 # Set to "yes" if exported symbols are required.
12247 always_export_symbols=$always_export_symbols
12248
12249 # The commands to list exported symbols.
12250 export_symbols_cmds=$lt_export_symbols_cmds
12251
12252 # Symbols that should not be listed in the preloaded symbols.
12253 exclude_expsyms=$lt_exclude_expsyms
12254
12255 # Symbols that must always be exported.
12256 include_expsyms=$lt_include_expsyms
12257
12258 # Commands necessary for linking programs (against libraries) with templates.
12259 prelink_cmds=$lt_prelink_cmds
12260
12261 # Specify filename containing input files.
12262 file_list_spec=$lt_file_list_spec
12263
12264 # How to hardcode a shared library path into an executable.
12265 hardcode_action=$hardcode_action
12266
12267 # ### END LIBTOOL CONFIG
12268
12269 _LT_EOF
12270
12271 case $host_os in
12272 aix3*)
12273 cat <<\_LT_EOF >> "$cfgfile"
12274 # AIX sometimes has problems with the GCC collect2 program. For some
12275 # reason, if we set the COLLECT_NAMES environment variable, the problems
12276 # vanish in a puff of smoke.
12277 if test "X${COLLECT_NAMES+set}" != Xset; then
12278 COLLECT_NAMES=
12279 export COLLECT_NAMES
12280 fi
12281 _LT_EOF
12282 ;;
12283 esac
12284
12285
12286 ltmain="$ac_aux_dir/ltmain.sh"
12287
12288
12289 # We use sed instead of cat because bash on DJGPP gets confused if
12290 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12291 # text mode, it properly converts lines to CR/LF. This bash problem
12292 # is reportedly fixed, but why not run on old versions too?
12293 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12294 || (rm -f "$cfgfile"; exit 1)
12295
12296 case $xsi_shell in
12297 yes)
12298 cat << \_LT_EOF >> "$cfgfile"
12299 # func_dirname file append nondir_replacement
12300 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12301 # otherwise set result to NONDIR_REPLACEMENT.
12302 func_dirname ()
12303 {
12304 case ${1} in
12305 */*) func_dirname_result="${1%/*}${2}" ;;
12306 * ) func_dirname_result="${3}" ;;
12307 esac
12308 }
12309
12310 # func_basename file
12311 func_basename ()
12312 {
12313 func_basename_result="${1##*/}"
12314 }
12315
12316 # func_stripname prefix suffix name
12317 # strip PREFIX and SUFFIX off of NAME.
12318 # PREFIX and SUFFIX must not contain globbing or regex special
12319 # characters, hashes, percent signs, but SUFFIX may contain a leading
12320 # dot (in which case that matches only a dot).
12321 func_stripname ()
12322 {
12323 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12324 # positional parameters, so assign one to ordinary parameter first.
12325 func_stripname_result=${3}
12326 func_stripname_result=${func_stripname_result#"${1}"}
12327 func_stripname_result=${func_stripname_result%"${2}"}
12328 }
12329
12330 # func_opt_split
12331 func_opt_split ()
12332 {
12333 func_opt_split_opt=${1%%=*}
12334 func_opt_split_arg=${1#*=}
12335 }
12336
12337 # func_lo2o object
12338 func_lo2o ()
12339 {
12340 case ${1} in
12341 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12342 *) func_lo2o_result=${1} ;;
12343 esac
12344 }
12345 _LT_EOF
12346 ;;
12347 *) # Bourne compatible functions.
12348 cat << \_LT_EOF >> "$cfgfile"
12349 # func_dirname file append nondir_replacement
12350 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12351 # otherwise set result to NONDIR_REPLACEMENT.
12352 func_dirname ()
12353 {
12354 # Extract subdirectory from the argument.
12355 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12356 if test "X$func_dirname_result" = "X${1}"; then
12357 func_dirname_result="${3}"
12358 else
12359 func_dirname_result="$func_dirname_result${2}"
12360 fi
12361 }
12362
12363 # func_basename file
12364 func_basename ()
12365 {
12366 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12367 }
12368
12369 # func_stripname prefix suffix name
12370 # strip PREFIX and SUFFIX off of NAME.
12371 # PREFIX and SUFFIX must not contain globbing or regex special
12372 # characters, hashes, percent signs, but SUFFIX may contain a leading
12373 # dot (in which case that matches only a dot).
12374 # func_strip_suffix prefix name
12375 func_stripname ()
12376 {
12377 case ${2} in
12378 .*) func_stripname_result=`$ECHO "X${3}" \
12379 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12380 *) func_stripname_result=`$ECHO "X${3}" \
12381 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12382 esac
12383 }
12384
12385 # sed scripts:
12386 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12387 my_sed_long_arg='1s/^-[^=]*=//'
12388
12389 # func_opt_split
12390 func_opt_split ()
12391 {
12392 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12393 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12394 }
12395
12396 # func_lo2o object
12397 func_lo2o ()
12398 {
12399 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12400 }
12401 _LT_EOF
12402 esac
12403
12404 case $lt_shell_append in
12405 yes)
12406 cat << \_LT_EOF >> "$cfgfile"
12407
12408 # func_append var value
12409 # Append VALUE to the end of shell variable VAR.
12410 func_append ()
12411 {
12412 eval "$1+=\$2"
12413 }
12414 _LT_EOF
12415 ;;
12416 *)
12417 cat << \_LT_EOF >> "$cfgfile"
12418
12419 # func_append var value
12420 # Append VALUE to the end of shell variable VAR.
12421 func_append ()
12422 {
12423 eval "$1=\$$1\$2"
12424 }
12425 _LT_EOF
12426 ;;
12427 esac
12428
12429
12430 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12431 || (rm -f "$cfgfile"; exit 1)
12432
12433 mv -f "$cfgfile" "$ofile" ||
12434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12435 chmod +x "$ofile"
12436
12437 ;;
12438 esac
12439 done
12440 _ACEOF
12441
12442 cat >>$CONFIG_STATUS <<\_ACEOF
12443
12444 { (exit 0); exit 0; }
12445 _ACEOF
12446 chmod +x $CONFIG_STATUS
12447 ac_clean_files=$ac_clean_files_save
12448
12449
12450 # configure is writing to config.log, and then calls config.status.
12451 # config.status does its own redirection, appending to config.log.
12452 # Unfortunately, on DOS this fails, as config.log is still kept open
12453 # by configure, so config.status won't be able to write to it; its
12454 # output is simply discarded. So we exec the FD to /dev/null,
12455 # effectively closing config.log, so it can be properly (re)opened and
12456 # appended to by config.status. When coming back to configure, we
12457 # need to make the FD available again.
12458 if test "$no_create" != yes; then
12459 ac_cs_success=:
12460 ac_config_status_args=
12461 test "$silent" = yes &&
12462 ac_config_status_args="$ac_config_status_args --quiet"
12463 exec 5>/dev/null
12464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12465 exec 5>>config.log
12466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12467 # would make configure fail if this is the last instruction.
12468 $ac_cs_success || { (exit 1); exit 1; }
12469 fi
12470