Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / libs / random128 / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for random128 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='random128'
592PACKAGE_TARNAME='random128'
593PACKAGE_VERSION='0.10'
594PACKAGE_STRING='random128 0.10'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="random128.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LT_SYS_LIBRARY_PATH
640OTOOL64
641OTOOL
642LIPO
643NMEDIT
644DSYMUTIL
645MANIFEST_TOOL
646RANLIB
647ac_ct_AR
648AR
649DLLTOOL
650OBJDUMP
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656SED
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665LIBTOOL
666W
667PS
668LN_S
669EGREP
670GREP
671CPP
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_aix_soname
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
767enable_largefile
768with_random
769'
770 ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP
779LT_SYS_LIBRARY_PATH'
780
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
785ac_unrecognized_opts=
786ac_unrecognized_sep=
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
809# (The list follows the same order as the GNU Coding Standards.)
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
829
830ac_prev=
831ac_dashdash=
832for ac_option
833do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291fi
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320\`configure' configures random128 0.10 to adapt to many kinds of systems.
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/random128]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of random128 0.10:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --disable-largefile omit support for large files
1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
1422 --with-random=/dev/urandom - location of the system random file generator
1423--without-random - there is no system random file generator
1424
1425Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 LT_SYS_LIBRARY_PATH
1435 User-defined run-time library search path.
1436
1437Use these variables to override the choices made by `configure' or to help
1438it to find libraries and programs with nonstandard names/locations.
1439
1440Report bugs to <courier-users@lists.sourceforge.net>.
1441_ACEOF
1442ac_status=$?
1443fi
1444
1445if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 continue
1451 ac_builddir=.
1452
1453case "$ac_dir" in
1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455*)
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 esac ;;
1463esac
1464ac_abs_top_builddir=$ac_pwd
1465ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466# for backward compatibility:
1467ac_top_builddir=$ac_top_build_prefix
1468
1469case $srcdir in
1470 .) # We are building in place.
1471 ac_srcdir=.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1478 *) # Relative name.
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482esac
1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1493 else
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 fi || ac_status=$?
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1497 done
1498fi
1499
1500test -n "$ac_init_help" && exit $ac_status
1501if $ac_init_version; then
1502 cat <<\_ACEOF
1503random128 configure 0.10
1504generated by GNU Autoconf 2.69
1505
1506Copyright (C) 2012 Free Software Foundation, Inc.
1507This configure script is free software; the Free Software Foundation
1508gives unlimited permission to copy, distribute and modify it.
1509_ACEOF
1510 exit
1511fi
1512
1513## ------------------------ ##
1514## Autoconf initialization. ##
1515## ------------------------ ##
1516
1517# ac_fn_c_try_compile LINENO
1518# --------------------------
1519# Try to compile conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_compile ()
1521{
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544else
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553} # ac_fn_c_try_compile
1554
1555# ac_fn_c_try_cpp LINENO
1556# ----------------------
1557# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558ac_fn_c_try_cpp ()
1559{
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 }; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_cpp
1591
1592# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593# -------------------------------------------------------
1594# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595# the include files in INCLUDES and setting the cache variable VAR
1596# accordingly.
1597ac_fn_c_check_header_mongrel ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if eval \${$3+:} false; then :
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605fi
1606eval ac_res=\$$3
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608$as_echo "$ac_res" >&6; }
1609else
1610 # Is the header compilable?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612$as_echo_n "checking $2 usability... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619 ac_header_compiler=yes
1620else
1621 ac_header_compiler=no
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625$as_echo "$ac_header_compiler" >&6; }
1626
1627# Is the header present?
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629$as_echo_n "checking $2 presence... " >&6; }
1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_cpp "$LINENO"; then :
1635 ac_header_preproc=yes
1636else
1637 ac_header_preproc=no
1638fi
1639rm -f conftest.err conftest.i conftest.$ac_ext
1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641$as_echo "$ac_header_preproc" >&6; }
1642
1643# So? What about this header?
1644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645 yes:no: )
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 ;;
1651 no:yes:* )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1655$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1659$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662( $as_echo "## -------------------------------------------------- ##
1663## Report this to courier-users@lists.sourceforge.net ##
1664## -------------------------------------------------- ##"
1665 ) | sed "s/^/$as_me: WARNING: /" >&2
1666 ;;
1667esac
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672else
1673 eval "$3=\$ac_header_compiler"
1674fi
1675eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_mongrel
1682
1683# ac_fn_c_try_run LINENO
1684# ----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686# that executables *can* be run.
1687ac_fn_c_try_run ()
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_run
1724
1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists and can be compiled using the include files in
1728# INCLUDES, setting the cache variable VAR accordingly.
1729ac_fn_c_check_header_compile ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h. */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744else
1745 eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748fi
1749eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754} # ac_fn_c_check_header_compile
1755
1756# ac_fn_c_try_link LINENO
1757# -----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_link ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_link
1801
1802# ac_fn_c_check_func LINENO FUNC VAR
1803# ----------------------------------
1804# Tests whether FUNC exists, setting the cache variable VAR accordingly
1805ac_fn_c_check_func ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817#define $2 innocuous_$2
1818
1819/* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1823
1824#ifdef __STDC__
1825# include <limits.h>
1826#else
1827# include <assert.h>
1828#endif
1829
1830#undef $2
1831
1832/* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835#ifdef __cplusplus
1836extern "C"
1837#endif
1838char $2 ();
1839/* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842#if defined __stub_$2 || defined __stub___$2
1843choke me
1844#endif
1845
1846int
1847main ()
1848{
1849return $2 ();
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856else
1857 eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_func
1868
1869# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1870# -------------------------------------------
1871# Tests whether TYPE exists after having included INCLUDES, setting cache
1872# variable VAR accordingly.
1873ac_fn_c_check_type ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880else
1881 eval "$3=no"
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885int
1886main ()
1887{
1888if (sizeof ($2))
1889 return 0;
1890 ;
1891 return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897$4
1898int
1899main ()
1900{
1901if (sizeof (($2)))
1902 return 0;
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908
1909else
1910 eval "$3=yes"
1911fi
1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915fi
1916eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921} # ac_fn_c_check_type
1922cat >config.log <<_ACEOF
1923This file contains any messages produced by compilers while
1924running configure, to aid debugging if configure makes a mistake.
1925
1926It was created by random128 $as_me 0.10, which was
1927generated by GNU Autoconf 2.69. Invocation command line was
1928
1929 $ $0 $@
1930
1931_ACEOF
1932exec 5>>config.log
1933{
1934cat <<_ASUNAME
1935## --------- ##
1936## Platform. ##
1937## --------- ##
1938
1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1947
1948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1955
1956_ASUNAME
1957
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 $as_echo "PATH: $as_dir"
1964 done
1965IFS=$as_save_IFS
1966
1967} >&5
1968
1969cat >&5 <<_ACEOF
1970
1971
1972## ----------- ##
1973## Core tests. ##
1974## ----------- ##
1975
1976_ACEOF
1977
1978
1979# Keep a trace of the command line.
1980# Strip out --no-create and --no-recursion so they do not pile up.
1981# Strip out --silent because we don't want to record it for future runs.
1982# Also quote any args containing shell meta-characters.
1983# Make two passes to allow for proper duplicate-argument suppression.
1984ac_configure_args=
1985ac_configure_args0=
1986ac_configure_args1=
1987ac_must_keep_next=false
1988for ac_pass in 1 2
1989do
1990 for ac_arg
1991 do
1992 case $ac_arg in
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1996 continue ;;
1997 *\'*)
1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 case $ac_pass in
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002 2)
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2006 else
2007 case $ac_arg in
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014 esac
2015 ;;
2016 -* ) ac_must_keep_next=true ;;
2017 esac
2018 fi
2019 as_fn_append ac_configure_args " '$ac_arg'"
2020 ;;
2021 esac
2022 done
2023done
2024{ ac_configure_args0=; unset ac_configure_args0;}
2025{ ac_configure_args1=; unset ac_configure_args1;}
2026
2027# When interrupted or exit'd, cleanup temporary files, and complete
2028# config.log. We remove comments because anyway the quotes in there
2029# would cause problems or look ugly.
2030# WARNING: Use '\'' to represent an apostrophe within the trap.
2031# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032trap 'exit_status=$?
2033 # Save into config.log some information that might help in debugging.
2034 {
2035 echo
2036
2037 $as_echo "## ---------------- ##
2038## Cache variables. ##
2039## ---------------- ##"
2040 echo
2041 # The following way of writing the cache mishandles newlines in values,
2042(
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in #(
2046 *${as_nl}*)
2047 case $ac_var in #(
2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 esac
2051 case $ac_var in #(
2052 _ | IFS | as_nl) ;; #(
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2054 *) { eval $ac_var=; unset $ac_var;} ;;
2055 esac ;;
2056 esac
2057 done
2058 (set) 2>&1 |
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2060 *${as_nl}ac_space=\ *)
2061 sed -n \
2062 "s/'\''/'\''\\\\'\'''\''/g;
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 ;; #(
2065 *)
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 ;;
2068 esac |
2069 sort
2070)
2071 echo
2072
2073 $as_echo "## ----------------- ##
2074## Output variables. ##
2075## ----------------- ##"
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 $as_echo "## ------------------- ##
2089## File substitutions. ##
2090## ------------------- ##"
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 $as_echo "## ----------- ##
2105## confdefs.h. ##
2106## ----------- ##"
2107 echo
2108 cat confdefs.h
2109 echo
2110 fi
2111 test "$ac_signal" != 0 &&
2112 $as_echo "$as_me: caught signal $ac_signal"
2113 $as_echo "$as_me: exit $exit_status"
2114 } >&5
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 exit $exit_status
2118' 0
2119for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2121done
2122ac_signal=0
2123
2124# confdefs.h avoids OS command line length limits that DEFS can exceed.
2125rm -f -r conftest* confdefs.h
2126
2127$as_echo "/* confdefs.h */" > confdefs.h
2128
2129# Predefined preprocessor variables.
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_NAME "$PACKAGE_NAME"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_VERSION "$PACKAGE_VERSION"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_STRING "$PACKAGE_STRING"
2145_ACEOF
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149_ACEOF
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_URL "$PACKAGE_URL"
2153_ACEOF
2154
2155
2156# Let the site file select an alternate cache file if it wants to.
2157# Prefer an explicitly selected file to automatically selected ones.
2158ac_site_file1=NONE
2159ac_site_file2=NONE
2160if test -n "$CONFIG_SITE"; then
2161 # We do not want a PATH search for config.site.
2162 case $CONFIG_SITE in #((
2163 -*) ac_site_file1=./$CONFIG_SITE;;
2164 */*) ac_site_file1=$CONFIG_SITE;;
2165 *) ac_site_file1=./$CONFIG_SITE;;
2166 esac
2167elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2173fi
2174for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2175do
2176 test "x$ac_site_file" = xNONE && continue
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file" \
2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184as_fn_error $? "failed to load site script $ac_site_file
2185See \`config.log' for more details" "$LINENO" 5; }
2186 fi
2187done
2188
2189if test -r "$cache_file"; then
2190 # Some versions of bash will fail to source /dev/null (special files
2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2194$as_echo "$as_me: loading cache $cache_file" >&6;}
2195 case $cache_file in
2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2197 *) . "./$cache_file";;
2198 esac
2199 fi
2200else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2202$as_echo "$as_me: creating cache $cache_file" >&6;}
2203 >$cache_file
2204fi
2205
2206# Check that the precious variables saved in the cache have kept the same
2207# value.
2208ac_cache_corrupted=false
2209for ac_var in $ac_precious_vars; do
2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2211 eval ac_new_set=\$ac_env_${ac_var}_set
2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2213 eval ac_new_val=\$ac_env_${ac_var}_value
2214 case $ac_old_set,$ac_new_set in
2215 set,)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2217$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,set)
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2221$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2222 ac_cache_corrupted=: ;;
2223 ,);;
2224 *)
2225 if test "x$ac_old_val" != "x$ac_new_val"; then
2226 # differences in whitespace do not lead to failure.
2227 ac_old_val_w=`echo x $ac_old_val`
2228 ac_new_val_w=`echo x $ac_new_val`
2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2231$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2232 ac_cache_corrupted=:
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2235$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2236 eval $ac_var=\$ac_old_val
2237 fi
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2239$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2241$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2242 fi;;
2243 esac
2244 # Pass precious variables to config.status.
2245 if test "$ac_new_set" = set; then
2246 case $ac_new_val in
2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 *) ac_arg=$ac_var=$ac_new_val ;;
2249 esac
2250 case " $ac_configure_args " in
2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2253 esac
2254 fi
2255done
2256if $ac_cache_corrupted; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2260$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2262fi
2263## -------------------- ##
2264## Main body of script. ##
2265## -------------------- ##
2266
2267ac_ext=c
2268ac_cpp='$CPP $CPPFLAGS'
2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
2273
2274
2275>confdefs.h # Kill PACKAGE_ macros
2276
2277
2278ac_aux_dir=
2279for ac_dir in ../.. "$srcdir"/../..; do
2280 if test -f "$ac_dir/install-sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install-sh -c"
2283 break
2284 elif test -f "$ac_dir/install.sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install.sh -c"
2287 break
2288 elif test -f "$ac_dir/shtool"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/shtool install -c"
2291 break
2292 fi
2293done
2294if test -z "$ac_aux_dir"; then
2295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2296fi
2297
2298# These three variables are undocumented and unsupported,
2299# and are intended to be withdrawn in a future Autoconf release.
2300# They can cause serious problems if a builder's source tree is in a directory
2301# whose full name contains unusual characters.
2302ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2303ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2304ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2305
2306
2307am__api_version='1.15'
2308
2309# Find a good install program. We prefer a C program (faster),
2310# so one script is as good as another. But avoid the broken or
2311# incompatible versions:
2312# SysV /etc/install, /usr/sbin/install
2313# SunOS /usr/etc/install
2314# IRIX /sbin/install
2315# AIX /bin/install
2316# AmigaOS /C/install, which installs bootblocks on floppy discs
2317# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2318# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2319# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2320# OS/2's system install, which has a completely different semantic
2321# ./install, which can be erroneously created by make from ./install.sh.
2322# Reject install programs that cannot install multiple files.
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2324$as_echo_n "checking for a BSD-compatible install... " >&6; }
2325if test -z "$INSTALL"; then
2326if ${ac_cv_path_install+:} false; then :
2327 $as_echo_n "(cached) " >&6
2328else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 # Account for people who put trailing slashes in PATH elements.
2335case $as_dir/ in #((
2336 ./ | .// | /[cC]/* | \
2337 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2338 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2339 /usr/ucb/* ) ;;
2340 *)
2341 # OSF1 and SCO ODT 3.0 have their own names for install.
2342 # Don't use installbsd from OSF since it installs stuff as root
2343 # by default.
2344 for ac_prog in ginstall scoinst install; do
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2347 if test $ac_prog = install &&
2348 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # AIX install. It has an incompatible calling convention.
2350 :
2351 elif test $ac_prog = install &&
2352 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2353 # program-specific install script used by HP pwplus--don't use.
2354 :
2355 else
2356 rm -rf conftest.one conftest.two conftest.dir
2357 echo one > conftest.one
2358 echo two > conftest.two
2359 mkdir conftest.dir
2360 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2361 test -s conftest.one && test -s conftest.two &&
2362 test -s conftest.dir/conftest.one &&
2363 test -s conftest.dir/conftest.two
2364 then
2365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2366 break 3
2367 fi
2368 fi
2369 fi
2370 done
2371 done
2372 ;;
2373esac
2374
2375 done
2376IFS=$as_save_IFS
2377
2378rm -rf conftest.one conftest.two conftest.dir
2379
2380fi
2381 if test "${ac_cv_path_install+set}" = set; then
2382 INSTALL=$ac_cv_path_install
2383 else
2384 # As a last resort, use the slow shell script. Don't cache a
2385 # value for INSTALL within a source directory, because that will
2386 # break other packages using the cache if that directory is
2387 # removed, or if the value is a relative name.
2388 INSTALL=$ac_install_sh
2389 fi
2390fi
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2392$as_echo "$INSTALL" >&6; }
2393
2394# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2395# It thinks the first close brace ends the variable substitution.
2396test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2397
2398test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2399
2400test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2401
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2403$as_echo_n "checking whether build environment is sane... " >&6; }
2404# Reject unsafe characters in $srcdir or the absolute working directory
2405# name. Accept space and tab only in the latter.
2406am_lf='
2407'
2408case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2411esac
2412case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2414 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2415esac
2416
2417# Do 'set' in a subshell so we don't clobber the current shell's
2418# arguments. Must try -L first in case configure is actually a
2419# symlink; some systems play weird games with the mod time of symlinks
2420# (eg FreeBSD returns the mod time of the symlink's containing
2421# directory).
2422if (
2423 am_has_slept=no
2424 for am_try in 1 2; do
2425 echo "timestamp, slept: $am_has_slept" > conftest.file
2426 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2427 if test "$*" = "X"; then
2428 # -L didn't work.
2429 set X `ls -t "$srcdir/configure" conftest.file`
2430 fi
2431 if test "$*" != "X $srcdir/configure conftest.file" \
2432 && test "$*" != "X conftest.file $srcdir/configure"; then
2433
2434 # If neither matched, then we have a broken ls. This can happen
2435 # if, for instance, CONFIG_SHELL is bash and it inherits a
2436 # broken ls alias from the environment. This has actually
2437 # happened. Such a system could not be considered "sane".
2438 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2439 alias in your environment" "$LINENO" 5
2440 fi
2441 if test "$2" = conftest.file || test $am_try -eq 2; then
2442 break
2443 fi
2444 # Just in case.
2445 sleep 1
2446 am_has_slept=yes
2447 done
2448 test "$2" = conftest.file
2449 )
2450then
2451 # Ok.
2452 :
2453else
2454 as_fn_error $? "newly created file is older than distributed files!
2455Check your system clock" "$LINENO" 5
2456fi
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458$as_echo "yes" >&6; }
2459# If we didn't sleep, we still need to ensure time stamps of config.status and
2460# generated files are strictly newer.
2461am_sleep_pid=
2462if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2463 ( sleep 1 ) &
2464 am_sleep_pid=$!
2465fi
2466
2467rm -f conftest.file
2468
2469test "$program_prefix" != NONE &&
2470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2471# Use a double $ so make ignores it.
2472test "$program_suffix" != NONE &&
2473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2474# Double any \ or $.
2475# By default was `s,x,x', remove it if useless.
2476ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2477program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2478
2479# Expand $ac_aux_dir to an absolute path.
2480am_aux_dir=`cd "$ac_aux_dir" && pwd`
2481
2482if test x"${MISSING+set}" != xset; then
2483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2486 *)
2487 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2488 esac
2489fi
2490# Use eval to expand $SHELL
2491if eval "$MISSING --is-lightweight"; then
2492 am_missing_run="$MISSING "
2493else
2494 am_missing_run=
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2496$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2497fi
2498
2499if test x"${install_sh+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2503 *)
2504 install_sh="\${SHELL} $am_aux_dir/install-sh"
2505 esac
2506fi
2507
2508# Installed binaries are usually stripped using 'strip' when the user
2509# run "make install-strip". However 'strip' might not be the right
2510# tool to use in cross-compilation environments, therefore Automake
2511# will honor the 'STRIP' environment variable to overrule this program.
2512if test "$cross_compiling" != no; then
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2515set dummy ${ac_tool_prefix}strip; ac_word=$2
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517$as_echo_n "checking for $ac_word... " >&6; }
2518if ${ac_cv_prog_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520else
2521 if test -n "$STRIP"; then
2522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536 done
2537IFS=$as_save_IFS
2538
2539fi
2540fi
2541STRIP=$ac_cv_prog_STRIP
2542if test -n "$STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2544$as_echo "$STRIP" >&6; }
2545else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548fi
2549
2550
2551fi
2552if test -z "$ac_cv_prog_STRIP"; then
2553 ac_ct_STRIP=$STRIP
2554 # Extract the first word of "strip", so it can be a program name with args.
2555set dummy strip; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560else
2561 if test -n "$ac_ct_STRIP"; then
2562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_STRIP="strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575done
2576 done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2582if test -n "$ac_ct_STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2584$as_echo "$ac_ct_STRIP" >&6; }
2585else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590 if test "x$ac_ct_STRIP" = x; then
2591 STRIP=":"
2592 else
2593 case $cross_compiling:$ac_tool_warned in
2594yes:)
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597ac_tool_warned=yes ;;
2598esac
2599 STRIP=$ac_ct_STRIP
2600 fi
2601else
2602 STRIP="$ac_cv_prog_STRIP"
2603fi
2604
2605fi
2606INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2607
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2609$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2610if test -z "$MKDIR_P"; then
2611 if ${ac_cv_path_mkdir+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_prog in mkdir gmkdir; do
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2623 'mkdir (GNU coreutils) '* | \
2624 'mkdir (coreutils) '* | \
2625 'mkdir (fileutils) '4.1*)
2626 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2627 break 3;;
2628 esac
2629 done
2630 done
2631 done
2632IFS=$as_save_IFS
2633
2634fi
2635
2636 test -d ./--version && rmdir ./--version
2637 if test "${ac_cv_path_mkdir+set}" = set; then
2638 MKDIR_P="$ac_cv_path_mkdir -p"
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for MKDIR_P within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 MKDIR_P="$ac_install_sh -d"
2645 fi
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2648$as_echo "$MKDIR_P" >&6; }
2649
2650for ac_prog in gawk mawk nawk awk
2651do
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653set dummy $ac_prog; ac_word=$2
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655$as_echo_n "checking for $ac_word... " >&6; }
2656if ${ac_cv_prog_AWK+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658else
2659 if test -n "$AWK"; then
2660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2661else
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_AWK="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673done
2674 done
2675IFS=$as_save_IFS
2676
2677fi
2678fi
2679AWK=$ac_cv_prog_AWK
2680if test -n "$AWK"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682$as_echo "$AWK" >&6; }
2683else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685$as_echo "no" >&6; }
2686fi
2687
2688
2689 test -n "$AWK" && break
2690done
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2693$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2694set x ${MAKE-make}
2695ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2696if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698else
2699 cat >conftest.make <<\_ACEOF
2700SHELL = /bin/sh
2701all:
2702 @echo '@@@%%%=$(MAKE)=@@@%%%'
2703_ACEOF
2704# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2705case `${MAKE-make} -f conftest.make 2>/dev/null` in
2706 *@@@%%%=?*=@@@%%%*)
2707 eval ac_cv_prog_make_${ac_make}_set=yes;;
2708 *)
2709 eval ac_cv_prog_make_${ac_make}_set=no;;
2710esac
2711rm -f conftest.make
2712fi
2713if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715$as_echo "yes" >&6; }
2716 SET_MAKE=
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720 SET_MAKE="MAKE=${MAKE-make}"
2721fi
2722
2723rm -rf .tst 2>/dev/null
2724mkdir .tst 2>/dev/null
2725if test -d .tst; then
2726 am__leading_dot=.
2727else
2728 am__leading_dot=_
2729fi
2730rmdir .tst 2>/dev/null
2731
2732# Check whether --enable-silent-rules was given.
2733if test "${enable_silent_rules+set}" = set; then :
2734 enableval=$enable_silent_rules;
2735fi
2736
2737case $enable_silent_rules in # (((
2738 yes) AM_DEFAULT_VERBOSITY=0;;
2739 no) AM_DEFAULT_VERBOSITY=1;;
2740 *) AM_DEFAULT_VERBOSITY=1;;
2741esac
2742am_make=${MAKE-make}
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2744$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2745if ${am_cv_make_support_nested_variables+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747else
2748 if $as_echo 'TRUE=$(BAR$(V))
2749BAR0=false
2750BAR1=true
2751V=1
2752am__doit:
2753 @$(TRUE)
2754.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2755 am_cv_make_support_nested_variables=yes
2756else
2757 am_cv_make_support_nested_variables=no
2758fi
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2761$as_echo "$am_cv_make_support_nested_variables" >&6; }
2762if test $am_cv_make_support_nested_variables = yes; then
2763 AM_V='$(V)'
2764 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2765else
2766 AM_V=$AM_DEFAULT_VERBOSITY
2767 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2768fi
2769AM_BACKSLASH='\'
2770
2771if test "`cd $srcdir && pwd`" != "`pwd`"; then
2772 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2773 # is not polluted with repeated "-I."
2774 am__isrc=' -I$(srcdir)'
2775 # test to see if srcdir already configured
2776 if test -f $srcdir/config.status; then
2777 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2778 fi
2779fi
2780
2781# test whether we have cygpath
2782if test -z "$CYGPATH_W"; then
2783 if (cygpath --version) >/dev/null 2>/dev/null; then
2784 CYGPATH_W='cygpath -w'
2785 else
2786 CYGPATH_W=echo
2787 fi
2788fi
2789
2790
2791# Define the identity of the package.
2792 PACKAGE='random128'
2793 VERSION='0.10'
2794
2795
2796# Some tools Automake needs.
2797
2798ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2799
2800
2801AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2802
2803
2804AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2805
2806
2807AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2808
2809
2810MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2811
2812# For better backward compatibility. To be removed once Automake 1.9.x
2813# dies out for good. For more background, see:
2814# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2815# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2816mkdir_p='$(MKDIR_P)'
2817
2818# We need awk for the "check" target (and possibly the TAP driver). The
2819# system "awk" is bad on some platforms.
2820# Always define AMTAR for backward compatibility. Yes, it's still used
2821# in the wild :-( We should find a proper way to deprecate it ...
2822AMTAR='$${TAR-tar}'
2823
2824
2825# We'll loop over all known methods to create a tar archive until one works.
2826_am_tools='gnutar pax cpio none'
2827
2828am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2829
2830
2831
2832
2833
2834
2835# POSIX will say in a future version that running "rm -f" with no argument
2836# is OK; and we want to be able to make that assumption in our Makefile
2837# recipes. So use an aggressive probe to check that the usage we want is
2838# actually supported "in the wild" to an acceptable degree.
2839# See automake bug#10828.
2840# To make any issue more visible, cause the running configure to be aborted
2841# by default if the 'rm' program in use doesn't match our expectations; the
2842# user can still override this though.
2843if rm -f && rm -fr && rm -rf; then : OK; else
2844 cat >&2 <<'END'
2845Oops!
2846
2847Your 'rm' program seems unable to run without file operands specified
2848on the command line, even when the '-f' option is present. This is contrary
2849to the behaviour of most rm programs out there, and not conforming with
2850the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2851
2852Please tell bug-automake@gnu.org about your system, including the value
2853of your $PATH and any error possibly output before this message. This
2854can help us improve future automake versions.
2855
2856END
2857 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2858 echo 'Configuration will proceed anyway, since you have set the' >&2
2859 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2860 echo >&2
2861 else
2862 cat >&2 <<'END'
2863Aborting the configuration process, to ensure you take notice of the issue.
2864
2865You can download and install GNU coreutils to get an 'rm' implementation
2866that behaves properly: <http://www.gnu.org/software/coreutils/>.
2867
2868If you want to complete the configuration process using your problematic
2869'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2870to "yes", and re-run configure.
2871
2872END
2873 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2874 fi
2875fi
2876
2877LPATH="$PATH:/usr/local/bin"
2878
2879
2880ac_config_headers="$ac_config_headers config.h"
2881
2882DEPDIR="${am__leading_dot}deps"
2883
2884ac_config_commands="$ac_config_commands depfiles"
2885
2886
2887am_make=${MAKE-make}
2888cat > confinc << 'END'
2889am__doit:
2890 @echo this is the am__doit target
2891.PHONY: am__doit
2892END
2893# If we don't find an include directive, just comment out the code.
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2895$as_echo_n "checking for style of include used by $am_make... " >&6; }
2896am__include="#"
2897am__quote=
2898_am_result=none
2899# First try GNU make style include.
2900echo "include confinc" > confmf
2901# Ignore all kinds of additional output from 'make'.
2902case `$am_make -s -f confmf 2> /dev/null` in #(
2903*the\ am__doit\ target*)
2904 am__include=include
2905 am__quote=
2906 _am_result=GNU
2907 ;;
2908esac
2909# Now try BSD make style include.
2910if test "$am__include" = "#"; then
2911 echo '.include "confinc"' > confmf
2912 case `$am_make -s -f confmf 2> /dev/null` in #(
2913 *the\ am__doit\ target*)
2914 am__include=.include
2915 am__quote="\""
2916 _am_result=BSD
2917 ;;
2918 esac
2919fi
2920
2921
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2923$as_echo "$_am_result" >&6; }
2924rm -f confinc confmf
2925
2926# Check whether --enable-dependency-tracking was given.
2927if test "${enable_dependency_tracking+set}" = set; then :
2928 enableval=$enable_dependency_tracking;
2929fi
2930
2931if test "x$enable_dependency_tracking" != xno; then
2932 am_depcomp="$ac_aux_dir/depcomp"
2933 AMDEPBACKSLASH='\'
2934 am__nodep='_no'
2935fi
2936 if test "x$enable_dependency_tracking" != xno; then
2937 AMDEP_TRUE=
2938 AMDEP_FALSE='#'
2939else
2940 AMDEP_TRUE='#'
2941 AMDEP_FALSE=
2942fi
2943
2944
2945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972done
2973 done
2974IFS=$as_save_IFS
2975
2976fi
2977fi
2978CC=$ac_cv_prog_CC
2979if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981$as_echo "$CC" >&6; }
2982else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988fi
2989if test -z "$ac_cv_prog_CC"; then
2990 ac_ct_CC=$CC
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992set dummy gcc; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_ac_ct_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012done
3013 done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019if test -n "$ac_ct_CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021$as_echo "$ac_ct_CC" >&6; }
3022else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027 if test "x$ac_ct_CC" = x; then
3028 CC=""
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036 CC=$ac_ct_CC
3037 fi
3038else
3039 CC="$ac_cv_prog_CC"
3040fi
3041
3042if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}cc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_CC="${ac_tool_prefix}cc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081 fi
3082fi
3083if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093else
3094 ac_prog_rejected=no
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected=yes
3104 continue
3105 fi
3106 ac_cv_prog_CC="cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110done
3111 done
3112IFS=$as_save_IFS
3113
3114if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy $ac_cv_prog_CC
3117 shift
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3122 shift
3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124 fi
3125fi
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135fi
3136
3137
3138fi
3139if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in cl.exe
3142 do
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165 done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173$as_echo "$CC" >&6; }
3174else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180 test -n "$CC" && break
3181 done
3182fi
3183if test -z "$CC"; then
3184 ac_ct_CC=$CC
3185 for ac_prog in cl.exe
3186do
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188set dummy $ac_prog; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_CC="$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209 done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217$as_echo "$ac_ct_CC" >&6; }
3218else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223
3224 test -n "$ac_ct_CC" && break
3225done
3226
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
3235esac
3236 CC=$ac_ct_CC
3237 fi
3238fi
3239
3240fi
3241
3242
3243test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "no acceptable C compiler found in \$PATH
3246See \`config.log' for more details" "$LINENO" 5; }
3247
3248# Provide some information about the compiler.
3249$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250set X $ac_compile
3251ac_compiler=$2
3252for ac_option in --version -v -V -qversion; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3254case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259$as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261 ac_status=$?
3262 if test -s conftest.err; then
3263 sed '10a\
3264... rest of stderr output deleted ...
3265 10q' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3267 fi
3268 rm -f conftest.er1 conftest.err
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271done
3272
3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274/* end confdefs.h. */
3275
3276int
3277main ()
3278{
3279
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284ac_clean_files_save=$ac_clean_files
3285ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286# Try to create an executable without -o first, disregard a.out.
3287# It will help us diagnose broken compilers, and finding out an intuition
3288# of exeext.
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290$as_echo_n "checking whether the C compiler works... " >&6; }
3291ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292
3293# The possible output files:
3294ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295
3296ac_rmfiles=
3297for ac_file in $ac_files
3298do
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 esac
3303done
3304rm -f $ac_rmfiles
3305
3306if { { ac_try="$ac_link_default"
3307case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319# in a Makefile. We should not override ac_cv_exeext if it was cached,
3320# so that the user can short-circuit this test for compilers unknown to
3321# Autoconf.
3322for ac_file in $ac_files ''
3323do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327 ;;
3328 [ab].out )
3329 # We found the default executable, but exeext='' is most
3330 # certainly right.
3331 break;;
3332 *.* )
3333 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3334 then :; else
3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 fi
3337 # We set ac_cv_exeext here because the later test for it is not
3338 # safe: cross compilers may not add the suffix if given an `-o'
3339 # argument, so we may need to know it at that point already.
3340 # Even if this section looks crufty: it has the advantage of
3341 # actually working.
3342 break;;
3343 * )
3344 break;;
3345 esac
3346done
3347test "$ac_cv_exeext" = no && ac_cv_exeext=
3348
3349else
3350 ac_file=''
3351fi
3352if test -z "$ac_file"; then :
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355$as_echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360as_fn_error 77 "C compiler cannot create executables
3361See \`config.log' for more details" "$LINENO" 5; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364$as_echo "yes" >&6; }
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3367$as_echo_n "checking for C compiler default output file name... " >&6; }
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
3370ac_exeext=$ac_cv_exeext
3371
3372rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3373ac_clean_files=$ac_clean_files_save
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3375$as_echo_n "checking for suffix of executables... " >&6; }
3376if { { ac_try="$ac_link"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3388# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3389# work properly (i.e., refer to `conftest.exe'), while it won't with
3390# `rm'.
3391for ac_file in conftest.exe conftest conftest.*; do
3392 test -f "$ac_file" || continue
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 break;;
3397 * ) break;;
3398 esac
3399done
3400else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3404See \`config.log' for more details" "$LINENO" 5; }
3405fi
3406rm -f conftest conftest$ac_cv_exeext
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3408$as_echo "$ac_cv_exeext" >&6; }
3409
3410rm -f conftest.$ac_ext
3411EXEEXT=$ac_cv_exeext
3412ac_exeext=$EXEEXT
3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h. */
3415#include <stdio.h>
3416int
3417main ()
3418{
3419FILE *f = fopen ("conftest.out", "w");
3420 return ferror (f) || fclose (f) != 0;
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426ac_clean_files="$ac_clean_files conftest.out"
3427# Check that the compiler produces executables we can run. If not, either
3428# the compiler is broken, or we cross compile.
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3430$as_echo_n "checking whether we are cross compiling... " >&6; }
3431if test "$cross_compiling" != yes; then
3432 { { ac_try="$ac_link"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 if { ac_try='./conftest$ac_cv_exeext'
3444 { { case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_try") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; }; then
3454 cross_compiling=no
3455 else
3456 if test "$cross_compiling" = maybe; then
3457 cross_compiling=yes
3458 else
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error $? "cannot run C compiled programs.
3462If you meant to cross compile, use \`--host'.
3463See \`config.log' for more details" "$LINENO" 5; }
3464 fi
3465 fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468$as_echo "$cross_compiling" >&6; }
3469
3470rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3471ac_clean_files=$ac_clean_files_save
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3473$as_echo_n "checking for suffix of object files... " >&6; }
3474if ${ac_cv_objext+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h. */
3479
3480int
3481main ()
3482{
3483
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488rm -f conftest.o conftest.obj
3489if { { ac_try="$ac_compile"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_compile") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507done
3508else
3509 $as_echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot compute suffix of object files: cannot compile
3515See \`config.log' for more details" "$LINENO" 5; }
3516fi
3517rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3520$as_echo "$ac_cv_objext" >&6; }
3521OBJEXT=$ac_cv_objext
3522ac_objext=$OBJEXT
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525if ${ac_cv_c_compiler_gnu+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527else
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h. */
3530
3531int
3532main ()
3533{
3534#ifndef __GNUC__
3535 choke me
3536#endif
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
3542if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_compiler_gnu=yes
3544else
3545 ac_compiler_gnu=no
3546fi
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553if test $ac_compiler_gnu = yes; then
3554 GCC=yes
3555else
3556 GCC=
3557fi
3558ac_test_CFLAGS=${CFLAGS+set}
3559ac_save_CFLAGS=$CFLAGS
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561$as_echo_n "checking whether $CC accepts -g... " >&6; }
3562if ${ac_cv_prog_cc_g+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564else
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h. */
3571
3572int
3573main ()
3574{
3575
3576 ;
3577 return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_g=yes
3582else
3583 CFLAGS=""
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596
3597else
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3599 CFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_g=yes
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622$as_echo "$ac_cv_prog_cc_g" >&6; }
3623if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS=$ac_save_CFLAGS
3625elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3630 fi
3631else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3636 fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640if ${ac_cv_prog_cc_c89+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642else
3643 ac_cv_prog_cc_c89=no
3644ac_save_CC=$CC
3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h. */
3647#include <stdarg.h>
3648#include <stdio.h>
3649struct stat;
3650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651struct buf { int x; };
3652FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653static char *e (p, i)
3654 char **p;
3655 int i;
3656{
3657 return p[i];
3658}
3659static char *f (char * (*g) (char **, int), char **p, ...)
3660{
3661 char *s;
3662 va_list v;
3663 va_start (v,p);
3664 s = g (p, va_arg (v,int));
3665 va_end (v);
3666 return s;
3667}
3668
3669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677
3678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3680#define FOO(x) 'x'
3681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682
3683int test (int i, double x);
3684struct s1 {int (*f) (int a);};
3685struct s2 {int (*f) (double a);};
3686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687int argc;
3688char **argv;
3689int
3690main ()
3691{
3692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699do
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_c89=$ac_arg
3703fi
3704rm -f core conftest.err conftest.$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706done
3707rm -f conftest.$ac_ext
3708CC=$ac_save_CC
3709
3710fi
3711# AC_CACHE_VAL
3712case "x$ac_cv_prog_cc_c89" in
3713 x)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715$as_echo "none needed" >&6; } ;;
3716 xno)
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718$as_echo "unsupported" >&6; } ;;
3719 *)
3720 CC="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723esac
3724if test "x$ac_cv_prog_cc_c89" != xno; then :
3725
3726fi
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
3734ac_ext=c
3735ac_cpp='$CPP $CPPFLAGS'
3736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3740$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3741if ${am_cv_prog_cc_c_o+:} false; then :
3742 $as_echo_n "(cached) " >&6
3743else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h. */
3746
3747int
3748main ()
3749{
3750
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755 # Make sure it works both with $CC and with simple cc.
3756 # Following AC_PROG_CC_C_O, we do the test twice because some
3757 # compilers refuse to overwrite an existing .o file with -o,
3758 # though they will create one.
3759 am_cv_prog_cc_c_o=yes
3760 for am_i in 1 2; do
3761 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3762 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } \
3766 && test -f conftest2.$ac_objext; then
3767 : OK
3768 else
3769 am_cv_prog_cc_c_o=no
3770 break
3771 fi
3772 done
3773 rm -f core conftest*
3774 unset am_i
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3777$as_echo "$am_cv_prog_cc_c_o" >&6; }
3778if test "$am_cv_prog_cc_c_o" != yes; then
3779 # Losing compiler, so override with the script.
3780 # FIXME: It is wrong to rewrite CC.
3781 # But if we don't then we get into trouble of one sort or another.
3782 # A longer-term fix would be to have automake use am__CC in this case,
3783 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3784 CC="$am_aux_dir/compile $CC"
3785fi
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792
3793depcc="$CC" am_compiler_list=
3794
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3796$as_echo_n "checking dependency style of $depcc... " >&6; }
3797if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799else
3800 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801 # We make a subdir and do the tests there. Otherwise we can end up
3802 # making bogus files that we don't know about and never remove. For
3803 # instance it was reported that on HP-UX the gcc test will end up
3804 # making a dummy file named 'D' -- because '-MD' means "put the output
3805 # in D".
3806 rm -rf conftest.dir
3807 mkdir conftest.dir
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3811 cd conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3817 # directory.
3818 mkdir sub
3819
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 fi
3824 am__universal=false
3825 case " $depcc " in #(
3826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827 esac
3828
3829 for depmode in $am_compiler_list; do
3830 # Setup a source with many dependencies, because some compilers
3831 # like to wrap large dependency lists on column 80 (with \), and
3832 # we should not choose a depcomp mode which is confused by this.
3833 #
3834 # We need to recreate these files for each test, as the compiler may
3835 # overwrite some of them when testing with obscure command lines.
3836 # This happens at least with the AIX C compiler.
3837 : > sub/conftest.c
3838 for i in 1 2 3 4 5 6; do
3839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3841 # Solaris 10 /bin/sh.
3842 echo '/* dummy */' > sub/conftst$i.h
3843 done
3844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3845
3846 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle '-M -o', and we need to detect this. Also, some Intel
3849 # versions had trouble with output in subdirs.
3850 am__obj=sub/conftest.${OBJEXT-o}
3851 am__minus_obj="-o $am__obj"
3852 case $depmode in
3853 gcc)
3854 # This depmode causes a compiler race in universal mode.
3855 test "$am__universal" = false || continue
3856 ;;
3857 nosideeffect)
3858 # After this tag, mechanisms are not by side-effect, so they'll
3859 # only be used when explicitly requested.
3860 if test "x$enable_dependency_tracking" = xyes; then
3861 continue
3862 else
3863 break
3864 fi
3865 ;;
3866 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3867 # This compiler won't grok '-c -o', but also, the minuso test has
3868 # not run yet. These depmodes are late enough in the game, and
3869 # so weak that their functioning should not be impacted.
3870 am__obj=conftest.${OBJEXT-o}
3871 am__minus_obj=
3872 ;;
3873 none) break ;;
3874 esac
3875 if depmode=$depmode \
3876 source=sub/conftest.c object=$am__obj \
3877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3879 >/dev/null 2>conftest.err &&
3880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884 # icc doesn't choke on unknown options, it will just issue warnings
3885 # or remarks (even with -Werror). So we grep stderr for any message
3886 # that says an option was ignored or not supported.
3887 # When given -MP, icc 7.0 and 7.1 complain thusly:
3888 # icc: Command line warning: ignoring option '-M'; no argument required
3889 # The diagnosis changed in icc 8.0:
3890 # icc: Command line remark: option '-MP' not supported
3891 if (grep 'ignoring option' conftest.err ||
3892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893 am_cv_CC_dependencies_compiler_type=$depmode
3894 break
3895 fi
3896 fi
3897 done
3898
3899 cd ..
3900 rm -rf conftest.dir
3901else
3902 am_cv_CC_dependencies_compiler_type=none
3903fi
3904
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3907$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3908CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
3910 if
3911 test "x$enable_dependency_tracking" != xno \
3912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913 am__fastdepCC_TRUE=
3914 am__fastdepCC_FALSE='#'
3915else
3916 am__fastdepCC_TRUE='#'
3917 am__fastdepCC_FALSE=
3918fi
3919
3920
3921
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3928$as_echo_n "checking how to run the C preprocessor... " >&6; }
3929# On Suns, sometimes $CPP names a directory.
3930if test -n "$CPP" && test -d "$CPP"; then
3931 CPP=
3932fi
3933if test -z "$CPP"; then
3934 if ${ac_cv_prog_CPP+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936else
3937 # Double quotes because CPP needs to be expanded
3938 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939 do
3940 ac_preproc_ok=false
3941for ac_c_preproc_warn_flag in '' yes
3942do
3943 # Use a header file that comes with gcc, so configuring glibc
3944 # with a fresh cross-compiler works.
3945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946 # <limits.h> exists even on freestanding compilers.
3947 # On the NeXT, cc -E runs the code through the compiler's parser,
3948 # not just through cpp. "Syntax error" is here to catch this case.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h. */
3951#ifdef __STDC__
3952# include <limits.h>
3953#else
3954# include <assert.h>
3955#endif
3956 Syntax error
3957_ACEOF
3958if ac_fn_c_try_cpp "$LINENO"; then :
3959
3960else
3961 # Broken: fails on valid input.
3962continue
3963fi
3964rm -f conftest.err conftest.i conftest.$ac_ext
3965
3966 # OK, works on sane cases. Now check whether nonexistent headers
3967 # can be detected and how.
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h. */
3970#include <ac_nonexistent.h>
3971_ACEOF
3972if ac_fn_c_try_cpp "$LINENO"; then :
3973 # Broken: success on invalid input.
3974continue
3975else
3976 # Passes both tests.
3977ac_preproc_ok=:
3978break
3979fi
3980rm -f conftest.err conftest.i conftest.$ac_ext
3981
3982done
3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984rm -f conftest.i conftest.err conftest.$ac_ext
3985if $ac_preproc_ok; then :
3986 break
3987fi
3988
3989 done
3990 ac_cv_prog_CPP=$CPP
3991
3992fi
3993 CPP=$ac_cv_prog_CPP
3994else
3995 ac_cv_prog_CPP=$CPP
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3998$as_echo "$CPP" >&6; }
3999ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error" is here to catch this case.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015 Syntax error
4016_ACEOF
4017if ac_fn_c_try_cpp "$LINENO"; then :
4018
4019else
4020 # Broken: fails on valid input.
4021continue
4022fi
4023rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025 # OK, works on sane cases. Now check whether nonexistent headers
4026 # can be detected and how.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029#include <ac_nonexistent.h>
4030_ACEOF
4031if ac_fn_c_try_cpp "$LINENO"; then :
4032 # Broken: success on invalid input.
4033continue
4034else
4035 # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.i conftest.err conftest.$ac_ext
4044if $ac_preproc_ok; then :
4045
4046else
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4050See \`config.log' for more details" "$LINENO" 5; }
4051fi
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4061$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4062if ${ac_cv_path_GREP+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 if test -z "$GREP"; then
4066 ac_path_GREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_prog in grep ggrep; do
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076 as_fn_executable_p "$ac_path_GREP" || continue
4077# Check for GNU ac_path_GREP and select it if it is found.
4078 # Check for GNU $ac_path_GREP
4079case `"$ac_path_GREP" --version 2>&1` in
4080*GNU*)
4081 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082*)
4083 ac_count=0
4084 $as_echo_n 0123456789 >"conftest.in"
4085 while :
4086 do
4087 cat "conftest.in" "conftest.in" >"conftest.tmp"
4088 mv "conftest.tmp" "conftest.in"
4089 cp "conftest.in" "conftest.nl"
4090 $as_echo 'GREP' >> "conftest.nl"
4091 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093 as_fn_arith $ac_count + 1 && ac_count=$as_val
4094 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095 # Best one so far, save it but keep looking for a better one
4096 ac_cv_path_GREP="$ac_path_GREP"
4097 ac_path_GREP_max=$ac_count
4098 fi
4099 # 10*(2^10) chars as input seems more than enough
4100 test $ac_count -gt 10 && break
4101 done
4102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103esac
4104
4105 $ac_path_GREP_found && break 3
4106 done
4107 done
4108 done
4109IFS=$as_save_IFS
4110 if test -z "$ac_cv_path_GREP"; then
4111 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4112 fi
4113else
4114 ac_cv_path_GREP=$GREP
4115fi
4116
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4119$as_echo "$ac_cv_path_GREP" >&6; }
4120 GREP="$ac_cv_path_GREP"
4121
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4124$as_echo_n "checking for egrep... " >&6; }
4125if ${ac_cv_path_EGREP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127else
4128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4129 then ac_cv_path_EGREP="$GREP -E"
4130 else
4131 if test -z "$EGREP"; then
4132 ac_path_EGREP_found=false
4133 # Loop through the user's path and test for each of PROGNAME-LIST
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_prog in egrep; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4142 as_fn_executable_p "$ac_path_EGREP" || continue
4143# Check for GNU ac_path_EGREP and select it if it is found.
4144 # Check for GNU $ac_path_EGREP
4145case `"$ac_path_EGREP" --version 2>&1` in
4146*GNU*)
4147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4148*)
4149 ac_count=0
4150 $as_echo_n 0123456789 >"conftest.in"
4151 while :
4152 do
4153 cat "conftest.in" "conftest.in" >"conftest.tmp"
4154 mv "conftest.tmp" "conftest.in"
4155 cp "conftest.in" "conftest.nl"
4156 $as_echo 'EGREP' >> "conftest.nl"
4157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159 as_fn_arith $ac_count + 1 && ac_count=$as_val
4160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4161 # Best one so far, save it but keep looking for a better one
4162 ac_cv_path_EGREP="$ac_path_EGREP"
4163 ac_path_EGREP_max=$ac_count
4164 fi
4165 # 10*(2^10) chars as input seems more than enough
4166 test $ac_count -gt 10 && break
4167 done
4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169esac
4170
4171 $ac_path_EGREP_found && break 3
4172 done
4173 done
4174 done
4175IFS=$as_save_IFS
4176 if test -z "$ac_cv_path_EGREP"; then
4177 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178 fi
4179else
4180 ac_cv_path_EGREP=$EGREP
4181fi
4182
4183 fi
4184fi
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4186$as_echo "$ac_cv_path_EGREP" >&6; }
4187 EGREP="$ac_cv_path_EGREP"
4188
4189
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4191$as_echo_n "checking for ANSI C header files... " >&6; }
4192if ${ac_cv_header_stdc+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194else
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
4197#include <stdlib.h>
4198#include <stdarg.h>
4199#include <string.h>
4200#include <float.h>
4201
4202int
4203main ()
4204{
4205
4206 ;
4207 return 0;
4208}
4209_ACEOF
4210if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_header_stdc=yes
4212else
4213 ac_cv_header_stdc=no
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216
4217if test $ac_cv_header_stdc = yes; then
4218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220/* end confdefs.h. */
4221#include <string.h>
4222
4223_ACEOF
4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "memchr" >/dev/null 2>&1; then :
4226
4227else
4228 ac_cv_header_stdc=no
4229fi
4230rm -f conftest*
4231
4232fi
4233
4234if test $ac_cv_header_stdc = yes; then
4235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238#include <stdlib.h>
4239
4240_ACEOF
4241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "free" >/dev/null 2>&1; then :
4243
4244else
4245 ac_cv_header_stdc=no
4246fi
4247rm -f conftest*
4248
4249fi
4250
4251if test $ac_cv_header_stdc = yes; then
4252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4253 if test "$cross_compiling" = yes; then :
4254 :
4255else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h. */
4258#include <ctype.h>
4259#include <stdlib.h>
4260#if ((' ' & 0x0FF) == 0x020)
4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263#else
4264# define ISLOWER(c) \
4265 (('a' <= (c) && (c) <= 'i') \
4266 || ('j' <= (c) && (c) <= 'r') \
4267 || ('s' <= (c) && (c) <= 'z'))
4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4269#endif
4270
4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4272int
4273main ()
4274{
4275 int i;
4276 for (i = 0; i < 256; i++)
4277 if (XOR (islower (i), ISLOWER (i))
4278 || toupper (i) != TOUPPER (i))
4279 return 2;
4280 return 0;
4281}
4282_ACEOF
4283if ac_fn_c_try_run "$LINENO"; then :
4284
4285else
4286 ac_cv_header_stdc=no
4287fi
4288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4289 conftest.$ac_objext conftest.beam conftest.$ac_ext
4290fi
4291
4292fi
4293fi
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4295$as_echo "$ac_cv_header_stdc" >&6; }
4296if test $ac_cv_header_stdc = yes; then
4297
4298$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4299
4300fi
4301
4302# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4304 inttypes.h stdint.h unistd.h
4305do :
4306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4308"
4309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4310 cat >>confdefs.h <<_ACEOF
4311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312_ACEOF
4313
4314fi
4315
4316done
4317
4318
4319
4320 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4321if test "x$ac_cv_header_minix_config_h" = xyes; then :
4322 MINIX=yes
4323else
4324 MINIX=
4325fi
4326
4327
4328 if test "$MINIX" = yes; then
4329
4330$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4331
4332
4333$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4334
4335
4336$as_echo "#define _MINIX 1" >>confdefs.h
4337
4338 fi
4339
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4342$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4343if ${ac_cv_safe_to_define___extensions__+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345else
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h. */
4348
4349# define __EXTENSIONS__ 1
4350 $ac_includes_default
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_safe_to_define___extensions__=yes
4361else
4362 ac_cv_safe_to_define___extensions__=no
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4367$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4368 test $ac_cv_safe_to_define___extensions__ = yes &&
4369 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4370
4371 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4372
4373 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4374
4375 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4376
4377 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4378
4379
4380
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4382$as_echo_n "checking whether ln -s works... " >&6; }
4383LN_S=$as_ln_s
4384if test "$LN_S" = "ln -s"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386$as_echo "yes" >&6; }
4387else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4389$as_echo "no, using $LN_S" >&6; }
4390fi
4391
4392ac_ext=c
4393ac_cpp='$CPP $CPPFLAGS'
4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4399set dummy ${ac_tool_prefix}gcc; ac_word=$2
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if ${ac_cv_prog_CC+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404else
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420 done
4421IFS=$as_save_IFS
4422
4423fi
4424fi
4425CC=$ac_cv_prog_CC
4426if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428$as_echo "$CC" >&6; }
4429else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433
4434
4435fi
4436if test -z "$ac_cv_prog_CC"; then
4437 ac_ct_CC=$CC
4438 # Extract the first word of "gcc", so it can be a program name with args.
4439set dummy gcc; ac_word=$2
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444else
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC="gcc"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460 done
4461IFS=$as_save_IFS
4462
4463fi
4464fi
4465ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468$as_echo "$ac_ct_CC" >&6; }
4469else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471$as_echo "no" >&6; }
4472fi
4473
4474 if test "x$ac_ct_CC" = x; then
4475 CC=""
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478yes:)
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481ac_tool_warned=yes ;;
4482esac
4483 CC=$ac_ct_CC
4484 fi
4485else
4486 CC="$ac_cv_prog_CC"
4487fi
4488
4489if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492set dummy ${ac_tool_prefix}cc; ac_word=$2
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if ${ac_cv_prog_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497else
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_CC="${ac_tool_prefix}cc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513 done
4514IFS=$as_save_IFS
4515
4516fi
4517fi
4518CC=$ac_cv_prog_CC
4519if test -n "$CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4521$as_echo "$CC" >&6; }
4522else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527
4528 fi
4529fi
4530if test -z "$CC"; then
4531 # Extract the first word of "cc", so it can be a program name with args.
4532set dummy cc; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; }
4535if ${ac_cv_prog_CC+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537else
4538 if test -n "$CC"; then
4539 ac_cv_prog_CC="$CC" # Let the user override the test.
4540else
4541 ac_prog_rejected=no
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4550 ac_prog_rejected=yes
4551 continue
4552 fi
4553 ac_cv_prog_CC="cc"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558 done
4559IFS=$as_save_IFS
4560
4561if test $ac_prog_rejected = yes; then
4562 # We found a bogon in the path, so make sure we never use it.
4563 set dummy $ac_cv_prog_CC
4564 shift
4565 if test $# != 0; then
4566 # We chose a different compiler from the bogus one.
4567 # However, it has the same basename, so the bogon will be chosen
4568 # first if we set CC to just the basename; use the full file name.
4569 shift
4570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4571 fi
4572fi
4573fi
4574fi
4575CC=$ac_cv_prog_CC
4576if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578$as_echo "$CC" >&6; }
4579else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582fi
4583
4584
4585fi
4586if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in cl.exe
4589 do
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593$as_echo_n "checking for $ac_word... " >&6; }
4594if ${ac_cv_prog_CC+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617CC=$ac_cv_prog_CC
4618if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620$as_echo "$CC" >&6; }
4621else
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625
4626
4627 test -n "$CC" && break
4628 done
4629fi
4630if test -z "$CC"; then
4631 ac_ct_CC=$CC
4632 for ac_prog in cl.exe
4633do
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635set dummy $ac_prog; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_prog_ac_ct_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640else
4641 if test -n "$ac_ct_CC"; then
4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CC="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656 done
4657IFS=$as_save_IFS
4658
4659fi
4660fi
4661ac_ct_CC=$ac_cv_prog_ac_ct_CC
4662if test -n "$ac_ct_CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4664$as_echo "$ac_ct_CC" >&6; }
4665else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667$as_echo "no" >&6; }
4668fi
4669
4670
4671 test -n "$ac_ct_CC" && break
4672done
4673
4674 if test "x$ac_ct_CC" = x; then
4675 CC=""
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678yes:)
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681ac_tool_warned=yes ;;
4682esac
4683 CC=$ac_ct_CC
4684 fi
4685fi
4686
4687fi
4688
4689
4690test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692as_fn_error $? "no acceptable C compiler found in \$PATH
4693See \`config.log' for more details" "$LINENO" 5; }
4694
4695# Provide some information about the compiler.
4696$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4697set X $ac_compile
4698ac_compiler=$2
4699for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4701case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706$as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708 ac_status=$?
4709 if test -s conftest.err; then
4710 sed '10a\
4711... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4714 fi
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718done
4719
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4721$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4722if ${ac_cv_c_compiler_gnu+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727
4728int
4729main ()
4730{
4731#ifndef __GNUC__
4732 choke me
4733#endif
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741else
4742 ac_compiler_gnu=no
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745ac_cv_c_compiler_gnu=$ac_compiler_gnu
4746
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4749$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4750if test $ac_compiler_gnu = yes; then
4751 GCC=yes
4752else
4753 GCC=
4754fi
4755ac_test_CFLAGS=${CFLAGS+set}
4756ac_save_CFLAGS=$CFLAGS
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4758$as_echo_n "checking whether $CC accepts -g... " >&6; }
4759if ${ac_cv_prog_cc_g+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761else
4762 ac_save_c_werror_flag=$ac_c_werror_flag
4763 ac_c_werror_flag=yes
4764 ac_cv_prog_cc_g=no
4765 CFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_g=yes
4779else
4780 CFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793
4794else
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799
4800int
4801main ()
4802{
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_g=yes
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4819$as_echo "$ac_cv_prog_cc_g" >&6; }
4820if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4824 CFLAGS="-g -O2"
4825 else
4826 CFLAGS="-g"
4827 fi
4828else
4829 if test "$GCC" = yes; then
4830 CFLAGS="-O2"
4831 else
4832 CFLAGS=
4833 fi
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4837if ${ac_cv_prog_cc_c89+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839else
4840 ac_cv_prog_cc_c89=no
4841ac_save_CC=$CC
4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#include <stdarg.h>
4845#include <stdio.h>
4846struct stat;
4847/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4848struct buf { int x; };
4849FILE * (*rcsopen) (struct buf *, struct stat *, int);
4850static char *e (p, i)
4851 char **p;
4852 int i;
4853{
4854 return p[i];
4855}
4856static char *f (char * (*g) (char **, int), char **p, ...)
4857{
4858 char *s;
4859 va_list v;
4860 va_start (v,p);
4861 s = g (p, va_arg (v,int));
4862 va_end (v);
4863 return s;
4864}
4865
4866/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4867 function prototypes and stuff, but not '\xHH' hex character constants.
4868 These don't provoke an error unfortunately, instead are silently treated
4869 as 'x'. The following induces an error, until -std is added to get
4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4871 array size at least. It's necessary to write '\x00'==0 to get something
4872 that's true only with -std. */
4873int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4874
4875/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4876 inside strings and character constants. */
4877#define FOO(x) 'x'
4878int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4879
4880int test (int i, double x);
4881struct s1 {int (*f) (int a);};
4882struct s2 {int (*f) (double a);};
4883int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884int argc;
4885char **argv;
4886int
4887main ()
4888{
4889return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 ;
4891 return 0;
4892}
4893_ACEOF
4894for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4896do
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_prog_cc_c89=$ac_arg
4900fi
4901rm -f core conftest.err conftest.$ac_objext
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4903done
4904rm -f conftest.$ac_ext
4905CC=$ac_save_CC
4906
4907fi
4908# AC_CACHE_VAL
4909case "x$ac_cv_prog_cc_c89" in
4910 x)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4912$as_echo "none needed" >&6; } ;;
4913 xno)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4915$as_echo "unsupported" >&6; } ;;
4916 *)
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4919$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4920esac
4921if test "x$ac_cv_prog_cc_c89" != xno; then :
4922
4923fi
4924
4925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931ac_ext=c
4932ac_cpp='$CPP $CPPFLAGS'
4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4937$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4938if ${am_cv_prog_cc_c_o+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h. */
4943
4944int
4945main ()
4946{
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952 # Make sure it works both with $CC and with simple cc.
4953 # Following AC_PROG_CC_C_O, we do the test twice because some
4954 # compilers refuse to overwrite an existing .o file with -o,
4955 # though they will create one.
4956 am_cv_prog_cc_c_o=yes
4957 for am_i in 1 2; do
4958 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4959 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } \
4963 && test -f conftest2.$ac_objext; then
4964 : OK
4965 else
4966 am_cv_prog_cc_c_o=no
4967 break
4968 fi
4969 done
4970 rm -f core conftest*
4971 unset am_i
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4974$as_echo "$am_cv_prog_cc_c_o" >&6; }
4975if test "$am_cv_prog_cc_c_o" != yes; then
4976 # Losing compiler, so override with the script.
4977 # FIXME: It is wrong to rewrite CC.
4978 # But if we don't then we get into trouble of one sort or another.
4979 # A longer-term fix would be to have automake use am__CC in this case,
4980 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4981 CC="$am_aux_dir/compile $CC"
4982fi
4983ac_ext=c
4984ac_cpp='$CPP $CPPFLAGS'
4985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988
4989
4990depcc="$CC" am_compiler_list=
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4993$as_echo_n "checking dependency style of $depcc... " >&6; }
4994if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996else
4997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4998 # We make a subdir and do the tests there. Otherwise we can end up
4999 # making bogus files that we don't know about and never remove. For
5000 # instance it was reported that on HP-UX the gcc test will end up
5001 # making a dummy file named 'D' -- because '-MD' means "put the output
5002 # in D".
5003 rm -rf conftest.dir
5004 mkdir conftest.dir
5005 # Copy depcomp to subdir because otherwise we won't find it if we're
5006 # using a relative directory.
5007 cp "$am_depcomp" conftest.dir
5008 cd conftest.dir
5009 # We will build objects and dependencies in a subdirectory because
5010 # it helps to detect inapplicable dependency modes. For instance
5011 # both Tru64's cc and ICC support -MD to output dependencies as a
5012 # side effect of compilation, but ICC will put the dependencies in
5013 # the current directory while Tru64 will put them in the object
5014 # directory.
5015 mkdir sub
5016
5017 am_cv_CC_dependencies_compiler_type=none
5018 if test "$am_compiler_list" = ""; then
5019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5020 fi
5021 am__universal=false
5022 case " $depcc " in #(
5023 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5024 esac
5025
5026 for depmode in $am_compiler_list; do
5027 # Setup a source with many dependencies, because some compilers
5028 # like to wrap large dependency lists on column 80 (with \), and
5029 # we should not choose a depcomp mode which is confused by this.
5030 #
5031 # We need to recreate these files for each test, as the compiler may
5032 # overwrite some of them when testing with obscure command lines.
5033 # This happens at least with the AIX C compiler.
5034 : > sub/conftest.c
5035 for i in 1 2 3 4 5 6; do
5036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5038 # Solaris 10 /bin/sh.
5039 echo '/* dummy */' > sub/conftst$i.h
5040 done
5041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5042
5043 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5044 # mode. It turns out that the SunPro C++ compiler does not properly
5045 # handle '-M -o', and we need to detect this. Also, some Intel
5046 # versions had trouble with output in subdirs.
5047 am__obj=sub/conftest.${OBJEXT-o}
5048 am__minus_obj="-o $am__obj"
5049 case $depmode in
5050 gcc)
5051 # This depmode causes a compiler race in universal mode.
5052 test "$am__universal" = false || continue
5053 ;;
5054 nosideeffect)
5055 # After this tag, mechanisms are not by side-effect, so they'll
5056 # only be used when explicitly requested.
5057 if test "x$enable_dependency_tracking" = xyes; then
5058 continue
5059 else
5060 break
5061 fi
5062 ;;
5063 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5064 # This compiler won't grok '-c -o', but also, the minuso test has
5065 # not run yet. These depmodes are late enough in the game, and
5066 # so weak that their functioning should not be impacted.
5067 am__obj=conftest.${OBJEXT-o}
5068 am__minus_obj=
5069 ;;
5070 none) break ;;
5071 esac
5072 if depmode=$depmode \
5073 source=sub/conftest.c object=$am__obj \
5074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5075 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5076 >/dev/null 2>conftest.err &&
5077 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5079 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5081 # icc doesn't choke on unknown options, it will just issue warnings
5082 # or remarks (even with -Werror). So we grep stderr for any message
5083 # that says an option was ignored or not supported.
5084 # When given -MP, icc 7.0 and 7.1 complain thusly:
5085 # icc: Command line warning: ignoring option '-M'; no argument required
5086 # The diagnosis changed in icc 8.0:
5087 # icc: Command line remark: option '-MP' not supported
5088 if (grep 'ignoring option' conftest.err ||
5089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5090 am_cv_CC_dependencies_compiler_type=$depmode
5091 break
5092 fi
5093 fi
5094 done
5095
5096 cd ..
5097 rm -rf conftest.dir
5098else
5099 am_cv_CC_dependencies_compiler_type=none
5100fi
5101
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5104$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5105CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5106
5107 if
5108 test "x$enable_dependency_tracking" != xno \
5109 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5110 am__fastdepCC_TRUE=
5111 am__fastdepCC_FALSE='#'
5112else
5113 am__fastdepCC_TRUE='#'
5114 am__fastdepCC_FALSE=
5115fi
5116
5117
5118for ac_prog in ps
5119do
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121set dummy $ac_prog; ac_word=$2
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if ${ac_cv_path_PS+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126else
5127 case $PS in
5128 [\\/]* | ?:[\\/]*)
5129 ac_cv_path_PS="$PS" # Let the user override the test with a path.
5130 ;;
5131 *)
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $LPATH
5134do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143done
5144 done
5145IFS=$as_save_IFS
5146
5147 ;;
5148esac
5149fi
5150PS=$ac_cv_path_PS
5151if test -n "$PS"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5153$as_echo "$PS" >&6; }
5154else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160 test -n "$PS" && break
5161done
5162test -n "$PS" || PS="ps"
5163
5164for ac_prog in w
5165do
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167set dummy $ac_prog; ac_word=$2
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169$as_echo_n "checking for $ac_word... " >&6; }
5170if ${ac_cv_path_W+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172else
5173 case $W in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_W="$W" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $LPATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189done
5190 done
5191IFS=$as_save_IFS
5192
5193 ;;
5194esac
5195fi
5196W=$ac_cv_path_W
5197if test -n "$W"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W" >&5
5199$as_echo "$W" >&6; }
5200else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205
5206 test -n "$W" && break
5207done
5208test -n "$W" || W="w"
5209
5210case `pwd` in
5211 *\ * | *\ *)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5213$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5214esac
5215
5216
5217
5218macro_version='2.4.6'
5219macro_revision='2.4.6'
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233ltmain=$ac_aux_dir/ltmain.sh
5234
5235# Make sure we can run config.sub.
5236$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5238
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5240$as_echo_n "checking build system type... " >&6; }
5241if ${ac_cv_build+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243else
5244 ac_build_alias=$build_alias
5245test "x$ac_build_alias" = x &&
5246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5247test "x$ac_build_alias" = x &&
5248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5249ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5251
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5254$as_echo "$ac_cv_build" >&6; }
5255case $ac_cv_build in
5256*-*-*) ;;
5257*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5258esac
5259build=$ac_cv_build
5260ac_save_IFS=$IFS; IFS='-'
5261set x $ac_cv_build
5262shift
5263build_cpu=$1
5264build_vendor=$2
5265shift; shift
5266# Remember, the first character of IFS is used to create $*,
5267# except with old shells:
5268build_os=$*
5269IFS=$ac_save_IFS
5270case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5271
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5274$as_echo_n "checking host system type... " >&6; }
5275if ${ac_cv_host+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test "x$host_alias" = x; then
5279 ac_cv_host=$ac_cv_build
5280else
5281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5283fi
5284
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5287$as_echo "$ac_cv_host" >&6; }
5288case $ac_cv_host in
5289*-*-*) ;;
5290*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5291esac
5292host=$ac_cv_host
5293ac_save_IFS=$IFS; IFS='-'
5294set x $ac_cv_host
5295shift
5296host_cpu=$1
5297host_vendor=$2
5298shift; shift
5299# Remember, the first character of IFS is used to create $*,
5300# except with old shells:
5301host_os=$*
5302IFS=$ac_save_IFS
5303case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5304
5305
5306# Backslashify metacharacters that are still active within
5307# double-quoted strings.
5308sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5309
5310# Same as above, but do not quote variable references.
5311double_quote_subst='s/\(["`\\]\)/\\\1/g'
5312
5313# Sed substitution to delay expansion of an escaped shell variable in a
5314# double_quote_subst'ed string.
5315delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5316
5317# Sed substitution to delay expansion of an escaped single quote.
5318delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5319
5320# Sed substitution to avoid accidental globbing in evaled expressions
5321no_glob_subst='s/\*/\\\*/g'
5322
5323ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5324ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5325ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5328$as_echo_n "checking how to print strings... " >&6; }
5329# Test print first, because it will be a builtin if present.
5330if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5331 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5332 ECHO='print -r --'
5333elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5334 ECHO='printf %s\n'
5335else
5336 # Use this function as a fallback that always works.
5337 func_fallback_echo ()
5338 {
5339 eval 'cat <<_LTECHO_EOF
5340$1
5341_LTECHO_EOF'
5342 }
5343 ECHO='func_fallback_echo'
5344fi
5345
5346# func_echo_all arg...
5347# Invoke $ECHO with all args, space-separated.
5348func_echo_all ()
5349{
5350 $ECHO ""
5351}
5352
5353case $ECHO in
5354 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5355$as_echo "printf" >&6; } ;;
5356 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5357$as_echo "print -r" >&6; } ;;
5358 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5359$as_echo "cat" >&6; } ;;
5360esac
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5376$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5377if ${ac_cv_path_SED+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379else
5380 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5381 for ac_i in 1 2 3 4 5 6 7; do
5382 ac_script="$ac_script$as_nl$ac_script"
5383 done
5384 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5385 { ac_script=; unset ac_script;}
5386 if test -z "$SED"; then
5387 ac_path_SED_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_prog in sed gsed; do
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5397 as_fn_executable_p "$ac_path_SED" || continue
5398# Check for GNU ac_path_SED and select it if it is found.
5399 # Check for GNU $ac_path_SED
5400case `"$ac_path_SED" --version 2>&1` in
5401*GNU*)
5402 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5403*)
5404 ac_count=0
5405 $as_echo_n 0123456789 >"conftest.in"
5406 while :
5407 do
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 $as_echo '' >> "conftest.nl"
5412 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_SED_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_SED="$ac_path_SED"
5418 ac_path_SED_max=$ac_count
5419 fi
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5422 done
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424esac
5425
5426 $ac_path_SED_found && break 3
5427 done
5428 done
5429 done
5430IFS=$as_save_IFS
5431 if test -z "$ac_cv_path_SED"; then
5432 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5433 fi
5434else
5435 ac_cv_path_SED=$SED
5436fi
5437
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5440$as_echo "$ac_cv_path_SED" >&6; }
5441 SED="$ac_cv_path_SED"
5442 rm -f conftest.sed
5443
5444test -z "$SED" && SED=sed
5445Xsed="$SED -e 1s/^X//"
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5458$as_echo_n "checking for fgrep... " >&6; }
5459if ${ac_cv_path_FGREP+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461else
5462 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5463 then ac_cv_path_FGREP="$GREP -F"
5464 else
5465 if test -z "$FGREP"; then
5466 ac_path_FGREP_found=false
5467 # Loop through the user's path and test for each of PROGNAME-LIST
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5470do
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_prog in fgrep; do
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5476 as_fn_executable_p "$ac_path_FGREP" || continue
5477# Check for GNU ac_path_FGREP and select it if it is found.
5478 # Check for GNU $ac_path_FGREP
5479case `"$ac_path_FGREP" --version 2>&1` in
5480*GNU*)
5481 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5482*)
5483 ac_count=0
5484 $as_echo_n 0123456789 >"conftest.in"
5485 while :
5486 do
5487 cat "conftest.in" "conftest.in" >"conftest.tmp"
5488 mv "conftest.tmp" "conftest.in"
5489 cp "conftest.in" "conftest.nl"
5490 $as_echo 'FGREP' >> "conftest.nl"
5491 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5493 as_fn_arith $ac_count + 1 && ac_count=$as_val
5494 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5495 # Best one so far, save it but keep looking for a better one
5496 ac_cv_path_FGREP="$ac_path_FGREP"
5497 ac_path_FGREP_max=$ac_count
5498 fi
5499 # 10*(2^10) chars as input seems more than enough
5500 test $ac_count -gt 10 && break
5501 done
5502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5503esac
5504
5505 $ac_path_FGREP_found && break 3
5506 done
5507 done
5508 done
5509IFS=$as_save_IFS
5510 if test -z "$ac_cv_path_FGREP"; then
5511 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512 fi
5513else
5514 ac_cv_path_FGREP=$FGREP
5515fi
5516
5517 fi
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5520$as_echo "$ac_cv_path_FGREP" >&6; }
5521 FGREP="$ac_cv_path_FGREP"
5522
5523
5524test -z "$GREP" && GREP=grep
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544# Check whether --with-gnu-ld was given.
5545if test "${with_gnu_ld+set}" = set; then :
5546 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5547else
5548 with_gnu_ld=no
5549fi
5550
5551ac_prog=ld
5552if test yes = "$GCC"; then
5553 # Check if gcc -print-prog-name=ld gives a path.
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5555$as_echo_n "checking for ld used by $CC... " >&6; }
5556 case $host in
5557 *-*-mingw*)
5558 # gcc leaves a trailing carriage return, which upsets mingw
5559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560 *)
5561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5562 esac
5563 case $ac_prog in
5564 # Accept absolute paths.
5565 [\\/]* | ?:[\\/]*)
5566 re_direlt='/[^/][^/]*/\.\./'
5567 # Canonicalize the pathname of ld
5568 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5569 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5570 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5571 done
5572 test -z "$LD" && LD=$ac_prog
5573 ;;
5574 "")
5575 # If it fails, then pretend we aren't using GCC.
5576 ac_prog=ld
5577 ;;
5578 *)
5579 # If it is relative, then search for the first ld in PATH.
5580 with_gnu_ld=unknown
5581 ;;
5582 esac
5583elif test yes = "$with_gnu_ld"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5585$as_echo_n "checking for GNU ld... " >&6; }
5586else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5588$as_echo_n "checking for non-GNU ld... " >&6; }
5589fi
5590if ${lt_cv_path_LD+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592else
5593 if test -z "$LD"; then
5594 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5595 for ac_dir in $PATH; do
5596 IFS=$lt_save_ifs
5597 test -z "$ac_dir" && ac_dir=.
5598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5599 lt_cv_path_LD=$ac_dir/$ac_prog
5600 # Check to see if the program is GNU ld. I'd rather use --version,
5601 # but apparently some variants of GNU ld only accept -v.
5602 # Break only if it was the GNU/non-GNU ld that we prefer.
5603 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5604 *GNU* | *'with BFD'*)
5605 test no != "$with_gnu_ld" && break
5606 ;;
5607 *)
5608 test yes != "$with_gnu_ld" && break
5609 ;;
5610 esac
5611 fi
5612 done
5613 IFS=$lt_save_ifs
5614else
5615 lt_cv_path_LD=$LD # Let the user override the test with a path.
5616fi
5617fi
5618
5619LD=$lt_cv_path_LD
5620if test -n "$LD"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5622$as_echo "$LD" >&6; }
5623else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625$as_echo "no" >&6; }
5626fi
5627test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5629$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5630if ${lt_cv_prog_gnu_ld+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632else
5633 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5634case `$LD -v 2>&1 </dev/null` in
5635*GNU* | *'with BFD'*)
5636 lt_cv_prog_gnu_ld=yes
5637 ;;
5638*)
5639 lt_cv_prog_gnu_ld=no
5640 ;;
5641esac
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5644$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5645with_gnu_ld=$lt_cv_prog_gnu_ld
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5656$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5657if ${lt_cv_path_NM+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659else
5660 if test -n "$NM"; then
5661 # Let the user override the test.
5662 lt_cv_path_NM=$NM
5663else
5664 lt_nm_to_check=${ac_tool_prefix}nm
5665 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5666 lt_nm_to_check="$lt_nm_to_check nm"
5667 fi
5668 for lt_tmp_nm in $lt_nm_to_check; do
5669 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5670 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5671 IFS=$lt_save_ifs
5672 test -z "$ac_dir" && ac_dir=.
5673 tmp_nm=$ac_dir/$lt_tmp_nm
5674 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5675 # Check to see if the nm accepts a BSD-compat flag.
5676 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5677 # nm: unknown option "B" ignored
5678 # Tru64's nm complains that /dev/null is an invalid object file
5679 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5680 case $build_os in
5681 mingw*) lt_bad_file=conftest.nm/nofile ;;
5682 *) lt_bad_file=/dev/null ;;
5683 esac
5684 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5685 *$lt_bad_file* | *'Invalid file or object type'*)
5686 lt_cv_path_NM="$tmp_nm -B"
5687 break 2
5688 ;;
5689 *)
5690 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 */dev/null*)
5692 lt_cv_path_NM="$tmp_nm -p"
5693 break 2
5694 ;;
5695 *)
5696 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5697 continue # so that we can try to find one that supports BSD flags
5698 ;;
5699 esac
5700 ;;
5701 esac
5702 fi
5703 done
5704 IFS=$lt_save_ifs
5705 done
5706 : ${lt_cv_path_NM=no}
5707fi
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5710$as_echo "$lt_cv_path_NM" >&6; }
5711if test no != "$lt_cv_path_NM"; then
5712 NM=$lt_cv_path_NM
5713else
5714 # Didn't find any BSD compatible name lister, look for dumpbin.
5715 if test -n "$DUMPBIN"; then :
5716 # Let the user override the test.
5717 else
5718 if test -n "$ac_tool_prefix"; then
5719 for ac_prog in dumpbin "link -dump"
5720 do
5721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724$as_echo_n "checking for $ac_word... " >&6; }
5725if ${ac_cv_prog_DUMPBIN+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727else
5728 if test -n "$DUMPBIN"; then
5729 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742done
5743 done
5744IFS=$as_save_IFS
5745
5746fi
5747fi
5748DUMPBIN=$ac_cv_prog_DUMPBIN
5749if test -n "$DUMPBIN"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5751$as_echo "$DUMPBIN" >&6; }
5752else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758 test -n "$DUMPBIN" && break
5759 done
5760fi
5761if test -z "$DUMPBIN"; then
5762 ac_ct_DUMPBIN=$DUMPBIN
5763 for ac_prog in dumpbin "link -dump"
5764do
5765 # Extract the first word of "$ac_prog", so it can be a program name with args.
5766set dummy $ac_prog; ac_word=$2
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768$as_echo_n "checking for $ac_word... " >&6; }
5769if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771else
5772 if test -n "$ac_ct_DUMPBIN"; then
5773 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787 done
5788IFS=$as_save_IFS
5789
5790fi
5791fi
5792ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5793if test -n "$ac_ct_DUMPBIN"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5795$as_echo "$ac_ct_DUMPBIN" >&6; }
5796else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798$as_echo "no" >&6; }
5799fi
5800
5801
5802 test -n "$ac_ct_DUMPBIN" && break
5803done
5804
5805 if test "x$ac_ct_DUMPBIN" = x; then
5806 DUMPBIN=":"
5807 else
5808 case $cross_compiling:$ac_tool_warned in
5809yes:)
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812ac_tool_warned=yes ;;
5813esac
5814 DUMPBIN=$ac_ct_DUMPBIN
5815 fi
5816fi
5817
5818 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5819 *COFF*)
5820 DUMPBIN="$DUMPBIN -symbols -headers"
5821 ;;
5822 *)
5823 DUMPBIN=:
5824 ;;
5825 esac
5826 fi
5827
5828 if test : != "$DUMPBIN"; then
5829 NM=$DUMPBIN
5830 fi
5831fi
5832test -z "$NM" && NM=nm
5833
5834
5835
5836
5837
5838
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5840$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5841if ${lt_cv_nm_interface+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 lt_cv_nm_interface="BSD nm"
5845 echo "int some_variable = 0;" > conftest.$ac_ext
5846 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5847 (eval "$ac_compile" 2>conftest.err)
5848 cat conftest.err >&5
5849 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5850 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5851 cat conftest.err >&5
5852 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5853 cat conftest.out >&5
5854 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5855 lt_cv_nm_interface="MS dumpbin"
5856 fi
5857 rm -f conftest*
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5860$as_echo "$lt_cv_nm_interface" >&6; }
5861
5862# find the maximum length of command line arguments
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5864$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5865if ${lt_cv_sys_max_cmd_len+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867else
5868 i=0
5869 teststring=ABCD
5870
5871 case $build_os in
5872 msdosdjgpp*)
5873 # On DJGPP, this test can blow up pretty badly due to problems in libc
5874 # (any single argument exceeding 2000 bytes causes a buffer overrun
5875 # during glob expansion). Even if it were fixed, the result of this
5876 # check would be larger than it should be.
5877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5878 ;;
5879
5880 gnu*)
5881 # Under GNU Hurd, this test is not required because there is
5882 # no limit to the length of command line arguments.
5883 # Libtool will interpret -1 as no limit whatsoever
5884 lt_cv_sys_max_cmd_len=-1;
5885 ;;
5886
5887 cygwin* | mingw* | cegcc*)
5888 # On Win9x/ME, this test blows up -- it succeeds, but takes
5889 # about 5 minutes as the teststring grows exponentially.
5890 # Worse, since 9x/ME are not pre-emptively multitasking,
5891 # you end up with a "frozen" computer, even though with patience
5892 # the test eventually succeeds (with a max line length of 256k).
5893 # Instead, let's just punt: use the minimum linelength reported by
5894 # all of the supported platforms: 8192 (on NT/2K/XP).
5895 lt_cv_sys_max_cmd_len=8192;
5896 ;;
5897
5898 mint*)
5899 # On MiNT this can take a long time and run out of memory.
5900 lt_cv_sys_max_cmd_len=8192;
5901 ;;
5902
5903 amigaos*)
5904 # On AmigaOS with pdksh, this test takes hours, literally.
5905 # So we just punt and use a minimum line length of 8192.
5906 lt_cv_sys_max_cmd_len=8192;
5907 ;;
5908
5909 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5910 # This has been around since 386BSD, at least. Likely further.
5911 if test -x /sbin/sysctl; then
5912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5913 elif test -x /usr/sbin/sysctl; then
5914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5915 else
5916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5917 fi
5918 # And add a safety zone
5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5921 ;;
5922
5923 interix*)
5924 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5925 lt_cv_sys_max_cmd_len=196608
5926 ;;
5927
5928 os2*)
5929 # The test takes a long time on OS/2.
5930 lt_cv_sys_max_cmd_len=8192
5931 ;;
5932
5933 osf*)
5934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5936 # nice to cause kernel panics so lets avoid the loop below.
5937 # First set a reasonable default.
5938 lt_cv_sys_max_cmd_len=16384
5939 #
5940 if test -x /sbin/sysconfig; then
5941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5942 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5943 esac
5944 fi
5945 ;;
5946 sco3.2v5*)
5947 lt_cv_sys_max_cmd_len=102400
5948 ;;
5949 sysv5* | sco5v6* | sysv4.2uw2*)
5950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5951 if test -n "$kargmax"; then
5952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5953 else
5954 lt_cv_sys_max_cmd_len=32768
5955 fi
5956 ;;
5957 *)
5958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5959 if test -n "$lt_cv_sys_max_cmd_len" && \
5960 test undefined != "$lt_cv_sys_max_cmd_len"; then
5961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5963 else
5964 # Make teststring a little bigger before we do anything with it.
5965 # a 1K string should be a reasonable start.
5966 for i in 1 2 3 4 5 6 7 8; do
5967 teststring=$teststring$teststring
5968 done
5969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5970 # If test is not a shell built-in, we'll probably end up computing a
5971 # maximum length that is only half of the actual maximum length, but
5972 # we can't tell.
5973 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5974 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5975 test 17 != "$i" # 1/2 MB should be enough
5976 do
5977 i=`expr $i + 1`
5978 teststring=$teststring$teststring
5979 done
5980 # Only check the string length outside the loop.
5981 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5982 teststring=
5983 # Add a significant safety factor because C++ compilers can tack on
5984 # massive amounts of additional arguments before passing them to the
5985 # linker. It appears as though 1/2 is a usable value.
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5987 fi
5988 ;;
5989 esac
5990
5991fi
5992
5993if test -n "$lt_cv_sys_max_cmd_len"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5995$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5998$as_echo "none" >&6; }
5999fi
6000max_cmd_len=$lt_cv_sys_max_cmd_len
6001
6002
6003
6004
6005
6006
6007: ${CP="cp -f"}
6008: ${MV="mv -f"}
6009: ${RM="rm -f"}
6010
6011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6012 lt_unset=unset
6013else
6014 lt_unset=false
6015fi
6016
6017
6018
6019
6020
6021# test EBCDIC or ASCII
6022case `echo X|tr X '\101'` in
6023 A) # ASCII based system
6024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6025 lt_SP2NL='tr \040 \012'
6026 lt_NL2SP='tr \015\012 \040\040'
6027 ;;
6028 *) # EBCDIC based system
6029 lt_SP2NL='tr \100 \n'
6030 lt_NL2SP='tr \r\n \100\100'
6031 ;;
6032esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6043$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6044if ${lt_cv_to_host_file_cmd+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046else
6047 case $host in
6048 *-*-mingw* )
6049 case $build in
6050 *-*-mingw* ) # actually msys
6051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6052 ;;
6053 *-*-cygwin* )
6054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6055 ;;
6056 * ) # otherwise, assume *nix
6057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6058 ;;
6059 esac
6060 ;;
6061 *-*-cygwin* )
6062 case $build in
6063 *-*-mingw* ) # actually msys
6064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6065 ;;
6066 *-*-cygwin* )
6067 lt_cv_to_host_file_cmd=func_convert_file_noop
6068 ;;
6069 * ) # otherwise, assume *nix
6070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6071 ;;
6072 esac
6073 ;;
6074 * ) # unhandled hosts (and "normal" native builds)
6075 lt_cv_to_host_file_cmd=func_convert_file_noop
6076 ;;
6077esac
6078
6079fi
6080
6081to_host_file_cmd=$lt_cv_to_host_file_cmd
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6083$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6084
6085
6086
6087
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6090$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6091if ${lt_cv_to_tool_file_cmd+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093else
6094 #assume ordinary cross tools, or native build.
6095lt_cv_to_tool_file_cmd=func_convert_file_noop
6096case $host in
6097 *-*-mingw* )
6098 case $build in
6099 *-*-mingw* ) # actually msys
6100 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6101 ;;
6102 esac
6103 ;;
6104esac
6105
6106fi
6107
6108to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6110$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6111
6112
6113
6114
6115
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6117$as_echo_n "checking for $LD option to reload object files... " >&6; }
6118if ${lt_cv_ld_reload_flag+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120else
6121 lt_cv_ld_reload_flag='-r'
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6124$as_echo "$lt_cv_ld_reload_flag" >&6; }
6125reload_flag=$lt_cv_ld_reload_flag
6126case $reload_flag in
6127"" | " "*) ;;
6128*) reload_flag=" $reload_flag" ;;
6129esac
6130reload_cmds='$LD$reload_flag -o $output$reload_objs'
6131case $host_os in
6132 cygwin* | mingw* | pw32* | cegcc*)
6133 if test yes != "$GCC"; then
6134 reload_cmds=false
6135 fi
6136 ;;
6137 darwin*)
6138 if test yes = "$GCC"; then
6139 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6140 else
6141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 fi
6143 ;;
6144esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}objdump; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if ${ac_cv_prog_OBJDUMP+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 if test -n "$OBJDUMP"; then
6163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182OBJDUMP=$ac_cv_prog_OBJDUMP
6183if test -n "$OBJDUMP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6185$as_echo "$OBJDUMP" >&6; }
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192fi
6193if test -z "$ac_cv_prog_OBJDUMP"; then
6194 ac_ct_OBJDUMP=$OBJDUMP
6195 # Extract the first word of "objdump", so it can be a program name with args.
6196set dummy objdump; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202 if test -n "$ac_ct_OBJDUMP"; then
6203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217 done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6223if test -n "$ac_ct_OBJDUMP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6225$as_echo "$ac_ct_OBJDUMP" >&6; }
6226else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231 if test "x$ac_ct_OBJDUMP" = x; then
6232 OBJDUMP="false"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235yes:)
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238ac_tool_warned=yes ;;
6239esac
6240 OBJDUMP=$ac_ct_OBJDUMP
6241 fi
6242else
6243 OBJDUMP="$ac_cv_prog_OBJDUMP"
6244fi
6245
6246test -z "$OBJDUMP" && OBJDUMP=objdump
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6257$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6258if ${lt_cv_deplibs_check_method+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260else
6261 lt_cv_file_magic_cmd='$MAGIC_CMD'
6262lt_cv_file_magic_test_file=
6263lt_cv_deplibs_check_method='unknown'
6264# Need to set the preceding variable on all platforms that support
6265# interlibrary dependencies.
6266# 'none' -- dependencies not supported.
6267# 'unknown' -- same as none, but documents that we really don't know.
6268# 'pass_all' -- all dependencies passed with no checks.
6269# 'test_compile' -- check by making test program.
6270# 'file_magic [[regex]]' -- check by looking for files in library path
6271# that responds to the $file_magic_cmd with a given extended regex.
6272# If you have 'file' or equivalent on your system and you're not sure
6273# whether 'pass_all' will *always* work, you probably want this one.
6274
6275case $host_os in
6276aix[4-9]*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280beos*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284bsdi[45]*)
6285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6286 lt_cv_file_magic_cmd='/usr/bin/file -L'
6287 lt_cv_file_magic_test_file=/shlib/libc.so
6288 ;;
6289
6290cygwin*)
6291 # func_win32_libid is a shell function defined in ltmain.sh
6292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293 lt_cv_file_magic_cmd='func_win32_libid'
6294 ;;
6295
6296mingw* | pw32*)
6297 # Base MSYS/MinGW do not provide the 'file' command needed by
6298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6299 # unless we find 'file', for example because we are cross-compiling.
6300 if ( file / ) >/dev/null 2>&1; then
6301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6302 lt_cv_file_magic_cmd='func_win32_libid'
6303 else
6304 # Keep this pattern in sync with the one in func_win32_libid.
6305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6306 lt_cv_file_magic_cmd='$OBJDUMP -f'
6307 fi
6308 ;;
6309
6310cegcc*)
6311 # use the weaker test based on 'objdump'. See mingw*.
6312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6313 lt_cv_file_magic_cmd='$OBJDUMP -f'
6314 ;;
6315
6316darwin* | rhapsody*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320freebsd* | dragonfly*)
6321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6322 case $host_cpu in
6323 i*86 )
6324 # Not sure whether the presence of OpenBSD here was a mistake.
6325 # Let's accept both of them until this is cleared up.
6326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6327 lt_cv_file_magic_cmd=/usr/bin/file
6328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6329 ;;
6330 esac
6331 else
6332 lt_cv_deplibs_check_method=pass_all
6333 fi
6334 ;;
6335
6336haiku*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339
6340hpux10.20* | hpux11*)
6341 lt_cv_file_magic_cmd=/usr/bin/file
6342 case $host_cpu in
6343 ia64*)
6344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6346 ;;
6347 hppa*64*)
6348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6350 ;;
6351 *)
6352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6354 ;;
6355 esac
6356 ;;
6357
6358interix[3-9]*)
6359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6361 ;;
6362
6363irix5* | irix6* | nonstopux*)
6364 case $LD in
6365 *-32|*"-32 ") libmagic=32-bit;;
6366 *-n32|*"-n32 ") libmagic=N32;;
6367 *-64|*"-64 ") libmagic=64-bit;;
6368 *) libmagic=never-match;;
6369 esac
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373# This must be glibc/ELF.
6374linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378netbsd*)
6379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6381 else
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6383 fi
6384 ;;
6385
6386newos6*)
6387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6388 lt_cv_file_magic_cmd=/usr/bin/file
6389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6390 ;;
6391
6392*nto* | *qnx*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396openbsd* | bitrig*)
6397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6399 else
6400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6401 fi
6402 ;;
6403
6404osf3* | osf4* | osf5*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408rdos*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412solaris*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420sysv4 | sysv4.3*)
6421 case $host_vendor in
6422 motorola)
6423 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]'
6424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6425 ;;
6426 ncr)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429 sequent)
6430 lt_cv_file_magic_cmd='/bin/file'
6431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6432 ;;
6433 sni)
6434 lt_cv_file_magic_cmd='/bin/file'
6435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6436 lt_cv_file_magic_test_file=/lib/libc.so
6437 ;;
6438 siemens)
6439 lt_cv_deplibs_check_method=pass_all
6440 ;;
6441 pc)
6442 lt_cv_deplibs_check_method=pass_all
6443 ;;
6444 esac
6445 ;;
6446
6447tpf*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450os2*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453esac
6454
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6457$as_echo "$lt_cv_deplibs_check_method" >&6; }
6458
6459file_magic_glob=
6460want_nocaseglob=no
6461if test "$build" = "$host"; then
6462 case $host_os in
6463 mingw* | pw32*)
6464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6465 want_nocaseglob=yes
6466 else
6467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6468 fi
6469 ;;
6470 esac
6471fi
6472
6473file_magic_cmd=$lt_cv_file_magic_cmd
6474deplibs_check_method=$lt_cv_deplibs_check_method
6475test -z "$deplibs_check_method" && deplibs_check_method=unknown
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6500set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
6503if ${ac_cv_prog_DLLTOOL+:} false; then :
6504 $as_echo_n "(cached) " >&6
6505else
6506 if test -n "$DLLTOOL"; then
6507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521 done
6522IFS=$as_save_IFS
6523
6524fi
6525fi
6526DLLTOOL=$ac_cv_prog_DLLTOOL
6527if test -n "$DLLTOOL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6529$as_echo "$DLLTOOL" >&6; }
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535
6536fi
6537if test -z "$ac_cv_prog_DLLTOOL"; then
6538 ac_ct_DLLTOOL=$DLLTOOL
6539 # Extract the first word of "dlltool", so it can be a program name with args.
6540set dummy dlltool; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
6543if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$ac_ct_DLLTOOL"; then
6547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6567if test -n "$ac_ct_DLLTOOL"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6569$as_echo "$ac_ct_DLLTOOL" >&6; }
6570else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575 if test "x$ac_ct_DLLTOOL" = x; then
6576 DLLTOOL="false"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579yes:)
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582ac_tool_warned=yes ;;
6583esac
6584 DLLTOOL=$ac_ct_DLLTOOL
6585 fi
6586else
6587 DLLTOOL="$ac_cv_prog_DLLTOOL"
6588fi
6589
6590test -z "$DLLTOOL" && DLLTOOL=dlltool
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6602$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6603if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605else
6606 lt_cv_sharedlib_from_linklib_cmd='unknown'
6607
6608case $host_os in
6609cygwin* | mingw* | pw32* | cegcc*)
6610 # two different shell functions defined in ltmain.sh;
6611 # decide which one to use based on capabilities of $DLLTOOL
6612 case `$DLLTOOL --help 2>&1` in
6613 *--identify-strict*)
6614 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6615 ;;
6616 *)
6617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6618 ;;
6619 esac
6620 ;;
6621*)
6622 # fallback: assume linklib IS sharedlib
6623 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6624 ;;
6625esac
6626
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6629$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6630sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6631test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6632
6633
6634
6635
6636
6637
6638
6639if test -n "$ac_tool_prefix"; then
6640 for ac_prog in ar
6641 do
6642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if ${ac_cv_prog_AR+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 if test -n "$AR"; then
6650 ac_cv_prog_AR="$AR" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663done
6664 done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669AR=$ac_cv_prog_AR
6670if test -n "$AR"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6672$as_echo "$AR" >&6; }
6673else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679 test -n "$AR" && break
6680 done
6681fi
6682if test -z "$AR"; then
6683 ac_ct_AR=$AR
6684 for ac_prog in ar
6685do
6686 # Extract the first word of "$ac_prog", so it can be a program name with args.
6687set dummy $ac_prog; ac_word=$2
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689$as_echo_n "checking for $ac_word... " >&6; }
6690if ${ac_cv_prog_ac_ct_AR+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692else
6693 if test -n "$ac_ct_AR"; then
6694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_AR="$ac_prog"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707done
6708 done
6709IFS=$as_save_IFS
6710
6711fi
6712fi
6713ac_ct_AR=$ac_cv_prog_ac_ct_AR
6714if test -n "$ac_ct_AR"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6716$as_echo "$ac_ct_AR" >&6; }
6717else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719$as_echo "no" >&6; }
6720fi
6721
6722
6723 test -n "$ac_ct_AR" && break
6724done
6725
6726 if test "x$ac_ct_AR" = x; then
6727 AR="false"
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730yes:)
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733ac_tool_warned=yes ;;
6734esac
6735 AR=$ac_ct_AR
6736 fi
6737fi
6738
6739: ${AR=ar}
6740: ${AR_FLAGS=cru}
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6753$as_echo_n "checking for archiver @FILE support... " >&6; }
6754if ${lt_cv_ar_at_file+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757 lt_cv_ar_at_file=no
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h. */
6760
6761int
6762main ()
6763{
6764
6765 ;
6766 return 0;
6767}
6768_ACEOF
6769if ac_fn_c_try_compile "$LINENO"; then :
6770 echo conftest.$ac_objext > conftest.lst
6771 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6773 (eval $lt_ar_try) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }
6777 if test 0 -eq "$ac_status"; then
6778 # Ensure the archiver fails upon bogus file names.
6779 rm -f conftest.$ac_objext libconftest.a
6780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6781 (eval $lt_ar_try) 2>&5
6782 ac_status=$?
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }
6785 if test 0 -ne "$ac_status"; then
6786 lt_cv_ar_at_file=@
6787 fi
6788 fi
6789 rm -f conftest.* libconftest.a
6790
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6796$as_echo "$lt_cv_ar_at_file" >&6; }
6797
6798if test no = "$lt_cv_ar_at_file"; then
6799 archiver_list_spec=
6800else
6801 archiver_list_spec=$lt_cv_ar_at_file
6802fi
6803
6804
6805
6806
6807
6808
6809
6810if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}strip; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if ${ac_cv_prog_STRIP+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817else
6818 if test -n "$STRIP"; then
6819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833 done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838STRIP=$ac_cv_prog_STRIP
6839if test -n "$STRIP"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6841$as_echo "$STRIP" >&6; }
6842else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_STRIP"; then
6850 ac_ct_STRIP=$STRIP
6851 # Extract the first word of "strip", so it can be a program name with args.
6852set dummy strip; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$ac_ct_STRIP"; then
6859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_STRIP="strip"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6879if test -n "$ac_ct_STRIP"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6881$as_echo "$ac_ct_STRIP" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887 if test "x$ac_ct_STRIP" = x; then
6888 STRIP=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 STRIP=$ac_ct_STRIP
6897 fi
6898else
6899 STRIP="$ac_cv_prog_STRIP"
6900fi
6901
6902test -z "$STRIP" && STRIP=:
6903
6904
6905
6906
6907
6908
6909if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_RANLIB+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916else
6917 if test -n "$RANLIB"; then
6918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
6932 done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937RANLIB=$ac_cv_prog_RANLIB
6938if test -n "$RANLIB"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6940$as_echo "$RANLIB" >&6; }
6941else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_RANLIB"; then
6949 ac_ct_RANLIB=$RANLIB
6950 # Extract the first word of "ranlib", so it can be a program name with args.
6951set dummy ranlib; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
6954if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956else
6957 if test -n "$ac_ct_RANLIB"; then
6958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_RANLIB="ranlib"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972 done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6978if test -n "$ac_ct_RANLIB"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6980$as_echo "$ac_ct_RANLIB" >&6; }
6981else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986 if test "x$ac_ct_RANLIB" = x; then
6987 RANLIB=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995 RANLIB=$ac_ct_RANLIB
6996 fi
6997else
6998 RANLIB="$ac_cv_prog_RANLIB"
6999fi
7000
7001test -z "$RANLIB" && RANLIB=:
7002
7003
7004
7005
7006
7007
7008# Determine commands to create old-style static archives.
7009old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7010old_postinstall_cmds='chmod 644 $oldlib'
7011old_postuninstall_cmds=
7012
7013if test -n "$RANLIB"; then
7014 case $host_os in
7015 bitrig* | openbsd*)
7016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7017 ;;
7018 *)
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7020 ;;
7021 esac
7022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7023fi
7024
7025case $host_os in
7026 darwin*)
7027 lock_old_archive_extraction=yes ;;
7028 *)
7029 lock_old_archive_extraction=no ;;
7030esac
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070# If no C compiler was specified, use CC.
7071LTCC=${LTCC-"$CC"}
7072
7073# If no C compiler flags were specified, use CFLAGS.
7074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7075
7076# Allow CC to be a program name with arguments.
7077compiler=$CC
7078
7079
7080# Check for command to grab the raw symbol name followed by C symbol from nm.
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7082$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7083if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085else
7086
7087# These are sane defaults that work on at least a few old systems.
7088# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7089
7090# Character class describing NM global symbol codes.
7091symcode='[BCDEGRST]'
7092
7093# Regexp to match symbols that can be accessed directly from C.
7094sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7095
7096# Define system-specific variables.
7097case $host_os in
7098aix*)
7099 symcode='[BCDT]'
7100 ;;
7101cygwin* | mingw* | pw32* | cegcc*)
7102 symcode='[ABCDGISTW]'
7103 ;;
7104hpux*)
7105 if test ia64 = "$host_cpu"; then
7106 symcode='[ABCDEGRST]'
7107 fi
7108 ;;
7109irix* | nonstopux*)
7110 symcode='[BCDEGRST]'
7111 ;;
7112osf*)
7113 symcode='[BCDEGQRST]'
7114 ;;
7115solaris*)
7116 symcode='[BDRT]'
7117 ;;
7118sco3.2v5*)
7119 symcode='[DT]'
7120 ;;
7121sysv4.2uw2*)
7122 symcode='[DT]'
7123 ;;
7124sysv5* | sco5v6* | unixware* | OpenUNIX*)
7125 symcode='[ABDT]'
7126 ;;
7127sysv4)
7128 symcode='[DFNSTU]'
7129 ;;
7130esac
7131
7132# If we're using GNU nm, then use its standard symbol codes.
7133case `$NM -V 2>&1` in
7134*GNU* | *'with BFD'*)
7135 symcode='[ABCDGIRSTW]' ;;
7136esac
7137
7138if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7139 # Gets list of data symbols to import.
7140 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7141 # Adjust the below global symbol transforms to fixup imported variables.
7142 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7143 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7144 lt_c_name_lib_hook="\
7145 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7146 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7147else
7148 # Disable hooks by default.
7149 lt_cv_sys_global_symbol_to_import=
7150 lt_cdecl_hook=
7151 lt_c_name_hook=
7152 lt_c_name_lib_hook=
7153fi
7154
7155# Transform an extracted symbol line into a proper C declaration.
7156# Some systems (esp. on ia64) link data and code symbols differently,
7157# so use this general approach.
7158lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7159$lt_cdecl_hook\
7160" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7161" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7162
7163# Transform an extracted symbol line into symbol name and symbol address
7164lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7165$lt_c_name_hook\
7166" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7167" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7168
7169# Transform an extracted symbol line into symbol name with lib prefix and
7170# symbol address.
7171lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7172$lt_c_name_lib_hook\
7173" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7174" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7175" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7176
7177# Handle CRLF in mingw tool chain
7178opt_cr=
7179case $build_os in
7180mingw*)
7181 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7182 ;;
7183esac
7184
7185# Try without a prefix underscore, then with it.
7186for ac_symprfx in "" "_"; do
7187
7188 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7189 symxfrm="\\1 $ac_symprfx\\2 \\2"
7190
7191 # Write the raw and C identifiers.
7192 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7193 # Fake it for dumpbin and say T for any non-static function,
7194 # D for any global variable and I for any imported variable.
7195 # Also find C++ and __fastcall symbols from MSVC++,
7196 # which start with @ or ?.
7197 lt_cv_sys_global_symbol_pipe="$AWK '"\
7198" {last_section=section; section=\$ 3};"\
7199" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7200" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7201" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7202" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7203" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7204" \$ 0!~/External *\|/{next};"\
7205" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7206" {if(hide[section]) next};"\
7207" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7208" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7209" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7210" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7211" ' prfx=^$ac_symprfx"
7212 else
7213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214 fi
7215 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7216
7217 # Check to see that the pipe works correctly.
7218 pipe_works=no
7219
7220 rm -f conftest*
7221 cat > conftest.$ac_ext <<_LT_EOF
7222#ifdef __cplusplus
7223extern "C" {
7224#endif
7225char nm_test_var;
7226void nm_test_func(void);
7227void nm_test_func(void){}
7228#ifdef __cplusplus
7229}
7230#endif
7231int main(){nm_test_var='a';nm_test_func();return(0);}
7232_LT_EOF
7233
7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7235 (eval $ac_compile) 2>&5
7236 ac_status=$?
7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; }; then
7239 # Now try to grab the symbols.
7240 nlist=conftest.nm
7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7242 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7243 ac_status=$?
7244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; } && test -s "$nlist"; then
7246 # Try sorting and uniquifying the output.
7247 if sort "$nlist" | uniq > "$nlist"T; then
7248 mv -f "$nlist"T "$nlist"
7249 else
7250 rm -f "$nlist"T
7251 fi
7252
7253 # Make sure that we snagged all the symbols we need.
7254 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7255 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7256 cat <<_LT_EOF > conftest.$ac_ext
7257/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7258#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7259/* DATA imports from DLLs on WIN32 can't be const, because runtime
7260 relocations are performed -- see ld's documentation on pseudo-relocs. */
7261# define LT_DLSYM_CONST
7262#elif defined __osf__
7263/* This system does not cope well with relocations in const data. */
7264# define LT_DLSYM_CONST
7265#else
7266# define LT_DLSYM_CONST const
7267#endif
7268
7269#ifdef __cplusplus
7270extern "C" {
7271#endif
7272
7273_LT_EOF
7274 # Now generate the symbol file.
7275 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7276
7277 cat <<_LT_EOF >> conftest.$ac_ext
7278
7279/* The mapping between symbol names and symbols. */
7280LT_DLSYM_CONST struct {
7281 const char *name;
7282 void *address;
7283}
7284lt__PROGRAM__LTX_preloaded_symbols[] =
7285{
7286 { "@PROGRAM@", (void *) 0 },
7287_LT_EOF
7288 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7289 cat <<\_LT_EOF >> conftest.$ac_ext
7290 {0, (void *) 0}
7291};
7292
7293/* This works around a problem in FreeBSD linker */
7294#ifdef FREEBSD_WORKAROUND
7295static const void *lt_preloaded_setup() {
7296 return lt__PROGRAM__LTX_preloaded_symbols;
7297}
7298#endif
7299
7300#ifdef __cplusplus
7301}
7302#endif
7303_LT_EOF
7304 # Now try linking the two files.
7305 mv conftest.$ac_objext conftstm.$ac_objext
7306 lt_globsym_save_LIBS=$LIBS
7307 lt_globsym_save_CFLAGS=$CFLAGS
7308 LIBS=conftstm.$ac_objext
7309 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7311 (eval $ac_link) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7315 pipe_works=yes
7316 fi
7317 LIBS=$lt_globsym_save_LIBS
7318 CFLAGS=$lt_globsym_save_CFLAGS
7319 else
7320 echo "cannot find nm_test_func in $nlist" >&5
7321 fi
7322 else
7323 echo "cannot find nm_test_var in $nlist" >&5
7324 fi
7325 else
7326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7327 fi
7328 else
7329 echo "$progname: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 fi
7332 rm -rf conftest* conftst*
7333
7334 # Do not use the global_symbol_pipe unless it works.
7335 if test yes = "$pipe_works"; then
7336 break
7337 else
7338 lt_cv_sys_global_symbol_pipe=
7339 fi
7340done
7341
7342fi
7343
7344if test -z "$lt_cv_sys_global_symbol_pipe"; then
7345 lt_cv_sys_global_symbol_to_cdecl=
7346fi
7347if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7349$as_echo "failed" >&6; }
7350else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7352$as_echo "ok" >&6; }
7353fi
7354
7355# Response file support.
7356if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7357 nm_file_list_spec='@'
7358elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7359 nm_file_list_spec='@'
7360fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7399$as_echo_n "checking for sysroot... " >&6; }
7400
7401# Check whether --with-sysroot was given.
7402if test "${with_sysroot+set}" = set; then :
7403 withval=$with_sysroot;
7404else
7405 with_sysroot=no
7406fi
7407
7408
7409lt_sysroot=
7410case $with_sysroot in #(
7411 yes)
7412 if test yes = "$GCC"; then
7413 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7414 fi
7415 ;; #(
7416 /*)
7417 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7418 ;; #(
7419 no|'')
7420 ;; #(
7421 *)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7423$as_echo "$with_sysroot" >&6; }
7424 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7425 ;;
7426esac
7427
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7429$as_echo "${lt_sysroot:-no}" >&6; }
7430
7431
7432
7433
7434
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7436$as_echo_n "checking for a working dd... " >&6; }
7437if ${ac_cv_path_lt_DD+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439else
7440 printf 0123456789abcdef0123456789abcdef >conftest.i
7441cat conftest.i conftest.i >conftest2.i
7442: ${lt_DD:=$DD}
7443if test -z "$lt_DD"; then
7444 ac_path_lt_DD_found=false
7445 # Loop through the user's path and test for each of PROGNAME-LIST
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_prog in dd; do
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7454 as_fn_executable_p "$ac_path_lt_DD" || continue
7455if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7456 cmp -s conftest.i conftest.out \
7457 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7458fi
7459 $ac_path_lt_DD_found && break 3
7460 done
7461 done
7462 done
7463IFS=$as_save_IFS
7464 if test -z "$ac_cv_path_lt_DD"; then
7465 :
7466 fi
7467else
7468 ac_cv_path_lt_DD=$lt_DD
7469fi
7470
7471rm -f conftest.i conftest2.i conftest.out
7472fi
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7474$as_echo "$ac_cv_path_lt_DD" >&6; }
7475
7476
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7478$as_echo_n "checking how to truncate binary pipes... " >&6; }
7479if ${lt_cv_truncate_bin+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481else
7482 printf 0123456789abcdef0123456789abcdef >conftest.i
7483cat conftest.i conftest.i >conftest2.i
7484lt_cv_truncate_bin=
7485if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7486 cmp -s conftest.i conftest.out \
7487 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7488fi
7489rm -f conftest.i conftest2.i conftest.out
7490test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7493$as_echo "$lt_cv_truncate_bin" >&6; }
7494
7495
7496
7497
7498
7499
7500
7501# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7502func_cc_basename ()
7503{
7504 for cc_temp in $*""; do
7505 case $cc_temp in
7506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7508 \-*) ;;
7509 *) break;;
7510 esac
7511 done
7512 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7513}
7514
7515# Check whether --enable-libtool-lock was given.
7516if test "${enable_libtool_lock+set}" = set; then :
7517 enableval=$enable_libtool_lock;
7518fi
7519
7520test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7521
7522# Some flags need to be propagated to the compiler or linker for good
7523# libtool support.
7524case $host in
7525ia64-*-hpux*)
7526 # Find out what ABI is being produced by ac_compile, and set mode
7527 # options accordingly.
7528 echo 'int i;' > conftest.$ac_ext
7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7530 (eval $ac_compile) 2>&5
7531 ac_status=$?
7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7533 test $ac_status = 0; }; then
7534 case `/usr/bin/file conftest.$ac_objext` in
7535 *ELF-32*)
7536 HPUX_IA64_MODE=32
7537 ;;
7538 *ELF-64*)
7539 HPUX_IA64_MODE=64
7540 ;;
7541 esac
7542 fi
7543 rm -rf conftest*
7544 ;;
7545*-*-irix6*)
7546 # Find out what ABI is being produced by ac_compile, and set linker
7547 # options accordingly.
7548 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7550 (eval $ac_compile) 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; then
7554 if test yes = "$lt_cv_prog_gnu_ld"; then
7555 case `/usr/bin/file conftest.$ac_objext` in
7556 *32-bit*)
7557 LD="${LD-ld} -melf32bsmip"
7558 ;;
7559 *N32*)
7560 LD="${LD-ld} -melf32bmipn32"
7561 ;;
7562 *64-bit*)
7563 LD="${LD-ld} -melf64bmip"
7564 ;;
7565 esac
7566 else
7567 case `/usr/bin/file conftest.$ac_objext` in
7568 *32-bit*)
7569 LD="${LD-ld} -32"
7570 ;;
7571 *N32*)
7572 LD="${LD-ld} -n32"
7573 ;;
7574 *64-bit*)
7575 LD="${LD-ld} -64"
7576 ;;
7577 esac
7578 fi
7579 fi
7580 rm -rf conftest*
7581 ;;
7582
7583mips64*-*linux*)
7584 # Find out what ABI is being produced by ac_compile, and set linker
7585 # options accordingly.
7586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7588 (eval $ac_compile) 2>&5
7589 ac_status=$?
7590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591 test $ac_status = 0; }; then
7592 emul=elf
7593 case `/usr/bin/file conftest.$ac_objext` in
7594 *32-bit*)
7595 emul="${emul}32"
7596 ;;
7597 *64-bit*)
7598 emul="${emul}64"
7599 ;;
7600 esac
7601 case `/usr/bin/file conftest.$ac_objext` in
7602 *MSB*)
7603 emul="${emul}btsmip"
7604 ;;
7605 *LSB*)
7606 emul="${emul}ltsmip"
7607 ;;
7608 esac
7609 case `/usr/bin/file conftest.$ac_objext` in
7610 *N32*)
7611 emul="${emul}n32"
7612 ;;
7613 esac
7614 LD="${LD-ld} -m $emul"
7615 fi
7616 rm -rf conftest*
7617 ;;
7618
7619x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7620s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7621 # Find out what ABI is being produced by ac_compile, and set linker
7622 # options accordingly. Note that the listed cases only cover the
7623 # situations where additional linker options are needed (such as when
7624 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7625 # vice versa); the common cases where no linker options are needed do
7626 # not appear in the list.
7627 echo 'int i;' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 case `/usr/bin/file conftest.o` in
7634 *32-bit*)
7635 case $host in
7636 x86_64-*kfreebsd*-gnu)
7637 LD="${LD-ld} -m elf_i386_fbsd"
7638 ;;
7639 x86_64-*linux*)
7640 case `/usr/bin/file conftest.o` in
7641 *x86-64*)
7642 LD="${LD-ld} -m elf32_x86_64"
7643 ;;
7644 *)
7645 LD="${LD-ld} -m elf_i386"
7646 ;;
7647 esac
7648 ;;
7649 powerpc64le-*linux*)
7650 LD="${LD-ld} -m elf32lppclinux"
7651 ;;
7652 powerpc64-*linux*)
7653 LD="${LD-ld} -m elf32ppclinux"
7654 ;;
7655 s390x-*linux*)
7656 LD="${LD-ld} -m elf_s390"
7657 ;;
7658 sparc64-*linux*)
7659 LD="${LD-ld} -m elf32_sparc"
7660 ;;
7661 esac
7662 ;;
7663 *64-bit*)
7664 case $host in
7665 x86_64-*kfreebsd*-gnu)
7666 LD="${LD-ld} -m elf_x86_64_fbsd"
7667 ;;
7668 x86_64-*linux*)
7669 LD="${LD-ld} -m elf_x86_64"
7670 ;;
7671 powerpcle-*linux*)
7672 LD="${LD-ld} -m elf64lppc"
7673 ;;
7674 powerpc-*linux*)
7675 LD="${LD-ld} -m elf64ppc"
7676 ;;
7677 s390*-*linux*|s390*-*tpf*)
7678 LD="${LD-ld} -m elf64_s390"
7679 ;;
7680 sparc*-*linux*)
7681 LD="${LD-ld} -m elf64_sparc"
7682 ;;
7683 esac
7684 ;;
7685 esac
7686 fi
7687 rm -rf conftest*
7688 ;;
7689
7690*-*-sco3.2v5*)
7691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7692 SAVE_CFLAGS=$CFLAGS
7693 CFLAGS="$CFLAGS -belf"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7695$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7696if ${lt_cv_cc_needs_belf+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698else
7699 ac_ext=c
7700ac_cpp='$CPP $CPPFLAGS'
7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707
7708int
7709main ()
7710{
7711
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716if ac_fn_c_try_link "$LINENO"; then :
7717 lt_cv_cc_needs_belf=yes
7718else
7719 lt_cv_cc_needs_belf=no
7720fi
7721rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7723 ac_ext=c
7724ac_cpp='$CPP $CPPFLAGS'
7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7731$as_echo "$lt_cv_cc_needs_belf" >&6; }
7732 if test yes != "$lt_cv_cc_needs_belf"; then
7733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7734 CFLAGS=$SAVE_CFLAGS
7735 fi
7736 ;;
7737*-*solaris*)
7738 # Find out what ABI is being produced by ac_compile, and set linker
7739 # options accordingly.
7740 echo 'int i;' > conftest.$ac_ext
7741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742 (eval $ac_compile) 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; }; then
7746 case `/usr/bin/file conftest.o` in
7747 *64-bit*)
7748 case $lt_cv_prog_gnu_ld in
7749 yes*)
7750 case $host in
7751 i?86-*-solaris*|x86_64-*-solaris*)
7752 LD="${LD-ld} -m elf_x86_64"
7753 ;;
7754 sparc*-*-solaris*)
7755 LD="${LD-ld} -m elf64_sparc"
7756 ;;
7757 esac
7758 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7759 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7760 LD=${LD-ld}_sol2
7761 fi
7762 ;;
7763 *)
7764 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7765 LD="${LD-ld} -64"
7766 fi
7767 ;;
7768 esac
7769 ;;
7770 esac
7771 fi
7772 rm -rf conftest*
7773 ;;
7774esac
7775
7776need_locks=$enable_libtool_lock
7777
7778if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}mt; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785else
7786 if test -n "$MANIFEST_TOOL"; then
7787 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800done
7801 done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7807if test -n "$MANIFEST_TOOL"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7809$as_echo "$MANIFEST_TOOL" >&6; }
7810else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815
7816fi
7817if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7818 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7819 # Extract the first word of "mt", so it can be a program name with args.
7820set dummy mt; ac_word=$2
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 if test -n "$ac_ct_MANIFEST_TOOL"; then
7827 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841 done
7842IFS=$as_save_IFS
7843
7844fi
7845fi
7846ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7847if test -n "$ac_ct_MANIFEST_TOOL"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7849$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7850else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7856 MANIFEST_TOOL=":"
7857 else
7858 case $cross_compiling:$ac_tool_warned in
7859yes:)
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862ac_tool_warned=yes ;;
7863esac
7864 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7865 fi
7866else
7867 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7868fi
7869
7870test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7872$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7873if ${lt_cv_path_mainfest_tool+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875else
7876 lt_cv_path_mainfest_tool=no
7877 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7878 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7879 cat conftest.err >&5
7880 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7881 lt_cv_path_mainfest_tool=yes
7882 fi
7883 rm -f conftest*
7884fi
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7886$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7887if test yes != "$lt_cv_path_mainfest_tool"; then
7888 MANIFEST_TOOL=:
7889fi
7890
7891
7892
7893
7894
7895
7896 case $host_os in
7897 rhapsody* | darwin*)
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7900set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if ${ac_cv_prog_DSYMUTIL+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 if test -n "$DSYMUTIL"; then
7907 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921 done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926DSYMUTIL=$ac_cv_prog_DSYMUTIL
7927if test -n "$DSYMUTIL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7929$as_echo "$DSYMUTIL" >&6; }
7930else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
7934
7935
7936fi
7937if test -z "$ac_cv_prog_DSYMUTIL"; then
7938 ac_ct_DSYMUTIL=$DSYMUTIL
7939 # Extract the first word of "dsymutil", so it can be a program name with args.
7940set dummy dsymutil; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945else
7946 if test -n "$ac_ct_DSYMUTIL"; then
7947 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960done
7961 done
7962IFS=$as_save_IFS
7963
7964fi
7965fi
7966ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7967if test -n "$ac_ct_DSYMUTIL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7969$as_echo "$ac_ct_DSYMUTIL" >&6; }
7970else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
7974
7975 if test "x$ac_ct_DSYMUTIL" = x; then
7976 DSYMUTIL=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979yes:)
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982ac_tool_warned=yes ;;
7983esac
7984 DSYMUTIL=$ac_ct_DSYMUTIL
7985 fi
7986else
7987 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7988fi
7989
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7992set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994$as_echo_n "checking for $ac_word... " >&6; }
7995if ${ac_cv_prog_NMEDIT+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997else
7998 if test -n "$NMEDIT"; then
7999 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012done
8013 done
8014IFS=$as_save_IFS
8015
8016fi
8017fi
8018NMEDIT=$ac_cv_prog_NMEDIT
8019if test -n "$NMEDIT"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8021$as_echo "$NMEDIT" >&6; }
8022else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
8025fi
8026
8027
8028fi
8029if test -z "$ac_cv_prog_NMEDIT"; then
8030 ac_ct_NMEDIT=$NMEDIT
8031 # Extract the first word of "nmedit", so it can be a program name with args.
8032set dummy nmedit; ac_word=$2
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037else
8038 if test -n "$ac_ct_NMEDIT"; then
8039 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053 done
8054IFS=$as_save_IFS
8055
8056fi
8057fi
8058ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8059if test -n "$ac_ct_NMEDIT"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8061$as_echo "$ac_ct_NMEDIT" >&6; }
8062else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
8066
8067 if test "x$ac_ct_NMEDIT" = x; then
8068 NMEDIT=":"
8069 else
8070 case $cross_compiling:$ac_tool_warned in
8071yes:)
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074ac_tool_warned=yes ;;
8075esac
8076 NMEDIT=$ac_ct_NMEDIT
8077 fi
8078else
8079 NMEDIT="$ac_cv_prog_NMEDIT"
8080fi
8081
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8084set dummy ${ac_tool_prefix}lipo; ac_word=$2
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086$as_echo_n "checking for $ac_word... " >&6; }
8087if ${ac_cv_prog_LIPO+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089else
8090 if test -n "$LIPO"; then
8091 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104done
8105 done
8106IFS=$as_save_IFS
8107
8108fi
8109fi
8110LIPO=$ac_cv_prog_LIPO
8111if test -n "$LIPO"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8113$as_echo "$LIPO" >&6; }
8114else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116$as_echo "no" >&6; }
8117fi
8118
8119
8120fi
8121if test -z "$ac_cv_prog_LIPO"; then
8122 ac_ct_LIPO=$LIPO
8123 # Extract the first word of "lipo", so it can be a program name with args.
8124set dummy lipo; ac_word=$2
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129else
8130 if test -n "$ac_ct_LIPO"; then
8131 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8132else
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_LIPO="lipo"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144done
8145 done
8146IFS=$as_save_IFS
8147
8148fi
8149fi
8150ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8151if test -n "$ac_ct_LIPO"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8153$as_echo "$ac_ct_LIPO" >&6; }
8154else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
8157fi
8158
8159 if test "x$ac_ct_LIPO" = x; then
8160 LIPO=":"
8161 else
8162 case $cross_compiling:$ac_tool_warned in
8163yes:)
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166ac_tool_warned=yes ;;
8167esac
8168 LIPO=$ac_ct_LIPO
8169 fi
8170else
8171 LIPO="$ac_cv_prog_LIPO"
8172fi
8173
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8176set dummy ${ac_tool_prefix}otool; ac_word=$2
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178$as_echo_n "checking for $ac_word... " >&6; }
8179if ${ac_cv_prog_OTOOL+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181else
8182 if test -n "$OTOOL"; then
8183 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8184else
8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196done
8197 done
8198IFS=$as_save_IFS
8199
8200fi
8201fi
8202OTOOL=$ac_cv_prog_OTOOL
8203if test -n "$OTOOL"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8205$as_echo "$OTOOL" >&6; }
8206else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208$as_echo "no" >&6; }
8209fi
8210
8211
8212fi
8213if test -z "$ac_cv_prog_OTOOL"; then
8214 ac_ct_OTOOL=$OTOOL
8215 # Extract the first word of "otool", so it can be a program name with args.
8216set dummy otool; ac_word=$2
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221else
8222 if test -n "$ac_ct_OTOOL"; then
8223 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_ac_ct_OTOOL="otool"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236done
8237 done
8238IFS=$as_save_IFS
8239
8240fi
8241fi
8242ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8243if test -n "$ac_ct_OTOOL"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8245$as_echo "$ac_ct_OTOOL" >&6; }
8246else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
8249fi
8250
8251 if test "x$ac_ct_OTOOL" = x; then
8252 OTOOL=":"
8253 else
8254 case $cross_compiling:$ac_tool_warned in
8255yes:)
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8258ac_tool_warned=yes ;;
8259esac
8260 OTOOL=$ac_ct_OTOOL
8261 fi
8262else
8263 OTOOL="$ac_cv_prog_OTOOL"
8264fi
8265
8266 if test -n "$ac_tool_prefix"; then
8267 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8268set dummy ${ac_tool_prefix}otool64; ac_word=$2
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270$as_echo_n "checking for $ac_word... " >&6; }
8271if ${ac_cv_prog_OTOOL64+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273else
8274 if test -n "$OTOOL64"; then
8275 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8276else
8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289 done
8290IFS=$as_save_IFS
8291
8292fi
8293fi
8294OTOOL64=$ac_cv_prog_OTOOL64
8295if test -n "$OTOOL64"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8297$as_echo "$OTOOL64" >&6; }
8298else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
8301fi
8302
8303
8304fi
8305if test -z "$ac_cv_prog_OTOOL64"; then
8306 ac_ct_OTOOL64=$OTOOL64
8307 # Extract the first word of "otool64", so it can be a program name with args.
8308set dummy otool64; ac_word=$2
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313else
8314 if test -n "$ac_ct_OTOOL64"; then
8315 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8316else
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_ac_ct_OTOOL64="otool64"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329 done
8330IFS=$as_save_IFS
8331
8332fi
8333fi
8334ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8335if test -n "$ac_ct_OTOOL64"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8337$as_echo "$ac_ct_OTOOL64" >&6; }
8338else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
8341fi
8342
8343 if test "x$ac_ct_OTOOL64" = x; then
8344 OTOOL64=":"
8345 else
8346 case $cross_compiling:$ac_tool_warned in
8347yes:)
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350ac_tool_warned=yes ;;
8351esac
8352 OTOOL64=$ac_ct_OTOOL64
8353 fi
8354else
8355 OTOOL64="$ac_cv_prog_OTOOL64"
8356fi
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
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8385$as_echo_n "checking for -single_module linker flag... " >&6; }
8386if ${lt_cv_apple_cc_single_mod+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388else
8389 lt_cv_apple_cc_single_mod=no
8390 if test -z "$LT_MULTI_MODULE"; then
8391 # By default we will add the -single_module flag. You can override
8392 # by either setting the environment variable LT_MULTI_MODULE
8393 # non-empty at configure time, or by adding -multi_module to the
8394 # link flags.
8395 rm -rf libconftest.dylib*
8396 echo "int foo(void){return 1;}" > conftest.c
8397 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8398-dynamiclib -Wl,-single_module conftest.c" >&5
8399 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8400 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8401 _lt_result=$?
8402 # If there is a non-empty error log, and "single_module"
8403 # appears in it, assume the flag caused a linker warning
8404 if test -s conftest.err && $GREP single_module conftest.err; then
8405 cat conftest.err >&5
8406 # Otherwise, if the output was created with a 0 exit code from
8407 # the compiler, it worked.
8408 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8409 lt_cv_apple_cc_single_mod=yes
8410 else
8411 cat conftest.err >&5
8412 fi
8413 rm -rf libconftest.dylib*
8414 rm -f conftest.*
8415 fi
8416fi
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8418$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422if ${lt_cv_ld_exported_symbols_list+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424else
8425 lt_cv_ld_exported_symbols_list=no
8426 save_LDFLAGS=$LDFLAGS
8427 echo "_main" > conftest.sym
8428 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h. */
8431
8432int
8433main ()
8434{
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_link "$LINENO"; then :
8441 lt_cv_ld_exported_symbols_list=yes
8442else
8443 lt_cv_ld_exported_symbols_list=no
8444fi
8445rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LDFLAGS=$save_LDFLAGS
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8454$as_echo_n "checking for -force_load linker flag... " >&6; }
8455if ${lt_cv_ld_force_load+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 lt_cv_ld_force_load=no
8459 cat > conftest.c << _LT_EOF
8460int forced_loaded() { return 2;}
8461_LT_EOF
8462 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8463 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8464 echo "$AR cru libconftest.a conftest.o" >&5
8465 $AR cru libconftest.a conftest.o 2>&5
8466 echo "$RANLIB libconftest.a" >&5
8467 $RANLIB libconftest.a 2>&5
8468 cat > conftest.c << _LT_EOF
8469int main() { return 0;}
8470_LT_EOF
8471 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8472 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8473 _lt_result=$?
8474 if test -s conftest.err && $GREP force_load conftest.err; then
8475 cat conftest.err >&5
8476 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8477 lt_cv_ld_force_load=yes
8478 else
8479 cat conftest.err >&5
8480 fi
8481 rm -f conftest.err libconftest.a conftest conftest.c
8482 rm -rf conftest.dSYM
8483
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8486$as_echo "$lt_cv_ld_force_load" >&6; }
8487 case $host_os in
8488 rhapsody* | darwin1.[012])
8489 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8490 darwin1.*)
8491 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8492 darwin*) # darwin 5.x on
8493 # if running on 10.5 or later, the deployment target defaults
8494 # to the OS version, if on x86, and 10.4, the deployment
8495 # target defaults to 10.4. Don't you love it?
8496 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8497 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8498 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8499 10.[012][,.]*)
8500 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8501 10.*)
8502 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8503 esac
8504 ;;
8505 esac
8506 if test yes = "$lt_cv_apple_cc_single_mod"; then
8507 _lt_dar_single_mod='$single_module'
8508 fi
8509 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8510 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8511 else
8512 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8513 fi
8514 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8515 _lt_dsymutil='~$DSYMUTIL $lib || :'
8516 else
8517 _lt_dsymutil=
8518 fi
8519 ;;
8520 esac
8521
8522# func_munge_path_list VARIABLE PATH
8523# -----------------------------------
8524# VARIABLE is name of variable containing _space_ separated list of
8525# directories to be munged by the contents of PATH, which is string
8526# having a format:
8527# "DIR[:DIR]:"
8528# string "DIR[ DIR]" will be prepended to VARIABLE
8529# ":DIR[:DIR]"
8530# string "DIR[ DIR]" will be appended to VARIABLE
8531# "DIRP[:DIRP]::[DIRA:]DIRA"
8532# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8533# "DIRA[ DIRA]" will be appended to VARIABLE
8534# "DIR[:DIR]"
8535# VARIABLE will be replaced by "DIR[ DIR]"
8536func_munge_path_list ()
8537{
8538 case x$2 in
8539 x)
8540 ;;
8541 *:)
8542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8543 ;;
8544 x:*)
8545 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8546 ;;
8547 *::*)
8548 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8549 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8550 ;;
8551 *)
8552 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8553 ;;
8554 esac
8555}
8556
8557for ac_header in dlfcn.h
8558do :
8559 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8560"
8561if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8562 cat >>confdefs.h <<_ACEOF
8563#define HAVE_DLFCN_H 1
8564_ACEOF
8565
8566fi
8567
8568done
8569
8570
8571
8572
8573
8574# Set options
8575
8576
8577
8578 enable_dlopen=no
8579
8580
8581 enable_win32_dll=no
8582
8583
8584 # Check whether --enable-shared was given.
8585if test "${enable_shared+set}" = set; then :
8586 enableval=$enable_shared; p=${PACKAGE-default}
8587 case $enableval in
8588 yes) enable_shared=yes ;;
8589 no) enable_shared=no ;;
8590 *)
8591 enable_shared=no
8592 # Look at the argument we got. We use all the common list separators.
8593 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8594 for pkg in $enableval; do
8595 IFS=$lt_save_ifs
8596 if test "X$pkg" = "X$p"; then
8597 enable_shared=yes
8598 fi
8599 done
8600 IFS=$lt_save_ifs
8601 ;;
8602 esac
8603else
8604 enable_shared=yes
8605fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615 # Check whether --enable-static was given.
8616if test "${enable_static+set}" = set; then :
8617 enableval=$enable_static; p=${PACKAGE-default}
8618 case $enableval in
8619 yes) enable_static=yes ;;
8620 no) enable_static=no ;;
8621 *)
8622 enable_static=no
8623 # Look at the argument we got. We use all the common list separators.
8624 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8625 for pkg in $enableval; do
8626 IFS=$lt_save_ifs
8627 if test "X$pkg" = "X$p"; then
8628 enable_static=yes
8629 fi
8630 done
8631 IFS=$lt_save_ifs
8632 ;;
8633 esac
8634else
8635 enable_static=yes
8636fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647# Check whether --with-pic was given.
8648if test "${with_pic+set}" = set; then :
8649 withval=$with_pic; lt_p=${PACKAGE-default}
8650 case $withval in
8651 yes|no) pic_mode=$withval ;;
8652 *)
8653 pic_mode=default
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8656 for lt_pkg in $withval; do
8657 IFS=$lt_save_ifs
8658 if test "X$lt_pkg" = "X$lt_p"; then
8659 pic_mode=yes
8660 fi
8661 done
8662 IFS=$lt_save_ifs
8663 ;;
8664 esac
8665else
8666 pic_mode=default
8667fi
8668
8669
8670
8671
8672
8673
8674
8675
8676 # Check whether --enable-fast-install was given.
8677if test "${enable_fast_install+set}" = set; then :
8678 enableval=$enable_fast_install; p=${PACKAGE-default}
8679 case $enableval in
8680 yes) enable_fast_install=yes ;;
8681 no) enable_fast_install=no ;;
8682 *)
8683 enable_fast_install=no
8684 # Look at the argument we got. We use all the common list separators.
8685 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686 for pkg in $enableval; do
8687 IFS=$lt_save_ifs
8688 if test "X$pkg" = "X$p"; then
8689 enable_fast_install=yes
8690 fi
8691 done
8692 IFS=$lt_save_ifs
8693 ;;
8694 esac
8695else
8696 enable_fast_install=yes
8697fi
8698
8699
8700
8701
8702
8703
8704
8705
8706 shared_archive_member_spec=
8707case $host,$enable_shared in
8708power*-*-aix[5-9]*,yes)
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8710$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8711
8712# Check whether --with-aix-soname was given.
8713if test "${with_aix_soname+set}" = set; then :
8714 withval=$with_aix_soname; case $withval in
8715 aix|svr4|both)
8716 ;;
8717 *)
8718 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8719 ;;
8720 esac
8721 lt_cv_with_aix_soname=$with_aix_soname
8722else
8723 if ${lt_cv_with_aix_soname+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725else
8726 lt_cv_with_aix_soname=aix
8727fi
8728
8729 with_aix_soname=$lt_cv_with_aix_soname
8730fi
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8733$as_echo "$with_aix_soname" >&6; }
8734 if test aix != "$with_aix_soname"; then
8735 # For the AIX way of multilib, we name the shared archive member
8736 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8737 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8738 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8739 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8740 if test 64 = "${OBJECT_MODE-32}"; then
8741 shared_archive_member_spec=shr_64
8742 else
8743 shared_archive_member_spec=shr
8744 fi
8745 fi
8746 ;;
8747*)
8748 with_aix_soname=aix
8749 ;;
8750esac
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761# This can be used to rebuild libtool when needed
8762LIBTOOL_DEPS=$ltmain
8763
8764# Always use our own libtool.
8765LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796test -z "$LN_S" && LN_S="ln -s"
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811if test -n "${ZSH_VERSION+set}"; then
8812 setopt NO_GLOB_SUBST
8813fi
8814
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8816$as_echo_n "checking for objdir... " >&6; }
8817if ${lt_cv_objdir+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819else
8820 rm -f .libs 2>/dev/null
8821mkdir .libs 2>/dev/null
8822if test -d .libs; then
8823 lt_cv_objdir=.libs
8824else
8825 # MS-DOS does not allow filenames that begin with a dot.
8826 lt_cv_objdir=_libs
8827fi
8828rmdir .libs 2>/dev/null
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8831$as_echo "$lt_cv_objdir" >&6; }
8832objdir=$lt_cv_objdir
8833
8834
8835
8836
8837
8838cat >>confdefs.h <<_ACEOF
8839#define LT_OBJDIR "$lt_cv_objdir/"
8840_ACEOF
8841
8842
8843
8844
8845case $host_os in
8846aix3*)
8847 # AIX sometimes has problems with the GCC collect2 program. For some
8848 # reason, if we set the COLLECT_NAMES environment variable, the problems
8849 # vanish in a puff of smoke.
8850 if test set != "${COLLECT_NAMES+set}"; then
8851 COLLECT_NAMES=
8852 export COLLECT_NAMES
8853 fi
8854 ;;
8855esac
8856
8857# Global variables:
8858ofile=libtool
8859can_build_shared=yes
8860
8861# All known linkers require a '.a' archive for static linking (except MSVC,
8862# which needs '.lib').
8863libext=a
8864
8865with_gnu_ld=$lt_cv_prog_gnu_ld
8866
8867old_CC=$CC
8868old_CFLAGS=$CFLAGS
8869
8870# Set sane defaults for various variables
8871test -z "$CC" && CC=cc
8872test -z "$LTCC" && LTCC=$CC
8873test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8874test -z "$LD" && LD=ld
8875test -z "$ac_objext" && ac_objext=o
8876
8877func_cc_basename $compiler
8878cc_basename=$func_cc_basename_result
8879
8880
8881# Only perform the check for file, if the check method requires it
8882test -z "$MAGIC_CMD" && MAGIC_CMD=file
8883case $deplibs_check_method in
8884file_magic*)
8885 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8887$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8888if ${lt_cv_path_MAGIC_CMD+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890else
8891 case $MAGIC_CMD in
8892[\\/*] | ?:[\\/]*)
8893 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8894 ;;
8895*)
8896 lt_save_MAGIC_CMD=$MAGIC_CMD
8897 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8898 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8899 for ac_dir in $ac_dummy; do
8900 IFS=$lt_save_ifs
8901 test -z "$ac_dir" && ac_dir=.
8902 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8903 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8904 if test -n "$file_magic_test_file"; then
8905 case $deplibs_check_method in
8906 "file_magic "*)
8907 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8908 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8909 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8910 $EGREP "$file_magic_regex" > /dev/null; then
8911 :
8912 else
8913 cat <<_LT_EOF 1>&2
8914
8915*** Warning: the command libtool uses to detect shared libraries,
8916*** $file_magic_cmd, produces output that libtool cannot recognize.
8917*** The result is that libtool may fail to recognize shared libraries
8918*** as such. This will affect the creation of libtool libraries that
8919*** depend on shared libraries, but programs linked with such libtool
8920*** libraries will work regardless of this problem. Nevertheless, you
8921*** may want to report the problem to your system manager and/or to
8922*** bug-libtool@gnu.org
8923
8924_LT_EOF
8925 fi ;;
8926 esac
8927 fi
8928 break
8929 fi
8930 done
8931 IFS=$lt_save_ifs
8932 MAGIC_CMD=$lt_save_MAGIC_CMD
8933 ;;
8934esac
8935fi
8936
8937MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8938if test -n "$MAGIC_CMD"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8940$as_echo "$MAGIC_CMD" >&6; }
8941else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
8944fi
8945
8946
8947
8948
8949
8950if test -z "$lt_cv_path_MAGIC_CMD"; then
8951 if test -n "$ac_tool_prefix"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8953$as_echo_n "checking for file... " >&6; }
8954if ${lt_cv_path_MAGIC_CMD+:} false; then :
8955 $as_echo_n "(cached) " >&6
8956else
8957 case $MAGIC_CMD in
8958[\\/*] | ?:[\\/]*)
8959 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8960 ;;
8961*)
8962 lt_save_MAGIC_CMD=$MAGIC_CMD
8963 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8965 for ac_dir in $ac_dummy; do
8966 IFS=$lt_save_ifs
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f "$ac_dir/file"; then
8969 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8970 if test -n "$file_magic_test_file"; then
8971 case $deplibs_check_method in
8972 "file_magic "*)
8973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8974 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8976 $EGREP "$file_magic_regex" > /dev/null; then
8977 :
8978 else
8979 cat <<_LT_EOF 1>&2
8980
8981*** Warning: the command libtool uses to detect shared libraries,
8982*** $file_magic_cmd, produces output that libtool cannot recognize.
8983*** The result is that libtool may fail to recognize shared libraries
8984*** as such. This will affect the creation of libtool libraries that
8985*** depend on shared libraries, but programs linked with such libtool
8986*** libraries will work regardless of this problem. Nevertheless, you
8987*** may want to report the problem to your system manager and/or to
8988*** bug-libtool@gnu.org
8989
8990_LT_EOF
8991 fi ;;
8992 esac
8993 fi
8994 break
8995 fi
8996 done
8997 IFS=$lt_save_ifs
8998 MAGIC_CMD=$lt_save_MAGIC_CMD
8999 ;;
9000esac
9001fi
9002
9003MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9004if test -n "$MAGIC_CMD"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9006$as_echo "$MAGIC_CMD" >&6; }
9007else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9010fi
9011
9012
9013 else
9014 MAGIC_CMD=:
9015 fi
9016fi
9017
9018 fi
9019 ;;
9020esac
9021
9022# Use C for the default configuration in the libtool script
9023
9024lt_save_CC=$CC
9025ac_ext=c
9026ac_cpp='$CPP $CPPFLAGS'
9027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9029ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030
9031
9032# Source file extension for C test sources.
9033ac_ext=c
9034
9035# Object file extension for compiled C test sources.
9036objext=o
9037objext=$objext
9038
9039# Code to be used in simple compile tests
9040lt_simple_compile_test_code="int some_variable = 0;"
9041
9042# Code to be used in simple link tests
9043lt_simple_link_test_code='int main(){return(0);}'
9044
9045
9046
9047
9048
9049
9050
9051# If no C compiler was specified, use CC.
9052LTCC=${LTCC-"$CC"}
9053
9054# If no C compiler flags were specified, use CFLAGS.
9055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9056
9057# Allow CC to be a program name with arguments.
9058compiler=$CC
9059
9060# Save the default compiler, since it gets overwritten when the other
9061# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9062compiler_DEFAULT=$CC
9063
9064# save warnings/boilerplate of simple test code
9065ac_outfile=conftest.$ac_objext
9066echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9067eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9068_lt_compiler_boilerplate=`cat conftest.err`
9069$RM conftest*
9070
9071ac_outfile=conftest.$ac_objext
9072echo "$lt_simple_link_test_code" >conftest.$ac_ext
9073eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9074_lt_linker_boilerplate=`cat conftest.err`
9075$RM -r conftest*
9076
9077
9078if test -n "$compiler"; then
9079
9080lt_prog_compiler_no_builtin_flag=
9081
9082if test yes = "$GCC"; then
9083 case $cc_basename in
9084 nvcc*)
9085 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9086 *)
9087 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9088 esac
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9091$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9092if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094else
9095 lt_cv_prog_compiler_rtti_exceptions=no
9096 ac_outfile=conftest.$ac_objext
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 # The option is referenced via a variable to avoid confusing sed.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>conftest.err)
9110 ac_status=$?
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s "$ac_outfile"; then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings other than the usual output.
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9118 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_rtti_exceptions=yes
9120 fi
9121 fi
9122 $RM conftest*
9123
9124fi
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9126$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9127
9128if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9129 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9130else
9131 :
9132fi
9133
9134fi
9135
9136
9137
9138
9139
9140
9141 lt_prog_compiler_wl=
9142lt_prog_compiler_pic=
9143lt_prog_compiler_static=
9144
9145
9146 if test yes = "$GCC"; then
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_static='-static'
9149
9150 case $host_os in
9151 aix*)
9152 # All AIX code is PIC.
9153 if test ia64 = "$host_cpu"; then
9154 # AIX 5 now supports IA64 processor
9155 lt_prog_compiler_static='-Bstatic'
9156 fi
9157 lt_prog_compiler_pic='-fPIC'
9158 ;;
9159
9160 amigaos*)
9161 case $host_cpu in
9162 powerpc)
9163 # see comment about AmigaOS4 .so support
9164 lt_prog_compiler_pic='-fPIC'
9165 ;;
9166 m68k)
9167 # FIXME: we need at least 68020 code to build shared libraries, but
9168 # adding the '-m68020' flag to GCC prevents building anything better,
9169 # like '-m68040'.
9170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9171 ;;
9172 esac
9173 ;;
9174
9175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9176 # PIC is the default for these OSes.
9177 ;;
9178
9179 mingw* | cygwin* | pw32* | os2* | cegcc*)
9180 # This hack is so that the source file can tell whether it is being
9181 # built for inclusion in a dll (and should export symbols for example).
9182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9183 # (--disable-auto-import) libraries
9184 lt_prog_compiler_pic='-DDLL_EXPORT'
9185 case $host_os in
9186 os2*)
9187 lt_prog_compiler_static='$wl-static'
9188 ;;
9189 esac
9190 ;;
9191
9192 darwin* | rhapsody*)
9193 # PIC is the default on this platform
9194 # Common symbols not allowed in MH_DYLIB files
9195 lt_prog_compiler_pic='-fno-common'
9196 ;;
9197
9198 haiku*)
9199 # PIC is the default for Haiku.
9200 # The "-static" flag exists, but is broken.
9201 lt_prog_compiler_static=
9202 ;;
9203
9204 hpux*)
9205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9207 # sets the default TLS model and affects inlining.
9208 case $host_cpu in
9209 hppa*64*)
9210 # +Z the default
9211 ;;
9212 *)
9213 lt_prog_compiler_pic='-fPIC'
9214 ;;
9215 esac
9216 ;;
9217
9218 interix[3-9]*)
9219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9220 # Instead, we relocate shared libraries at runtime.
9221 ;;
9222
9223 msdosdjgpp*)
9224 # Just because we use GCC doesn't mean we suddenly get shared libraries
9225 # on systems that don't support them.
9226 lt_prog_compiler_can_build_shared=no
9227 enable_shared=no
9228 ;;
9229
9230 *nto* | *qnx*)
9231 # QNX uses GNU C++, but need to define -shared option too, otherwise
9232 # it will coredump.
9233 lt_prog_compiler_pic='-fPIC -shared'
9234 ;;
9235
9236 sysv4*MP*)
9237 if test -d /usr/nec; then
9238 lt_prog_compiler_pic=-Kconform_pic
9239 fi
9240 ;;
9241
9242 *)
9243 lt_prog_compiler_pic='-fPIC'
9244 ;;
9245 esac
9246
9247 case $cc_basename in
9248 nvcc*) # Cuda Compiler Driver 2.2
9249 lt_prog_compiler_wl='-Xlinker '
9250 if test -n "$lt_prog_compiler_pic"; then
9251 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9252 fi
9253 ;;
9254 esac
9255 else
9256 # PORTME Check for flag to pass linker flags through the system compiler.
9257 case $host_os in
9258 aix*)
9259 lt_prog_compiler_wl='-Wl,'
9260 if test ia64 = "$host_cpu"; then
9261 # AIX 5 now supports IA64 processor
9262 lt_prog_compiler_static='-Bstatic'
9263 else
9264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9265 fi
9266 ;;
9267
9268 darwin* | rhapsody*)
9269 # PIC is the default on this platform
9270 # Common symbols not allowed in MH_DYLIB files
9271 lt_prog_compiler_pic='-fno-common'
9272 case $cc_basename in
9273 nagfor*)
9274 # NAG Fortran compiler
9275 lt_prog_compiler_wl='-Wl,-Wl,,'
9276 lt_prog_compiler_pic='-PIC'
9277 lt_prog_compiler_static='-Bstatic'
9278 ;;
9279 esac
9280 ;;
9281
9282 mingw* | cygwin* | pw32* | os2* | cegcc*)
9283 # This hack is so that the source file can tell whether it is being
9284 # built for inclusion in a dll (and should export symbols for example).
9285 lt_prog_compiler_pic='-DDLL_EXPORT'
9286 case $host_os in
9287 os2*)
9288 lt_prog_compiler_static='$wl-static'
9289 ;;
9290 esac
9291 ;;
9292
9293 hpux9* | hpux10* | hpux11*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9296 # not for PA HP-UX.
9297 case $host_cpu in
9298 hppa*64*|ia64*)
9299 # +Z the default
9300 ;;
9301 *)
9302 lt_prog_compiler_pic='+Z'
9303 ;;
9304 esac
9305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9306 lt_prog_compiler_static='$wl-a ${wl}archive'
9307 ;;
9308
9309 irix5* | irix6* | nonstopux*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # PIC (with -KPIC) is the default.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9316 case $cc_basename in
9317 # old Intel for x86_64, which still supported -KPIC.
9318 ecc*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-static'
9322 ;;
9323 # icc used to be incompatible with GCC.
9324 # ICC 10 doesn't accept -KPIC any more.
9325 icc* | ifort*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fPIC'
9328 lt_prog_compiler_static='-static'
9329 ;;
9330 # Lahey Fortran 8.1.
9331 lf95*)
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='--shared'
9334 lt_prog_compiler_static='--static'
9335 ;;
9336 nagfor*)
9337 # NAG Fortran compiler
9338 lt_prog_compiler_wl='-Wl,-Wl,,'
9339 lt_prog_compiler_pic='-PIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9342 tcc*)
9343 # Fabrice Bellard et al's Tiny C Compiler
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fPIC'
9346 lt_prog_compiler_static='-static'
9347 ;;
9348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9349 # Portland Group compilers (*not* the Pentium gcc compiler,
9350 # which looks to be a dead project)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fpic'
9353 lt_prog_compiler_static='-Bstatic'
9354 ;;
9355 ccc*)
9356 lt_prog_compiler_wl='-Wl,'
9357 # All Alpha code is PIC.
9358 lt_prog_compiler_static='-non_shared'
9359 ;;
9360 xl* | bgxl* | bgf* | mpixl*)
9361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9362 lt_prog_compiler_wl='-Wl,'
9363 lt_prog_compiler_pic='-qpic'
9364 lt_prog_compiler_static='-qstaticlink'
9365 ;;
9366 *)
9367 case `$CC -V 2>&1 | sed 5q` in
9368 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9369 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9370 lt_prog_compiler_pic='-KPIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 lt_prog_compiler_wl=''
9373 ;;
9374 *Sun\ F* | *Sun*Fortran*)
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl='-Qoption ld '
9378 ;;
9379 *Sun\ C*)
9380 # Sun C 5.9
9381 lt_prog_compiler_pic='-KPIC'
9382 lt_prog_compiler_static='-Bstatic'
9383 lt_prog_compiler_wl='-Wl,'
9384 ;;
9385 *Intel*\ [CF]*Compiler*)
9386 lt_prog_compiler_wl='-Wl,'
9387 lt_prog_compiler_pic='-fPIC'
9388 lt_prog_compiler_static='-static'
9389 ;;
9390 *Portland\ Group*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fpic'
9393 lt_prog_compiler_static='-Bstatic'
9394 ;;
9395 esac
9396 ;;
9397 esac
9398 ;;
9399
9400 newsos6)
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-Bstatic'
9403 ;;
9404
9405 *nto* | *qnx*)
9406 # QNX uses GNU C++, but need to define -shared option too, otherwise
9407 # it will coredump.
9408 lt_prog_compiler_pic='-fPIC -shared'
9409 ;;
9410
9411 osf3* | osf4* | osf5*)
9412 lt_prog_compiler_wl='-Wl,'
9413 # All OSF/1 code is PIC.
9414 lt_prog_compiler_static='-non_shared'
9415 ;;
9416
9417 rdos*)
9418 lt_prog_compiler_static='-non_shared'
9419 ;;
9420
9421 solaris*)
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9424 case $cc_basename in
9425 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9426 lt_prog_compiler_wl='-Qoption ld ';;
9427 *)
9428 lt_prog_compiler_wl='-Wl,';;
9429 esac
9430 ;;
9431
9432 sunos4*)
9433 lt_prog_compiler_wl='-Qoption ld '
9434 lt_prog_compiler_pic='-PIC'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9437
9438 sysv4 | sysv4.2uw2* | sysv4.3*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443
9444 sysv4*MP*)
9445 if test -d /usr/nec; then
9446 lt_prog_compiler_pic='-Kconform_pic'
9447 lt_prog_compiler_static='-Bstatic'
9448 fi
9449 ;;
9450
9451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9452 lt_prog_compiler_wl='-Wl,'
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 unicos*)
9458 lt_prog_compiler_wl='-Wl,'
9459 lt_prog_compiler_can_build_shared=no
9460 ;;
9461
9462 uts4*)
9463 lt_prog_compiler_pic='-pic'
9464 lt_prog_compiler_static='-Bstatic'
9465 ;;
9466
9467 *)
9468 lt_prog_compiler_can_build_shared=no
9469 ;;
9470 esac
9471 fi
9472
9473case $host_os in
9474 # For platforms that do not support PIC, -DPIC is meaningless:
9475 *djgpp*)
9476 lt_prog_compiler_pic=
9477 ;;
9478 *)
9479 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9480 ;;
9481esac
9482
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9484$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9485if ${lt_cv_prog_compiler_pic+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487else
9488 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9491$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9492lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9493
9494#
9495# Check to make sure the PIC flag actually works.
9496#
9497if test -n "$lt_prog_compiler_pic"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9499$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9500if ${lt_cv_prog_compiler_pic_works+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502else
9503 lt_cv_prog_compiler_pic_works=no
9504 ac_outfile=conftest.$ac_objext
9505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9507 # Insert the option either (1) after the last *FLAGS variable, or
9508 # (2) before a word containing "conftest.", or (3) at the end.
9509 # Note that $ac_compile itself does not contain backslashes and begins
9510 # with a dollar sign (not a hyphen), so the echo should work correctly.
9511 # The option is referenced via a variable to avoid confusing sed.
9512 lt_compile=`echo "$ac_compile" | $SED \
9513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9515 -e 's:$: $lt_compiler_flag:'`
9516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9517 (eval "$lt_compile" 2>conftest.err)
9518 ac_status=$?
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 if (exit $ac_status) && test -s "$ac_outfile"; then
9522 # The compiler can only warn and ignore the option if not recognized
9523 # So say no if there are warnings other than the usual output.
9524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler_pic_works=yes
9528 fi
9529 fi
9530 $RM conftest*
9531
9532fi
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9534$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9535
9536if test yes = "$lt_cv_prog_compiler_pic_works"; then
9537 case $lt_prog_compiler_pic in
9538 "" | " "*) ;;
9539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9540 esac
9541else
9542 lt_prog_compiler_pic=
9543 lt_prog_compiler_can_build_shared=no
9544fi
9545
9546fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558#
9559# Check to make sure the static flag actually works.
9560#
9561wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9563$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9564if ${lt_cv_prog_compiler_static_works+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566else
9567 lt_cv_prog_compiler_static_works=no
9568 save_LDFLAGS=$LDFLAGS
9569 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9570 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9571 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9572 # The linker can only warn and ignore the option if not recognized
9573 # So say no if there are warnings
9574 if test -s conftest.err; then
9575 # Append any errors to the config.log.
9576 cat conftest.err 1>&5
9577 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9579 if diff conftest.exp conftest.er2 >/dev/null; then
9580 lt_cv_prog_compiler_static_works=yes
9581 fi
9582 else
9583 lt_cv_prog_compiler_static_works=yes
9584 fi
9585 fi
9586 $RM -r conftest*
9587 LDFLAGS=$save_LDFLAGS
9588
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9591$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9592
9593if test yes = "$lt_cv_prog_compiler_static_works"; then
9594 :
9595else
9596 lt_prog_compiler_static=
9597fi
9598
9599
9600
9601
9602
9603
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9607if ${lt_cv_prog_compiler_c_o+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609else
9610 lt_cv_prog_compiler_c_o=no
9611 $RM -r conftest 2>/dev/null
9612 mkdir conftest
9613 cd conftest
9614 mkdir out
9615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9616
9617 lt_compiler_flag="-o out/conftest2.$ac_objext"
9618 # Insert the option either (1) after the last *FLAGS variable, or
9619 # (2) before a word containing "conftest.", or (3) at the end.
9620 # Note that $ac_compile itself does not contain backslashes and begins
9621 # with a dollar sign (not a hyphen), so the echo should work correctly.
9622 lt_compile=`echo "$ac_compile" | $SED \
9623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9625 -e 's:$: $lt_compiler_flag:'`
9626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9627 (eval "$lt_compile" 2>out/conftest.err)
9628 ac_status=$?
9629 cat out/conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9632 then
9633 # The compiler can only warn and ignore the option if not recognized
9634 # So say no if there are warnings
9635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9638 lt_cv_prog_compiler_c_o=yes
9639 fi
9640 fi
9641 chmod u+w . 2>&5
9642 $RM conftest*
9643 # SGI C++ compiler will create directory out/ii_files/ for
9644 # template instantiation
9645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9646 $RM out/* && rmdir out
9647 cd ..
9648 $RM -r conftest
9649 $RM conftest*
9650
9651fi
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9653$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9654
9655
9656
9657
9658
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9662if ${lt_cv_prog_compiler_c_o+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664else
9665 lt_cv_prog_compiler_c_o=no
9666 $RM -r conftest 2>/dev/null
9667 mkdir conftest
9668 cd conftest
9669 mkdir out
9670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671
9672 lt_compiler_flag="-o out/conftest2.$ac_objext"
9673 # Insert the option either (1) after the last *FLAGS variable, or
9674 # (2) before a word containing "conftest.", or (3) at the end.
9675 # Note that $ac_compile itself does not contain backslashes and begins
9676 # with a dollar sign (not a hyphen), so the echo should work correctly.
9677 lt_compile=`echo "$ac_compile" | $SED \
9678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9680 -e 's:$: $lt_compiler_flag:'`
9681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9682 (eval "$lt_compile" 2>out/conftest.err)
9683 ac_status=$?
9684 cat out/conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9687 then
9688 # The compiler can only warn and ignore the option if not recognized
9689 # So say no if there are warnings
9690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9693 lt_cv_prog_compiler_c_o=yes
9694 fi
9695 fi
9696 chmod u+w . 2>&5
9697 $RM conftest*
9698 # SGI C++ compiler will create directory out/ii_files/ for
9699 # template instantiation
9700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9701 $RM out/* && rmdir out
9702 cd ..
9703 $RM -r conftest
9704 $RM conftest*
9705
9706fi
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9708$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9709
9710
9711
9712
9713hard_links=nottested
9714if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9715 # do not overwrite the value of need_locks provided by the user
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9717$as_echo_n "checking if we can lock with hard links... " >&6; }
9718 hard_links=yes
9719 $RM conftest*
9720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9721 touch conftest.a
9722 ln conftest.a conftest.b 2>&5 || hard_links=no
9723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9725$as_echo "$hard_links" >&6; }
9726 if test no = "$hard_links"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9728$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9729 need_locks=warn
9730 fi
9731else
9732 need_locks=no
9733fi
9734
9735
9736
9737
9738
9739
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9741$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9742
9743 runpath_var=
9744 allow_undefined_flag=
9745 always_export_symbols=no
9746 archive_cmds=
9747 archive_expsym_cmds=
9748 compiler_needs_object=no
9749 enable_shared_with_static_runtimes=no
9750 export_dynamic_flag_spec=
9751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9752 hardcode_automatic=no
9753 hardcode_direct=no
9754 hardcode_direct_absolute=no
9755 hardcode_libdir_flag_spec=
9756 hardcode_libdir_separator=
9757 hardcode_minus_L=no
9758 hardcode_shlibpath_var=unsupported
9759 inherit_rpath=no
9760 link_all_deplibs=unknown
9761 module_cmds=
9762 module_expsym_cmds=
9763 old_archive_from_new_cmds=
9764 old_archive_from_expsyms_cmds=
9765 thread_safe_flag_spec=
9766 whole_archive_flag_spec=
9767 # include_expsyms should be a list of space-separated symbols to be *always*
9768 # included in the symbol list
9769 include_expsyms=
9770 # exclude_expsyms can be an extended regexp of symbols to exclude
9771 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9772 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9773 # as well as any symbol that contains 'd'.
9774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9776 # platforms (ab)use it in PIC code, but their linkers get confused if
9777 # the symbol is explicitly referenced. Since portable code cannot
9778 # rely on this symbol name, it's probably fine to never include it in
9779 # preloaded symbol tables.
9780 # Exclude shared library initialization/finalization symbols.
9781 extract_expsyms_cmds=
9782
9783 case $host_os in
9784 cygwin* | mingw* | pw32* | cegcc*)
9785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9786 # When not using gcc, we currently assume that we are using
9787 # Microsoft Visual C++.
9788 if test yes != "$GCC"; then
9789 with_gnu_ld=no
9790 fi
9791 ;;
9792 interix*)
9793 # we just hope/assume this is gcc and not c89 (= MSVC++)
9794 with_gnu_ld=yes
9795 ;;
9796 openbsd* | bitrig*)
9797 with_gnu_ld=no
9798 ;;
9799 esac
9800
9801 ld_shlibs=yes
9802
9803 # On some targets, GNU ld is compatible enough with the native linker
9804 # that we're better off using the native interface for both.
9805 lt_use_gnu_ld_interface=no
9806 if test yes = "$with_gnu_ld"; then
9807 case $host_os in
9808 aix*)
9809 # The AIX port of GNU ld has always aspired to compatibility
9810 # with the native linker. However, as the warning in the GNU ld
9811 # block says, versions before 2.19.5* couldn't really create working
9812 # shared libraries, regardless of the interface used.
9813 case `$LD -v 2>&1` in
9814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9816 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9817 *)
9818 lt_use_gnu_ld_interface=yes
9819 ;;
9820 esac
9821 ;;
9822 *)
9823 lt_use_gnu_ld_interface=yes
9824 ;;
9825 esac
9826 fi
9827
9828 if test yes = "$lt_use_gnu_ld_interface"; then
9829 # If archive_cmds runs LD, not CC, wlarc should be empty
9830 wlarc='$wl'
9831
9832 # Set some defaults for GNU ld with shared library support. These
9833 # are reset later if shared libraries are not supported. Putting them
9834 # here allows them to be overridden if necessary.
9835 runpath_var=LD_RUN_PATH
9836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9837 export_dynamic_flag_spec='$wl--export-dynamic'
9838 # ancient GNU ld didn't support --whole-archive et. al.
9839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9840 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9841 else
9842 whole_archive_flag_spec=
9843 fi
9844 supports_anon_versioning=no
9845 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9846 *GNU\ gold*) supports_anon_versioning=yes ;;
9847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9850 *\ 2.11.*) ;; # other 2.11 versions
9851 *) supports_anon_versioning=yes ;;
9852 esac
9853
9854 # See if GNU ld supports shared libraries.
9855 case $host_os in
9856 aix[3-9]*)
9857 # On AIX/PPC, the GNU linker is very broken
9858 if test ia64 != "$host_cpu"; then
9859 ld_shlibs=no
9860 cat <<_LT_EOF 1>&2
9861
9862*** Warning: the GNU linker, at least up to release 2.19, is reported
9863*** to be unable to reliably create shared libraries on AIX.
9864*** Therefore, libtool is disabling shared libraries support. If you
9865*** really care for shared libraries, you may want to install binutils
9866*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9867*** You will then need to restart the configuration process.
9868
9869_LT_EOF
9870 fi
9871 ;;
9872
9873 amigaos*)
9874 case $host_cpu in
9875 powerpc)
9876 # see comment about AmigaOS4 .so support
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9878 archive_expsym_cmds=''
9879 ;;
9880 m68k)
9881 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)'
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 ;;
9885 esac
9886 ;;
9887
9888 beos*)
9889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9890 allow_undefined_flag=unsupported
9891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9892 # support --undefined. This deserves some investigation. FIXME
9893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9894 else
9895 ld_shlibs=no
9896 fi
9897 ;;
9898
9899 cygwin* | mingw* | pw32* | cegcc*)
9900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9901 # as there is no search path for DLLs.
9902 hardcode_libdir_flag_spec='-L$libdir'
9903 export_dynamic_flag_spec='$wl--export-all-symbols'
9904 allow_undefined_flag=unsupported
9905 always_export_symbols=no
9906 enable_shared_with_static_runtimes=yes
9907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9908 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9909
9910 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9912 # If the export-symbols file already is a .def file, use it as
9913 # is; otherwise, prepend EXPORTS...
9914 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9915 cp $export_symbols $output_objdir/$soname.def;
9916 else
9917 echo EXPORTS > $output_objdir/$soname.def;
9918 cat $export_symbols >> $output_objdir/$soname.def;
9919 fi~
9920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925
9926 haiku*)
9927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9928 link_all_deplibs=yes
9929 ;;
9930
9931 os2*)
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 hardcode_minus_L=yes
9934 allow_undefined_flag=unsupported
9935 shrext_cmds=.dll
9936 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9937 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9938 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9939 $ECHO EXPORTS >> $output_objdir/$libname.def~
9940 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9941 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9942 emximp -o $lib $output_objdir/$libname.def'
9943 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9946 $ECHO EXPORTS >> $output_objdir/$libname.def~
9947 prefix_cmds="$SED"~
9948 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9949 prefix_cmds="$prefix_cmds -e 1d";
9950 fi~
9951 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9952 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9953 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9954 emximp -o $lib $output_objdir/$libname.def'
9955 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9956 enable_shared_with_static_runtimes=yes
9957 ;;
9958
9959 interix[3-9]*)
9960 hardcode_direct=no
9961 hardcode_shlibpath_var=no
9962 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9963 export_dynamic_flag_spec='$wl-E'
9964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9965 # Instead, shared libraries are loaded at an image base (0x10000000 by
9966 # default) and relocated if they conflict, which is a slow very memory
9967 # consuming and fragmenting process. To avoid this, we pick a random,
9968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9971 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'
9972 ;;
9973
9974 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9975 tmp_diet=no
9976 if test linux-dietlibc = "$host_os"; then
9977 case $cc_basename in
9978 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9979 esac
9980 fi
9981 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9982 && test no = "$tmp_diet"
9983 then
9984 tmp_addflag=' $pic_flag'
9985 tmp_sharedflag='-shared'
9986 case $cc_basename,$host_cpu in
9987 pgcc*) # Portland Group C compiler
9988 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9989 tmp_addflag=' $pic_flag'
9990 ;;
9991 pgf77* | pgf90* | pgf95* | pgfortran*)
9992 # Portland Group f77 and f90 compilers
9993 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9994 tmp_addflag=' $pic_flag -Mnomain' ;;
9995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9996 tmp_addflag=' -i_dynamic' ;;
9997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9998 tmp_addflag=' -i_dynamic -nofor_main' ;;
9999 ifc* | ifort*) # Intel Fortran compiler
10000 tmp_addflag=' -nofor_main' ;;
10001 lf95*) # Lahey Fortran 8.1
10002 whole_archive_flag_spec=
10003 tmp_sharedflag='--shared' ;;
10004 nagfor*) # NAGFOR 5.3
10005 tmp_sharedflag='-Wl,-shared' ;;
10006 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10007 tmp_sharedflag='-qmkshrobj'
10008 tmp_addflag= ;;
10009 nvcc*) # Cuda Compiler Driver 2.2
10010 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10011 compiler_needs_object=yes
10012 ;;
10013 esac
10014 case `$CC -V 2>&1 | sed 5q` in
10015 *Sun\ C*) # Sun C 5.9
10016 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10017 compiler_needs_object=yes
10018 tmp_sharedflag='-G' ;;
10019 *Sun\ F*) # Sun Fortran 8.3
10020 tmp_sharedflag='-G' ;;
10021 esac
10022 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023
10024 if test yes = "$supports_anon_versioning"; then
10025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10027 echo "local: *; };" >> $output_objdir/$libname.ver~
10028 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10029 fi
10030
10031 case $cc_basename in
10032 tcc*)
10033 export_dynamic_flag_spec='-rdynamic'
10034 ;;
10035 xlf* | bgf* | bgxlf* | mpixlf*)
10036 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10037 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10039 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10040 if test yes = "$supports_anon_versioning"; then
10041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10043 echo "local: *; };" >> $output_objdir/$libname.ver~
10044 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10045 fi
10046 ;;
10047 esac
10048 else
10049 ld_shlibs=no
10050 fi
10051 ;;
10052
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10056 wlarc=
10057 else
10058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10060 fi
10061 ;;
10062
10063 solaris*)
10064 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10065 ld_shlibs=no
10066 cat <<_LT_EOF 1>&2
10067
10068*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10069*** create shared libraries on Solaris systems. Therefore, libtool
10070*** is disabling shared libraries support. We urge you to upgrade GNU
10071*** binutils to release 2.9.1 or newer. Another option is to modify
10072*** your PATH or compiler configuration so that the native linker is
10073*** used, and then restart.
10074
10075_LT_EOF
10076 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10077 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10078 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10079 else
10080 ld_shlibs=no
10081 fi
10082 ;;
10083
10084 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10085 case `$LD -v 2>&1` in
10086 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10087 ld_shlibs=no
10088 cat <<_LT_EOF 1>&2
10089
10090*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10091*** reliably create shared libraries on SCO systems. Therefore, libtool
10092*** is disabling shared libraries support. We urge you to upgrade GNU
10093*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10094*** your PATH or compiler configuration so that the native linker is
10095*** used, and then restart.
10096
10097_LT_EOF
10098 ;;
10099 *)
10100 # For security reasons, it is highly recommended that you always
10101 # use absolute paths for naming shared libraries, and exclude the
10102 # DT_RUNPATH tag from executables and libraries. But doing so
10103 # requires that you compile everything twice, which is a pain.
10104 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10105 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10108 else
10109 ld_shlibs=no
10110 fi
10111 ;;
10112 esac
10113 ;;
10114
10115 sunos4*)
10116 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10117 wlarc=
10118 hardcode_direct=yes
10119 hardcode_shlibpath_var=no
10120 ;;
10121
10122 *)
10123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10125 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10126 else
10127 ld_shlibs=no
10128 fi
10129 ;;
10130 esac
10131
10132 if test no = "$ld_shlibs"; then
10133 runpath_var=
10134 hardcode_libdir_flag_spec=
10135 export_dynamic_flag_spec=
10136 whole_archive_flag_spec=
10137 fi
10138 else
10139 # PORTME fill in a description of your system's linker (not GNU ld)
10140 case $host_os in
10141 aix3*)
10142 allow_undefined_flag=unsupported
10143 always_export_symbols=yes
10144 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'
10145 # Note: this linker hardcodes the directories in LIBPATH if there
10146 # are no directories specified by -L.
10147 hardcode_minus_L=yes
10148 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10149 # Neither direct hardcoding nor static linking is supported with a
10150 # broken collect2.
10151 hardcode_direct=unsupported
10152 fi
10153 ;;
10154
10155 aix[4-9]*)
10156 if test ia64 = "$host_cpu"; then
10157 # On IA64, the linker does run time linking by default, so we don't
10158 # have to do anything special.
10159 aix_use_runtimelinking=no
10160 exp_sym_flag='-Bexport'
10161 no_entry_flag=
10162 else
10163 # If we're using GNU nm, then we don't want the "-C" option.
10164 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10165 # Without the "-l" option, or with the "-B" option, AIX nm treats
10166 # weak defined symbols like other global defined symbols, whereas
10167 # GNU nm marks them as "W".
10168 # While the 'weak' keyword is ignored in the Export File, we need
10169 # it in the Import File for the 'aix-soname' feature, so we have
10170 # to replace the "-B" option with "-P" for AIX nm.
10171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10172 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10173 else
10174 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10175 fi
10176 aix_use_runtimelinking=no
10177
10178 # Test if we are trying to use run time linking or normal
10179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10180 # have runtime linking enabled, and use it for executables.
10181 # For shared libraries, we enable/disable runtime linking
10182 # depending on the kind of the shared library created -
10183 # when "with_aix_soname,aix_use_runtimelinking" is:
10184 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10185 # "aix,yes" lib.so shared, rtl:yes, for executables
10186 # lib.a static archive
10187 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10188 # lib.a(lib.so.V) shared, rtl:no, for executables
10189 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10190 # lib.a(lib.so.V) shared, rtl:no
10191 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10192 # lib.a static archive
10193 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10194 for ld_flag in $LDFLAGS; do
10195 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10196 aix_use_runtimelinking=yes
10197 break
10198 fi
10199 done
10200 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10201 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10202 # so we don't have lib.a shared libs to link our executables.
10203 # We have to force runtime linking in this case.
10204 aix_use_runtimelinking=yes
10205 LDFLAGS="$LDFLAGS -Wl,-brtl"
10206 fi
10207 ;;
10208 esac
10209
10210 exp_sym_flag='-bexport'
10211 no_entry_flag='-bnoentry'
10212 fi
10213
10214 # When large executables or shared objects are built, AIX ld can
10215 # have problems creating the table of contents. If linking a library
10216 # or program results in "error TOC overflow" add -mminimal-toc to
10217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10219
10220 archive_cmds=''
10221 hardcode_direct=yes
10222 hardcode_direct_absolute=yes
10223 hardcode_libdir_separator=':'
10224 link_all_deplibs=yes
10225 file_list_spec='$wl-f,'
10226 case $with_aix_soname,$aix_use_runtimelinking in
10227 aix,*) ;; # traditional, no import file
10228 svr4,* | *,yes) # use import file
10229 # The Import File defines what to hardcode.
10230 hardcode_direct=no
10231 hardcode_direct_absolute=no
10232 ;;
10233 esac
10234
10235 if test yes = "$GCC"; then
10236 case $host_os in aix4.[012]|aix4.[012].*)
10237 # We only want to do this on AIX 4.2 and lower, the check
10238 # below for broken collect2 doesn't work under 4.3+
10239 collect2name=`$CC -print-prog-name=collect2`
10240 if test -f "$collect2name" &&
10241 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10242 then
10243 # We have reworked collect2
10244 :
10245 else
10246 # We have old collect2
10247 hardcode_direct=unsupported
10248 # It fails to find uninstalled libraries when the uninstalled
10249 # path is not listed in the libpath. Setting hardcode_minus_L
10250 # to unsupported forces relinking
10251 hardcode_minus_L=yes
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_libdir_separator=
10254 fi
10255 ;;
10256 esac
10257 shared_flag='-shared'
10258 if test yes = "$aix_use_runtimelinking"; then
10259 shared_flag="$shared_flag "'$wl-G'
10260 fi
10261 # Need to ensure runtime linking is disabled for the traditional
10262 # shared library, or the linker may eventually find shared libraries
10263 # /with/ Import File - we do not want to mix them.
10264 shared_flag_aix='-shared'
10265 shared_flag_svr4='-shared $wl-G'
10266 else
10267 # not using gcc
10268 if test ia64 = "$host_cpu"; then
10269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10270 # chokes on -Wl,-G. The following line is correct:
10271 shared_flag='-G'
10272 else
10273 if test yes = "$aix_use_runtimelinking"; then
10274 shared_flag='$wl-G'
10275 else
10276 shared_flag='$wl-bM:SRE'
10277 fi
10278 shared_flag_aix='$wl-bM:SRE'
10279 shared_flag_svr4='$wl-G'
10280 fi
10281 fi
10282
10283 export_dynamic_flag_spec='$wl-bexpall'
10284 # It seems that -bexpall does not export symbols beginning with
10285 # underscore (_), so it is better to generate a list of symbols to export.
10286 always_export_symbols=yes
10287 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10288 # Warning - without using the other runtime loading flags (-brtl),
10289 # -berok will link without error, but may produce a broken library.
10290 allow_undefined_flag='-berok'
10291 # Determine the default libpath from the value encoded in an
10292 # empty executable.
10293 if test set = "${lt_cv_aix_libpath+set}"; then
10294 aix_libpath=$lt_cv_aix_libpath
10295else
10296 if ${lt_cv_aix_libpath_+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298else
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h. */
10301
10302int
10303main ()
10304{
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310if ac_fn_c_try_link "$LINENO"; then :
10311
10312 lt_aix_libpath_sed='
10313 /Import File Strings/,/^$/ {
10314 /^0/ {
10315 s/^0 *\([^ ]*\) *$/\1/
10316 p
10317 }
10318 }'
10319 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10320 # Check for a 64-bit object if we didn't find anything.
10321 if test -z "$lt_cv_aix_libpath_"; then
10322 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10323 fi
10324fi
10325rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 if test -z "$lt_cv_aix_libpath_"; then
10328 lt_cv_aix_libpath_=/usr/lib:/lib
10329 fi
10330
10331fi
10332
10333 aix_libpath=$lt_cv_aix_libpath_
10334fi
10335
10336 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10337 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10338 else
10339 if test ia64 = "$host_cpu"; then
10340 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10341 allow_undefined_flag="-z nodefs"
10342 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"
10343 else
10344 # Determine the default libpath from the value encoded in an
10345 # empty executable.
10346 if test set = "${lt_cv_aix_libpath+set}"; then
10347 aix_libpath=$lt_cv_aix_libpath
10348else
10349 if ${lt_cv_aix_libpath_+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351else
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h. */
10354
10355int
10356main ()
10357{
10358
10359 ;
10360 return 0;
10361}
10362_ACEOF
10363if ac_fn_c_try_link "$LINENO"; then :
10364
10365 lt_aix_libpath_sed='
10366 /Import File Strings/,/^$/ {
10367 /^0/ {
10368 s/^0 *\([^ ]*\) *$/\1/
10369 p
10370 }
10371 }'
10372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10373 # Check for a 64-bit object if we didn't find anything.
10374 if test -z "$lt_cv_aix_libpath_"; then
10375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10376 fi
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 if test -z "$lt_cv_aix_libpath_"; then
10381 lt_cv_aix_libpath_=/usr/lib:/lib
10382 fi
10383
10384fi
10385
10386 aix_libpath=$lt_cv_aix_libpath_
10387fi
10388
10389 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10390 # Warning - without using the other run time loading flags,
10391 # -berok will link without error, but may produce a broken library.
10392 no_undefined_flag=' $wl-bernotok'
10393 allow_undefined_flag=' $wl-berok'
10394 if test yes = "$with_gnu_ld"; then
10395 # We only use this code for GNU lds that support --whole-archive.
10396 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10397 else
10398 # Exported symbols can be pulled into shared objects from archives
10399 whole_archive_flag_spec='$convenience'
10400 fi
10401 archive_cmds_need_lc=yes
10402 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10403 # -brtl affects multiple linker settings, -berok does not and is overridden later
10404 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10405 if test svr4 != "$with_aix_soname"; then
10406 # This is similar to how AIX traditionally builds its shared libraries.
10407 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10408 fi
10409 if test aix != "$with_aix_soname"; then
10410 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10411 else
10412 # used by -dlpreopen to get the symbols
10413 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10414 fi
10415 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10416 fi
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 bsdi[45]*)
10436 export_dynamic_flag_spec=-rdynamic
10437 ;;
10438
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # When not using gcc, we currently assume that we are using
10441 # Microsoft Visual C++.
10442 # hardcode_libdir_flag_spec is actually meaningless, as there is
10443 # no search path for DLLs.
10444 case $cc_basename in
10445 cl*)
10446 # Native MSVC
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=yes
10450 file_list_spec='@'
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=.dll
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10457 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10458 cp "$export_symbols" "$output_objdir/$soname.def";
10459 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10460 else
10461 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10462 fi~
10463 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10464 linknames='
10465 # The linker will not automatically build a static lib if we build a DLL.
10466 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10467 enable_shared_with_static_runtimes=yes
10468 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10470 # Don't use ranlib
10471 old_postinstall_cmds='chmod 644 $oldlib'
10472 postlink_cmds='lt_outputfile="@OUTPUT@"~
10473 lt_tool_outputfile="@TOOL_OUTPUT@"~
10474 case $lt_outputfile in
10475 *.exe|*.EXE) ;;
10476 *)
10477 lt_outputfile=$lt_outputfile.exe
10478 lt_tool_outputfile=$lt_tool_outputfile.exe
10479 ;;
10480 esac~
10481 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10482 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10483 $RM "$lt_outputfile.manifest";
10484 fi'
10485 ;;
10486 *)
10487 # Assume MSVC wrapper
10488 hardcode_libdir_flag_spec=' '
10489 allow_undefined_flag=unsupported
10490 # Tell ltmain to make .lib files, not .a files.
10491 libext=lib
10492 # Tell ltmain to make .dll files, not .so files.
10493 shrext_cmds=.dll
10494 # FIXME: Setting linknames here is a bad hack.
10495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10496 # The linker will automatically build a .lib file if we build a DLL.
10497 old_archive_from_new_cmds='true'
10498 # FIXME: Should let the user specify the lib program.
10499 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10500 enable_shared_with_static_runtimes=yes
10501 ;;
10502 esac
10503 ;;
10504
10505 darwin* | rhapsody*)
10506
10507
10508 archive_cmds_need_lc=no
10509 hardcode_direct=no
10510 hardcode_automatic=yes
10511 hardcode_shlibpath_var=unsupported
10512 if test yes = "$lt_cv_ld_force_load"; then
10513 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10514
10515 else
10516 whole_archive_flag_spec=''
10517 fi
10518 link_all_deplibs=yes
10519 allow_undefined_flag=$_lt_dar_allow_undefined
10520 case $cc_basename in
10521 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10522 *) _lt_dar_can_shared=$GCC ;;
10523 esac
10524 if test yes = "$_lt_dar_can_shared"; then
10525 output_verbose_link_cmd=func_echo_all
10526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10528 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 $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10529 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10530
10531 else
10532 ld_shlibs=no
10533 fi
10534
10535 ;;
10536
10537 dgux*)
10538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539 hardcode_libdir_flag_spec='-L$libdir'
10540 hardcode_shlibpath_var=no
10541 ;;
10542
10543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10544 # support. Future versions do this automatically, but an explicit c++rt0.o
10545 # does not break anything, and helps significantly (at the cost of a little
10546 # extra space).
10547 freebsd2.2*)
10548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10549 hardcode_libdir_flag_spec='-R$libdir'
10550 hardcode_direct=yes
10551 hardcode_shlibpath_var=no
10552 ;;
10553
10554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10555 freebsd2.*)
10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10557 hardcode_direct=yes
10558 hardcode_minus_L=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10563 freebsd* | dragonfly*)
10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10565 hardcode_libdir_flag_spec='-R$libdir'
10566 hardcode_direct=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 hpux9*)
10571 if test yes = "$GCC"; then
10572 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10573 else
10574 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10575 fi
10576 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10577 hardcode_libdir_separator=:
10578 hardcode_direct=yes
10579
10580 # hardcode_minus_L: Not really in the search PATH,
10581 # but as the default location of the library.
10582 hardcode_minus_L=yes
10583 export_dynamic_flag_spec='$wl-E'
10584 ;;
10585
10586 hpux10*)
10587 if test yes,no = "$GCC,$with_gnu_ld"; then
10588 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10589 else
10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10591 fi
10592 if test no = "$with_gnu_ld"; then
10593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_direct=yes
10596 hardcode_direct_absolute=yes
10597 export_dynamic_flag_spec='$wl-E'
10598 # hardcode_minus_L: Not really in the search PATH,
10599 # but as the default location of the library.
10600 hardcode_minus_L=yes
10601 fi
10602 ;;
10603
10604 hpux11*)
10605 if test yes,no = "$GCC,$with_gnu_ld"; then
10606 case $host_cpu in
10607 hppa*64*)
10608 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 ia64*)
10611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 *)
10614 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 ;;
10616 esac
10617 else
10618 case $host_cpu in
10619 hppa*64*)
10620 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 ia64*)
10623 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10624 ;;
10625 *)
10626
10627 # Older versions of the 11.00 compiler do not understand -b yet
10628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10630$as_echo_n "checking if $CC understands -b... " >&6; }
10631if ${lt_cv_prog_compiler__b+:} false; then :
10632 $as_echo_n "(cached) " >&6
10633else
10634 lt_cv_prog_compiler__b=no
10635 save_LDFLAGS=$LDFLAGS
10636 LDFLAGS="$LDFLAGS -b"
10637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10639 # The linker can only warn and ignore the option if not recognized
10640 # So say no if there are warnings
10641 if test -s conftest.err; then
10642 # Append any errors to the config.log.
10643 cat conftest.err 1>&5
10644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10646 if diff conftest.exp conftest.er2 >/dev/null; then
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 else
10650 lt_cv_prog_compiler__b=yes
10651 fi
10652 fi
10653 $RM -r conftest*
10654 LDFLAGS=$save_LDFLAGS
10655
10656fi
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10658$as_echo "$lt_cv_prog_compiler__b" >&6; }
10659
10660if test yes = "$lt_cv_prog_compiler__b"; then
10661 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10662else
10663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10664fi
10665
10666 ;;
10667 esac
10668 fi
10669 if test no = "$with_gnu_ld"; then
10670 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10671 hardcode_libdir_separator=:
10672
10673 case $host_cpu in
10674 hppa*64*|ia64*)
10675 hardcode_direct=no
10676 hardcode_shlibpath_var=no
10677 ;;
10678 *)
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='$wl-E'
10682
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 ;;
10687 esac
10688 fi
10689 ;;
10690
10691 irix5* | irix6* | nonstopux*)
10692 if test yes = "$GCC"; then
10693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10694 # Try to use the -exported_symbol ld option, if it does not
10695 # work, assume that -exports_file does not work either and
10696 # implicitly export all symbols.
10697 # This should be the same for all languages, so no per-tag cache variable.
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10699$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10700if ${lt_cv_irix_exported_symbol+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702else
10703 save_LDFLAGS=$LDFLAGS
10704 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h. */
10707int foo (void) { return 0; }
10708_ACEOF
10709if ac_fn_c_try_link "$LINENO"; then :
10710 lt_cv_irix_exported_symbol=yes
10711else
10712 lt_cv_irix_exported_symbol=no
10713fi
10714rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LDFLAGS=$save_LDFLAGS
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10719$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10720 if test yes = "$lt_cv_irix_exported_symbol"; then
10721 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10722 fi
10723 else
10724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10726 fi
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10729 hardcode_libdir_separator=:
10730 inherit_rpath=yes
10731 link_all_deplibs=yes
10732 ;;
10733
10734 linux*)
10735 case $cc_basename in
10736 tcc*)
10737 # Fabrice Bellard et al's Tiny C Compiler
10738 ld_shlibs=yes
10739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740 ;;
10741 esac
10742 ;;
10743
10744 netbsd*)
10745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10747 else
10748 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10749 fi
10750 hardcode_libdir_flag_spec='-R$libdir'
10751 hardcode_direct=yes
10752 hardcode_shlibpath_var=no
10753 ;;
10754
10755 newsos6)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=yes
10758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10759 hardcode_libdir_separator=:
10760 hardcode_shlibpath_var=no
10761 ;;
10762
10763 *nto* | *qnx*)
10764 ;;
10765
10766 openbsd* | bitrig*)
10767 if test -f /usr/libexec/ld.so; then
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 hardcode_direct_absolute=yes
10771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10774 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10775 export_dynamic_flag_spec='$wl-E'
10776 else
10777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10778 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10779 fi
10780 else
10781 ld_shlibs=no
10782 fi
10783 ;;
10784
10785 os2*)
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_minus_L=yes
10788 allow_undefined_flag=unsupported
10789 shrext_cmds=.dll
10790 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10791 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10792 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10793 $ECHO EXPORTS >> $output_objdir/$libname.def~
10794 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10796 emximp -o $lib $output_objdir/$libname.def'
10797 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10798 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10799 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10800 $ECHO EXPORTS >> $output_objdir/$libname.def~
10801 prefix_cmds="$SED"~
10802 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10803 prefix_cmds="$prefix_cmds -e 1d";
10804 fi~
10805 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10806 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10807 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10808 emximp -o $lib $output_objdir/$libname.def'
10809 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10810 enable_shared_with_static_runtimes=yes
10811 ;;
10812
10813 osf3*)
10814 if test yes = "$GCC"; then
10815 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10816 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10817 else
10818 allow_undefined_flag=' -expect_unresolved \*'
10819 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10820 fi
10821 archive_cmds_need_lc='no'
10822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10823 hardcode_libdir_separator=:
10824 ;;
10825
10826 osf4* | osf5*) # as osf3* with the addition of -msym flag
10827 if test yes = "$GCC"; then
10828 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10829 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10830 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10831 else
10832 allow_undefined_flag=' -expect_unresolved \*'
10833 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10834 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~
10835 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10836
10837 # Both c and cxx compiler support -rpath directly
10838 hardcode_libdir_flag_spec='-rpath $libdir'
10839 fi
10840 archive_cmds_need_lc='no'
10841 hardcode_libdir_separator=:
10842 ;;
10843
10844 solaris*)
10845 no_undefined_flag=' -z defs'
10846 if test yes = "$GCC"; then
10847 wlarc='$wl'
10848 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10850 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 else
10852 case `$CC -V 2>&1` in
10853 *"Compilers 5.0"*)
10854 wlarc=''
10855 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10857 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10858 ;;
10859 *)
10860 wlarc='$wl'
10861 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10863 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 ;;
10865 esac
10866 fi
10867 hardcode_libdir_flag_spec='-R$libdir'
10868 hardcode_shlibpath_var=no
10869 case $host_os in
10870 solaris2.[0-5] | solaris2.[0-5].*) ;;
10871 *)
10872 # The compiler driver will combine and reorder linker options,
10873 # but understands '-z linker_flag'. GCC discards it without '$wl',
10874 # but is careful enough not to reorder.
10875 # Supported since Solaris 2.6 (maybe 2.5.1?)
10876 if test yes = "$GCC"; then
10877 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10878 else
10879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10880 fi
10881 ;;
10882 esac
10883 link_all_deplibs=yes
10884 ;;
10885
10886 sunos4*)
10887 if test sequent = "$host_vendor"; then
10888 # Use $CC to link under sequent, because it throws in some extra .o
10889 # files that make .init and .fini sections work.
10890 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10891 else
10892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10893 fi
10894 hardcode_libdir_flag_spec='-L$libdir'
10895 hardcode_direct=yes
10896 hardcode_minus_L=yes
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 sysv4)
10901 case $host_vendor in
10902 sni)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_direct=yes # is this really true???
10905 ;;
10906 siemens)
10907 ## LD is ld it makes a PLAMLIB
10908 ## CC just makes a GrossModule.
10909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10910 reload_cmds='$CC -r -o $output$reload_objs'
10911 hardcode_direct=no
10912 ;;
10913 motorola)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10916 ;;
10917 esac
10918 runpath_var='LD_RUN_PATH'
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 sysv4.3*)
10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924 hardcode_shlibpath_var=no
10925 export_dynamic_flag_spec='-Bexport'
10926 ;;
10927
10928 sysv4*MP*)
10929 if test -d /usr/nec; then
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_shlibpath_var=no
10932 runpath_var=LD_RUN_PATH
10933 hardcode_runpath_var=yes
10934 ld_shlibs=yes
10935 fi
10936 ;;
10937
10938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10939 no_undefined_flag='$wl-z,text'
10940 archive_cmds_need_lc=no
10941 hardcode_shlibpath_var=no
10942 runpath_var='LD_RUN_PATH'
10943
10944 if test yes = "$GCC"; then
10945 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 fi
10951 ;;
10952
10953 sysv5* | sco3.2v5* | sco5v6*)
10954 # Note: We CANNOT use -z defs as we might desire, because we do not
10955 # link with -lc, and that would cause any symbols used from libc to
10956 # always be unresolved, which means just about no library would
10957 # ever link correctly. If we're not using GNU ld we use -z text
10958 # though, which does catch some bad symbols but isn't as heavy-handed
10959 # as -z defs.
10960 no_undefined_flag='$wl-z,text'
10961 allow_undefined_flag='$wl-z,nodefs'
10962 archive_cmds_need_lc=no
10963 hardcode_shlibpath_var=no
10964 hardcode_libdir_flag_spec='$wl-R,$libdir'
10965 hardcode_libdir_separator=':'
10966 link_all_deplibs=yes
10967 export_dynamic_flag_spec='$wl-Bexport'
10968 runpath_var='LD_RUN_PATH'
10969
10970 if test yes = "$GCC"; then
10971 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 else
10974 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 fi
10977 ;;
10978
10979 uts4*)
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_libdir_flag_spec='-L$libdir'
10982 hardcode_shlibpath_var=no
10983 ;;
10984
10985 *)
10986 ld_shlibs=no
10987 ;;
10988 esac
10989
10990 if test sni = "$host_vendor"; then
10991 case $host in
10992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10993 export_dynamic_flag_spec='$wl-Blargedynsym'
10994 ;;
10995 esac
10996 fi
10997 fi
10998
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11000$as_echo "$ld_shlibs" >&6; }
11001test no = "$ld_shlibs" && can_build_shared=no
11002
11003with_gnu_ld=$with_gnu_ld
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019#
11020# Do we need to explicitly link libc?
11021#
11022case "x$archive_cmds_need_lc" in
11023x|xyes)
11024 # Assume -lc should be added
11025 archive_cmds_need_lc=yes
11026
11027 if test yes,yes = "$GCC,$enable_shared"; then
11028 case $archive_cmds in
11029 *'~'*)
11030 # FIXME: we may have to deal with multi-command sequences.
11031 ;;
11032 '$CC '*)
11033 # Test whether the compiler implicitly links with -lc since on some
11034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035 # to ld, don't add -lc before -lgcc.
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11037$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11038if ${lt_cv_archive_cmds_need_lc+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040else
11041 $RM conftest*
11042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11043
11044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11045 (eval $ac_compile) 2>&5
11046 ac_status=$?
11047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; } 2>conftest.err; then
11049 soname=conftest
11050 lib=conftest
11051 libobjs=conftest.$ac_objext
11052 deplibs=
11053 wl=$lt_prog_compiler_wl
11054 pic_flag=$lt_prog_compiler_pic
11055 compiler_flags=-v
11056 linker_flags=-v
11057 verstring=
11058 output_objdir=.
11059 libname=conftest
11060 lt_save_allow_undefined_flag=$allow_undefined_flag
11061 allow_undefined_flag=
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11064 ac_status=$?
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }
11067 then
11068 lt_cv_archive_cmds_need_lc=no
11069 else
11070 lt_cv_archive_cmds_need_lc=yes
11071 fi
11072 allow_undefined_flag=$lt_save_allow_undefined_flag
11073 else
11074 cat conftest.err 1>&5
11075 fi
11076 $RM conftest*
11077
11078fi
11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11080$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11082 ;;
11083 esac
11084 fi
11085 ;;
11086esac
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11240$as_echo_n "checking dynamic linker characteristics... " >&6; }
11241
11242if test yes = "$GCC"; then
11243 case $host_os in
11244 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11245 *) lt_awk_arg='/^libraries:/' ;;
11246 esac
11247 case $host_os in
11248 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11249 *) lt_sed_strip_eq='s|=/|/|g' ;;
11250 esac
11251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11252 case $lt_search_path_spec in
11253 *\;*)
11254 # if the path contains ";" then we assume it to be the separator
11255 # otherwise default to the standard path separator (i.e. ":") - it is
11256 # assumed that no part of a normal pathname contains ";" but that should
11257 # okay in the real world where ";" in dirpaths is itself problematic.
11258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11259 ;;
11260 *)
11261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11262 ;;
11263 esac
11264 # Ok, now we have the path, separated by spaces, we can step through it
11265 # and add multilib dir if necessary...
11266 lt_tmp_lt_search_path_spec=
11267 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11268 # ...but if some path component already ends with the multilib dir we assume
11269 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11270 case "$lt_multi_os_dir; $lt_search_path_spec " in
11271 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11272 lt_multi_os_dir=
11273 ;;
11274 esac
11275 for lt_sys_path in $lt_search_path_spec; do
11276 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11278 elif test -n "$lt_multi_os_dir"; then
11279 test -d "$lt_sys_path" && \
11280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11281 fi
11282 done
11283 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11284BEGIN {RS = " "; FS = "/|\n";} {
11285 lt_foo = "";
11286 lt_count = 0;
11287 for (lt_i = NF; lt_i > 0; lt_i--) {
11288 if ($lt_i != "" && $lt_i != ".") {
11289 if ($lt_i == "..") {
11290 lt_count++;
11291 } else {
11292 if (lt_count == 0) {
11293 lt_foo = "/" $lt_i lt_foo;
11294 } else {
11295 lt_count--;
11296 }
11297 }
11298 }
11299 }
11300 if (lt_foo != "") { lt_freq[lt_foo]++; }
11301 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11302}'`
11303 # AWK program above erroneously prepends '/' to C:/dos/paths
11304 # for these hosts.
11305 case $host_os in
11306 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11307 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11308 esac
11309 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11310else
11311 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11312fi
11313library_names_spec=
11314libname_spec='lib$name'
11315soname_spec=
11316shrext_cmds=.so
11317postinstall_cmds=
11318postuninstall_cmds=
11319finish_cmds=
11320finish_eval=
11321shlibpath_var=
11322shlibpath_overrides_runpath=unknown
11323version_type=none
11324dynamic_linker="$host_os ld.so"
11325sys_lib_dlsearch_path_spec="/lib /usr/lib"
11326need_lib_prefix=unknown
11327hardcode_into_libs=no
11328
11329# when you set need_version to no, make sure it does not cause -set_version
11330# flags to be left without arguments
11331need_version=unknown
11332
11333
11334
11335case $host_os in
11336aix3*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11339 shlibpath_var=LIBPATH
11340
11341 # AIX 3 has no versioning support, so we append a major version to the name.
11342 soname_spec='$libname$release$shared_ext$major'
11343 ;;
11344
11345aix[4-9]*)
11346 version_type=linux # correct to gnu/linux during the next big refactor
11347 need_lib_prefix=no
11348 need_version=no
11349 hardcode_into_libs=yes
11350 if test ia64 = "$host_cpu"; then
11351 # AIX 5 supports IA64
11352 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 else
11355 # With GCC up to 2.95.x, collect2 would create an import file
11356 # for dependence libraries. The import file would start with
11357 # the line '#! .'. This would cause the generated library to
11358 # depend on '.', always an invalid library. This was fixed in
11359 # development snapshots of GCC prior to 3.0.
11360 case $host_os in
11361 aix4 | aix4.[01] | aix4.[01].*)
11362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11363 echo ' yes '
11364 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11365 :
11366 else
11367 can_build_shared=no
11368 fi
11369 ;;
11370 esac
11371 # Using Import Files as archive members, it is possible to support
11372 # filename-based versioning of shared library archives on AIX. While
11373 # this would work for both with and without runtime linking, it will
11374 # prevent static linking of such archives. So we do filename-based
11375 # shared library versioning with .so extension only, which is used
11376 # when both runtime linking and shared linking is enabled.
11377 # Unfortunately, runtime linking may impact performance, so we do
11378 # not want this to be the default eventually. Also, we use the
11379 # versioned .so libs for executables only if there is the -brtl
11380 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11381 # To allow for filename-based versioning support, we need to create
11382 # libNAME.so.V as an archive file, containing:
11383 # *) an Import File, referring to the versioned filename of the
11384 # archive as well as the shared archive member, telling the
11385 # bitwidth (32 or 64) of that shared object, and providing the
11386 # list of exported symbols of that shared object, eventually
11387 # decorated with the 'weak' keyword
11388 # *) the shared object with the F_LOADONLY flag set, to really avoid
11389 # it being seen by the linker.
11390 # At run time we better use the real file rather than another symlink,
11391 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11392
11393 case $with_aix_soname,$aix_use_runtimelinking in
11394 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11395 # soname into executable. Probably we can add versioning support to
11396 # collect2, so additional links can be useful in future.
11397 aix,yes) # traditional libtool
11398 dynamic_linker='AIX unversionable lib.so'
11399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11400 # instead of lib<name>.a to let people know that these are not
11401 # typical AIX shared libraries.
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 ;;
11404 aix,no) # traditional AIX only
11405 dynamic_linker='AIX lib.a(lib.so.V)'
11406 # We preserve .a as extension for shared libraries through AIX4.2
11407 # and later when we are not doing run time linking.
11408 library_names_spec='$libname$release.a $libname.a'
11409 soname_spec='$libname$release$shared_ext$major'
11410 ;;
11411 svr4,*) # full svr4 only
11412 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11413 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11414 # We do not specify a path in Import Files, so LIBPATH fires.
11415 shlibpath_overrides_runpath=yes
11416 ;;
11417 *,yes) # both, prefer svr4
11418 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11419 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11420 # unpreferred sharedlib libNAME.a needs extra handling
11421 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11422 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11423 # We do not specify a path in Import Files, so LIBPATH fires.
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426 *,no) # both, prefer aix
11427 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11428 library_names_spec='$libname$release.a $libname.a'
11429 soname_spec='$libname$release$shared_ext$major'
11430 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11431 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11432 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11433 ;;
11434 esac
11435 shlibpath_var=LIBPATH
11436 fi
11437 ;;
11438
11439amigaos*)
11440 case $host_cpu in
11441 powerpc)
11442 # Since July 2007 AmigaOS4 officially supports .so libraries.
11443 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11445 ;;
11446 m68k)
11447 library_names_spec='$libname.ixlibrary $libname.a'
11448 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11449 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11450 ;;
11451 esac
11452 ;;
11453
11454beos*)
11455 library_names_spec='$libname$shared_ext'
11456 dynamic_linker="$host_os ld.so"
11457 shlibpath_var=LIBRARY_PATH
11458 ;;
11459
11460bsdi[45]*)
11461 version_type=linux # correct to gnu/linux during the next big refactor
11462 need_version=no
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 soname_spec='$libname$release$shared_ext$major'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11468 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11469 # the default ld.so.conf also contains /usr/contrib/lib and
11470 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11471 # libtool to hard-code these into programs
11472 ;;
11473
11474cygwin* | mingw* | pw32* | cegcc*)
11475 version_type=windows
11476 shrext_cmds=.dll
11477 need_version=no
11478 need_lib_prefix=no
11479
11480 case $GCC,$cc_basename in
11481 yes,*)
11482 # gcc
11483 library_names_spec='$libname.dll.a'
11484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11485 postinstall_cmds='base_file=`basename \$file`~
11486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11487 dldir=$destdir/`dirname \$dlpath`~
11488 test -d \$dldir || mkdir -p \$dldir~
11489 $install_prog $dir/$dlname \$dldir/$dlname~
11490 chmod a+x \$dldir/$dlname~
11491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11493 fi'
11494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11495 dlpath=$dir/\$dldll~
11496 $RM \$dlpath'
11497 shlibpath_overrides_runpath=yes
11498
11499 case $host_os in
11500 cygwin*)
11501 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11502 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11503
11504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11505 ;;
11506 mingw* | cegcc*)
11507 # MinGW DLLs use traditional 'lib' prefix
11508 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11509 ;;
11510 pw32*)
11511 # pw32 DLLs use 'pw' prefix rather than 'lib'
11512 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11513 ;;
11514 esac
11515 dynamic_linker='Win32 ld.exe'
11516 ;;
11517
11518 *,cl*)
11519 # Native MSVC
11520 libname_spec='$name'
11521 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11522 library_names_spec='$libname.dll.lib'
11523
11524 case $build_os in
11525 mingw*)
11526 sys_lib_search_path_spec=
11527 lt_save_ifs=$IFS
11528 IFS=';'
11529 for lt_path in $LIB
11530 do
11531 IFS=$lt_save_ifs
11532 # Let DOS variable expansion print the short 8.3 style file name.
11533 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11535 done
11536 IFS=$lt_save_ifs
11537 # Convert to MSYS style.
11538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11539 ;;
11540 cygwin*)
11541 # Convert to unix form, then to dos form, then back to unix form
11542 # but this time dos style (no spaces!) so that the unix form looks
11543 # like /cygdrive/c/PROGRA~1:/cygdr...
11544 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11545 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11546 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11547 ;;
11548 *)
11549 sys_lib_search_path_spec=$LIB
11550 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11551 # It is most probably a Windows format PATH.
11552 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11553 else
11554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11555 fi
11556 # FIXME: find the short name or the path components, as spaces are
11557 # common. (e.g. "Program Files" -> "PROGRA~1")
11558 ;;
11559 esac
11560
11561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11562 postinstall_cmds='base_file=`basename \$file`~
11563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11564 dldir=$destdir/`dirname \$dlpath`~
11565 test -d \$dldir || mkdir -p \$dldir~
11566 $install_prog $dir/$dlname \$dldir/$dlname'
11567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11568 dlpath=$dir/\$dldll~
11569 $RM \$dlpath'
11570 shlibpath_overrides_runpath=yes
11571 dynamic_linker='Win32 link.exe'
11572 ;;
11573
11574 *)
11575 # Assume MSVC wrapper
11576 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11577 dynamic_linker='Win32 ld.exe'
11578 ;;
11579 esac
11580 # FIXME: first we should search . and the directory the executable is in
11581 shlibpath_var=PATH
11582 ;;
11583
11584darwin* | rhapsody*)
11585 dynamic_linker="$host_os dyld"
11586 version_type=darwin
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11590 soname_spec='$libname$release$major$shared_ext'
11591 shlibpath_overrides_runpath=yes
11592 shlibpath_var=DYLD_LIBRARY_PATH
11593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11594
11595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11597 ;;
11598
11599dgux*)
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 ;;
11607
11608freebsd* | dragonfly*)
11609 # DragonFly does not have aout. When/if they implement a new
11610 # versioning mechanism, adjust this.
11611 if test -x /usr/bin/objformat; then
11612 objformat=`/usr/bin/objformat`
11613 else
11614 case $host_os in
11615 freebsd[23].*) objformat=aout ;;
11616 *) objformat=elf ;;
11617 esac
11618 fi
11619 version_type=freebsd-$objformat
11620 case $version_type in
11621 freebsd-elf*)
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 need_version=no
11625 need_lib_prefix=no
11626 ;;
11627 freebsd-*)
11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11629 need_version=yes
11630 ;;
11631 esac
11632 shlibpath_var=LD_LIBRARY_PATH
11633 case $host_os in
11634 freebsd2.*)
11635 shlibpath_overrides_runpath=yes
11636 ;;
11637 freebsd3.[01]* | freebsdelf3.[01]*)
11638 shlibpath_overrides_runpath=yes
11639 hardcode_into_libs=yes
11640 ;;
11641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 ;;
11646 *) # from 4.6 on, and DragonFly
11647 shlibpath_overrides_runpath=yes
11648 hardcode_into_libs=yes
11649 ;;
11650 esac
11651 ;;
11652
11653haiku*)
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 need_lib_prefix=no
11656 need_version=no
11657 dynamic_linker="$host_os runtime_loader"
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 shlibpath_var=LIBRARY_PATH
11661 shlibpath_overrides_runpath=no
11662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11663 hardcode_into_libs=yes
11664 ;;
11665
11666hpux9* | hpux10* | hpux11*)
11667 # Give a soname corresponding to the major version so that dld.sl refuses to
11668 # link against other versions.
11669 version_type=sunos
11670 need_lib_prefix=no
11671 need_version=no
11672 case $host_cpu in
11673 ia64*)
11674 shrext_cmds='.so'
11675 hardcode_into_libs=yes
11676 dynamic_linker="$host_os dld.so"
11677 shlibpath_var=LD_LIBRARY_PATH
11678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680 soname_spec='$libname$release$shared_ext$major'
11681 if test 32 = "$HPUX_IA64_MODE"; then
11682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11684 else
11685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11687 fi
11688 ;;
11689 hppa*64*)
11690 shrext_cmds='.sl'
11691 hardcode_into_libs=yes
11692 dynamic_linker="$host_os dld.sl"
11693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696 soname_spec='$libname$release$shared_ext$major'
11697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11699 ;;
11700 *)
11701 shrext_cmds='.sl'
11702 dynamic_linker="$host_os dld.sl"
11703 shlibpath_var=SHLIB_PATH
11704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 ;;
11708 esac
11709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11710 postinstall_cmds='chmod 555 $lib'
11711 # or fails outright, so override atomically:
11712 install_override_mode=555
11713 ;;
11714
11715interix[3-9]*)
11716 version_type=linux # correct to gnu/linux during the next big refactor
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 soname_spec='$libname$release$shared_ext$major'
11721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11725 ;;
11726
11727irix5* | irix6* | nonstopux*)
11728 case $host_os in
11729 nonstopux*) version_type=nonstopux ;;
11730 *)
11731 if test yes = "$lt_cv_prog_gnu_ld"; then
11732 version_type=linux # correct to gnu/linux during the next big refactor
11733 else
11734 version_type=irix
11735 fi ;;
11736 esac
11737 need_lib_prefix=no
11738 need_version=no
11739 soname_spec='$libname$release$shared_ext$major'
11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11741 case $host_os in
11742 irix5* | nonstopux*)
11743 libsuff= shlibsuff=
11744 ;;
11745 *)
11746 case $LD in # libtool.m4 will add one of these switches to LD
11747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11748 libsuff= shlibsuff= libmagic=32-bit;;
11749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11750 libsuff=32 shlibsuff=N32 libmagic=N32;;
11751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11753 *) libsuff= shlibsuff= libmagic=never-match;;
11754 esac
11755 ;;
11756 esac
11757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11758 shlibpath_overrides_runpath=no
11759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11761 hardcode_into_libs=yes
11762 ;;
11763
11764# No shared lib support for Linux oldld, aout, or coff.
11765linux*oldld* | linux*aout* | linux*coff*)
11766 dynamic_linker=no
11767 ;;
11768
11769linux*android*)
11770 version_type=none # Android doesn't support versioned libraries.
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='$libname$release$shared_ext'
11774 soname_spec='$libname$release$shared_ext'
11775 finish_cmds=
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=yes
11778
11779 # This implies no fast_install, which is unacceptable.
11780 # Some rework will be needed to allow for fast_install
11781 # before this can be enabled.
11782 hardcode_into_libs=yes
11783
11784 dynamic_linker='Android linker'
11785 # Don't embed -rpath directories since the linker doesn't support them.
11786 hardcode_libdir_flag_spec='-L$libdir'
11787 ;;
11788
11789# This must be glibc/ELF.
11790linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11795 soname_spec='$libname$release$shared_ext$major'
11796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=no
11799
11800 # Some binutils ld are patched to set DT_RUNPATH
11801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803else
11804 lt_cv_shlibpath_overrides_runpath=no
11805 save_LDFLAGS=$LDFLAGS
11806 save_libdir=$libdir
11807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811
11812int
11813main ()
11814{
11815
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820if ac_fn_c_try_link "$LINENO"; then :
11821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11822 lt_cv_shlibpath_overrides_runpath=yes
11823fi
11824fi
11825rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LDFLAGS=$save_LDFLAGS
11828 libdir=$save_libdir
11829
11830fi
11831
11832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11833
11834 # This implies no fast_install, which is unacceptable.
11835 # Some rework will be needed to allow for fast_install
11836 # before this can be enabled.
11837 hardcode_into_libs=yes
11838
11839 # Add ABI-specific directories to the system library path.
11840 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11841
11842 # Ideally, we could use ldconfig to report *all* directores which are
11843 # searched for libraries, however this is still not possible. Aside from not
11844 # being certain /sbin/ldconfig is available, command
11845 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11846 # even though it is searched at run-time. Try to do the best guess by
11847 # appending ld.so.conf contents (and includes) to the search path.
11848 if test -f /etc/ld.so.conf; then
11849 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11850 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11851 fi
11852
11853 # We used to test for /lib/ld.so.1 and disable shared libraries on
11854 # powerpc, because MkLinux only supported shared libraries with the
11855 # GNU dynamic linker. Since this was broken with cross compilers,
11856 # most powerpc-linux boxes support dynamic linking these days and
11857 # people can always --disable-shared, the test was removed, and we
11858 # assume the GNU/Linux dynamic linker is in use.
11859 dynamic_linker='GNU/Linux ld.so'
11860 ;;
11861
11862netbsd*)
11863 version_type=sunos
11864 need_lib_prefix=no
11865 need_version=no
11866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869 dynamic_linker='NetBSD (a.out) ld.so'
11870 else
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 dynamic_linker='NetBSD ld.elf_so'
11874 fi
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 hardcode_into_libs=yes
11878 ;;
11879
11880newsos6)
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 ;;
11886
11887*nto* | *qnx*)
11888 version_type=qnx
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11892 soname_spec='$libname$release$shared_ext$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=no
11895 hardcode_into_libs=yes
11896 dynamic_linker='ldqnx.so'
11897 ;;
11898
11899openbsd* | bitrig*)
11900 version_type=sunos
11901 sys_lib_dlsearch_path_spec=/usr/lib
11902 need_lib_prefix=no
11903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11904 need_version=no
11905 else
11906 need_version=yes
11907 fi
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 ;;
11913
11914os2*)
11915 libname_spec='$name'
11916 version_type=windows
11917 shrext_cmds=.dll
11918 need_version=no
11919 need_lib_prefix=no
11920 # OS/2 can only load a DLL with a base name of 8 characters or less.
11921 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11922 v=$($ECHO $release$versuffix | tr -d .-);
11923 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11924 $ECHO $n$v`$shared_ext'
11925 library_names_spec='${libname}_dll.$libext'
11926 dynamic_linker='OS/2 ld.exe'
11927 shlibpath_var=BEGINLIBPATH
11928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11930 postinstall_cmds='base_file=`basename \$file`~
11931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11932 dldir=$destdir/`dirname \$dlpath`~
11933 test -d \$dldir || mkdir -p \$dldir~
11934 $install_prog $dir/$dlname \$dldir/$dlname~
11935 chmod a+x \$dldir/$dlname~
11936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11938 fi'
11939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11940 dlpath=$dir/\$dldll~
11941 $RM \$dlpath'
11942 ;;
11943
11944osf3* | osf4* | osf5*)
11945 version_type=osf
11946 need_lib_prefix=no
11947 need_version=no
11948 soname_spec='$libname$release$shared_ext$major'
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11953 ;;
11954
11955rdos*)
11956 dynamic_linker=no
11957 ;;
11958
11959solaris*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 need_lib_prefix=no
11962 need_version=no
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 soname_spec='$libname$release$shared_ext$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11967 hardcode_into_libs=yes
11968 # ldd complains unless libraries are executable
11969 postinstall_cmds='chmod +x $lib'
11970 ;;
11971
11972sunos4*)
11973 version_type=sunos
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11978 if test yes = "$with_gnu_ld"; then
11979 need_lib_prefix=no
11980 fi
11981 need_version=yes
11982 ;;
11983
11984sysv4 | sysv4.3*)
11985 version_type=linux # correct to gnu/linux during the next big refactor
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987 soname_spec='$libname$release$shared_ext$major'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 case $host_vendor in
11990 sni)
11991 shlibpath_overrides_runpath=no
11992 need_lib_prefix=no
11993 runpath_var=LD_RUN_PATH
11994 ;;
11995 siemens)
11996 need_lib_prefix=no
11997 ;;
11998 motorola)
11999 need_lib_prefix=no
12000 need_version=no
12001 shlibpath_overrides_runpath=no
12002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12003 ;;
12004 esac
12005 ;;
12006
12007sysv4*MP*)
12008 if test -d /usr/nec; then
12009 version_type=linux # correct to gnu/linux during the next big refactor
12010 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12011 soname_spec='$libname$shared_ext.$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 fi
12014 ;;
12015
12016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12017 version_type=sco
12018 need_lib_prefix=no
12019 need_version=no
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=yes
12024 hardcode_into_libs=yes
12025 if test yes = "$with_gnu_ld"; then
12026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12027 else
12028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12029 case $host_os in
12030 sco3.2v5*)
12031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12032 ;;
12033 esac
12034 fi
12035 sys_lib_dlsearch_path_spec='/usr/lib'
12036 ;;
12037
12038tpf*)
12039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12040 version_type=linux # correct to gnu/linux during the next big refactor
12041 need_lib_prefix=no
12042 need_version=no
12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=no
12046 hardcode_into_libs=yes
12047 ;;
12048
12049uts4*)
12050 version_type=linux # correct to gnu/linux during the next big refactor
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 soname_spec='$libname$release$shared_ext$major'
12053 shlibpath_var=LD_LIBRARY_PATH
12054 ;;
12055
12056*)
12057 dynamic_linker=no
12058 ;;
12059esac
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12061$as_echo "$dynamic_linker" >&6; }
12062test no = "$dynamic_linker" && can_build_shared=no
12063
12064variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12065if test yes = "$GCC"; then
12066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12067fi
12068
12069if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12070 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12071fi
12072
12073if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12074 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12075fi
12076
12077# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12078configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12079
12080# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12081func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12082
12083# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12084configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12183$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12184hardcode_action=
12185if test -n "$hardcode_libdir_flag_spec" ||
12186 test -n "$runpath_var" ||
12187 test yes = "$hardcode_automatic"; then
12188
12189 # We can hardcode non-existent directories.
12190 if test no != "$hardcode_direct" &&
12191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12192 # have to relink, otherwise we might link with an installed library
12193 # when we should be linking with a yet-to-be-installed one
12194 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12195 test no != "$hardcode_minus_L"; then
12196 # Linking always hardcodes the temporary library directory.
12197 hardcode_action=relink
12198 else
12199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12200 hardcode_action=immediate
12201 fi
12202else
12203 # We cannot hardcode anything, or else we can only hardcode existing
12204 # directories.
12205 hardcode_action=unsupported
12206fi
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12208$as_echo "$hardcode_action" >&6; }
12209
12210if test relink = "$hardcode_action" ||
12211 test yes = "$inherit_rpath"; then
12212 # Fast installation is not supported
12213 enable_fast_install=no
12214elif test yes = "$shlibpath_overrides_runpath" ||
12215 test no = "$enable_shared"; then
12216 # Fast installation is not necessary
12217 enable_fast_install=needless
12218fi
12219
12220
12221
12222
12223
12224
12225 if test yes != "$enable_dlopen"; then
12226 enable_dlopen=unknown
12227 enable_dlopen_self=unknown
12228 enable_dlopen_self_static=unknown
12229else
12230 lt_cv_dlopen=no
12231 lt_cv_dlopen_libs=
12232
12233 case $host_os in
12234 beos*)
12235 lt_cv_dlopen=load_add_on
12236 lt_cv_dlopen_libs=
12237 lt_cv_dlopen_self=yes
12238 ;;
12239
12240 mingw* | pw32* | cegcc*)
12241 lt_cv_dlopen=LoadLibrary
12242 lt_cv_dlopen_libs=
12243 ;;
12244
12245 cygwin*)
12246 lt_cv_dlopen=dlopen
12247 lt_cv_dlopen_libs=
12248 ;;
12249
12250 darwin*)
12251 # if libdl is installed we need to link against it
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12253$as_echo_n "checking for dlopen in -ldl... " >&6; }
12254if ${ac_cv_lib_dl_dlopen+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256else
12257 ac_check_lib_save_LIBS=$LIBS
12258LIBS="-ldl $LIBS"
12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h. */
12261
12262/* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265#ifdef __cplusplus
12266extern "C"
12267#endif
12268char dlopen ();
12269int
12270main ()
12271{
12272return dlopen ();
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_link "$LINENO"; then :
12278 ac_cv_lib_dl_dlopen=yes
12279else
12280 ac_cv_lib_dl_dlopen=no
12281fi
12282rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284LIBS=$ac_check_lib_save_LIBS
12285fi
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12287$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12288if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12290else
12291
12292 lt_cv_dlopen=dyld
12293 lt_cv_dlopen_libs=
12294 lt_cv_dlopen_self=yes
12295
12296fi
12297
12298 ;;
12299
12300 tpf*)
12301 # Don't try to run any link tests for TPF. We know it's impossible
12302 # because TPF is a cross-compiler, and we know how we open DSOs.
12303 lt_cv_dlopen=dlopen
12304 lt_cv_dlopen_libs=
12305 lt_cv_dlopen_self=no
12306 ;;
12307
12308 *)
12309 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12310if test "x$ac_cv_func_shl_load" = xyes; then :
12311 lt_cv_dlopen=shl_load
12312else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12314$as_echo_n "checking for shl_load in -ldld... " >&6; }
12315if ${ac_cv_lib_dld_shl_load+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317else
12318 ac_check_lib_save_LIBS=$LIBS
12319LIBS="-ldld $LIBS"
12320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321/* end confdefs.h. */
12322
12323/* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326#ifdef __cplusplus
12327extern "C"
12328#endif
12329char shl_load ();
12330int
12331main ()
12332{
12333return shl_load ();
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_dld_shl_load=yes
12340else
12341 ac_cv_lib_dld_shl_load=no
12342fi
12343rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345LIBS=$ac_check_lib_save_LIBS
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12348$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12349if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12350 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12351else
12352 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12353if test "x$ac_cv_func_dlopen" = xyes; then :
12354 lt_cv_dlopen=dlopen
12355else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12357$as_echo_n "checking for dlopen in -ldl... " >&6; }
12358if ${ac_cv_lib_dl_dlopen+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 ac_check_lib_save_LIBS=$LIBS
12362LIBS="-ldl $LIBS"
12363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364/* end confdefs.h. */
12365
12366/* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369#ifdef __cplusplus
12370extern "C"
12371#endif
12372char dlopen ();
12373int
12374main ()
12375{
12376return dlopen ();
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_dl_dlopen=yes
12383else
12384 ac_cv_lib_dl_dlopen=no
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388LIBS=$ac_check_lib_save_LIBS
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12391$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12392if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12393 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12394else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12396$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12397if ${ac_cv_lib_svld_dlopen+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399else
12400 ac_check_lib_save_LIBS=$LIBS
12401LIBS="-lsvld $LIBS"
12402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h. */
12404
12405/* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408#ifdef __cplusplus
12409extern "C"
12410#endif
12411char dlopen ();
12412int
12413main ()
12414{
12415return dlopen ();
12416 ;
12417 return 0;
12418}
12419_ACEOF
12420if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_svld_dlopen=yes
12422else
12423 ac_cv_lib_svld_dlopen=no
12424fi
12425rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427LIBS=$ac_check_lib_save_LIBS
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12430$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12431if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12432 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12435$as_echo_n "checking for dld_link in -ldld... " >&6; }
12436if ${ac_cv_lib_dld_dld_link+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438else
12439 ac_check_lib_save_LIBS=$LIBS
12440LIBS="-ldld $LIBS"
12441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442/* end confdefs.h. */
12443
12444/* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447#ifdef __cplusplus
12448extern "C"
12449#endif
12450char dld_link ();
12451int
12452main ()
12453{
12454return dld_link ();
12455 ;
12456 return 0;
12457}
12458_ACEOF
12459if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_lib_dld_dld_link=yes
12461else
12462 ac_cv_lib_dld_dld_link=no
12463fi
12464rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466LIBS=$ac_check_lib_save_LIBS
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12469$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12470if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12471 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12472fi
12473
12474
12475fi
12476
12477
12478fi
12479
12480
12481fi
12482
12483
12484fi
12485
12486
12487fi
12488
12489 ;;
12490 esac
12491
12492 if test no = "$lt_cv_dlopen"; then
12493 enable_dlopen=no
12494 else
12495 enable_dlopen=yes
12496 fi
12497
12498 case $lt_cv_dlopen in
12499 dlopen)
12500 save_CPPFLAGS=$CPPFLAGS
12501 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12502
12503 save_LDFLAGS=$LDFLAGS
12504 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12505
12506 save_LIBS=$LIBS
12507 LIBS="$lt_cv_dlopen_libs $LIBS"
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12510$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12511if ${lt_cv_dlopen_self+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513else
12514 if test yes = "$cross_compiling"; then :
12515 lt_cv_dlopen_self=cross
12516else
12517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12518 lt_status=$lt_dlunknown
12519 cat > conftest.$ac_ext <<_LT_EOF
12520#line $LINENO "configure"
12521#include "confdefs.h"
12522
12523#if HAVE_DLFCN_H
12524#include <dlfcn.h>
12525#endif
12526
12527#include <stdio.h>
12528
12529#ifdef RTLD_GLOBAL
12530# define LT_DLGLOBAL RTLD_GLOBAL
12531#else
12532# ifdef DL_GLOBAL
12533# define LT_DLGLOBAL DL_GLOBAL
12534# else
12535# define LT_DLGLOBAL 0
12536# endif
12537#endif
12538
12539/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12540 find out it does not work in some platform. */
12541#ifndef LT_DLLAZY_OR_NOW
12542# ifdef RTLD_LAZY
12543# define LT_DLLAZY_OR_NOW RTLD_LAZY
12544# else
12545# ifdef DL_LAZY
12546# define LT_DLLAZY_OR_NOW DL_LAZY
12547# else
12548# ifdef RTLD_NOW
12549# define LT_DLLAZY_OR_NOW RTLD_NOW
12550# else
12551# ifdef DL_NOW
12552# define LT_DLLAZY_OR_NOW DL_NOW
12553# else
12554# define LT_DLLAZY_OR_NOW 0
12555# endif
12556# endif
12557# endif
12558# endif
12559#endif
12560
12561/* When -fvisibility=hidden is used, assume the code has been annotated
12562 correspondingly for the symbols needed. */
12563#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12564int fnord () __attribute__((visibility("default")));
12565#endif
12566
12567int fnord () { return 42; }
12568int main ()
12569{
12570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12571 int status = $lt_dlunknown;
12572
12573 if (self)
12574 {
12575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12576 else
12577 {
12578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12579 else puts (dlerror ());
12580 }
12581 /* dlclose (self); */
12582 }
12583 else
12584 puts (dlerror ());
12585
12586 return status;
12587}
12588_LT_EOF
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12590 (eval $ac_link) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12594 (./conftest; exit; ) >&5 2>/dev/null
12595 lt_status=$?
12596 case x$lt_status in
12597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12600 esac
12601 else :
12602 # compilation failed
12603 lt_cv_dlopen_self=no
12604 fi
12605fi
12606rm -fr conftest*
12607
12608
12609fi
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12611$as_echo "$lt_cv_dlopen_self" >&6; }
12612
12613 if test yes = "$lt_cv_dlopen_self"; then
12614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12616$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12617if ${lt_cv_dlopen_self_static+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619else
12620 if test yes = "$cross_compiling"; then :
12621 lt_cv_dlopen_self_static=cross
12622else
12623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12624 lt_status=$lt_dlunknown
12625 cat > conftest.$ac_ext <<_LT_EOF
12626#line $LINENO "configure"
12627#include "confdefs.h"
12628
12629#if HAVE_DLFCN_H
12630#include <dlfcn.h>
12631#endif
12632
12633#include <stdio.h>
12634
12635#ifdef RTLD_GLOBAL
12636# define LT_DLGLOBAL RTLD_GLOBAL
12637#else
12638# ifdef DL_GLOBAL
12639# define LT_DLGLOBAL DL_GLOBAL
12640# else
12641# define LT_DLGLOBAL 0
12642# endif
12643#endif
12644
12645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12646 find out it does not work in some platform. */
12647#ifndef LT_DLLAZY_OR_NOW
12648# ifdef RTLD_LAZY
12649# define LT_DLLAZY_OR_NOW RTLD_LAZY
12650# else
12651# ifdef DL_LAZY
12652# define LT_DLLAZY_OR_NOW DL_LAZY
12653# else
12654# ifdef RTLD_NOW
12655# define LT_DLLAZY_OR_NOW RTLD_NOW
12656# else
12657# ifdef DL_NOW
12658# define LT_DLLAZY_OR_NOW DL_NOW
12659# else
12660# define LT_DLLAZY_OR_NOW 0
12661# endif
12662# endif
12663# endif
12664# endif
12665#endif
12666
12667/* When -fvisibility=hidden is used, assume the code has been annotated
12668 correspondingly for the symbols needed. */
12669#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12670int fnord () __attribute__((visibility("default")));
12671#endif
12672
12673int fnord () { return 42; }
12674int main ()
12675{
12676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12677 int status = $lt_dlunknown;
12678
12679 if (self)
12680 {
12681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12682 else
12683 {
12684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12685 else puts (dlerror ());
12686 }
12687 /* dlclose (self); */
12688 }
12689 else
12690 puts (dlerror ());
12691
12692 return status;
12693}
12694_LT_EOF
12695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12696 (eval $ac_link) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12700 (./conftest; exit; ) >&5 2>/dev/null
12701 lt_status=$?
12702 case x$lt_status in
12703 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12704 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12705 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12706 esac
12707 else :
12708 # compilation failed
12709 lt_cv_dlopen_self_static=no
12710 fi
12711fi
12712rm -fr conftest*
12713
12714
12715fi
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12717$as_echo "$lt_cv_dlopen_self_static" >&6; }
12718 fi
12719
12720 CPPFLAGS=$save_CPPFLAGS
12721 LDFLAGS=$save_LDFLAGS
12722 LIBS=$save_LIBS
12723 ;;
12724 esac
12725
12726 case $lt_cv_dlopen_self in
12727 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12728 *) enable_dlopen_self=unknown ;;
12729 esac
12730
12731 case $lt_cv_dlopen_self_static in
12732 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12733 *) enable_dlopen_self_static=unknown ;;
12734 esac
12735fi
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753striplib=
12754old_striplib=
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12756$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12757if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12758 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12759 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12761$as_echo "yes" >&6; }
12762else
12763# FIXME - insert some real tests, host_os isn't really good enough
12764 case $host_os in
12765 darwin*)
12766 if test -n "$STRIP"; then
12767 striplib="$STRIP -x"
12768 old_striplib="$STRIP -S"
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12770$as_echo "yes" >&6; }
12771 else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
12774 fi
12775 ;;
12776 *)
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778$as_echo "no" >&6; }
12779 ;;
12780 esac
12781fi
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794 # Report what library types will actually be built
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12796$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12798$as_echo "$can_build_shared" >&6; }
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12801$as_echo_n "checking whether to build shared libraries... " >&6; }
12802 test no = "$can_build_shared" && enable_shared=no
12803
12804 # On AIX, shared libraries and static libraries use the same namespace, and
12805 # are all built from PIC.
12806 case $host_os in
12807 aix3*)
12808 test yes = "$enable_shared" && enable_static=no
12809 if test -n "$RANLIB"; then
12810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12811 postinstall_cmds='$RANLIB $lib'
12812 fi
12813 ;;
12814
12815 aix[4-9]*)
12816 if test ia64 != "$host_cpu"; then
12817 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12818 yes,aix,yes) ;; # shared object as lib.so file only
12819 yes,svr4,*) ;; # shared object as lib.so archive member only
12820 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12821 esac
12822 fi
12823 ;;
12824 esac
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12826$as_echo "$enable_shared" >&6; }
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12829$as_echo_n "checking whether to build static libraries... " >&6; }
12830 # Make sure either enable_shared or enable_static is yes.
12831 test yes = "$enable_shared" || enable_static=yes
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12833$as_echo "$enable_static" >&6; }
12834
12835
12836
12837
12838fi
12839ac_ext=c
12840ac_cpp='$CPP $CPPFLAGS'
12841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845CC=$lt_save_CC
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861 ac_config_commands="$ac_config_commands libtool"
12862
12863
12864
12865
12866# Only expand once:
12867
12868
12869
12870if test "$PS" = "ps"
12871then
12872 as_fn_error $? "Cannot find pathname to ps" "$LINENO" 5
12873fi
12874
12875if test x$GXX = xyes
12876then
12877 CFLAGS="-Wall $CFLAGS"
12878fi
12879
12880CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
12881
12882
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12884$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12885if ${ac_cv_header_sys_wait_h+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887else
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h. */
12890#include <sys/types.h>
12891#include <sys/wait.h>
12892#ifndef WEXITSTATUS
12893# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12894#endif
12895#ifndef WIFEXITED
12896# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12897#endif
12898
12899int
12900main ()
12901{
12902 int s;
12903 wait (&s);
12904 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909if ac_fn_c_try_compile "$LINENO"; then :
12910 ac_cv_header_sys_wait_h=yes
12911else
12912 ac_cv_header_sys_wait_h=no
12913fi
12914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915fi
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12917$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12918if test $ac_cv_header_sys_wait_h = yes; then
12919
12920$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12921
12922fi
12923
12924for ac_header in unistd.h fcntl.h
12925do :
12926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12929 cat >>confdefs.h <<_ACEOF
12930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12931_ACEOF
12932
12933fi
12934
12935done
12936
12937
12938ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12939if test "x$ac_cv_type_pid_t" = xyes; then :
12940
12941else
12942
12943cat >>confdefs.h <<_ACEOF
12944#define pid_t int
12945_ACEOF
12946
12947fi
12948
12949# Check whether --enable-largefile was given.
12950if test "${enable_largefile+set}" = set; then :
12951 enableval=$enable_largefile;
12952fi
12953
12954if test "$enable_largefile" != no; then
12955
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12957$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12958if ${ac_cv_sys_largefile_CC+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960else
12961 ac_cv_sys_largefile_CC=no
12962 if test "$GCC" != yes; then
12963 ac_save_CC=$CC
12964 while :; do
12965 # IRIX 6.2 and later do not support large files by default,
12966 # so use the C compiler's -n32 option if that helps.
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h. */
12969#include <sys/types.h>
12970 /* Check that off_t can represent 2**63 - 1 correctly.
12971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12972 since some C++ compilers masquerading as C compilers
12973 incorrectly reject 9223372036854775807. */
12974#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12976 && LARGE_OFF_T % 2147483647 == 1)
12977 ? 1 : -1];
12978int
12979main ()
12980{
12981
12982 ;
12983 return 0;
12984}
12985_ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 break
12988fi
12989rm -f core conftest.err conftest.$ac_objext
12990 CC="$CC -n32"
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 ac_cv_sys_largefile_CC=' -n32'; break
12993fi
12994rm -f core conftest.err conftest.$ac_objext
12995 break
12996 done
12997 CC=$ac_save_CC
12998 rm -f conftest.$ac_ext
12999 fi
13000fi
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13002$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13003 if test "$ac_cv_sys_largefile_CC" != no; then
13004 CC=$CC$ac_cv_sys_largefile_CC
13005 fi
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13008$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13009if ${ac_cv_sys_file_offset_bits+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011else
13012 while :; do
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h. */
13015#include <sys/types.h>
13016 /* Check that off_t can represent 2**63 - 1 correctly.
13017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13018 since some C++ compilers masquerading as C compilers
13019 incorrectly reject 9223372036854775807. */
13020#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13022 && LARGE_OFF_T % 2147483647 == 1)
13023 ? 1 : -1];
13024int
13025main ()
13026{
13027
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032if ac_fn_c_try_compile "$LINENO"; then :
13033 ac_cv_sys_file_offset_bits=no; break
13034fi
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037/* end confdefs.h. */
13038#define _FILE_OFFSET_BITS 64
13039#include <sys/types.h>
13040 /* Check that off_t can represent 2**63 - 1 correctly.
13041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13042 since some C++ compilers masquerading as C compilers
13043 incorrectly reject 9223372036854775807. */
13044#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13046 && LARGE_OFF_T % 2147483647 == 1)
13047 ? 1 : -1];
13048int
13049main ()
13050{
13051
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056if ac_fn_c_try_compile "$LINENO"; then :
13057 ac_cv_sys_file_offset_bits=64; break
13058fi
13059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13060 ac_cv_sys_file_offset_bits=unknown
13061 break
13062done
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13065$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13066case $ac_cv_sys_file_offset_bits in #(
13067 no | unknown) ;;
13068 *)
13069cat >>confdefs.h <<_ACEOF
13070#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13071_ACEOF
13072;;
13073esac
13074rm -rf conftest*
13075 if test $ac_cv_sys_file_offset_bits = unknown; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13077$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13078if ${ac_cv_sys_large_files+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080else
13081 while :; do
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084#include <sys/types.h>
13085 /* Check that off_t can represent 2**63 - 1 correctly.
13086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13087 since some C++ compilers masquerading as C compilers
13088 incorrectly reject 9223372036854775807. */
13089#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13091 && LARGE_OFF_T % 2147483647 == 1)
13092 ? 1 : -1];
13093int
13094main ()
13095{
13096
13097 ;
13098 return 0;
13099}
13100_ACEOF
13101if ac_fn_c_try_compile "$LINENO"; then :
13102 ac_cv_sys_large_files=no; break
13103fi
13104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h. */
13107#define _LARGE_FILES 1
13108#include <sys/types.h>
13109 /* Check that off_t can represent 2**63 - 1 correctly.
13110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13111 since some C++ compilers masquerading as C compilers
13112 incorrectly reject 9223372036854775807. */
13113#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13115 && LARGE_OFF_T % 2147483647 == 1)
13116 ? 1 : -1];
13117int
13118main ()
13119{
13120
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125if ac_fn_c_try_compile "$LINENO"; then :
13126 ac_cv_sys_large_files=1; break
13127fi
13128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 ac_cv_sys_large_files=unknown
13130 break
13131done
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13134$as_echo "$ac_cv_sys_large_files" >&6; }
13135case $ac_cv_sys_large_files in #(
13136 no | unknown) ;;
13137 *)
13138cat >>confdefs.h <<_ACEOF
13139#define _LARGE_FILES $ac_cv_sys_large_files
13140_ACEOF
13141;;
13142esac
13143rm -rf conftest*
13144 fi
13145
13146
13147fi
13148
13149
13150
13151# Check whether --with-random was given.
13152if test "${with_random+set}" = set; then :
13153 withval=$with_random; random="$withval"
13154else
13155 random="y"
13156fi
13157
13158
13159case "$random" in
13160/*)
13161 ;;
13162y*|1*)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
13164$as_echo_n "checking for random source... " >&6; }
13165if ${random_cv_RANDOM+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167else
13168 if test -c /dev/urandom
13169 then
13170 random_cv_RANDOM=/dev/urandom
13171 else
13172 if test -c /dev/random
13173 then
13174 random_cv_RANDOM=/dev/random
13175 else
13176 random_cv_RANDOM="none"
13177 fi
13178 fi
13179
13180fi
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_RANDOM" >&5
13182$as_echo "$random_cv_RANDOM" >&6; }
13183 random="$random_cv_RANDOM"
13184 ;;
13185*)
13186 random="none"
13187 ;;
13188esac
13189
13190if test "$random" != "none"
13191then
13192
13193cat >>confdefs.h <<_ACEOF
13194#define RANDOM "$random"
13195_ACEOF
13196
13197fi
13198
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some good options for ps" >&5
13200$as_echo_n "checking for some good options for ps... " >&6; }
13201if ${random_cv_PS_OPTIONS+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203else
13204 for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
13205 do
13206 ps $opts >/dev/null 2>/dev/null || continue
13207 break
13208 done
13209 random_cv_PS_OPTIONS="$opts"
13210
13211fi
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random_cv_PS_OPTIONS" >&5
13213$as_echo "$random_cv_PS_OPTIONS" >&6; }
13214
13215
13216cat >>confdefs.h <<_ACEOF
13217#define PS_OPTIONS "$random_cv_PS_OPTIONS"
13218_ACEOF
13219
13220
13221cat >>confdefs.h <<_ACEOF
13222#define PS "$PS"
13223_ACEOF
13224
13225
13226if test "$W" != "w"
13227then
13228
13229cat >>confdefs.h <<_ACEOF
13230#define W "$w"
13231_ACEOF
13232
13233fi
13234
13235ac_config_files="$ac_config_files Makefile"
13236
13237cat >confcache <<\_ACEOF
13238# This file is a shell script that caches the results of configure
13239# tests run on this system so they can be shared between configure
13240# scripts and configure runs, see configure's option --config-cache.
13241# It is not useful on other systems. If it contains results you don't
13242# want to keep, you may remove or edit it.
13243#
13244# config.status only pays attention to the cache file if you give it
13245# the --recheck option to rerun configure.
13246#
13247# `ac_cv_env_foo' variables (set or unset) will be overridden when
13248# loading this file, other *unset* `ac_cv_foo' will be assigned the
13249# following values.
13250
13251_ACEOF
13252
13253# The following way of writing the cache mishandles newlines in values,
13254# but we know of no workaround that is simple, portable, and efficient.
13255# So, we kill variables containing newlines.
13256# Ultrix sh set writes to stderr and can't be redirected directly,
13257# and sets the high bit in the cache file unless we assign to the vars.
13258(
13259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13260 eval ac_val=\$$ac_var
13261 case $ac_val in #(
13262 *${as_nl}*)
13263 case $ac_var in #(
13264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13265$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13266 esac
13267 case $ac_var in #(
13268 _ | IFS | as_nl) ;; #(
13269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13270 *) { eval $ac_var=; unset $ac_var;} ;;
13271 esac ;;
13272 esac
13273 done
13274
13275 (set) 2>&1 |
13276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13277 *${as_nl}ac_space=\ *)
13278 # `set' does not quote correctly, so add quotes: double-quote
13279 # substitution turns \\\\ into \\, and sed turns \\ into \.
13280 sed -n \
13281 "s/'/'\\\\''/g;
13282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13283 ;; #(
13284 *)
13285 # `set' quotes correctly as required by POSIX, so do not add quotes.
13286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13287 ;;
13288 esac |
13289 sort
13290) |
13291 sed '
13292 /^ac_cv_env_/b end
13293 t clear
13294 :clear
13295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13296 t end
13297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13298 :end' >>confcache
13299if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13300 if test -w "$cache_file"; then
13301 if test "x$cache_file" != "x/dev/null"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13303$as_echo "$as_me: updating cache $cache_file" >&6;}
13304 if test ! -f "$cache_file" || test -h "$cache_file"; then
13305 cat confcache >"$cache_file"
13306 else
13307 case $cache_file in #(
13308 */* | ?:*)
13309 mv -f confcache "$cache_file"$$ &&
13310 mv -f "$cache_file"$$ "$cache_file" ;; #(
13311 *)
13312 mv -f confcache "$cache_file" ;;
13313 esac
13314 fi
13315 fi
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13318$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13319 fi
13320fi
13321rm -f confcache
13322
13323test "x$prefix" = xNONE && prefix=$ac_default_prefix
13324# Let make expand exec_prefix.
13325test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13326
13327DEFS=-DHAVE_CONFIG_H
13328
13329ac_libobjs=
13330ac_ltlibobjs=
13331U=
13332for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13333 # 1. Remove the extension, and $U if already installed.
13334 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13335 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13336 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13337 # will be set to the directory where LIBOBJS objects are built.
13338 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13339 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13340done
13341LIBOBJS=$ac_libobjs
13342
13343LTLIBOBJS=$ac_ltlibobjs
13344
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13347$as_echo_n "checking that generated files are newer than configure... " >&6; }
13348 if test -n "$am_sleep_pid"; then
13349 # Hide warnings about reused PIDs.
13350 wait $am_sleep_pid 2>/dev/null
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13353$as_echo "done" >&6; }
13354 if test -n "$EXEEXT"; then
13355 am__EXEEXT_TRUE=
13356 am__EXEEXT_FALSE='#'
13357else
13358 am__EXEEXT_TRUE='#'
13359 am__EXEEXT_FALSE=
13360fi
13361
13362if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13363 as_fn_error $? "conditional \"AMDEP\" was never defined.
13364Usually this means the macro was only invoked conditionally." "$LINENO" 5
13365fi
13366if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13367 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13368Usually this means the macro was only invoked conditionally." "$LINENO" 5
13369fi
13370if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13371 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13372Usually this means the macro was only invoked conditionally." "$LINENO" 5
13373fi
13374
13375: "${CONFIG_STATUS=./config.status}"
13376ac_write_fail=0
13377ac_clean_files_save=$ac_clean_files
13378ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13380$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13381as_write_fail=0
13382cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13383#! $SHELL
13384# Generated by $as_me.
13385# Run this file to recreate the current configuration.
13386# Compiler output produced by configure, useful for debugging
13387# configure, is in config.log if it exists.
13388
13389debug=false
13390ac_cs_recheck=false
13391ac_cs_silent=false
13392
13393SHELL=\${CONFIG_SHELL-$SHELL}
13394export SHELL
13395_ASEOF
13396cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13397## -------------------- ##
13398## M4sh Initialization. ##
13399## -------------------- ##
13400
13401# Be more Bourne compatible
13402DUALCASE=1; export DUALCASE # for MKS sh
13403if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13404 emulate sh
13405 NULLCMD=:
13406 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13407 # is contrary to our usage. Disable this feature.
13408 alias -g '${1+"$@"}'='"$@"'
13409 setopt NO_GLOB_SUBST
13410else
13411 case `(set -o) 2>/dev/null` in #(
13412 *posix*) :
13413 set -o posix ;; #(
13414 *) :
13415 ;;
13416esac
13417fi
13418
13419
13420as_nl='
13421'
13422export as_nl
13423# Printing a long string crashes Solaris 7 /usr/bin/printf.
13424as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13425as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13427# Prefer a ksh shell builtin over an external printf program on Solaris,
13428# but without wasting forks for bash or zsh.
13429if test -z "$BASH_VERSION$ZSH_VERSION" \
13430 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13431 as_echo='print -r --'
13432 as_echo_n='print -rn --'
13433elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13434 as_echo='printf %s\n'
13435 as_echo_n='printf %s'
13436else
13437 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13438 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13439 as_echo_n='/usr/ucb/echo -n'
13440 else
13441 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13442 as_echo_n_body='eval
13443 arg=$1;
13444 case $arg in #(
13445 *"$as_nl"*)
13446 expr "X$arg" : "X\\(.*\\)$as_nl";
13447 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13448 esac;
13449 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13450 '
13451 export as_echo_n_body
13452 as_echo_n='sh -c $as_echo_n_body as_echo'
13453 fi
13454 export as_echo_body
13455 as_echo='sh -c $as_echo_body as_echo'
13456fi
13457
13458# The user is always right.
13459if test "${PATH_SEPARATOR+set}" != set; then
13460 PATH_SEPARATOR=:
13461 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13462 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13463 PATH_SEPARATOR=';'
13464 }
13465fi
13466
13467
13468# IFS
13469# We need space, tab and new line, in precisely that order. Quoting is
13470# there to prevent editors from complaining about space-tab.
13471# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13472# splitting by setting IFS to empty value.)
13473IFS=" "" $as_nl"
13474
13475# Find who we are. Look in the path if we contain no directory separator.
13476as_myself=
13477case $0 in #((
13478 *[\\/]* ) as_myself=$0 ;;
13479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480for as_dir in $PATH
13481do
13482 IFS=$as_save_IFS
13483 test -z "$as_dir" && as_dir=.
13484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13485 done
13486IFS=$as_save_IFS
13487
13488 ;;
13489esac
13490# We did not find ourselves, most probably we were run as `sh COMMAND'
13491# in which case we are not to be found in the path.
13492if test "x$as_myself" = x; then
13493 as_myself=$0
13494fi
13495if test ! -f "$as_myself"; then
13496 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13497 exit 1
13498fi
13499
13500# Unset variables that we do not need and which cause bugs (e.g. in
13501# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13502# suppresses any "Segmentation fault" message there. '((' could
13503# trigger a bug in pdksh 5.2.14.
13504for as_var in BASH_ENV ENV MAIL MAILPATH
13505do eval test x\${$as_var+set} = xset \
13506 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13507done
13508PS1='$ '
13509PS2='> '
13510PS4='+ '
13511
13512# NLS nuisances.
13513LC_ALL=C
13514export LC_ALL
13515LANGUAGE=C
13516export LANGUAGE
13517
13518# CDPATH.
13519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13520
13521
13522# as_fn_error STATUS ERROR [LINENO LOG_FD]
13523# ----------------------------------------
13524# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13525# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13526# script with STATUS, using 1 if that was 0.
13527as_fn_error ()
13528{
13529 as_status=$1; test $as_status -eq 0 && as_status=1
13530 if test "$4"; then
13531 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13532 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13533 fi
13534 $as_echo "$as_me: error: $2" >&2
13535 as_fn_exit $as_status
13536} # as_fn_error
13537
13538
13539# as_fn_set_status STATUS
13540# -----------------------
13541# Set $? to STATUS, without forking.
13542as_fn_set_status ()
13543{
13544 return $1
13545} # as_fn_set_status
13546
13547# as_fn_exit STATUS
13548# -----------------
13549# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13550as_fn_exit ()
13551{
13552 set +e
13553 as_fn_set_status $1
13554 exit $1
13555} # as_fn_exit
13556
13557# as_fn_unset VAR
13558# ---------------
13559# Portably unset VAR.
13560as_fn_unset ()
13561{
13562 { eval $1=; unset $1;}
13563}
13564as_unset=as_fn_unset
13565# as_fn_append VAR VALUE
13566# ----------------------
13567# Append the text in VALUE to the end of the definition contained in VAR. Take
13568# advantage of any shell optimizations that allow amortized linear growth over
13569# repeated appends, instead of the typical quadratic growth present in naive
13570# implementations.
13571if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13572 eval 'as_fn_append ()
13573 {
13574 eval $1+=\$2
13575 }'
13576else
13577 as_fn_append ()
13578 {
13579 eval $1=\$$1\$2
13580 }
13581fi # as_fn_append
13582
13583# as_fn_arith ARG...
13584# ------------------
13585# Perform arithmetic evaluation on the ARGs, and store the result in the
13586# global $as_val. Take advantage of shells that can avoid forks. The arguments
13587# must be portable across $(()) and expr.
13588if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13589 eval 'as_fn_arith ()
13590 {
13591 as_val=$(( $* ))
13592 }'
13593else
13594 as_fn_arith ()
13595 {
13596 as_val=`expr "$@" || test $? -eq 1`
13597 }
13598fi # as_fn_arith
13599
13600
13601if expr a : '\(a\)' >/dev/null 2>&1 &&
13602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13603 as_expr=expr
13604else
13605 as_expr=false
13606fi
13607
13608if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13609 as_basename=basename
13610else
13611 as_basename=false
13612fi
13613
13614if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13615 as_dirname=dirname
13616else
13617 as_dirname=false
13618fi
13619
13620as_me=`$as_basename -- "$0" ||
13621$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13622 X"$0" : 'X\(//\)$' \| \
13623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13624$as_echo X/"$0" |
13625 sed '/^.*\/\([^/][^/]*\)\/*$/{
13626 s//\1/
13627 q
13628 }
13629 /^X\/\(\/\/\)$/{
13630 s//\1/
13631 q
13632 }
13633 /^X\/\(\/\).*/{
13634 s//\1/
13635 q
13636 }
13637 s/.*/./; q'`
13638
13639# Avoid depending upon Character Ranges.
13640as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13641as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13642as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13643as_cr_digits='0123456789'
13644as_cr_alnum=$as_cr_Letters$as_cr_digits
13645
13646ECHO_C= ECHO_N= ECHO_T=
13647case `echo -n x` in #(((((
13648-n*)
13649 case `echo 'xy\c'` in
13650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13651 xy) ECHO_C='\c';;
13652 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13653 ECHO_T=' ';;
13654 esac;;
13655*)
13656 ECHO_N='-n';;
13657esac
13658
13659rm -f conf$$ conf$$.exe conf$$.file
13660if test -d conf$$.dir; then
13661 rm -f conf$$.dir/conf$$.file
13662else
13663 rm -f conf$$.dir
13664 mkdir conf$$.dir 2>/dev/null
13665fi
13666if (echo >conf$$.file) 2>/dev/null; then
13667 if ln -s conf$$.file conf$$ 2>/dev/null; then
13668 as_ln_s='ln -s'
13669 # ... but there are two gotchas:
13670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13672 # In both cases, we have to default to `cp -pR'.
13673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13674 as_ln_s='cp -pR'
13675 elif ln conf$$.file conf$$ 2>/dev/null; then
13676 as_ln_s=ln
13677 else
13678 as_ln_s='cp -pR'
13679 fi
13680else
13681 as_ln_s='cp -pR'
13682fi
13683rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13684rmdir conf$$.dir 2>/dev/null
13685
13686
13687# as_fn_mkdir_p
13688# -------------
13689# Create "$as_dir" as a directory, including parents if necessary.
13690as_fn_mkdir_p ()
13691{
13692
13693 case $as_dir in #(
13694 -*) as_dir=./$as_dir;;
13695 esac
13696 test -d "$as_dir" || eval $as_mkdir_p || {
13697 as_dirs=
13698 while :; do
13699 case $as_dir in #(
13700 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13701 *) as_qdir=$as_dir;;
13702 esac
13703 as_dirs="'$as_qdir' $as_dirs"
13704 as_dir=`$as_dirname -- "$as_dir" ||
13705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706 X"$as_dir" : 'X\(//\)[^/]' \| \
13707 X"$as_dir" : 'X\(//\)$' \| \
13708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13709$as_echo X"$as_dir" |
13710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13711 s//\1/
13712 q
13713 }
13714 /^X\(\/\/\)[^/].*/{
13715 s//\1/
13716 q
13717 }
13718 /^X\(\/\/\)$/{
13719 s//\1/
13720 q
13721 }
13722 /^X\(\/\).*/{
13723 s//\1/
13724 q
13725 }
13726 s/.*/./; q'`
13727 test -d "$as_dir" && break
13728 done
13729 test -z "$as_dirs" || eval "mkdir $as_dirs"
13730 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13731
13732
13733} # as_fn_mkdir_p
13734if mkdir -p . 2>/dev/null; then
13735 as_mkdir_p='mkdir -p "$as_dir"'
13736else
13737 test -d ./-p && rmdir ./-p
13738 as_mkdir_p=false
13739fi
13740
13741
13742# as_fn_executable_p FILE
13743# -----------------------
13744# Test if FILE is an executable regular file.
13745as_fn_executable_p ()
13746{
13747 test -f "$1" && test -x "$1"
13748} # as_fn_executable_p
13749as_test_x='test -x'
13750as_executable_p=as_fn_executable_p
13751
13752# Sed expression to map a string onto a valid CPP name.
13753as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13754
13755# Sed expression to map a string onto a valid variable name.
13756as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13757
13758
13759exec 6>&1
13760## ----------------------------------- ##
13761## Main body of $CONFIG_STATUS script. ##
13762## ----------------------------------- ##
13763_ASEOF
13764test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13765
13766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13767# Save the log message, to keep $0 and so on meaningful, and to
13768# report actual input values of CONFIG_FILES etc. instead of their
13769# values after options handling.
13770ac_log="
13771This file was extended by random128 $as_me 0.10, which was
13772generated by GNU Autoconf 2.69. Invocation command line was
13773
13774 CONFIG_FILES = $CONFIG_FILES
13775 CONFIG_HEADERS = $CONFIG_HEADERS
13776 CONFIG_LINKS = $CONFIG_LINKS
13777 CONFIG_COMMANDS = $CONFIG_COMMANDS
13778 $ $0 $@
13779
13780on `(hostname || uname -n) 2>/dev/null | sed 1q`
13781"
13782
13783_ACEOF
13784
13785case $ac_config_files in *"
13786"*) set x $ac_config_files; shift; ac_config_files=$*;;
13787esac
13788
13789case $ac_config_headers in *"
13790"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13791esac
13792
13793
13794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13795# Files that config.status was made for.
13796config_files="$ac_config_files"
13797config_headers="$ac_config_headers"
13798config_commands="$ac_config_commands"
13799
13800_ACEOF
13801
13802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13803ac_cs_usage="\
13804\`$as_me' instantiates files and other configuration actions
13805from templates according to the current configuration. Unless the files
13806and actions are specified as TAGs, all are instantiated by default.
13807
13808Usage: $0 [OPTION]... [TAG]...
13809
13810 -h, --help print this help, then exit
13811 -V, --version print version number and configuration settings, then exit
13812 --config print configuration, then exit
13813 -q, --quiet, --silent
13814 do not print progress messages
13815 -d, --debug don't remove temporary files
13816 --recheck update $as_me by reconfiguring in the same conditions
13817 --file=FILE[:TEMPLATE]
13818 instantiate the configuration file FILE
13819 --header=FILE[:TEMPLATE]
13820 instantiate the configuration header FILE
13821
13822Configuration files:
13823$config_files
13824
13825Configuration headers:
13826$config_headers
13827
13828Configuration commands:
13829$config_commands
13830
13831Report bugs to <courier-users@lists.sourceforge.net>."
13832
13833_ACEOF
13834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13835ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13836ac_cs_version="\\
13837random128 config.status 0.10
13838configured by $0, generated by GNU Autoconf 2.69,
13839 with options \\"\$ac_cs_config\\"
13840
13841Copyright (C) 2012 Free Software Foundation, Inc.
13842This config.status script is free software; the Free Software Foundation
13843gives unlimited permission to copy, distribute and modify it."
13844
13845ac_pwd='$ac_pwd'
13846srcdir='$srcdir'
13847INSTALL='$INSTALL'
13848MKDIR_P='$MKDIR_P'
13849AWK='$AWK'
13850test -n "\$AWK" || AWK=awk
13851_ACEOF
13852
13853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854# The default lists apply if the user does not specify any file.
13855ac_need_defaults=:
13856while test $# != 0
13857do
13858 case $1 in
13859 --*=?*)
13860 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13862 ac_shift=:
13863 ;;
13864 --*=)
13865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13866 ac_optarg=
13867 ac_shift=:
13868 ;;
13869 *)
13870 ac_option=$1
13871 ac_optarg=$2
13872 ac_shift=shift
13873 ;;
13874 esac
13875
13876 case $ac_option in
13877 # Handling of the options.
13878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13879 ac_cs_recheck=: ;;
13880 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13881 $as_echo "$ac_cs_version"; exit ;;
13882 --config | --confi | --conf | --con | --co | --c )
13883 $as_echo "$ac_cs_config"; exit ;;
13884 --debug | --debu | --deb | --de | --d | -d )
13885 debug=: ;;
13886 --file | --fil | --fi | --f )
13887 $ac_shift
13888 case $ac_optarg in
13889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13890 '') as_fn_error $? "missing file argument" ;;
13891 esac
13892 as_fn_append CONFIG_FILES " '$ac_optarg'"
13893 ac_need_defaults=false;;
13894 --header | --heade | --head | --hea )
13895 $ac_shift
13896 case $ac_optarg in
13897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13898 esac
13899 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13900 ac_need_defaults=false;;
13901 --he | --h)
13902 # Conflict between --help and --header
13903 as_fn_error $? "ambiguous option: \`$1'
13904Try \`$0 --help' for more information.";;
13905 --help | --hel | -h )
13906 $as_echo "$ac_cs_usage"; exit ;;
13907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13909 ac_cs_silent=: ;;
13910
13911 # This is an error.
13912 -*) as_fn_error $? "unrecognized option: \`$1'
13913Try \`$0 --help' for more information." ;;
13914
13915 *) as_fn_append ac_config_targets " $1"
13916 ac_need_defaults=false ;;
13917
13918 esac
13919 shift
13920done
13921
13922ac_configure_extra_args=
13923
13924if $ac_cs_silent; then
13925 exec 6>/dev/null
13926 ac_configure_extra_args="$ac_configure_extra_args --silent"
13927fi
13928
13929_ACEOF
13930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13931if \$ac_cs_recheck; then
13932 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13933 shift
13934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13935 CONFIG_SHELL='$SHELL'
13936 export CONFIG_SHELL
13937 exec "\$@"
13938fi
13939
13940_ACEOF
13941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942exec 5>>config.log
13943{
13944 echo
13945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13946## Running $as_me. ##
13947_ASBOX
13948 $as_echo "$ac_log"
13949} >&5
13950
13951_ACEOF
13952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13953#
13954# INIT-COMMANDS
13955#
13956AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13957
13958
13959# The HP-UX ksh and POSIX shell print the target directory to stdout
13960# if CDPATH is set.
13961(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13962
13963sed_quote_subst='$sed_quote_subst'
13964double_quote_subst='$double_quote_subst'
13965delay_variable_subst='$delay_variable_subst'
13966macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13967macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13968enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13969enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13970pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13971enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13972shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13973SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13974ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13975PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13976host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13977host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13978host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13979build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13980build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13981build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13982SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13983Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13984GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13985EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13986FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13987LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13988NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13989LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13990max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13991ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13992exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13993lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13994lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13995lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13996lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13997lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13998reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13999reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14000OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14001deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14002file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14003file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14004want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14005DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14006sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14007AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14008AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14009archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14010STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14011RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14012old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14013old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14014old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14015lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14016CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14017CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14018compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14019GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14020lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14021lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14022lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14023lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14024lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14025lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14026nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14027lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14028lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14029objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14030MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14031lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14032lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14033lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14034lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14035lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14036need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14037MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14038DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14039NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14040LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14041OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14042OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14043libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14044shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14045extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14046archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14047enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14048export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14049whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14050compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14051old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14052old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14053archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14054archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14055module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14056module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14057with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14058allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14059no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14060hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14061hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14062hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14063hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14064hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14065hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14066hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14067inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14068link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14069always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14070export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14071exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14072include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14073prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14074postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14075file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14076variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14077need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14078need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14079version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14080runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14081shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14082shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14083libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14084library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14085soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14086install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14087postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14088postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14089finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14090finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14091hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14092sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14093configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14094configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14095hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14096enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14097enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14098enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14099old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14100striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14101
14102LTCC='$LTCC'
14103LTCFLAGS='$LTCFLAGS'
14104compiler='$compiler_DEFAULT'
14105
14106# A function that is used when there is no print builtin or printf.
14107func_fallback_echo ()
14108{
14109 eval 'cat <<_LTECHO_EOF
14110\$1
14111_LTECHO_EOF'
14112}
14113
14114# Quote evaled strings.
14115for var in SHELL \
14116ECHO \
14117PATH_SEPARATOR \
14118SED \
14119GREP \
14120EGREP \
14121FGREP \
14122LD \
14123NM \
14124LN_S \
14125lt_SP2NL \
14126lt_NL2SP \
14127reload_flag \
14128OBJDUMP \
14129deplibs_check_method \
14130file_magic_cmd \
14131file_magic_glob \
14132want_nocaseglob \
14133DLLTOOL \
14134sharedlib_from_linklib_cmd \
14135AR \
14136AR_FLAGS \
14137archiver_list_spec \
14138STRIP \
14139RANLIB \
14140CC \
14141CFLAGS \
14142compiler \
14143lt_cv_sys_global_symbol_pipe \
14144lt_cv_sys_global_symbol_to_cdecl \
14145lt_cv_sys_global_symbol_to_import \
14146lt_cv_sys_global_symbol_to_c_name_address \
14147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14148lt_cv_nm_interface \
14149nm_file_list_spec \
14150lt_cv_truncate_bin \
14151lt_prog_compiler_no_builtin_flag \
14152lt_prog_compiler_pic \
14153lt_prog_compiler_wl \
14154lt_prog_compiler_static \
14155lt_cv_prog_compiler_c_o \
14156need_locks \
14157MANIFEST_TOOL \
14158DSYMUTIL \
14159NMEDIT \
14160LIPO \
14161OTOOL \
14162OTOOL64 \
14163shrext_cmds \
14164export_dynamic_flag_spec \
14165whole_archive_flag_spec \
14166compiler_needs_object \
14167with_gnu_ld \
14168allow_undefined_flag \
14169no_undefined_flag \
14170hardcode_libdir_flag_spec \
14171hardcode_libdir_separator \
14172exclude_expsyms \
14173include_expsyms \
14174file_list_spec \
14175variables_saved_for_relink \
14176libname_spec \
14177library_names_spec \
14178soname_spec \
14179install_override_mode \
14180finish_eval \
14181old_striplib \
14182striplib; do
14183 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14184 *[\\\\\\\`\\"\\\$]*)
14185 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14186 ;;
14187 *)
14188 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14189 ;;
14190 esac
14191done
14192
14193# Double-quote double-evaled strings.
14194for var in reload_cmds \
14195old_postinstall_cmds \
14196old_postuninstall_cmds \
14197old_archive_cmds \
14198extract_expsyms_cmds \
14199old_archive_from_new_cmds \
14200old_archive_from_expsyms_cmds \
14201archive_cmds \
14202archive_expsym_cmds \
14203module_cmds \
14204module_expsym_cmds \
14205export_symbols_cmds \
14206prelink_cmds \
14207postlink_cmds \
14208postinstall_cmds \
14209postuninstall_cmds \
14210finish_cmds \
14211sys_lib_search_path_spec \
14212configure_time_dlsearch_path \
14213configure_time_lt_sys_library_path; do
14214 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14215 *[\\\\\\\`\\"\\\$]*)
14216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14217 ;;
14218 *)
14219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14220 ;;
14221 esac
14222done
14223
14224ac_aux_dir='$ac_aux_dir'
14225
14226# See if we are running on zsh, and set the options that allow our
14227# commands through without removal of \ escapes INIT.
14228if test -n "\${ZSH_VERSION+set}"; then
14229 setopt NO_GLOB_SUBST
14230fi
14231
14232
14233 PACKAGE='$PACKAGE'
14234 VERSION='$VERSION'
14235 RM='$RM'
14236 ofile='$ofile'
14237
14238
14239
14240
14241_ACEOF
14242
14243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244
14245# Handling of arguments.
14246for ac_config_target in $ac_config_targets
14247do
14248 case $ac_config_target in
14249 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14251 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14253
14254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14255 esac
14256done
14257
14258
14259# If the user did not use the arguments to specify the items to instantiate,
14260# then the envvar interface is used. Set only those that are not.
14261# We use the long form for the default assignment because of an extremely
14262# bizarre bug on SunOS 4.1.3.
14263if $ac_need_defaults; then
14264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14267fi
14268
14269# Have a temporary directory for convenience. Make it in the build tree
14270# simply because there is no reason against having it here, and in addition,
14271# creating and moving files from /tmp can sometimes cause problems.
14272# Hook for its removal unless debugging.
14273# Note that there is a small window in which the directory will not be cleaned:
14274# after its creation but before its name has been assigned to `$tmp'.
14275$debug ||
14276{
14277 tmp= ac_tmp=
14278 trap 'exit_status=$?
14279 : "${ac_tmp:=$tmp}"
14280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14281' 0
14282 trap 'as_fn_exit 1' 1 2 13 15
14283}
14284# Create a (secure) tmp directory for tmp files.
14285
14286{
14287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14288 test -d "$tmp"
14289} ||
14290{
14291 tmp=./conf$$-$RANDOM
14292 (umask 077 && mkdir "$tmp")
14293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14294ac_tmp=$tmp
14295
14296# Set up the scripts for CONFIG_FILES section.
14297# No need to generate them if there are no CONFIG_FILES.
14298# This happens for instance with `./config.status config.h'.
14299if test -n "$CONFIG_FILES"; then
14300
14301
14302ac_cr=`echo X | tr X '\015'`
14303# On cygwin, bash can eat \r inside `` if the user requested igncr.
14304# But we know of no other shell where ac_cr would be empty at this
14305# point, so we can use a bashism as a fallback.
14306if test "x$ac_cr" = x; then
14307 eval ac_cr=\$\'\\r\'
14308fi
14309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14311 ac_cs_awk_cr='\\r'
14312else
14313 ac_cs_awk_cr=$ac_cr
14314fi
14315
14316echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14317_ACEOF
14318
14319
14320{
14321 echo "cat >conf$$subs.awk <<_ACEOF" &&
14322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14323 echo "_ACEOF"
14324} >conf$$subs.sh ||
14325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14327ac_delim='%!_!# '
14328for ac_last_try in false false false false false :; do
14329 . ./conf$$subs.sh ||
14330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14331
14332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14333 if test $ac_delim_n = $ac_delim_num; then
14334 break
14335 elif $ac_last_try; then
14336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14337 else
14338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14339 fi
14340done
14341rm -f conf$$subs.sh
14342
14343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14345_ACEOF
14346sed -n '
14347h
14348s/^/S["/; s/!.*/"]=/
14349p
14350g
14351s/^[^!]*!//
14352:repl
14353t repl
14354s/'"$ac_delim"'$//
14355t delim
14356:nl
14357h
14358s/\(.\{148\}\)..*/\1/
14359t more1
14360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14361p
14362n
14363b repl
14364:more1
14365s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14366p
14367g
14368s/.\{148\}//
14369t nl
14370:delim
14371h
14372s/\(.\{148\}\)..*/\1/
14373t more2
14374s/["\\]/\\&/g; s/^/"/; s/$/"/
14375p
14376b
14377:more2
14378s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14379p
14380g
14381s/.\{148\}//
14382t delim
14383' <conf$$subs.awk | sed '
14384/^[^""]/{
14385 N
14386 s/\n//
14387}
14388' >>$CONFIG_STATUS || ac_write_fail=1
14389rm -f conf$$subs.awk
14390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14391_ACAWK
14392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14393 for (key in S) S_is_set[key] = 1
14394 FS = "\a"
14395
14396}
14397{
14398 line = $ 0
14399 nfields = split(line, field, "@")
14400 substed = 0
14401 len = length(field[1])
14402 for (i = 2; i < nfields; i++) {
14403 key = field[i]
14404 keylen = length(key)
14405 if (S_is_set[key]) {
14406 value = S[key]
14407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14408 len += length(value) + length(field[++i])
14409 substed = 1
14410 } else
14411 len += 1 + keylen
14412 }
14413
14414 print line
14415}
14416
14417_ACAWK
14418_ACEOF
14419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14422else
14423 cat
14424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14426_ACEOF
14427
14428# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14430# trailing colons and then remove the whole line if VPATH becomes empty
14431# (actually we leave an empty line to preserve line numbers).
14432if test "x$srcdir" = x.; then
14433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14434h
14435s///
14436s/^/:/
14437s/[ ]*$/:/
14438s/:\$(srcdir):/:/g
14439s/:\${srcdir}:/:/g
14440s/:@srcdir@:/:/g
14441s/^:*//
14442s/:*$//
14443x
14444s/\(=[ ]*\).*/\1/
14445G
14446s/\n//
14447s/^[^=]*=[ ]*$//
14448}'
14449fi
14450
14451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452fi # test -n "$CONFIG_FILES"
14453
14454# Set up the scripts for CONFIG_HEADERS section.
14455# No need to generate them if there are no CONFIG_HEADERS.
14456# This happens for instance with `./config.status Makefile'.
14457if test -n "$CONFIG_HEADERS"; then
14458cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14459BEGIN {
14460_ACEOF
14461
14462# Transform confdefs.h into an awk script `defines.awk', embedded as
14463# here-document in config.status, that substitutes the proper values into
14464# config.h.in to produce config.h.
14465
14466# Create a delimiter string that does not exist in confdefs.h, to ease
14467# handling of long lines.
14468ac_delim='%!_!# '
14469for ac_last_try in false false :; do
14470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14471 if test -z "$ac_tt"; then
14472 break
14473 elif $ac_last_try; then
14474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14475 else
14476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14477 fi
14478done
14479
14480# For the awk script, D is an array of macro values keyed by name,
14481# likewise P contains macro parameters if any. Preserve backslash
14482# newline sequences.
14483
14484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14485sed -n '
14486s/.\{148\}/&'"$ac_delim"'/g
14487t rset
14488:rset
14489s/^[ ]*#[ ]*define[ ][ ]*/ /
14490t def
14491d
14492:def
14493s/\\$//
14494t bsnl
14495s/["\\]/\\&/g
14496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14497D["\1"]=" \3"/p
14498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14499d
14500:bsnl
14501s/["\\]/\\&/g
14502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14503D["\1"]=" \3\\\\\\n"\\/p
14504t cont
14505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14506t cont
14507d
14508:cont
14509n
14510s/.\{148\}/&'"$ac_delim"'/g
14511t clear
14512:clear
14513s/\\$//
14514t bsnlc
14515s/["\\]/\\&/g; s/^/"/; s/$/"/p
14516d
14517:bsnlc
14518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14519b cont
14520' <confdefs.h | sed '
14521s/'"$ac_delim"'/"\\\
14522"/g' >>$CONFIG_STATUS || ac_write_fail=1
14523
14524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525 for (key in D) D_is_set[key] = 1
14526 FS = "\a"
14527}
14528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14529 line = \$ 0
14530 split(line, arg, " ")
14531 if (arg[1] == "#") {
14532 defundef = arg[2]
14533 mac1 = arg[3]
14534 } else {
14535 defundef = substr(arg[1], 2)
14536 mac1 = arg[2]
14537 }
14538 split(mac1, mac2, "(") #)
14539 macro = mac2[1]
14540 prefix = substr(line, 1, index(line, defundef) - 1)
14541 if (D_is_set[macro]) {
14542 # Preserve the white space surrounding the "#".
14543 print prefix "define", macro P[macro] D[macro]
14544 next
14545 } else {
14546 # Replace #undef with comments. This is necessary, for example,
14547 # in the case of _POSIX_SOURCE, which is predefined and required
14548 # on some systems where configure will not decide to define it.
14549 if (defundef == "undef") {
14550 print "/*", prefix defundef, macro, "*/"
14551 next
14552 }
14553 }
14554}
14555{ print }
14556_ACAWK
14557_ACEOF
14558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14560fi # test -n "$CONFIG_HEADERS"
14561
14562
14563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14564shift
14565for ac_tag
14566do
14567 case $ac_tag in
14568 :[FHLC]) ac_mode=$ac_tag; continue;;
14569 esac
14570 case $ac_mode$ac_tag in
14571 :[FHL]*:*);;
14572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14573 :[FH]-) ac_tag=-:-;;
14574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14575 esac
14576 ac_save_IFS=$IFS
14577 IFS=:
14578 set x $ac_tag
14579 IFS=$ac_save_IFS
14580 shift
14581 ac_file=$1
14582 shift
14583
14584 case $ac_mode in
14585 :L) ac_source=$1;;
14586 :[FH])
14587 ac_file_inputs=
14588 for ac_f
14589 do
14590 case $ac_f in
14591 -) ac_f="$ac_tmp/stdin";;
14592 *) # Look for the file first in the build tree, then in the source tree
14593 # (if the path is not absolute). The absolute path cannot be DOS-style,
14594 # because $ac_f cannot contain `:'.
14595 test -f "$ac_f" ||
14596 case $ac_f in
14597 [\\/$]*) false;;
14598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14599 esac ||
14600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14601 esac
14602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14603 as_fn_append ac_file_inputs " '$ac_f'"
14604 done
14605
14606 # Let's still pretend it is `configure' which instantiates (i.e., don't
14607 # use $as_me), people would be surprised to read:
14608 # /* config.h. Generated by config.status. */
14609 configure_input='Generated from '`
14610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14611 `' by configure.'
14612 if test x"$ac_file" != x-; then
14613 configure_input="$ac_file. $configure_input"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14615$as_echo "$as_me: creating $ac_file" >&6;}
14616 fi
14617 # Neutralize special characters interpreted by sed in replacement strings.
14618 case $configure_input in #(
14619 *\&* | *\|* | *\\* )
14620 ac_sed_conf_input=`$as_echo "$configure_input" |
14621 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14622 *) ac_sed_conf_input=$configure_input;;
14623 esac
14624
14625 case $ac_tag in
14626 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14628 esac
14629 ;;
14630 esac
14631
14632 ac_dir=`$as_dirname -- "$ac_file" ||
14633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14634 X"$ac_file" : 'X\(//\)[^/]' \| \
14635 X"$ac_file" : 'X\(//\)$' \| \
14636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14637$as_echo X"$ac_file" |
14638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\(\/\/\)[^/].*/{
14643 s//\1/
14644 q
14645 }
14646 /^X\(\/\/\)$/{
14647 s//\1/
14648 q
14649 }
14650 /^X\(\/\).*/{
14651 s//\1/
14652 q
14653 }
14654 s/.*/./; q'`
14655 as_dir="$ac_dir"; as_fn_mkdir_p
14656 ac_builddir=.
14657
14658case "$ac_dir" in
14659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14660*)
14661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14662 # A ".." for each directory in $ac_dir_suffix.
14663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14664 case $ac_top_builddir_sub in
14665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14667 esac ;;
14668esac
14669ac_abs_top_builddir=$ac_pwd
14670ac_abs_builddir=$ac_pwd$ac_dir_suffix
14671# for backward compatibility:
14672ac_top_builddir=$ac_top_build_prefix
14673
14674case $srcdir in
14675 .) # We are building in place.
14676 ac_srcdir=.
14677 ac_top_srcdir=$ac_top_builddir_sub
14678 ac_abs_top_srcdir=$ac_pwd ;;
14679 [\\/]* | ?:[\\/]* ) # Absolute name.
14680 ac_srcdir=$srcdir$ac_dir_suffix;
14681 ac_top_srcdir=$srcdir
14682 ac_abs_top_srcdir=$srcdir ;;
14683 *) # Relative name.
14684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14685 ac_top_srcdir=$ac_top_build_prefix$srcdir
14686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14687esac
14688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14689
14690
14691 case $ac_mode in
14692 :F)
14693 #
14694 # CONFIG_FILE
14695 #
14696
14697 case $INSTALL in
14698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14700 esac
14701 ac_MKDIR_P=$MKDIR_P
14702 case $MKDIR_P in
14703 [\\/$]* | ?:[\\/]* ) ;;
14704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14705 esac
14706_ACEOF
14707
14708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14709# If the template does not know about datarootdir, expand it.
14710# FIXME: This hack should be removed a few years after 2.60.
14711ac_datarootdir_hack=; ac_datarootdir_seen=
14712ac_sed_dataroot='
14713/datarootdir/ {
14714 p
14715 q
14716}
14717/@datadir@/p
14718/@docdir@/p
14719/@infodir@/p
14720/@localedir@/p
14721/@mandir@/p'
14722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14723*datarootdir*) ac_datarootdir_seen=yes;;
14724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14727_ACEOF
14728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729 ac_datarootdir_hack='
14730 s&@datadir@&$datadir&g
14731 s&@docdir@&$docdir&g
14732 s&@infodir@&$infodir&g
14733 s&@localedir@&$localedir&g
14734 s&@mandir@&$mandir&g
14735 s&\\\${datarootdir}&$datarootdir&g' ;;
14736esac
14737_ACEOF
14738
14739# Neutralize VPATH when `$srcdir' = `.'.
14740# Shell code in configure.ac might set extrasub.
14741# FIXME: do we really want to maintain this feature?
14742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743ac_sed_extra="$ac_vpsub
14744$extrasub
14745_ACEOF
14746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14747:t
14748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14749s|@configure_input@|$ac_sed_conf_input|;t t
14750s&@top_builddir@&$ac_top_builddir_sub&;t t
14751s&@top_build_prefix@&$ac_top_build_prefix&;t t
14752s&@srcdir@&$ac_srcdir&;t t
14753s&@abs_srcdir@&$ac_abs_srcdir&;t t
14754s&@top_srcdir@&$ac_top_srcdir&;t t
14755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14756s&@builddir@&$ac_builddir&;t t
14757s&@abs_builddir@&$ac_abs_builddir&;t t
14758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14759s&@INSTALL@&$ac_INSTALL&;t t
14760s&@MKDIR_P@&$ac_MKDIR_P&;t t
14761$ac_datarootdir_hack
14762"
14763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14765
14766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14769 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14771which seems to be undefined. Please make sure it is defined" >&5
14772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14773which seems to be undefined. Please make sure it is defined" >&2;}
14774
14775 rm -f "$ac_tmp/stdin"
14776 case $ac_file in
14777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14779 esac \
14780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14781 ;;
14782 :H)
14783 #
14784 # CONFIG_HEADER
14785 #
14786 if test x"$ac_file" != x-; then
14787 {
14788 $as_echo "/* $configure_input */" \
14789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14790 } >"$ac_tmp/config.h" \
14791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14794$as_echo "$as_me: $ac_file is unchanged" >&6;}
14795 else
14796 rm -f "$ac_file"
14797 mv "$ac_tmp/config.h" "$ac_file" \
14798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14799 fi
14800 else
14801 $as_echo "/* $configure_input */" \
14802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14803 || as_fn_error $? "could not create -" "$LINENO" 5
14804 fi
14805# Compute "$ac_file"'s index in $config_headers.
14806_am_arg="$ac_file"
14807_am_stamp_count=1
14808for _am_header in $config_headers :; do
14809 case $_am_header in
14810 $_am_arg | $_am_arg:* )
14811 break ;;
14812 * )
14813 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14814 esac
14815done
14816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14818 X"$_am_arg" : 'X\(//\)[^/]' \| \
14819 X"$_am_arg" : 'X\(//\)$' \| \
14820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14821$as_echo X"$_am_arg" |
14822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14823 s//\1/
14824 q
14825 }
14826 /^X\(\/\/\)[^/].*/{
14827 s//\1/
14828 q
14829 }
14830 /^X\(\/\/\)$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\).*/{
14835 s//\1/
14836 q
14837 }
14838 s/.*/./; q'`/stamp-h$_am_stamp_count
14839 ;;
14840
14841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14842$as_echo "$as_me: executing $ac_file commands" >&6;}
14843 ;;
14844 esac
14845
14846
14847 case $ac_file$ac_mode in
14848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14849 # Older Autoconf quotes --file arguments for eval, but not when files
14850 # are listed without --file. Let's play safe and only enable the eval
14851 # if we detect the quoting.
14852 case $CONFIG_FILES in
14853 *\'*) eval set x "$CONFIG_FILES" ;;
14854 *) set x $CONFIG_FILES ;;
14855 esac
14856 shift
14857 for mf
14858 do
14859 # Strip MF so we end up with the name of the file.
14860 mf=`echo "$mf" | sed -e 's/:.*$//'`
14861 # Check whether this is an Automake generated Makefile or not.
14862 # We used to match only the files named 'Makefile.in', but
14863 # some people rename them; so instead we look at the file content.
14864 # Grep'ing the first line is not enough: some people post-process
14865 # each Makefile.in and add a new line on top of each file to say so.
14866 # Grep'ing the whole file is not good either: AIX grep has a line
14867 # limit of 2048, but all sed's we know have understand at least 4000.
14868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14869 dirpart=`$as_dirname -- "$mf" ||
14870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871 X"$mf" : 'X\(//\)[^/]' \| \
14872 X"$mf" : 'X\(//\)$' \| \
14873 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14874$as_echo X"$mf" |
14875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14876 s//\1/
14877 q
14878 }
14879 /^X\(\/\/\)[^/].*/{
14880 s//\1/
14881 q
14882 }
14883 /^X\(\/\/\)$/{
14884 s//\1/
14885 q
14886 }
14887 /^X\(\/\).*/{
14888 s//\1/
14889 q
14890 }
14891 s/.*/./; q'`
14892 else
14893 continue
14894 fi
14895 # Extract the definition of DEPDIR, am__include, and am__quote
14896 # from the Makefile without running 'make'.
14897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14898 test -z "$DEPDIR" && continue
14899 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14900 test -z "$am__include" && continue
14901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14902 # Find all dependency output files, they are included files with
14903 # $(DEPDIR) in their names. We invoke sed twice because it is the
14904 # simplest approach to changing $(DEPDIR) to its actual value in the
14905 # expansion.
14906 for file in `sed -n "
14907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14909 # Make sure the directory exists.
14910 test -f "$dirpart/$file" && continue
14911 fdir=`$as_dirname -- "$file" ||
14912$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14913 X"$file" : 'X\(//\)[^/]' \| \
14914 X"$file" : 'X\(//\)$' \| \
14915 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14916$as_echo X"$file" |
14917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\/\)[^/].*/{
14922 s//\1/
14923 q
14924 }
14925 /^X\(\/\/\)$/{
14926 s//\1/
14927 q
14928 }
14929 /^X\(\/\).*/{
14930 s//\1/
14931 q
14932 }
14933 s/.*/./; q'`
14934 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14935 # echo "creating $dirpart/$file"
14936 echo '# dummy' > "$dirpart/$file"
14937 done
14938 done
14939}
14940 ;;
14941 "libtool":C)
14942
14943 # See if we are running on zsh, and set the options that allow our
14944 # commands through without removal of \ escapes.
14945 if test -n "${ZSH_VERSION+set}"; then
14946 setopt NO_GLOB_SUBST
14947 fi
14948
14949 cfgfile=${ofile}T
14950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14951 $RM "$cfgfile"
14952
14953 cat <<_LT_EOF >> "$cfgfile"
14954#! $SHELL
14955# Generated automatically by $as_me ($PACKAGE) $VERSION
14956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14957# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14958
14959# Provide generalized library-building support services.
14960# Written by Gordon Matzigkeit, 1996
14961
14962# Copyright (C) 2014 Free Software Foundation, Inc.
14963# This is free software; see the source for copying conditions. There is NO
14964# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14965
14966# GNU Libtool is free software; you can redistribute it and/or modify
14967# it under the terms of the GNU General Public License as published by
14968# the Free Software Foundation; either version 2 of of the License, or
14969# (at your option) any later version.
14970#
14971# As a special exception to the GNU General Public License, if you
14972# distribute this file as part of a program or library that is built
14973# using GNU Libtool, you may include this file under the same
14974# distribution terms that you use for the rest of that program.
14975#
14976# GNU Libtool is distributed in the hope that it will be useful, but
14977# WITHOUT ANY WARRANTY; without even the implied warranty of
14978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14979# GNU General Public License for more details.
14980#
14981# You should have received a copy of the GNU General Public License
14982# along with this program. If not, see <http://www.gnu.org/licenses/>.
14983
14984
14985# The names of the tagged configurations supported by this script.
14986available_tags=''
14987
14988# Configured defaults for sys_lib_dlsearch_path munging.
14989: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14990
14991# ### BEGIN LIBTOOL CONFIG
14992
14993# Which release of libtool.m4 was used?
14994macro_version=$macro_version
14995macro_revision=$macro_revision
14996
14997# Whether or not to build shared libraries.
14998build_libtool_libs=$enable_shared
14999
15000# Whether or not to build static libraries.
15001build_old_libs=$enable_static
15002
15003# What type of objects to build.
15004pic_mode=$pic_mode
15005
15006# Whether or not to optimize for fast installation.
15007fast_install=$enable_fast_install
15008
15009# Shared archive member basename,for filename based shared library versioning on AIX.
15010shared_archive_member_spec=$shared_archive_member_spec
15011
15012# Shell to use when invoking shell scripts.
15013SHELL=$lt_SHELL
15014
15015# An echo program that protects backslashes.
15016ECHO=$lt_ECHO
15017
15018# The PATH separator for the build system.
15019PATH_SEPARATOR=$lt_PATH_SEPARATOR
15020
15021# The host system.
15022host_alias=$host_alias
15023host=$host
15024host_os=$host_os
15025
15026# The build system.
15027build_alias=$build_alias
15028build=$build
15029build_os=$build_os
15030
15031# A sed program that does not truncate output.
15032SED=$lt_SED
15033
15034# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15035Xsed="\$SED -e 1s/^X//"
15036
15037# A grep program that handles long lines.
15038GREP=$lt_GREP
15039
15040# An ERE matcher.
15041EGREP=$lt_EGREP
15042
15043# A literal string matcher.
15044FGREP=$lt_FGREP
15045
15046# A BSD- or MS-compatible name lister.
15047NM=$lt_NM
15048
15049# Whether we need soft or hard links.
15050LN_S=$lt_LN_S
15051
15052# What is the maximum length of a command?
15053max_cmd_len=$max_cmd_len
15054
15055# Object file suffix (normally "o").
15056objext=$ac_objext
15057
15058# Executable file suffix (normally "").
15059exeext=$exeext
15060
15061# whether the shell understands "unset".
15062lt_unset=$lt_unset
15063
15064# turn spaces into newlines.
15065SP2NL=$lt_lt_SP2NL
15066
15067# turn newlines into spaces.
15068NL2SP=$lt_lt_NL2SP
15069
15070# convert \$build file names to \$host format.
15071to_host_file_cmd=$lt_cv_to_host_file_cmd
15072
15073# convert \$build files to toolchain format.
15074to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15075
15076# An object symbol dumper.
15077OBJDUMP=$lt_OBJDUMP
15078
15079# Method to check whether dependent libraries are shared objects.
15080deplibs_check_method=$lt_deplibs_check_method
15081
15082# Command to use when deplibs_check_method = "file_magic".
15083file_magic_cmd=$lt_file_magic_cmd
15084
15085# How to find potential files when deplibs_check_method = "file_magic".
15086file_magic_glob=$lt_file_magic_glob
15087
15088# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15089want_nocaseglob=$lt_want_nocaseglob
15090
15091# DLL creation program.
15092DLLTOOL=$lt_DLLTOOL
15093
15094# Command to associate shared and link libraries.
15095sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15096
15097# The archiver.
15098AR=$lt_AR
15099
15100# Flags to create an archive.
15101AR_FLAGS=$lt_AR_FLAGS
15102
15103# How to feed a file listing to the archiver.
15104archiver_list_spec=$lt_archiver_list_spec
15105
15106# A symbol stripping program.
15107STRIP=$lt_STRIP
15108
15109# Commands used to install an old-style archive.
15110RANLIB=$lt_RANLIB
15111old_postinstall_cmds=$lt_old_postinstall_cmds
15112old_postuninstall_cmds=$lt_old_postuninstall_cmds
15113
15114# Whether to use a lock for old archive extraction.
15115lock_old_archive_extraction=$lock_old_archive_extraction
15116
15117# A C compiler.
15118LTCC=$lt_CC
15119
15120# LTCC compiler flags.
15121LTCFLAGS=$lt_CFLAGS
15122
15123# Take the output of nm and produce a listing of raw symbols and C names.
15124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15125
15126# Transform the output of nm in a proper C declaration.
15127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15128
15129# Transform the output of nm into a list of symbols to manually relocate.
15130global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15131
15132# Transform the output of nm in a C name address pair.
15133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15134
15135# Transform the output of nm in a C name address pair when lib prefix is needed.
15136global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15137
15138# The name lister interface.
15139nm_interface=$lt_lt_cv_nm_interface
15140
15141# Specify filename containing input files for \$NM.
15142nm_file_list_spec=$lt_nm_file_list_spec
15143
15144# The root where to search for dependent libraries,and where our libraries should be installed.
15145lt_sysroot=$lt_sysroot
15146
15147# Command to truncate a binary pipe.
15148lt_truncate_bin=$lt_lt_cv_truncate_bin
15149
15150# The name of the directory that contains temporary libtool files.
15151objdir=$objdir
15152
15153# Used to examine libraries when file_magic_cmd begins with "file".
15154MAGIC_CMD=$MAGIC_CMD
15155
15156# Must we lock files when doing compilation?
15157need_locks=$lt_need_locks
15158
15159# Manifest tool.
15160MANIFEST_TOOL=$lt_MANIFEST_TOOL
15161
15162# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15163DSYMUTIL=$lt_DSYMUTIL
15164
15165# Tool to change global to local symbols on Mac OS X.
15166NMEDIT=$lt_NMEDIT
15167
15168# Tool to manipulate fat objects and archives on Mac OS X.
15169LIPO=$lt_LIPO
15170
15171# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15172OTOOL=$lt_OTOOL
15173
15174# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15175OTOOL64=$lt_OTOOL64
15176
15177# Old archive suffix (normally "a").
15178libext=$libext
15179
15180# Shared library suffix (normally ".so").
15181shrext_cmds=$lt_shrext_cmds
15182
15183# The commands to extract the exported symbol list from a shared archive.
15184extract_expsyms_cmds=$lt_extract_expsyms_cmds
15185
15186# Variables whose values should be saved in libtool wrapper scripts and
15187# restored at link time.
15188variables_saved_for_relink=$lt_variables_saved_for_relink
15189
15190# Do we need the "lib" prefix for modules?
15191need_lib_prefix=$need_lib_prefix
15192
15193# Do we need a version for libraries?
15194need_version=$need_version
15195
15196# Library versioning type.
15197version_type=$version_type
15198
15199# Shared library runtime path variable.
15200runpath_var=$runpath_var
15201
15202# Shared library path variable.
15203shlibpath_var=$shlibpath_var
15204
15205# Is shlibpath searched before the hard-coded library search path?
15206shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15207
15208# Format of library name prefix.
15209libname_spec=$lt_libname_spec
15210
15211# List of archive names. First name is the real one, the rest are links.
15212# The last name is the one that the linker finds with -lNAME
15213library_names_spec=$lt_library_names_spec
15214
15215# The coded name of the library, if different from the real name.
15216soname_spec=$lt_soname_spec
15217
15218# Permission mode override for installation of shared libraries.
15219install_override_mode=$lt_install_override_mode
15220
15221# Command to use after installation of a shared archive.
15222postinstall_cmds=$lt_postinstall_cmds
15223
15224# Command to use after uninstallation of a shared archive.
15225postuninstall_cmds=$lt_postuninstall_cmds
15226
15227# Commands used to finish a libtool library installation in a directory.
15228finish_cmds=$lt_finish_cmds
15229
15230# As "finish_cmds", except a single script fragment to be evaled but
15231# not shown.
15232finish_eval=$lt_finish_eval
15233
15234# Whether we should hardcode library paths into libraries.
15235hardcode_into_libs=$hardcode_into_libs
15236
15237# Compile-time system search path for libraries.
15238sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15239
15240# Detected run-time system search path for libraries.
15241sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15242
15243# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15244configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15245
15246# Whether dlopen is supported.
15247dlopen_support=$enable_dlopen
15248
15249# Whether dlopen of programs is supported.
15250dlopen_self=$enable_dlopen_self
15251
15252# Whether dlopen of statically linked programs is supported.
15253dlopen_self_static=$enable_dlopen_self_static
15254
15255# Commands to strip libraries.
15256old_striplib=$lt_old_striplib
15257striplib=$lt_striplib
15258
15259
15260# The linker used to build libraries.
15261LD=$lt_LD
15262
15263# How to create reloadable object files.
15264reload_flag=$lt_reload_flag
15265reload_cmds=$lt_reload_cmds
15266
15267# Commands used to build an old-style archive.
15268old_archive_cmds=$lt_old_archive_cmds
15269
15270# A language specific compiler.
15271CC=$lt_compiler
15272
15273# Is the compiler the GNU compiler?
15274with_gcc=$GCC
15275
15276# Compiler flag to turn off builtin functions.
15277no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15278
15279# Additional compiler flags for building library objects.
15280pic_flag=$lt_lt_prog_compiler_pic
15281
15282# How to pass a linker flag through the compiler.
15283wl=$lt_lt_prog_compiler_wl
15284
15285# Compiler flag to prevent dynamic linking.
15286link_static_flag=$lt_lt_prog_compiler_static
15287
15288# Does compiler simultaneously support -c and -o options?
15289compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15290
15291# Whether or not to add -lc for building shared libraries.
15292build_libtool_need_lc=$archive_cmds_need_lc
15293
15294# Whether or not to disallow shared libs when runtime libs are static.
15295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15296
15297# Compiler flag to allow reflexive dlopens.
15298export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15299
15300# Compiler flag to generate shared objects directly from archives.
15301whole_archive_flag_spec=$lt_whole_archive_flag_spec
15302
15303# Whether the compiler copes with passing no objects directly.
15304compiler_needs_object=$lt_compiler_needs_object
15305
15306# Create an old-style archive from a shared archive.
15307old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15308
15309# Create a temporary old-style archive to link instead of a shared archive.
15310old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15311
15312# Commands used to build a shared archive.
15313archive_cmds=$lt_archive_cmds
15314archive_expsym_cmds=$lt_archive_expsym_cmds
15315
15316# Commands used to build a loadable module if different from building
15317# a shared archive.
15318module_cmds=$lt_module_cmds
15319module_expsym_cmds=$lt_module_expsym_cmds
15320
15321# Whether we are building with GNU ld or not.
15322with_gnu_ld=$lt_with_gnu_ld
15323
15324# Flag that allows shared libraries with undefined symbols to be built.
15325allow_undefined_flag=$lt_allow_undefined_flag
15326
15327# Flag that enforces no undefined symbols.
15328no_undefined_flag=$lt_no_undefined_flag
15329
15330# Flag to hardcode \$libdir into a binary during linking.
15331# This must work even if \$libdir does not exist
15332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15333
15334# Whether we need a single "-rpath" flag with a separated argument.
15335hardcode_libdir_separator=$lt_hardcode_libdir_separator
15336
15337# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15338# DIR into the resulting binary.
15339hardcode_direct=$hardcode_direct
15340
15341# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15342# DIR into the resulting binary and the resulting library dependency is
15343# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15344# library is relocated.
15345hardcode_direct_absolute=$hardcode_direct_absolute
15346
15347# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15348# into the resulting binary.
15349hardcode_minus_L=$hardcode_minus_L
15350
15351# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15352# into the resulting binary.
15353hardcode_shlibpath_var=$hardcode_shlibpath_var
15354
15355# Set to "yes" if building a shared library automatically hardcodes DIR
15356# into the library and all subsequent libraries and executables linked
15357# against it.
15358hardcode_automatic=$hardcode_automatic
15359
15360# Set to yes if linker adds runtime paths of dependent libraries
15361# to runtime path list.
15362inherit_rpath=$inherit_rpath
15363
15364# Whether libtool must link a program against all its dependency libraries.
15365link_all_deplibs=$link_all_deplibs
15366
15367# Set to "yes" if exported symbols are required.
15368always_export_symbols=$always_export_symbols
15369
15370# The commands to list exported symbols.
15371export_symbols_cmds=$lt_export_symbols_cmds
15372
15373# Symbols that should not be listed in the preloaded symbols.
15374exclude_expsyms=$lt_exclude_expsyms
15375
15376# Symbols that must always be exported.
15377include_expsyms=$lt_include_expsyms
15378
15379# Commands necessary for linking programs (against libraries) with templates.
15380prelink_cmds=$lt_prelink_cmds
15381
15382# Commands necessary for finishing linking programs.
15383postlink_cmds=$lt_postlink_cmds
15384
15385# Specify filename containing input files.
15386file_list_spec=$lt_file_list_spec
15387
15388# How to hardcode a shared library path into an executable.
15389hardcode_action=$hardcode_action
15390
15391# ### END LIBTOOL CONFIG
15392
15393_LT_EOF
15394
15395 cat <<'_LT_EOF' >> "$cfgfile"
15396
15397# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15398
15399# func_munge_path_list VARIABLE PATH
15400# -----------------------------------
15401# VARIABLE is name of variable containing _space_ separated list of
15402# directories to be munged by the contents of PATH, which is string
15403# having a format:
15404# "DIR[:DIR]:"
15405# string "DIR[ DIR]" will be prepended to VARIABLE
15406# ":DIR[:DIR]"
15407# string "DIR[ DIR]" will be appended to VARIABLE
15408# "DIRP[:DIRP]::[DIRA:]DIRA"
15409# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15410# "DIRA[ DIRA]" will be appended to VARIABLE
15411# "DIR[:DIR]"
15412# VARIABLE will be replaced by "DIR[ DIR]"
15413func_munge_path_list ()
15414{
15415 case x$2 in
15416 x)
15417 ;;
15418 *:)
15419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15420 ;;
15421 x:*)
15422 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15423 ;;
15424 *::*)
15425 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15426 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15427 ;;
15428 *)
15429 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15430 ;;
15431 esac
15432}
15433
15434
15435# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15436func_cc_basename ()
15437{
15438 for cc_temp in $*""; do
15439 case $cc_temp in
15440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15442 \-*) ;;
15443 *) break;;
15444 esac
15445 done
15446 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15447}
15448
15449
15450# ### END FUNCTIONS SHARED WITH CONFIGURE
15451
15452_LT_EOF
15453
15454 case $host_os in
15455 aix3*)
15456 cat <<\_LT_EOF >> "$cfgfile"
15457# AIX sometimes has problems with the GCC collect2 program. For some
15458# reason, if we set the COLLECT_NAMES environment variable, the problems
15459# vanish in a puff of smoke.
15460if test set != "${COLLECT_NAMES+set}"; then
15461 COLLECT_NAMES=
15462 export COLLECT_NAMES
15463fi
15464_LT_EOF
15465 ;;
15466 esac
15467
15468
15469ltmain=$ac_aux_dir/ltmain.sh
15470
15471
15472 # We use sed instead of cat because bash on DJGPP gets confused if
15473 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15474 # text mode, it properly converts lines to CR/LF. This bash problem
15475 # is reportedly fixed, but why not run on old versions too?
15476 sed '$q' "$ltmain" >> "$cfgfile" \
15477 || (rm -f "$cfgfile"; exit 1)
15478
15479 mv -f "$cfgfile" "$ofile" ||
15480 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15481 chmod +x "$ofile"
15482
15483 ;;
15484
15485 esac
15486done # for ac_tag
15487
15488
15489as_fn_exit 0
15490_ACEOF
15491ac_clean_files=$ac_clean_files_save
15492
15493test $ac_write_fail = 0 ||
15494 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15495
15496
15497# configure is writing to config.log, and then calls config.status.
15498# config.status does its own redirection, appending to config.log.
15499# Unfortunately, on DOS this fails, as config.log is still kept open
15500# by configure, so config.status won't be able to write to it; its
15501# output is simply discarded. So we exec the FD to /dev/null,
15502# effectively closing config.log, so it can be properly (re)opened and
15503# appended to by config.status. When coming back to configure, we
15504# need to make the FD available again.
15505if test "$no_create" != yes; then
15506 ac_cs_success=:
15507 ac_config_status_args=
15508 test "$silent" = yes &&
15509 ac_config_status_args="$ac_config_status_args --quiet"
15510 exec 5>/dev/null
15511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15512 exec 5>>config.log
15513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15514 # would make configure fail if this is the last instruction.
15515 $ac_cs_success || as_fn_exit 1
15516fi
15517if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15519$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15520fi
15521