Update automatically managed build utilities.
[sod] / configure
CommitLineData
5dff0f1f
MW
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
43793891 3# Generated by GNU Autoconf 2.69 for sod 0.2.0-86-g67d1.
5dff0f1f
MW
4#
5# Report bugs to <mdw@distorted.org.uk>.
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
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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: mdw@distorted.org.uk about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='sod'
592PACKAGE_TARNAME='sod'
43793891
MW
593PACKAGE_VERSION='0.2.0-86-g67d1'
594PACKAGE_STRING='sod 0.2.0-86-g67d1'
5dff0f1f
MW
595PACKAGE_BUGREPORT='mdw@distorted.org.uk'
596PACKAGE_URL=''
597
598ac_unique_file="lib/sod.h"
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
639lispsysdir
640lispsrcdir
031a15b2 641fasl
5dff0f1f
MW
642LISPSYS
643CL_LAUNCH
03ff6477 644ASDF_VERSION
5dff0f1f
MW
645LIBTOOL_VERSION_INFO
646CPP
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654ac_ct_AR
655AR
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676am__fastdepCC_FALSE
677am__fastdepCC_TRUE
678CCDEPMODE
679am__nodep
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_silent_rules
762enable_dependency_tracking
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_gnu_ld
768with_sysroot
769enable_libtool_lock
770with_lisp_system
771with_lisp_source_dir
772with_lisp_system_dir
773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CPP'
783
784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
788ac_unrecognized_opts=
789ac_unrecognized_sep=
790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
812# (The list follows the same order as the GNU Coding Standards.)
813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
821includedir='${prefix}/include'
822oldincludedir='/usr/include'
823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
832
833ac_prev=
834ac_dashdash=
835for ac_option
836do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196fi
1197
1198if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204fi
1205
1206# Check all directory arguments for consistency.
1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
1291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294fi
1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
43793891 1323\`configure' configures sod 0.2.0-86-g67d1 to adapt to many kinds of systems.
5dff0f1f
MW
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/sod]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
43793891 1393 short | recursive ) echo "Configuration of sod 0.2.0-86-g67d1:";;
5dff0f1f
MW
1394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: `make V=1')
1402 --disable-silent-rules verbose build output (undo: `make V=0')
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
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-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
1419 --with-lisp-system=SYSTEMS
1420 preference order of cl-launch Lisp systems
1421 --with-lisp-source-dir=DIR
1422 where to install Common Lisp source files
1423 --with-lisp-system-dir=DIR
1424 where to install ASDF system links
1425
1426Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
1439Report bugs to <mdw@distorted.org.uk>.
1440_ACEOF
1441ac_status=$?
1442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1451
1452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
1467
1468case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481esac
1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1497fi
1498
1499test -n "$ac_init_help" && exit $ac_status
1500if $ac_init_version; then
1501 cat <<\_ACEOF
43793891 1502sod configure 0.2.0-86-g67d1
5dff0f1f
MW
1503generated by GNU Autoconf 2.69
1504
1505Copyright (C) 2012 Free Software Foundation, Inc.
1506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508_ACEOF
1509 exit
1510fi
1511
1512## ------------------------ ##
1513## Autoconf initialization. ##
1514## ------------------------ ##
1515
1516# ac_fn_c_try_compile LINENO
1517# --------------------------
1518# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_compile ()
1520{
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552} # ac_fn_c_try_compile
1553
1554# ac_fn_c_try_link LINENO
1555# -----------------------
1556# Try to link conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_c_try_link ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext conftest$ac_exeext
1561 if { { ac_try="$ac_link"
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_link") 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; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest$ac_exeext && {
1580 test "$cross_compiling" = yes ||
1581 test -x conftest$ac_exeext
1582 }; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1592 # interfere with the next link command; also delete a directory that is
1593 # left behind by Apple's compiler. We do this before executing the actions.
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_link
1599
1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists and can be compiled using the include files in
1603# INCLUDES, setting the cache variable VAR accordingly.
1604ac_fn_c_check_header_compile ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h. */
1614$4
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619else
1620 eval "$3=no"
1621fi
1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
1629} # ac_fn_c_check_header_compile
1630
1631# ac_fn_c_try_cpp LINENO
1632# ----------------------
1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_cpp ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657else
1658 $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_cpp
1667
1668# ac_fn_c_try_run LINENO
1669# ----------------------
1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671# that executables *can* be run.
1672ac_fn_c_try_run ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_run
1709
1710# ac_fn_c_check_func LINENO FUNC VAR
1711# ----------------------------------
1712# Tests whether FUNC exists, setting the cache variable VAR accordingly
1713ac_fn_c_check_func ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717$as_echo_n "checking for $2... " >&6; }
1718if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h. */
1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725#define $2 innocuous_$2
1726
1727/* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below.
1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1730 <limits.h> exists even on freestanding compilers. */
1731
1732#ifdef __STDC__
1733# include <limits.h>
1734#else
1735# include <assert.h>
1736#endif
1737
1738#undef $2
1739
1740/* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743#ifdef __cplusplus
1744extern "C"
1745#endif
1746char $2 ();
1747/* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750#if defined __stub_$2 || defined __stub___$2
1751choke me
1752#endif
1753
1754int
1755main ()
1756{
1757return $2 ();
1758 ;
1759 return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_link "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext \
1768 conftest$ac_exeext conftest.$ac_ext
1769fi
1770eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772$as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775} # ac_fn_c_check_func
1776cat >config.log <<_ACEOF
1777This file contains any messages produced by compilers while
1778running configure, to aid debugging if configure makes a mistake.
1779
43793891 1780It was created by sod $as_me 0.2.0-86-g67d1, which was
5dff0f1f
MW
1781generated by GNU Autoconf 2.69. Invocation command line was
1782
1783 $ $0 $@
1784
1785_ACEOF
1786exec 5>>config.log
1787{
1788cat <<_ASUNAME
1789## --------- ##
1790## Platform. ##
1791## --------- ##
1792
1793hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1794uname -m = `(uname -m) 2>/dev/null || echo unknown`
1795uname -r = `(uname -r) 2>/dev/null || echo unknown`
1796uname -s = `(uname -s) 2>/dev/null || echo unknown`
1797uname -v = `(uname -v) 2>/dev/null || echo unknown`
1798
1799/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1800/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1801
1802/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1803/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1804/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1805/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1806/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1807/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1808/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1809
1810_ASUNAME
1811
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 $as_echo "PATH: $as_dir"
1818 done
1819IFS=$as_save_IFS
1820
1821} >&5
1822
1823cat >&5 <<_ACEOF
1824
1825
1826## ----------- ##
1827## Core tests. ##
1828## ----------- ##
1829
1830_ACEOF
1831
1832
1833# Keep a trace of the command line.
1834# Strip out --no-create and --no-recursion so they do not pile up.
1835# Strip out --silent because we don't want to record it for future runs.
1836# Also quote any args containing shell meta-characters.
1837# Make two passes to allow for proper duplicate-argument suppression.
1838ac_configure_args=
1839ac_configure_args0=
1840ac_configure_args1=
1841ac_must_keep_next=false
1842for ac_pass in 1 2
1843do
1844 for ac_arg
1845 do
1846 case $ac_arg in
1847 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1849 | -silent | --silent | --silen | --sile | --sil)
1850 continue ;;
1851 *\'*)
1852 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 case $ac_pass in
1855 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1856 2)
1857 as_fn_append ac_configure_args1 " '$ac_arg'"
1858 if test $ac_must_keep_next = true; then
1859 ac_must_keep_next=false # Got value, back to normal.
1860 else
1861 case $ac_arg in
1862 *=* | --config-cache | -C | -disable-* | --disable-* \
1863 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1864 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1865 | -with-* | --with-* | -without-* | --without-* | --x)
1866 case "$ac_configure_args0 " in
1867 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868 esac
1869 ;;
1870 -* ) ac_must_keep_next=true ;;
1871 esac
1872 fi
1873 as_fn_append ac_configure_args " '$ac_arg'"
1874 ;;
1875 esac
1876 done
1877done
1878{ ac_configure_args0=; unset ac_configure_args0;}
1879{ ac_configure_args1=; unset ac_configure_args1;}
1880
1881# When interrupted or exit'd, cleanup temporary files, and complete
1882# config.log. We remove comments because anyway the quotes in there
1883# would cause problems or look ugly.
1884# WARNING: Use '\'' to represent an apostrophe within the trap.
1885# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1886trap 'exit_status=$?
1887 # Save into config.log some information that might help in debugging.
1888 {
1889 echo
1890
1891 $as_echo "## ---------------- ##
1892## Cache variables. ##
1893## ---------------- ##"
1894 echo
1895 # The following way of writing the cache mishandles newlines in values,
1896(
1897 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1898 eval ac_val=\$$ac_var
1899 case $ac_val in #(
1900 *${as_nl}*)
1901 case $ac_var in #(
1902 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1903$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1904 esac
1905 case $ac_var in #(
1906 _ | IFS | as_nl) ;; #(
1907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1908 *) { eval $ac_var=; unset $ac_var;} ;;
1909 esac ;;
1910 esac
1911 done
1912 (set) 2>&1 |
1913 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1914 *${as_nl}ac_space=\ *)
1915 sed -n \
1916 "s/'\''/'\''\\\\'\'''\''/g;
1917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918 ;; #(
1919 *)
1920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1921 ;;
1922 esac |
1923 sort
1924)
1925 echo
1926
1927 $as_echo "## ----------------- ##
1928## Output variables. ##
1929## ----------------- ##"
1930 echo
1931 for ac_var in $ac_subst_vars
1932 do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 $as_echo "$ac_var='\''$ac_val'\''"
1938 done | sort
1939 echo
1940
1941 if test -n "$ac_subst_files"; then
1942 $as_echo "## ------------------- ##
1943## File substitutions. ##
1944## ------------------- ##"
1945 echo
1946 for ac_var in $ac_subst_files
1947 do
1948 eval ac_val=\$$ac_var
1949 case $ac_val in
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951 esac
1952 $as_echo "$ac_var='\''$ac_val'\''"
1953 done | sort
1954 echo
1955 fi
1956
1957 if test -s confdefs.h; then
1958 $as_echo "## ----------- ##
1959## confdefs.h. ##
1960## ----------- ##"
1961 echo
1962 cat confdefs.h
1963 echo
1964 fi
1965 test "$ac_signal" != 0 &&
1966 $as_echo "$as_me: caught signal $ac_signal"
1967 $as_echo "$as_me: exit $exit_status"
1968 } >&5
1969 rm -f core *.core core.conftest.* &&
1970 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1971 exit $exit_status
1972' 0
1973for ac_signal in 1 2 13 15; do
1974 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1975done
1976ac_signal=0
1977
1978# confdefs.h avoids OS command line length limits that DEFS can exceed.
1979rm -f -r conftest* confdefs.h
1980
1981$as_echo "/* confdefs.h */" > confdefs.h
1982
1983# Predefined preprocessor variables.
1984
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_NAME "$PACKAGE_NAME"
1987_ACEOF
1988
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1991_ACEOF
1992
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_VERSION "$PACKAGE_VERSION"
1995_ACEOF
1996
1997cat >>confdefs.h <<_ACEOF
1998#define PACKAGE_STRING "$PACKAGE_STRING"
1999_ACEOF
2000
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2003_ACEOF
2004
2005cat >>confdefs.h <<_ACEOF
2006#define PACKAGE_URL "$PACKAGE_URL"
2007_ACEOF
2008
2009
2010# Let the site file select an alternate cache file if it wants to.
2011# Prefer an explicitly selected file to automatically selected ones.
2012ac_site_file1=NONE
2013ac_site_file2=NONE
2014if test -n "$CONFIG_SITE"; then
2015 # We do not want a PATH search for config.site.
2016 case $CONFIG_SITE in #((
2017 -*) ac_site_file1=./$CONFIG_SITE;;
2018 */*) ac_site_file1=$CONFIG_SITE;;
2019 *) ac_site_file1=./$CONFIG_SITE;;
2020 esac
2021elif test "x$prefix" != xNONE; then
2022 ac_site_file1=$prefix/share/config.site
2023 ac_site_file2=$prefix/etc/config.site
2024else
2025 ac_site_file1=$ac_default_prefix/share/config.site
2026 ac_site_file2=$ac_default_prefix/etc/config.site
2027fi
2028for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2029do
2030 test "x$ac_site_file" = xNONE && continue
2031 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2033$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2034 sed 's/^/| /' "$ac_site_file" >&5
2035 . "$ac_site_file" \
2036 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038as_fn_error $? "failed to load site script $ac_site_file
2039See \`config.log' for more details" "$LINENO" 5; }
2040 fi
2041done
2042
2043if test -r "$cache_file"; then
2044 # Some versions of bash will fail to source /dev/null (special files
2045 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2046 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2048$as_echo "$as_me: loading cache $cache_file" >&6;}
2049 case $cache_file in
2050 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2051 *) . "./$cache_file";;
2052 esac
2053 fi
2054else
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2056$as_echo "$as_me: creating cache $cache_file" >&6;}
2057 >$cache_file
2058fi
2059
2060# Check that the precious variables saved in the cache have kept the same
2061# value.
2062ac_cache_corrupted=false
2063for ac_var in $ac_precious_vars; do
2064 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2065 eval ac_new_set=\$ac_env_${ac_var}_set
2066 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2067 eval ac_new_val=\$ac_env_${ac_var}_value
2068 case $ac_old_set,$ac_new_set in
2069 set,)
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2071$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2072 ac_cache_corrupted=: ;;
2073 ,set)
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2075$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2076 ac_cache_corrupted=: ;;
2077 ,);;
2078 *)
2079 if test "x$ac_old_val" != "x$ac_new_val"; then
2080 # differences in whitespace do not lead to failure.
2081 ac_old_val_w=`echo x $ac_old_val`
2082 ac_new_val_w=`echo x $ac_new_val`
2083 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2085$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2086 ac_cache_corrupted=:
2087 else
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2089$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2090 eval $ac_var=\$ac_old_val
2091 fi
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2093$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2095$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2096 fi;;
2097 esac
2098 # Pass precious variables to config.status.
2099 if test "$ac_new_set" = set; then
2100 case $ac_new_val in
2101 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 *) ac_arg=$ac_var=$ac_new_val ;;
2103 esac
2104 case " $ac_configure_args " in
2105 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2106 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2107 esac
2108 fi
2109done
2110if $ac_cache_corrupted; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2114$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2115 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2116fi
2117## -------------------- ##
2118## Main body of script. ##
2119## -------------------- ##
2120
2121ac_ext=c
2122ac_cpp='$CPP $CPPFLAGS'
2123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127
2128
2129ac_aux_dir=
2130for ac_dir in config "$srcdir"/config; do
2131 if test -f "$ac_dir/install-sh"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/install-sh -c"
2134 break
2135 elif test -f "$ac_dir/install.sh"; then
2136 ac_aux_dir=$ac_dir
2137 ac_install_sh="$ac_aux_dir/install.sh -c"
2138 break
2139 elif test -f "$ac_dir/shtool"; then
2140 ac_aux_dir=$ac_dir
2141 ac_install_sh="$ac_aux_dir/shtool install -c"
2142 break
2143 fi
2144done
2145if test -z "$ac_aux_dir"; then
2146 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2147fi
2148
2149# These three variables are undocumented and unsupported,
2150# and are intended to be withdrawn in a future Autoconf release.
2151# They can cause serious problems if a builder's source tree is in a directory
2152# whose full name contains unusual characters.
2153ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2154ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2155ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2156
2157
2158am__api_version='1.11'
2159
2160# Find a good install program. We prefer a C program (faster),
2161# so one script is as good as another. But avoid the broken or
2162# incompatible versions:
2163# SysV /etc/install, /usr/sbin/install
2164# SunOS /usr/etc/install
2165# IRIX /sbin/install
2166# AIX /bin/install
2167# AmigaOS /C/install, which installs bootblocks on floppy discs
2168# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2169# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2170# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2171# OS/2's system install, which has a completely different semantic
2172# ./install, which can be erroneously created by make from ./install.sh.
2173# Reject install programs that cannot install multiple files.
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2175$as_echo_n "checking for a BSD-compatible install... " >&6; }
2176if test -z "$INSTALL"; then
2177if ${ac_cv_path_install+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 # Account for people who put trailing slashes in PATH elements.
2186case $as_dir/ in #((
2187 ./ | .// | /[cC]/* | \
2188 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2189 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2190 /usr/ucb/* ) ;;
2191 *)
2192 # OSF1 and SCO ODT 3.0 have their own names for install.
2193 # Don't use installbsd from OSF since it installs stuff as root
2194 # by default.
2195 for ac_prog in ginstall scoinst install; do
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2198 if test $ac_prog = install &&
2199 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200 # AIX install. It has an incompatible calling convention.
2201 :
2202 elif test $ac_prog = install &&
2203 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2204 # program-specific install script used by HP pwplus--don't use.
2205 :
2206 else
2207 rm -rf conftest.one conftest.two conftest.dir
2208 echo one > conftest.one
2209 echo two > conftest.two
2210 mkdir conftest.dir
2211 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2212 test -s conftest.one && test -s conftest.two &&
2213 test -s conftest.dir/conftest.one &&
2214 test -s conftest.dir/conftest.two
2215 then
2216 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2217 break 3
2218 fi
2219 fi
2220 fi
2221 done
2222 done
2223 ;;
2224esac
2225
2226 done
2227IFS=$as_save_IFS
2228
2229rm -rf conftest.one conftest.two conftest.dir
2230
2231fi
2232 if test "${ac_cv_path_install+set}" = set; then
2233 INSTALL=$ac_cv_path_install
2234 else
2235 # As a last resort, use the slow shell script. Don't cache a
2236 # value for INSTALL within a source directory, because that will
2237 # break other packages using the cache if that directory is
2238 # removed, or if the value is a relative name.
2239 INSTALL=$ac_install_sh
2240 fi
2241fi
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2243$as_echo "$INSTALL" >&6; }
2244
2245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2246# It thinks the first close brace ends the variable substitution.
2247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2248
2249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2250
2251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2252
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2254$as_echo_n "checking whether build environment is sane... " >&6; }
2255# Just in case
2256sleep 1
2257echo timestamp > conftest.file
2258# Reject unsafe characters in $srcdir or the absolute working directory
2259# name. Accept space and tab only in the latter.
2260am_lf='
2261'
2262case `pwd` in
2263 *[\\\"\#\$\&\'\`$am_lf]*)
2264 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2265esac
2266case $srcdir in
2267 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2268 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2269esac
2270
2271# Do `set' in a subshell so we don't clobber the current shell's
2272# arguments. Must try -L first in case configure is actually a
2273# symlink; some systems play weird games with the mod time of symlinks
2274# (eg FreeBSD returns the mod time of the symlink's containing
2275# directory).
2276if (
2277 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2278 if test "$*" = "X"; then
2279 # -L didn't work.
2280 set X `ls -t "$srcdir/configure" conftest.file`
2281 fi
2282 rm -f conftest.file
2283 if test "$*" != "X $srcdir/configure conftest.file" \
2284 && test "$*" != "X conftest.file $srcdir/configure"; then
2285
2286 # If neither matched, then we have a broken ls. This can happen
2287 # if, for instance, CONFIG_SHELL is bash and it inherits a
2288 # broken ls alias from the environment. This has actually
2289 # happened. Such a system could not be considered "sane".
2290 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2291alias in your environment" "$LINENO" 5
2292 fi
2293
2294 test "$2" = conftest.file
2295 )
2296then
2297 # Ok.
2298 :
2299else
2300 as_fn_error $? "newly created file is older than distributed files!
2301Check your system clock" "$LINENO" 5
2302fi
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2304$as_echo "yes" >&6; }
2305test "$program_prefix" != NONE &&
2306 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2307# Use a double $ so make ignores it.
2308test "$program_suffix" != NONE &&
2309 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2310# Double any \ or $.
2311# By default was `s,x,x', remove it if useless.
2312ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2313program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2314
2315# expand $ac_aux_dir to an absolute path
2316am_aux_dir=`cd $ac_aux_dir && pwd`
2317
2318if test x"${MISSING+set}" != xset; then
2319 case $am_aux_dir in
2320 *\ * | *\ *)
2321 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2322 *)
2323 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2324 esac
2325fi
2326# Use eval to expand $SHELL
2327if eval "$MISSING --run true"; then
2328 am_missing_run="$MISSING --run "
2329else
2330 am_missing_run=
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2332$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2333fi
2334
2335if test x"${install_sh}" != xset; then
2336 case $am_aux_dir in
2337 *\ * | *\ *)
2338 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2339 *)
2340 install_sh="\${SHELL} $am_aux_dir/install-sh"
2341 esac
2342fi
2343
2344# Installed binaries are usually stripped using `strip' when the user
2345# run `make install-strip'. However `strip' might not be the right
2346# tool to use in cross-compilation environments, therefore Automake
2347# will honor the `STRIP' environment variable to overrule this program.
2348if test "$cross_compiling" != no; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351set dummy ${ac_tool_prefix}strip; ac_word=$2
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353$as_echo_n "checking for $ac_word... " >&6; }
2354if ${ac_cv_prog_STRIP+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356else
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371done
2372 done
2373IFS=$as_save_IFS
2374
2375fi
2376fi
2377STRIP=$ac_cv_prog_STRIP
2378if test -n "$STRIP"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2380$as_echo "$STRIP" >&6; }
2381else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383$as_echo "no" >&6; }
2384fi
2385
2386
2387fi
2388if test -z "$ac_cv_prog_STRIP"; then
2389 ac_ct_STRIP=$STRIP
2390 # Extract the first word of "strip", so it can be a program name with args.
2391set dummy strip; ac_word=$2
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393$as_echo_n "checking for $ac_word... " >&6; }
2394if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396else
2397 if test -n "$ac_ct_STRIP"; then
2398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_ac_ct_STRIP="strip"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411done
2412 done
2413IFS=$as_save_IFS
2414
2415fi
2416fi
2417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418if test -n "$ac_ct_STRIP"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2420$as_echo "$ac_ct_STRIP" >&6; }
2421else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423$as_echo "no" >&6; }
2424fi
2425
2426 if test "x$ac_ct_STRIP" = x; then
2427 STRIP=":"
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430yes:)
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2433ac_tool_warned=yes ;;
2434esac
2435 STRIP=$ac_ct_STRIP
2436 fi
2437else
2438 STRIP="$ac_cv_prog_STRIP"
2439fi
2440
2441fi
2442INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2443
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2445$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2446if test -z "$MKDIR_P"; then
2447 if ${ac_cv_path_mkdir+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_prog in mkdir gmkdir; do
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2458 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2459 'mkdir (GNU coreutils) '* | \
2460 'mkdir (coreutils) '* | \
2461 'mkdir (fileutils) '4.1*)
2462 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2463 break 3;;
2464 esac
2465 done
2466 done
2467 done
2468IFS=$as_save_IFS
2469
2470fi
2471
2472 test -d ./--version && rmdir ./--version
2473 if test "${ac_cv_path_mkdir+set}" = set; then
2474 MKDIR_P="$ac_cv_path_mkdir -p"
2475 else
2476 # As a last resort, use the slow shell script. Don't cache a
2477 # value for MKDIR_P within a source directory, because that will
2478 # break other packages using the cache if that directory is
2479 # removed, or if the value is a relative name.
2480 MKDIR_P="$ac_install_sh -d"
2481 fi
2482fi
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2484$as_echo "$MKDIR_P" >&6; }
2485
2486mkdir_p="$MKDIR_P"
2487case $mkdir_p in
2488 [\\/$]* | ?:[\\/]*) ;;
2489 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2490esac
2491
2492for ac_prog in gawk mawk nawk awk
2493do
2494 # Extract the first word of "$ac_prog", so it can be a program name with args.
2495set dummy $ac_prog; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if ${ac_cv_prog_AWK+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 if test -n "$AWK"; then
2502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_AWK="$ac_prog"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515done
2516 done
2517IFS=$as_save_IFS
2518
2519fi
2520fi
2521AWK=$ac_cv_prog_AWK
2522if test -n "$AWK"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2524$as_echo "$AWK" >&6; }
2525else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530
2531 test -n "$AWK" && break
2532done
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2535$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2536set x ${MAKE-make}
2537ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2538if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540else
2541 cat >conftest.make <<\_ACEOF
2542SHELL = /bin/sh
2543all:
2544 @echo '@@@%%%=$(MAKE)=@@@%%%'
2545_ACEOF
2546# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2547case `${MAKE-make} -f conftest.make 2>/dev/null` in
2548 *@@@%%%=?*=@@@%%%*)
2549 eval ac_cv_prog_make_${ac_make}_set=yes;;
2550 *)
2551 eval ac_cv_prog_make_${ac_make}_set=no;;
2552esac
2553rm -f conftest.make
2554fi
2555if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557$as_echo "yes" >&6; }
2558 SET_MAKE=
2559else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562 SET_MAKE="MAKE=${MAKE-make}"
2563fi
2564
2565rm -rf .tst 2>/dev/null
2566mkdir .tst 2>/dev/null
2567if test -d .tst; then
2568 am__leading_dot=.
2569else
2570 am__leading_dot=_
2571fi
2572rmdir .tst 2>/dev/null
2573
2574if test "`cd $srcdir && pwd`" != "`pwd`"; then
2575 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2576 # is not polluted with repeated "-I."
2577 am__isrc=' -I$(srcdir)'
2578 # test to see if srcdir already configured
2579 if test -f $srcdir/config.status; then
2580 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2581 fi
2582fi
2583
2584# test whether we have cygpath
2585if test -z "$CYGPATH_W"; then
2586 if (cygpath --version) >/dev/null 2>/dev/null; then
2587 CYGPATH_W='cygpath -w'
2588 else
2589 CYGPATH_W=echo
2590 fi
2591fi
2592
2593
2594# Define the identity of the package.
2595 PACKAGE='sod'
43793891 2596 VERSION='0.2.0-86-g67d1'
5dff0f1f
MW
2597
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE "$PACKAGE"
2601_ACEOF
2602
2603
2604cat >>confdefs.h <<_ACEOF
2605#define VERSION "$VERSION"
2606_ACEOF
2607
2608# Some tools Automake needs.
2609
2610ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2611
2612
2613AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2614
2615
2616AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2617
2618
2619AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2620
2621
2622MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2623
2624# We need awk for the "check" target. The system "awk" is bad on
2625# some platforms.
2626# Always define AMTAR for backward compatibility. Yes, it's still used
2627# in the wild :-( We should find a proper way to deprecate it ...
2628AMTAR='$${TAR-tar}'
2629
2630am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2631
2632
2633
2634
2635
2636
2637
2638 # Check whether --enable-silent-rules was given.
2639if test "${enable_silent_rules+set}" = set; then :
2640 enableval=$enable_silent_rules;
2641fi
2642
2643case $enable_silent_rules in
2644yes) AM_DEFAULT_VERBOSITY=0;;
2645no) AM_DEFAULT_VERBOSITY=1;;
2646*) AM_DEFAULT_VERBOSITY=0;;
2647esac
2648am_make=${MAKE-make}
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2650$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2651if ${am_cv_make_support_nested_variables+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653else
2654 if $as_echo 'TRUE=$(BAR$(V))
2655BAR0=false
2656BAR1=true
2657V=1
2658am__doit:
2659 @$(TRUE)
2660.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2661 am_cv_make_support_nested_variables=yes
2662else
2663 am_cv_make_support_nested_variables=no
2664fi
2665fi
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2667$as_echo "$am_cv_make_support_nested_variables" >&6; }
2668if test $am_cv_make_support_nested_variables = yes; then
2669 AM_V='$(V)'
2670 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2671else
2672 AM_V=$AM_DEFAULT_VERBOSITY
2673 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2674fi
2675AM_BACKSLASH='\'
2676
2677
2678
2679
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}gcc; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708 done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716$as_echo "$CC" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722
2723fi
2724if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727set dummy gcc; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_ac_ct_CC+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_ac_ct_CC="gcc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748 done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2756$as_echo "$ac_ct_CC" >&6; }
2757else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766yes:)
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769ac_tool_warned=yes ;;
2770esac
2771 CC=$ac_ct_CC
2772 fi
2773else
2774 CC="$ac_cv_prog_CC"
2775fi
2776
2777if test -z "$CC"; then
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2780set dummy ${ac_tool_prefix}cc; ac_word=$2
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_CC="${ac_tool_prefix}cc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800done
2801 done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809$as_echo "$CC" >&6; }
2810else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
2813fi
2814
2815
2816 fi
2817fi
2818if test -z "$CC"; then
2819 # Extract the first word of "cc", so it can be a program name with args.
2820set dummy cc; ac_word=$2
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822$as_echo_n "checking for $ac_word... " >&6; }
2823if ${ac_cv_prog_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828else
2829 ac_prog_rejected=no
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2838 ac_prog_rejected=yes
2839 continue
2840 fi
2841 ac_cv_prog_CC="cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846 done
2847IFS=$as_save_IFS
2848
2849if test $ac_prog_rejected = yes; then
2850 # We found a bogon in the path, so make sure we never use it.
2851 set dummy $ac_cv_prog_CC
2852 shift
2853 if test $# != 0; then
2854 # We chose a different compiler from the bogus one.
2855 # However, it has the same basename, so the bogon will be chosen
2856 # first if we set CC to just the basename; use the full file name.
2857 shift
2858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2859 fi
2860fi
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866$as_echo "$CC" >&6; }
2867else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873fi
2874if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl.exe
2877 do
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if ${ac_cv_prog_CC+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900 done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905CC=$ac_cv_prog_CC
2906if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908$as_echo "$CC" >&6; }
2909else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
2912fi
2913
2914
2915 test -n "$CC" && break
2916 done
2917fi
2918if test -z "$CC"; then
2919 ac_ct_CC=$CC
2920 for ac_prog in cl.exe
2921do
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923set dummy $ac_prog; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if ${ac_cv_prog_ac_ct_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_CC="$ac_prog"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944 done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952$as_echo "$ac_ct_CC" >&6; }
2953else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958
2959 test -n "$ac_ct_CC" && break
2960done
2961
2962 if test "x$ac_ct_CC" = x; then
2963 CC=""
2964 else
2965 case $cross_compiling:$ac_tool_warned in
2966yes:)
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969ac_tool_warned=yes ;;
2970esac
2971 CC=$ac_ct_CC
2972 fi
2973fi
2974
2975fi
2976
2977
2978test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error $? "no acceptable C compiler found in \$PATH
2981See \`config.log' for more details" "$LINENO" 5; }
2982
2983# Provide some information about the compiler.
2984$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2985set X $ac_compile
2986ac_compiler=$2
2987for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994$as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2996 ac_status=$?
2997 if test -s conftest.err; then
2998 sed '10a\
2999... rest of stderr output deleted ...
3000 10q' conftest.err >conftest.er1
3001 cat conftest.er1 >&5
3002 fi
3003 rm -f conftest.er1 conftest.err
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006done
3007
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010
3011int
3012main ()
3013{
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019ac_clean_files_save=$ac_clean_files
3020ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3021# Try to create an executable without -o first, disregard a.out.
3022# It will help us diagnose broken compilers, and finding out an intuition
3023# of exeext.
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3025$as_echo_n "checking whether the C compiler works... " >&6; }
3026ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3027
3028# The possible output files:
3029ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3030
3031ac_rmfiles=
3032for ac_file in $ac_files
3033do
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037 esac
3038done
3039rm -f $ac_rmfiles
3040
3041if { { ac_try="$ac_link_default"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047$as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link_default") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3053# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3054# in a Makefile. We should not override ac_cv_exeext if it was cached,
3055# so that the user can short-circuit this test for compilers unknown to
3056# Autoconf.
3057for ac_file in $ac_files ''
3058do
3059 test -f "$ac_file" || continue
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3062 ;;
3063 [ab].out )
3064 # We found the default executable, but exeext='' is most
3065 # certainly right.
3066 break;;
3067 *.* )
3068 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 then :; else
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 fi
3072 # We set ac_cv_exeext here because the later test for it is not
3073 # safe: cross compilers may not add the suffix if given an `-o'
3074 # argument, so we may need to know it at that point already.
3075 # Even if this section looks crufty: it has the advantage of
3076 # actually working.
3077 break;;
3078 * )
3079 break;;
3080 esac
3081done
3082test "$ac_cv_exeext" = no && ac_cv_exeext=
3083
3084else
3085 ac_file=''
3086fi
3087if test -z "$ac_file"; then :
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090$as_echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error 77 "C compiler cannot create executables
3096See \`config.log' for more details" "$LINENO" 5; }
3097else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099$as_echo "yes" >&6; }
3100fi
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3102$as_echo_n "checking for C compiler default output file name... " >&6; }
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3104$as_echo "$ac_file" >&6; }
3105ac_exeext=$ac_cv_exeext
3106
3107rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3108ac_clean_files=$ac_clean_files_save
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3110$as_echo_n "checking for suffix of executables... " >&6; }
3111if { { ac_try="$ac_link"
3112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3123# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3124# work properly (i.e., refer to `conftest.exe'), while it won't with
3125# `rm'.
3126for ac_file in conftest.exe conftest conftest.*; do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 break;;
3132 * ) break;;
3133 esac
3134done
3135else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3139See \`config.log' for more details" "$LINENO" 5; }
3140fi
3141rm -f conftest conftest$ac_cv_exeext
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3143$as_echo "$ac_cv_exeext" >&6; }
3144
3145rm -f conftest.$ac_ext
3146EXEEXT=$ac_cv_exeext
3147ac_exeext=$EXEEXT
3148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h. */
3150#include <stdio.h>
3151int
3152main ()
3153{
3154FILE *f = fopen ("conftest.out", "w");
3155 return ferror (f) || fclose (f) != 0;
3156
3157 ;
3158 return 0;
3159}
3160_ACEOF
3161ac_clean_files="$ac_clean_files conftest.out"
3162# Check that the compiler produces executables we can run. If not, either
3163# the compiler is broken, or we cross compile.
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3165$as_echo_n "checking whether we are cross compiling... " >&6; }
3166if test "$cross_compiling" != yes; then
3167 { { ac_try="$ac_link"
3168case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173$as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_link") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }
3178 if { ac_try='./conftest$ac_cv_exeext'
3179 { { case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; }; then
3189 cross_compiling=no
3190 else
3191 if test "$cross_compiling" = maybe; then
3192 cross_compiling=yes
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196as_fn_error $? "cannot run C compiled programs.
3197If you meant to cross compile, use \`--host'.
3198See \`config.log' for more details" "$LINENO" 5; }
3199 fi
3200 fi
3201fi
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3203$as_echo "$cross_compiling" >&6; }
3204
3205rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3206ac_clean_files=$ac_clean_files_save
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3208$as_echo_n "checking for suffix of object files... " >&6; }
3209if ${ac_cv_objext+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h. */
3214
3215int
3216main ()
3217{
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223rm -f conftest.o conftest.obj
3224if { { ac_try="$ac_compile"
3225case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compile") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 for ac_file in conftest.o conftest.obj conftest.*; do
3236 test -f "$ac_file" || continue;
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 break;;
3241 esac
3242done
3243else
3244 $as_echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
3247{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249as_fn_error $? "cannot compute suffix of object files: cannot compile
3250See \`config.log' for more details" "$LINENO" 5; }
3251fi
3252rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3255$as_echo "$ac_cv_objext" >&6; }
3256OBJEXT=$ac_cv_objext
3257ac_objext=$OBJEXT
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3259$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3260if ${ac_cv_c_compiler_gnu+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262else
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269#ifndef __GNUC__
3270 choke me
3271#endif
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277if ac_fn_c_try_compile "$LINENO"; then :
3278 ac_compiler_gnu=yes
3279else
3280 ac_compiler_gnu=no
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283ac_cv_c_compiler_gnu=$ac_compiler_gnu
3284
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3287$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3288if test $ac_compiler_gnu = yes; then
3289 GCC=yes
3290else
3291 GCC=
3292fi
3293ac_test_CFLAGS=${CFLAGS+set}
3294ac_save_CFLAGS=$CFLAGS
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3296$as_echo_n "checking whether $CC accepts -g... " >&6; }
3297if ${ac_cv_prog_cc_g+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299else
3300 ac_save_c_werror_flag=$ac_c_werror_flag
3301 ac_c_werror_flag=yes
3302 ac_cv_prog_cc_g=no
3303 CFLAGS="-g"
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306
3307int
3308main ()
3309{
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_cv_prog_cc_g=yes
3317else
3318 CFLAGS=""
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320/* end confdefs.h. */
3321
3322int
3323main ()
3324{
3325
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330if ac_fn_c_try_compile "$LINENO"; then :
3331
3332else
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334 CFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_g=yes
3348fi
3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350fi
3351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352fi
3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_c_werror_flag=$ac_save_c_werror_flag
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3357$as_echo "$ac_cv_prog_cc_g" >&6; }
3358if test "$ac_test_CFLAGS" = set; then
3359 CFLAGS=$ac_save_CFLAGS
3360elif test $ac_cv_prog_cc_g = yes; then
3361 if test "$GCC" = yes; then
3362 CFLAGS="-g -O2"
3363 else
3364 CFLAGS="-g"
3365 fi
3366else
3367 if test "$GCC" = yes; then
3368 CFLAGS="-O2"
3369 else
3370 CFLAGS=
3371 fi
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3374$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3375if ${ac_cv_prog_cc_c89+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377else
3378 ac_cv_prog_cc_c89=no
3379ac_save_CC=$CC
3380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h. */
3382#include <stdarg.h>
3383#include <stdio.h>
3384struct stat;
3385/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3386struct buf { int x; };
3387FILE * (*rcsopen) (struct buf *, struct stat *, int);
3388static char *e (p, i)
3389 char **p;
3390 int i;
3391{
3392 return p[i];
3393}
3394static char *f (char * (*g) (char **, int), char **p, ...)
3395{
3396 char *s;
3397 va_list v;
3398 va_start (v,p);
3399 s = g (p, va_arg (v,int));
3400 va_end (v);
3401 return s;
3402}
3403
3404/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3405 function prototypes and stuff, but not '\xHH' hex character constants.
3406 These don't provoke an error unfortunately, instead are silently treated
3407 as 'x'. The following induces an error, until -std is added to get
3408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3409 array size at least. It's necessary to write '\x00'==0 to get something
3410 that's true only with -std. */
3411int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3412
3413/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3414 inside strings and character constants. */
3415#define FOO(x) 'x'
3416int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3417
3418int test (int i, double x);
3419struct s1 {int (*f) (int a);};
3420struct s2 {int (*f) (double a);};
3421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422int argc;
3423char **argv;
3424int
3425main ()
3426{
3427return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3434do
3435 CC="$ac_save_CC $ac_arg"
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_prog_cc_c89=$ac_arg
3438fi
3439rm -f core conftest.err conftest.$ac_objext
3440 test "x$ac_cv_prog_cc_c89" != "xno" && break
3441done
3442rm -f conftest.$ac_ext
3443CC=$ac_save_CC
3444
3445fi
3446# AC_CACHE_VAL
3447case "x$ac_cv_prog_cc_c89" in
3448 x)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3450$as_echo "none needed" >&6; } ;;
3451 xno)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3453$as_echo "unsupported" >&6; } ;;
3454 *)
3455 CC="$CC $ac_cv_prog_cc_c89"
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3457$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3458esac
3459if test "x$ac_cv_prog_cc_c89" != xno; then :
3460
3461fi
3462
3463ac_ext=c
3464ac_cpp='$CPP $CPPFLAGS'
3465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468DEPDIR="${am__leading_dot}deps"
3469
3470ac_config_commands="$ac_config_commands depfiles"
3471
3472
3473am_make=${MAKE-make}
3474cat > confinc << 'END'
3475am__doit:
3476 @echo this is the am__doit target
3477.PHONY: am__doit
3478END
3479# If we don't find an include directive, just comment out the code.
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3481$as_echo_n "checking for style of include used by $am_make... " >&6; }
3482am__include="#"
3483am__quote=
3484_am_result=none
3485# First try GNU make style include.
3486echo "include confinc" > confmf
3487# Ignore all kinds of additional output from `make'.
3488case `$am_make -s -f confmf 2> /dev/null` in #(
3489*the\ am__doit\ target*)
3490 am__include=include
3491 am__quote=
3492 _am_result=GNU
3493 ;;
3494esac
3495# Now try BSD make style include.
3496if test "$am__include" = "#"; then
3497 echo '.include "confinc"' > confmf
3498 case `$am_make -s -f confmf 2> /dev/null` in #(
3499 *the\ am__doit\ target*)
3500 am__include=.include
3501 am__quote="\""
3502 _am_result=BSD
3503 ;;
3504 esac
3505fi
3506
3507
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3509$as_echo "$_am_result" >&6; }
3510rm -f confinc confmf
3511
3512# Check whether --enable-dependency-tracking was given.
3513if test "${enable_dependency_tracking+set}" = set; then :
3514 enableval=$enable_dependency_tracking;
3515fi
3516
3517if test "x$enable_dependency_tracking" != xno; then
3518 am_depcomp="$ac_aux_dir/depcomp"
3519 AMDEPBACKSLASH='\'
3520 am__nodep='_no'
3521fi
3522 if test "x$enable_dependency_tracking" != xno; then
3523 AMDEP_TRUE=
3524 AMDEP_FALSE='#'
3525else
3526 AMDEP_TRUE='#'
3527 AMDEP_FALSE=
3528fi
3529
3530
3531
3532depcc="$CC" am_compiler_list=
3533
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3535$as_echo_n "checking dependency style of $depcc... " >&6; }
3536if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538else
3539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540 # We make a subdir and do the tests there. Otherwise we can end up
3541 # making bogus files that we don't know about and never remove. For
3542 # instance it was reported that on HP-UX the gcc test will end up
3543 # making a dummy file named `D' -- because `-MD' means `put the output
3544 # in D'.
3545 rm -rf conftest.dir
3546 mkdir conftest.dir
3547 # Copy depcomp to subdir because otherwise we won't find it if we're
3548 # using a relative directory.
3549 cp "$am_depcomp" conftest.dir
3550 cd conftest.dir
3551 # We will build objects and dependencies in a subdirectory because
3552 # it helps to detect inapplicable dependency modes. For instance
3553 # both Tru64's cc and ICC support -MD to output dependencies as a
3554 # side effect of compilation, but ICC will put the dependencies in
3555 # the current directory while Tru64 will put them in the object
3556 # directory.
3557 mkdir sub
3558
3559 am_cv_CC_dependencies_compiler_type=none
3560 if test "$am_compiler_list" = ""; then
3561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562 fi
3563 am__universal=false
3564 case " $depcc " in #(
3565 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3566 esac
3567
3568 for depmode in $am_compiler_list; do
3569 # Setup a source with many dependencies, because some compilers
3570 # like to wrap large dependency lists on column 80 (with \), and
3571 # we should not choose a depcomp mode which is confused by this.
3572 #
3573 # We need to recreate these files for each test, as the compiler may
3574 # overwrite some of them when testing with obscure command lines.
3575 # This happens at least with the AIX C compiler.
3576 : > sub/conftest.c
3577 for i in 1 2 3 4 5 6; do
3578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3580 # Solaris 8's {/usr,}/bin/sh.
3581 touch sub/conftst$i.h
3582 done
3583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584
3585 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3586 # mode. It turns out that the SunPro C++ compiler does not properly
3587 # handle `-M -o', and we need to detect this. Also, some Intel
3588 # versions had trouble with output in subdirs
3589 am__obj=sub/conftest.${OBJEXT-o}
3590 am__minus_obj="-o $am__obj"
3591 case $depmode in
3592 gcc)
3593 # This depmode causes a compiler race in universal mode.
3594 test "$am__universal" = false || continue
3595 ;;
3596 nosideeffect)
3597 # after this tag, mechanisms are not by side-effect, so they'll
3598 # only be used when explicitly requested
3599 if test "x$enable_dependency_tracking" = xyes; then
3600 continue
3601 else
3602 break
3603 fi
3604 ;;
3605 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3606 # This compiler won't grok `-c -o', but also, the minuso test has
3607 # not run yet. These depmodes are late enough in the game, and
3608 # so weak that their functioning should not be impacted.
3609 am__obj=conftest.${OBJEXT-o}
3610 am__minus_obj=
3611 ;;
3612 none) break ;;
3613 esac
3614 if depmode=$depmode \
3615 source=sub/conftest.c object=$am__obj \
3616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3618 >/dev/null 2>conftest.err &&
3619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3623 # icc doesn't choke on unknown options, it will just issue warnings
3624 # or remarks (even with -Werror). So we grep stderr for any message
3625 # that says an option was ignored or not supported.
3626 # When given -MP, icc 7.0 and 7.1 complain thusly:
3627 # icc: Command line warning: ignoring option '-M'; no argument required
3628 # The diagnosis changed in icc 8.0:
3629 # icc: Command line remark: option '-MP' not supported
3630 if (grep 'ignoring option' conftest.err ||
3631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3632 am_cv_CC_dependencies_compiler_type=$depmode
3633 break
3634 fi
3635 fi
3636 done
3637
3638 cd ..
3639 rm -rf conftest.dir
3640else
3641 am_cv_CC_dependencies_compiler_type=none
3642fi
3643
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3646$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3648
3649 if
3650 test "x$enable_dependency_tracking" != xno \
3651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3652 am__fastdepCC_TRUE=
3653 am__fastdepCC_FALSE='#'
3654else
3655 am__fastdepCC_TRUE='#'
3656 am__fastdepCC_FALSE=
3657fi
3658
3659
3660case `pwd` in
3661 *\ * | *\ *)
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3663$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3664esac
3665
3666
3667
3668macro_version='2.4.2'
3669macro_revision='1.3337'
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683ltmain="$ac_aux_dir/ltmain.sh"
3684
3685# Make sure we can run config.sub.
3686$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3688
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3690$as_echo_n "checking build system type... " >&6; }
3691if ${ac_cv_build+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693else
3694 ac_build_alias=$build_alias
3695test "x$ac_build_alias" = x &&
3696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3697test "x$ac_build_alias" = x &&
3698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3704$as_echo "$ac_cv_build" >&6; }
3705case $ac_cv_build in
3706*-*-*) ;;
3707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3708esac
3709build=$ac_cv_build
3710ac_save_IFS=$IFS; IFS='-'
3711set x $ac_cv_build
3712shift
3713build_cpu=$1
3714build_vendor=$2
3715shift; shift
3716# Remember, the first character of IFS is used to create $*,
3717# except with old shells:
3718build_os=$*
3719IFS=$ac_save_IFS
3720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3721
3722
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3724$as_echo_n "checking host system type... " >&6; }
3725if ${ac_cv_host+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727else
3728 if test "x$host_alias" = x; then
3729 ac_cv_host=$ac_cv_build
3730else
3731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3733fi
3734
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3737$as_echo "$ac_cv_host" >&6; }
3738case $ac_cv_host in
3739*-*-*) ;;
3740*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3741esac
3742host=$ac_cv_host
3743ac_save_IFS=$IFS; IFS='-'
3744set x $ac_cv_host
3745shift
3746host_cpu=$1
3747host_vendor=$2
3748shift; shift
3749# Remember, the first character of IFS is used to create $*,
3750# except with old shells:
3751host_os=$*
3752IFS=$ac_save_IFS
3753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756# Backslashify metacharacters that are still active within
3757# double-quoted strings.
3758sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3759
3760# Same as above, but do not quote variable references.
3761double_quote_subst='s/\(["`\\]\)/\\\1/g'
3762
3763# Sed substitution to delay expansion of an escaped shell variable in a
3764# double_quote_subst'ed string.
3765delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3766
3767# Sed substitution to delay expansion of an escaped single quote.
3768delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3769
3770# Sed substitution to avoid accidental globbing in evaled expressions
3771no_glob_subst='s/\*/\\\*/g'
3772
3773ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3774ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3775ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3776
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3778$as_echo_n "checking how to print strings... " >&6; }
3779# Test print first, because it will be a builtin if present.
3780if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3781 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3782 ECHO='print -r --'
3783elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3784 ECHO='printf %s\n'
3785else
3786 # Use this function as a fallback that always works.
3787 func_fallback_echo ()
3788 {
3789 eval 'cat <<_LTECHO_EOF
3790$1
3791_LTECHO_EOF'
3792 }
3793 ECHO='func_fallback_echo'
3794fi
3795
3796# func_echo_all arg...
3797# Invoke $ECHO with all args, space-separated.
3798func_echo_all ()
3799{
3800 $ECHO ""
3801}
3802
3803case "$ECHO" in
3804 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3805$as_echo "printf" >&6; } ;;
3806 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3807$as_echo "print -r" >&6; } ;;
3808 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3809$as_echo "cat" >&6; } ;;
3810esac
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3826$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3827if ${ac_cv_path_SED+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829else
3830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3831 for ac_i in 1 2 3 4 5 6 7; do
3832 ac_script="$ac_script$as_nl$ac_script"
3833 done
3834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3835 { ac_script=; unset ac_script;}
3836 if test -z "$SED"; then
3837 ac_path_SED_found=false
3838 # Loop through the user's path and test for each of PROGNAME-LIST
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840for as_dir in $PATH
3841do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_prog in sed gsed; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3847 as_fn_executable_p "$ac_path_SED" || continue
3848# Check for GNU ac_path_SED and select it if it is found.
3849 # Check for GNU $ac_path_SED
3850case `"$ac_path_SED" --version 2>&1` in
3851*GNU*)
3852 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3853*)
3854 ac_count=0
3855 $as_echo_n 0123456789 >"conftest.in"
3856 while :
3857 do
3858 cat "conftest.in" "conftest.in" >"conftest.tmp"
3859 mv "conftest.tmp" "conftest.in"
3860 cp "conftest.in" "conftest.nl"
3861 $as_echo '' >> "conftest.nl"
3862 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3864 as_fn_arith $ac_count + 1 && ac_count=$as_val
3865 if test $ac_count -gt ${ac_path_SED_max-0}; then
3866 # Best one so far, save it but keep looking for a better one
3867 ac_cv_path_SED="$ac_path_SED"
3868 ac_path_SED_max=$ac_count
3869 fi
3870 # 10*(2^10) chars as input seems more than enough
3871 test $ac_count -gt 10 && break
3872 done
3873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874esac
3875
3876 $ac_path_SED_found && break 3
3877 done
3878 done
3879 done
3880IFS=$as_save_IFS
3881 if test -z "$ac_cv_path_SED"; then
3882 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3883 fi
3884else
3885 ac_cv_path_SED=$SED
3886fi
3887
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3890$as_echo "$ac_cv_path_SED" >&6; }
3891 SED="$ac_cv_path_SED"
3892 rm -f conftest.sed
3893
3894test -z "$SED" && SED=sed
3895Xsed="$SED -e 1s/^X//"
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3908$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3909if ${ac_cv_path_GREP+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 if test -z "$GREP"; then
3913 ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in grep ggrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923 as_fn_executable_p "$ac_path_GREP" || continue
3924# Check for GNU ac_path_GREP and select it if it is found.
3925 # Check for GNU $ac_path_GREP
3926case `"$ac_path_GREP" --version 2>&1` in
3927*GNU*)
3928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3929*)
3930 ac_count=0
3931 $as_echo_n 0123456789 >"conftest.in"
3932 while :
3933 do
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 $as_echo 'GREP' >> "conftest.nl"
3938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 as_fn_arith $ac_count + 1 && ac_count=$as_val
3941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_GREP="$ac_path_GREP"
3944 ac_path_GREP_max=$ac_count
3945 fi
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952 $ac_path_GREP_found && break 3
3953 done
3954 done
3955 done
3956IFS=$as_save_IFS
3957 if test -z "$ac_cv_path_GREP"; then
3958 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3959 fi
3960else
3961 ac_cv_path_GREP=$GREP
3962fi
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3966$as_echo "$ac_cv_path_GREP" >&6; }
3967 GREP="$ac_cv_path_GREP"
3968
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3971$as_echo_n "checking for egrep... " >&6; }
3972if ${ac_cv_path_EGREP+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974else
3975 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3976 then ac_cv_path_EGREP="$GREP -E"
3977 else
3978 if test -z "$EGREP"; then
3979 ac_path_EGREP_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in egrep; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3989 as_fn_executable_p "$ac_path_EGREP" || continue
3990# Check for GNU ac_path_EGREP and select it if it is found.
3991 # Check for GNU $ac_path_EGREP
3992case `"$ac_path_EGREP" --version 2>&1` in
3993*GNU*)
3994 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3995*)
3996 ac_count=0
3997 $as_echo_n 0123456789 >"conftest.in"
3998 while :
3999 do
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 $as_echo 'EGREP' >> "conftest.nl"
4004 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 as_fn_arith $ac_count + 1 && ac_count=$as_val
4007 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_EGREP="$ac_path_EGREP"
4010 ac_path_EGREP_max=$ac_count
4011 fi
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016esac
4017
4018 $ac_path_EGREP_found && break 3
4019 done
4020 done
4021 done
4022IFS=$as_save_IFS
4023 if test -z "$ac_cv_path_EGREP"; then
4024 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4025 fi
4026else
4027 ac_cv_path_EGREP=$EGREP
4028fi
4029
4030 fi
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4033$as_echo "$ac_cv_path_EGREP" >&6; }
4034 EGREP="$ac_cv_path_EGREP"
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4038$as_echo_n "checking for fgrep... " >&6; }
4039if ${ac_cv_path_FGREP+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4043 then ac_cv_path_FGREP="$GREP -F"
4044 else
4045 if test -z "$FGREP"; then
4046 ac_path_FGREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in fgrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4056 as_fn_executable_p "$ac_path_FGREP" || continue
4057# Check for GNU ac_path_FGREP and select it if it is found.
4058 # Check for GNU $ac_path_FGREP
4059case `"$ac_path_FGREP" --version 2>&1` in
4060*GNU*)
4061 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4062*)
4063 ac_count=0
4064 $as_echo_n 0123456789 >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 $as_echo 'FGREP' >> "conftest.nl"
4071 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
4074 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_FGREP="$ac_path_FGREP"
4077 ac_path_FGREP_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085 $ac_path_FGREP_found && break 3
4086 done
4087 done
4088 done
4089IFS=$as_save_IFS
4090 if test -z "$ac_cv_path_FGREP"; then
4091 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4092 fi
4093else
4094 ac_cv_path_FGREP=$FGREP
4095fi
4096
4097 fi
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4100$as_echo "$ac_cv_path_FGREP" >&6; }
4101 FGREP="$ac_cv_path_FGREP"
4102
4103
4104test -z "$GREP" && GREP=grep
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124# Check whether --with-gnu-ld was given.
4125if test "${with_gnu_ld+set}" = set; then :
4126 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4127else
4128 with_gnu_ld=no
4129fi
4130
4131ac_prog=ld
4132if test "$GCC" = yes; then
4133 # Check if gcc -print-prog-name=ld gives a path.
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4135$as_echo_n "checking for ld used by $CC... " >&6; }
4136 case $host in
4137 *-*-mingw*)
4138 # gcc leaves a trailing carriage return which upsets mingw
4139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4140 *)
4141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4142 esac
4143 case $ac_prog in
4144 # Accept absolute paths.
4145 [\\/]* | ?:[\\/]*)
4146 re_direlt='/[^/][^/]*/\.\./'
4147 # Canonicalize the pathname of ld
4148 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4149 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4150 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4151 done
4152 test -z "$LD" && LD="$ac_prog"
4153 ;;
4154 "")
4155 # If it fails, then pretend we aren't using GCC.
4156 ac_prog=ld
4157 ;;
4158 *)
4159 # If it is relative, then search for the first ld in PATH.
4160 with_gnu_ld=unknown
4161 ;;
4162 esac
4163elif test "$with_gnu_ld" = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4165$as_echo_n "checking for GNU ld... " >&6; }
4166else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4168$as_echo_n "checking for non-GNU ld... " >&6; }
4169fi
4170if ${lt_cv_path_LD+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172else
4173 if test -z "$LD"; then
4174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4175 for ac_dir in $PATH; do
4176 IFS="$lt_save_ifs"
4177 test -z "$ac_dir" && ac_dir=.
4178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4179 lt_cv_path_LD="$ac_dir/$ac_prog"
4180 # Check to see if the program is GNU ld. I'd rather use --version,
4181 # but apparently some variants of GNU ld only accept -v.
4182 # Break only if it was the GNU/non-GNU ld that we prefer.
4183 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4184 *GNU* | *'with BFD'*)
4185 test "$with_gnu_ld" != no && break
4186 ;;
4187 *)
4188 test "$with_gnu_ld" != yes && break
4189 ;;
4190 esac
4191 fi
4192 done
4193 IFS="$lt_save_ifs"
4194else
4195 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4196fi
4197fi
4198
4199LD="$lt_cv_path_LD"
4200if test -n "$LD"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4202$as_echo "$LD" >&6; }
4203else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4209$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4210if ${lt_cv_prog_gnu_ld+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212else
4213 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4214case `$LD -v 2>&1 </dev/null` in
4215*GNU* | *'with BFD'*)
4216 lt_cv_prog_gnu_ld=yes
4217 ;;
4218*)
4219 lt_cv_prog_gnu_ld=no
4220 ;;
4221esac
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4224$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4225with_gnu_ld=$lt_cv_prog_gnu_ld
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4236$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4237if ${lt_cv_path_NM+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 if test -n "$NM"; then
4241 # Let the user override the test.
4242 lt_cv_path_NM="$NM"
4243else
4244 lt_nm_to_check="${ac_tool_prefix}nm"
4245 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4246 lt_nm_to_check="$lt_nm_to_check nm"
4247 fi
4248 for lt_tmp_nm in $lt_nm_to_check; do
4249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4251 IFS="$lt_save_ifs"
4252 test -z "$ac_dir" && ac_dir=.
4253 tmp_nm="$ac_dir/$lt_tmp_nm"
4254 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4255 # Check to see if the nm accepts a BSD-compat flag.
4256 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4257 # nm: unknown option "B" ignored
4258 # Tru64's nm complains that /dev/null is an invalid object file
4259 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4260 */dev/null* | *'Invalid file or object type'*)
4261 lt_cv_path_NM="$tmp_nm -B"
4262 break
4263 ;;
4264 *)
4265 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4266 */dev/null*)
4267 lt_cv_path_NM="$tmp_nm -p"
4268 break
4269 ;;
4270 *)
4271 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4272 continue # so that we can try to find one that supports BSD flags
4273 ;;
4274 esac
4275 ;;
4276 esac
4277 fi
4278 done
4279 IFS="$lt_save_ifs"
4280 done
4281 : ${lt_cv_path_NM=no}
4282fi
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4285$as_echo "$lt_cv_path_NM" >&6; }
4286if test "$lt_cv_path_NM" != "no"; then
4287 NM="$lt_cv_path_NM"
4288else
4289 # Didn't find any BSD compatible name lister, look for dumpbin.
4290 if test -n "$DUMPBIN"; then :
4291 # Let the user override the test.
4292 else
4293 if test -n "$ac_tool_prefix"; then
4294 for ac_prog in dumpbin "link -dump"
4295 do
4296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
4300if ${ac_cv_prog_DUMPBIN+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 if test -n "$DUMPBIN"; then
4304 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4305else
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318 done
4319IFS=$as_save_IFS
4320
4321fi
4322fi
4323DUMPBIN=$ac_cv_prog_DUMPBIN
4324if test -n "$DUMPBIN"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4326$as_echo "$DUMPBIN" >&6; }
4327else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330fi
4331
4332
4333 test -n "$DUMPBIN" && break
4334 done
4335fi
4336if test -z "$DUMPBIN"; then
4337 ac_ct_DUMPBIN=$DUMPBIN
4338 for ac_prog in dumpbin "link -dump"
4339do
4340 # Extract the first word of "$ac_prog", so it can be a program name with args.
4341set dummy $ac_prog; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 if test -n "$ac_ct_DUMPBIN"; then
4348 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362 done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4368if test -n "$ac_ct_DUMPBIN"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4370$as_echo "$ac_ct_DUMPBIN" >&6; }
4371else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377 test -n "$ac_ct_DUMPBIN" && break
4378done
4379
4380 if test "x$ac_ct_DUMPBIN" = x; then
4381 DUMPBIN=":"
4382 else
4383 case $cross_compiling:$ac_tool_warned in
4384yes:)
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387ac_tool_warned=yes ;;
4388esac
4389 DUMPBIN=$ac_ct_DUMPBIN
4390 fi
4391fi
4392
4393 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4394 *COFF*)
4395 DUMPBIN="$DUMPBIN -symbols"
4396 ;;
4397 *)
4398 DUMPBIN=:
4399 ;;
4400 esac
4401 fi
4402
4403 if test "$DUMPBIN" != ":"; then
4404 NM="$DUMPBIN"
4405 fi
4406fi
4407test -z "$NM" && NM=nm
4408
4409
4410
4411
4412
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4415$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4416if ${lt_cv_nm_interface+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418else
4419 lt_cv_nm_interface="BSD nm"
4420 echo "int some_variable = 0;" > conftest.$ac_ext
4421 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4422 (eval "$ac_compile" 2>conftest.err)
4423 cat conftest.err >&5
4424 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4425 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4426 cat conftest.err >&5
4427 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4428 cat conftest.out >&5
4429 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4430 lt_cv_nm_interface="MS dumpbin"
4431 fi
4432 rm -f conftest*
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4435$as_echo "$lt_cv_nm_interface" >&6; }
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4438$as_echo_n "checking whether ln -s works... " >&6; }
4439LN_S=$as_ln_s
4440if test "$LN_S" = "ln -s"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442$as_echo "yes" >&6; }
4443else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4445$as_echo "no, using $LN_S" >&6; }
4446fi
4447
4448# find the maximum length of command line arguments
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4450$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4451if ${lt_cv_sys_max_cmd_len+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453else
4454 i=0
4455 teststring="ABCD"
4456
4457 case $build_os in
4458 msdosdjgpp*)
4459 # On DJGPP, this test can blow up pretty badly due to problems in libc
4460 # (any single argument exceeding 2000 bytes causes a buffer overrun
4461 # during glob expansion). Even if it were fixed, the result of this
4462 # check would be larger than it should be.
4463 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4464 ;;
4465
4466 gnu*)
4467 # Under GNU Hurd, this test is not required because there is
4468 # no limit to the length of command line arguments.
4469 # Libtool will interpret -1 as no limit whatsoever
4470 lt_cv_sys_max_cmd_len=-1;
4471 ;;
4472
4473 cygwin* | mingw* | cegcc*)
4474 # On Win9x/ME, this test blows up -- it succeeds, but takes
4475 # about 5 minutes as the teststring grows exponentially.
4476 # Worse, since 9x/ME are not pre-emptively multitasking,
4477 # you end up with a "frozen" computer, even though with patience
4478 # the test eventually succeeds (with a max line length of 256k).
4479 # Instead, let's just punt: use the minimum linelength reported by
4480 # all of the supported platforms: 8192 (on NT/2K/XP).
4481 lt_cv_sys_max_cmd_len=8192;
4482 ;;
4483
4484 mint*)
4485 # On MiNT this can take a long time and run out of memory.
4486 lt_cv_sys_max_cmd_len=8192;
4487 ;;
4488
4489 amigaos*)
4490 # On AmigaOS with pdksh, this test takes hours, literally.
4491 # So we just punt and use a minimum line length of 8192.
4492 lt_cv_sys_max_cmd_len=8192;
4493 ;;
4494
4495 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4496 # This has been around since 386BSD, at least. Likely further.
4497 if test -x /sbin/sysctl; then
4498 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4499 elif test -x /usr/sbin/sysctl; then
4500 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4501 else
4502 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4503 fi
4504 # And add a safety zone
4505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4507 ;;
4508
4509 interix*)
4510 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4511 lt_cv_sys_max_cmd_len=196608
4512 ;;
4513
4514 os2*)
4515 # The test takes a long time on OS/2.
4516 lt_cv_sys_max_cmd_len=8192
4517 ;;
4518
4519 osf*)
4520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4522 # nice to cause kernel panics so lets avoid the loop below.
4523 # First set a reasonable default.
4524 lt_cv_sys_max_cmd_len=16384
4525 #
4526 if test -x /sbin/sysconfig; then
4527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4528 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4529 esac
4530 fi
4531 ;;
4532 sco3.2v5*)
4533 lt_cv_sys_max_cmd_len=102400
4534 ;;
4535 sysv5* | sco5v6* | sysv4.2uw2*)
4536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4537 if test -n "$kargmax"; then
4538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4539 else
4540 lt_cv_sys_max_cmd_len=32768
4541 fi
4542 ;;
4543 *)
4544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4545 if test -n "$lt_cv_sys_max_cmd_len"; then
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4548 else
4549 # Make teststring a little bigger before we do anything with it.
4550 # a 1K string should be a reasonable start.
4551 for i in 1 2 3 4 5 6 7 8 ; do
4552 teststring=$teststring$teststring
4553 done
4554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4555 # If test is not a shell built-in, we'll probably end up computing a
4556 # maximum length that is only half of the actual maximum length, but
4557 # we can't tell.
4558 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4559 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4560 test $i != 17 # 1/2 MB should be enough
4561 do
4562 i=`expr $i + 1`
4563 teststring=$teststring$teststring
4564 done
4565 # Only check the string length outside the loop.
4566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4567 teststring=
4568 # Add a significant safety factor because C++ compilers can tack on
4569 # massive amounts of additional arguments before passing them to the
4570 # linker. It appears as though 1/2 is a usable value.
4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4572 fi
4573 ;;
4574 esac
4575
4576fi
4577
4578if test -n $lt_cv_sys_max_cmd_len ; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4580$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4581else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4583$as_echo "none" >&6; }
4584fi
4585max_cmd_len=$lt_cv_sys_max_cmd_len
4586
4587
4588
4589
4590
4591
4592: ${CP="cp -f"}
4593: ${MV="mv -f"}
4594: ${RM="rm -f"}
4595
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4597$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4598# Try some XSI features
4599xsi_shell=no
4600( _lt_dummy="a/b/c"
4601 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4602 = c,a/b,b/c, \
4603 && eval 'test $(( 1 + 1 )) -eq 2 \
4604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4605 && xsi_shell=yes
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4607$as_echo "$xsi_shell" >&6; }
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4611$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4612lt_shell_append=no
4613( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4614 >/dev/null 2>&1 \
4615 && lt_shell_append=yes
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4617$as_echo "$lt_shell_append" >&6; }
4618
4619
4620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4621 lt_unset=unset
4622else
4623 lt_unset=false
4624fi
4625
4626
4627
4628
4629
4630# test EBCDIC or ASCII
4631case `echo X|tr X '\101'` in
4632 A) # ASCII based system
4633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4634 lt_SP2NL='tr \040 \012'
4635 lt_NL2SP='tr \015\012 \040\040'
4636 ;;
4637 *) # EBCDIC based system
4638 lt_SP2NL='tr \100 \n'
4639 lt_NL2SP='tr \r\n \100\100'
4640 ;;
4641esac
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4652$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4653if ${lt_cv_to_host_file_cmd+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655else
4656 case $host in
4657 *-*-mingw* )
4658 case $build in
4659 *-*-mingw* ) # actually msys
4660 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4661 ;;
4662 *-*-cygwin* )
4663 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4664 ;;
4665 * ) # otherwise, assume *nix
4666 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4667 ;;
4668 esac
4669 ;;
4670 *-*-cygwin* )
4671 case $build in
4672 *-*-mingw* ) # actually msys
4673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4674 ;;
4675 *-*-cygwin* )
4676 lt_cv_to_host_file_cmd=func_convert_file_noop
4677 ;;
4678 * ) # otherwise, assume *nix
4679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4680 ;;
4681 esac
4682 ;;
4683 * ) # unhandled hosts (and "normal" native builds)
4684 lt_cv_to_host_file_cmd=func_convert_file_noop
4685 ;;
4686esac
4687
4688fi
4689
4690to_host_file_cmd=$lt_cv_to_host_file_cmd
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4692$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4693
4694
4695
4696
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4699$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4700if ${lt_cv_to_tool_file_cmd+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 #assume ordinary cross tools, or native build.
4704lt_cv_to_tool_file_cmd=func_convert_file_noop
4705case $host in
4706 *-*-mingw* )
4707 case $build in
4708 *-*-mingw* ) # actually msys
4709 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4710 ;;
4711 esac
4712 ;;
4713esac
4714
4715fi
4716
4717to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4719$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4720
4721
4722
4723
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4726$as_echo_n "checking for $LD option to reload object files... " >&6; }
4727if ${lt_cv_ld_reload_flag+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729else
4730 lt_cv_ld_reload_flag='-r'
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4733$as_echo "$lt_cv_ld_reload_flag" >&6; }
4734reload_flag=$lt_cv_ld_reload_flag
4735case $reload_flag in
4736"" | " "*) ;;
4737*) reload_flag=" $reload_flag" ;;
4738esac
4739reload_cmds='$LD$reload_flag -o $output$reload_objs'
4740case $host_os in
4741 cygwin* | mingw* | pw32* | cegcc*)
4742 if test "$GCC" != yes; then
4743 reload_cmds=false
4744 fi
4745 ;;
4746 darwin*)
4747 if test "$GCC" = yes; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4749 else
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4751 fi
4752 ;;
4753esac
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4765set dummy ${ac_tool_prefix}objdump; ac_word=$2
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767$as_echo_n "checking for $ac_word... " >&6; }
4768if ${ac_cv_prog_OBJDUMP+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 if test -n "$OBJDUMP"; then
4772 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4773else
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785done
4786 done
4787IFS=$as_save_IFS
4788
4789fi
4790fi
4791OBJDUMP=$ac_cv_prog_OBJDUMP
4792if test -n "$OBJDUMP"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4794$as_echo "$OBJDUMP" >&6; }
4795else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797$as_echo "no" >&6; }
4798fi
4799
4800
4801fi
4802if test -z "$ac_cv_prog_OBJDUMP"; then
4803 ac_ct_OBJDUMP=$OBJDUMP
4804 # Extract the first word of "objdump", so it can be a program name with args.
4805set dummy objdump; ac_word=$2
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807$as_echo_n "checking for $ac_word... " >&6; }
4808if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 if test -n "$ac_ct_OBJDUMP"; then
4812 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826 done
4827IFS=$as_save_IFS
4828
4829fi
4830fi
4831ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4832if test -n "$ac_ct_OBJDUMP"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4834$as_echo "$ac_ct_OBJDUMP" >&6; }
4835else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840 if test "x$ac_ct_OBJDUMP" = x; then
4841 OBJDUMP="false"
4842 else
4843 case $cross_compiling:$ac_tool_warned in
4844yes:)
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4847ac_tool_warned=yes ;;
4848esac
4849 OBJDUMP=$ac_ct_OBJDUMP
4850 fi
4851else
4852 OBJDUMP="$ac_cv_prog_OBJDUMP"
4853fi
4854
4855test -z "$OBJDUMP" && OBJDUMP=objdump
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4866$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4867if ${lt_cv_deplibs_check_method+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869else
4870 lt_cv_file_magic_cmd='$MAGIC_CMD'
4871lt_cv_file_magic_test_file=
4872lt_cv_deplibs_check_method='unknown'
4873# Need to set the preceding variable on all platforms that support
4874# interlibrary dependencies.
4875# 'none' -- dependencies not supported.
4876# `unknown' -- same as none, but documents that we really don't know.
4877# 'pass_all' -- all dependencies passed with no checks.
4878# 'test_compile' -- check by making test program.
4879# 'file_magic [[regex]]' -- check by looking for files in library path
4880# which responds to the $file_magic_cmd with a given extended regex.
4881# If you have `file' or equivalent on your system and you're not sure
4882# whether `pass_all' will *always* work, you probably want this one.
4883
4884case $host_os in
4885aix[4-9]*)
4886 lt_cv_deplibs_check_method=pass_all
4887 ;;
4888
4889beos*)
4890 lt_cv_deplibs_check_method=pass_all
4891 ;;
4892
4893bsdi[45]*)
4894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4895 lt_cv_file_magic_cmd='/usr/bin/file -L'
4896 lt_cv_file_magic_test_file=/shlib/libc.so
4897 ;;
4898
4899cygwin*)
4900 # func_win32_libid is a shell function defined in ltmain.sh
4901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4902 lt_cv_file_magic_cmd='func_win32_libid'
4903 ;;
4904
4905mingw* | pw32*)
4906 # Base MSYS/MinGW do not provide the 'file' command needed by
4907 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4908 # unless we find 'file', for example because we are cross-compiling.
4909 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4910 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4912 lt_cv_file_magic_cmd='func_win32_libid'
4913 else
4914 # Keep this pattern in sync with the one in func_win32_libid.
4915 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4916 lt_cv_file_magic_cmd='$OBJDUMP -f'
4917 fi
4918 ;;
4919
4920cegcc*)
4921 # use the weaker test based on 'objdump'. See mingw*.
4922 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4923 lt_cv_file_magic_cmd='$OBJDUMP -f'
4924 ;;
4925
4926darwin* | rhapsody*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930freebsd* | dragonfly*)
4931 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4932 case $host_cpu in
4933 i*86 )
4934 # Not sure whether the presence of OpenBSD here was a mistake.
4935 # Let's accept both of them until this is cleared up.
4936 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4937 lt_cv_file_magic_cmd=/usr/bin/file
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4939 ;;
4940 esac
4941 else
4942 lt_cv_deplibs_check_method=pass_all
4943 fi
4944 ;;
4945
4946haiku*)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949
4950hpux10.20* | hpux11*)
4951 lt_cv_file_magic_cmd=/usr/bin/file
4952 case $host_cpu in
4953 ia64*)
4954 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4956 ;;
4957 hppa*64*)
4958 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]'
4959 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4960 ;;
4961 *)
4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4964 ;;
4965 esac
4966 ;;
4967
4968interix[3-9]*)
4969 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4971 ;;
4972
4973irix5* | irix6* | nonstopux*)
4974 case $LD in
4975 *-32|*"-32 ") libmagic=32-bit;;
4976 *-n32|*"-n32 ") libmagic=N32;;
4977 *-64|*"-64 ") libmagic=64-bit;;
4978 *) libmagic=never-match;;
4979 esac
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982
4983# This must be glibc/ELF.
4984linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988netbsd* | netbsdelf*-gnu)
4989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4991 else
4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4993 fi
4994 ;;
4995
4996newos6*)
4997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4998 lt_cv_file_magic_cmd=/usr/bin/file
4999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5000 ;;
5001
5002*nto* | *qnx*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
5005
5006openbsd*)
5007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5009 else
5010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5011 fi
5012 ;;
5013
5014osf3* | osf4* | osf5*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018rdos*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022solaris*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
5026sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5027 lt_cv_deplibs_check_method=pass_all
5028 ;;
5029
5030sysv4 | sysv4.3*)
5031 case $host_vendor in
5032 motorola)
5033 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]'
5034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5035 ;;
5036 ncr)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039 sequent)
5040 lt_cv_file_magic_cmd='/bin/file'
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5042 ;;
5043 sni)
5044 lt_cv_file_magic_cmd='/bin/file'
5045 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5046 lt_cv_file_magic_test_file=/lib/libc.so
5047 ;;
5048 siemens)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051 pc)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054 esac
5055 ;;
5056
5057tpf*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060esac
5061
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5064$as_echo "$lt_cv_deplibs_check_method" >&6; }
5065
5066file_magic_glob=
5067want_nocaseglob=no
5068if test "$build" = "$host"; then
5069 case $host_os in
5070 mingw* | pw32*)
5071 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5072 want_nocaseglob=yes
5073 else
5074 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5075 fi
5076 ;;
5077 esac
5078fi
5079
5080file_magic_cmd=$lt_cv_file_magic_cmd
5081deplibs_check_method=$lt_cv_deplibs_check_method
5082test -z "$deplibs_check_method" && deplibs_check_method=unknown
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105if test -n "$ac_tool_prefix"; then
5106 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5107set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if ${ac_cv_prog_DLLTOOL+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112else
5113 if test -n "$DLLTOOL"; then
5114 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128 done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133DLLTOOL=$ac_cv_prog_DLLTOOL
5134if test -n "$DLLTOOL"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5136$as_echo "$DLLTOOL" >&6; }
5137else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142
5143fi
5144if test -z "$ac_cv_prog_DLLTOOL"; then
5145 ac_ct_DLLTOOL=$DLLTOOL
5146 # Extract the first word of "dlltool", so it can be a program name with args.
5147set dummy dlltool; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 if test -n "$ac_ct_DLLTOOL"; then
5154 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168 done
5169IFS=$as_save_IFS
5170
5171fi
5172fi
5173ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5174if test -n "$ac_ct_DLLTOOL"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5176$as_echo "$ac_ct_DLLTOOL" >&6; }
5177else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5180fi
5181
5182 if test "x$ac_ct_DLLTOOL" = x; then
5183 DLLTOOL="false"
5184 else
5185 case $cross_compiling:$ac_tool_warned in
5186yes:)
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5189ac_tool_warned=yes ;;
5190esac
5191 DLLTOOL=$ac_ct_DLLTOOL
5192 fi
5193else
5194 DLLTOOL="$ac_cv_prog_DLLTOOL"
5195fi
5196
5197test -z "$DLLTOOL" && DLLTOOL=dlltool
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5209$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5210if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 lt_cv_sharedlib_from_linklib_cmd='unknown'
5214
5215case $host_os in
5216cygwin* | mingw* | pw32* | cegcc*)
5217 # two different shell functions defined in ltmain.sh
5218 # decide which to use based on capabilities of $DLLTOOL
5219 case `$DLLTOOL --help 2>&1` in
5220 *--identify-strict*)
5221 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5222 ;;
5223 *)
5224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5225 ;;
5226 esac
5227 ;;
5228*)
5229 # fallback: assume linklib IS sharedlib
5230 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5231 ;;
5232esac
5233
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5236$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5237sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5238test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5239
5240
5241
5242
5243
5244
5245
5246
5247if test -n "$ac_tool_prefix"; then
5248 for ac_prog in ar
5249 do
5250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_AR+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256else
5257 if test -n "$AR"; then
5258 ac_cv_prog_AR="$AR" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271done
5272 done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277AR=$ac_cv_prog_AR
5278if test -n "$AR"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5280$as_echo "$AR" >&6; }
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286
5287 test -n "$AR" && break
5288 done
5289fi
5290if test -z "$AR"; then
5291 ac_ct_AR=$AR
5292 for ac_prog in ar
5293do
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295set dummy $ac_prog; ac_word=$2
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297$as_echo_n "checking for $ac_word... " >&6; }
5298if ${ac_cv_prog_ac_ct_AR+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300else
5301 if test -n "$ac_ct_AR"; then
5302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_ac_ct_AR="$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316 done
5317IFS=$as_save_IFS
5318
5319fi
5320fi
5321ac_ct_AR=$ac_cv_prog_ac_ct_AR
5322if test -n "$ac_ct_AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5324$as_echo "$ac_ct_AR" >&6; }
5325else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329
5330
5331 test -n "$ac_ct_AR" && break
5332done
5333
5334 if test "x$ac_ct_AR" = x; then
5335 AR="false"
5336 else
5337 case $cross_compiling:$ac_tool_warned in
5338yes:)
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341ac_tool_warned=yes ;;
5342esac
5343 AR=$ac_ct_AR
5344 fi
5345fi
5346
5347: ${AR=ar}
5348: ${AR_FLAGS=cru}
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5361$as_echo_n "checking for archiver @FILE support... " >&6; }
5362if ${lt_cv_ar_at_file+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364else
5365 lt_cv_ar_at_file=no
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h. */
5368
5369int
5370main ()
5371{
5372
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377if ac_fn_c_try_compile "$LINENO"; then :
5378 echo conftest.$ac_objext > conftest.lst
5379 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5381 (eval $lt_ar_try) 2>&5
5382 ac_status=$?
5383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384 test $ac_status = 0; }
5385 if test "$ac_status" -eq 0; then
5386 # Ensure the archiver fails upon bogus file names.
5387 rm -f conftest.$ac_objext libconftest.a
5388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5389 (eval $lt_ar_try) 2>&5
5390 ac_status=$?
5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392 test $ac_status = 0; }
5393 if test "$ac_status" -ne 0; then
5394 lt_cv_ar_at_file=@
5395 fi
5396 fi
5397 rm -f conftest.* libconftest.a
5398
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401
5402fi
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5404$as_echo "$lt_cv_ar_at_file" >&6; }
5405
5406if test "x$lt_cv_ar_at_file" = xno; then
5407 archiver_list_spec=
5408else
5409 archiver_list_spec=$lt_cv_ar_at_file
5410fi
5411
5412
5413
5414
5415
5416
5417
5418if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5420set dummy ${ac_tool_prefix}strip; ac_word=$2
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422$as_echo_n "checking for $ac_word... " >&6; }
5423if ${ac_cv_prog_STRIP+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 if test -n "$STRIP"; then
5427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
5441 done
5442IFS=$as_save_IFS
5443
5444fi
5445fi
5446STRIP=$ac_cv_prog_STRIP
5447if test -n "$STRIP"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5449$as_echo "$STRIP" >&6; }
5450else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453fi
5454
5455
5456fi
5457if test -z "$ac_cv_prog_STRIP"; then
5458 ac_ct_STRIP=$STRIP
5459 # Extract the first word of "strip", so it can be a program name with args.
5460set dummy strip; ac_word=$2
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462$as_echo_n "checking for $ac_word... " >&6; }
5463if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465else
5466 if test -n "$ac_ct_STRIP"; then
5467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_STRIP="strip"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480done
5481 done
5482IFS=$as_save_IFS
5483
5484fi
5485fi
5486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5487if test -n "$ac_ct_STRIP"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5489$as_echo "$ac_ct_STRIP" >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495 if test "x$ac_ct_STRIP" = x; then
5496 STRIP=":"
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499yes:)
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502ac_tool_warned=yes ;;
5503esac
5504 STRIP=$ac_ct_STRIP
5505 fi
5506else
5507 STRIP="$ac_cv_prog_STRIP"
5508fi
5509
5510test -z "$STRIP" && STRIP=:
5511
5512
5513
5514
5515
5516
5517if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521$as_echo_n "checking for $ac_word... " >&6; }
5522if ${ac_cv_prog_RANLIB+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524else
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527else
5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH
5530do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539done
5540 done
5541IFS=$as_save_IFS
5542
5543fi
5544fi
5545RANLIB=$ac_cv_prog_RANLIB
5546if test -n "$RANLIB"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548$as_echo "$RANLIB" >&6; }
5549else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }
5552fi
5553
5554
5555fi
5556if test -z "$ac_cv_prog_RANLIB"; then
5557 ac_ct_RANLIB=$RANLIB
5558 # Extract the first word of "ranlib", so it can be a program name with args.
5559set dummy ranlib; ac_word=$2
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561$as_echo_n "checking for $ac_word... " >&6; }
5562if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564else
5565 if test -n "$ac_ct_RANLIB"; then
5566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5567else
5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_ac_ct_RANLIB="ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579done
5580 done
5581IFS=$as_save_IFS
5582
5583fi
5584fi
5585ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586if test -n "$ac_ct_RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588$as_echo "$ac_ct_RANLIB" >&6; }
5589else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593
5594 if test "x$ac_ct_RANLIB" = x; then
5595 RANLIB=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598yes:)
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601ac_tool_warned=yes ;;
5602esac
5603 RANLIB=$ac_ct_RANLIB
5604 fi
5605else
5606 RANLIB="$ac_cv_prog_RANLIB"
5607fi
5608
5609test -z "$RANLIB" && RANLIB=:
5610
5611
5612
5613
5614
5615
5616# Determine commands to create old-style static archives.
5617old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5618old_postinstall_cmds='chmod 644 $oldlib'
5619old_postuninstall_cmds=
5620
5621if test -n "$RANLIB"; then
5622 case $host_os in
5623 openbsd*)
5624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5625 ;;
5626 *)
5627 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5628 ;;
5629 esac
5630 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5631fi
5632
5633case $host_os in
5634 darwin*)
5635 lock_old_archive_extraction=yes ;;
5636 *)
5637 lock_old_archive_extraction=no ;;
5638esac
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678# If no C compiler was specified, use CC.
5679LTCC=${LTCC-"$CC"}
5680
5681# If no C compiler flags were specified, use CFLAGS.
5682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5683
5684# Allow CC to be a program name with arguments.
5685compiler=$CC
5686
5687
5688# Check for command to grab the raw symbol name followed by C symbol from nm.
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5690$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5691if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693else
5694
5695# These are sane defaults that work on at least a few old systems.
5696# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5697
5698# Character class describing NM global symbol codes.
5699symcode='[BCDEGRST]'
5700
5701# Regexp to match symbols that can be accessed directly from C.
5702sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5703
5704# Define system-specific variables.
5705case $host_os in
5706aix*)
5707 symcode='[BCDT]'
5708 ;;
5709cygwin* | mingw* | pw32* | cegcc*)
5710 symcode='[ABCDGISTW]'
5711 ;;
5712hpux*)
5713 if test "$host_cpu" = ia64; then
5714 symcode='[ABCDEGRST]'
5715 fi
5716 ;;
5717irix* | nonstopux*)
5718 symcode='[BCDEGRST]'
5719 ;;
5720osf*)
5721 symcode='[BCDEGQRST]'
5722 ;;
5723solaris*)
5724 symcode='[BDRT]'
5725 ;;
5726sco3.2v5*)
5727 symcode='[DT]'
5728 ;;
5729sysv4.2uw2*)
5730 symcode='[DT]'
5731 ;;
5732sysv5* | sco5v6* | unixware* | OpenUNIX*)
5733 symcode='[ABDT]'
5734 ;;
5735sysv4)
5736 symcode='[DFNSTU]'
5737 ;;
5738esac
5739
5740# If we're using GNU nm, then use its standard symbol codes.
5741case `$NM -V 2>&1` in
5742*GNU* | *'with BFD'*)
5743 symcode='[ABCDGIRSTW]' ;;
5744esac
5745
5746# Transform an extracted symbol line into a proper C declaration.
5747# Some systems (esp. on ia64) link data and code symbols differently,
5748# so use this general approach.
5749lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5750
5751# Transform an extracted symbol line into symbol name and symbol address
5752lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5753lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5754
5755# Handle CRLF in mingw tool chain
5756opt_cr=
5757case $build_os in
5758mingw*)
5759 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5760 ;;
5761esac
5762
5763# Try without a prefix underscore, then with it.
5764for ac_symprfx in "" "_"; do
5765
5766 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5767 symxfrm="\\1 $ac_symprfx\\2 \\2"
5768
5769 # Write the raw and C identifiers.
5770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5771 # Fake it for dumpbin and say T for any non-static function
5772 # and D for any global variable.
5773 # Also find C++ and __fastcall symbols from MSVC++,
5774 # which start with @ or ?.
5775 lt_cv_sys_global_symbol_pipe="$AWK '"\
5776" {last_section=section; section=\$ 3};"\
5777" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5778" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5779" \$ 0!~/External *\|/{next};"\
5780" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5781" {if(hide[section]) next};"\
5782" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5783" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5784" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5785" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5786" ' prfx=^$ac_symprfx"
5787 else
5788 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5789 fi
5790 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5791
5792 # Check to see that the pipe works correctly.
5793 pipe_works=no
5794
5795 rm -f conftest*
5796 cat > conftest.$ac_ext <<_LT_EOF
5797#ifdef __cplusplus
5798extern "C" {
5799#endif
5800char nm_test_var;
5801void nm_test_func(void);
5802void nm_test_func(void){}
5803#ifdef __cplusplus
5804}
5805#endif
5806int main(){nm_test_var='a';nm_test_func();return(0);}
5807_LT_EOF
5808
5809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }; then
5814 # Now try to grab the symbols.
5815 nlist=conftest.nm
5816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5817 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5818 ac_status=$?
5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820 test $ac_status = 0; } && test -s "$nlist"; then
5821 # Try sorting and uniquifying the output.
5822 if sort "$nlist" | uniq > "$nlist"T; then
5823 mv -f "$nlist"T "$nlist"
5824 else
5825 rm -f "$nlist"T
5826 fi
5827
5828 # Make sure that we snagged all the symbols we need.
5829 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5830 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5831 cat <<_LT_EOF > conftest.$ac_ext
5832/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5833#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5834/* DATA imports from DLLs on WIN32 con't be const, because runtime
5835 relocations are performed -- see ld's documentation on pseudo-relocs. */
5836# define LT_DLSYM_CONST
5837#elif defined(__osf__)
5838/* This system does not cope well with relocations in const data. */
5839# define LT_DLSYM_CONST
5840#else
5841# define LT_DLSYM_CONST const
5842#endif
5843
5844#ifdef __cplusplus
5845extern "C" {
5846#endif
5847
5848_LT_EOF
5849 # Now generate the symbol file.
5850 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5851
5852 cat <<_LT_EOF >> conftest.$ac_ext
5853
5854/* The mapping between symbol names and symbols. */
5855LT_DLSYM_CONST struct {
5856 const char *name;
5857 void *address;
5858}
5859lt__PROGRAM__LTX_preloaded_symbols[] =
5860{
5861 { "@PROGRAM@", (void *) 0 },
5862_LT_EOF
5863 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5864 cat <<\_LT_EOF >> conftest.$ac_ext
5865 {0, (void *) 0}
5866};
5867
5868/* This works around a problem in FreeBSD linker */
5869#ifdef FREEBSD_WORKAROUND
5870static const void *lt_preloaded_setup() {
5871 return lt__PROGRAM__LTX_preloaded_symbols;
5872}
5873#endif
5874
5875#ifdef __cplusplus
5876}
5877#endif
5878_LT_EOF
5879 # Now try linking the two files.
5880 mv conftest.$ac_objext conftstm.$ac_objext
5881 lt_globsym_save_LIBS=$LIBS
5882 lt_globsym_save_CFLAGS=$CFLAGS
5883 LIBS="conftstm.$ac_objext"
5884 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5886 (eval $ac_link) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5890 pipe_works=yes
5891 fi
5892 LIBS=$lt_globsym_save_LIBS
5893 CFLAGS=$lt_globsym_save_CFLAGS
5894 else
5895 echo "cannot find nm_test_func in $nlist" >&5
5896 fi
5897 else
5898 echo "cannot find nm_test_var in $nlist" >&5
5899 fi
5900 else
5901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5902 fi
5903 else
5904 echo "$progname: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 fi
5907 rm -rf conftest* conftst*
5908
5909 # Do not use the global_symbol_pipe unless it works.
5910 if test "$pipe_works" = yes; then
5911 break
5912 else
5913 lt_cv_sys_global_symbol_pipe=
5914 fi
5915done
5916
5917fi
5918
5919if test -z "$lt_cv_sys_global_symbol_pipe"; then
5920 lt_cv_sys_global_symbol_to_cdecl=
5921fi
5922if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5924$as_echo "failed" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5927$as_echo "ok" >&6; }
5928fi
5929
5930# Response file support.
5931if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5932 nm_file_list_spec='@'
5933elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5934 nm_file_list_spec='@'
5935fi
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5964$as_echo_n "checking for sysroot... " >&6; }
5965
5966# Check whether --with-sysroot was given.
5967if test "${with_sysroot+set}" = set; then :
5968 withval=$with_sysroot;
5969else
5970 with_sysroot=no
5971fi
5972
5973
5974lt_sysroot=
5975case ${with_sysroot} in #(
5976 yes)
5977 if test "$GCC" = yes; then
5978 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5979 fi
5980 ;; #(
5981 /*)
5982 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5983 ;; #(
5984 no|'')
5985 ;; #(
5986 *)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5988$as_echo "${with_sysroot}" >&6; }
5989 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5990 ;;
5991esac
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5994$as_echo "${lt_sysroot:-no}" >&6; }
5995
5996
5997
5998
5999
6000# Check whether --enable-libtool-lock was given.
6001if test "${enable_libtool_lock+set}" = set; then :
6002 enableval=$enable_libtool_lock;
6003fi
6004
6005test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6006
6007# Some flags need to be propagated to the compiler or linker for good
6008# libtool support.
6009case $host in
6010ia64-*-hpux*)
6011 # Find out which ABI we are using.
6012 echo 'int i;' > conftest.$ac_ext
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
6018 case `/usr/bin/file conftest.$ac_objext` in
6019 *ELF-32*)
6020 HPUX_IA64_MODE="32"
6021 ;;
6022 *ELF-64*)
6023 HPUX_IA64_MODE="64"
6024 ;;
6025 esac
6026 fi
6027 rm -rf conftest*
6028 ;;
6029*-*-irix6*)
6030 # Find out which ABI we are using.
6031 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033 (eval $ac_compile) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }; then
6037 if test "$lt_cv_prog_gnu_ld" = yes; then
6038 case `/usr/bin/file conftest.$ac_objext` in
6039 *32-bit*)
6040 LD="${LD-ld} -melf32bsmip"
6041 ;;
6042 *N32*)
6043 LD="${LD-ld} -melf32bmipn32"
6044 ;;
6045 *64-bit*)
6046 LD="${LD-ld} -melf64bmip"
6047 ;;
6048 esac
6049 else
6050 case `/usr/bin/file conftest.$ac_objext` in
6051 *32-bit*)
6052 LD="${LD-ld} -32"
6053 ;;
6054 *N32*)
6055 LD="${LD-ld} -n32"
6056 ;;
6057 *64-bit*)
6058 LD="${LD-ld} -64"
6059 ;;
6060 esac
6061 fi
6062 fi
6063 rm -rf conftest*
6064 ;;
6065
6066x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6067s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6068 # Find out which ABI we are using.
6069 echo 'int i;' > conftest.$ac_ext
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071 (eval $ac_compile) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; then
6075 case `/usr/bin/file conftest.o` in
6076 *32-bit*)
6077 case $host in
6078 x86_64-*kfreebsd*-gnu)
6079 LD="${LD-ld} -m elf_i386_fbsd"
6080 ;;
6081 x86_64-*linux*)
6082 LD="${LD-ld} -m elf_i386"
6083 ;;
6084 ppc64-*linux*|powerpc64-*linux*)
6085 LD="${LD-ld} -m elf32ppclinux"
6086 ;;
6087 s390x-*linux*)
6088 LD="${LD-ld} -m elf_s390"
6089 ;;
6090 sparc64-*linux*)
6091 LD="${LD-ld} -m elf32_sparc"
6092 ;;
6093 esac
6094 ;;
6095 *64-bit*)
6096 case $host in
6097 x86_64-*kfreebsd*-gnu)
6098 LD="${LD-ld} -m elf_x86_64_fbsd"
6099 ;;
6100 x86_64-*linux*)
6101 LD="${LD-ld} -m elf_x86_64"
6102 ;;
6103 ppc*-*linux*|powerpc*-*linux*)
6104 LD="${LD-ld} -m elf64ppc"
6105 ;;
6106 s390*-*linux*|s390*-*tpf*)
6107 LD="${LD-ld} -m elf64_s390"
6108 ;;
6109 sparc*-*linux*)
6110 LD="${LD-ld} -m elf64_sparc"
6111 ;;
6112 esac
6113 ;;
6114 esac
6115 fi
6116 rm -rf conftest*
6117 ;;
6118
6119*-*-sco3.2v5*)
6120 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6121 SAVE_CFLAGS="$CFLAGS"
6122 CFLAGS="$CFLAGS -belf"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6124$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6125if ${lt_cv_cc_needs_belf+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127else
6128 ac_ext=c
6129ac_cpp='$CPP $CPPFLAGS'
6130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h. */
6136
6137int
6138main ()
6139{
6140
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145if ac_fn_c_try_link "$LINENO"; then :
6146 lt_cv_cc_needs_belf=yes
6147else
6148 lt_cv_cc_needs_belf=no
6149fi
6150rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6152 ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158fi
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6160$as_echo "$lt_cv_cc_needs_belf" >&6; }
6161 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6162 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6163 CFLAGS="$SAVE_CFLAGS"
6164 fi
6165 ;;
6166*-*solaris*)
6167 # Find out which ABI we are using.
6168 echo 'int i;' > conftest.$ac_ext
6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6170 (eval $ac_compile) 2>&5
6171 ac_status=$?
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; }; then
6174 case `/usr/bin/file conftest.o` in
6175 *64-bit*)
6176 case $lt_cv_prog_gnu_ld in
6177 yes*)
6178 case $host in
6179 i?86-*-solaris*)
6180 LD="${LD-ld} -m elf_x86_64"
6181 ;;
6182 sparc*-*-solaris*)
6183 LD="${LD-ld} -m elf64_sparc"
6184 ;;
6185 esac
6186 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6187 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6188 LD="${LD-ld}_sol2"
6189 fi
6190 ;;
6191 *)
6192 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6193 LD="${LD-ld} -64"
6194 fi
6195 ;;
6196 esac
6197 ;;
6198 esac
6199 fi
6200 rm -rf conftest*
6201 ;;
6202esac
6203
6204need_locks="$enable_libtool_lock"
6205
6206if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6208set dummy ${ac_tool_prefix}mt; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
6211if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213else
6214 if test -n "$MANIFEST_TOOL"; then
6215 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228done
6229 done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6235if test -n "$MANIFEST_TOOL"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6237$as_echo "$MANIFEST_TOOL" >&6; }
6238else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243
6244fi
6245if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6246 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6247 # Extract the first word of "mt", so it can be a program name with args.
6248set dummy mt; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
6251if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253else
6254 if test -n "$ac_ct_MANIFEST_TOOL"; then
6255 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269 done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6275if test -n "$ac_ct_MANIFEST_TOOL"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6277$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6284 MANIFEST_TOOL=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6293 fi
6294else
6295 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6296fi
6297
6298test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6300$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6301if ${lt_cv_path_mainfest_tool+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 lt_cv_path_mainfest_tool=no
6305 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6306 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6307 cat conftest.err >&5
6308 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6309 lt_cv_path_mainfest_tool=yes
6310 fi
6311 rm -f conftest*
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6314$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6315if test "x$lt_cv_path_mainfest_tool" != xyes; then
6316 MANIFEST_TOOL=:
6317fi
6318
6319
6320
6321
6322
6323
6324 case $host_os in
6325 rhapsody* | darwin*)
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6328set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_DSYMUTIL+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333else
6334 if test -n "$DSYMUTIL"; then
6335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349 done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354DSYMUTIL=$ac_cv_prog_DSYMUTIL
6355if test -n "$DSYMUTIL"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6357$as_echo "$DSYMUTIL" >&6; }
6358else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363
6364fi
6365if test -z "$ac_cv_prog_DSYMUTIL"; then
6366 ac_ct_DSYMUTIL=$DSYMUTIL
6367 # Extract the first word of "dsymutil", so it can be a program name with args.
6368set dummy dsymutil; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373else
6374 if test -n "$ac_ct_DSYMUTIL"; then
6375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6395if test -n "$ac_ct_DSYMUTIL"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6397$as_echo "$ac_ct_DSYMUTIL" >&6; }
6398else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403 if test "x$ac_ct_DSYMUTIL" = x; then
6404 DSYMUTIL=":"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407yes:)
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410ac_tool_warned=yes ;;
6411esac
6412 DSYMUTIL=$ac_ct_DSYMUTIL
6413 fi
6414else
6415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6416fi
6417
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6420set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_NMEDIT+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425else
6426 if test -n "$NMEDIT"; then
6427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441 done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446NMEDIT=$ac_cv_prog_NMEDIT
6447if test -n "$NMEDIT"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6449$as_echo "$NMEDIT" >&6; }
6450else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455
6456fi
6457if test -z "$ac_cv_prog_NMEDIT"; then
6458 ac_ct_NMEDIT=$NMEDIT
6459 # Extract the first word of "nmedit", so it can be a program name with args.
6460set dummy nmedit; ac_word=$2
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462$as_echo_n "checking for $ac_word... " >&6; }
6463if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465else
6466 if test -n "$ac_ct_NMEDIT"; then
6467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480done
6481 done
6482IFS=$as_save_IFS
6483
6484fi
6485fi
6486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6487if test -n "$ac_ct_NMEDIT"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6489$as_echo "$ac_ct_NMEDIT" >&6; }
6490else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493fi
6494
6495 if test "x$ac_ct_NMEDIT" = x; then
6496 NMEDIT=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499yes:)
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502ac_tool_warned=yes ;;
6503esac
6504 NMEDIT=$ac_ct_NMEDIT
6505 fi
6506else
6507 NMEDIT="$ac_cv_prog_NMEDIT"
6508fi
6509
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6512set dummy ${ac_tool_prefix}lipo; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if ${ac_cv_prog_LIPO+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517else
6518 if test -n "$LIPO"; then
6519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533 done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538LIPO=$ac_cv_prog_LIPO
6539if test -n "$LIPO"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6541$as_echo "$LIPO" >&6; }
6542else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548fi
6549if test -z "$ac_cv_prog_LIPO"; then
6550 ac_ct_LIPO=$LIPO
6551 # Extract the first word of "lipo", so it can be a program name with args.
6552set dummy lipo; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
6555if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557else
6558 if test -n "$ac_ct_LIPO"; then
6559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_LIPO="lipo"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573 done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6579if test -n "$ac_ct_LIPO"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6581$as_echo "$ac_ct_LIPO" >&6; }
6582else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587 if test "x$ac_ct_LIPO" = x; then
6588 LIPO=":"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591yes:)
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594ac_tool_warned=yes ;;
6595esac
6596 LIPO=$ac_ct_LIPO
6597 fi
6598else
6599 LIPO="$ac_cv_prog_LIPO"
6600fi
6601
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6604set dummy ${ac_tool_prefix}otool; ac_word=$2
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if ${ac_cv_prog_OTOOL+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$OTOOL"; then
6611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625 done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630OTOOL=$ac_cv_prog_OTOOL
6631if test -n "$OTOOL"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6633$as_echo "$OTOOL" >&6; }
6634else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
6638
6639
6640fi
6641if test -z "$ac_cv_prog_OTOOL"; then
6642 ac_ct_OTOOL=$OTOOL
6643 # Extract the first word of "otool", so it can be a program name with args.
6644set dummy otool; ac_word=$2
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646$as_echo_n "checking for $ac_word... " >&6; }
6647if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649else
6650 if test -n "$ac_ct_OTOOL"; then
6651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_OTOOL="otool"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665 done
6666IFS=$as_save_IFS
6667
6668fi
6669fi
6670ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6671if test -n "$ac_ct_OTOOL"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6673$as_echo "$ac_ct_OTOOL" >&6; }
6674else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676$as_echo "no" >&6; }
6677fi
6678
6679 if test "x$ac_ct_OTOOL" = x; then
6680 OTOOL=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683yes:)
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686ac_tool_warned=yes ;;
6687esac
6688 OTOOL=$ac_ct_OTOOL
6689 fi
6690else
6691 OTOOL="$ac_cv_prog_OTOOL"
6692fi
6693
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6696set dummy ${ac_tool_prefix}otool64; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if ${ac_cv_prog_OTOOL64+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 if test -n "$OTOOL64"; then
6703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717 done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722OTOOL64=$ac_cv_prog_OTOOL64
6723if test -n "$OTOOL64"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6725$as_echo "$OTOOL64" >&6; }
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731
6732fi
6733if test -z "$ac_cv_prog_OTOOL64"; then
6734 ac_ct_OTOOL64=$OTOOL64
6735 # Extract the first word of "otool64", so it can be a program name with args.
6736set dummy otool64; ac_word=$2
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738$as_echo_n "checking for $ac_word... " >&6; }
6739if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741else
6742 if test -n "$ac_ct_OTOOL64"; then
6743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6744else
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_OTOOL64="otool64"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756done
6757 done
6758IFS=$as_save_IFS
6759
6760fi
6761fi
6762ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6763if test -n "$ac_ct_OTOOL64"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6765$as_echo "$ac_ct_OTOOL64" >&6; }
6766else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768$as_echo "no" >&6; }
6769fi
6770
6771 if test "x$ac_ct_OTOOL64" = x; then
6772 OTOOL64=":"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775yes:)
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778ac_tool_warned=yes ;;
6779esac
6780 OTOOL64=$ac_ct_OTOOL64
6781 fi
6782else
6783 OTOOL64="$ac_cv_prog_OTOOL64"
6784fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6813$as_echo_n "checking for -single_module linker flag... " >&6; }
6814if ${lt_cv_apple_cc_single_mod+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816else
6817 lt_cv_apple_cc_single_mod=no
6818 if test -z "${LT_MULTI_MODULE}"; then
6819 # By default we will add the -single_module flag. You can override
6820 # by either setting the environment variable LT_MULTI_MODULE
6821 # non-empty at configure time, or by adding -multi_module to the
6822 # link flags.
6823 rm -rf libconftest.dylib*
6824 echo "int foo(void){return 1;}" > conftest.c
6825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6826-dynamiclib -Wl,-single_module conftest.c" >&5
6827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6829 _lt_result=$?
6830 # If there is a non-empty error log, and "single_module"
6831 # appears in it, assume the flag caused a linker warning
6832 if test -s conftest.err && $GREP single_module conftest.err; then
6833 cat conftest.err >&5
6834 # Otherwise, if the output was created with a 0 exit code from
6835 # the compiler, it worked.
6836 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6837 lt_cv_apple_cc_single_mod=yes
6838 else
6839 cat conftest.err >&5
6840 fi
6841 rm -rf libconftest.dylib*
6842 rm -f conftest.*
6843 fi
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6846$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6849$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6850if ${lt_cv_ld_exported_symbols_list+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852else
6853 lt_cv_ld_exported_symbols_list=no
6854 save_LDFLAGS=$LDFLAGS
6855 echo "_main" > conftest.sym
6856 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h. */
6859
6860int
6861main ()
6862{
6863
6864 ;
6865 return 0;
6866}
6867_ACEOF
6868if ac_fn_c_try_link "$LINENO"; then :
6869 lt_cv_ld_exported_symbols_list=yes
6870else
6871 lt_cv_ld_exported_symbols_list=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 LDFLAGS="$save_LDFLAGS"
6876
6877fi
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6879$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6882$as_echo_n "checking for -force_load linker flag... " >&6; }
6883if ${lt_cv_ld_force_load+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885else
6886 lt_cv_ld_force_load=no
6887 cat > conftest.c << _LT_EOF
6888int forced_loaded() { return 2;}
6889_LT_EOF
6890 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6891 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6892 echo "$AR cru libconftest.a conftest.o" >&5
6893 $AR cru libconftest.a conftest.o 2>&5
6894 echo "$RANLIB libconftest.a" >&5
6895 $RANLIB libconftest.a 2>&5
6896 cat > conftest.c << _LT_EOF
6897int main() { return 0;}
6898_LT_EOF
6899 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6900 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6901 _lt_result=$?
6902 if test -s conftest.err && $GREP force_load conftest.err; then
6903 cat conftest.err >&5
6904 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6905 lt_cv_ld_force_load=yes
6906 else
6907 cat conftest.err >&5
6908 fi
6909 rm -f conftest.err libconftest.a conftest conftest.c
6910 rm -rf conftest.dSYM
6911
6912fi
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6914$as_echo "$lt_cv_ld_force_load" >&6; }
6915 case $host_os in
6916 rhapsody* | darwin1.[012])
6917 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6918 darwin1.*)
6919 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6920 darwin*) # darwin 5.x on
6921 # if running on 10.5 or later, the deployment target defaults
6922 # to the OS version, if on x86, and 10.4, the deployment
6923 # target defaults to 10.4. Don't you love it?
6924 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6925 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6926 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6927 10.[012]*)
6928 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6929 10.*)
6930 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6931 esac
6932 ;;
6933 esac
6934 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6935 _lt_dar_single_mod='$single_module'
6936 fi
6937 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6938 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6939 else
6940 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6941 fi
6942 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6943 _lt_dsymutil='~$DSYMUTIL $lib || :'
6944 else
6945 _lt_dsymutil=
6946 fi
6947 ;;
6948 esac
6949
6950ac_ext=c
6951ac_cpp='$CPP $CPPFLAGS'
6952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6956$as_echo_n "checking how to run the C preprocessor... " >&6; }
6957# On Suns, sometimes $CPP names a directory.
6958if test -n "$CPP" && test -d "$CPP"; then
6959 CPP=
6960fi
6961if test -z "$CPP"; then
6962 if ${ac_cv_prog_CPP+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964else
6965 # Double quotes because CPP needs to be expanded
6966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6967 do
6968 ac_preproc_ok=false
6969for ac_c_preproc_warn_flag in '' yes
6970do
6971 # Use a header file that comes with gcc, so configuring glibc
6972 # with a fresh cross-compiler works.
6973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 # <limits.h> exists even on freestanding compilers.
6975 # On the NeXT, cc -E runs the code through the compiler's parser,
6976 # not just through cpp. "Syntax error" is here to catch this case.
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h. */
6979#ifdef __STDC__
6980# include <limits.h>
6981#else
6982# include <assert.h>
6983#endif
6984 Syntax error
6985_ACEOF
6986if ac_fn_c_try_cpp "$LINENO"; then :
6987
6988else
6989 # Broken: fails on valid input.
6990continue
6991fi
6992rm -f conftest.err conftest.i conftest.$ac_ext
6993
6994 # OK, works on sane cases. Now check whether nonexistent headers
6995 # can be detected and how.
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h. */
6998#include <ac_nonexistent.h>
6999_ACEOF
7000if ac_fn_c_try_cpp "$LINENO"; then :
7001 # Broken: success on invalid input.
7002continue
7003else
7004 # Passes both tests.
7005ac_preproc_ok=:
7006break
7007fi
7008rm -f conftest.err conftest.i conftest.$ac_ext
7009
7010done
7011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7012rm -f conftest.i conftest.err conftest.$ac_ext
7013if $ac_preproc_ok; then :
7014 break
7015fi
7016
7017 done
7018 ac_cv_prog_CPP=$CPP
7019
7020fi
7021 CPP=$ac_cv_prog_CPP
7022else
7023 ac_cv_prog_CPP=$CPP
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7026$as_echo "$CPP" >&6; }
7027ac_preproc_ok=false
7028for ac_c_preproc_warn_flag in '' yes
7029do
7030 # Use a header file that comes with gcc, so configuring glibc
7031 # with a fresh cross-compiler works.
7032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033 # <limits.h> exists even on freestanding compilers.
7034 # On the NeXT, cc -E runs the code through the compiler's parser,
7035 # not just through cpp. "Syntax error" is here to catch this case.
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h. */
7038#ifdef __STDC__
7039# include <limits.h>
7040#else
7041# include <assert.h>
7042#endif
7043 Syntax error
7044_ACEOF
7045if ac_fn_c_try_cpp "$LINENO"; then :
7046
7047else
7048 # Broken: fails on valid input.
7049continue
7050fi
7051rm -f conftest.err conftest.i conftest.$ac_ext
7052
7053 # OK, works on sane cases. Now check whether nonexistent headers
7054 # can be detected and how.
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h. */
7057#include <ac_nonexistent.h>
7058_ACEOF
7059if ac_fn_c_try_cpp "$LINENO"; then :
7060 # Broken: success on invalid input.
7061continue
7062else
7063 # Passes both tests.
7064ac_preproc_ok=:
7065break
7066fi
7067rm -f conftest.err conftest.i conftest.$ac_ext
7068
7069done
7070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7071rm -f conftest.i conftest.err conftest.$ac_ext
7072if $ac_preproc_ok; then :
7073
7074else
7075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7077as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7078See \`config.log' for more details" "$LINENO" 5; }
7079fi
7080
7081ac_ext=c
7082ac_cpp='$CPP $CPPFLAGS'
7083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086
7087
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7089$as_echo_n "checking for ANSI C header files... " >&6; }
7090if ${ac_cv_header_stdc+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092else
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h. */
7095#include <stdlib.h>
7096#include <stdarg.h>
7097#include <string.h>
7098#include <float.h>
7099
7100int
7101main ()
7102{
7103
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108if ac_fn_c_try_compile "$LINENO"; then :
7109 ac_cv_header_stdc=yes
7110else
7111 ac_cv_header_stdc=no
7112fi
7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114
7115if test $ac_cv_header_stdc = yes; then
7116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h. */
7119#include <string.h>
7120
7121_ACEOF
7122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "memchr" >/dev/null 2>&1; then :
7124
7125else
7126 ac_cv_header_stdc=no
7127fi
7128rm -f conftest*
7129
7130fi
7131
7132if test $ac_cv_header_stdc = yes; then
7133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h. */
7136#include <stdlib.h>
7137
7138_ACEOF
7139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "free" >/dev/null 2>&1; then :
7141
7142else
7143 ac_cv_header_stdc=no
7144fi
7145rm -f conftest*
7146
7147fi
7148
7149if test $ac_cv_header_stdc = yes; then
7150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7151 if test "$cross_compiling" = yes; then :
7152 :
7153else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h. */
7156#include <ctype.h>
7157#include <stdlib.h>
7158#if ((' ' & 0x0FF) == 0x020)
7159# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7160# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7161#else
7162# define ISLOWER(c) \
7163 (('a' <= (c) && (c) <= 'i') \
7164 || ('j' <= (c) && (c) <= 'r') \
7165 || ('s' <= (c) && (c) <= 'z'))
7166# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7167#endif
7168
7169#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7170int
7171main ()
7172{
7173 int i;
7174 for (i = 0; i < 256; i++)
7175 if (XOR (islower (i), ISLOWER (i))
7176 || toupper (i) != TOUPPER (i))
7177 return 2;
7178 return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_run "$LINENO"; then :
7182
7183else
7184 ac_cv_header_stdc=no
7185fi
7186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187 conftest.$ac_objext conftest.beam conftest.$ac_ext
7188fi
7189
7190fi
7191fi
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7193$as_echo "$ac_cv_header_stdc" >&6; }
7194if test $ac_cv_header_stdc = yes; then
7195
7196$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7197
7198fi
7199
7200# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7201for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7202 inttypes.h stdint.h unistd.h
7203do :
7204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7206"
7207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7208 cat >>confdefs.h <<_ACEOF
7209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210_ACEOF
7211
7212fi
7213
7214done
7215
7216
7217for ac_header in dlfcn.h
7218do :
7219 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7220"
7221if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7222 cat >>confdefs.h <<_ACEOF
7223#define HAVE_DLFCN_H 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
7230
7231
7232
7233
7234# Set options
7235
7236
7237
7238 enable_dlopen=no
7239
7240
7241 enable_win32_dll=no
7242
7243
7244 # Check whether --enable-shared was given.
7245if test "${enable_shared+set}" = set; then :
7246 enableval=$enable_shared; p=${PACKAGE-default}
7247 case $enableval in
7248 yes) enable_shared=yes ;;
7249 no) enable_shared=no ;;
7250 *)
7251 enable_shared=no
7252 # Look at the argument we got. We use all the common list separators.
7253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7254 for pkg in $enableval; do
7255 IFS="$lt_save_ifs"
7256 if test "X$pkg" = "X$p"; then
7257 enable_shared=yes
7258 fi
7259 done
7260 IFS="$lt_save_ifs"
7261 ;;
7262 esac
7263else
7264 enable_shared=yes
7265fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 # Check whether --enable-static was given.
7276if test "${enable_static+set}" = set; then :
7277 enableval=$enable_static; p=${PACKAGE-default}
7278 case $enableval in
7279 yes) enable_static=yes ;;
7280 no) enable_static=no ;;
7281 *)
7282 enable_static=no
7283 # Look at the argument we got. We use all the common list separators.
7284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7285 for pkg in $enableval; do
7286 IFS="$lt_save_ifs"
7287 if test "X$pkg" = "X$p"; then
7288 enable_static=yes
7289 fi
7290 done
7291 IFS="$lt_save_ifs"
7292 ;;
7293 esac
7294else
7295 enable_static=yes
7296fi
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307# Check whether --with-pic was given.
7308if test "${with_pic+set}" = set; then :
7309 withval=$with_pic; lt_p=${PACKAGE-default}
7310 case $withval in
7311 yes|no) pic_mode=$withval ;;
7312 *)
7313 pic_mode=default
7314 # Look at the argument we got. We use all the common list separators.
7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316 for lt_pkg in $withval; do
7317 IFS="$lt_save_ifs"
7318 if test "X$lt_pkg" = "X$lt_p"; then
7319 pic_mode=yes
7320 fi
7321 done
7322 IFS="$lt_save_ifs"
7323 ;;
7324 esac
7325else
7326 pic_mode=default
7327fi
7328
7329
7330test -z "$pic_mode" && pic_mode=default
7331
7332
7333
7334
7335
7336
7337
7338 # Check whether --enable-fast-install was given.
7339if test "${enable_fast_install+set}" = set; then :
7340 enableval=$enable_fast_install; p=${PACKAGE-default}
7341 case $enableval in
7342 yes) enable_fast_install=yes ;;
7343 no) enable_fast_install=no ;;
7344 *)
7345 enable_fast_install=no
7346 # Look at the argument we got. We use all the common list separators.
7347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7348 for pkg in $enableval; do
7349 IFS="$lt_save_ifs"
7350 if test "X$pkg" = "X$p"; then
7351 enable_fast_install=yes
7352 fi
7353 done
7354 IFS="$lt_save_ifs"
7355 ;;
7356 esac
7357else
7358 enable_fast_install=yes
7359fi
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371# This can be used to rebuild libtool when needed
7372LIBTOOL_DEPS="$ltmain"
7373
7374# Always use our own libtool.
7375LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406test -z "$LN_S" && LN_S="ln -s"
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421if test -n "${ZSH_VERSION+set}" ; then
7422 setopt NO_GLOB_SUBST
7423fi
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7426$as_echo_n "checking for objdir... " >&6; }
7427if ${lt_cv_objdir+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429else
7430 rm -f .libs 2>/dev/null
7431mkdir .libs 2>/dev/null
7432if test -d .libs; then
7433 lt_cv_objdir=.libs
7434else
7435 # MS-DOS does not allow filenames that begin with a dot.
7436 lt_cv_objdir=_libs
7437fi
7438rmdir .libs 2>/dev/null
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7441$as_echo "$lt_cv_objdir" >&6; }
7442objdir=$lt_cv_objdir
7443
7444
7445
7446
7447
7448cat >>confdefs.h <<_ACEOF
7449#define LT_OBJDIR "$lt_cv_objdir/"
7450_ACEOF
7451
7452
7453
7454
7455case $host_os in
7456aix3*)
7457 # AIX sometimes has problems with the GCC collect2 program. For some
7458 # reason, if we set the COLLECT_NAMES environment variable, the problems
7459 # vanish in a puff of smoke.
7460 if test "X${COLLECT_NAMES+set}" != Xset; then
7461 COLLECT_NAMES=
7462 export COLLECT_NAMES
7463 fi
7464 ;;
7465esac
7466
7467# Global variables:
7468ofile=libtool
7469can_build_shared=yes
7470
7471# All known linkers require a `.a' archive for static linking (except MSVC,
7472# which needs '.lib').
7473libext=a
7474
7475with_gnu_ld="$lt_cv_prog_gnu_ld"
7476
7477old_CC="$CC"
7478old_CFLAGS="$CFLAGS"
7479
7480# Set sane defaults for various variables
7481test -z "$CC" && CC=cc
7482test -z "$LTCC" && LTCC=$CC
7483test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7484test -z "$LD" && LD=ld
7485test -z "$ac_objext" && ac_objext=o
7486
7487for cc_temp in $compiler""; do
7488 case $cc_temp in
7489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7491 \-*) ;;
7492 *) break;;
7493 esac
7494done
7495cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7496
7497
7498# Only perform the check for file, if the check method requires it
7499test -z "$MAGIC_CMD" && MAGIC_CMD=file
7500case $deplibs_check_method in
7501file_magic*)
7502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7504$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7505if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507else
7508 case $MAGIC_CMD in
7509[\\/*] | ?:[\\/]*)
7510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511 ;;
7512*)
7513 lt_save_MAGIC_CMD="$MAGIC_CMD"
7514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516 for ac_dir in $ac_dummy; do
7517 IFS="$lt_save_ifs"
7518 test -z "$ac_dir" && ac_dir=.
7519 if test -f $ac_dir/${ac_tool_prefix}file; then
7520 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521 if test -n "$file_magic_test_file"; then
7522 case $deplibs_check_method in
7523 "file_magic "*)
7524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527 $EGREP "$file_magic_regex" > /dev/null; then
7528 :
7529 else
7530 cat <<_LT_EOF 1>&2
7531
7532*** Warning: the command libtool uses to detect shared libraries,
7533*** $file_magic_cmd, produces output that libtool cannot recognize.
7534*** The result is that libtool may fail to recognize shared libraries
7535*** as such. This will affect the creation of libtool libraries that
7536*** depend on shared libraries, but programs linked with such libtool
7537*** libraries will work regardless of this problem. Nevertheless, you
7538*** may want to report the problem to your system manager and/or to
7539*** bug-libtool@gnu.org
7540
7541_LT_EOF
7542 fi ;;
7543 esac
7544 fi
7545 break
7546 fi
7547 done
7548 IFS="$lt_save_ifs"
7549 MAGIC_CMD="$lt_save_MAGIC_CMD"
7550 ;;
7551esac
7552fi
7553
7554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555if test -n "$MAGIC_CMD"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557$as_echo "$MAGIC_CMD" >&6; }
7558else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
7563
7564
7565
7566
7567if test -z "$lt_cv_path_MAGIC_CMD"; then
7568 if test -n "$ac_tool_prefix"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7570$as_echo_n "checking for file... " >&6; }
7571if ${lt_cv_path_MAGIC_CMD+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573else
7574 case $MAGIC_CMD in
7575[\\/*] | ?:[\\/]*)
7576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577 ;;
7578*)
7579 lt_save_MAGIC_CMD="$MAGIC_CMD"
7580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7582 for ac_dir in $ac_dummy; do
7583 IFS="$lt_save_ifs"
7584 test -z "$ac_dir" && ac_dir=.
7585 if test -f $ac_dir/file; then
7586 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7587 if test -n "$file_magic_test_file"; then
7588 case $deplibs_check_method in
7589 "file_magic "*)
7590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7593 $EGREP "$file_magic_regex" > /dev/null; then
7594 :
7595 else
7596 cat <<_LT_EOF 1>&2
7597
7598*** Warning: the command libtool uses to detect shared libraries,
7599*** $file_magic_cmd, produces output that libtool cannot recognize.
7600*** The result is that libtool may fail to recognize shared libraries
7601*** as such. This will affect the creation of libtool libraries that
7602*** depend on shared libraries, but programs linked with such libtool
7603*** libraries will work regardless of this problem. Nevertheless, you
7604*** may want to report the problem to your system manager and/or to
7605*** bug-libtool@gnu.org
7606
7607_LT_EOF
7608 fi ;;
7609 esac
7610 fi
7611 break
7612 fi
7613 done
7614 IFS="$lt_save_ifs"
7615 MAGIC_CMD="$lt_save_MAGIC_CMD"
7616 ;;
7617esac
7618fi
7619
7620MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621if test -n "$MAGIC_CMD"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7623$as_echo "$MAGIC_CMD" >&6; }
7624else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629
7630 else
7631 MAGIC_CMD=:
7632 fi
7633fi
7634
7635 fi
7636 ;;
7637esac
7638
7639# Use C for the default configuration in the libtool script
7640
7641lt_save_CC="$CC"
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649# Source file extension for C test sources.
7650ac_ext=c
7651
7652# Object file extension for compiled C test sources.
7653objext=o
7654objext=$objext
7655
7656# Code to be used in simple compile tests
7657lt_simple_compile_test_code="int some_variable = 0;"
7658
7659# Code to be used in simple link tests
7660lt_simple_link_test_code='int main(){return(0);}'
7661
7662
7663
7664
7665
7666
7667
7668# If no C compiler was specified, use CC.
7669LTCC=${LTCC-"$CC"}
7670
7671# If no C compiler flags were specified, use CFLAGS.
7672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7673
7674# Allow CC to be a program name with arguments.
7675compiler=$CC
7676
7677# Save the default compiler, since it gets overwritten when the other
7678# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7679compiler_DEFAULT=$CC
7680
7681# save warnings/boilerplate of simple test code
7682ac_outfile=conftest.$ac_objext
7683echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685_lt_compiler_boilerplate=`cat conftest.err`
7686$RM conftest*
7687
7688ac_outfile=conftest.$ac_objext
7689echo "$lt_simple_link_test_code" >conftest.$ac_ext
7690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691_lt_linker_boilerplate=`cat conftest.err`
7692$RM -r conftest*
7693
7694
7695if test -n "$compiler"; then
7696
7697lt_prog_compiler_no_builtin_flag=
7698
7699if test "$GCC" = yes; then
7700 case $cc_basename in
7701 nvcc*)
7702 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7703 *)
7704 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7705 esac
7706
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7708$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7709if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 lt_cv_prog_compiler_rtti_exceptions=no
7713 ac_outfile=conftest.$ac_objext
7714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715 lt_compiler_flag="-fno-rtti -fno-exceptions"
7716 # Insert the option either (1) after the last *FLAGS variable, or
7717 # (2) before a word containing "conftest.", or (3) at the end.
7718 # Note that $ac_compile itself does not contain backslashes and begins
7719 # with a dollar sign (not a hyphen), so the echo should work correctly.
7720 # The option is referenced via a variable to avoid confusing sed.
7721 lt_compile=`echo "$ac_compile" | $SED \
7722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724 -e 's:$: $lt_compiler_flag:'`
7725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726 (eval "$lt_compile" 2>conftest.err)
7727 ac_status=$?
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 if (exit $ac_status) && test -s "$ac_outfile"; then
7731 # The compiler can only warn and ignore the option if not recognized
7732 # So say no if there are warnings other than the usual output.
7733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736 lt_cv_prog_compiler_rtti_exceptions=yes
7737 fi
7738 fi
7739 $RM conftest*
7740
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7743$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7744
7745if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7747else
7748 :
7749fi
7750
7751fi
7752
7753
7754
7755
7756
7757
7758 lt_prog_compiler_wl=
7759lt_prog_compiler_pic=
7760lt_prog_compiler_static=
7761
7762
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_static='-static'
7766
7767 case $host_os in
7768 aix*)
7769 # All AIX code is PIC.
7770 if test "$host_cpu" = ia64; then
7771 # AIX 5 now supports IA64 processor
7772 lt_prog_compiler_static='-Bstatic'
7773 fi
7774 ;;
7775
7776 amigaos*)
7777 case $host_cpu in
7778 powerpc)
7779 # see comment about AmigaOS4 .so support
7780 lt_prog_compiler_pic='-fPIC'
7781 ;;
7782 m68k)
7783 # FIXME: we need at least 68020 code to build shared libraries, but
7784 # adding the `-m68020' flag to GCC prevents building anything better,
7785 # like `-m68040'.
7786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7787 ;;
7788 esac
7789 ;;
7790
7791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7792 # PIC is the default for these OSes.
7793 ;;
7794
7795 mingw* | cygwin* | pw32* | os2* | cegcc*)
7796 # This hack is so that the source file can tell whether it is being
7797 # built for inclusion in a dll (and should export symbols for example).
7798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7799 # (--disable-auto-import) libraries
7800 lt_prog_compiler_pic='-DDLL_EXPORT'
7801 ;;
7802
7803 darwin* | rhapsody*)
7804 # PIC is the default on this platform
7805 # Common symbols not allowed in MH_DYLIB files
7806 lt_prog_compiler_pic='-fno-common'
7807 ;;
7808
7809 haiku*)
7810 # PIC is the default for Haiku.
7811 # The "-static" flag exists, but is broken.
7812 lt_prog_compiler_static=
7813 ;;
7814
7815 hpux*)
7816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7818 # sets the default TLS model and affects inlining.
7819 case $host_cpu in
7820 hppa*64*)
7821 # +Z the default
7822 ;;
7823 *)
7824 lt_prog_compiler_pic='-fPIC'
7825 ;;
7826 esac
7827 ;;
7828
7829 interix[3-9]*)
7830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7831 # Instead, we relocate shared libraries at runtime.
7832 ;;
7833
7834 msdosdjgpp*)
7835 # Just because we use GCC doesn't mean we suddenly get shared libraries
7836 # on systems that don't support them.
7837 lt_prog_compiler_can_build_shared=no
7838 enable_shared=no
7839 ;;
7840
7841 *nto* | *qnx*)
7842 # QNX uses GNU C++, but need to define -shared option too, otherwise
7843 # it will coredump.
7844 lt_prog_compiler_pic='-fPIC -shared'
7845 ;;
7846
7847 sysv4*MP*)
7848 if test -d /usr/nec; then
7849 lt_prog_compiler_pic=-Kconform_pic
7850 fi
7851 ;;
7852
7853 *)
7854 lt_prog_compiler_pic='-fPIC'
7855 ;;
7856 esac
7857
7858 case $cc_basename in
7859 nvcc*) # Cuda Compiler Driver 2.2
7860 lt_prog_compiler_wl='-Xlinker '
7861 if test -n "$lt_prog_compiler_pic"; then
7862 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7863 fi
7864 ;;
7865 esac
7866 else
7867 # PORTME Check for flag to pass linker flags through the system compiler.
7868 case $host_os in
7869 aix*)
7870 lt_prog_compiler_wl='-Wl,'
7871 if test "$host_cpu" = ia64; then
7872 # AIX 5 now supports IA64 processor
7873 lt_prog_compiler_static='-Bstatic'
7874 else
7875 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7876 fi
7877 ;;
7878
7879 mingw* | cygwin* | pw32* | os2* | cegcc*)
7880 # This hack is so that the source file can tell whether it is being
7881 # built for inclusion in a dll (and should export symbols for example).
7882 lt_prog_compiler_pic='-DDLL_EXPORT'
7883 ;;
7884
7885 hpux9* | hpux10* | hpux11*)
7886 lt_prog_compiler_wl='-Wl,'
7887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7888 # not for PA HP-UX.
7889 case $host_cpu in
7890 hppa*64*|ia64*)
7891 # +Z the default
7892 ;;
7893 *)
7894 lt_prog_compiler_pic='+Z'
7895 ;;
7896 esac
7897 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7898 lt_prog_compiler_static='${wl}-a ${wl}archive'
7899 ;;
7900
7901 irix5* | irix6* | nonstopux*)
7902 lt_prog_compiler_wl='-Wl,'
7903 # PIC (with -KPIC) is the default.
7904 lt_prog_compiler_static='-non_shared'
7905 ;;
7906
7907 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7908 case $cc_basename in
7909 # old Intel for x86_64 which still supported -KPIC.
7910 ecc*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-KPIC'
7913 lt_prog_compiler_static='-static'
7914 ;;
7915 # icc used to be incompatible with GCC.
7916 # ICC 10 doesn't accept -KPIC any more.
7917 icc* | ifort*)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-fPIC'
7920 lt_prog_compiler_static='-static'
7921 ;;
7922 # Lahey Fortran 8.1.
7923 lf95*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='--shared'
7926 lt_prog_compiler_static='--static'
7927 ;;
7928 nagfor*)
7929 # NAG Fortran compiler
7930 lt_prog_compiler_wl='-Wl,-Wl,,'
7931 lt_prog_compiler_pic='-PIC'
7932 lt_prog_compiler_static='-Bstatic'
7933 ;;
7934 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7935 # Portland Group compilers (*not* the Pentium gcc compiler,
7936 # which looks to be a dead project)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='-fpic'
7939 lt_prog_compiler_static='-Bstatic'
7940 ;;
7941 ccc*)
7942 lt_prog_compiler_wl='-Wl,'
7943 # All Alpha code is PIC.
7944 lt_prog_compiler_static='-non_shared'
7945 ;;
7946 xl* | bgxl* | bgf* | mpixl*)
7947 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7948 lt_prog_compiler_wl='-Wl,'
7949 lt_prog_compiler_pic='-qpic'
7950 lt_prog_compiler_static='-qstaticlink'
7951 ;;
7952 *)
7953 case `$CC -V 2>&1 | sed 5q` in
7954 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7955 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-Bstatic'
7958 lt_prog_compiler_wl=''
7959 ;;
7960 *Sun\ F* | *Sun*Fortran*)
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_wl='-Qoption ld '
7964 ;;
7965 *Sun\ C*)
7966 # Sun C 5.9
7967 lt_prog_compiler_pic='-KPIC'
7968 lt_prog_compiler_static='-Bstatic'
7969 lt_prog_compiler_wl='-Wl,'
7970 ;;
7971 *Intel*\ [CF]*Compiler*)
7972 lt_prog_compiler_wl='-Wl,'
7973 lt_prog_compiler_pic='-fPIC'
7974 lt_prog_compiler_static='-static'
7975 ;;
7976 *Portland\ Group*)
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-fpic'
7979 lt_prog_compiler_static='-Bstatic'
7980 ;;
7981 esac
7982 ;;
7983 esac
7984 ;;
7985
7986 newsos6)
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-Bstatic'
7989 ;;
7990
7991 *nto* | *qnx*)
7992 # QNX uses GNU C++, but need to define -shared option too, otherwise
7993 # it will coredump.
7994 lt_prog_compiler_pic='-fPIC -shared'
7995 ;;
7996
7997 osf3* | osf4* | osf5*)
7998 lt_prog_compiler_wl='-Wl,'
7999 # All OSF/1 code is PIC.
8000 lt_prog_compiler_static='-non_shared'
8001 ;;
8002
8003 rdos*)
8004 lt_prog_compiler_static='-non_shared'
8005 ;;
8006
8007 solaris*)
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-Bstatic'
8010 case $cc_basename in
8011 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8012 lt_prog_compiler_wl='-Qoption ld ';;
8013 *)
8014 lt_prog_compiler_wl='-Wl,';;
8015 esac
8016 ;;
8017
8018 sunos4*)
8019 lt_prog_compiler_wl='-Qoption ld '
8020 lt_prog_compiler_pic='-PIC'
8021 lt_prog_compiler_static='-Bstatic'
8022 ;;
8023
8024 sysv4 | sysv4.2uw2* | sysv4.3*)
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029
8030 sysv4*MP*)
8031 if test -d /usr/nec ;then
8032 lt_prog_compiler_pic='-Kconform_pic'
8033 lt_prog_compiler_static='-Bstatic'
8034 fi
8035 ;;
8036
8037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-KPIC'
8040 lt_prog_compiler_static='-Bstatic'
8041 ;;
8042
8043 unicos*)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_can_build_shared=no
8046 ;;
8047
8048 uts4*)
8049 lt_prog_compiler_pic='-pic'
8050 lt_prog_compiler_static='-Bstatic'
8051 ;;
8052
8053 *)
8054 lt_prog_compiler_can_build_shared=no
8055 ;;
8056 esac
8057 fi
8058
8059case $host_os in
8060 # For platforms which do not support PIC, -DPIC is meaningless:
8061 *djgpp*)
8062 lt_prog_compiler_pic=
8063 ;;
8064 *)
8065 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8066 ;;
8067esac
8068
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8070$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8071if ${lt_cv_prog_compiler_pic+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073else
8074 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8077$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8078lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8079
8080#
8081# Check to make sure the PIC flag actually works.
8082#
8083if test -n "$lt_prog_compiler_pic"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8085$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8086if ${lt_cv_prog_compiler_pic_works+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088else
8089 lt_cv_prog_compiler_pic_works=no
8090 ac_outfile=conftest.$ac_objext
8091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8092 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8093 # Insert the option either (1) after the last *FLAGS variable, or
8094 # (2) before a word containing "conftest.", or (3) at the end.
8095 # Note that $ac_compile itself does not contain backslashes and begins
8096 # with a dollar sign (not a hyphen), so the echo should work correctly.
8097 # The option is referenced via a variable to avoid confusing sed.
8098 lt_compile=`echo "$ac_compile" | $SED \
8099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101 -e 's:$: $lt_compiler_flag:'`
8102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8103 (eval "$lt_compile" 2>conftest.err)
8104 ac_status=$?
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 if (exit $ac_status) && test -s "$ac_outfile"; then
8108 # The compiler can only warn and ignore the option if not recognized
8109 # So say no if there are warnings other than the usual output.
8110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8113 lt_cv_prog_compiler_pic_works=yes
8114 fi
8115 fi
8116 $RM conftest*
8117
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8120$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8121
8122if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8123 case $lt_prog_compiler_pic in
8124 "" | " "*) ;;
8125 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8126 esac
8127else
8128 lt_prog_compiler_pic=
8129 lt_prog_compiler_can_build_shared=no
8130fi
8131
8132fi
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144#
8145# Check to make sure the static flag actually works.
8146#
8147wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8149$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8150if ${lt_cv_prog_compiler_static_works+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152else
8153 lt_cv_prog_compiler_static_works=no
8154 save_LDFLAGS="$LDFLAGS"
8155 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8156 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8157 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8158 # The linker can only warn and ignore the option if not recognized
8159 # So say no if there are warnings
8160 if test -s conftest.err; then
8161 # Append any errors to the config.log.
8162 cat conftest.err 1>&5
8163 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8165 if diff conftest.exp conftest.er2 >/dev/null; then
8166 lt_cv_prog_compiler_static_works=yes
8167 fi
8168 else
8169 lt_cv_prog_compiler_static_works=yes
8170 fi
8171 fi
8172 $RM -r conftest*
8173 LDFLAGS="$save_LDFLAGS"
8174
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8177$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8178
8179if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8180 :
8181else
8182 lt_prog_compiler_static=
8183fi
8184
8185
8186
8187
8188
8189
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8192$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8193if ${lt_cv_prog_compiler_c_o+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195else
8196 lt_cv_prog_compiler_c_o=no
8197 $RM -r conftest 2>/dev/null
8198 mkdir conftest
8199 cd conftest
8200 mkdir out
8201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202
8203 lt_compiler_flag="-o out/conftest2.$ac_objext"
8204 # Insert the option either (1) after the last *FLAGS variable, or
8205 # (2) before a word containing "conftest.", or (3) at the end.
8206 # Note that $ac_compile itself does not contain backslashes and begins
8207 # with a dollar sign (not a hyphen), so the echo should work correctly.
8208 lt_compile=`echo "$ac_compile" | $SED \
8209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211 -e 's:$: $lt_compiler_flag:'`
8212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8213 (eval "$lt_compile" 2>out/conftest.err)
8214 ac_status=$?
8215 cat out/conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8218 then
8219 # The compiler can only warn and ignore the option if not recognized
8220 # So say no if there are warnings
8221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8224 lt_cv_prog_compiler_c_o=yes
8225 fi
8226 fi
8227 chmod u+w . 2>&5
8228 $RM conftest*
8229 # SGI C++ compiler will create directory out/ii_files/ for
8230 # template instantiation
8231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8232 $RM out/* && rmdir out
8233 cd ..
8234 $RM -r conftest
8235 $RM conftest*
8236
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8239$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8240
8241
8242
8243
8244
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8247$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8248if ${lt_cv_prog_compiler_c_o+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250else
8251 lt_cv_prog_compiler_c_o=no
8252 $RM -r conftest 2>/dev/null
8253 mkdir conftest
8254 cd conftest
8255 mkdir out
8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8257
8258 lt_compiler_flag="-o out/conftest2.$ac_objext"
8259 # Insert the option either (1) after the last *FLAGS variable, or
8260 # (2) before a word containing "conftest.", or (3) at the end.
8261 # Note that $ac_compile itself does not contain backslashes and begins
8262 # with a dollar sign (not a hyphen), so the echo should work correctly.
8263 lt_compile=`echo "$ac_compile" | $SED \
8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8266 -e 's:$: $lt_compiler_flag:'`
8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8268 (eval "$lt_compile" 2>out/conftest.err)
8269 ac_status=$?
8270 cat out/conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8273 then
8274 # The compiler can only warn and ignore the option if not recognized
8275 # So say no if there are warnings
8276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8277 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8278 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8279 lt_cv_prog_compiler_c_o=yes
8280 fi
8281 fi
8282 chmod u+w . 2>&5
8283 $RM conftest*
8284 # SGI C++ compiler will create directory out/ii_files/ for
8285 # template instantiation
8286 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8287 $RM out/* && rmdir out
8288 cd ..
8289 $RM -r conftest
8290 $RM conftest*
8291
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8294$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8295
8296
8297
8298
8299hard_links="nottested"
8300if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8301 # do not overwrite the value of need_locks provided by the user
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8303$as_echo_n "checking if we can lock with hard links... " >&6; }
8304 hard_links=yes
8305 $RM conftest*
8306 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307 touch conftest.a
8308 ln conftest.a conftest.b 2>&5 || hard_links=no
8309 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8311$as_echo "$hard_links" >&6; }
8312 if test "$hard_links" = no; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8314$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8315 need_locks=warn
8316 fi
8317else
8318 need_locks=no
8319fi
8320
8321
8322
8323
8324
8325
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8327$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8328
8329 runpath_var=
8330 allow_undefined_flag=
8331 always_export_symbols=no
8332 archive_cmds=
8333 archive_expsym_cmds=
8334 compiler_needs_object=no
8335 enable_shared_with_static_runtimes=no
8336 export_dynamic_flag_spec=
8337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8338 hardcode_automatic=no
8339 hardcode_direct=no
8340 hardcode_direct_absolute=no
8341 hardcode_libdir_flag_spec=
8342 hardcode_libdir_separator=
8343 hardcode_minus_L=no
8344 hardcode_shlibpath_var=unsupported
8345 inherit_rpath=no
8346 link_all_deplibs=unknown
8347 module_cmds=
8348 module_expsym_cmds=
8349 old_archive_from_new_cmds=
8350 old_archive_from_expsyms_cmds=
8351 thread_safe_flag_spec=
8352 whole_archive_flag_spec=
8353 # include_expsyms should be a list of space-separated symbols to be *always*
8354 # included in the symbol list
8355 include_expsyms=
8356 # exclude_expsyms can be an extended regexp of symbols to exclude
8357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8359 # as well as any symbol that contains `d'.
8360 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8362 # platforms (ab)use it in PIC code, but their linkers get confused if
8363 # the symbol is explicitly referenced. Since portable code cannot
8364 # rely on this symbol name, it's probably fine to never include it in
8365 # preloaded symbol tables.
8366 # Exclude shared library initialization/finalization symbols.
8367 extract_expsyms_cmds=
8368
8369 case $host_os in
8370 cygwin* | mingw* | pw32* | cegcc*)
8371 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8372 # When not using gcc, we currently assume that we are using
8373 # Microsoft Visual C++.
8374 if test "$GCC" != yes; then
8375 with_gnu_ld=no
8376 fi
8377 ;;
8378 interix*)
8379 # we just hope/assume this is gcc and not c89 (= MSVC++)
8380 with_gnu_ld=yes
8381 ;;
8382 openbsd*)
8383 with_gnu_ld=no
8384 ;;
8385 linux* | k*bsd*-gnu | gnu*)
8386 link_all_deplibs=no
8387 ;;
8388 esac
8389
8390 ld_shlibs=yes
8391
8392 # On some targets, GNU ld is compatible enough with the native linker
8393 # that we're better off using the native interface for both.
8394 lt_use_gnu_ld_interface=no
8395 if test "$with_gnu_ld" = yes; then
8396 case $host_os in
8397 aix*)
8398 # The AIX port of GNU ld has always aspired to compatibility
8399 # with the native linker. However, as the warning in the GNU ld
8400 # block says, versions before 2.19.5* couldn't really create working
8401 # shared libraries, regardless of the interface used.
8402 case `$LD -v 2>&1` in
8403 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8404 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8405 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8406 *)
8407 lt_use_gnu_ld_interface=yes
8408 ;;
8409 esac
8410 ;;
8411 *)
8412 lt_use_gnu_ld_interface=yes
8413 ;;
8414 esac
8415 fi
8416
8417 if test "$lt_use_gnu_ld_interface" = yes; then
8418 # If archive_cmds runs LD, not CC, wlarc should be empty
8419 wlarc='${wl}'
8420
8421 # Set some defaults for GNU ld with shared library support. These
8422 # are reset later if shared libraries are not supported. Putting them
8423 # here allows them to be overridden if necessary.
8424 runpath_var=LD_RUN_PATH
8425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8426 export_dynamic_flag_spec='${wl}--export-dynamic'
8427 # ancient GNU ld didn't support --whole-archive et. al.
8428 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8429 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8430 else
8431 whole_archive_flag_spec=
8432 fi
8433 supports_anon_versioning=no
8434 case `$LD -v 2>&1` in
8435 *GNU\ gold*) supports_anon_versioning=yes ;;
8436 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8439 *\ 2.11.*) ;; # other 2.11 versions
8440 *) supports_anon_versioning=yes ;;
8441 esac
8442
8443 # See if GNU ld supports shared libraries.
8444 case $host_os in
8445 aix[3-9]*)
8446 # On AIX/PPC, the GNU linker is very broken
8447 if test "$host_cpu" != ia64; then
8448 ld_shlibs=no
8449 cat <<_LT_EOF 1>&2
8450
8451*** Warning: the GNU linker, at least up to release 2.19, is reported
8452*** to be unable to reliably create shared libraries on AIX.
8453*** Therefore, libtool is disabling shared libraries support. If you
8454*** really care for shared libraries, you may want to install binutils
8455*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8456*** You will then need to restart the configuration process.
8457
8458_LT_EOF
8459 fi
8460 ;;
8461
8462 amigaos*)
8463 case $host_cpu in
8464 powerpc)
8465 # see comment about AmigaOS4 .so support
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467 archive_expsym_cmds=''
8468 ;;
8469 m68k)
8470 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)'
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_minus_L=yes
8473 ;;
8474 esac
8475 ;;
8476
8477 beos*)
8478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8479 allow_undefined_flag=unsupported
8480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8481 # support --undefined. This deserves some investigation. FIXME
8482 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 else
8484 ld_shlibs=no
8485 fi
8486 ;;
8487
8488 cygwin* | mingw* | pw32* | cegcc*)
8489 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8490 # as there is no search path for DLLs.
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 export_dynamic_flag_spec='${wl}--export-all-symbols'
8493 allow_undefined_flag=unsupported
8494 always_export_symbols=no
8495 enable_shared_with_static_runtimes=yes
8496 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'
8497 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8498
8499 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8501 # If the export-symbols file already is a .def file (1st line
8502 # is EXPORTS), use it as is; otherwise, prepend...
8503 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8504 cp $export_symbols $output_objdir/$soname.def;
8505 else
8506 echo EXPORTS > $output_objdir/$soname.def;
8507 cat $export_symbols >> $output_objdir/$soname.def;
8508 fi~
8509 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8510 else
8511 ld_shlibs=no
8512 fi
8513 ;;
8514
8515 haiku*)
8516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517 link_all_deplibs=yes
8518 ;;
8519
8520 interix[3-9]*)
8521 hardcode_direct=no
8522 hardcode_shlibpath_var=no
8523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8524 export_dynamic_flag_spec='${wl}-E'
8525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8526 # Instead, shared libraries are loaded at an image base (0x10000000 by
8527 # default) and relocated if they conflict, which is a slow very memory
8528 # consuming and fragmenting process. To avoid this, we pick a random,
8529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8532 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'
8533 ;;
8534
8535 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8536 tmp_diet=no
8537 if test "$host_os" = linux-dietlibc; then
8538 case $cc_basename in
8539 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8540 esac
8541 fi
8542 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8543 && test "$tmp_diet" = no
8544 then
8545 tmp_addflag=' $pic_flag'
8546 tmp_sharedflag='-shared'
8547 case $cc_basename,$host_cpu in
8548 pgcc*) # Portland Group C compiler
8549 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'
8550 tmp_addflag=' $pic_flag'
8551 ;;
8552 pgf77* | pgf90* | pgf95* | pgfortran*)
8553 # Portland Group f77 and f90 compilers
8554 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'
8555 tmp_addflag=' $pic_flag -Mnomain' ;;
8556 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8557 tmp_addflag=' -i_dynamic' ;;
8558 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8559 tmp_addflag=' -i_dynamic -nofor_main' ;;
8560 ifc* | ifort*) # Intel Fortran compiler
8561 tmp_addflag=' -nofor_main' ;;
8562 lf95*) # Lahey Fortran 8.1
8563 whole_archive_flag_spec=
8564 tmp_sharedflag='--shared' ;;
8565 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8566 tmp_sharedflag='-qmkshrobj'
8567 tmp_addflag= ;;
8568 nvcc*) # Cuda Compiler Driver 2.2
8569 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'
8570 compiler_needs_object=yes
8571 ;;
8572 esac
8573 case `$CC -V 2>&1 | sed 5q` in
8574 *Sun\ C*) # Sun C 5.9
8575 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'
8576 compiler_needs_object=yes
8577 tmp_sharedflag='-G' ;;
8578 *Sun\ F*) # Sun Fortran 8.3
8579 tmp_sharedflag='-G' ;;
8580 esac
8581 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582
8583 if test "x$supports_anon_versioning" = xyes; then
8584 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8586 echo "local: *; };" >> $output_objdir/$libname.ver~
8587 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8588 fi
8589
8590 case $cc_basename in
8591 xlf* | bgf* | bgxlf* | mpixlf*)
8592 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8593 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8596 if test "x$supports_anon_versioning" = xyes; then
8597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8599 echo "local: *; };" >> $output_objdir/$libname.ver~
8600 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8601 fi
8602 ;;
8603 esac
8604 else
8605 ld_shlibs=no
8606 fi
8607 ;;
8608
8609 netbsd* | netbsdelf*-gnu)
8610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8611 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8612 wlarc=
8613 else
8614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616 fi
8617 ;;
8618
8619 solaris*)
8620 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8621 ld_shlibs=no
8622 cat <<_LT_EOF 1>&2
8623
8624*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8625*** create shared libraries on Solaris systems. Therefore, libtool
8626*** is disabling shared libraries support. We urge you to upgrade GNU
8627*** binutils to release 2.9.1 or newer. Another option is to modify
8628*** your PATH or compiler configuration so that the native linker is
8629*** used, and then restart.
8630
8631_LT_EOF
8632 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639
8640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8641 case `$LD -v 2>&1` in
8642 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8643 ld_shlibs=no
8644 cat <<_LT_EOF 1>&2
8645
8646*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8647*** reliably create shared libraries on SCO systems. Therefore, libtool
8648*** is disabling shared libraries support. We urge you to upgrade GNU
8649*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8650*** your PATH or compiler configuration so that the native linker is
8651*** used, and then restart.
8652
8653_LT_EOF
8654 ;;
8655 *)
8656 # For security reasons, it is highly recommended that you always
8657 # use absolute paths for naming shared libraries, and exclude the
8658 # DT_RUNPATH tag from executables and libraries. But doing so
8659 # requires that you compile everything twice, which is a pain.
8660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664 else
8665 ld_shlibs=no
8666 fi
8667 ;;
8668 esac
8669 ;;
8670
8671 sunos4*)
8672 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8673 wlarc=
8674 hardcode_direct=yes
8675 hardcode_shlibpath_var=no
8676 ;;
8677
8678 *)
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682 else
8683 ld_shlibs=no
8684 fi
8685 ;;
8686 esac
8687
8688 if test "$ld_shlibs" = no; then
8689 runpath_var=
8690 hardcode_libdir_flag_spec=
8691 export_dynamic_flag_spec=
8692 whole_archive_flag_spec=
8693 fi
8694 else
8695 # PORTME fill in a description of your system's linker (not GNU ld)
8696 case $host_os in
8697 aix3*)
8698 allow_undefined_flag=unsupported
8699 always_export_symbols=yes
8700 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'
8701 # Note: this linker hardcodes the directories in LIBPATH if there
8702 # are no directories specified by -L.
8703 hardcode_minus_L=yes
8704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8705 # Neither direct hardcoding nor static linking is supported with a
8706 # broken collect2.
8707 hardcode_direct=unsupported
8708 fi
8709 ;;
8710
8711 aix[4-9]*)
8712 if test "$host_cpu" = ia64; then
8713 # On IA64, the linker does run time linking by default, so we don't
8714 # have to do anything special.
8715 aix_use_runtimelinking=no
8716 exp_sym_flag='-Bexport'
8717 no_entry_flag=""
8718 else
8719 # If we're using GNU nm, then we don't want the "-C" option.
8720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8721 # Also, AIX nm treats weak defined symbols like other global
8722 # defined symbols, whereas GNU nm marks them as "W".
8723 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8724 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8725 else
8726 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8727 fi
8728 aix_use_runtimelinking=no
8729
8730 # Test if we are trying to use run time linking or normal
8731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8732 # need to do runtime linking.
8733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8734 for ld_flag in $LDFLAGS; do
8735 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8736 aix_use_runtimelinking=yes
8737 break
8738 fi
8739 done
8740 ;;
8741 esac
8742
8743 exp_sym_flag='-bexport'
8744 no_entry_flag='-bnoentry'
8745 fi
8746
8747 # When large executables or shared objects are built, AIX ld can
8748 # have problems creating the table of contents. If linking a library
8749 # or program results in "error TOC overflow" add -mminimal-toc to
8750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8752
8753 archive_cmds=''
8754 hardcode_direct=yes
8755 hardcode_direct_absolute=yes
8756 hardcode_libdir_separator=':'
8757 link_all_deplibs=yes
8758 file_list_spec='${wl}-f,'
8759
8760 if test "$GCC" = yes; then
8761 case $host_os in aix4.[012]|aix4.[012].*)
8762 # We only want to do this on AIX 4.2 and lower, the check
8763 # below for broken collect2 doesn't work under 4.3+
8764 collect2name=`${CC} -print-prog-name=collect2`
8765 if test -f "$collect2name" &&
8766 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8767 then
8768 # We have reworked collect2
8769 :
8770 else
8771 # We have old collect2
8772 hardcode_direct=unsupported
8773 # It fails to find uninstalled libraries when the uninstalled
8774 # path is not listed in the libpath. Setting hardcode_minus_L
8775 # to unsupported forces relinking
8776 hardcode_minus_L=yes
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_libdir_separator=
8779 fi
8780 ;;
8781 esac
8782 shared_flag='-shared'
8783 if test "$aix_use_runtimelinking" = yes; then
8784 shared_flag="$shared_flag "'${wl}-G'
8785 fi
8786 link_all_deplibs=no
8787 else
8788 # not using gcc
8789 if test "$host_cpu" = ia64; then
8790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8791 # chokes on -Wl,-G. The following line is correct:
8792 shared_flag='-G'
8793 else
8794 if test "$aix_use_runtimelinking" = yes; then
8795 shared_flag='${wl}-G'
8796 else
8797 shared_flag='${wl}-bM:SRE'
8798 fi
8799 fi
8800 fi
8801
8802 export_dynamic_flag_spec='${wl}-bexpall'
8803 # It seems that -bexpall does not export symbols beginning with
8804 # underscore (_), so it is better to generate a list of symbols to export.
8805 always_export_symbols=yes
8806 if test "$aix_use_runtimelinking" = yes; then
8807 # Warning - without using the other runtime loading flags (-brtl),
8808 # -berok will link without error, but may produce a broken library.
8809 allow_undefined_flag='-berok'
8810 # Determine the default libpath from the value encoded in an
8811 # empty executable.
8812 if test "${lt_cv_aix_libpath+set}" = set; then
8813 aix_libpath=$lt_cv_aix_libpath
8814else
8815 if ${lt_cv_aix_libpath_+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h. */
8820
8821int
8822main ()
8823{
8824
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830
8831 lt_aix_libpath_sed='
8832 /Import File Strings/,/^$/ {
8833 /^0/ {
8834 s/^0 *\([^ ]*\) *$/\1/
8835 p
8836 }
8837 }'
8838 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839 # Check for a 64-bit object if we didn't find anything.
8840 if test -z "$lt_cv_aix_libpath_"; then
8841 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8842 fi
8843fi
8844rm -f core conftest.err conftest.$ac_objext \
8845 conftest$ac_exeext conftest.$ac_ext
8846 if test -z "$lt_cv_aix_libpath_"; then
8847 lt_cv_aix_libpath_="/usr/lib:/lib"
8848 fi
8849
8850fi
8851
8852 aix_libpath=$lt_cv_aix_libpath_
8853fi
8854
8855 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8857 else
8858 if test "$host_cpu" = ia64; then
8859 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8860 allow_undefined_flag="-z nodefs"
8861 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"
8862 else
8863 # Determine the default libpath from the value encoded in an
8864 # empty executable.
8865 if test "${lt_cv_aix_libpath+set}" = set; then
8866 aix_libpath=$lt_cv_aix_libpath
8867else
8868 if ${lt_cv_aix_libpath_+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h. */
8873
8874int
8875main ()
8876{
8877
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882if ac_fn_c_try_link "$LINENO"; then :
8883
8884 lt_aix_libpath_sed='
8885 /Import File Strings/,/^$/ {
8886 /^0/ {
8887 s/^0 *\([^ ]*\) *$/\1/
8888 p
8889 }
8890 }'
8891 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 # Check for a 64-bit object if we didn't find anything.
8893 if test -z "$lt_cv_aix_libpath_"; then
8894 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895 fi
8896fi
8897rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 if test -z "$lt_cv_aix_libpath_"; then
8900 lt_cv_aix_libpath_="/usr/lib:/lib"
8901 fi
8902
8903fi
8904
8905 aix_libpath=$lt_cv_aix_libpath_
8906fi
8907
8908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8909 # Warning - without using the other run time loading flags,
8910 # -berok will link without error, but may produce a broken library.
8911 no_undefined_flag=' ${wl}-bernotok'
8912 allow_undefined_flag=' ${wl}-berok'
8913 if test "$with_gnu_ld" = yes; then
8914 # We only use this code for GNU lds that support --whole-archive.
8915 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8916 else
8917 # Exported symbols can be pulled into shared objects from archives
8918 whole_archive_flag_spec='$convenience'
8919 fi
8920 archive_cmds_need_lc=yes
8921 # This is similar to how AIX traditionally builds its shared libraries.
8922 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8923 fi
8924 fi
8925 ;;
8926
8927 amigaos*)
8928 case $host_cpu in
8929 powerpc)
8930 # see comment about AmigaOS4 .so support
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds=''
8933 ;;
8934 m68k)
8935 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)'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_minus_L=yes
8938 ;;
8939 esac
8940 ;;
8941
8942 bsdi[45]*)
8943 export_dynamic_flag_spec=-rdynamic
8944 ;;
8945
8946 cygwin* | mingw* | pw32* | cegcc*)
8947 # When not using gcc, we currently assume that we are using
8948 # Microsoft Visual C++.
8949 # hardcode_libdir_flag_spec is actually meaningless, as there is
8950 # no search path for DLLs.
8951 case $cc_basename in
8952 cl*)
8953 # Native MSVC
8954 hardcode_libdir_flag_spec=' '
8955 allow_undefined_flag=unsupported
8956 always_export_symbols=yes
8957 file_list_spec='@'
8958 # Tell ltmain to make .lib files, not .a files.
8959 libext=lib
8960 # Tell ltmain to make .dll files, not .so files.
8961 shrext_cmds=".dll"
8962 # FIXME: Setting linknames here is a bad hack.
8963 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8964 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8965 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8966 else
8967 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8968 fi~
8969 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8970 linknames='
8971 # The linker will not automatically build a static lib if we build a DLL.
8972 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8973 enable_shared_with_static_runtimes=yes
8974 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8975 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8976 # Don't use ranlib
8977 old_postinstall_cmds='chmod 644 $oldlib'
8978 postlink_cmds='lt_outputfile="@OUTPUT@"~
8979 lt_tool_outputfile="@TOOL_OUTPUT@"~
8980 case $lt_outputfile in
8981 *.exe|*.EXE) ;;
8982 *)
8983 lt_outputfile="$lt_outputfile.exe"
8984 lt_tool_outputfile="$lt_tool_outputfile.exe"
8985 ;;
8986 esac~
8987 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8988 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8989 $RM "$lt_outputfile.manifest";
8990 fi'
8991 ;;
8992 *)
8993 # Assume MSVC wrapper
8994 hardcode_libdir_flag_spec=' '
8995 allow_undefined_flag=unsupported
8996 # Tell ltmain to make .lib files, not .a files.
8997 libext=lib
8998 # Tell ltmain to make .dll files, not .so files.
8999 shrext_cmds=".dll"
9000 # FIXME: Setting linknames here is a bad hack.
9001 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9002 # The linker will automatically build a .lib file if we build a DLL.
9003 old_archive_from_new_cmds='true'
9004 # FIXME: Should let the user specify the lib program.
9005 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9006 enable_shared_with_static_runtimes=yes
9007 ;;
9008 esac
9009 ;;
9010
9011 darwin* | rhapsody*)
9012
9013
9014 archive_cmds_need_lc=no
9015 hardcode_direct=no
9016 hardcode_automatic=yes
9017 hardcode_shlibpath_var=unsupported
9018 if test "$lt_cv_ld_force_load" = "yes"; then
9019 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\"`'
9020
9021 else
9022 whole_archive_flag_spec=''
9023 fi
9024 link_all_deplibs=yes
9025 allow_undefined_flag="$_lt_dar_allow_undefined"
9026 case $cc_basename in
9027 ifort*) _lt_dar_can_shared=yes ;;
9028 *) _lt_dar_can_shared=$GCC ;;
9029 esac
9030 if test "$_lt_dar_can_shared" = "yes"; then
9031 output_verbose_link_cmd=func_echo_all
9032 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9033 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9034 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}"
9035 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}"
9036
9037 else
9038 ld_shlibs=no
9039 fi
9040
9041 ;;
9042
9043 dgux*)
9044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_libdir_flag_spec='-L$libdir'
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9050 # support. Future versions do this automatically, but an explicit c++rt0.o
9051 # does not break anything, and helps significantly (at the cost of a little
9052 # extra space).
9053 freebsd2.2*)
9054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9055 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_direct=yes
9057 hardcode_shlibpath_var=no
9058 ;;
9059
9060 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9061 freebsd2.*)
9062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=yes
9064 hardcode_minus_L=yes
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9069 freebsd* | dragonfly*)
9070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9071 hardcode_libdir_flag_spec='-R$libdir'
9072 hardcode_direct=yes
9073 hardcode_shlibpath_var=no
9074 ;;
9075
9076 hpux9*)
9077 if test "$GCC" = yes; then
9078 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9079 else
9080 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9081 fi
9082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083 hardcode_libdir_separator=:
9084 hardcode_direct=yes
9085
9086 # hardcode_minus_L: Not really in the search PATH,
9087 # but as the default location of the library.
9088 hardcode_minus_L=yes
9089 export_dynamic_flag_spec='${wl}-E'
9090 ;;
9091
9092 hpux10*)
9093 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9094 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9097 fi
9098 if test "$with_gnu_ld" = no; then
9099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9100 hardcode_libdir_separator=:
9101 hardcode_direct=yes
9102 hardcode_direct_absolute=yes
9103 export_dynamic_flag_spec='${wl}-E'
9104 # hardcode_minus_L: Not really in the search PATH,
9105 # but as the default location of the library.
9106 hardcode_minus_L=yes
9107 fi
9108 ;;
9109
9110 hpux11*)
9111 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9112 case $host_cpu in
9113 hppa*64*)
9114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 ia64*)
9117 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 *)
9120 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 esac
9123 else
9124 case $host_cpu in
9125 hppa*64*)
9126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 ;;
9128 ia64*)
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 *)
9132
9133 # Older versions of the 11.00 compiler do not understand -b yet
9134 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9136$as_echo_n "checking if $CC understands -b... " >&6; }
9137if ${lt_cv_prog_compiler__b+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139else
9140 lt_cv_prog_compiler__b=no
9141 save_LDFLAGS="$LDFLAGS"
9142 LDFLAGS="$LDFLAGS -b"
9143 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9144 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9145 # The linker can only warn and ignore the option if not recognized
9146 # So say no if there are warnings
9147 if test -s conftest.err; then
9148 # Append any errors to the config.log.
9149 cat conftest.err 1>&5
9150 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9152 if diff conftest.exp conftest.er2 >/dev/null; then
9153 lt_cv_prog_compiler__b=yes
9154 fi
9155 else
9156 lt_cv_prog_compiler__b=yes
9157 fi
9158 fi
9159 $RM -r conftest*
9160 LDFLAGS="$save_LDFLAGS"
9161
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9164$as_echo "$lt_cv_prog_compiler__b" >&6; }
9165
9166if test x"$lt_cv_prog_compiler__b" = xyes; then
9167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9168else
9169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9170fi
9171
9172 ;;
9173 esac
9174 fi
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178
9179 case $host_cpu in
9180 hppa*64*|ia64*)
9181 hardcode_direct=no
9182 hardcode_shlibpath_var=no
9183 ;;
9184 *)
9185 hardcode_direct=yes
9186 hardcode_direct_absolute=yes
9187 export_dynamic_flag_spec='${wl}-E'
9188
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L=yes
9192 ;;
9193 esac
9194 fi
9195 ;;
9196
9197 irix5* | irix6* | nonstopux*)
9198 if test "$GCC" = yes; then
9199 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'
9200 # Try to use the -exported_symbol ld option, if it does not
9201 # work, assume that -exports_file does not work either and
9202 # implicitly export all symbols.
9203 # This should be the same for all languages, so no per-tag cache variable.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9205$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9206if ${lt_cv_irix_exported_symbol+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208else
9209 save_LDFLAGS="$LDFLAGS"
9210 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h. */
9213int foo (void) { return 0; }
9214_ACEOF
9215if ac_fn_c_try_link "$LINENO"; then :
9216 lt_cv_irix_exported_symbol=yes
9217else
9218 lt_cv_irix_exported_symbol=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LDFLAGS="$save_LDFLAGS"
9223fi
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9225$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9226 if test "$lt_cv_irix_exported_symbol" = yes; then
9227 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'
9228 fi
9229 else
9230 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'
9231 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'
9232 fi
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236 inherit_rpath=yes
9237 link_all_deplibs=yes
9238 ;;
9239
9240 netbsd* | netbsdelf*-gnu)
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9243 else
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9245 fi
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9249 ;;
9250
9251 newsos6)
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_direct=yes
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 *nto* | *qnx*)
9260 ;;
9261
9262 openbsd*)
9263 if test -f /usr/libexec/ld.so; then
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 else
9273 case $host_os in
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 ;;
9278 *)
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 ;;
9282 esac
9283 fi
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 os2*)
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9295 ;;
9296
9297 osf3*)
9298 if test "$GCC" = yes; then
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 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'
9301 else
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 ;;
9309
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 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'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 else
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 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'
9318 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~
9319 $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'
9320
9321 # Both c and cxx compiler support -rpath directly
9322 hardcode_libdir_flag_spec='-rpath $libdir'
9323 fi
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
9326 ;;
9327
9328 solaris*)
9329 no_undefined_flag=' -z defs'
9330 if test "$GCC" = yes; then
9331 wlarc='${wl}'
9332 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $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'
9335 else
9336 case `$CC -V 2>&1` in
9337 *"Compilers 5.0"*)
9338 wlarc=''
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9342 ;;
9343 *)
9344 wlarc='${wl}'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9348 ;;
9349 esac
9350 fi
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
9353 case $host_os in
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 *)
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9362 else
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9364 fi
9365 ;;
9366 esac
9367 link_all_deplibs=yes
9368 ;;
9369
9370 sunos4*)
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9377 fi
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_direct=yes
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 sysv4)
9385 case $host_vendor in
9386 sni)
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
9389 ;;
9390 siemens)
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9395 hardcode_direct=no
9396 ;;
9397 motorola)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9400 ;;
9401 esac
9402 runpath_var='LD_RUN_PATH'
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 sysv4.3*)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
9418 ld_shlibs=yes
9419 fi
9420 ;;
9421
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 runpath_var='LD_RUN_PATH'
9427
9428 if test "$GCC" = yes; then
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 fi
9435 ;;
9436
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9443 # as -z defs.
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
9452 runpath_var='LD_RUN_PATH'
9453
9454 if test "$GCC" = yes; then
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 else
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 fi
9461 ;;
9462
9463 uts4*)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *)
9470 ld_shlibs=no
9471 ;;
9472 esac
9473
9474 if test x$host_vendor = xsni; then
9475 case $host in
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 ;;
9479 esac
9480 fi
9481 fi
9482
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9484$as_echo "$ld_shlibs" >&6; }
9485test "$ld_shlibs" = no && can_build_shared=no
9486
9487with_gnu_ld=$with_gnu_ld
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503#
9504# Do we need to explicitly link libc?
9505#
9506case "x$archive_cmds_need_lc" in
9507x|xyes)
9508 # Assume -lc should be added
9509 archive_cmds_need_lc=yes
9510
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
9512 case $archive_cmds in
9513 *'~'*)
9514 # FIXME: we may have to deal with multi-command sequences.
9515 ;;
9516 '$CC '*)
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9521$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522if ${lt_cv_archive_cmds_need_lc+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525 $RM conftest*
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9529 (eval $ac_compile) 2>&5
9530 ac_status=$?
9531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; } 2>conftest.err; then
9533 soname=conftest
9534 lib=conftest
9535 libobjs=conftest.$ac_objext
9536 deplibs=
9537 wl=$lt_prog_compiler_wl
9538 pic_flag=$lt_prog_compiler_pic
9539 compiler_flags=-v
9540 linker_flags=-v
9541 verstring=
9542 output_objdir=.
9543 libname=conftest
9544 lt_save_allow_undefined_flag=$allow_undefined_flag
9545 allow_undefined_flag=
9546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9547 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9548 ac_status=$?
9549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9550 test $ac_status = 0; }
9551 then
9552 lt_cv_archive_cmds_need_lc=no
9553 else
9554 lt_cv_archive_cmds_need_lc=yes
9555 fi
9556 allow_undefined_flag=$lt_save_allow_undefined_flag
9557 else
9558 cat conftest.err 1>&5
9559 fi
9560 $RM conftest*
9561
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9564$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9565 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9566 ;;
9567 esac
9568 fi
9569 ;;
9570esac
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9724$as_echo_n "checking dynamic linker characteristics... " >&6; }
9725
9726if test "$GCC" = yes; then
9727 case $host_os in
9728 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9729 *) lt_awk_arg="/^libraries:/" ;;
9730 esac
9731 case $host_os in
9732 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9733 *) lt_sed_strip_eq="s,=/,/,g" ;;
9734 esac
9735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9736 case $lt_search_path_spec in
9737 *\;*)
9738 # if the path contains ";" then we assume it to be the separator
9739 # otherwise default to the standard path separator (i.e. ":") - it is
9740 # assumed that no part of a normal pathname contains ";" but that should
9741 # okay in the real world where ";" in dirpaths is itself problematic.
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9743 ;;
9744 *)
9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9746 ;;
9747 esac
9748 # Ok, now we have the path, separated by spaces, we can step through it
9749 # and add multilib dir if necessary.
9750 lt_tmp_lt_search_path_spec=
9751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9752 for lt_sys_path in $lt_search_path_spec; do
9753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9755 else
9756 test -d "$lt_sys_path" && \
9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9758 fi
9759 done
9760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9761BEGIN {RS=" "; FS="/|\n";} {
9762 lt_foo="";
9763 lt_count=0;
9764 for (lt_i = NF; lt_i > 0; lt_i--) {
9765 if ($lt_i != "" && $lt_i != ".") {
9766 if ($lt_i == "..") {
9767 lt_count++;
9768 } else {
9769 if (lt_count == 0) {
9770 lt_foo="/" $lt_i lt_foo;
9771 } else {
9772 lt_count--;
9773 }
9774 }
9775 }
9776 }
9777 if (lt_foo != "") { lt_freq[lt_foo]++; }
9778 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9779}'`
9780 # AWK program above erroneously prepends '/' to C:/dos/paths
9781 # for these hosts.
9782 case $host_os in
9783 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9784 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9785 esac
9786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9787else
9788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9789fi
9790library_names_spec=
9791libname_spec='lib$name'
9792soname_spec=
9793shrext_cmds=".so"
9794postinstall_cmds=
9795postuninstall_cmds=
9796finish_cmds=
9797finish_eval=
9798shlibpath_var=
9799shlibpath_overrides_runpath=unknown
9800version_type=none
9801dynamic_linker="$host_os ld.so"
9802sys_lib_dlsearch_path_spec="/lib /usr/lib"
9803need_lib_prefix=unknown
9804hardcode_into_libs=no
9805
9806# when you set need_version to no, make sure it does not cause -set_version
9807# flags to be left without arguments
9808need_version=unknown
9809
9810case $host_os in
9811aix3*)
9812 version_type=linux # correct to gnu/linux during the next big refactor
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9814 shlibpath_var=LIBPATH
9815
9816 # AIX 3 has no versioning support, so we append a major version to the name.
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 ;;
9819
9820aix[4-9]*)
9821 version_type=linux # correct to gnu/linux during the next big refactor
9822 need_lib_prefix=no
9823 need_version=no
9824 hardcode_into_libs=yes
9825 if test "$host_cpu" = ia64; then
9826 # AIX 5 supports IA64
9827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 else
9830 # With GCC up to 2.95.x, collect2 would create an import file
9831 # for dependence libraries. The import file would start with
9832 # the line `#! .'. This would cause the generated library to
9833 # depend on `.', always an invalid library. This was fixed in
9834 # development snapshots of GCC prior to 3.0.
9835 case $host_os in
9836 aix4 | aix4.[01] | aix4.[01].*)
9837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9838 echo ' yes '
9839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9840 :
9841 else
9842 can_build_shared=no
9843 fi
9844 ;;
9845 esac
9846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9847 # soname into executable. Probably we can add versioning support to
9848 # collect2, so additional links can be useful in future.
9849 if test "$aix_use_runtimelinking" = yes; then
9850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9851 # instead of lib<name>.a to let people know that these are not
9852 # typical AIX shared libraries.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 else
9855 # We preserve .a as extension for shared libraries through AIX4.2
9856 # and later when we are not doing run time linking.
9857 library_names_spec='${libname}${release}.a $libname.a'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 fi
9860 shlibpath_var=LIBPATH
9861 fi
9862 ;;
9863
9864amigaos*)
9865 case $host_cpu in
9866 powerpc)
9867 # Since July 2007 AmigaOS4 officially supports .so libraries.
9868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 ;;
9871 m68k)
9872 library_names_spec='$libname.ixlibrary $libname.a'
9873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9874 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9875 ;;
9876 esac
9877 ;;
9878
9879beos*)
9880 library_names_spec='${libname}${shared_ext}'
9881 dynamic_linker="$host_os ld.so"
9882 shlibpath_var=LIBRARY_PATH
9883 ;;
9884
9885bsdi[45]*)
9886 version_type=linux # correct to gnu/linux during the next big refactor
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9894 # the default ld.so.conf also contains /usr/contrib/lib and
9895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9896 # libtool to hard-code these into programs
9897 ;;
9898
9899cygwin* | mingw* | pw32* | cegcc*)
9900 version_type=windows
9901 shrext_cmds=".dll"
9902 need_version=no
9903 need_lib_prefix=no
9904
9905 case $GCC,$cc_basename in
9906 yes,*)
9907 # gcc
9908 library_names_spec='$libname.dll.a'
9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910 postinstall_cmds='base_file=`basename \${file}`~
9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9912 dldir=$destdir/`dirname \$dlpath`~
9913 test -d \$dldir || mkdir -p \$dldir~
9914 $install_prog $dir/$dlname \$dldir/$dlname~
9915 chmod a+x \$dldir/$dlname~
9916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9918 fi'
9919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9920 dlpath=$dir/\$dldll~
9921 $RM \$dlpath'
9922 shlibpath_overrides_runpath=yes
9923
9924 case $host_os in
9925 cygwin*)
9926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928
9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9930 ;;
9931 mingw* | cegcc*)
9932 # MinGW DLLs use traditional 'lib' prefix
9933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 pw32*)
9936 # pw32 DLLs use 'pw' prefix rather than 'lib'
9937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9938 ;;
9939 esac
9940 dynamic_linker='Win32 ld.exe'
9941 ;;
9942
9943 *,cl*)
9944 # Native MSVC
9945 libname_spec='$name'
9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 library_names_spec='${libname}.dll.lib'
9948
9949 case $build_os in
9950 mingw*)
9951 sys_lib_search_path_spec=
9952 lt_save_ifs=$IFS
9953 IFS=';'
9954 for lt_path in $LIB
9955 do
9956 IFS=$lt_save_ifs
9957 # Let DOS variable expansion print the short 8.3 style file name.
9958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9960 done
9961 IFS=$lt_save_ifs
9962 # Convert to MSYS style.
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9964 ;;
9965 cygwin*)
9966 # Convert to unix form, then to dos form, then back to unix form
9967 # but this time dos style (no spaces!) so that the unix form looks
9968 # like /cygdrive/c/PROGRA~1:/cygdr...
9969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9972 ;;
9973 *)
9974 sys_lib_search_path_spec="$LIB"
9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9976 # It is most probably a Windows format PATH.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9978 else
9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9980 fi
9981 # FIXME: find the short name or the path components, as spaces are
9982 # common. (e.g. "Program Files" -> "PROGRA~1")
9983 ;;
9984 esac
9985
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
9991 $install_prog $dir/$dlname \$dldir/$dlname'
9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993 dlpath=$dir/\$dldll~
9994 $RM \$dlpath'
9995 shlibpath_overrides_runpath=yes
9996 dynamic_linker='Win32 link.exe'
9997 ;;
9998
9999 *)
10000 # Assume MSVC wrapper
10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10002 dynamic_linker='Win32 ld.exe'
10003 ;;
10004 esac
10005 # FIXME: first we should search . and the directory the executable is in
10006 shlibpath_var=PATH
10007 ;;
10008
10009darwin* | rhapsody*)
10010 dynamic_linker="$host_os dyld"
10011 version_type=darwin
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10015 soname_spec='${libname}${release}${major}$shared_ext'
10016 shlibpath_overrides_runpath=yes
10017 shlibpath_var=DYLD_LIBRARY_PATH
10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10019
10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10022 ;;
10023
10024dgux*)
10025 version_type=linux # correct to gnu/linux during the next big refactor
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 ;;
10032
10033freebsd* | dragonfly*)
10034 # DragonFly does not have aout. When/if they implement a new
10035 # versioning mechanism, adjust this.
10036 if test -x /usr/bin/objformat; then
10037 objformat=`/usr/bin/objformat`
10038 else
10039 case $host_os in
10040 freebsd[23].*) objformat=aout ;;
10041 *) objformat=elf ;;
10042 esac
10043 fi
10044 version_type=freebsd-$objformat
10045 case $version_type in
10046 freebsd-elf*)
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10048 need_version=no
10049 need_lib_prefix=no
10050 ;;
10051 freebsd-*)
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10053 need_version=yes
10054 ;;
10055 esac
10056 shlibpath_var=LD_LIBRARY_PATH
10057 case $host_os in
10058 freebsd2.*)
10059 shlibpath_overrides_runpath=yes
10060 ;;
10061 freebsd3.[01]* | freebsdelf3.[01]*)
10062 shlibpath_overrides_runpath=yes
10063 hardcode_into_libs=yes
10064 ;;
10065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10067 shlibpath_overrides_runpath=no
10068 hardcode_into_libs=yes
10069 ;;
10070 *) # from 4.6 on, and DragonFly
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 ;;
10074 esac
10075 ;;
10076
10077haiku*)
10078 version_type=linux # correct to gnu/linux during the next big refactor
10079 need_lib_prefix=no
10080 need_version=no
10081 dynamic_linker="$host_os runtime_loader"
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LIBRARY_PATH
10085 shlibpath_overrides_runpath=yes
10086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10087 hardcode_into_libs=yes
10088 ;;
10089
10090hpux9* | hpux10* | hpux11*)
10091 # Give a soname corresponding to the major version so that dld.sl refuses to
10092 # link against other versions.
10093 version_type=sunos
10094 need_lib_prefix=no
10095 need_version=no
10096 case $host_cpu in
10097 ia64*)
10098 shrext_cmds='.so'
10099 hardcode_into_libs=yes
10100 dynamic_linker="$host_os dld.so"
10101 shlibpath_var=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 if test "X$HPUX_IA64_MODE" = X32; then
10106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10107 else
10108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10109 fi
10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 ;;
10112 hppa*64*)
10113 shrext_cmds='.sl'
10114 hardcode_into_libs=yes
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10122 ;;
10123 *)
10124 shrext_cmds='.sl'
10125 dynamic_linker="$host_os dld.sl"
10126 shlibpath_var=SHLIB_PATH
10127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 ;;
10131 esac
10132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10133 postinstall_cmds='chmod 555 $lib'
10134 # or fails outright, so override atomically:
10135 install_override_mode=555
10136 ;;
10137
10138interix[3-9]*)
10139 version_type=linux # correct to gnu/linux during the next big refactor
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10148 ;;
10149
10150irix5* | irix6* | nonstopux*)
10151 case $host_os in
10152 nonstopux*) version_type=nonstopux ;;
10153 *)
10154 if test "$lt_cv_prog_gnu_ld" = yes; then
10155 version_type=linux # correct to gnu/linux during the next big refactor
10156 else
10157 version_type=irix
10158 fi ;;
10159 esac
10160 need_lib_prefix=no
10161 need_version=no
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10164 case $host_os in
10165 irix5* | nonstopux*)
10166 libsuff= shlibsuff=
10167 ;;
10168 *)
10169 case $LD in # libtool.m4 will add one of these switches to LD
10170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10171 libsuff= shlibsuff= libmagic=32-bit;;
10172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10173 libsuff=32 shlibsuff=N32 libmagic=N32;;
10174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10176 *) libsuff= shlibsuff= libmagic=never-match;;
10177 esac
10178 ;;
10179 esac
10180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10181 shlibpath_overrides_runpath=no
10182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10184 hardcode_into_libs=yes
10185 ;;
10186
10187# No shared lib support for Linux oldld, aout, or coff.
10188linux*oldld* | linux*aout* | linux*coff*)
10189 dynamic_linker=no
10190 ;;
10191
10192# This must be glibc/ELF.
10193linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10194 version_type=linux # correct to gnu/linux during the next big refactor
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=no
10202
10203 # Some binutils ld are patched to set DT_RUNPATH
10204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206else
10207 lt_cv_shlibpath_overrides_runpath=no
10208 save_LDFLAGS=$LDFLAGS
10209 save_libdir=$libdir
10210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213/* end confdefs.h. */
10214
10215int
10216main ()
10217{
10218
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223if ac_fn_c_try_link "$LINENO"; then :
10224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10225 lt_cv_shlibpath_overrides_runpath=yes
10226fi
10227fi
10228rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LDFLAGS=$save_LDFLAGS
10231 libdir=$save_libdir
10232
10233fi
10234
10235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10236
10237 # This implies no fast_install, which is unacceptable.
10238 # Some rework will be needed to allow for fast_install
10239 # before this can be enabled.
10240 hardcode_into_libs=yes
10241
10242 # Append ld.so.conf contents to the search path
10243 if test -f /etc/ld.so.conf; then
10244 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' ' '`
10245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10246 fi
10247
10248 # We used to test for /lib/ld.so.1 and disable shared libraries on
10249 # powerpc, because MkLinux only supported shared libraries with the
10250 # GNU dynamic linker. Since this was broken with cross compilers,
10251 # most powerpc-linux boxes support dynamic linking these days and
10252 # people can always --disable-shared, the test was removed, and we
10253 # assume the GNU/Linux dynamic linker is in use.
10254 dynamic_linker='GNU/Linux ld.so'
10255 ;;
10256
10257netbsdelf*-gnu)
10258 version_type=linux
10259 need_lib_prefix=no
10260 need_version=no
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=no
10265 hardcode_into_libs=yes
10266 dynamic_linker='NetBSD ld.elf_so'
10267 ;;
10268
10269netbsd*)
10270 version_type=sunos
10271 need_lib_prefix=no
10272 need_version=no
10273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10276 dynamic_linker='NetBSD (a.out) ld.so'
10277 else
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 dynamic_linker='NetBSD ld.elf_so'
10281 fi
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10285 ;;
10286
10287newsos6)
10288 version_type=linux # correct to gnu/linux during the next big refactor
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293
10294*nto* | *qnx*)
10295 version_type=qnx
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 dynamic_linker='ldqnx.so'
10304 ;;
10305
10306openbsd*)
10307 version_type=sunos
10308 sys_lib_dlsearch_path_spec="/usr/lib"
10309 need_lib_prefix=no
10310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10311 case $host_os in
10312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10313 *) need_version=no ;;
10314 esac
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319 case $host_os in
10320 openbsd2.[89] | openbsd2.[89].*)
10321 shlibpath_overrides_runpath=no
10322 ;;
10323 *)
10324 shlibpath_overrides_runpath=yes
10325 ;;
10326 esac
10327 else
10328 shlibpath_overrides_runpath=yes
10329 fi
10330 ;;
10331
10332os2*)
10333 libname_spec='$name'
10334 shrext_cmds=".dll"
10335 need_lib_prefix=no
10336 library_names_spec='$libname${shared_ext} $libname.a'
10337 dynamic_linker='OS/2 ld.exe'
10338 shlibpath_var=LIBPATH
10339 ;;
10340
10341osf3* | osf4* | osf5*)
10342 version_type=osf
10343 need_lib_prefix=no
10344 need_version=no
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10350 ;;
10351
10352rdos*)
10353 dynamic_linker=no
10354 ;;
10355
10356solaris*)
10357 version_type=linux # correct to gnu/linux during the next big refactor
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 # ldd complains unless libraries are executable
10366 postinstall_cmds='chmod +x $lib'
10367 ;;
10368
10369sunos4*)
10370 version_type=sunos
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 if test "$with_gnu_ld" = yes; then
10376 need_lib_prefix=no
10377 fi
10378 need_version=yes
10379 ;;
10380
10381sysv4 | sysv4.3*)
10382 version_type=linux # correct to gnu/linux during the next big refactor
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 case $host_vendor in
10387 sni)
10388 shlibpath_overrides_runpath=no
10389 need_lib_prefix=no
10390 runpath_var=LD_RUN_PATH
10391 ;;
10392 siemens)
10393 need_lib_prefix=no
10394 ;;
10395 motorola)
10396 need_lib_prefix=no
10397 need_version=no
10398 shlibpath_overrides_runpath=no
10399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10400 ;;
10401 esac
10402 ;;
10403
10404sysv4*MP*)
10405 if test -d /usr/nec ;then
10406 version_type=linux # correct to gnu/linux during the next big refactor
10407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10408 soname_spec='$libname${shared_ext}.$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 fi
10411 ;;
10412
10413sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10414 version_type=freebsd-elf
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=yes
10421 hardcode_into_libs=yes
10422 if test "$with_gnu_ld" = yes; then
10423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10424 else
10425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10426 case $host_os in
10427 sco3.2v5*)
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 ;;
10430 esac
10431 fi
10432 sys_lib_dlsearch_path_spec='/usr/lib'
10433 ;;
10434
10435tpf*)
10436 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10437 version_type=linux # correct to gnu/linux during the next big refactor
10438 need_lib_prefix=no
10439 need_version=no
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=no
10443 hardcode_into_libs=yes
10444 ;;
10445
10446uts4*)
10447 version_type=linux # correct to gnu/linux during the next big refactor
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 ;;
10452
10453*)
10454 dynamic_linker=no
10455 ;;
10456esac
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10458$as_echo "$dynamic_linker" >&6; }
10459test "$dynamic_linker" = no && can_build_shared=no
10460
10461variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10462if test "$GCC" = yes; then
10463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10464fi
10465
10466if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10468fi
10469if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10470 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10471fi
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10565$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10566hardcode_action=
10567if test -n "$hardcode_libdir_flag_spec" ||
10568 test -n "$runpath_var" ||
10569 test "X$hardcode_automatic" = "Xyes" ; then
10570
10571 # We can hardcode non-existent directories.
10572 if test "$hardcode_direct" != no &&
10573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10574 # have to relink, otherwise we might link with an installed library
10575 # when we should be linking with a yet-to-be-installed one
10576 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10577 test "$hardcode_minus_L" != no; then
10578 # Linking always hardcodes the temporary library directory.
10579 hardcode_action=relink
10580 else
10581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10582 hardcode_action=immediate
10583 fi
10584else
10585 # We cannot hardcode anything, or else we can only hardcode existing
10586 # directories.
10587 hardcode_action=unsupported
10588fi
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10590$as_echo "$hardcode_action" >&6; }
10591
10592if test "$hardcode_action" = relink ||
10593 test "$inherit_rpath" = yes; then
10594 # Fast installation is not supported
10595 enable_fast_install=no
10596elif test "$shlibpath_overrides_runpath" = yes ||
10597 test "$enable_shared" = no; then
10598 # Fast installation is not necessary
10599 enable_fast_install=needless
10600fi
10601
10602
10603
10604
10605
10606
10607 if test "x$enable_dlopen" != xyes; then
10608 enable_dlopen=unknown
10609 enable_dlopen_self=unknown
10610 enable_dlopen_self_static=unknown
10611else
10612 lt_cv_dlopen=no
10613 lt_cv_dlopen_libs=
10614
10615 case $host_os in
10616 beos*)
10617 lt_cv_dlopen="load_add_on"
10618 lt_cv_dlopen_libs=
10619 lt_cv_dlopen_self=yes
10620 ;;
10621
10622 mingw* | pw32* | cegcc*)
10623 lt_cv_dlopen="LoadLibrary"
10624 lt_cv_dlopen_libs=
10625 ;;
10626
10627 cygwin*)
10628 lt_cv_dlopen="dlopen"
10629 lt_cv_dlopen_libs=
10630 ;;
10631
10632 darwin*)
10633 # if libdl is installed we need to link against it
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10635$as_echo_n "checking for dlopen in -ldl... " >&6; }
10636if ${ac_cv_lib_dl_dlopen+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638else
10639 ac_check_lib_save_LIBS=$LIBS
10640LIBS="-ldl $LIBS"
10641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h. */
10643
10644/* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650char dlopen ();
10651int
10652main ()
10653{
10654return dlopen ();
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_dl_dlopen=yes
10661else
10662 ac_cv_lib_dl_dlopen=no
10663fi
10664rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666LIBS=$ac_check_lib_save_LIBS
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10669$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10670if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10672else
10673
10674 lt_cv_dlopen="dyld"
10675 lt_cv_dlopen_libs=
10676 lt_cv_dlopen_self=yes
10677
10678fi
10679
10680 ;;
10681
10682 *)
10683 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10684if test "x$ac_cv_func_shl_load" = xyes; then :
10685 lt_cv_dlopen="shl_load"
10686else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10688$as_echo_n "checking for shl_load in -ldld... " >&6; }
10689if ${ac_cv_lib_dld_shl_load+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691else
10692 ac_check_lib_save_LIBS=$LIBS
10693LIBS="-ldld $LIBS"
10694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h. */
10696
10697/* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703char shl_load ();
10704int
10705main ()
10706{
10707return shl_load ();
10708 ;
10709 return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dld_shl_load=yes
10714else
10715 ac_cv_lib_dld_shl_load=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719LIBS=$ac_check_lib_save_LIBS
10720fi
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10722$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10723if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10724 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10725else
10726 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10727if test "x$ac_cv_func_dlopen" = xyes; then :
10728 lt_cv_dlopen="dlopen"
10729else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731$as_echo_n "checking for dlopen in -ldl... " >&6; }
10732if ${ac_cv_lib_dl_dlopen+:} false; then :
10733 $as_echo_n "(cached) " >&6
10734else
10735 ac_check_lib_save_LIBS=$LIBS
10736LIBS="-ldl $LIBS"
10737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h. */
10739
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743#ifdef __cplusplus
10744extern "C"
10745#endif
10746char dlopen ();
10747int
10748main ()
10749{
10750return dlopen ();
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_dl_dlopen=yes
10757else
10758 ac_cv_lib_dl_dlopen=no
10759fi
10760rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762LIBS=$ac_check_lib_save_LIBS
10763fi
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10768else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10770$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10771if ${ac_cv_lib_svld_dlopen+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773else
10774 ac_check_lib_save_LIBS=$LIBS
10775LIBS="-lsvld $LIBS"
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h. */
10778
10779/* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782#ifdef __cplusplus
10783extern "C"
10784#endif
10785char dlopen ();
10786int
10787main ()
10788{
10789return dlopen ();
10790 ;
10791 return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_svld_dlopen=yes
10796else
10797 ac_cv_lib_svld_dlopen=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10804$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10805if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10807else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10809$as_echo_n "checking for dld_link in -ldld... " >&6; }
10810if ${ac_cv_lib_dld_dld_link+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812else
10813 ac_check_lib_save_LIBS=$LIBS
10814LIBS="-ldld $LIBS"
10815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816/* end confdefs.h. */
10817
10818/* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10821#ifdef __cplusplus
10822extern "C"
10823#endif
10824char dld_link ();
10825int
10826main ()
10827{
10828return dld_link ();
10829 ;
10830 return 0;
10831}
10832_ACEOF
10833if ac_fn_c_try_link "$LINENO"; then :
10834 ac_cv_lib_dld_dld_link=yes
10835else
10836 ac_cv_lib_dld_dld_link=no
10837fi
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840LIBS=$ac_check_lib_save_LIBS
10841fi
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10843$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10844if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10845 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10846fi
10847
10848
10849fi
10850
10851
10852fi
10853
10854
10855fi
10856
10857
10858fi
10859
10860
10861fi
10862
10863 ;;
10864 esac
10865
10866 if test "x$lt_cv_dlopen" != xno; then
10867 enable_dlopen=yes
10868 else
10869 enable_dlopen=no
10870 fi
10871
10872 case $lt_cv_dlopen in
10873 dlopen)
10874 save_CPPFLAGS="$CPPFLAGS"
10875 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10876
10877 save_LDFLAGS="$LDFLAGS"
10878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10879
10880 save_LIBS="$LIBS"
10881 LIBS="$lt_cv_dlopen_libs $LIBS"
10882
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10884$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10885if ${lt_cv_dlopen_self+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887else
10888 if test "$cross_compiling" = yes; then :
10889 lt_cv_dlopen_self=cross
10890else
10891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10892 lt_status=$lt_dlunknown
10893 cat > conftest.$ac_ext <<_LT_EOF
10894#line $LINENO "configure"
10895#include "confdefs.h"
10896
10897#if HAVE_DLFCN_H
10898#include <dlfcn.h>
10899#endif
10900
10901#include <stdio.h>
10902
10903#ifdef RTLD_GLOBAL
10904# define LT_DLGLOBAL RTLD_GLOBAL
10905#else
10906# ifdef DL_GLOBAL
10907# define LT_DLGLOBAL DL_GLOBAL
10908# else
10909# define LT_DLGLOBAL 0
10910# endif
10911#endif
10912
10913/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10914 find out it does not work in some platform. */
10915#ifndef LT_DLLAZY_OR_NOW
10916# ifdef RTLD_LAZY
10917# define LT_DLLAZY_OR_NOW RTLD_LAZY
10918# else
10919# ifdef DL_LAZY
10920# define LT_DLLAZY_OR_NOW DL_LAZY
10921# else
10922# ifdef RTLD_NOW
10923# define LT_DLLAZY_OR_NOW RTLD_NOW
10924# else
10925# ifdef DL_NOW
10926# define LT_DLLAZY_OR_NOW DL_NOW
10927# else
10928# define LT_DLLAZY_OR_NOW 0
10929# endif
10930# endif
10931# endif
10932# endif
10933#endif
10934
10935/* When -fvisbility=hidden is used, assume the code has been annotated
10936 correspondingly for the symbols needed. */
10937#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10938int fnord () __attribute__((visibility("default")));
10939#endif
10940
10941int fnord () { return 42; }
10942int main ()
10943{
10944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10945 int status = $lt_dlunknown;
10946
10947 if (self)
10948 {
10949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10950 else
10951 {
10952 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10953 else puts (dlerror ());
10954 }
10955 /* dlclose (self); */
10956 }
10957 else
10958 puts (dlerror ());
10959
10960 return status;
10961}
10962_LT_EOF
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964 (eval $ac_link) 2>&5
10965 ac_status=$?
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10968 (./conftest; exit; ) >&5 2>/dev/null
10969 lt_status=$?
10970 case x$lt_status in
10971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10973 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10974 esac
10975 else :
10976 # compilation failed
10977 lt_cv_dlopen_self=no
10978 fi
10979fi
10980rm -fr conftest*
10981
10982
10983fi
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10985$as_echo "$lt_cv_dlopen_self" >&6; }
10986
10987 if test "x$lt_cv_dlopen_self" = xyes; then
10988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10990$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10991if ${lt_cv_dlopen_self_static+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993else
10994 if test "$cross_compiling" = yes; then :
10995 lt_cv_dlopen_self_static=cross
10996else
10997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998 lt_status=$lt_dlunknown
10999 cat > conftest.$ac_ext <<_LT_EOF
11000#line $LINENO "configure"
11001#include "confdefs.h"
11002
11003#if HAVE_DLFCN_H
11004#include <dlfcn.h>
11005#endif
11006
11007#include <stdio.h>
11008
11009#ifdef RTLD_GLOBAL
11010# define LT_DLGLOBAL RTLD_GLOBAL
11011#else
11012# ifdef DL_GLOBAL
11013# define LT_DLGLOBAL DL_GLOBAL
11014# else
11015# define LT_DLGLOBAL 0
11016# endif
11017#endif
11018
11019/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020 find out it does not work in some platform. */
11021#ifndef LT_DLLAZY_OR_NOW
11022# ifdef RTLD_LAZY
11023# define LT_DLLAZY_OR_NOW RTLD_LAZY
11024# else
11025# ifdef DL_LAZY
11026# define LT_DLLAZY_OR_NOW DL_LAZY
11027# else
11028# ifdef RTLD_NOW
11029# define LT_DLLAZY_OR_NOW RTLD_NOW
11030# else
11031# ifdef DL_NOW
11032# define LT_DLLAZY_OR_NOW DL_NOW
11033# else
11034# define LT_DLLAZY_OR_NOW 0
11035# endif
11036# endif
11037# endif
11038# endif
11039#endif
11040
11041/* When -fvisbility=hidden is used, assume the code has been annotated
11042 correspondingly for the symbols needed. */
11043#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11044int fnord () __attribute__((visibility("default")));
11045#endif
11046
11047int fnord () { return 42; }
11048int main ()
11049{
11050 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11051 int status = $lt_dlunknown;
11052
11053 if (self)
11054 {
11055 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11056 else
11057 {
11058 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059 else puts (dlerror ());
11060 }
11061 /* dlclose (self); */
11062 }
11063 else
11064 puts (dlerror ());
11065
11066 return status;
11067}
11068_LT_EOF
11069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11073 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11074 (./conftest; exit; ) >&5 2>/dev/null
11075 lt_status=$?
11076 case x$lt_status in
11077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11079 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11080 esac
11081 else :
11082 # compilation failed
11083 lt_cv_dlopen_self_static=no
11084 fi
11085fi
11086rm -fr conftest*
11087
11088
11089fi
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11091$as_echo "$lt_cv_dlopen_self_static" >&6; }
11092 fi
11093
11094 CPPFLAGS="$save_CPPFLAGS"
11095 LDFLAGS="$save_LDFLAGS"
11096 LIBS="$save_LIBS"
11097 ;;
11098 esac
11099
11100 case $lt_cv_dlopen_self in
11101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11102 *) enable_dlopen_self=unknown ;;
11103 esac
11104
11105 case $lt_cv_dlopen_self_static in
11106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11107 *) enable_dlopen_self_static=unknown ;;
11108 esac
11109fi
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127striplib=
11128old_striplib=
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11130$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11131if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11133 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135$as_echo "yes" >&6; }
11136else
11137# FIXME - insert some real tests, host_os isn't really good enough
11138 case $host_os in
11139 darwin*)
11140 if test -n "$STRIP" ; then
11141 striplib="$STRIP -x"
11142 old_striplib="$STRIP -S"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144$as_echo "yes" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
11148 fi
11149 ;;
11150 *)
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
11153 ;;
11154 esac
11155fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168 # Report which library types will actually be built
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11170$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11172$as_echo "$can_build_shared" >&6; }
11173
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11175$as_echo_n "checking whether to build shared libraries... " >&6; }
11176 test "$can_build_shared" = "no" && enable_shared=no
11177
11178 # On AIX, shared libraries and static libraries use the same namespace, and
11179 # are all built from PIC.
11180 case $host_os in
11181 aix3*)
11182 test "$enable_shared" = yes && enable_static=no
11183 if test -n "$RANLIB"; then
11184 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11185 postinstall_cmds='$RANLIB $lib'
11186 fi
11187 ;;
11188
11189 aix[4-9]*)
11190 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11191 test "$enable_shared" = yes && enable_static=no
11192 fi
11193 ;;
11194 esac
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11196$as_echo "$enable_shared" >&6; }
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11199$as_echo_n "checking whether to build static libraries... " >&6; }
11200 # Make sure either enable_shared or enable_static is yes.
11201 test "$enable_shared" = yes || enable_static=yes
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11203$as_echo "$enable_static" >&6; }
11204
11205
11206
11207
11208fi
11209ac_ext=c
11210ac_cpp='$CPP $CPPFLAGS'
11211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215CC="$lt_save_CC"
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231 ac_config_commands="$ac_config_commands libtool"
11232
11233
11234
11235
11236# Only expand once:
11237
11238
11239ac_ext=c
11240ac_cpp='$CPP $CPPFLAGS'
11241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11243ac_compiler_gnu=$ac_cv_c_compiler_gnu
11244
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
11246$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
11247if ${ac_cv_cflags_warn_all+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249else
11250 ac_cv_cflags_warn_all="no, unknown"
11251ac_save_CFLAGS="$CFLAGS"
11252for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
11253do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255/* end confdefs.h. */
11256
11257int
11258main ()
11259{
11260
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_compile "$LINENO"; then :
11266 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
11267fi
11268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269done
11270CFLAGS="$ac_save_CFLAGS"
11271
11272fi
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
11274$as_echo "$ac_cv_cflags_warn_all" >&6; }
11275case ".$ac_cv_cflags_warn_all" in
11276 .ok|.ok,*) ;;
11277 .|.no|.no,*) ;;
11278 *) if ${CFLAGS+:} false; then :
11279 case " $CFLAGS " in
11280 *" $ac_cv_cflags_warn_all "*)
11281 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
11282 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
11283 ac_status=$?
11284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285 test $ac_status = 0; }
11286 ;;
11287 *)
11288 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
11289 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
11290 ac_status=$?
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; }
11293 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
11294 ;;
11295 esac
11296else
11297 CFLAGS="$ac_cv_cflags_warn_all"
11298fi
11299 ;;
11300esac
11301
11302ac_ext=c
11303ac_cpp='$CPP $CPPFLAGS'
11304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11306ac_compiler_gnu=$ac_cv_c_compiler_gnu
11307
11308
11309
11310 set -- $(echo $PACKAGE_VERSION |
11311 sed 's:^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$:\1 \2 \3:'
11312 )
11313 LIBTOOL_VERSION_INFO="$(expr $1 + $2):$3:$2"
11314
11315
11316
11317
03ff6477
MW
11318## This is surprisingly awful. The convention for official version numbers
11319## is that they look like MAJOR.MINOR.PATCH[.BPB][-N-gHEX[+]]. ASDF
11320## insists on simple numeric things separated by dots. If there's no Git
11321## thing on the end, then the main version number will do fine. If there
11322## is, then we insert /two/ `0's in, followed by N and the HEX converted to
11323## decimal. Why two? Because if there's no brown-paper-bag number, we
11324## want to make sure that the first BPB release is higher than any of the
11325## preceding Git revisions.
43793891 11326ver=0.2.0-86-g67d1
03ff6477
MW
11327case $ver in
11328 *-*-g*)
11329 base=${ver%%-*} tail=${ver#*-}
11330 n=${tail%%-*} tail=${tail#*-g}
11331 case $tail in *+) grubby=.1 tail=${tail%+} ;; *) grubby= ;; esac
11332 rev=$(( 0x$tail ))
11333 ASDF_VERSION=$base.0.0.$n.$rev$grubby
11334 ;;
11335 *)
11336 ASDF_VERSION=$ver
11337 ;;
11338esac
11339
11340
11341
5dff0f1f
MW
11342
11343# Check whether --with-lisp-system was given.
11344if test "${with_lisp_system+set}" = set; then :
11345 withval=$with_lisp_system;
11346else
11347 with_lisp_system="sbcl clisp"
11348fi
11349
11350
11351for ac_prog in cl-launch
11352do
11353 # Extract the first word of "$ac_prog", so it can be a program name with args.
11354set dummy $ac_prog; ac_word=$2
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356$as_echo_n "checking for $ac_word... " >&6; }
11357if ${ac_cv_prog_CL_LAUNCH+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359else
11360 if test -n "$CL_LAUNCH"; then
11361 ac_cv_prog_CL_LAUNCH="$CL_LAUNCH" # Let the user override the test.
11362else
11363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_CL_LAUNCH="$ac_prog"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374done
11375 done
11376IFS=$as_save_IFS
11377
11378fi
11379fi
11380CL_LAUNCH=$ac_cv_prog_CL_LAUNCH
11381if test -n "$CL_LAUNCH"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CL_LAUNCH" >&5
11383$as_echo "$CL_LAUNCH" >&6; }
11384else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
11387fi
11388
11389
11390 test -n "$CL_LAUNCH" && break
11391done
11392test -n "$CL_LAUNCH" || CL_LAUNCH="not-found"
11393
11394case "$CL_LAUNCH" in
11395 not-found) as_fn_error $? "\`cl-launch' not found" "$LINENO" 5 ;;
11396esac
11397
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for best choice of Lisp system" >&5
11399$as_echo_n "checking for best choice of Lisp system... " >&6; }
11400if ! LISPSYS=$($CL_LAUNCH -l "$with_lisp_system" \
11401 -ip '(string-downcase (lisp-implementation-type))'); then
11402 as_fn_error $? "cl-launch didn't like any Lisp system" "$LINENO" 5
11403fi
11404
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LISPSYS" >&5
11406$as_echo "$LISPSYS" >&6; }
11407
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FASL file extension" >&5
11409$as_echo_n "checking FASL file extension... " >&6; }
031a15b2 11410fasl=$($CL_LAUNCH -l $LISPSYS -ip \
5dff0f1f
MW
11411 '(pathname-type (compile-file-pathname "foo.lisp"))')
11412
031a15b2
MW
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: .$fasl" >&5
11414$as_echo ".$fasl" >&6; }
5dff0f1f
MW
11415
11416
11417# Check whether --with-lisp-source-dir was given.
11418if test "${with_lisp_source_dir+set}" = set; then :
11419 withval=$with_lisp_source_dir;
11420else
11421 with_lisp_source_dir='${datadir}/common-lisp/source'
11422fi
11423
11424
11425# Check whether --with-lisp-system-dir was given.
11426if test "${with_lisp_system_dir+set}" = set; then :
11427 withval=$with_lisp_system_dir;
11428else
11429 with_lisp_system_dir='${datadir}/common-lisp/systems'
11430fi
11431
11432lispsrcdir=$with_lisp_source_dir
11433
11434lispsysdir=$with_lisp_system_dir
11435
11436
11437
43793891 11438ac_config_files="$ac_config_files Makefile src/Makefile lib/Makefile doc/Makefile test/Makefile"
5dff0f1f
MW
11439
11440cat >confcache <<\_ACEOF
11441# This file is a shell script that caches the results of configure
11442# tests run on this system so they can be shared between configure
11443# scripts and configure runs, see configure's option --config-cache.
11444# It is not useful on other systems. If it contains results you don't
11445# want to keep, you may remove or edit it.
11446#
11447# config.status only pays attention to the cache file if you give it
11448# the --recheck option to rerun configure.
11449#
11450# `ac_cv_env_foo' variables (set or unset) will be overridden when
11451# loading this file, other *unset* `ac_cv_foo' will be assigned the
11452# following values.
11453
11454_ACEOF
11455
11456# The following way of writing the cache mishandles newlines in values,
11457# but we know of no workaround that is simple, portable, and efficient.
11458# So, we kill variables containing newlines.
11459# Ultrix sh set writes to stderr and can't be redirected directly,
11460# and sets the high bit in the cache file unless we assign to the vars.
11461(
11462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11463 eval ac_val=\$$ac_var
11464 case $ac_val in #(
11465 *${as_nl}*)
11466 case $ac_var in #(
11467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11468$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11469 esac
11470 case $ac_var in #(
11471 _ | IFS | as_nl) ;; #(
11472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11473 *) { eval $ac_var=; unset $ac_var;} ;;
11474 esac ;;
11475 esac
11476 done
11477
11478 (set) 2>&1 |
11479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11480 *${as_nl}ac_space=\ *)
11481 # `set' does not quote correctly, so add quotes: double-quote
11482 # substitution turns \\\\ into \\, and sed turns \\ into \.
11483 sed -n \
11484 "s/'/'\\\\''/g;
11485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11486 ;; #(
11487 *)
11488 # `set' quotes correctly as required by POSIX, so do not add quotes.
11489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11490 ;;
11491 esac |
11492 sort
11493) |
11494 sed '
11495 /^ac_cv_env_/b end
11496 t clear
11497 :clear
11498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11499 t end
11500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11501 :end' >>confcache
11502if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11503 if test -w "$cache_file"; then
11504 if test "x$cache_file" != "x/dev/null"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11506$as_echo "$as_me: updating cache $cache_file" >&6;}
11507 if test ! -f "$cache_file" || test -h "$cache_file"; then
11508 cat confcache >"$cache_file"
11509 else
11510 case $cache_file in #(
11511 */* | ?:*)
11512 mv -f confcache "$cache_file"$$ &&
11513 mv -f "$cache_file"$$ "$cache_file" ;; #(
11514 *)
11515 mv -f confcache "$cache_file" ;;
11516 esac
11517 fi
11518 fi
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11521$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11522 fi
11523fi
11524rm -f confcache
11525
11526test "x$prefix" = xNONE && prefix=$ac_default_prefix
11527# Let make expand exec_prefix.
11528test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11529
11530# Transform confdefs.h into DEFS.
11531# Protect against shell expansion while executing Makefile rules.
11532# Protect against Makefile macro expansion.
11533#
11534# If the first sed substitution is executed (which looks for macros that
11535# take arguments), then branch to the quote section. Otherwise,
11536# look for a macro that doesn't take arguments.
11537ac_script='
11538:mline
11539/\\$/{
11540 N
11541 s,\\\n,,
11542 b mline
11543}
11544t clear
11545:clear
11546s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11547t quote
11548s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11549t quote
11550b any
11551:quote
11552s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11553s/\[/\\&/g
11554s/\]/\\&/g
11555s/\$/$$/g
11556H
11557:any
11558${
11559 g
11560 s/^\n//
11561 s/\n/ /g
11562 p
11563}
11564'
11565DEFS=`sed -n "$ac_script" confdefs.h`
11566
11567
11568ac_libobjs=
11569ac_ltlibobjs=
11570U=
11571for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11572 # 1. Remove the extension, and $U if already installed.
11573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11574 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11576 # will be set to the directory where LIBOBJS objects are built.
11577 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11578 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11579done
11580LIBOBJS=$ac_libobjs
11581
11582LTLIBOBJS=$ac_ltlibobjs
11583
11584
11585 if test -n "$EXEEXT"; then
11586 am__EXEEXT_TRUE=
11587 am__EXEEXT_FALSE='#'
11588else
11589 am__EXEEXT_TRUE='#'
11590 am__EXEEXT_FALSE=
11591fi
11592
11593if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11594 as_fn_error $? "conditional \"AMDEP\" was never defined.
11595Usually this means the macro was only invoked conditionally." "$LINENO" 5
11596fi
11597if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11598 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11599Usually this means the macro was only invoked conditionally." "$LINENO" 5
11600fi
11601
11602: "${CONFIG_STATUS=./config.status}"
11603ac_write_fail=0
11604ac_clean_files_save=$ac_clean_files
11605ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11607$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11608as_write_fail=0
11609cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11610#! $SHELL
11611# Generated by $as_me.
11612# Run this file to recreate the current configuration.
11613# Compiler output produced by configure, useful for debugging
11614# configure, is in config.log if it exists.
11615
11616debug=false
11617ac_cs_recheck=false
11618ac_cs_silent=false
11619
11620SHELL=\${CONFIG_SHELL-$SHELL}
11621export SHELL
11622_ASEOF
11623cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11624## -------------------- ##
11625## M4sh Initialization. ##
11626## -------------------- ##
11627
11628# Be more Bourne compatible
11629DUALCASE=1; export DUALCASE # for MKS sh
11630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11631 emulate sh
11632 NULLCMD=:
11633 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11634 # is contrary to our usage. Disable this feature.
11635 alias -g '${1+"$@"}'='"$@"'
11636 setopt NO_GLOB_SUBST
11637else
11638 case `(set -o) 2>/dev/null` in #(
11639 *posix*) :
11640 set -o posix ;; #(
11641 *) :
11642 ;;
11643esac
11644fi
11645
11646
11647as_nl='
11648'
11649export as_nl
11650# Printing a long string crashes Solaris 7 /usr/bin/printf.
11651as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11654# Prefer a ksh shell builtin over an external printf program on Solaris,
11655# but without wasting forks for bash or zsh.
11656if test -z "$BASH_VERSION$ZSH_VERSION" \
11657 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11658 as_echo='print -r --'
11659 as_echo_n='print -rn --'
11660elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11661 as_echo='printf %s\n'
11662 as_echo_n='printf %s'
11663else
11664 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11665 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11666 as_echo_n='/usr/ucb/echo -n'
11667 else
11668 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11669 as_echo_n_body='eval
11670 arg=$1;
11671 case $arg in #(
11672 *"$as_nl"*)
11673 expr "X$arg" : "X\\(.*\\)$as_nl";
11674 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11675 esac;
11676 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11677 '
11678 export as_echo_n_body
11679 as_echo_n='sh -c $as_echo_n_body as_echo'
11680 fi
11681 export as_echo_body
11682 as_echo='sh -c $as_echo_body as_echo'
11683fi
11684
11685# The user is always right.
11686if test "${PATH_SEPARATOR+set}" != set; then
11687 PATH_SEPARATOR=:
11688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11689 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11690 PATH_SEPARATOR=';'
11691 }
11692fi
11693
11694
11695# IFS
11696# We need space, tab and new line, in precisely that order. Quoting is
11697# there to prevent editors from complaining about space-tab.
11698# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11699# splitting by setting IFS to empty value.)
11700IFS=" "" $as_nl"
11701
11702# Find who we are. Look in the path if we contain no directory separator.
11703as_myself=
11704case $0 in #((
11705 *[\\/]* ) as_myself=$0 ;;
11706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11712 done
11713IFS=$as_save_IFS
11714
11715 ;;
11716esac
11717# We did not find ourselves, most probably we were run as `sh COMMAND'
11718# in which case we are not to be found in the path.
11719if test "x$as_myself" = x; then
11720 as_myself=$0
11721fi
11722if test ! -f "$as_myself"; then
11723 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11724 exit 1
11725fi
11726
11727# Unset variables that we do not need and which cause bugs (e.g. in
11728# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11729# suppresses any "Segmentation fault" message there. '((' could
11730# trigger a bug in pdksh 5.2.14.
11731for as_var in BASH_ENV ENV MAIL MAILPATH
11732do eval test x\${$as_var+set} = xset \
11733 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11734done
11735PS1='$ '
11736PS2='> '
11737PS4='+ '
11738
11739# NLS nuisances.
11740LC_ALL=C
11741export LC_ALL
11742LANGUAGE=C
11743export LANGUAGE
11744
11745# CDPATH.
11746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11747
11748
11749# as_fn_error STATUS ERROR [LINENO LOG_FD]
11750# ----------------------------------------
11751# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11752# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11753# script with STATUS, using 1 if that was 0.
11754as_fn_error ()
11755{
11756 as_status=$1; test $as_status -eq 0 && as_status=1
11757 if test "$4"; then
11758 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11759 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11760 fi
11761 $as_echo "$as_me: error: $2" >&2
11762 as_fn_exit $as_status
11763} # as_fn_error
11764
11765
11766# as_fn_set_status STATUS
11767# -----------------------
11768# Set $? to STATUS, without forking.
11769as_fn_set_status ()
11770{
11771 return $1
11772} # as_fn_set_status
11773
11774# as_fn_exit STATUS
11775# -----------------
11776# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11777as_fn_exit ()
11778{
11779 set +e
11780 as_fn_set_status $1
11781 exit $1
11782} # as_fn_exit
11783
11784# as_fn_unset VAR
11785# ---------------
11786# Portably unset VAR.
11787as_fn_unset ()
11788{
11789 { eval $1=; unset $1;}
11790}
11791as_unset=as_fn_unset
11792# as_fn_append VAR VALUE
11793# ----------------------
11794# Append the text in VALUE to the end of the definition contained in VAR. Take
11795# advantage of any shell optimizations that allow amortized linear growth over
11796# repeated appends, instead of the typical quadratic growth present in naive
11797# implementations.
11798if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11799 eval 'as_fn_append ()
11800 {
11801 eval $1+=\$2
11802 }'
11803else
11804 as_fn_append ()
11805 {
11806 eval $1=\$$1\$2
11807 }
11808fi # as_fn_append
11809
11810# as_fn_arith ARG...
11811# ------------------
11812# Perform arithmetic evaluation on the ARGs, and store the result in the
11813# global $as_val. Take advantage of shells that can avoid forks. The arguments
11814# must be portable across $(()) and expr.
11815if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11816 eval 'as_fn_arith ()
11817 {
11818 as_val=$(( $* ))
11819 }'
11820else
11821 as_fn_arith ()
11822 {
11823 as_val=`expr "$@" || test $? -eq 1`
11824 }
11825fi # as_fn_arith
11826
11827
11828if expr a : '\(a\)' >/dev/null 2>&1 &&
11829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11830 as_expr=expr
11831else
11832 as_expr=false
11833fi
11834
11835if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11836 as_basename=basename
11837else
11838 as_basename=false
11839fi
11840
11841if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11842 as_dirname=dirname
11843else
11844 as_dirname=false
11845fi
11846
11847as_me=`$as_basename -- "$0" ||
11848$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11849 X"$0" : 'X\(//\)$' \| \
11850 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11851$as_echo X/"$0" |
11852 sed '/^.*\/\([^/][^/]*\)\/*$/{
11853 s//\1/
11854 q
11855 }
11856 /^X\/\(\/\/\)$/{
11857 s//\1/
11858 q
11859 }
11860 /^X\/\(\/\).*/{
11861 s//\1/
11862 q
11863 }
11864 s/.*/./; q'`
11865
11866# Avoid depending upon Character Ranges.
11867as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11868as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11869as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11870as_cr_digits='0123456789'
11871as_cr_alnum=$as_cr_Letters$as_cr_digits
11872
11873ECHO_C= ECHO_N= ECHO_T=
11874case `echo -n x` in #(((((
11875-n*)
11876 case `echo 'xy\c'` in
11877 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11878 xy) ECHO_C='\c';;
11879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11880 ECHO_T=' ';;
11881 esac;;
11882*)
11883 ECHO_N='-n';;
11884esac
11885
11886rm -f conf$$ conf$$.exe conf$$.file
11887if test -d conf$$.dir; then
11888 rm -f conf$$.dir/conf$$.file
11889else
11890 rm -f conf$$.dir
11891 mkdir conf$$.dir 2>/dev/null
11892fi
11893if (echo >conf$$.file) 2>/dev/null; then
11894 if ln -s conf$$.file conf$$ 2>/dev/null; then
11895 as_ln_s='ln -s'
11896 # ... but there are two gotchas:
11897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11899 # In both cases, we have to default to `cp -pR'.
11900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11901 as_ln_s='cp -pR'
11902 elif ln conf$$.file conf$$ 2>/dev/null; then
11903 as_ln_s=ln
11904 else
11905 as_ln_s='cp -pR'
11906 fi
11907else
11908 as_ln_s='cp -pR'
11909fi
11910rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11911rmdir conf$$.dir 2>/dev/null
11912
11913
11914# as_fn_mkdir_p
11915# -------------
11916# Create "$as_dir" as a directory, including parents if necessary.
11917as_fn_mkdir_p ()
11918{
11919
11920 case $as_dir in #(
11921 -*) as_dir=./$as_dir;;
11922 esac
11923 test -d "$as_dir" || eval $as_mkdir_p || {
11924 as_dirs=
11925 while :; do
11926 case $as_dir in #(
11927 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11928 *) as_qdir=$as_dir;;
11929 esac
11930 as_dirs="'$as_qdir' $as_dirs"
11931 as_dir=`$as_dirname -- "$as_dir" ||
11932$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11933 X"$as_dir" : 'X\(//\)[^/]' \| \
11934 X"$as_dir" : 'X\(//\)$' \| \
11935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11936$as_echo X"$as_dir" |
11937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11938 s//\1/
11939 q
11940 }
11941 /^X\(\/\/\)[^/].*/{
11942 s//\1/
11943 q
11944 }
11945 /^X\(\/\/\)$/{
11946 s//\1/
11947 q
11948 }
11949 /^X\(\/\).*/{
11950 s//\1/
11951 q
11952 }
11953 s/.*/./; q'`
11954 test -d "$as_dir" && break
11955 done
11956 test -z "$as_dirs" || eval "mkdir $as_dirs"
11957 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11958
11959
11960} # as_fn_mkdir_p
11961if mkdir -p . 2>/dev/null; then
11962 as_mkdir_p='mkdir -p "$as_dir"'
11963else
11964 test -d ./-p && rmdir ./-p
11965 as_mkdir_p=false
11966fi
11967
11968
11969# as_fn_executable_p FILE
11970# -----------------------
11971# Test if FILE is an executable regular file.
11972as_fn_executable_p ()
11973{
11974 test -f "$1" && test -x "$1"
11975} # as_fn_executable_p
11976as_test_x='test -x'
11977as_executable_p=as_fn_executable_p
11978
11979# Sed expression to map a string onto a valid CPP name.
11980as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11981
11982# Sed expression to map a string onto a valid variable name.
11983as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11984
11985
11986exec 6>&1
11987## ----------------------------------- ##
11988## Main body of $CONFIG_STATUS script. ##
11989## ----------------------------------- ##
11990_ASEOF
11991test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11992
11993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994# Save the log message, to keep $0 and so on meaningful, and to
11995# report actual input values of CONFIG_FILES etc. instead of their
11996# values after options handling.
11997ac_log="
43793891 11998This file was extended by sod $as_me 0.2.0-86-g67d1, which was
5dff0f1f
MW
11999generated by GNU Autoconf 2.69. Invocation command line was
12000
12001 CONFIG_FILES = $CONFIG_FILES
12002 CONFIG_HEADERS = $CONFIG_HEADERS
12003 CONFIG_LINKS = $CONFIG_LINKS
12004 CONFIG_COMMANDS = $CONFIG_COMMANDS
12005 $ $0 $@
12006
12007on `(hostname || uname -n) 2>/dev/null | sed 1q`
12008"
12009
12010_ACEOF
12011
12012case $ac_config_files in *"
12013"*) set x $ac_config_files; shift; ac_config_files=$*;;
12014esac
12015
12016
12017
12018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12019# Files that config.status was made for.
12020config_files="$ac_config_files"
12021config_commands="$ac_config_commands"
12022
12023_ACEOF
12024
12025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12026ac_cs_usage="\
12027\`$as_me' instantiates files and other configuration actions
12028from templates according to the current configuration. Unless the files
12029and actions are specified as TAGs, all are instantiated by default.
12030
12031Usage: $0 [OPTION]... [TAG]...
12032
12033 -h, --help print this help, then exit
12034 -V, --version print version number and configuration settings, then exit
12035 --config print configuration, then exit
12036 -q, --quiet, --silent
12037 do not print progress messages
12038 -d, --debug don't remove temporary files
12039 --recheck update $as_me by reconfiguring in the same conditions
12040 --file=FILE[:TEMPLATE]
12041 instantiate the configuration file FILE
12042
12043Configuration files:
12044$config_files
12045
12046Configuration commands:
12047$config_commands
12048
12049Report bugs to <mdw@distorted.org.uk>."
12050
12051_ACEOF
12052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12054ac_cs_version="\\
43793891 12055sod config.status 0.2.0-86-g67d1
5dff0f1f
MW
12056configured by $0, generated by GNU Autoconf 2.69,
12057 with options \\"\$ac_cs_config\\"
12058
12059Copyright (C) 2012 Free Software Foundation, Inc.
12060This config.status script is free software; the Free Software Foundation
12061gives unlimited permission to copy, distribute and modify it."
12062
12063ac_pwd='$ac_pwd'
12064srcdir='$srcdir'
12065INSTALL='$INSTALL'
12066MKDIR_P='$MKDIR_P'
12067AWK='$AWK'
12068test -n "\$AWK" || AWK=awk
12069_ACEOF
12070
12071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12072# The default lists apply if the user does not specify any file.
12073ac_need_defaults=:
12074while test $# != 0
12075do
12076 case $1 in
12077 --*=?*)
12078 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12079 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12080 ac_shift=:
12081 ;;
12082 --*=)
12083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12084 ac_optarg=
12085 ac_shift=:
12086 ;;
12087 *)
12088 ac_option=$1
12089 ac_optarg=$2
12090 ac_shift=shift
12091 ;;
12092 esac
12093
12094 case $ac_option in
12095 # Handling of the options.
12096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12097 ac_cs_recheck=: ;;
12098 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12099 $as_echo "$ac_cs_version"; exit ;;
12100 --config | --confi | --conf | --con | --co | --c )
12101 $as_echo "$ac_cs_config"; exit ;;
12102 --debug | --debu | --deb | --de | --d | -d )
12103 debug=: ;;
12104 --file | --fil | --fi | --f )
12105 $ac_shift
12106 case $ac_optarg in
12107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12108 '') as_fn_error $? "missing file argument" ;;
12109 esac
12110 as_fn_append CONFIG_FILES " '$ac_optarg'"
12111 ac_need_defaults=false;;
12112 --he | --h | --help | --hel | -h )
12113 $as_echo "$ac_cs_usage"; exit ;;
12114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12116 ac_cs_silent=: ;;
12117
12118 # This is an error.
12119 -*) as_fn_error $? "unrecognized option: \`$1'
12120Try \`$0 --help' for more information." ;;
12121
12122 *) as_fn_append ac_config_targets " $1"
12123 ac_need_defaults=false ;;
12124
12125 esac
12126 shift
12127done
12128
12129ac_configure_extra_args=
12130
12131if $ac_cs_silent; then
12132 exec 6>/dev/null
12133 ac_configure_extra_args="$ac_configure_extra_args --silent"
12134fi
12135
12136_ACEOF
12137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12138if \$ac_cs_recheck; then
12139 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12140 shift
12141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12142 CONFIG_SHELL='$SHELL'
12143 export CONFIG_SHELL
12144 exec "\$@"
12145fi
12146
12147_ACEOF
12148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12149exec 5>>config.log
12150{
12151 echo
12152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12153## Running $as_me. ##
12154_ASBOX
12155 $as_echo "$ac_log"
12156} >&5
12157
12158_ACEOF
12159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160#
12161# INIT-COMMANDS
12162#
12163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12164
12165
12166# The HP-UX ksh and POSIX shell print the target directory to stdout
12167# if CDPATH is set.
12168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12169
12170sed_quote_subst='$sed_quote_subst'
12171double_quote_subst='$double_quote_subst'
12172delay_variable_subst='$delay_variable_subst'
12173macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12174macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12175enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12176enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12177pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12178enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12179SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12180ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12181PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12182host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12183host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12184host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12185build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12186build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12187build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12188SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12189Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12190GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12191EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12192FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12193LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12194NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12195LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12196max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12197ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12198exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12199lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12200lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12201lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12202lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12203lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12204reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12205reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12206OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12207deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12208file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12209file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12210want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12211DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12212sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12213AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12214AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12215archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12216STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12217RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12218old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12219old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12220old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12221lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12222CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12223CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12224compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12225GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12226lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12227lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12228lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12229lt_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"`'
12230nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12231lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12232objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12233MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12234lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12235lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12236lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12237lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12238lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12239need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12240MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12241DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12242NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12243LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12244OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12245OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12246libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12247shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12248extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12249archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12250enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12251export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12252whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12253compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12254old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12255old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12256archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12257archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12258module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12259module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12260with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12261allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12262no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12263hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12264hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12265hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12266hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12267hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12268hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12269hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12270inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12271link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12272always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12273export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12274exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12275include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12276prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12277postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12278file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12279variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12280need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12281need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12282version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12283runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12284shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12285shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12286libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12287library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12288soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12289install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12290postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12291postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12292finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12293finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12294hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12295sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12296sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12297hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12298enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12299enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12300enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12301old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12302striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12303
12304LTCC='$LTCC'
12305LTCFLAGS='$LTCFLAGS'
12306compiler='$compiler_DEFAULT'
12307
12308# A function that is used when there is no print builtin or printf.
12309func_fallback_echo ()
12310{
12311 eval 'cat <<_LTECHO_EOF
12312\$1
12313_LTECHO_EOF'
12314}
12315
12316# Quote evaled strings.
12317for var in SHELL \
12318ECHO \
12319PATH_SEPARATOR \
12320SED \
12321GREP \
12322EGREP \
12323FGREP \
12324LD \
12325NM \
12326LN_S \
12327lt_SP2NL \
12328lt_NL2SP \
12329reload_flag \
12330OBJDUMP \
12331deplibs_check_method \
12332file_magic_cmd \
12333file_magic_glob \
12334want_nocaseglob \
12335DLLTOOL \
12336sharedlib_from_linklib_cmd \
12337AR \
12338AR_FLAGS \
12339archiver_list_spec \
12340STRIP \
12341RANLIB \
12342CC \
12343CFLAGS \
12344compiler \
12345lt_cv_sys_global_symbol_pipe \
12346lt_cv_sys_global_symbol_to_cdecl \
12347lt_cv_sys_global_symbol_to_c_name_address \
12348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12349nm_file_list_spec \
12350lt_prog_compiler_no_builtin_flag \
12351lt_prog_compiler_pic \
12352lt_prog_compiler_wl \
12353lt_prog_compiler_static \
12354lt_cv_prog_compiler_c_o \
12355need_locks \
12356MANIFEST_TOOL \
12357DSYMUTIL \
12358NMEDIT \
12359LIPO \
12360OTOOL \
12361OTOOL64 \
12362shrext_cmds \
12363export_dynamic_flag_spec \
12364whole_archive_flag_spec \
12365compiler_needs_object \
12366with_gnu_ld \
12367allow_undefined_flag \
12368no_undefined_flag \
12369hardcode_libdir_flag_spec \
12370hardcode_libdir_separator \
12371exclude_expsyms \
12372include_expsyms \
12373file_list_spec \
12374variables_saved_for_relink \
12375libname_spec \
12376library_names_spec \
12377soname_spec \
12378install_override_mode \
12379finish_eval \
12380old_striplib \
12381striplib; do
12382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12383 *[\\\\\\\`\\"\\\$]*)
12384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12385 ;;
12386 *)
12387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12388 ;;
12389 esac
12390done
12391
12392# Double-quote double-evaled strings.
12393for var in reload_cmds \
12394old_postinstall_cmds \
12395old_postuninstall_cmds \
12396old_archive_cmds \
12397extract_expsyms_cmds \
12398old_archive_from_new_cmds \
12399old_archive_from_expsyms_cmds \
12400archive_cmds \
12401archive_expsym_cmds \
12402module_cmds \
12403module_expsym_cmds \
12404export_symbols_cmds \
12405prelink_cmds \
12406postlink_cmds \
12407postinstall_cmds \
12408postuninstall_cmds \
12409finish_cmds \
12410sys_lib_search_path_spec \
12411sys_lib_dlsearch_path_spec; do
12412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12413 *[\\\\\\\`\\"\\\$]*)
12414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12415 ;;
12416 *)
12417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12418 ;;
12419 esac
12420done
12421
12422ac_aux_dir='$ac_aux_dir'
12423xsi_shell='$xsi_shell'
12424lt_shell_append='$lt_shell_append'
12425
12426# See if we are running on zsh, and set the options which allow our
12427# commands through without removal of \ escapes INIT.
12428if test -n "\${ZSH_VERSION+set}" ; then
12429 setopt NO_GLOB_SUBST
12430fi
12431
12432
12433 PACKAGE='$PACKAGE'
12434 VERSION='$VERSION'
12435 TIMESTAMP='$TIMESTAMP'
12436 RM='$RM'
12437 ofile='$ofile'
12438
12439
12440
12441
12442_ACEOF
12443
12444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12445
12446# Handling of arguments.
12447for ac_config_target in $ac_config_targets
12448do
12449 case $ac_config_target in
12450 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12451 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12453 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12454 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
43793891 12455 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
031a15b2 12456 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
5dff0f1f
MW
12457
12458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12459 esac
12460done
12461
12462
12463# If the user did not use the arguments to specify the items to instantiate,
12464# then the envvar interface is used. Set only those that are not.
12465# We use the long form for the default assignment because of an extremely
12466# bizarre bug on SunOS 4.1.3.
12467if $ac_need_defaults; then
12468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12470fi
12471
12472# Have a temporary directory for convenience. Make it in the build tree
12473# simply because there is no reason against having it here, and in addition,
12474# creating and moving files from /tmp can sometimes cause problems.
12475# Hook for its removal unless debugging.
12476# Note that there is a small window in which the directory will not be cleaned:
12477# after its creation but before its name has been assigned to `$tmp'.
12478$debug ||
12479{
12480 tmp= ac_tmp=
12481 trap 'exit_status=$?
12482 : "${ac_tmp:=$tmp}"
12483 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12484' 0
12485 trap 'as_fn_exit 1' 1 2 13 15
12486}
12487# Create a (secure) tmp directory for tmp files.
12488
12489{
12490 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12491 test -d "$tmp"
12492} ||
12493{
12494 tmp=./conf$$-$RANDOM
12495 (umask 077 && mkdir "$tmp")
12496} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12497ac_tmp=$tmp
12498
12499# Set up the scripts for CONFIG_FILES section.
12500# No need to generate them if there are no CONFIG_FILES.
12501# This happens for instance with `./config.status config.h'.
12502if test -n "$CONFIG_FILES"; then
12503
12504
12505ac_cr=`echo X | tr X '\015'`
12506# On cygwin, bash can eat \r inside `` if the user requested igncr.
12507# But we know of no other shell where ac_cr would be empty at this
12508# point, so we can use a bashism as a fallback.
12509if test "x$ac_cr" = x; then
12510 eval ac_cr=\$\'\\r\'
12511fi
12512ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12513if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12514 ac_cs_awk_cr='\\r'
12515else
12516 ac_cs_awk_cr=$ac_cr
12517fi
12518
12519echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12520_ACEOF
12521
12522
12523{
12524 echo "cat >conf$$subs.awk <<_ACEOF" &&
12525 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12526 echo "_ACEOF"
12527} >conf$$subs.sh ||
12528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12529ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12530ac_delim='%!_!# '
12531for ac_last_try in false false false false false :; do
12532 . ./conf$$subs.sh ||
12533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12534
12535 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12536 if test $ac_delim_n = $ac_delim_num; then
12537 break
12538 elif $ac_last_try; then
12539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12540 else
12541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12542 fi
12543done
12544rm -f conf$$subs.sh
12545
12546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12547cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12548_ACEOF
12549sed -n '
12550h
12551s/^/S["/; s/!.*/"]=/
12552p
12553g
12554s/^[^!]*!//
12555:repl
12556t repl
12557s/'"$ac_delim"'$//
12558t delim
12559:nl
12560h
12561s/\(.\{148\}\)..*/\1/
12562t more1
12563s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12564p
12565n
12566b repl
12567:more1
12568s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12569p
12570g
12571s/.\{148\}//
12572t nl
12573:delim
12574h
12575s/\(.\{148\}\)..*/\1/
12576t more2
12577s/["\\]/\\&/g; s/^/"/; s/$/"/
12578p
12579b
12580:more2
12581s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12582p
12583g
12584s/.\{148\}//
12585t delim
12586' <conf$$subs.awk | sed '
12587/^[^""]/{
12588 N
12589 s/\n//
12590}
12591' >>$CONFIG_STATUS || ac_write_fail=1
12592rm -f conf$$subs.awk
12593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12594_ACAWK
12595cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12596 for (key in S) S_is_set[key] = 1
12597 FS = "\a"
12598
12599}
12600{
12601 line = $ 0
12602 nfields = split(line, field, "@")
12603 substed = 0
12604 len = length(field[1])
12605 for (i = 2; i < nfields; i++) {
12606 key = field[i]
12607 keylen = length(key)
12608 if (S_is_set[key]) {
12609 value = S[key]
12610 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12611 len += length(value) + length(field[++i])
12612 substed = 1
12613 } else
12614 len += 1 + keylen
12615 }
12616
12617 print line
12618}
12619
12620_ACAWK
12621_ACEOF
12622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12624 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12625else
12626 cat
12627fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12628 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12629_ACEOF
12630
12631# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12632# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12633# trailing colons and then remove the whole line if VPATH becomes empty
12634# (actually we leave an empty line to preserve line numbers).
12635if test "x$srcdir" = x.; then
12636 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12637h
12638s///
12639s/^/:/
12640s/[ ]*$/:/
12641s/:\$(srcdir):/:/g
12642s/:\${srcdir}:/:/g
12643s/:@srcdir@:/:/g
12644s/^:*//
12645s/:*$//
12646x
12647s/\(=[ ]*\).*/\1/
12648G
12649s/\n//
12650s/^[^=]*=[ ]*$//
12651}'
12652fi
12653
12654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12655fi # test -n "$CONFIG_FILES"
12656
12657
12658eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12659shift
12660for ac_tag
12661do
12662 case $ac_tag in
12663 :[FHLC]) ac_mode=$ac_tag; continue;;
12664 esac
12665 case $ac_mode$ac_tag in
12666 :[FHL]*:*);;
12667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12668 :[FH]-) ac_tag=-:-;;
12669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12670 esac
12671 ac_save_IFS=$IFS
12672 IFS=:
12673 set x $ac_tag
12674 IFS=$ac_save_IFS
12675 shift
12676 ac_file=$1
12677 shift
12678
12679 case $ac_mode in
12680 :L) ac_source=$1;;
12681 :[FH])
12682 ac_file_inputs=
12683 for ac_f
12684 do
12685 case $ac_f in
12686 -) ac_f="$ac_tmp/stdin";;
12687 *) # Look for the file first in the build tree, then in the source tree
12688 # (if the path is not absolute). The absolute path cannot be DOS-style,
12689 # because $ac_f cannot contain `:'.
12690 test -f "$ac_f" ||
12691 case $ac_f in
12692 [\\/$]*) false;;
12693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12694 esac ||
12695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12696 esac
12697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12698 as_fn_append ac_file_inputs " '$ac_f'"
12699 done
12700
12701 # Let's still pretend it is `configure' which instantiates (i.e., don't
12702 # use $as_me), people would be surprised to read:
12703 # /* config.h. Generated by config.status. */
12704 configure_input='Generated from '`
12705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12706 `' by configure.'
12707 if test x"$ac_file" != x-; then
12708 configure_input="$ac_file. $configure_input"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12710$as_echo "$as_me: creating $ac_file" >&6;}
12711 fi
12712 # Neutralize special characters interpreted by sed in replacement strings.
12713 case $configure_input in #(
12714 *\&* | *\|* | *\\* )
12715 ac_sed_conf_input=`$as_echo "$configure_input" |
12716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12717 *) ac_sed_conf_input=$configure_input;;
12718 esac
12719
12720 case $ac_tag in
12721 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12723 esac
12724 ;;
12725 esac
12726
12727 ac_dir=`$as_dirname -- "$ac_file" ||
12728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12729 X"$ac_file" : 'X\(//\)[^/]' \| \
12730 X"$ac_file" : 'X\(//\)$' \| \
12731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12732$as_echo X"$ac_file" |
12733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12734 s//\1/
12735 q
12736 }
12737 /^X\(\/\/\)[^/].*/{
12738 s//\1/
12739 q
12740 }
12741 /^X\(\/\/\)$/{
12742 s//\1/
12743 q
12744 }
12745 /^X\(\/\).*/{
12746 s//\1/
12747 q
12748 }
12749 s/.*/./; q'`
12750 as_dir="$ac_dir"; as_fn_mkdir_p
12751 ac_builddir=.
12752
12753case "$ac_dir" in
12754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12755*)
12756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12757 # A ".." for each directory in $ac_dir_suffix.
12758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12759 case $ac_top_builddir_sub in
12760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12762 esac ;;
12763esac
12764ac_abs_top_builddir=$ac_pwd
12765ac_abs_builddir=$ac_pwd$ac_dir_suffix
12766# for backward compatibility:
12767ac_top_builddir=$ac_top_build_prefix
12768
12769case $srcdir in
12770 .) # We are building in place.
12771 ac_srcdir=.
12772 ac_top_srcdir=$ac_top_builddir_sub
12773 ac_abs_top_srcdir=$ac_pwd ;;
12774 [\\/]* | ?:[\\/]* ) # Absolute name.
12775 ac_srcdir=$srcdir$ac_dir_suffix;
12776 ac_top_srcdir=$srcdir
12777 ac_abs_top_srcdir=$srcdir ;;
12778 *) # Relative name.
12779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12780 ac_top_srcdir=$ac_top_build_prefix$srcdir
12781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12782esac
12783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12784
12785
12786 case $ac_mode in
12787 :F)
12788 #
12789 # CONFIG_FILE
12790 #
12791
12792 case $INSTALL in
12793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12795 esac
12796 ac_MKDIR_P=$MKDIR_P
12797 case $MKDIR_P in
12798 [\\/$]* | ?:[\\/]* ) ;;
12799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12800 esac
12801_ACEOF
12802
12803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12804# If the template does not know about datarootdir, expand it.
12805# FIXME: This hack should be removed a few years after 2.60.
12806ac_datarootdir_hack=; ac_datarootdir_seen=
12807ac_sed_dataroot='
12808/datarootdir/ {
12809 p
12810 q
12811}
12812/@datadir@/p
12813/@docdir@/p
12814/@infodir@/p
12815/@localedir@/p
12816/@mandir@/p'
12817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12818*datarootdir*) ac_datarootdir_seen=yes;;
12819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12822_ACEOF
12823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12824 ac_datarootdir_hack='
12825 s&@datadir@&$datadir&g
12826 s&@docdir@&$docdir&g
12827 s&@infodir@&$infodir&g
12828 s&@localedir@&$localedir&g
12829 s&@mandir@&$mandir&g
12830 s&\\\${datarootdir}&$datarootdir&g' ;;
12831esac
12832_ACEOF
12833
12834# Neutralize VPATH when `$srcdir' = `.'.
12835# Shell code in configure.ac might set extrasub.
12836# FIXME: do we really want to maintain this feature?
12837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12838ac_sed_extra="$ac_vpsub
12839$extrasub
12840_ACEOF
12841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12842:t
12843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12844s|@configure_input@|$ac_sed_conf_input|;t t
12845s&@top_builddir@&$ac_top_builddir_sub&;t t
12846s&@top_build_prefix@&$ac_top_build_prefix&;t t
12847s&@srcdir@&$ac_srcdir&;t t
12848s&@abs_srcdir@&$ac_abs_srcdir&;t t
12849s&@top_srcdir@&$ac_top_srcdir&;t t
12850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12851s&@builddir@&$ac_builddir&;t t
12852s&@abs_builddir@&$ac_abs_builddir&;t t
12853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12854s&@INSTALL@&$ac_INSTALL&;t t
12855s&@MKDIR_P@&$ac_MKDIR_P&;t t
12856$ac_datarootdir_hack
12857"
12858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12860
12861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12864 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12866which seems to be undefined. Please make sure it is defined" >&5
12867$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12868which seems to be undefined. Please make sure it is defined" >&2;}
12869
12870 rm -f "$ac_tmp/stdin"
12871 case $ac_file in
12872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12874 esac \
12875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12876 ;;
12877
12878
12879 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12880$as_echo "$as_me: executing $ac_file commands" >&6;}
12881 ;;
12882 esac
12883
12884
12885 case $ac_file$ac_mode in
12886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12887 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12888 # are listed without --file. Let's play safe and only enable the eval
12889 # if we detect the quoting.
12890 case $CONFIG_FILES in
12891 *\'*) eval set x "$CONFIG_FILES" ;;
12892 *) set x $CONFIG_FILES ;;
12893 esac
12894 shift
12895 for mf
12896 do
12897 # Strip MF so we end up with the name of the file.
12898 mf=`echo "$mf" | sed -e 's/:.*$//'`
12899 # Check whether this is an Automake generated Makefile or not.
12900 # We used to match only the files named `Makefile.in', but
12901 # some people rename them; so instead we look at the file content.
12902 # Grep'ing the first line is not enough: some people post-process
12903 # each Makefile.in and add a new line on top of each file to say so.
12904 # Grep'ing the whole file is not good either: AIX grep has a line
12905 # limit of 2048, but all sed's we know have understand at least 4000.
12906 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12907 dirpart=`$as_dirname -- "$mf" ||
12908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12909 X"$mf" : 'X\(//\)[^/]' \| \
12910 X"$mf" : 'X\(//\)$' \| \
12911 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12912$as_echo X"$mf" |
12913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12914 s//\1/
12915 q
12916 }
12917 /^X\(\/\/\)[^/].*/{
12918 s//\1/
12919 q
12920 }
12921 /^X\(\/\/\)$/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\).*/{
12926 s//\1/
12927 q
12928 }
12929 s/.*/./; q'`
12930 else
12931 continue
12932 fi
12933 # Extract the definition of DEPDIR, am__include, and am__quote
12934 # from the Makefile without running `make'.
12935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12936 test -z "$DEPDIR" && continue
12937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12938 test -z "am__include" && continue
12939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12940 # When using ansi2knr, U may be empty or an underscore; expand it
12941 U=`sed -n 's/^U = //p' < "$mf"`
12942 # Find all dependency output files, they are included files with
12943 # $(DEPDIR) in their names. We invoke sed twice because it is the
12944 # simplest approach to changing $(DEPDIR) to its actual value in the
12945 # expansion.
12946 for file in `sed -n "
12947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12949 # Make sure the directory exists.
12950 test -f "$dirpart/$file" && continue
12951 fdir=`$as_dirname -- "$file" ||
12952$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12953 X"$file" : 'X\(//\)[^/]' \| \
12954 X"$file" : 'X\(//\)$' \| \
12955 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12956$as_echo X"$file" |
12957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12958 s//\1/
12959 q
12960 }
12961 /^X\(\/\/\)[^/].*/{
12962 s//\1/
12963 q
12964 }
12965 /^X\(\/\/\)$/{
12966 s//\1/
12967 q
12968 }
12969 /^X\(\/\).*/{
12970 s//\1/
12971 q
12972 }
12973 s/.*/./; q'`
12974 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12975 # echo "creating $dirpart/$file"
12976 echo '# dummy' > "$dirpart/$file"
12977 done
12978 done
12979}
12980 ;;
12981 "libtool":C)
12982
12983 # See if we are running on zsh, and set the options which allow our
12984 # commands through without removal of \ escapes.
12985 if test -n "${ZSH_VERSION+set}" ; then
12986 setopt NO_GLOB_SUBST
12987 fi
12988
12989 cfgfile="${ofile}T"
12990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12991 $RM "$cfgfile"
12992
12993 cat <<_LT_EOF >> "$cfgfile"
12994#! $SHELL
12995
12996# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12997# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12999# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13000#
13001# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13002# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13003# Foundation, Inc.
13004# Written by Gordon Matzigkeit, 1996
13005#
13006# This file is part of GNU Libtool.
13007#
13008# GNU Libtool is free software; you can redistribute it and/or
13009# modify it under the terms of the GNU General Public License as
13010# published by the Free Software Foundation; either version 2 of
13011# the License, or (at your option) any later version.
13012#
13013# As a special exception to the GNU General Public License,
13014# if you distribute this file as part of a program or library that
13015# is built using GNU Libtool, you may include this file under the
13016# same distribution terms that you use for the rest of that program.
13017#
13018# GNU Libtool is distributed in the hope that it will be useful,
13019# but WITHOUT ANY WARRANTY; without even the implied warranty of
13020# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13021# GNU General Public License for more details.
13022#
13023# You should have received a copy of the GNU General Public License
13024# along with GNU Libtool; see the file COPYING. If not, a copy
13025# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13026# obtained by writing to the Free Software Foundation, Inc.,
13027# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13028
13029
13030# The names of the tagged configurations supported by this script.
13031available_tags=""
13032
13033# ### BEGIN LIBTOOL CONFIG
13034
13035# Which release of libtool.m4 was used?
13036macro_version=$macro_version
13037macro_revision=$macro_revision
13038
13039# Whether or not to build shared libraries.
13040build_libtool_libs=$enable_shared
13041
13042# Whether or not to build static libraries.
13043build_old_libs=$enable_static
13044
13045# What type of objects to build.
13046pic_mode=$pic_mode
13047
13048# Whether or not to optimize for fast installation.
13049fast_install=$enable_fast_install
13050
13051# Shell to use when invoking shell scripts.
13052SHELL=$lt_SHELL
13053
13054# An echo program that protects backslashes.
13055ECHO=$lt_ECHO
13056
13057# The PATH separator for the build system.
13058PATH_SEPARATOR=$lt_PATH_SEPARATOR
13059
13060# The host system.
13061host_alias=$host_alias
13062host=$host
13063host_os=$host_os
13064
13065# The build system.
13066build_alias=$build_alias
13067build=$build
13068build_os=$build_os
13069
13070# A sed program that does not truncate output.
13071SED=$lt_SED
13072
13073# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13074Xsed="\$SED -e 1s/^X//"
13075
13076# A grep program that handles long lines.
13077GREP=$lt_GREP
13078
13079# An ERE matcher.
13080EGREP=$lt_EGREP
13081
13082# A literal string matcher.
13083FGREP=$lt_FGREP
13084
13085# A BSD- or MS-compatible name lister.
13086NM=$lt_NM
13087
13088# Whether we need soft or hard links.
13089LN_S=$lt_LN_S
13090
13091# What is the maximum length of a command?
13092max_cmd_len=$max_cmd_len
13093
13094# Object file suffix (normally "o").
13095objext=$ac_objext
13096
13097# Executable file suffix (normally "").
13098exeext=$exeext
13099
13100# whether the shell understands "unset".
13101lt_unset=$lt_unset
13102
13103# turn spaces into newlines.
13104SP2NL=$lt_lt_SP2NL
13105
13106# turn newlines into spaces.
13107NL2SP=$lt_lt_NL2SP
13108
13109# convert \$build file names to \$host format.
13110to_host_file_cmd=$lt_cv_to_host_file_cmd
13111
13112# convert \$build files to toolchain format.
13113to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13114
13115# An object symbol dumper.
13116OBJDUMP=$lt_OBJDUMP
13117
13118# Method to check whether dependent libraries are shared objects.
13119deplibs_check_method=$lt_deplibs_check_method
13120
13121# Command to use when deplibs_check_method = "file_magic".
13122file_magic_cmd=$lt_file_magic_cmd
13123
13124# How to find potential files when deplibs_check_method = "file_magic".
13125file_magic_glob=$lt_file_magic_glob
13126
13127# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13128want_nocaseglob=$lt_want_nocaseglob
13129
13130# DLL creation program.
13131DLLTOOL=$lt_DLLTOOL
13132
13133# Command to associate shared and link libraries.
13134sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13135
13136# The archiver.
13137AR=$lt_AR
13138
13139# Flags to create an archive.
13140AR_FLAGS=$lt_AR_FLAGS
13141
13142# How to feed a file listing to the archiver.
13143archiver_list_spec=$lt_archiver_list_spec
13144
13145# A symbol stripping program.
13146STRIP=$lt_STRIP
13147
13148# Commands used to install an old-style archive.
13149RANLIB=$lt_RANLIB
13150old_postinstall_cmds=$lt_old_postinstall_cmds
13151old_postuninstall_cmds=$lt_old_postuninstall_cmds
13152
13153# Whether to use a lock for old archive extraction.
13154lock_old_archive_extraction=$lock_old_archive_extraction
13155
13156# A C compiler.
13157LTCC=$lt_CC
13158
13159# LTCC compiler flags.
13160LTCFLAGS=$lt_CFLAGS
13161
13162# Take the output of nm and produce a listing of raw symbols and C names.
13163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13164
13165# Transform the output of nm in a proper C declaration.
13166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13167
13168# Transform the output of nm in a C name address pair.
13169global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13170
13171# Transform the output of nm in a C name address pair when lib prefix is needed.
13172global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13173
13174# Specify filename containing input files for \$NM.
13175nm_file_list_spec=$lt_nm_file_list_spec
13176
13177# The root where to search for dependent libraries,and in which our libraries should be installed.
13178lt_sysroot=$lt_sysroot
13179
13180# The name of the directory that contains temporary libtool files.
13181objdir=$objdir
13182
13183# Used to examine libraries when file_magic_cmd begins with "file".
13184MAGIC_CMD=$MAGIC_CMD
13185
13186# Must we lock files when doing compilation?
13187need_locks=$lt_need_locks
13188
13189# Manifest tool.
13190MANIFEST_TOOL=$lt_MANIFEST_TOOL
13191
13192# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13193DSYMUTIL=$lt_DSYMUTIL
13194
13195# Tool to change global to local symbols on Mac OS X.
13196NMEDIT=$lt_NMEDIT
13197
13198# Tool to manipulate fat objects and archives on Mac OS X.
13199LIPO=$lt_LIPO
13200
13201# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13202OTOOL=$lt_OTOOL
13203
13204# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13205OTOOL64=$lt_OTOOL64
13206
13207# Old archive suffix (normally "a").
13208libext=$libext
13209
13210# Shared library suffix (normally ".so").
13211shrext_cmds=$lt_shrext_cmds
13212
13213# The commands to extract the exported symbol list from a shared archive.
13214extract_expsyms_cmds=$lt_extract_expsyms_cmds
13215
13216# Variables whose values should be saved in libtool wrapper scripts and
13217# restored at link time.
13218variables_saved_for_relink=$lt_variables_saved_for_relink
13219
13220# Do we need the "lib" prefix for modules?
13221need_lib_prefix=$need_lib_prefix
13222
13223# Do we need a version for libraries?
13224need_version=$need_version
13225
13226# Library versioning type.
13227version_type=$version_type
13228
13229# Shared library runtime path variable.
13230runpath_var=$runpath_var
13231
13232# Shared library path variable.
13233shlibpath_var=$shlibpath_var
13234
13235# Is shlibpath searched before the hard-coded library search path?
13236shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13237
13238# Format of library name prefix.
13239libname_spec=$lt_libname_spec
13240
13241# List of archive names. First name is the real one, the rest are links.
13242# The last name is the one that the linker finds with -lNAME
13243library_names_spec=$lt_library_names_spec
13244
13245# The coded name of the library, if different from the real name.
13246soname_spec=$lt_soname_spec
13247
13248# Permission mode override for installation of shared libraries.
13249install_override_mode=$lt_install_override_mode
13250
13251# Command to use after installation of a shared archive.
13252postinstall_cmds=$lt_postinstall_cmds
13253
13254# Command to use after uninstallation of a shared archive.
13255postuninstall_cmds=$lt_postuninstall_cmds
13256
13257# Commands used to finish a libtool library installation in a directory.
13258finish_cmds=$lt_finish_cmds
13259
13260# As "finish_cmds", except a single script fragment to be evaled but
13261# not shown.
13262finish_eval=$lt_finish_eval
13263
13264# Whether we should hardcode library paths into libraries.
13265hardcode_into_libs=$hardcode_into_libs
13266
13267# Compile-time system search path for libraries.
13268sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13269
13270# Run-time system search path for libraries.
13271sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13272
13273# Whether dlopen is supported.
13274dlopen_support=$enable_dlopen
13275
13276# Whether dlopen of programs is supported.
13277dlopen_self=$enable_dlopen_self
13278
13279# Whether dlopen of statically linked programs is supported.
13280dlopen_self_static=$enable_dlopen_self_static
13281
13282# Commands to strip libraries.
13283old_striplib=$lt_old_striplib
13284striplib=$lt_striplib
13285
13286
13287# The linker used to build libraries.
13288LD=$lt_LD
13289
13290# How to create reloadable object files.
13291reload_flag=$lt_reload_flag
13292reload_cmds=$lt_reload_cmds
13293
13294# Commands used to build an old-style archive.
13295old_archive_cmds=$lt_old_archive_cmds
13296
13297# A language specific compiler.
13298CC=$lt_compiler
13299
13300# Is the compiler the GNU compiler?
13301with_gcc=$GCC
13302
13303# Compiler flag to turn off builtin functions.
13304no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13305
13306# Additional compiler flags for building library objects.
13307pic_flag=$lt_lt_prog_compiler_pic
13308
13309# How to pass a linker flag through the compiler.
13310wl=$lt_lt_prog_compiler_wl
13311
13312# Compiler flag to prevent dynamic linking.
13313link_static_flag=$lt_lt_prog_compiler_static
13314
13315# Does compiler simultaneously support -c and -o options?
13316compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13317
13318# Whether or not to add -lc for building shared libraries.
13319build_libtool_need_lc=$archive_cmds_need_lc
13320
13321# Whether or not to disallow shared libs when runtime libs are static.
13322allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13323
13324# Compiler flag to allow reflexive dlopens.
13325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13326
13327# Compiler flag to generate shared objects directly from archives.
13328whole_archive_flag_spec=$lt_whole_archive_flag_spec
13329
13330# Whether the compiler copes with passing no objects directly.
13331compiler_needs_object=$lt_compiler_needs_object
13332
13333# Create an old-style archive from a shared archive.
13334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13335
13336# Create a temporary old-style archive to link instead of a shared archive.
13337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13338
13339# Commands used to build a shared archive.
13340archive_cmds=$lt_archive_cmds
13341archive_expsym_cmds=$lt_archive_expsym_cmds
13342
13343# Commands used to build a loadable module if different from building
13344# a shared archive.
13345module_cmds=$lt_module_cmds
13346module_expsym_cmds=$lt_module_expsym_cmds
13347
13348# Whether we are building with GNU ld or not.
13349with_gnu_ld=$lt_with_gnu_ld
13350
13351# Flag that allows shared libraries with undefined symbols to be built.
13352allow_undefined_flag=$lt_allow_undefined_flag
13353
13354# Flag that enforces no undefined symbols.
13355no_undefined_flag=$lt_no_undefined_flag
13356
13357# Flag to hardcode \$libdir into a binary during linking.
13358# This must work even if \$libdir does not exist
13359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13360
13361# Whether we need a single "-rpath" flag with a separated argument.
13362hardcode_libdir_separator=$lt_hardcode_libdir_separator
13363
13364# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13365# DIR into the resulting binary.
13366hardcode_direct=$hardcode_direct
13367
13368# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13369# DIR into the resulting binary and the resulting library dependency is
13370# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13371# library is relocated.
13372hardcode_direct_absolute=$hardcode_direct_absolute
13373
13374# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13375# into the resulting binary.
13376hardcode_minus_L=$hardcode_minus_L
13377
13378# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13379# into the resulting binary.
13380hardcode_shlibpath_var=$hardcode_shlibpath_var
13381
13382# Set to "yes" if building a shared library automatically hardcodes DIR
13383# into the library and all subsequent libraries and executables linked
13384# against it.
13385hardcode_automatic=$hardcode_automatic
13386
13387# Set to yes if linker adds runtime paths of dependent libraries
13388# to runtime path list.
13389inherit_rpath=$inherit_rpath
13390
13391# Whether libtool must link a program against all its dependency libraries.
13392link_all_deplibs=$link_all_deplibs
13393
13394# Set to "yes" if exported symbols are required.
13395always_export_symbols=$always_export_symbols
13396
13397# The commands to list exported symbols.
13398export_symbols_cmds=$lt_export_symbols_cmds
13399
13400# Symbols that should not be listed in the preloaded symbols.
13401exclude_expsyms=$lt_exclude_expsyms
13402
13403# Symbols that must always be exported.
13404include_expsyms=$lt_include_expsyms
13405
13406# Commands necessary for linking programs (against libraries) with templates.
13407prelink_cmds=$lt_prelink_cmds
13408
13409# Commands necessary for finishing linking programs.
13410postlink_cmds=$lt_postlink_cmds
13411
13412# Specify filename containing input files.
13413file_list_spec=$lt_file_list_spec
13414
13415# How to hardcode a shared library path into an executable.
13416hardcode_action=$hardcode_action
13417
13418# ### END LIBTOOL CONFIG
13419
13420_LT_EOF
13421
13422 case $host_os in
13423 aix3*)
13424 cat <<\_LT_EOF >> "$cfgfile"
13425# AIX sometimes has problems with the GCC collect2 program. For some
13426# reason, if we set the COLLECT_NAMES environment variable, the problems
13427# vanish in a puff of smoke.
13428if test "X${COLLECT_NAMES+set}" != Xset; then
13429 COLLECT_NAMES=
13430 export COLLECT_NAMES
13431fi
13432_LT_EOF
13433 ;;
13434 esac
13435
13436
13437ltmain="$ac_aux_dir/ltmain.sh"
13438
13439
13440 # We use sed instead of cat because bash on DJGPP gets confused if
13441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13442 # text mode, it properly converts lines to CR/LF. This bash problem
13443 # is reportedly fixed, but why not run on old versions too?
13444 sed '$q' "$ltmain" >> "$cfgfile" \
13445 || (rm -f "$cfgfile"; exit 1)
13446
13447 if test x"$xsi_shell" = xyes; then
13448 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13449func_dirname ()\
13450{\
13451\ case ${1} in\
13452\ */*) func_dirname_result="${1%/*}${2}" ;;\
13453\ * ) func_dirname_result="${3}" ;;\
13454\ esac\
13455} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13456 && mv -f "$cfgfile.tmp" "$cfgfile" \
13457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13458test 0 -eq $? || _lt_function_replace_fail=:
13459
13460
13461 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13462func_basename ()\
13463{\
13464\ func_basename_result="${1##*/}"\
13465} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13466 && mv -f "$cfgfile.tmp" "$cfgfile" \
13467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13468test 0 -eq $? || _lt_function_replace_fail=:
13469
13470
13471 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13472func_dirname_and_basename ()\
13473{\
13474\ case ${1} in\
13475\ */*) func_dirname_result="${1%/*}${2}" ;;\
13476\ * ) func_dirname_result="${3}" ;;\
13477\ esac\
13478\ func_basename_result="${1##*/}"\
13479} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13480 && mv -f "$cfgfile.tmp" "$cfgfile" \
13481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13482test 0 -eq $? || _lt_function_replace_fail=:
13483
13484
13485 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13486func_stripname ()\
13487{\
13488\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13489\ # positional parameters, so assign one to ordinary parameter first.\
13490\ func_stripname_result=${3}\
13491\ func_stripname_result=${func_stripname_result#"${1}"}\
13492\ func_stripname_result=${func_stripname_result%"${2}"}\
13493} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13494 && mv -f "$cfgfile.tmp" "$cfgfile" \
13495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13496test 0 -eq $? || _lt_function_replace_fail=:
13497
13498
13499 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13500func_split_long_opt ()\
13501{\
13502\ func_split_long_opt_name=${1%%=*}\
13503\ func_split_long_opt_arg=${1#*=}\
13504} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13505 && mv -f "$cfgfile.tmp" "$cfgfile" \
13506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13507test 0 -eq $? || _lt_function_replace_fail=:
13508
13509
13510 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13511func_split_short_opt ()\
13512{\
13513\ func_split_short_opt_arg=${1#??}\
13514\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13515} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13516 && mv -f "$cfgfile.tmp" "$cfgfile" \
13517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13518test 0 -eq $? || _lt_function_replace_fail=:
13519
13520
13521 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13522func_lo2o ()\
13523{\
13524\ case ${1} in\
13525\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13526\ *) func_lo2o_result=${1} ;;\
13527\ esac\
13528} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13529 && mv -f "$cfgfile.tmp" "$cfgfile" \
13530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13531test 0 -eq $? || _lt_function_replace_fail=:
13532
13533
13534 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13535func_xform ()\
13536{\
13537 func_xform_result=${1%.*}.lo\
13538} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13539 && mv -f "$cfgfile.tmp" "$cfgfile" \
13540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13541test 0 -eq $? || _lt_function_replace_fail=:
13542
13543
13544 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13545func_arith ()\
13546{\
13547 func_arith_result=$(( $* ))\
13548} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13549 && mv -f "$cfgfile.tmp" "$cfgfile" \
13550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13551test 0 -eq $? || _lt_function_replace_fail=:
13552
13553
13554 sed -e '/^func_len ()$/,/^} # func_len /c\
13555func_len ()\
13556{\
13557 func_len_result=${#1}\
13558} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13559 && mv -f "$cfgfile.tmp" "$cfgfile" \
13560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13561test 0 -eq $? || _lt_function_replace_fail=:
13562
13563fi
13564
13565if test x"$lt_shell_append" = xyes; then
13566 sed -e '/^func_append ()$/,/^} # func_append /c\
13567func_append ()\
13568{\
13569 eval "${1}+=\\${2}"\
13570} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13571 && mv -f "$cfgfile.tmp" "$cfgfile" \
13572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13573test 0 -eq $? || _lt_function_replace_fail=:
13574
13575
13576 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13577func_append_quoted ()\
13578{\
13579\ func_quote_for_eval "${2}"\
13580\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13581} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13582 && mv -f "$cfgfile.tmp" "$cfgfile" \
13583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13584test 0 -eq $? || _lt_function_replace_fail=:
13585
13586
13587 # Save a `func_append' function call where possible by direct use of '+='
13588 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13589 && mv -f "$cfgfile.tmp" "$cfgfile" \
13590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13591 test 0 -eq $? || _lt_function_replace_fail=:
13592else
13593 # Save a `func_append' function call even when '+=' is not available
13594 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13595 && mv -f "$cfgfile.tmp" "$cfgfile" \
13596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13597 test 0 -eq $? || _lt_function_replace_fail=:
13598fi
13599
13600if test x"$_lt_function_replace_fail" = x":"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13602$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13603fi
13604
13605
13606 mv -f "$cfgfile" "$ofile" ||
13607 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13608 chmod +x "$ofile"
13609
13610 ;;
13611
13612 esac
13613done # for ac_tag
13614
13615
13616as_fn_exit 0
13617_ACEOF
13618ac_clean_files=$ac_clean_files_save
13619
13620test $ac_write_fail = 0 ||
13621 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13622
13623
13624# configure is writing to config.log, and then calls config.status.
13625# config.status does its own redirection, appending to config.log.
13626# Unfortunately, on DOS this fails, as config.log is still kept open
13627# by configure, so config.status won't be able to write to it; its
13628# output is simply discarded. So we exec the FD to /dev/null,
13629# effectively closing config.log, so it can be properly (re)opened and
13630# appended to by config.status. When coming back to configure, we
13631# need to make the FD available again.
13632if test "$no_create" != yes; then
13633 ac_cs_success=:
13634 ac_config_status_args=
13635 test "$silent" = yes &&
13636 ac_config_status_args="$ac_config_status_args --quiet"
13637 exec 5>/dev/null
13638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13639 exec 5>>config.log
13640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13641 # would make configure fail if this is the last instruction.
13642 $ac_cs_success || as_fn_exit 1
13643fi
13644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13647fi
13648
13649