· 11 years ago · Jul 16, 2015, 11:43 PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for motoko 0.1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='motoko'
589PACKAGE_TARNAME='motoko'
590PACKAGE_VERSION='0.1.0'
591PACKAGE_STRING='motoko 0.1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/main.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632enable_option_checking=no
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636subdirs
637plugindir
638configdir
639LIBOBJS
640LADD_LIBRT
641LDFLAG_RDYNAMIC
642CPPFLAG_DEXPORT
643CFLAG_FVISIBILITY_HIDDEN
644AM_CPPFLAGS
645AM_CFLAGS
646LADD_LIBWARDENC
647WITH_LIBWARDENC_FALSE
648WITH_LIBWARDENC_TRUE
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673LIBTOOL
674ac_ct_AR
675AR
676EGREP
677GREP
678CPP
679am__fastdepCC_FALSE
680am__fastdepCC_TRUE
681CCDEPMODE
682am__nodep
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689OBJEXT
690EXEEXT
691ac_ct_CC
692CPPFLAGS
693LDFLAGS
694CFLAGS
695CC
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773with_libwardenc
774'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP'
784ac_subdirs_all='lib/libwardenc'
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898"enable_$ac_useropt"
899"*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924"enable_$ac_useropt"
925"*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128"with_$ac_useropt"
1129"*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192done
1193
1194if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289else
1290 ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324\`configure' configures motoko 0.1.0 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/motoko]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of motoko 0.1.0:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-silent-rules less verbose build output (undo: "make V=1")
1403 --disable-silent-rules verbose build output (undo: "make V=0")
1404 --enable-dependency-tracking
1405 do not reject slow dependency extractors
1406 --disable-dependency-tracking
1407 speeds up one-time build
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413
1414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1422 --without-libwardenc do not build and link libwardenc
1423
1424Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CPP C preprocessor
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to the package provider.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499 cat <<\_ACEOF
1500motoko configure 0.1.0
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507 exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541else
1542 $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_try_cpp LINENO
1553# ----------------------
1554# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_cpp ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1559case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } > conftest.i && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 }; then :
1577 ac_retval=0
1578else
1579 $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_cpp
1588
1589# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590# -------------------------------------------------------
1591# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592# the include files in INCLUDES and setting the cache variable VAR
1593# accordingly.
1594ac_fn_c_check_header_mongrel ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if eval \${$3+:} false; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599$as_echo_n "checking for $2... " >&6; }
1600if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602fi
1603eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605$as_echo "$ac_res" >&6; }
1606else
1607 # Is the header compilable?
1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609$as_echo_n "checking $2 usability... " >&6; }
1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h. */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_header_compiler=yes
1617else
1618 ac_header_compiler=no
1619fi
1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622$as_echo "$ac_header_compiler" >&6; }
1623
1624# Is the header present?
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626$as_echo_n "checking $2 presence... " >&6; }
1627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h. */
1629#include <$2>
1630_ACEOF
1631if ac_fn_c_try_cpp "$LINENO"; then :
1632 ac_header_preproc=yes
1633else
1634 ac_header_preproc=no
1635fi
1636rm -f conftest.err conftest.i conftest.$ac_ext
1637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638$as_echo "$ac_header_preproc" >&6; }
1639
1640# So? What about this header?
1641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642 yes:no: )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ;;
1648 no:yes:* )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 ;;
1660esac
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665else
1666 eval "$3=\$ac_header_compiler"
1667fi
1668eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670$as_echo "$ac_res" >&6; }
1671fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_header_mongrel
1675
1676# ac_fn_c_try_run LINENO
1677# ----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679# that executables *can* be run.
1680ac_fn_c_try_run ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_run
1717
1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719# -------------------------------------------------------
1720# Tests whether HEADER exists and can be compiled using the include files in
1721# INCLUDES, setting the cache variable VAR accordingly.
1722ac_fn_c_check_header_compile ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h. */
1732$4
1733#include <$2>
1734_ACEOF
1735if ac_fn_c_try_compile "$LINENO"; then :
1736 eval "$3=yes"
1737else
1738 eval "$3=no"
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_c_check_header_compile
1748
1749# ac_fn_c_try_link LINENO
1750# -----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_link ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 test -x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_func LINENO FUNC VAR
1796# ----------------------------------
1797# Tests whether FUNC exists, setting the cache variable VAR accordingly
1798ac_fn_c_check_func ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810#define $2 innocuous_$2
1811
1812/* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $2 (); below.
1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815 <limits.h> exists even on freestanding compilers. */
1816
1817#ifdef __STDC__
1818# include <limits.h>
1819#else
1820# include <assert.h>
1821#endif
1822
1823#undef $2
1824
1825/* Override any GCC internal prototype to avoid an error.
1826 Use char because int might match the return type of a GCC
1827 builtin and then its argument prototype would still apply. */
1828#ifdef __cplusplus
1829extern "C"
1830#endif
1831char $2 ();
1832/* The GNU C library defines this for functions which it implements
1833 to always fail with ENOSYS. Some functions are actually named
1834 something starting with __ and the normal name is an alias. */
1835#if defined __stub_$2 || defined __stub___$2
1836choke me
1837#endif
1838
1839int
1840main ()
1841{
1842return $2 ();
1843 ;
1844 return 0;
1845}
1846_ACEOF
1847if ac_fn_c_try_link "$LINENO"; then :
1848 eval "$3=yes"
1849else
1850 eval "$3=no"
1851fi
1852rm -f core conftest.err conftest.$ac_objext \
1853 conftest$ac_exeext conftest.$ac_ext
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_func
1861
1862# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863# -------------------------------------------
1864# Tests whether TYPE exists after having included INCLUDES, setting cache
1865# variable VAR accordingly.
1866ac_fn_c_check_type ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873else
1874 eval "$3=no"
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h. */
1877$4
1878int
1879main ()
1880{
1881if (sizeof ($2))
1882 return 0;
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$4
1891int
1892main ()
1893{
1894if (sizeof (($2)))
1895 return 0;
1896 ;
1897 return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901
1902else
1903 eval "$3=yes"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_check_type
1915cat >config.log <<_ACEOF
1916This file contains any messages produced by compilers while
1917running configure, to aid debugging if configure makes a mistake.
1918
1919It was created by motoko $as_me 0.1.0, which was
1920generated by GNU Autoconf 2.69. Invocation command line was
1921
1922 $ $0 $@
1923
1924_ACEOF
1925exec 5>>config.log
1926{
1927cat <<_ASUNAME
1928## --------- ##
1929## Platform. ##
1930## --------- ##
1931
1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949_ASUNAME
1950
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1957 done
1958IFS=$as_save_IFS
1959
1960} >&5
1961
1962cat >&5 <<_ACEOF
1963
1964
1965## ----------- ##
1966## Core tests. ##
1967## ----------- ##
1968
1969_ACEOF
1970
1971
1972# Keep a trace of the command line.
1973# Strip out --no-create and --no-recursion so they do not pile up.
1974# Strip out --silent because we don't want to record it for future runs.
1975# Also quote any args containing shell meta-characters.
1976# Make two passes to allow for proper duplicate-argument suppression.
1977ac_configure_args=
1978ac_configure_args0=
1979ac_configure_args1=
1980ac_must_keep_next=false
1981for ac_pass in 1 2
1982do
1983 for ac_arg
1984 do
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
1990 *\'*)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 case $ac_pass in
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1995 2)
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2008 ;;
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2011 fi
2012 as_fn_append ac_configure_args " '$ac_arg'"
2013 ;;
2014 esac
2015 done
2016done
2017{ ac_configure_args0=; unset ac_configure_args0;}
2018{ ac_configure_args1=; unset ac_configure_args1;}
2019
2020# When interrupted or exit'd, cleanup temporary files, and complete
2021# config.log. We remove comments because anyway the quotes in there
2022# would cause problems or look ugly.
2023# WARNING: Use '\'' to represent an apostrophe within the trap.
2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2027 {
2028 echo
2029
2030 $as_echo "## ---------------- ##
2031## Cache variables. ##
2032## ---------------- ##"
2033 echo
2034 # The following way of writing the cache mishandles newlines in values,
2035(
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
2048 esac ;;
2049 esac
2050 done
2051 (set) 2>&1 |
2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
2054 sed -n \
2055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
2058 *)
2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060 ;;
2061 esac |
2062 sort
2063)
2064 echo
2065
2066 $as_echo "## ----------------- ##
2067## Output variables. ##
2068## ----------------- ##"
2069 echo
2070 for ac_var in $ac_subst_vars
2071 do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 esac
2076 $as_echo "$ac_var='\''$ac_val'\''"
2077 done | sort
2078 echo
2079
2080 if test -n "$ac_subst_files"; then
2081 $as_echo "## ------------------- ##
2082## File substitutions. ##
2083## ------------------- ##"
2084 echo
2085 for ac_var in $ac_subst_files
2086 do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2094 fi
2095
2096 if test -s confdefs.h; then
2097 $as_echo "## ----------- ##
2098## confdefs.h. ##
2099## ----------- ##"
2100 echo
2101 cat confdefs.h
2102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2107 } >&5
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status
2111' 0
2112for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
2118rm -f -r conftest* confdefs.h
2119
2120$as_echo "/* confdefs.h */" > confdefs.h
2121
2122# Predefined preprocessor variables.
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF
2127
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF
2147
2148
2149# Let the site file select an alternate cache file if it wants to.
2150# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE
2152ac_site_file2=NONE
2153if test -n "$CONFIG_SITE"; then
2154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2159 esac
2160elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2166fi
2167for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2168do
2169 test "x$ac_site_file" = xNONE && continue
2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file" \
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177as_fn_error $? "failed to load site script $ac_site_file
2178See \`config.log' for more details" "$LINENO" 5; }
2179 fi
2180done
2181
2182if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187$as_echo "$as_me: loading cache $cache_file" >&6;}
2188 case $cache_file in
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2191 esac
2192 fi
2193else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195$as_echo "$as_me: creating cache $cache_file" >&6;}
2196 >$cache_file
2197fi
2198
2199# Check that the precious variables saved in the cache have kept the same
2200# value.
2201ac_cache_corrupted=false
2202for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2208 set,)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,set)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,);;
2217 *)
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2246 esac
2247 fi
2248done
2249if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2255fi
2256## -------------------- ##
2257## Main body of script. ##
2258## -------------------- ##
2259
2260ac_ext=c
2261ac_cpp='$CPP $CPPFLAGS'
2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265
2266
2267
2268ac_config_headers="$ac_config_headers config.h"
2269
2270ac_aux_dir=
2271for ac_dir in config "$srcdir"/config; do
2272 if test -f "$ac_dir/install-sh"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
2276 elif test -f "$ac_dir/install.sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
2280 elif test -f "$ac_dir/shtool"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285done
2286if test -z "$ac_aux_dir"; then
2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2288fi
2289
2290# These three variables are undocumented and unsupported,
2291# and are intended to be withdrawn in a future Autoconf release.
2292# They can cause serious problems if a builder's source tree is in a directory
2293# whose full name contains unusual characters.
2294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
2298
2299
2300am__api_version='1.14'
2301
2302# Find a good install program. We prefer a C program (faster),
2303# so one script is as good as another. But avoid the broken or
2304# incompatible versions:
2305# SysV /etc/install, /usr/sbin/install
2306# SunOS /usr/etc/install
2307# IRIX /sbin/install
2308# AIX /bin/install
2309# AmigaOS /C/install, which installs bootblocks on floppy discs
2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313# OS/2's system install, which has a completely different semantic
2314# ./install, which can be erroneously created by make from ./install.sh.
2315# Reject install programs that cannot install multiple files.
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2317$as_echo_n "checking for a BSD-compatible install... " >&6; }
2318if test -z "$INSTALL"; then
2319if ${ac_cv_path_install+:} false; then :
2320 $as_echo_n "(cached) " >&6
2321else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 # Account for people who put trailing slashes in PATH elements.
2328case $as_dir/ in #((
2329 ./ | .// | /[cC]/* | \
2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332 /usr/ucb/* ) ;;
2333 *)
2334 # OSF1 and SCO ODT 3.0 have their own names for install.
2335 # Don't use installbsd from OSF since it installs stuff as root
2336 # by default.
2337 for ac_prog in ginstall scoinst install; do
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2340 if test $ac_prog = install &&
2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # AIX install. It has an incompatible calling convention.
2343 :
2344 elif test $ac_prog = install &&
2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # program-specific install script used by HP pwplus--don't use.
2347 :
2348 else
2349 rm -rf conftest.one conftest.two conftest.dir
2350 echo one > conftest.one
2351 echo two > conftest.two
2352 mkdir conftest.dir
2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354 test -s conftest.one && test -s conftest.two &&
2355 test -s conftest.dir/conftest.one &&
2356 test -s conftest.dir/conftest.two
2357 then
2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359 break 3
2360 fi
2361 fi
2362 fi
2363 done
2364 done
2365 ;;
2366esac
2367
2368 done
2369IFS=$as_save_IFS
2370
2371rm -rf conftest.one conftest.two conftest.dir
2372
2373fi
2374 if test "${ac_cv_path_install+set}" = set; then
2375 INSTALL=$ac_cv_path_install
2376 else
2377 # As a last resort, use the slow shell script. Don't cache a
2378 # value for INSTALL within a source directory, because that will
2379 # break other packages using the cache if that directory is
2380 # removed, or if the value is a relative name.
2381 INSTALL=$ac_install_sh
2382 fi
2383fi
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2385$as_echo "$INSTALL" >&6; }
2386
2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388# It thinks the first close brace ends the variable substitution.
2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2396$as_echo_n "checking whether build environment is sane... " >&6; }
2397# Reject unsafe characters in $srcdir or the absolute working directory
2398# name. Accept space and tab only in the latter.
2399am_lf='
2400'
2401case `pwd` in
2402 *[\\\"\#\$\&\'\`$am_lf]*)
2403 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2404esac
2405case $srcdir in
2406 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2407 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2408esac
2409
2410# Do 'set' in a subshell so we don't clobber the current shell's
2411# arguments. Must try -L first in case configure is actually a
2412# symlink; some systems play weird games with the mod time of symlinks
2413# (eg FreeBSD returns the mod time of the symlink's containing
2414# directory).
2415if (
2416 am_has_slept=no
2417 for am_try in 1 2; do
2418 echo "timestamp, slept: $am_has_slept" > conftest.file
2419 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2420 if test "$*" = "X"; then
2421 # -L didn't work.
2422 set X `ls -t "$srcdir/configure" conftest.file`
2423 fi
2424 if test "$*" != "X $srcdir/configure conftest.file" \
2425 && test "$*" != "X conftest.file $srcdir/configure"; then
2426
2427 # If neither matched, then we have a broken ls. This can happen
2428 # if, for instance, CONFIG_SHELL is bash and it inherits a
2429 # broken ls alias from the environment. This has actually
2430 # happened. Such a system could not be considered "sane".
2431 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2432 alias in your environment" "$LINENO" 5
2433 fi
2434 if test "$2" = conftest.file || test $am_try -eq 2; then
2435 break
2436 fi
2437 # Just in case.
2438 sleep 1
2439 am_has_slept=yes
2440 done
2441 test "$2" = conftest.file
2442 )
2443then
2444 # Ok.
2445 :
2446else
2447 as_fn_error $? "newly created file is older than distributed files!
2448Check your system clock" "$LINENO" 5
2449fi
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2451$as_echo "yes" >&6; }
2452# If we didn't sleep, we still need to ensure time stamps of config.status and
2453# generated files are strictly newer.
2454am_sleep_pid=
2455if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2456 ( sleep 1 ) &
2457 am_sleep_pid=$!
2458fi
2459
2460rm -f conftest.file
2461
2462test "$program_prefix" != NONE &&
2463 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2464# Use a double $ so make ignores it.
2465test "$program_suffix" != NONE &&
2466 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2467# Double any \ or $.
2468# By default was `s,x,x', remove it if useless.
2469ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2470program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2471
2472# expand $ac_aux_dir to an absolute path
2473am_aux_dir=`cd $ac_aux_dir && pwd`
2474
2475if test x"${MISSING+set}" != xset; then
2476 case $am_aux_dir in
2477 *\ * | *\ *)
2478 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2479 *)
2480 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2481 esac
2482fi
2483# Use eval to expand $SHELL
2484if eval "$MISSING --is-lightweight"; then
2485 am_missing_run="$MISSING "
2486else
2487 am_missing_run=
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2489$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2490fi
2491
2492if test x"${install_sh}" != xset; then
2493 case $am_aux_dir in
2494 *\ * | *\ *)
2495 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2496 *)
2497 install_sh="\${SHELL} $am_aux_dir/install-sh"
2498 esac
2499fi
2500
2501# Installed binaries are usually stripped using 'strip' when the user
2502# run "make install-strip". However 'strip' might not be the right
2503# tool to use in cross-compilation environments, therefore Automake
2504# will honor the 'STRIP' environment variable to overrule this program.
2505if test "$cross_compiling" != no; then
2506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2508set dummy ${ac_tool_prefix}strip; ac_word=$2
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
2511if ${ac_cv_prog_STRIP+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513else
2514 if test -n "$STRIP"; then
2515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529 done
2530IFS=$as_save_IFS
2531
2532fi
2533fi
2534STRIP=$ac_cv_prog_STRIP
2535if test -n "$STRIP"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2537$as_echo "$STRIP" >&6; }
2538else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540$as_echo "no" >&6; }
2541fi
2542
2543
2544fi
2545if test -z "$ac_cv_prog_STRIP"; then
2546 ac_ct_STRIP=$STRIP
2547 # Extract the first word of "strip", so it can be a program name with args.
2548set dummy strip; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553else
2554 if test -n "$ac_ct_STRIP"; then
2555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ac_ct_STRIP="strip"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569 done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2575if test -n "$ac_ct_STRIP"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2577$as_echo "$ac_ct_STRIP" >&6; }
2578else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583 if test "x$ac_ct_STRIP" = x; then
2584 STRIP=":"
2585 else
2586 case $cross_compiling:$ac_tool_warned in
2587yes:)
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2590ac_tool_warned=yes ;;
2591esac
2592 STRIP=$ac_ct_STRIP
2593 fi
2594else
2595 STRIP="$ac_cv_prog_STRIP"
2596fi
2597
2598fi
2599INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2602$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2603if test -z "$MKDIR_P"; then
2604 if ${ac_cv_path_mkdir+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_prog in mkdir gmkdir; do
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2615 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2616 'mkdir (GNU coreutils) '* | \
2617 'mkdir (coreutils) '* | \
2618 'mkdir (fileutils) '4.1*)
2619 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2620 break 3;;
2621 esac
2622 done
2623 done
2624 done
2625IFS=$as_save_IFS
2626
2627fi
2628
2629 test -d ./--version && rmdir ./--version
2630 if test "${ac_cv_path_mkdir+set}" = set; then
2631 MKDIR_P="$ac_cv_path_mkdir -p"
2632 else
2633 # As a last resort, use the slow shell script. Don't cache a
2634 # value for MKDIR_P within a source directory, because that will
2635 # break other packages using the cache if that directory is
2636 # removed, or if the value is a relative name.
2637 MKDIR_P="$ac_install_sh -d"
2638 fi
2639fi
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2641$as_echo "$MKDIR_P" >&6; }
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_AWK+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682 test -n "$AWK" && break
2683done
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2686$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2687set x ${MAKE-make}
2688ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2689if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691else
2692 cat >conftest.make <<\_ACEOF
2693SHELL = /bin/sh
2694all:
2695 @echo '@@@%%%=$(MAKE)=@@@%%%'
2696_ACEOF
2697# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2698case `${MAKE-make} -f conftest.make 2>/dev/null` in
2699 *@@@%%%=?*=@@@%%%*)
2700 eval ac_cv_prog_make_${ac_make}_set=yes;;
2701 *)
2702 eval ac_cv_prog_make_${ac_make}_set=no;;
2703esac
2704rm -f conftest.make
2705fi
2706if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709 SET_MAKE=
2710else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713 SET_MAKE="MAKE=${MAKE-make}"
2714fi
2715
2716rm -rf .tst 2>/dev/null
2717mkdir .tst 2>/dev/null
2718if test -d .tst; then
2719 am__leading_dot=.
2720else
2721 am__leading_dot=_
2722fi
2723rmdir .tst 2>/dev/null
2724
2725# Check whether --enable-silent-rules was given.
2726if test "${enable_silent_rules+set}" = set; then :
2727 enableval=$enable_silent_rules;
2728fi
2729
2730case $enable_silent_rules in # (((
2731 yes) AM_DEFAULT_VERBOSITY=0;;
2732 no) AM_DEFAULT_VERBOSITY=1;;
2733 *) AM_DEFAULT_VERBOSITY=1;;
2734esac
2735am_make=${MAKE-make}
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2737$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2738if ${am_cv_make_support_nested_variables+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740else
2741 if $as_echo 'TRUE=$(BAR$(V))
2742BAR0=false
2743BAR1=true
2744V=1
2745am__doit:
2746 @$(TRUE)
2747.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2748 am_cv_make_support_nested_variables=yes
2749else
2750 am_cv_make_support_nested_variables=no
2751fi
2752fi
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2754$as_echo "$am_cv_make_support_nested_variables" >&6; }
2755if test $am_cv_make_support_nested_variables = yes; then
2756 AM_V='$(V)'
2757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2758else
2759 AM_V=$AM_DEFAULT_VERBOSITY
2760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2761fi
2762AM_BACKSLASH='\'
2763
2764if test "`cd $srcdir && pwd`" != "`pwd`"; then
2765 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2766 # is not polluted with repeated "-I."
2767 am__isrc=' -I$(srcdir)'
2768 # test to see if srcdir already configured
2769 if test -f $srcdir/config.status; then
2770 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2771 fi
2772fi
2773
2774# test whether we have cygpath
2775if test -z "$CYGPATH_W"; then
2776 if (cygpath --version) >/dev/null 2>/dev/null; then
2777 CYGPATH_W='cygpath -w'
2778 else
2779 CYGPATH_W=echo
2780 fi
2781fi
2782
2783
2784# Define the identity of the package.
2785 PACKAGE='motoko'
2786 VERSION='0.1.0'
2787
2788
2789cat >>confdefs.h <<_ACEOF
2790#define PACKAGE "$PACKAGE"
2791_ACEOF
2792
2793
2794cat >>confdefs.h <<_ACEOF
2795#define VERSION "$VERSION"
2796_ACEOF
2797
2798# Some tools Automake needs.
2799
2800ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2801
2802
2803AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2804
2805
2806AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2807
2808
2809AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2810
2811
2812MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2813
2814# For better backward compatibility. To be removed once Automake 1.9.x
2815# dies out for good. For more background, see:
2816# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2817# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2818mkdir_p='$(MKDIR_P)'
2819
2820# We need awk for the "check" target. The system "awk" is bad on
2821# some platforms.
2822# Always define AMTAR for backward compatibility. Yes, it's still used
2823# in the wild :-( We should find a proper way to deprecate it ...
2824AMTAR='$${TAR-tar}'
2825
2826
2827# We'll loop over all known methods to create a tar archive until one works.
2828_am_tools='gnutar pax cpio none'
2829
2830am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2831
2832
2833
2834
2835
2836
2837# POSIX will say in a future version that running "rm -f" with no argument
2838# is OK; and we want to be able to make that assumption in our Makefile
2839# recipes. So use an aggressive probe to check that the usage we want is
2840# actually supported "in the wild" to an acceptable degree.
2841# See automake bug#10828.
2842# To make any issue more visible, cause the running configure to be aborted
2843# by default if the 'rm' program in use doesn't match our expectations; the
2844# user can still override this though.
2845if rm -f && rm -fr && rm -rf; then : OK; else
2846 cat >&2 <<'END'
2847Oops!
2848
2849Your 'rm' program seems unable to run without file operands specified
2850on the command line, even when the '-f' option is present. This is contrary
2851to the behaviour of most rm programs out there, and not conforming with
2852the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2853
2854Please tell bug-automake@gnu.org about your system, including the value
2855of your $PATH and any error possibly output before this message. This
2856can help us improve future automake versions.
2857
2858END
2859 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2860 echo 'Configuration will proceed anyway, since you have set the' >&2
2861 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2862 echo >&2
2863 else
2864 cat >&2 <<'END'
2865Aborting the configuration process, to ensure you take notice of the issue.
2866
2867You can download and install GNU coreutils to get an 'rm' implementation
2868that behaves properly: <http://www.gnu.org/software/coreutils/>.
2869
2870If you want to complete the configuration process using your problematic
2871'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2872to "yes", and re-run configure.
2873
2874END
2875 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2876 fi
2877fi
2878
2879
2880DEPDIR="${am__leading_dot}deps"
2881
2882ac_config_commands="$ac_config_commands depfiles"
2883
2884
2885am_make=${MAKE-make}
2886cat > confinc << 'END'
2887am__doit:
2888 @echo this is the am__doit target
2889.PHONY: am__doit
2890END
2891# If we don't find an include directive, just comment out the code.
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2893$as_echo_n "checking for style of include used by $am_make... " >&6; }
2894am__include="#"
2895am__quote=
2896_am_result=none
2897# First try GNU make style include.
2898echo "include confinc" > confmf
2899# Ignore all kinds of additional output from 'make'.
2900case `$am_make -s -f confmf 2> /dev/null` in #(
2901*the\ am__doit\ target*)
2902 am__include=include
2903 am__quote=
2904 _am_result=GNU
2905 ;;
2906esac
2907# Now try BSD make style include.
2908if test "$am__include" = "#"; then
2909 echo '.include "confinc"' > confmf
2910 case `$am_make -s -f confmf 2> /dev/null` in #(
2911 *the\ am__doit\ target*)
2912 am__include=.include
2913 am__quote="\""
2914 _am_result=BSD
2915 ;;
2916 esac
2917fi
2918
2919
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2921$as_echo "$_am_result" >&6; }
2922rm -f confinc confmf
2923
2924# Check whether --enable-dependency-tracking was given.
2925if test "${enable_dependency_tracking+set}" = set; then :
2926 enableval=$enable_dependency_tracking;
2927fi
2928
2929if test "x$enable_dependency_tracking" != xno; then
2930 am_depcomp="$ac_aux_dir/depcomp"
2931 AMDEPBACKSLASH='\'
2932 am__nodep='_no'
2933fi
2934 if test "x$enable_dependency_tracking" != xno; then
2935 AMDEP_TRUE=
2936 AMDEP_FALSE='#'
2937else
2938 AMDEP_TRUE='#'
2939 AMDEP_FALSE=
2940fi
2941
2942
2943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970done
2971 done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
2980else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986fi
2987if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990set dummy gcc; ac_word=$2
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if ${ac_cv_prog_ac_ct_CC+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010done
3011 done
3012IFS=$as_save_IFS
3013
3014fi
3015fi
3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019$as_echo "$ac_ct_CC" >&6; }
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
3023fi
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029yes:)
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032ac_tool_warned=yes ;;
3033esac
3034 CC=$ac_ct_CC
3035 fi
3036else
3037 CC="$ac_cv_prog_CC"
3038fi
3039
3040if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}cc; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064 done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069CC=$ac_cv_prog_CC
3070if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072$as_echo "$CC" >&6; }
3073else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078
3079 fi
3080fi
3081if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083set dummy cc; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092 ac_prog_rejected=no
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3103 fi
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108done
3109 done
3110IFS=$as_save_IFS
3111
3112if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 fi
3123fi
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129$as_echo "$CC" >&6; }
3130else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135
3136fi
3137if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3140 do
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144$as_echo_n "checking for $ac_word... " >&6; }
3145if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162done
3163 done
3164IFS=$as_save_IFS
3165
3166fi
3167fi
3168CC=$ac_cv_prog_CC
3169if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171$as_echo "$CC" >&6; }
3172else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175fi
3176
3177
3178 test -n "$CC" && break
3179 done
3180fi
3181if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3184do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186set dummy $ac_prog; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if ${ac_cv_prog_ac_ct_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206done
3207 done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215$as_echo "$ac_ct_CC" >&6; }
3216else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219fi
3220
3221
3222 test -n "$ac_ct_CC" && break
3223done
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229yes:)
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232ac_tool_warned=yes ;;
3233esac
3234 CC=$ac_ct_CC
3235 fi
3236fi
3237
3238fi
3239
3240
3241test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "no acceptable C compiler found in \$PATH
3244See \`config.log' for more details" "$LINENO" 5; }
3245
3246# Provide some information about the compiler.
3247$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248set X $ac_compile
3249ac_compiler=$2
3250for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 fi
3266 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269done
3270
3271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272/* end confdefs.h. */
3273
3274int
3275main ()
3276{
3277
3278 ;
3279 return 0;
3280}
3281_ACEOF
3282ac_clean_files_save=$ac_clean_files
3283ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3284# Try to create an executable without -o first, disregard a.out.
3285# It will help us diagnose broken compilers, and finding out an intuition
3286# of exeext.
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3288$as_echo_n "checking whether the C compiler works... " >&6; }
3289ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290
3291# The possible output files:
3292ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293
3294ac_rmfiles=
3295for ac_file in $ac_files
3296do
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301done
3302rm -f $ac_rmfiles
3303
3304if { { ac_try="$ac_link_default"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317# in a Makefile. We should not override ac_cv_exeext if it was cached,
3318# so that the user can short-circuit this test for compilers unknown to
3319# Autoconf.
3320for ac_file in $ac_files ''
3321do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 ;;
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 fi
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3341 * )
3342 break;;
3343 esac
3344done
3345test "$ac_cv_exeext" = no && ac_cv_exeext=
3346
3347else
3348 ac_file=''
3349fi
3350if test -z "$ac_file"; then :
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353$as_echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error 77 "C compiler cannot create executables
3359See \`config.log' for more details" "$LINENO" 5; }
3360else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362$as_echo "yes" >&6; }
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3365$as_echo_n "checking for C compiler default output file name... " >&6; }
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367$as_echo "$ac_file" >&6; }
3368ac_exeext=$ac_cv_exeext
3369
3370rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371ac_clean_files=$ac_clean_files_save
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3373$as_echo_n "checking for suffix of executables... " >&6; }
3374if { { ac_try="$ac_link"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380$as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3386# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3387# work properly (i.e., refer to `conftest.exe'), while it won't with
3388# `rm'.
3389for ac_file in conftest.exe conftest conftest.*; do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 break;;
3395 * ) break;;
3396 esac
3397done
3398else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3402See \`config.log' for more details" "$LINENO" 5; }
3403fi
3404rm -f conftest conftest$ac_cv_exeext
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3406$as_echo "$ac_cv_exeext" >&6; }
3407
3408rm -f conftest.$ac_ext
3409EXEEXT=$ac_cv_exeext
3410ac_exeext=$EXEEXT
3411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h. */
3413#include <stdio.h>
3414int
3415main ()
3416{
3417FILE *f = fopen ("conftest.out", "w");
3418 return ferror (f) || fclose (f) != 0;
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424ac_clean_files="$ac_clean_files conftest.out"
3425# Check that the compiler produces executables we can run. If not, either
3426# the compiler is broken, or we cross compile.
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3428$as_echo_n "checking whether we are cross compiling... " >&6; }
3429if test "$cross_compiling" != yes; then
3430 { { ac_try="$ac_link"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 if { ac_try='./conftest$ac_cv_exeext'
3442 { { case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_try") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; }; then
3452 cross_compiling=no
3453 else
3454 if test "$cross_compiling" = maybe; then
3455 cross_compiling=yes
3456 else
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error $? "cannot run C compiled programs.
3460If you meant to cross compile, use \`--host'.
3461See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 fi
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3466$as_echo "$cross_compiling" >&6; }
3467
3468rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3469ac_clean_files=$ac_clean_files_save
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471$as_echo_n "checking for suffix of object files... " >&6; }
3472if ${ac_cv_objext+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
3477
3478int
3479main ()
3480{
3481
3482 ;
3483 return 0;
3484}
3485_ACEOF
3486rm -f conftest.o conftest.obj
3487if { { ac_try="$ac_compile"
3488case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503 break;;
3504 esac
3505done
3506else
3507 $as_echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512as_fn_error $? "cannot compute suffix of object files: cannot compile
3513See \`config.log' for more details" "$LINENO" 5; }
3514fi
3515rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3518$as_echo "$ac_cv_objext" >&6; }
3519OBJEXT=$ac_cv_objext
3520ac_objext=$OBJEXT
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3522$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3523if ${ac_cv_c_compiler_gnu+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532#ifndef __GNUC__
3533 choke me
3534#endif
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
3540if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_compiler_gnu=yes
3542else
3543 ac_compiler_gnu=no
3544fi
3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3550$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3551if test $ac_compiler_gnu = yes; then
3552 GCC=yes
3553else
3554 GCC=
3555fi
3556ac_test_CFLAGS=${CFLAGS+set}
3557ac_save_CFLAGS=$CFLAGS
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3559$as_echo_n "checking whether $CC accepts -g... " >&6; }
3560if ${ac_cv_prog_cc_g+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562else
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3565 ac_cv_prog_cc_g=no
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580else
3581 CFLAGS=""
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h. */
3584
3585int
3586main ()
3587{
3588
3589 ;
3590 return 0;
3591}
3592_ACEOF
3593if ac_fn_c_try_compile "$LINENO"; then :
3594
3595else
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 CFLAGS="-g"
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
3600
3601int
3602main ()
3603{
3604
3605 ;
3606 return 0;
3607}
3608_ACEOF
3609if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_g=yes
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3620$as_echo "$ac_cv_prog_cc_g" >&6; }
3621if test "$ac_test_CFLAGS" = set; then
3622 CFLAGS=$ac_save_CFLAGS
3623elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638if ${ac_cv_prog_cc_c89+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640else
3641 ac_cv_prog_cc_c89=no
3642ac_save_CC=$CC
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h. */
3645#include <stdarg.h>
3646#include <stdio.h>
3647struct stat;
3648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649struct buf { int x; };
3650FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651static char *e (p, i)
3652 char **p;
3653 int i;
3654{
3655 return p[i];
3656}
3657static char *f (char * (*g) (char **, int), char **p, ...)
3658{
3659 char *s;
3660 va_list v;
3661 va_start (v,p);
3662 s = g (p, va_arg (v,int));
3663 va_end (v);
3664 return s;
3665}
3666
3667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3678#define FOO(x) 'x'
3679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680
3681int test (int i, double x);
3682struct s1 {int (*f) (int a);};
3683struct s2 {int (*f) (double a);};
3684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685int argc;
3686char **argv;
3687int
3688main ()
3689{
3690return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697do
3698 CC="$ac_save_CC $ac_arg"
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_c89=$ac_arg
3701fi
3702rm -f core conftest.err conftest.$ac_objext
3703 test "x$ac_cv_prog_cc_c89" != "xno" && break
3704done
3705rm -f conftest.$ac_ext
3706CC=$ac_save_CC
3707
3708fi
3709# AC_CACHE_VAL
3710case "x$ac_cv_prog_cc_c89" in
3711 x)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713$as_echo "none needed" >&6; } ;;
3714 xno)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716$as_echo "unsupported" >&6; } ;;
3717 *)
3718 CC="$CC $ac_cv_prog_cc_c89"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3720$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3721esac
3722if test "x$ac_cv_prog_cc_c89" != xno; then :
3723
3724fi
3725
3726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732ac_ext=c
3733ac_cpp='$CPP $CPPFLAGS'
3734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3738$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3739if ${am_cv_prog_cc_c_o+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744
3745int
3746main ()
3747{
3748
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753 # Make sure it works both with $CC and with simple cc.
3754 # Following AC_PROG_CC_C_O, we do the test twice because some
3755 # compilers refuse to overwrite an existing .o file with -o,
3756 # though they will create one.
3757 am_cv_prog_cc_c_o=yes
3758 for am_i in 1 2; do
3759 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3760 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } \
3764 && test -f conftest2.$ac_objext; then
3765 : OK
3766 else
3767 am_cv_prog_cc_c_o=no
3768 break
3769 fi
3770 done
3771 rm -f core conftest*
3772 unset am_i
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3775$as_echo "$am_cv_prog_cc_c_o" >&6; }
3776if test "$am_cv_prog_cc_c_o" != yes; then
3777 # Losing compiler, so override with the script.
3778 # FIXME: It is wrong to rewrite CC.
3779 # But if we don't then we get into trouble of one sort or another.
3780 # A longer-term fix would be to have automake use am__CC in this case,
3781 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3782 CC="$am_aux_dir/compile $CC"
3783fi
3784ac_ext=c
3785ac_cpp='$CPP $CPPFLAGS'
3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789
3790
3791depcc="$CC" am_compiler_list=
3792
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3794$as_echo_n "checking dependency style of $depcc... " >&6; }
3795if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797else
3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799 # We make a subdir and do the tests there. Otherwise we can end up
3800 # making bogus files that we don't know about and never remove. For
3801 # instance it was reported that on HP-UX the gcc test will end up
3802 # making a dummy file named 'D' -- because '-MD' means "put the output
3803 # in D".
3804 rm -rf conftest.dir
3805 mkdir conftest.dir
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3809 cd conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3815 # directory.
3816 mkdir sub
3817
3818 am_cv_CC_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821 fi
3822 am__universal=false
3823 case " $depcc " in #(
3824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3825 esac
3826
3827 for depmode in $am_compiler_list; do
3828 # Setup a source with many dependencies, because some compilers
3829 # like to wrap large dependency lists on column 80 (with \), and
3830 # we should not choose a depcomp mode which is confused by this.
3831 #
3832 # We need to recreate these files for each test, as the compiler may
3833 # overwrite some of them when testing with obscure command lines.
3834 # This happens at least with the AIX C compiler.
3835 : > sub/conftest.c
3836 for i in 1 2 3 4 5 6; do
3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3839 # Solaris 10 /bin/sh.
3840 echo '/* dummy */' > sub/conftst$i.h
3841 done
3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843
3844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle '-M -o', and we need to detect this. Also, some Intel
3847 # versions had trouble with output in subdirs.
3848 am__obj=sub/conftest.${OBJEXT-o}
3849 am__minus_obj="-o $am__obj"
3850 case $depmode in
3851 gcc)
3852 # This depmode causes a compiler race in universal mode.
3853 test "$am__universal" = false || continue
3854 ;;
3855 nosideeffect)
3856 # After this tag, mechanisms are not by side-effect, so they'll
3857 # only be used when explicitly requested.
3858 if test "x$enable_dependency_tracking" = xyes; then
3859 continue
3860 else
3861 break
3862 fi
3863 ;;
3864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3865 # This compiler won't grok '-c -o', but also, the minuso test has
3866 # not run yet. These depmodes are late enough in the game, and
3867 # so weak that their functioning should not be impacted.
3868 am__obj=conftest.${OBJEXT-o}
3869 am__minus_obj=
3870 ;;
3871 none) break ;;
3872 esac
3873 if depmode=$depmode \
3874 source=sub/conftest.c object=$am__obj \
3875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3877 >/dev/null 2>conftest.err &&
3878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3882 # icc doesn't choke on unknown options, it will just issue warnings
3883 # or remarks (even with -Werror). So we grep stderr for any message
3884 # that says an option was ignored or not supported.
3885 # When given -MP, icc 7.0 and 7.1 complain thusly:
3886 # icc: Command line warning: ignoring option '-M'; no argument required
3887 # The diagnosis changed in icc 8.0:
3888 # icc: Command line remark: option '-MP' not supported
3889 if (grep 'ignoring option' conftest.err ||
3890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3891 am_cv_CC_dependencies_compiler_type=$depmode
3892 break
3893 fi
3894 fi
3895 done
3896
3897 cd ..
3898 rm -rf conftest.dir
3899else
3900 am_cv_CC_dependencies_compiler_type=none
3901fi
3902
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3905$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3906CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907
3908 if
3909 test "x$enable_dependency_tracking" != xno \
3910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3911 am__fastdepCC_TRUE=
3912 am__fastdepCC_FALSE='#'
3913else
3914 am__fastdepCC_TRUE='#'
3915 am__fastdepCC_FALSE=
3916fi
3917
3918
3919
3920ac_ext=c
3921ac_cpp='$CPP $CPPFLAGS'
3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3926$as_echo_n "checking how to run the C preprocessor... " >&6; }
3927# On Suns, sometimes $CPP names a directory.
3928if test -n "$CPP" && test -d "$CPP"; then
3929 CPP=
3930fi
3931if test -z "$CPP"; then
3932 if ${ac_cv_prog_CPP+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934else
3935 # Double quotes because CPP needs to be expanded
3936 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3937 do
3938 ac_preproc_ok=false
3939for ac_c_preproc_warn_flag in '' yes
3940do
3941 # Use a header file that comes with gcc, so configuring glibc
3942 # with a fresh cross-compiler works.
3943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3944 # <limits.h> exists even on freestanding compilers.
3945 # On the NeXT, cc -E runs the code through the compiler's parser,
3946 # not just through cpp. "Syntax error" is here to catch this case.
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948/* end confdefs.h. */
3949#ifdef __STDC__
3950# include <limits.h>
3951#else
3952# include <assert.h>
3953#endif
3954 Syntax error
3955_ACEOF
3956if ac_fn_c_try_cpp "$LINENO"; then :
3957
3958else
3959 # Broken: fails on valid input.
3960continue
3961fi
3962rm -f conftest.err conftest.i conftest.$ac_ext
3963
3964 # OK, works on sane cases. Now check whether nonexistent headers
3965 # can be detected and how.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
3968#include <ac_nonexistent.h>
3969_ACEOF
3970if ac_fn_c_try_cpp "$LINENO"; then :
3971 # Broken: success on invalid input.
3972continue
3973else
3974 # Passes both tests.
3975ac_preproc_ok=:
3976break
3977fi
3978rm -f conftest.err conftest.i conftest.$ac_ext
3979
3980done
3981# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3982rm -f conftest.i conftest.err conftest.$ac_ext
3983if $ac_preproc_ok; then :
3984 break
3985fi
3986
3987 done
3988 ac_cv_prog_CPP=$CPP
3989
3990fi
3991 CPP=$ac_cv_prog_CPP
3992else
3993 ac_cv_prog_CPP=$CPP
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3996$as_echo "$CPP" >&6; }
3997ac_preproc_ok=false
3998for ac_c_preproc_warn_flag in '' yes
3999do
4000 # Use a header file that comes with gcc, so configuring glibc
4001 # with a fresh cross-compiler works.
4002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003 # <limits.h> exists even on freestanding compilers.
4004 # On the NeXT, cc -E runs the code through the compiler's parser,
4005 # not just through cpp. "Syntax error" is here to catch this case.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h. */
4008#ifdef __STDC__
4009# include <limits.h>
4010#else
4011# include <assert.h>
4012#endif
4013 Syntax error
4014_ACEOF
4015if ac_fn_c_try_cpp "$LINENO"; then :
4016
4017else
4018 # Broken: fails on valid input.
4019continue
4020fi
4021rm -f conftest.err conftest.i conftest.$ac_ext
4022
4023 # OK, works on sane cases. Now check whether nonexistent headers
4024 # can be detected and how.
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027#include <ac_nonexistent.h>
4028_ACEOF
4029if ac_fn_c_try_cpp "$LINENO"; then :
4030 # Broken: success on invalid input.
4031continue
4032else
4033 # Passes both tests.
4034ac_preproc_ok=:
4035break
4036fi
4037rm -f conftest.err conftest.i conftest.$ac_ext
4038
4039done
4040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4041rm -f conftest.i conftest.err conftest.$ac_ext
4042if $ac_preproc_ok; then :
4043
4044else
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4048See \`config.log' for more details" "$LINENO" 5; }
4049fi
4050
4051ac_ext=c
4052ac_cpp='$CPP $CPPFLAGS'
4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4059$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4060if ${ac_cv_path_GREP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062else
4063 if test -z "$GREP"; then
4064 ac_path_GREP_found=false
4065 # Loop through the user's path and test for each of PROGNAME-LIST
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_prog in grep ggrep; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4074 as_fn_executable_p "$ac_path_GREP" || continue
4075# Check for GNU ac_path_GREP and select it if it is found.
4076 # Check for GNU $ac_path_GREP
4077case `"$ac_path_GREP" --version 2>&1` in
4078*GNU*)
4079 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4080*)
4081 ac_count=0
4082 $as_echo_n 0123456789 >"conftest.in"
4083 while :
4084 do
4085 cat "conftest.in" "conftest.in" >"conftest.tmp"
4086 mv "conftest.tmp" "conftest.in"
4087 cp "conftest.in" "conftest.nl"
4088 $as_echo 'GREP' >> "conftest.nl"
4089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091 as_fn_arith $ac_count + 1 && ac_count=$as_val
4092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4093 # Best one so far, save it but keep looking for a better one
4094 ac_cv_path_GREP="$ac_path_GREP"
4095 ac_path_GREP_max=$ac_count
4096 fi
4097 # 10*(2^10) chars as input seems more than enough
4098 test $ac_count -gt 10 && break
4099 done
4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101esac
4102
4103 $ac_path_GREP_found && break 3
4104 done
4105 done
4106 done
4107IFS=$as_save_IFS
4108 if test -z "$ac_cv_path_GREP"; then
4109 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110 fi
4111else
4112 ac_cv_path_GREP=$GREP
4113fi
4114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4117$as_echo "$ac_cv_path_GREP" >&6; }
4118 GREP="$ac_cv_path_GREP"
4119
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4122$as_echo_n "checking for egrep... " >&6; }
4123if ${ac_cv_path_EGREP+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4127 then ac_cv_path_EGREP="$GREP -E"
4128 else
4129 if test -z "$EGREP"; then
4130 ac_path_EGREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in egrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4140 as_fn_executable_p "$ac_path_EGREP" || continue
4141# Check for GNU ac_path_EGREP and select it if it is found.
4142 # Check for GNU $ac_path_EGREP
4143case `"$ac_path_EGREP" --version 2>&1` in
4144*GNU*)
4145 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4146*)
4147 ac_count=0
4148 $as_echo_n 0123456789 >"conftest.in"
4149 while :
4150 do
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'EGREP' >> "conftest.nl"
4155 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 as_fn_arith $ac_count + 1 && ac_count=$as_val
4158 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_EGREP="$ac_path_EGREP"
4161 ac_path_EGREP_max=$ac_count
4162 fi
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4165 done
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167esac
4168
4169 $ac_path_EGREP_found && break 3
4170 done
4171 done
4172 done
4173IFS=$as_save_IFS
4174 if test -z "$ac_cv_path_EGREP"; then
4175 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176 fi
4177else
4178 ac_cv_path_EGREP=$EGREP
4179fi
4180
4181 fi
4182fi
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4184$as_echo "$ac_cv_path_EGREP" >&6; }
4185 EGREP="$ac_cv_path_EGREP"
4186
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4189$as_echo_n "checking for ANSI C header files... " >&6; }
4190if ${ac_cv_header_stdc+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h. */
4195#include <stdlib.h>
4196#include <stdarg.h>
4197#include <string.h>
4198#include <float.h>
4199
4200int
4201main ()
4202{
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_header_stdc=yes
4210else
4211 ac_cv_header_stdc=no
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214
4215if test $ac_cv_header_stdc = yes; then
4216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h. */
4219#include <string.h>
4220
4221_ACEOF
4222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then :
4224
4225else
4226 ac_cv_header_stdc=no
4227fi
4228rm -f conftest*
4229
4230fi
4231
4232if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h. */
4236#include <stdlib.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "free" >/dev/null 2>&1; then :
4241
4242else
4243 ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4251 if test "$cross_compiling" = yes; then :
4252 :
4253else
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h. */
4256#include <ctype.h>
4257#include <stdlib.h>
4258#if ((' ' & 0x0FF) == 0x020)
4259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261#else
4262# define ISLOWER(c) \
4263 (('a' <= (c) && (c) <= 'i') \
4264 || ('j' <= (c) && (c) <= 'r') \
4265 || ('s' <= (c) && (c) <= 'z'))
4266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4267#endif
4268
4269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270int
4271main ()
4272{
4273 int i;
4274 for (i = 0; i < 256; i++)
4275 if (XOR (islower (i), ISLOWER (i))
4276 || toupper (i) != TOUPPER (i))
4277 return 2;
4278 return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_run "$LINENO"; then :
4282
4283else
4284 ac_cv_header_stdc=no
4285fi
4286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4287 conftest.$ac_objext conftest.beam conftest.$ac_ext
4288fi
4289
4290fi
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4293$as_echo "$ac_cv_header_stdc" >&6; }
4294if test $ac_cv_header_stdc = yes; then
4295
4296$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4297
4298fi
4299
4300# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4302 inttypes.h stdint.h unistd.h
4303do :
4304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4305ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4306"
4307if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4308 cat >>confdefs.h <<_ACEOF
4309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310_ACEOF
4311
4312fi
4313
4314done
4315
4316
4317
4318 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4319if test "x$ac_cv_header_minix_config_h" = xyes; then :
4320 MINIX=yes
4321else
4322 MINIX=
4323fi
4324
4325
4326 if test "$MINIX" = yes; then
4327
4328$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4329
4330
4331$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4332
4333
4334$as_echo "#define _MINIX 1" >>confdefs.h
4335
4336 fi
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4340$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4341if ${ac_cv_safe_to_define___extensions__+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
4346
4347# define __EXTENSIONS__ 1
4348 $ac_includes_default
4349int
4350main ()
4351{
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_safe_to_define___extensions__=yes
4359else
4360 ac_cv_safe_to_define___extensions__=no
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4365$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4366 test $ac_cv_safe_to_define___extensions__ = yes &&
4367 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4368
4369 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4370
4371 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4372
4373 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4374
4375 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4376
4377
4378
4379if test -n "$ac_tool_prefix"; then
4380 for ac_prog in ar lib "link -lib"
4381 do
4382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if ${ac_cv_prog_AR+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388else
4389 if test -n "$AR"; then
4390 ac_cv_prog_AR="$AR" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404 done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409AR=$ac_cv_prog_AR
4410if test -n "$AR"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4412$as_echo "$AR" >&6; }
4413else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419 test -n "$AR" && break
4420 done
4421fi
4422if test -z "$AR"; then
4423 ac_ct_AR=$AR
4424 for ac_prog in ar lib "link -lib"
4425do
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427set dummy $ac_prog; ac_word=$2
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429$as_echo_n "checking for $ac_word... " >&6; }
4430if ${ac_cv_prog_ac_ct_AR+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432else
4433 if test -n "$ac_ct_AR"; then
4434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4435else
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_ac_ct_AR="$ac_prog"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447done
4448 done
4449IFS=$as_save_IFS
4450
4451fi
4452fi
4453ac_ct_AR=$ac_cv_prog_ac_ct_AR
4454if test -n "$ac_ct_AR"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4456$as_echo "$ac_ct_AR" >&6; }
4457else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459$as_echo "no" >&6; }
4460fi
4461
4462
4463 test -n "$ac_ct_AR" && break
4464done
4465
4466 if test "x$ac_ct_AR" = x; then
4467 AR="false"
4468 else
4469 case $cross_compiling:$ac_tool_warned in
4470yes:)
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4473ac_tool_warned=yes ;;
4474esac
4475 AR=$ac_ct_AR
4476 fi
4477fi
4478
4479: ${AR=ar}
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4482$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4483if ${am_cv_ar_interface+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485else
4486 ac_ext=c
4487ac_cpp='$CPP $CPPFLAGS'
4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 am_cv_ar_interface=ar
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h. */
4495int some_variable = 0;
4496_ACEOF
4497if ac_fn_c_try_compile "$LINENO"; then :
4498 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4500 (eval $am_ar_try) 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }
4504 if test "$ac_status" -eq 0; then
4505 am_cv_ar_interface=ar
4506 else
4507 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4509 (eval $am_ar_try) 2>&5
4510 ac_status=$?
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 if test "$ac_status" -eq 0; then
4514 am_cv_ar_interface=lib
4515 else
4516 am_cv_ar_interface=unknown
4517 fi
4518 fi
4519 rm -f conftest.lib libconftest.a
4520
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 ac_ext=c
4524ac_cpp='$CPP $CPPFLAGS'
4525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4531$as_echo "$am_cv_ar_interface" >&6; }
4532
4533case $am_cv_ar_interface in
4534ar)
4535 ;;
4536lib)
4537 # Microsoft lib, so override with the ar-lib wrapper script.
4538 # FIXME: It is wrong to rewrite AR.
4539 # But if we don't then we get into trouble of one sort or another.
4540 # A longer-term fix would be to have automake use am__AR in this case,
4541 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4542 # similar.
4543 AR="$am_aux_dir/ar-lib $AR"
4544 ;;
4545unknown)
4546 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4547 ;;
4548esac
4549
4550
4551 rm -rf libopts libopts-*
4552 gunzip -c `autoopts-config libsrc` | tar -xvf -
4553 mv -f libopts-*.*.* libopts
4554 cp -fp libopts/m4/*.m4 m4/.
4555if NEED_LIBOPTS
4556 SUBDIRS += $(LIBOPTS_DIR)
4557 endif
4558
4559case `pwd` in
4560 *\ * | *\ *)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4562$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4563esac
4564
4565
4566
4567macro_version='2.4.2'
4568macro_revision='1.3337'
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582ltmain="$ac_aux_dir/ltmain.sh"
4583
4584# Make sure we can run config.sub.
4585$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4586 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4589$as_echo_n "checking build system type... " >&6; }
4590if ${ac_cv_build+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592else
4593 ac_build_alias=$build_alias
4594test "x$ac_build_alias" = x &&
4595 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4596test "x$ac_build_alias" = x &&
4597 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4598ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4603$as_echo "$ac_cv_build" >&6; }
4604case $ac_cv_build in
4605*-*-*) ;;
4606*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4607esac
4608build=$ac_cv_build
4609ac_save_IFS=$IFS; IFS='-'
4610set x $ac_cv_build
4611shift
4612build_cpu=$1
4613build_vendor=$2
4614shift; shift
4615# Remember, the first character of IFS is used to create $*,
4616# except with old shells:
4617build_os=$*
4618IFS=$ac_save_IFS
4619case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4620
4621
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4623$as_echo_n "checking host system type... " >&6; }
4624if ${ac_cv_host+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 if test "x$host_alias" = x; then
4628 ac_cv_host=$ac_cv_build
4629else
4630 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4632fi
4633
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4636$as_echo "$ac_cv_host" >&6; }
4637case $ac_cv_host in
4638*-*-*) ;;
4639*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4640esac
4641host=$ac_cv_host
4642ac_save_IFS=$IFS; IFS='-'
4643set x $ac_cv_host
4644shift
4645host_cpu=$1
4646host_vendor=$2
4647shift; shift
4648# Remember, the first character of IFS is used to create $*,
4649# except with old shells:
4650host_os=$*
4651IFS=$ac_save_IFS
4652case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4653
4654
4655# Backslashify metacharacters that are still active within
4656# double-quoted strings.
4657sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4658
4659# Same as above, but do not quote variable references.
4660double_quote_subst='s/\(["`\\]\)/\\\1/g'
4661
4662# Sed substitution to delay expansion of an escaped shell variable in a
4663# double_quote_subst'ed string.
4664delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4665
4666# Sed substitution to delay expansion of an escaped single quote.
4667delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4668
4669# Sed substitution to avoid accidental globbing in evaled expressions
4670no_glob_subst='s/\*/\\\*/g'
4671
4672ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4673ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4674ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4675
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4677$as_echo_n "checking how to print strings... " >&6; }
4678# Test print first, because it will be a builtin if present.
4679if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4680 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4681 ECHO='print -r --'
4682elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4683 ECHO='printf %s\n'
4684else
4685 # Use this function as a fallback that always works.
4686 func_fallback_echo ()
4687 {
4688 eval 'cat <<_LTECHO_EOF
4689$1
4690_LTECHO_EOF'
4691 }
4692 ECHO='func_fallback_echo'
4693fi
4694
4695# func_echo_all arg...
4696# Invoke $ECHO with all args, space-separated.
4697func_echo_all ()
4698{
4699 $ECHO ""
4700}
4701
4702case "$ECHO" in
4703 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4704$as_echo "printf" >&6; } ;;
4705 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4706$as_echo "print -r" >&6; } ;;
4707 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4708$as_echo "cat" >&6; } ;;
4709esac
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4725$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4726if ${ac_cv_path_SED+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728else
4729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4730 for ac_i in 1 2 3 4 5 6 7; do
4731 ac_script="$ac_script$as_nl$ac_script"
4732 done
4733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4734 { ac_script=; unset ac_script;}
4735 if test -z "$SED"; then
4736 ac_path_SED_found=false
4737 # Loop through the user's path and test for each of PROGNAME-LIST
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_prog in sed gsed; do
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4746 as_fn_executable_p "$ac_path_SED" || continue
4747# Check for GNU ac_path_SED and select it if it is found.
4748 # Check for GNU $ac_path_SED
4749case `"$ac_path_SED" --version 2>&1` in
4750*GNU*)
4751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4752*)
4753 ac_count=0
4754 $as_echo_n 0123456789 >"conftest.in"
4755 while :
4756 do
4757 cat "conftest.in" "conftest.in" >"conftest.tmp"
4758 mv "conftest.tmp" "conftest.in"
4759 cp "conftest.in" "conftest.nl"
4760 $as_echo '' >> "conftest.nl"
4761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4763 as_fn_arith $ac_count + 1 && ac_count=$as_val
4764 if test $ac_count -gt ${ac_path_SED_max-0}; then
4765 # Best one so far, save it but keep looking for a better one
4766 ac_cv_path_SED="$ac_path_SED"
4767 ac_path_SED_max=$ac_count
4768 fi
4769 # 10*(2^10) chars as input seems more than enough
4770 test $ac_count -gt 10 && break
4771 done
4772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4773esac
4774
4775 $ac_path_SED_found && break 3
4776 done
4777 done
4778 done
4779IFS=$as_save_IFS
4780 if test -z "$ac_cv_path_SED"; then
4781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4782 fi
4783else
4784 ac_cv_path_SED=$SED
4785fi
4786
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4789$as_echo "$ac_cv_path_SED" >&6; }
4790 SED="$ac_cv_path_SED"
4791 rm -f conftest.sed
4792
4793test -z "$SED" && SED=sed
4794Xsed="$SED -e 1s/^X//"
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4807$as_echo_n "checking for fgrep... " >&6; }
4808if ${ac_cv_path_FGREP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4812 then ac_cv_path_FGREP="$GREP -F"
4813 else
4814 if test -z "$FGREP"; then
4815 ac_path_FGREP_found=false
4816 # Loop through the user's path and test for each of PROGNAME-LIST
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_prog in fgrep; do
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4825 as_fn_executable_p "$ac_path_FGREP" || continue
4826# Check for GNU ac_path_FGREP and select it if it is found.
4827 # Check for GNU $ac_path_FGREP
4828case `"$ac_path_FGREP" --version 2>&1` in
4829*GNU*)
4830 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4831*)
4832 ac_count=0
4833 $as_echo_n 0123456789 >"conftest.in"
4834 while :
4835 do
4836 cat "conftest.in" "conftest.in" >"conftest.tmp"
4837 mv "conftest.tmp" "conftest.in"
4838 cp "conftest.in" "conftest.nl"
4839 $as_echo 'FGREP' >> "conftest.nl"
4840 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842 as_fn_arith $ac_count + 1 && ac_count=$as_val
4843 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4844 # Best one so far, save it but keep looking for a better one
4845 ac_cv_path_FGREP="$ac_path_FGREP"
4846 ac_path_FGREP_max=$ac_count
4847 fi
4848 # 10*(2^10) chars as input seems more than enough
4849 test $ac_count -gt 10 && break
4850 done
4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852esac
4853
4854 $ac_path_FGREP_found && break 3
4855 done
4856 done
4857 done
4858IFS=$as_save_IFS
4859 if test -z "$ac_cv_path_FGREP"; then
4860 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4861 fi
4862else
4863 ac_cv_path_FGREP=$FGREP
4864fi
4865
4866 fi
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4869$as_echo "$ac_cv_path_FGREP" >&6; }
4870 FGREP="$ac_cv_path_FGREP"
4871
4872
4873test -z "$GREP" && GREP=grep
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893# Check whether --with-gnu-ld was given.
4894if test "${with_gnu_ld+set}" = set; then :
4895 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4896else
4897 with_gnu_ld=no
4898fi
4899
4900ac_prog=ld
4901if test "$GCC" = yes; then
4902 # Check if gcc -print-prog-name=ld gives a path.
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4904$as_echo_n "checking for ld used by $CC... " >&6; }
4905 case $host in
4906 *-*-mingw*)
4907 # gcc leaves a trailing carriage return which upsets mingw
4908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4909 *)
4910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4911 esac
4912 case $ac_prog in
4913 # Accept absolute paths.
4914 [\\/]* | ?:[\\/]*)
4915 re_direlt='/[^/][^/]*/\.\./'
4916 # Canonicalize the pathname of ld
4917 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4918 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4919 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4920 done
4921 test -z "$LD" && LD="$ac_prog"
4922 ;;
4923 "")
4924 # If it fails, then pretend we aren't using GCC.
4925 ac_prog=ld
4926 ;;
4927 *)
4928 # If it is relative, then search for the first ld in PATH.
4929 with_gnu_ld=unknown
4930 ;;
4931 esac
4932elif test "$with_gnu_ld" = yes; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4934$as_echo_n "checking for GNU ld... " >&6; }
4935else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4937$as_echo_n "checking for non-GNU ld... " >&6; }
4938fi
4939if ${lt_cv_path_LD+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941else
4942 if test -z "$LD"; then
4943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4944 for ac_dir in $PATH; do
4945 IFS="$lt_save_ifs"
4946 test -z "$ac_dir" && ac_dir=.
4947 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4948 lt_cv_path_LD="$ac_dir/$ac_prog"
4949 # Check to see if the program is GNU ld. I'd rather use --version,
4950 # but apparently some variants of GNU ld only accept -v.
4951 # Break only if it was the GNU/non-GNU ld that we prefer.
4952 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4953 *GNU* | *'with BFD'*)
4954 test "$with_gnu_ld" != no && break
4955 ;;
4956 *)
4957 test "$with_gnu_ld" != yes && break
4958 ;;
4959 esac
4960 fi
4961 done
4962 IFS="$lt_save_ifs"
4963else
4964 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4965fi
4966fi
4967
4968LD="$lt_cv_path_LD"
4969if test -n "$LD"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4971$as_echo "$LD" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4978$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4979if ${lt_cv_prog_gnu_ld+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4983case `$LD -v 2>&1 </dev/null` in
4984*GNU* | *'with BFD'*)
4985 lt_cv_prog_gnu_ld=yes
4986 ;;
4987*)
4988 lt_cv_prog_gnu_ld=no
4989 ;;
4990esac
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4993$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4994with_gnu_ld=$lt_cv_prog_gnu_ld
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5005$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5006if ${lt_cv_path_NM+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008else
5009 if test -n "$NM"; then
5010 # Let the user override the test.
5011 lt_cv_path_NM="$NM"
5012else
5013 lt_nm_to_check="${ac_tool_prefix}nm"
5014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5015 lt_nm_to_check="$lt_nm_to_check nm"
5016 fi
5017 for lt_tmp_nm in $lt_nm_to_check; do
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 tmp_nm="$ac_dir/$lt_tmp_nm"
5023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5024 # Check to see if the nm accepts a BSD-compat flag.
5025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5026 # nm: unknown option "B" ignored
5027 # Tru64's nm complains that /dev/null is an invalid object file
5028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5029 */dev/null* | *'Invalid file or object type'*)
5030 lt_cv_path_NM="$tmp_nm -B"
5031 break
5032 ;;
5033 *)
5034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5035 */dev/null*)
5036 lt_cv_path_NM="$tmp_nm -p"
5037 break
5038 ;;
5039 *)
5040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5041 continue # so that we can try to find one that supports BSD flags
5042 ;;
5043 esac
5044 ;;
5045 esac
5046 fi
5047 done
5048 IFS="$lt_save_ifs"
5049 done
5050 : ${lt_cv_path_NM=no}
5051fi
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5054$as_echo "$lt_cv_path_NM" >&6; }
5055if test "$lt_cv_path_NM" != "no"; then
5056 NM="$lt_cv_path_NM"
5057else
5058 # Didn't find any BSD compatible name lister, look for dumpbin.
5059 if test -n "$DUMPBIN"; then :
5060 # Let the user override the test.
5061 else
5062 if test -n "$ac_tool_prefix"; then
5063 for ac_prog in dumpbin "link -dump"
5064 do
5065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if ${ac_cv_prog_DUMPBIN+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071else
5072 if test -n "$DUMPBIN"; then
5073 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087 done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092DUMPBIN=$ac_cv_prog_DUMPBIN
5093if test -n "$DUMPBIN"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5095$as_echo "$DUMPBIN" >&6; }
5096else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102 test -n "$DUMPBIN" && break
5103 done
5104fi
5105if test -z "$DUMPBIN"; then
5106 ac_ct_DUMPBIN=$DUMPBIN
5107 for ac_prog in dumpbin "link -dump"
5108do
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110set dummy $ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 if test -n "$ac_ct_DUMPBIN"; then
5117 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130done
5131 done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5137if test -n "$ac_ct_DUMPBIN"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5139$as_echo "$ac_ct_DUMPBIN" >&6; }
5140else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146 test -n "$ac_ct_DUMPBIN" && break
5147done
5148
5149 if test "x$ac_ct_DUMPBIN" = x; then
5150 DUMPBIN=":"
5151 else
5152 case $cross_compiling:$ac_tool_warned in
5153yes:)
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156ac_tool_warned=yes ;;
5157esac
5158 DUMPBIN=$ac_ct_DUMPBIN
5159 fi
5160fi
5161
5162 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5163 *COFF*)
5164 DUMPBIN="$DUMPBIN -symbols"
5165 ;;
5166 *)
5167 DUMPBIN=:
5168 ;;
5169 esac
5170 fi
5171
5172 if test "$DUMPBIN" != ":"; then
5173 NM="$DUMPBIN"
5174 fi
5175fi
5176test -z "$NM" && NM=nm
5177
5178
5179
5180
5181
5182
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5184$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5185if ${lt_cv_nm_interface+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187else
5188 lt_cv_nm_interface="BSD nm"
5189 echo "int some_variable = 0;" > conftest.$ac_ext
5190 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5191 (eval "$ac_compile" 2>conftest.err)
5192 cat conftest.err >&5
5193 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5195 cat conftest.err >&5
5196 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5197 cat conftest.out >&5
5198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5199 lt_cv_nm_interface="MS dumpbin"
5200 fi
5201 rm -f conftest*
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5204$as_echo "$lt_cv_nm_interface" >&6; }
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5207$as_echo_n "checking whether ln -s works... " >&6; }
5208LN_S=$as_ln_s
5209if test "$LN_S" = "ln -s"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211$as_echo "yes" >&6; }
5212else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5214$as_echo "no, using $LN_S" >&6; }
5215fi
5216
5217# find the maximum length of command line arguments
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5219$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5220if ${lt_cv_sys_max_cmd_len+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 i=0
5224 teststring="ABCD"
5225
5226 case $build_os in
5227 msdosdjgpp*)
5228 # On DJGPP, this test can blow up pretty badly due to problems in libc
5229 # (any single argument exceeding 2000 bytes causes a buffer overrun
5230 # during glob expansion). Even if it were fixed, the result of this
5231 # check would be larger than it should be.
5232 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5233 ;;
5234
5235 gnu*)
5236 # Under GNU Hurd, this test is not required because there is
5237 # no limit to the length of command line arguments.
5238 # Libtool will interpret -1 as no limit whatsoever
5239 lt_cv_sys_max_cmd_len=-1;
5240 ;;
5241
5242 cygwin* | mingw* | cegcc*)
5243 # On Win9x/ME, this test blows up -- it succeeds, but takes
5244 # about 5 minutes as the teststring grows exponentially.
5245 # Worse, since 9x/ME are not pre-emptively multitasking,
5246 # you end up with a "frozen" computer, even though with patience
5247 # the test eventually succeeds (with a max line length of 256k).
5248 # Instead, let's just punt: use the minimum linelength reported by
5249 # all of the supported platforms: 8192 (on NT/2K/XP).
5250 lt_cv_sys_max_cmd_len=8192;
5251 ;;
5252
5253 mint*)
5254 # On MiNT this can take a long time and run out of memory.
5255 lt_cv_sys_max_cmd_len=8192;
5256 ;;
5257
5258 amigaos*)
5259 # On AmigaOS with pdksh, this test takes hours, literally.
5260 # So we just punt and use a minimum line length of 8192.
5261 lt_cv_sys_max_cmd_len=8192;
5262 ;;
5263
5264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5265 # This has been around since 386BSD, at least. Likely further.
5266 if test -x /sbin/sysctl; then
5267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5268 elif test -x /usr/sbin/sysctl; then
5269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5270 else
5271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5272 fi
5273 # And add a safety zone
5274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5276 ;;
5277
5278 interix*)
5279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5280 lt_cv_sys_max_cmd_len=196608
5281 ;;
5282
5283 os2*)
5284 # The test takes a long time on OS/2.
5285 lt_cv_sys_max_cmd_len=8192
5286 ;;
5287
5288 osf*)
5289 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5290 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5291 # nice to cause kernel panics so lets avoid the loop below.
5292 # First set a reasonable default.
5293 lt_cv_sys_max_cmd_len=16384
5294 #
5295 if test -x /sbin/sysconfig; then
5296 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5297 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5298 esac
5299 fi
5300 ;;
5301 sco3.2v5*)
5302 lt_cv_sys_max_cmd_len=102400
5303 ;;
5304 sysv5* | sco5v6* | sysv4.2uw2*)
5305 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5306 if test -n "$kargmax"; then
5307 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5308 else
5309 lt_cv_sys_max_cmd_len=32768
5310 fi
5311 ;;
5312 *)
5313 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5314 if test -n "$lt_cv_sys_max_cmd_len" && \
5315 test undefined != "$lt_cv_sys_max_cmd_len"; then
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5318 else
5319 # Make teststring a little bigger before we do anything with it.
5320 # a 1K string should be a reasonable start.
5321 for i in 1 2 3 4 5 6 7 8 ; do
5322 teststring=$teststring$teststring
5323 done
5324 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5325 # If test is not a shell built-in, we'll probably end up computing a
5326 # maximum length that is only half of the actual maximum length, but
5327 # we can't tell.
5328 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5329 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5330 test $i != 17 # 1/2 MB should be enough
5331 do
5332 i=`expr $i + 1`
5333 teststring=$teststring$teststring
5334 done
5335 # Only check the string length outside the loop.
5336 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5337 teststring=
5338 # Add a significant safety factor because C++ compilers can tack on
5339 # massive amounts of additional arguments before passing them to the
5340 # linker. It appears as though 1/2 is a usable value.
5341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5342 fi
5343 ;;
5344 esac
5345
5346fi
5347
5348if test -n $lt_cv_sys_max_cmd_len ; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5350$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5351else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5353$as_echo "none" >&6; }
5354fi
5355max_cmd_len=$lt_cv_sys_max_cmd_len
5356
5357
5358
5359
5360
5361
5362: ${CP="cp -f"}
5363: ${MV="mv -f"}
5364: ${RM="rm -f"}
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5367$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5368# Try some XSI features
5369xsi_shell=no
5370( _lt_dummy="a/b/c"
5371 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5372 = c,a/b,b/c, \
5373 && eval 'test $(( 1 + 1 )) -eq 2 \
5374 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5375 && xsi_shell=yes
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5377$as_echo "$xsi_shell" >&6; }
5378
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5381$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5382lt_shell_append=no
5383( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5384 >/dev/null 2>&1 \
5385 && lt_shell_append=yes
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5387$as_echo "$lt_shell_append" >&6; }
5388
5389
5390if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5391 lt_unset=unset
5392else
5393 lt_unset=false
5394fi
5395
5396
5397
5398
5399
5400# test EBCDIC or ASCII
5401case `echo X|tr X '\101'` in
5402 A) # ASCII based system
5403 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5404 lt_SP2NL='tr \040 \012'
5405 lt_NL2SP='tr \015\012 \040\040'
5406 ;;
5407 *) # EBCDIC based system
5408 lt_SP2NL='tr \100 \n'
5409 lt_NL2SP='tr \r\n \100\100'
5410 ;;
5411esac
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5422$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5423if ${lt_cv_to_host_file_cmd+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 case $host in
5427 *-*-mingw* )
5428 case $build in
5429 *-*-mingw* ) # actually msys
5430 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5431 ;;
5432 *-*-cygwin* )
5433 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5434 ;;
5435 * ) # otherwise, assume *nix
5436 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5437 ;;
5438 esac
5439 ;;
5440 *-*-cygwin* )
5441 case $build in
5442 *-*-mingw* ) # actually msys
5443 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5444 ;;
5445 *-*-cygwin* )
5446 lt_cv_to_host_file_cmd=func_convert_file_noop
5447 ;;
5448 * ) # otherwise, assume *nix
5449 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5450 ;;
5451 esac
5452 ;;
5453 * ) # unhandled hosts (and "normal" native builds)
5454 lt_cv_to_host_file_cmd=func_convert_file_noop
5455 ;;
5456esac
5457
5458fi
5459
5460to_host_file_cmd=$lt_cv_to_host_file_cmd
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5462$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5463
5464
5465
5466
5467
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5469$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5470if ${lt_cv_to_tool_file_cmd+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472else
5473 #assume ordinary cross tools, or native build.
5474lt_cv_to_tool_file_cmd=func_convert_file_noop
5475case $host in
5476 *-*-mingw* )
5477 case $build in
5478 *-*-mingw* ) # actually msys
5479 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5480 ;;
5481 esac
5482 ;;
5483esac
5484
5485fi
5486
5487to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5489$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5490
5491
5492
5493
5494
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5496$as_echo_n "checking for $LD option to reload object files... " >&6; }
5497if ${lt_cv_ld_reload_flag+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499else
5500 lt_cv_ld_reload_flag='-r'
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5503$as_echo "$lt_cv_ld_reload_flag" >&6; }
5504reload_flag=$lt_cv_ld_reload_flag
5505case $reload_flag in
5506"" | " "*) ;;
5507*) reload_flag=" $reload_flag" ;;
5508esac
5509reload_cmds='$LD$reload_flag -o $output$reload_objs'
5510case $host_os in
5511 cygwin* | mingw* | pw32* | cegcc*)
5512 if test "$GCC" != yes; then
5513 reload_cmds=false
5514 fi
5515 ;;
5516 darwin*)
5517 if test "$GCC" = yes; then
5518 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5519 else
5520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5521 fi
5522 ;;
5523esac
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5535set dummy ${ac_tool_prefix}objdump; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if ${ac_cv_prog_OBJDUMP+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 if test -n "$OBJDUMP"; then
5542 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556 done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561OBJDUMP=$ac_cv_prog_OBJDUMP
5562if test -n "$OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5564$as_echo "$OBJDUMP" >&6; }
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570
5571fi
5572if test -z "$ac_cv_prog_OBJDUMP"; then
5573 ac_ct_OBJDUMP=$OBJDUMP
5574 # Extract the first word of "objdump", so it can be a program name with args.
5575set dummy objdump; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 if test -n "$ac_ct_OBJDUMP"; then
5582 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596 done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5602if test -n "$ac_ct_OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5604$as_echo "$ac_ct_OBJDUMP" >&6; }
5605else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610 if test "x$ac_ct_OBJDUMP" = x; then
5611 OBJDUMP="false"
5612 else
5613 case $cross_compiling:$ac_tool_warned in
5614yes:)
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617ac_tool_warned=yes ;;
5618esac
5619 OBJDUMP=$ac_ct_OBJDUMP
5620 fi
5621else
5622 OBJDUMP="$ac_cv_prog_OBJDUMP"
5623fi
5624
5625test -z "$OBJDUMP" && OBJDUMP=objdump
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5636$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5637if ${lt_cv_deplibs_check_method+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 lt_cv_file_magic_cmd='$MAGIC_CMD'
5641lt_cv_file_magic_test_file=
5642lt_cv_deplibs_check_method='unknown'
5643# Need to set the preceding variable on all platforms that support
5644# interlibrary dependencies.
5645# 'none' -- dependencies not supported.
5646# `unknown' -- same as none, but documents that we really don't know.
5647# 'pass_all' -- all dependencies passed with no checks.
5648# 'test_compile' -- check by making test program.
5649# 'file_magic [[regex]]' -- check by looking for files in library path
5650# which responds to the $file_magic_cmd with a given extended regex.
5651# If you have `file' or equivalent on your system and you're not sure
5652# whether `pass_all' will *always* work, you probably want this one.
5653
5654case $host_os in
5655aix[4-9]*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659beos*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663bsdi[45]*)
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5665 lt_cv_file_magic_cmd='/usr/bin/file -L'
5666 lt_cv_file_magic_test_file=/shlib/libc.so
5667 ;;
5668
5669cygwin*)
5670 # func_win32_libid is a shell function defined in ltmain.sh
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 ;;
5674
5675mingw* | pw32*)
5676 # Base MSYS/MinGW do not provide the 'file' command needed by
5677 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5678 # unless we find 'file', for example because we are cross-compiling.
5679 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5680 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682 lt_cv_file_magic_cmd='func_win32_libid'
5683 else
5684 # Keep this pattern in sync with the one in func_win32_libid.
5685 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5686 lt_cv_file_magic_cmd='$OBJDUMP -f'
5687 fi
5688 ;;
5689
5690cegcc*)
5691 # use the weaker test based on 'objdump'. See mingw*.
5692 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5693 lt_cv_file_magic_cmd='$OBJDUMP -f'
5694 ;;
5695
5696darwin* | rhapsody*)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
5700freebsd* | dragonfly*)
5701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5702 case $host_cpu in
5703 i*86 )
5704 # Not sure whether the presence of OpenBSD here was a mistake.
5705 # Let's accept both of them until this is cleared up.
5706 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5707 lt_cv_file_magic_cmd=/usr/bin/file
5708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5709 ;;
5710 esac
5711 else
5712 lt_cv_deplibs_check_method=pass_all
5713 fi
5714 ;;
5715
5716haiku*)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720hpux10.20* | hpux11*)
5721 lt_cv_file_magic_cmd=/usr/bin/file
5722 case $host_cpu in
5723 ia64*)
5724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5726 ;;
5727 hppa*64*)
5728 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]'
5729 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5730 ;;
5731 *)
5732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5733 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5734 ;;
5735 esac
5736 ;;
5737
5738interix[3-9]*)
5739 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5741 ;;
5742
5743irix5* | irix6* | nonstopux*)
5744 case $LD in
5745 *-32|*"-32 ") libmagic=32-bit;;
5746 *-n32|*"-n32 ") libmagic=N32;;
5747 *-64|*"-64 ") libmagic=64-bit;;
5748 *) libmagic=never-match;;
5749 esac
5750 lt_cv_deplibs_check_method=pass_all
5751 ;;
5752
5753# This must be glibc/ELF.
5754linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758netbsd* | netbsdelf*-gnu)
5759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 else
5762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763 fi
5764 ;;
5765
5766newos6*)
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770 ;;
5771
5772*nto* | *qnx*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776openbsd*)
5777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779 else
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781 fi
5782 ;;
5783
5784osf3* | osf4* | osf5*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788rdos*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792solaris*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5797 lt_cv_deplibs_check_method=pass_all
5798 ;;
5799
5800sysv4 | sysv4.3*)
5801 case $host_vendor in
5802 motorola)
5803 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]'
5804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5805 ;;
5806 ncr)
5807 lt_cv_deplibs_check_method=pass_all
5808 ;;
5809 sequent)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5812 ;;
5813 sni)
5814 lt_cv_file_magic_cmd='/bin/file'
5815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5816 lt_cv_file_magic_test_file=/lib/libc.so
5817 ;;
5818 siemens)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821 pc)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824 esac
5825 ;;
5826
5827tpf*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830esac
5831
5832fi
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5834$as_echo "$lt_cv_deplibs_check_method" >&6; }
5835
5836file_magic_glob=
5837want_nocaseglob=no
5838if test "$build" = "$host"; then
5839 case $host_os in
5840 mingw* | pw32*)
5841 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5842 want_nocaseglob=yes
5843 else
5844 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5845 fi
5846 ;;
5847 esac
5848fi
5849
5850file_magic_cmd=$lt_cv_file_magic_cmd
5851deplibs_check_method=$lt_cv_deplibs_check_method
5852test -z "$deplibs_check_method" && deplibs_check_method=unknown
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5877set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
5880if ${ac_cv_prog_DLLTOOL+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 if test -n "$DLLTOOL"; then
5884 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898 done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903DLLTOOL=$ac_cv_prog_DLLTOOL
5904if test -n "$DLLTOOL"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5906$as_echo "$DLLTOOL" >&6; }
5907else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; }
5910fi
5911
5912
5913fi
5914if test -z "$ac_cv_prog_DLLTOOL"; then
5915 ac_ct_DLLTOOL=$DLLTOOL
5916 # Extract the first word of "dlltool", so it can be a program name with args.
5917set dummy dlltool; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$ac_ct_DLLTOOL"; then
5924 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5944if test -n "$ac_ct_DLLTOOL"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5946$as_echo "$ac_ct_DLLTOOL" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952 if test "x$ac_ct_DLLTOOL" = x; then
5953 DLLTOOL="false"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961 DLLTOOL=$ac_ct_DLLTOOL
5962 fi
5963else
5964 DLLTOOL="$ac_cv_prog_DLLTOOL"
5965fi
5966
5967test -z "$DLLTOOL" && DLLTOOL=dlltool
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5979$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5980if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982else
5983 lt_cv_sharedlib_from_linklib_cmd='unknown'
5984
5985case $host_os in
5986cygwin* | mingw* | pw32* | cegcc*)
5987 # two different shell functions defined in ltmain.sh
5988 # decide which to use based on capabilities of $DLLTOOL
5989 case `$DLLTOOL --help 2>&1` in
5990 *--identify-strict*)
5991 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5992 ;;
5993 *)
5994 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5995 ;;
5996 esac
5997 ;;
5998*)
5999 # fallback: assume linklib IS sharedlib
6000 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6001 ;;
6002esac
6003
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6006$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6007sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6008test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6009
6010
6011
6012
6013
6014
6015
6016if test -n "$ac_tool_prefix"; then
6017 for ac_prog in ar
6018 do
6019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022$as_echo_n "checking for $ac_word... " >&6; }
6023if ${ac_cv_prog_AR+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025else
6026 if test -n "$AR"; then
6027 ac_cv_prog_AR="$AR" # Let the user override the test.
6028else
6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH
6031do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040done
6041 done
6042IFS=$as_save_IFS
6043
6044fi
6045fi
6046AR=$ac_cv_prog_AR
6047if test -n "$AR"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6049$as_echo "$AR" >&6; }
6050else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052$as_echo "no" >&6; }
6053fi
6054
6055
6056 test -n "$AR" && break
6057 done
6058fi
6059if test -z "$AR"; then
6060 ac_ct_AR=$AR
6061 for ac_prog in ar
6062do
6063 # Extract the first word of "$ac_prog", so it can be a program name with args.
6064set dummy $ac_prog; ac_word=$2
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066$as_echo_n "checking for $ac_word... " >&6; }
6067if ${ac_cv_prog_ac_ct_AR+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test -n "$ac_ct_AR"; then
6071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_ac_ct_AR="$ac_prog"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084done
6085 done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090ac_ct_AR=$ac_cv_prog_ac_ct_AR
6091if test -n "$ac_ct_AR"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6093$as_echo "$ac_ct_AR" >&6; }
6094else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099
6100 test -n "$ac_ct_AR" && break
6101done
6102
6103 if test "x$ac_ct_AR" = x; then
6104 AR="false"
6105 else
6106 case $cross_compiling:$ac_tool_warned in
6107yes:)
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110ac_tool_warned=yes ;;
6111esac
6112 AR=$ac_ct_AR
6113 fi
6114fi
6115
6116: ${AR=ar}
6117: ${AR_FLAGS=cru}
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6130$as_echo_n "checking for archiver @FILE support... " >&6; }
6131if ${lt_cv_ar_at_file+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133else
6134 lt_cv_ar_at_file=no
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h. */
6137
6138int
6139main ()
6140{
6141
6142 ;
6143 return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_compile "$LINENO"; then :
6147 echo conftest.$ac_objext > conftest.lst
6148 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6150 (eval $lt_ar_try) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }
6154 if test "$ac_status" -eq 0; then
6155 # Ensure the archiver fails upon bogus file names.
6156 rm -f conftest.$ac_objext libconftest.a
6157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6158 (eval $lt_ar_try) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }
6162 if test "$ac_status" -ne 0; then
6163 lt_cv_ar_at_file=@
6164 fi
6165 fi
6166 rm -f conftest.* libconftest.a
6167
6168fi
6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6173$as_echo "$lt_cv_ar_at_file" >&6; }
6174
6175if test "x$lt_cv_ar_at_file" = xno; then
6176 archiver_list_spec=
6177else
6178 archiver_list_spec=$lt_cv_ar_at_file
6179fi
6180
6181
6182
6183
6184
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}strip; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_STRIP+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194else
6195 if test -n "$STRIP"; then
6196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210 done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215STRIP=$ac_cv_prog_STRIP
6216if test -n "$STRIP"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6218$as_echo "$STRIP" >&6; }
6219else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_STRIP"; then
6227 ac_ct_STRIP=$STRIP
6228 # Extract the first word of "strip", so it can be a program name with args.
6229set dummy strip; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234else
6235 if test -n "$ac_ct_STRIP"; then
6236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_STRIP="strip"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249done
6250 done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6256if test -n "$ac_ct_STRIP"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6258$as_echo "$ac_ct_STRIP" >&6; }
6259else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264 if test "x$ac_ct_STRIP" = x; then
6265 STRIP=":"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273 STRIP=$ac_ct_STRIP
6274 fi
6275else
6276 STRIP="$ac_cv_prog_STRIP"
6277fi
6278
6279test -z "$STRIP" && STRIP=:
6280
6281
6282
6283
6284
6285
6286if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_RANLIB+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 if test -n "$RANLIB"; then
6295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309 done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314RANLIB=$ac_cv_prog_RANLIB
6315if test -n "$RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6317$as_echo "$RANLIB" >&6; }
6318else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_RANLIB"; then
6326 ac_ct_RANLIB=$RANLIB
6327 # Extract the first word of "ranlib", so it can be a program name with args.
6328set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333else
6334 if test -n "$ac_ct_RANLIB"; then
6335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
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
6354ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6355if test -n "$ac_ct_RANLIB"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6357$as_echo "$ac_ct_RANLIB" >&6; }
6358else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363 if test "x$ac_ct_RANLIB" = x; then
6364 RANLIB=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372 RANLIB=$ac_ct_RANLIB
6373 fi
6374else
6375 RANLIB="$ac_cv_prog_RANLIB"
6376fi
6377
6378test -z "$RANLIB" && RANLIB=:
6379
6380
6381
6382
6383
6384
6385# Determine commands to create old-style static archives.
6386old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6387old_postinstall_cmds='chmod 644 $oldlib'
6388old_postuninstall_cmds=
6389
6390if test -n "$RANLIB"; then
6391 case $host_os in
6392 openbsd*)
6393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6394 ;;
6395 *)
6396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6397 ;;
6398 esac
6399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6400fi
6401
6402case $host_os in
6403 darwin*)
6404 lock_old_archive_extraction=yes ;;
6405 *)
6406 lock_old_archive_extraction=no ;;
6407esac
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447# If no C compiler was specified, use CC.
6448LTCC=${LTCC-"$CC"}
6449
6450# If no C compiler flags were specified, use CFLAGS.
6451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6452
6453# Allow CC to be a program name with arguments.
6454compiler=$CC
6455
6456
6457# Check for command to grab the raw symbol name followed by C symbol from nm.
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6459$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6460if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462else
6463
6464# These are sane defaults that work on at least a few old systems.
6465# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6466
6467# Character class describing NM global symbol codes.
6468symcode='[BCDEGRST]'
6469
6470# Regexp to match symbols that can be accessed directly from C.
6471sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6472
6473# Define system-specific variables.
6474case $host_os in
6475aix*)
6476 symcode='[BCDT]'
6477 ;;
6478cygwin* | mingw* | pw32* | cegcc*)
6479 symcode='[ABCDGISTW]'
6480 ;;
6481hpux*)
6482 if test "$host_cpu" = ia64; then
6483 symcode='[ABCDEGRST]'
6484 fi
6485 ;;
6486irix* | nonstopux*)
6487 symcode='[BCDEGRST]'
6488 ;;
6489osf*)
6490 symcode='[BCDEGQRST]'
6491 ;;
6492solaris*)
6493 symcode='[BDRT]'
6494 ;;
6495sco3.2v5*)
6496 symcode='[DT]'
6497 ;;
6498sysv4.2uw2*)
6499 symcode='[DT]'
6500 ;;
6501sysv5* | sco5v6* | unixware* | OpenUNIX*)
6502 symcode='[ABDT]'
6503 ;;
6504sysv4)
6505 symcode='[DFNSTU]'
6506 ;;
6507esac
6508
6509# If we're using GNU nm, then use its standard symbol codes.
6510case `$NM -V 2>&1` in
6511*GNU* | *'with BFD'*)
6512 symcode='[ABCDGIRSTW]' ;;
6513esac
6514
6515# Transform an extracted symbol line into a proper C declaration.
6516# Some systems (esp. on ia64) link data and code symbols differently,
6517# so use this general approach.
6518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519
6520# Transform an extracted symbol line into symbol name and symbol address
6521lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6522lt_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'"
6523
6524# Handle CRLF in mingw tool chain
6525opt_cr=
6526case $build_os in
6527mingw*)
6528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6529 ;;
6530esac
6531
6532# Try without a prefix underscore, then with it.
6533for ac_symprfx in "" "_"; do
6534
6535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6536 symxfrm="\\1 $ac_symprfx\\2 \\2"
6537
6538 # Write the raw and C identifiers.
6539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6540 # Fake it for dumpbin and say T for any non-static function
6541 # and D for any global variable.
6542 # Also find C++ and __fastcall symbols from MSVC++,
6543 # which start with @ or ?.
6544 lt_cv_sys_global_symbol_pipe="$AWK '"\
6545" {last_section=section; section=\$ 3};"\
6546" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6547" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6548" \$ 0!~/External *\|/{next};"\
6549" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6550" {if(hide[section]) next};"\
6551" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6552" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6553" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6554" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6555" ' prfx=^$ac_symprfx"
6556 else
6557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6558 fi
6559 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6560
6561 # Check to see that the pipe works correctly.
6562 pipe_works=no
6563
6564 rm -f conftest*
6565 cat > conftest.$ac_ext <<_LT_EOF
6566#ifdef __cplusplus
6567extern "C" {
6568#endif
6569char nm_test_var;
6570void nm_test_func(void);
6571void nm_test_func(void){}
6572#ifdef __cplusplus
6573}
6574#endif
6575int main(){nm_test_var='a';nm_test_func();return(0);}
6576_LT_EOF
6577
6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582 test $ac_status = 0; }; then
6583 # Now try to grab the symbols.
6584 nlist=conftest.nm
6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6586 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6587 ac_status=$?
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; } && test -s "$nlist"; then
6590 # Try sorting and uniquifying the output.
6591 if sort "$nlist" | uniq > "$nlist"T; then
6592 mv -f "$nlist"T "$nlist"
6593 else
6594 rm -f "$nlist"T
6595 fi
6596
6597 # Make sure that we snagged all the symbols we need.
6598 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6599 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6600 cat <<_LT_EOF > conftest.$ac_ext
6601/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6602#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6603/* DATA imports from DLLs on WIN32 con't be const, because runtime
6604 relocations are performed -- see ld's documentation on pseudo-relocs. */
6605# define LT_DLSYM_CONST
6606#elif defined(__osf__)
6607/* This system does not cope well with relocations in const data. */
6608# define LT_DLSYM_CONST
6609#else
6610# define LT_DLSYM_CONST const
6611#endif
6612
6613#ifdef __cplusplus
6614extern "C" {
6615#endif
6616
6617_LT_EOF
6618 # Now generate the symbol file.
6619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6620
6621 cat <<_LT_EOF >> conftest.$ac_ext
6622
6623/* The mapping between symbol names and symbols. */
6624LT_DLSYM_CONST struct {
6625 const char *name;
6626 void *address;
6627}
6628lt__PROGRAM__LTX_preloaded_symbols[] =
6629{
6630 { "@PROGRAM@", (void *) 0 },
6631_LT_EOF
6632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6633 cat <<\_LT_EOF >> conftest.$ac_ext
6634 {0, (void *) 0}
6635};
6636
6637/* This works around a problem in FreeBSD linker */
6638#ifdef FREEBSD_WORKAROUND
6639static const void *lt_preloaded_setup() {
6640 return lt__PROGRAM__LTX_preloaded_symbols;
6641}
6642#endif
6643
6644#ifdef __cplusplus
6645}
6646#endif
6647_LT_EOF
6648 # Now try linking the two files.
6649 mv conftest.$ac_objext conftstm.$ac_objext
6650 lt_globsym_save_LIBS=$LIBS
6651 lt_globsym_save_CFLAGS=$CFLAGS
6652 LIBS="conftstm.$ac_objext"
6653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6655 (eval $ac_link) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6659 pipe_works=yes
6660 fi
6661 LIBS=$lt_globsym_save_LIBS
6662 CFLAGS=$lt_globsym_save_CFLAGS
6663 else
6664 echo "cannot find nm_test_func in $nlist" >&5
6665 fi
6666 else
6667 echo "cannot find nm_test_var in $nlist" >&5
6668 fi
6669 else
6670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6671 fi
6672 else
6673 echo "$progname: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 fi
6676 rm -rf conftest* conftst*
6677
6678 # Do not use the global_symbol_pipe unless it works.
6679 if test "$pipe_works" = yes; then
6680 break
6681 else
6682 lt_cv_sys_global_symbol_pipe=
6683 fi
6684done
6685
6686fi
6687
6688if test -z "$lt_cv_sys_global_symbol_pipe"; then
6689 lt_cv_sys_global_symbol_to_cdecl=
6690fi
6691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6693$as_echo "failed" >&6; }
6694else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6696$as_echo "ok" >&6; }
6697fi
6698
6699# Response file support.
6700if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6701 nm_file_list_spec='@'
6702elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6703 nm_file_list_spec='@'
6704fi
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6733$as_echo_n "checking for sysroot... " >&6; }
6734
6735# Check whether --with-sysroot was given.
6736if test "${with_sysroot+set}" = set; then :
6737 withval=$with_sysroot;
6738else
6739 with_sysroot=no
6740fi
6741
6742
6743lt_sysroot=
6744case ${with_sysroot} in #(
6745 yes)
6746 if test "$GCC" = yes; then
6747 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6748 fi
6749 ;; #(
6750 /*)
6751 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6752 ;; #(
6753 no|'')
6754 ;; #(
6755 *)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6757$as_echo "${with_sysroot}" >&6; }
6758 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6759 ;;
6760esac
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6763$as_echo "${lt_sysroot:-no}" >&6; }
6764
6765
6766
6767
6768
6769# Check whether --enable-libtool-lock was given.
6770if test "${enable_libtool_lock+set}" = set; then :
6771 enableval=$enable_libtool_lock;
6772fi
6773
6774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6775
6776# Some flags need to be propagated to the compiler or linker for good
6777# libtool support.
6778case $host in
6779ia64-*-hpux*)
6780 # Find out which ABI we are using.
6781 echo 'int i;' > conftest.$ac_ext
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783 (eval $ac_compile) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }; then
6787 case `/usr/bin/file conftest.$ac_objext` in
6788 *ELF-32*)
6789 HPUX_IA64_MODE="32"
6790 ;;
6791 *ELF-64*)
6792 HPUX_IA64_MODE="64"
6793 ;;
6794 esac
6795 fi
6796 rm -rf conftest*
6797 ;;
6798*-*-irix6*)
6799 # Find out which ABI we are using.
6800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802 (eval $ac_compile) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; }; then
6806 if test "$lt_cv_prog_gnu_ld" = yes; then
6807 case `/usr/bin/file conftest.$ac_objext` in
6808 *32-bit*)
6809 LD="${LD-ld} -melf32bsmip"
6810 ;;
6811 *N32*)
6812 LD="${LD-ld} -melf32bmipn32"
6813 ;;
6814 *64-bit*)
6815 LD="${LD-ld} -melf64bmip"
6816 ;;
6817 esac
6818 else
6819 case `/usr/bin/file conftest.$ac_objext` in
6820 *32-bit*)
6821 LD="${LD-ld} -32"
6822 ;;
6823 *N32*)
6824 LD="${LD-ld} -n32"
6825 ;;
6826 *64-bit*)
6827 LD="${LD-ld} -64"
6828 ;;
6829 esac
6830 fi
6831 fi
6832 rm -rf conftest*
6833 ;;
6834
6835x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6836s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6837 # Find out which ABI we are using.
6838 echo 'int i;' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.o` in
6845 *32-bit*)
6846 case $host in
6847 x86_64-*kfreebsd*-gnu)
6848 LD="${LD-ld} -m elf_i386_fbsd"
6849 ;;
6850 x86_64-*linux*)
6851 case `/usr/bin/file conftest.o` in
6852 *x86-64*)
6853 LD="${LD-ld} -m elf32_x86_64"
6854 ;;
6855 *)
6856 LD="${LD-ld} -m elf_i386"
6857 ;;
6858 esac
6859 ;;
6860 powerpc64le-*)
6861 LD="${LD-ld} -m elf32lppclinux"
6862 ;;
6863 powerpc64-*)
6864 LD="${LD-ld} -m elf32ppclinux"
6865 ;;
6866 s390x-*linux*)
6867 LD="${LD-ld} -m elf_s390"
6868 ;;
6869 sparc64-*linux*)
6870 LD="${LD-ld} -m elf32_sparc"
6871 ;;
6872 esac
6873 ;;
6874 *64-bit*)
6875 case $host in
6876 x86_64-*kfreebsd*-gnu)
6877 LD="${LD-ld} -m elf_x86_64_fbsd"
6878 ;;
6879 x86_64-*linux*)
6880 LD="${LD-ld} -m elf_x86_64"
6881 ;;
6882 powerpcle-*)
6883 LD="${LD-ld} -m elf64lppc"
6884 ;;
6885 powerpc-*)
6886 LD="${LD-ld} -m elf64ppc"
6887 ;;
6888 s390*-*linux*|s390*-*tpf*)
6889 LD="${LD-ld} -m elf64_s390"
6890 ;;
6891 sparc*-*linux*)
6892 LD="${LD-ld} -m elf64_sparc"
6893 ;;
6894 esac
6895 ;;
6896 esac
6897 fi
6898 rm -rf conftest*
6899 ;;
6900
6901*-*-sco3.2v5*)
6902 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6903 SAVE_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS -belf"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6906$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6907if ${lt_cv_cc_needs_belf+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909else
6910 ac_ext=c
6911ac_cpp='$CPP $CPPFLAGS'
6912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917/* end confdefs.h. */
6918
6919int
6920main ()
6921{
6922
6923 ;
6924 return 0;
6925}
6926_ACEOF
6927if ac_fn_c_try_link "$LINENO"; then :
6928 lt_cv_cc_needs_belf=yes
6929else
6930 lt_cv_cc_needs_belf=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 ac_ext=c
6935ac_cpp='$CPP $CPPFLAGS'
6936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6942$as_echo "$lt_cv_cc_needs_belf" >&6; }
6943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6945 CFLAGS="$SAVE_CFLAGS"
6946 fi
6947 ;;
6948*-*solaris*)
6949 # Find out which ABI we are using.
6950 echo 'int i;' > conftest.$ac_ext
6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6952 (eval $ac_compile) 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }; then
6956 case `/usr/bin/file conftest.o` in
6957 *64-bit*)
6958 case $lt_cv_prog_gnu_ld in
6959 yes*)
6960 case $host in
6961 i?86-*-solaris*)
6962 LD="${LD-ld} -m elf_x86_64"
6963 ;;
6964 sparc*-*-solaris*)
6965 LD="${LD-ld} -m elf64_sparc"
6966 ;;
6967 esac
6968 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6969 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6970 LD="${LD-ld}_sol2"
6971 fi
6972 ;;
6973 *)
6974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6975 LD="${LD-ld} -64"
6976 fi
6977 ;;
6978 esac
6979 ;;
6980 esac
6981 fi
6982 rm -rf conftest*
6983 ;;
6984esac
6985
6986need_locks="$enable_libtool_lock"
6987
6988if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6990set dummy ${ac_tool_prefix}mt; ac_word=$2
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
6993if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995else
6996 if test -n "$MANIFEST_TOOL"; then
6997 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011 done
7012IFS=$as_save_IFS
7013
7014fi
7015fi
7016MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7017if test -n "$MANIFEST_TOOL"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7019$as_echo "$MANIFEST_TOOL" >&6; }
7020else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023fi
7024
7025
7026fi
7027if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7028 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7029 # Extract the first word of "mt", so it can be a program name with args.
7030set dummy mt; ac_word=$2
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035else
7036 if test -n "$ac_ct_MANIFEST_TOOL"; then
7037 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050done
7051 done
7052IFS=$as_save_IFS
7053
7054fi
7055fi
7056ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7057if test -n "$ac_ct_MANIFEST_TOOL"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7059$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7060else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
7063fi
7064
7065 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7066 MANIFEST_TOOL=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069yes:)
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072ac_tool_warned=yes ;;
7073esac
7074 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7075 fi
7076else
7077 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7078fi
7079
7080test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7082$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7083if ${lt_cv_path_mainfest_tool+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085else
7086 lt_cv_path_mainfest_tool=no
7087 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7088 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7089 cat conftest.err >&5
7090 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7091 lt_cv_path_mainfest_tool=yes
7092 fi
7093 rm -f conftest*
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7096$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7097if test "x$lt_cv_path_mainfest_tool" != xyes; then
7098 MANIFEST_TOOL=:
7099fi
7100
7101
7102
7103
7104
7105
7106 case $host_os in
7107 rhapsody* | darwin*)
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7110set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if ${ac_cv_prog_DSYMUTIL+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115else
7116 if test -n "$DSYMUTIL"; then
7117 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131 done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136DSYMUTIL=$ac_cv_prog_DSYMUTIL
7137if test -n "$DSYMUTIL"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7139$as_echo "$DSYMUTIL" >&6; }
7140else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146fi
7147if test -z "$ac_cv_prog_DSYMUTIL"; then
7148 ac_ct_DSYMUTIL=$DSYMUTIL
7149 # Extract the first word of "dsymutil", so it can be a program name with args.
7150set dummy dsymutil; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155else
7156 if test -n "$ac_ct_DSYMUTIL"; then
7157 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171 done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7177if test -n "$ac_ct_DSYMUTIL"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7179$as_echo "$ac_ct_DSYMUTIL" >&6; }
7180else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185 if test "x$ac_ct_DSYMUTIL" = x; then
7186 DSYMUTIL=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189yes:)
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192ac_tool_warned=yes ;;
7193esac
7194 DSYMUTIL=$ac_ct_DSYMUTIL
7195 fi
7196else
7197 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7198fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7202set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if ${ac_cv_prog_NMEDIT+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207else
7208 if test -n "$NMEDIT"; then
7209 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222done
7223 done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228NMEDIT=$ac_cv_prog_NMEDIT
7229if test -n "$NMEDIT"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7231$as_echo "$NMEDIT" >&6; }
7232else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237
7238fi
7239if test -z "$ac_cv_prog_NMEDIT"; then
7240 ac_ct_NMEDIT=$NMEDIT
7241 # Extract the first word of "nmedit", so it can be a program name with args.
7242set dummy nmedit; ac_word=$2
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
7245if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247else
7248 if test -n "$ac_ct_NMEDIT"; then
7249 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262done
7263 done
7264IFS=$as_save_IFS
7265
7266fi
7267fi
7268ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7269if test -n "$ac_ct_NMEDIT"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7271$as_echo "$ac_ct_NMEDIT" >&6; }
7272else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7275fi
7276
7277 if test "x$ac_ct_NMEDIT" = x; then
7278 NMEDIT=":"
7279 else
7280 case $cross_compiling:$ac_tool_warned in
7281yes:)
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284ac_tool_warned=yes ;;
7285esac
7286 NMEDIT=$ac_ct_NMEDIT
7287 fi
7288else
7289 NMEDIT="$ac_cv_prog_NMEDIT"
7290fi
7291
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7294set dummy ${ac_tool_prefix}lipo; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if ${ac_cv_prog_LIPO+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299else
7300 if test -n "$LIPO"; then
7301 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314done
7315 done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320LIPO=$ac_cv_prog_LIPO
7321if test -n "$LIPO"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7323$as_echo "$LIPO" >&6; }
7324else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329
7330fi
7331if test -z "$ac_cv_prog_LIPO"; then
7332 ac_ct_LIPO=$LIPO
7333 # Extract the first word of "lipo", so it can be a program name with args.
7334set dummy lipo; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339else
7340 if test -n "$ac_ct_LIPO"; then
7341 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_LIPO="lipo"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355 done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7361if test -n "$ac_ct_LIPO"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7363$as_echo "$ac_ct_LIPO" >&6; }
7364else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369 if test "x$ac_ct_LIPO" = x; then
7370 LIPO=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373yes:)
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376ac_tool_warned=yes ;;
7377esac
7378 LIPO=$ac_ct_LIPO
7379 fi
7380else
7381 LIPO="$ac_cv_prog_LIPO"
7382fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}otool; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if ${ac_cv_prog_OTOOL+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391else
7392 if test -n "$OTOOL"; then
7393 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407 done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412OTOOL=$ac_cv_prog_OTOOL
7413if test -n "$OTOOL"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7415$as_echo "$OTOOL" >&6; }
7416else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422fi
7423if test -z "$ac_cv_prog_OTOOL"; then
7424 ac_ct_OTOOL=$OTOOL
7425 # Extract the first word of "otool", so it can be a program name with args.
7426set dummy otool; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431else
7432 if test -n "$ac_ct_OTOOL"; then
7433 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_ac_ct_OTOOL="otool"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447 done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7453if test -n "$ac_ct_OTOOL"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7455$as_echo "$ac_ct_OTOOL" >&6; }
7456else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461 if test "x$ac_ct_OTOOL" = x; then
7462 OTOOL=":"
7463 else
7464 case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470 OTOOL=$ac_ct_OTOOL
7471 fi
7472else
7473 OTOOL="$ac_cv_prog_OTOOL"
7474fi
7475
7476 if test -n "$ac_tool_prefix"; then
7477 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7478set dummy ${ac_tool_prefix}otool64; ac_word=$2
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480$as_echo_n "checking for $ac_word... " >&6; }
7481if ${ac_cv_prog_OTOOL64+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483else
7484 if test -n "$OTOOL64"; then
7485 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7486else
7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498done
7499 done
7500IFS=$as_save_IFS
7501
7502fi
7503fi
7504OTOOL64=$ac_cv_prog_OTOOL64
7505if test -n "$OTOOL64"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7507$as_echo "$OTOOL64" >&6; }
7508else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510$as_echo "no" >&6; }
7511fi
7512
7513
7514fi
7515if test -z "$ac_cv_prog_OTOOL64"; then
7516 ac_ct_OTOOL64=$OTOOL64
7517 # Extract the first word of "otool64", so it can be a program name with args.
7518set dummy otool64; ac_word=$2
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523else
7524 if test -n "$ac_ct_OTOOL64"; then
7525 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_ac_ct_OTOOL64="otool64"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7537 fi
7538done
7539 done
7540IFS=$as_save_IFS
7541
7542fi
7543fi
7544ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7545if test -n "$ac_ct_OTOOL64"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7547$as_echo "$ac_ct_OTOOL64" >&6; }
7548else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
7551fi
7552
7553 if test "x$ac_ct_OTOOL64" = x; then
7554 OTOOL64=":"
7555 else
7556 case $cross_compiling:$ac_tool_warned in
7557yes:)
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560ac_tool_warned=yes ;;
7561esac
7562 OTOOL64=$ac_ct_OTOOL64
7563 fi
7564else
7565 OTOOL64="$ac_cv_prog_OTOOL64"
7566fi
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7595$as_echo_n "checking for -single_module linker flag... " >&6; }
7596if ${lt_cv_apple_cc_single_mod+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598else
7599 lt_cv_apple_cc_single_mod=no
7600 if test -z "${LT_MULTI_MODULE}"; then
7601 # By default we will add the -single_module flag. You can override
7602 # by either setting the environment variable LT_MULTI_MODULE
7603 # non-empty at configure time, or by adding -multi_module to the
7604 # link flags.
7605 rm -rf libconftest.dylib*
7606 echo "int foo(void){return 1;}" > conftest.c
7607 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7608-dynamiclib -Wl,-single_module conftest.c" >&5
7609 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7610 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7611 _lt_result=$?
7612 # If there is a non-empty error log, and "single_module"
7613 # appears in it, assume the flag caused a linker warning
7614 if test -s conftest.err && $GREP single_module conftest.err; then
7615 cat conftest.err >&5
7616 # Otherwise, if the output was created with a 0 exit code from
7617 # the compiler, it worked.
7618 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7619 lt_cv_apple_cc_single_mod=yes
7620 else
7621 cat conftest.err >&5
7622 fi
7623 rm -rf libconftest.dylib*
7624 rm -f conftest.*
7625 fi
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7628$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7631$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7632if ${lt_cv_ld_exported_symbols_list+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634else
7635 lt_cv_ld_exported_symbols_list=no
7636 save_LDFLAGS=$LDFLAGS
7637 echo "_main" > conftest.sym
7638 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h. */
7641
7642int
7643main ()
7644{
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650if ac_fn_c_try_link "$LINENO"; then :
7651 lt_cv_ld_exported_symbols_list=yes
7652else
7653 lt_cv_ld_exported_symbols_list=no
7654fi
7655rm -f core conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
7657 LDFLAGS="$save_LDFLAGS"
7658
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7661$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7664$as_echo_n "checking for -force_load linker flag... " >&6; }
7665if ${lt_cv_ld_force_load+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667else
7668 lt_cv_ld_force_load=no
7669 cat > conftest.c << _LT_EOF
7670int forced_loaded() { return 2;}
7671_LT_EOF
7672 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7673 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7674 echo "$AR cru libconftest.a conftest.o" >&5
7675 $AR cru libconftest.a conftest.o 2>&5
7676 echo "$RANLIB libconftest.a" >&5
7677 $RANLIB libconftest.a 2>&5
7678 cat > conftest.c << _LT_EOF
7679int main() { return 0;}
7680_LT_EOF
7681 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7682 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7683 _lt_result=$?
7684 if test -s conftest.err && $GREP force_load conftest.err; then
7685 cat conftest.err >&5
7686 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7687 lt_cv_ld_force_load=yes
7688 else
7689 cat conftest.err >&5
7690 fi
7691 rm -f conftest.err libconftest.a conftest conftest.c
7692 rm -rf conftest.dSYM
7693
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7696$as_echo "$lt_cv_ld_force_load" >&6; }
7697 case $host_os in
7698 rhapsody* | darwin1.[012])
7699 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7700 darwin1.*)
7701 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7702 darwin*) # darwin 5.x on
7703 # if running on 10.5 or later, the deployment target defaults
7704 # to the OS version, if on x86, and 10.4, the deployment
7705 # target defaults to 10.4. Don't you love it?
7706 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7707 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7708 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7709 10.[012]*)
7710 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7711 10.*)
7712 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7713 esac
7714 ;;
7715 esac
7716 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7717 _lt_dar_single_mod='$single_module'
7718 fi
7719 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7720 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7721 else
7722 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7723 fi
7724 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7725 _lt_dsymutil='~$DSYMUTIL $lib || :'
7726 else
7727 _lt_dsymutil=
7728 fi
7729 ;;
7730 esac
7731
7732for ac_header in dlfcn.h
7733do :
7734 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7735"
7736if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7737 cat >>confdefs.h <<_ACEOF
7738#define HAVE_DLFCN_H 1
7739_ACEOF
7740
7741fi
7742
7743done
7744
7745
7746
7747
7748
7749# Set options
7750
7751
7752
7753 enable_dlopen=no
7754
7755
7756 enable_win32_dll=no
7757
7758
7759 # Check whether --enable-shared was given.
7760if test "${enable_shared+set}" = set; then :
7761 enableval=$enable_shared; p=${PACKAGE-default}
7762 case $enableval in
7763 yes) enable_shared=yes ;;
7764 no) enable_shared=no ;;
7765 *)
7766 enable_shared=no
7767 # Look at the argument we got. We use all the common list separators.
7768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7769 for pkg in $enableval; do
7770 IFS="$lt_save_ifs"
7771 if test "X$pkg" = "X$p"; then
7772 enable_shared=yes
7773 fi
7774 done
7775 IFS="$lt_save_ifs"
7776 ;;
7777 esac
7778else
7779 enable_shared=yes
7780fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 # Check whether --enable-static was given.
7791if test "${enable_static+set}" = set; then :
7792 enableval=$enable_static; p=${PACKAGE-default}
7793 case $enableval in
7794 yes) enable_static=yes ;;
7795 no) enable_static=no ;;
7796 *)
7797 enable_static=no
7798 # Look at the argument we got. We use all the common list separators.
7799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7800 for pkg in $enableval; do
7801 IFS="$lt_save_ifs"
7802 if test "X$pkg" = "X$p"; then
7803 enable_static=yes
7804 fi
7805 done
7806 IFS="$lt_save_ifs"
7807 ;;
7808 esac
7809else
7810 enable_static=yes
7811fi
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822# Check whether --with-pic was given.
7823if test "${with_pic+set}" = set; then :
7824 withval=$with_pic; lt_p=${PACKAGE-default}
7825 case $withval in
7826 yes|no) pic_mode=$withval ;;
7827 *)
7828 pic_mode=default
7829 # Look at the argument we got. We use all the common list separators.
7830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7831 for lt_pkg in $withval; do
7832 IFS="$lt_save_ifs"
7833 if test "X$lt_pkg" = "X$lt_p"; then
7834 pic_mode=yes
7835 fi
7836 done
7837 IFS="$lt_save_ifs"
7838 ;;
7839 esac
7840else
7841 pic_mode=default
7842fi
7843
7844
7845test -z "$pic_mode" && pic_mode=default
7846
7847
7848
7849
7850
7851
7852
7853 # Check whether --enable-fast-install was given.
7854if test "${enable_fast_install+set}" = set; then :
7855 enableval=$enable_fast_install; p=${PACKAGE-default}
7856 case $enableval in
7857 yes) enable_fast_install=yes ;;
7858 no) enable_fast_install=no ;;
7859 *)
7860 enable_fast_install=no
7861 # Look at the argument we got. We use all the common list separators.
7862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7863 for pkg in $enableval; do
7864 IFS="$lt_save_ifs"
7865 if test "X$pkg" = "X$p"; then
7866 enable_fast_install=yes
7867 fi
7868 done
7869 IFS="$lt_save_ifs"
7870 ;;
7871 esac
7872else
7873 enable_fast_install=yes
7874fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886# This can be used to rebuild libtool when needed
7887LIBTOOL_DEPS="$ltmain"
7888
7889# Always use our own libtool.
7890LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921test -z "$LN_S" && LN_S="ln -s"
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936if test -n "${ZSH_VERSION+set}" ; then
7937 setopt NO_GLOB_SUBST
7938fi
7939
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7941$as_echo_n "checking for objdir... " >&6; }
7942if ${lt_cv_objdir+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944else
7945 rm -f .libs 2>/dev/null
7946mkdir .libs 2>/dev/null
7947if test -d .libs; then
7948 lt_cv_objdir=.libs
7949else
7950 # MS-DOS does not allow filenames that begin with a dot.
7951 lt_cv_objdir=_libs
7952fi
7953rmdir .libs 2>/dev/null
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7956$as_echo "$lt_cv_objdir" >&6; }
7957objdir=$lt_cv_objdir
7958
7959
7960
7961
7962
7963cat >>confdefs.h <<_ACEOF
7964#define LT_OBJDIR "$lt_cv_objdir/"
7965_ACEOF
7966
7967
7968
7969
7970case $host_os in
7971aix3*)
7972 # AIX sometimes has problems with the GCC collect2 program. For some
7973 # reason, if we set the COLLECT_NAMES environment variable, the problems
7974 # vanish in a puff of smoke.
7975 if test "X${COLLECT_NAMES+set}" != Xset; then
7976 COLLECT_NAMES=
7977 export COLLECT_NAMES
7978 fi
7979 ;;
7980esac
7981
7982# Global variables:
7983ofile=libtool
7984can_build_shared=yes
7985
7986# All known linkers require a `.a' archive for static linking (except MSVC,
7987# which needs '.lib').
7988libext=a
7989
7990with_gnu_ld="$lt_cv_prog_gnu_ld"
7991
7992old_CC="$CC"
7993old_CFLAGS="$CFLAGS"
7994
7995# Set sane defaults for various variables
7996test -z "$CC" && CC=cc
7997test -z "$LTCC" && LTCC=$CC
7998test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7999test -z "$LD" && LD=ld
8000test -z "$ac_objext" && ac_objext=o
8001
8002for cc_temp in $compiler""; do
8003 case $cc_temp in
8004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8006 \-*) ;;
8007 *) break;;
8008 esac
8009done
8010cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8011
8012
8013# Only perform the check for file, if the check method requires it
8014test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015case $deplibs_check_method in
8016file_magic*)
8017 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8019$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8020if ${lt_cv_path_MAGIC_CMD+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022else
8023 case $MAGIC_CMD in
8024[\\/*] | ?:[\\/]*)
8025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8026 ;;
8027*)
8028 lt_save_MAGIC_CMD="$MAGIC_CMD"
8029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8031 for ac_dir in $ac_dummy; do
8032 IFS="$lt_save_ifs"
8033 test -z "$ac_dir" && ac_dir=.
8034 if test -f $ac_dir/${ac_tool_prefix}file; then
8035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8036 if test -n "$file_magic_test_file"; then
8037 case $deplibs_check_method in
8038 "file_magic "*)
8039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8042 $EGREP "$file_magic_regex" > /dev/null; then
8043 :
8044 else
8045 cat <<_LT_EOF 1>&2
8046
8047*** Warning: the command libtool uses to detect shared libraries,
8048*** $file_magic_cmd, produces output that libtool cannot recognize.
8049*** The result is that libtool may fail to recognize shared libraries
8050*** as such. This will affect the creation of libtool libraries that
8051*** depend on shared libraries, but programs linked with such libtool
8052*** libraries will work regardless of this problem. Nevertheless, you
8053*** may want to report the problem to your system manager and/or to
8054*** bug-libtool@gnu.org
8055
8056_LT_EOF
8057 fi ;;
8058 esac
8059 fi
8060 break
8061 fi
8062 done
8063 IFS="$lt_save_ifs"
8064 MAGIC_CMD="$lt_save_MAGIC_CMD"
8065 ;;
8066esac
8067fi
8068
8069MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8070if test -n "$MAGIC_CMD"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8072$as_echo "$MAGIC_CMD" >&6; }
8073else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
8076fi
8077
8078
8079
8080
8081
8082if test -z "$lt_cv_path_MAGIC_CMD"; then
8083 if test -n "$ac_tool_prefix"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8085$as_echo_n "checking for file... " >&6; }
8086if ${lt_cv_path_MAGIC_CMD+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088else
8089 case $MAGIC_CMD in
8090[\\/*] | ?:[\\/]*)
8091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8092 ;;
8093*)
8094 lt_save_MAGIC_CMD="$MAGIC_CMD"
8095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8097 for ac_dir in $ac_dummy; do
8098 IFS="$lt_save_ifs"
8099 test -z "$ac_dir" && ac_dir=.
8100 if test -f $ac_dir/file; then
8101 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8102 if test -n "$file_magic_test_file"; then
8103 case $deplibs_check_method in
8104 "file_magic "*)
8105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8108 $EGREP "$file_magic_regex" > /dev/null; then
8109 :
8110 else
8111 cat <<_LT_EOF 1>&2
8112
8113*** Warning: the command libtool uses to detect shared libraries,
8114*** $file_magic_cmd, produces output that libtool cannot recognize.
8115*** The result is that libtool may fail to recognize shared libraries
8116*** as such. This will affect the creation of libtool libraries that
8117*** depend on shared libraries, but programs linked with such libtool
8118*** libraries will work regardless of this problem. Nevertheless, you
8119*** may want to report the problem to your system manager and/or to
8120*** bug-libtool@gnu.org
8121
8122_LT_EOF
8123 fi ;;
8124 esac
8125 fi
8126 break
8127 fi
8128 done
8129 IFS="$lt_save_ifs"
8130 MAGIC_CMD="$lt_save_MAGIC_CMD"
8131 ;;
8132esac
8133fi
8134
8135MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8136if test -n "$MAGIC_CMD"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8138$as_echo "$MAGIC_CMD" >&6; }
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143
8144
8145 else
8146 MAGIC_CMD=:
8147 fi
8148fi
8149
8150 fi
8151 ;;
8152esac
8153
8154# Use C for the default configuration in the libtool script
8155
8156lt_save_CC="$CC"
8157ac_ext=c
8158ac_cpp='$CPP $CPPFLAGS'
8159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163
8164# Source file extension for C test sources.
8165ac_ext=c
8166
8167# Object file extension for compiled C test sources.
8168objext=o
8169objext=$objext
8170
8171# Code to be used in simple compile tests
8172lt_simple_compile_test_code="int some_variable = 0;"
8173
8174# Code to be used in simple link tests
8175lt_simple_link_test_code='int main(){return(0);}'
8176
8177
8178
8179
8180
8181
8182
8183# If no C compiler was specified, use CC.
8184LTCC=${LTCC-"$CC"}
8185
8186# If no C compiler flags were specified, use CFLAGS.
8187LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8188
8189# Allow CC to be a program name with arguments.
8190compiler=$CC
8191
8192# Save the default compiler, since it gets overwritten when the other
8193# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8194compiler_DEFAULT=$CC
8195
8196# save warnings/boilerplate of simple test code
8197ac_outfile=conftest.$ac_objext
8198echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8200_lt_compiler_boilerplate=`cat conftest.err`
8201$RM conftest*
8202
8203ac_outfile=conftest.$ac_objext
8204echo "$lt_simple_link_test_code" >conftest.$ac_ext
8205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8206_lt_linker_boilerplate=`cat conftest.err`
8207$RM -r conftest*
8208
8209
8210## CAVEAT EMPTOR:
8211## There is no encapsulation within the following macros, do not change
8212## the running order or otherwise move them around unless you know exactly
8213## what you are doing...
8214if test -n "$compiler"; then
8215
8216lt_prog_compiler_no_builtin_flag=
8217
8218if test "$GCC" = yes; then
8219 case $cc_basename in
8220 nvcc*)
8221 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8222 *)
8223 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8224 esac
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8227$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8228if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230else
8231 lt_cv_prog_compiler_rtti_exceptions=no
8232 ac_outfile=conftest.$ac_objext
8233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8234 lt_compiler_flag="-fno-rtti -fno-exceptions"
8235 # Insert the option either (1) after the last *FLAGS variable, or
8236 # (2) before a word containing "conftest.", or (3) at the end.
8237 # Note that $ac_compile itself does not contain backslashes and begins
8238 # with a dollar sign (not a hyphen), so the echo should work correctly.
8239 # The option is referenced via a variable to avoid confusing sed.
8240 lt_compile=`echo "$ac_compile" | $SED \
8241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8243 -e 's:$: $lt_compiler_flag:'`
8244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8245 (eval "$lt_compile" 2>conftest.err)
8246 ac_status=$?
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 if (exit $ac_status) && test -s "$ac_outfile"; then
8250 # The compiler can only warn and ignore the option if not recognized
8251 # So say no if there are warnings other than the usual output.
8252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8255 lt_cv_prog_compiler_rtti_exceptions=yes
8256 fi
8257 fi
8258 $RM conftest*
8259
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8262$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8263
8264if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8265 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8266else
8267 :
8268fi
8269
8270fi
8271
8272
8273
8274
8275
8276
8277 lt_prog_compiler_wl=
8278lt_prog_compiler_pic=
8279lt_prog_compiler_static=
8280
8281
8282 if test "$GCC" = yes; then
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_static='-static'
8285
8286 case $host_os in
8287 aix*)
8288 # All AIX code is PIC.
8289 if test "$host_cpu" = ia64; then
8290 # AIX 5 now supports IA64 processor
8291 lt_prog_compiler_static='-Bstatic'
8292 fi
8293 ;;
8294
8295 amigaos*)
8296 case $host_cpu in
8297 powerpc)
8298 # see comment about AmigaOS4 .so support
8299 lt_prog_compiler_pic='-fPIC'
8300 ;;
8301 m68k)
8302 # FIXME: we need at least 68020 code to build shared libraries, but
8303 # adding the `-m68020' flag to GCC prevents building anything better,
8304 # like `-m68040'.
8305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8306 ;;
8307 esac
8308 ;;
8309
8310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8311 # PIC is the default for these OSes.
8312 ;;
8313
8314 mingw* | cygwin* | pw32* | os2* | cegcc*)
8315 # This hack is so that the source file can tell whether it is being
8316 # built for inclusion in a dll (and should export symbols for example).
8317 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8318 # (--disable-auto-import) libraries
8319 lt_prog_compiler_pic='-DDLL_EXPORT'
8320 ;;
8321
8322 darwin* | rhapsody*)
8323 # PIC is the default on this platform
8324 # Common symbols not allowed in MH_DYLIB files
8325 lt_prog_compiler_pic='-fno-common'
8326 ;;
8327
8328 haiku*)
8329 # PIC is the default for Haiku.
8330 # The "-static" flag exists, but is broken.
8331 lt_prog_compiler_static=
8332 ;;
8333
8334 hpux*)
8335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8337 # sets the default TLS model and affects inlining.
8338 case $host_cpu in
8339 hppa*64*)
8340 # +Z the default
8341 ;;
8342 *)
8343 lt_prog_compiler_pic='-fPIC'
8344 ;;
8345 esac
8346 ;;
8347
8348 interix[3-9]*)
8349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8350 # Instead, we relocate shared libraries at runtime.
8351 ;;
8352
8353 msdosdjgpp*)
8354 # Just because we use GCC doesn't mean we suddenly get shared libraries
8355 # on systems that don't support them.
8356 lt_prog_compiler_can_build_shared=no
8357 enable_shared=no
8358 ;;
8359
8360 *nto* | *qnx*)
8361 # QNX uses GNU C++, but need to define -shared option too, otherwise
8362 # it will coredump.
8363 lt_prog_compiler_pic='-fPIC -shared'
8364 ;;
8365
8366 sysv4*MP*)
8367 if test -d /usr/nec; then
8368 lt_prog_compiler_pic=-Kconform_pic
8369 fi
8370 ;;
8371
8372 *)
8373 lt_prog_compiler_pic='-fPIC'
8374 ;;
8375 esac
8376
8377 case $cc_basename in
8378 nvcc*) # Cuda Compiler Driver 2.2
8379 lt_prog_compiler_wl='-Xlinker '
8380 if test -n "$lt_prog_compiler_pic"; then
8381 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8382 fi
8383 ;;
8384 esac
8385 else
8386 # PORTME Check for flag to pass linker flags through the system compiler.
8387 case $host_os in
8388 aix*)
8389 lt_prog_compiler_wl='-Wl,'
8390 if test "$host_cpu" = ia64; then
8391 # AIX 5 now supports IA64 processor
8392 lt_prog_compiler_static='-Bstatic'
8393 else
8394 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8395 fi
8396 ;;
8397
8398 mingw* | cygwin* | pw32* | os2* | cegcc*)
8399 # This hack is so that the source file can tell whether it is being
8400 # built for inclusion in a dll (and should export symbols for example).
8401 lt_prog_compiler_pic='-DDLL_EXPORT'
8402 ;;
8403
8404 hpux9* | hpux10* | hpux11*)
8405 lt_prog_compiler_wl='-Wl,'
8406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8407 # not for PA HP-UX.
8408 case $host_cpu in
8409 hppa*64*|ia64*)
8410 # +Z the default
8411 ;;
8412 *)
8413 lt_prog_compiler_pic='+Z'
8414 ;;
8415 esac
8416 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8417 lt_prog_compiler_static='${wl}-a ${wl}archive'
8418 ;;
8419
8420 irix5* | irix6* | nonstopux*)
8421 lt_prog_compiler_wl='-Wl,'
8422 # PIC (with -KPIC) is the default.
8423 lt_prog_compiler_static='-non_shared'
8424 ;;
8425
8426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8427 case $cc_basename in
8428 # old Intel for x86_64 which still supported -KPIC.
8429 ecc*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-static'
8433 ;;
8434 # icc used to be incompatible with GCC.
8435 # ICC 10 doesn't accept -KPIC any more.
8436 icc* | ifort*)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-fPIC'
8439 lt_prog_compiler_static='-static'
8440 ;;
8441 # Lahey Fortran 8.1.
8442 lf95*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='--shared'
8445 lt_prog_compiler_static='--static'
8446 ;;
8447 nagfor*)
8448 # NAG Fortran compiler
8449 lt_prog_compiler_wl='-Wl,-Wl,,'
8450 lt_prog_compiler_pic='-PIC'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8454 # Portland Group compilers (*not* the Pentium gcc compiler,
8455 # which looks to be a dead project)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-fpic'
8458 lt_prog_compiler_static='-Bstatic'
8459 ;;
8460 ccc*)
8461 lt_prog_compiler_wl='-Wl,'
8462 # All Alpha code is PIC.
8463 lt_prog_compiler_static='-non_shared'
8464 ;;
8465 xl* | bgxl* | bgf* | mpixl*)
8466 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-qpic'
8469 lt_prog_compiler_static='-qstaticlink'
8470 ;;
8471 *)
8472 case `$CC -V 2>&1 | sed 5q` in
8473 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8474 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 lt_prog_compiler_wl=''
8478 ;;
8479 *Sun\ F* | *Sun*Fortran*)
8480 lt_prog_compiler_pic='-KPIC'
8481 lt_prog_compiler_static='-Bstatic'
8482 lt_prog_compiler_wl='-Qoption ld '
8483 ;;
8484 *Sun\ C*)
8485 # Sun C 5.9
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 lt_prog_compiler_wl='-Wl,'
8489 ;;
8490 *Intel*\ [CF]*Compiler*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-fPIC'
8493 lt_prog_compiler_static='-static'
8494 ;;
8495 *Portland\ Group*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_pic='-fpic'
8498 lt_prog_compiler_static='-Bstatic'
8499 ;;
8500 esac
8501 ;;
8502 esac
8503 ;;
8504
8505 newsos6)
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-Bstatic'
8508 ;;
8509
8510 *nto* | *qnx*)
8511 # QNX uses GNU C++, but need to define -shared option too, otherwise
8512 # it will coredump.
8513 lt_prog_compiler_pic='-fPIC -shared'
8514 ;;
8515
8516 osf3* | osf4* | osf5*)
8517 lt_prog_compiler_wl='-Wl,'
8518 # All OSF/1 code is PIC.
8519 lt_prog_compiler_static='-non_shared'
8520 ;;
8521
8522 rdos*)
8523 lt_prog_compiler_static='-non_shared'
8524 ;;
8525
8526 solaris*)
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8529 case $cc_basename in
8530 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8531 lt_prog_compiler_wl='-Qoption ld ';;
8532 *)
8533 lt_prog_compiler_wl='-Wl,';;
8534 esac
8535 ;;
8536
8537 sunos4*)
8538 lt_prog_compiler_wl='-Qoption ld '
8539 lt_prog_compiler_pic='-PIC'
8540 lt_prog_compiler_static='-Bstatic'
8541 ;;
8542
8543 sysv4 | sysv4.2uw2* | sysv4.3*)
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_pic='-KPIC'
8546 lt_prog_compiler_static='-Bstatic'
8547 ;;
8548
8549 sysv4*MP*)
8550 if test -d /usr/nec ;then
8551 lt_prog_compiler_pic='-Kconform_pic'
8552 lt_prog_compiler_static='-Bstatic'
8553 fi
8554 ;;
8555
8556 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-KPIC'
8559 lt_prog_compiler_static='-Bstatic'
8560 ;;
8561
8562 unicos*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_can_build_shared=no
8565 ;;
8566
8567 uts4*)
8568 lt_prog_compiler_pic='-pic'
8569 lt_prog_compiler_static='-Bstatic'
8570 ;;
8571
8572 *)
8573 lt_prog_compiler_can_build_shared=no
8574 ;;
8575 esac
8576 fi
8577
8578case $host_os in
8579 # For platforms which do not support PIC, -DPIC is meaningless:
8580 *djgpp*)
8581 lt_prog_compiler_pic=
8582 ;;
8583 *)
8584 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8585 ;;
8586esac
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8589$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8590if ${lt_cv_prog_compiler_pic+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592else
8593 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8596$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8597lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8598
8599#
8600# Check to make sure the PIC flag actually works.
8601#
8602if test -n "$lt_prog_compiler_pic"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8604$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8605if ${lt_cv_prog_compiler_pic_works+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607else
8608 lt_cv_prog_compiler_pic_works=no
8609 ac_outfile=conftest.$ac_objext
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8612 # Insert the option either (1) after the last *FLAGS variable, or
8613 # (2) before a word containing "conftest.", or (3) at the end.
8614 # Note that $ac_compile itself does not contain backslashes and begins
8615 # with a dollar sign (not a hyphen), so the echo should work correctly.
8616 # The option is referenced via a variable to avoid confusing sed.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>conftest.err)
8623 ac_status=$?
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s "$ac_outfile"; then
8627 # The compiler can only warn and ignore the option if not recognized
8628 # So say no if there are warnings other than the usual output.
8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8632 lt_cv_prog_compiler_pic_works=yes
8633 fi
8634 fi
8635 $RM conftest*
8636
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8639$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8640
8641if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8642 case $lt_prog_compiler_pic in
8643 "" | " "*) ;;
8644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8645 esac
8646else
8647 lt_prog_compiler_pic=
8648 lt_prog_compiler_can_build_shared=no
8649fi
8650
8651fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663#
8664# Check to make sure the static flag actually works.
8665#
8666wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8668$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8669if ${lt_cv_prog_compiler_static_works+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 lt_cv_prog_compiler_static_works=no
8673 save_LDFLAGS="$LDFLAGS"
8674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8675 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8677 # The linker can only warn and ignore the option if not recognized
8678 # So say no if there are warnings
8679 if test -s conftest.err; then
8680 # Append any errors to the config.log.
8681 cat conftest.err 1>&5
8682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684 if diff conftest.exp conftest.er2 >/dev/null; then
8685 lt_cv_prog_compiler_static_works=yes
8686 fi
8687 else
8688 lt_cv_prog_compiler_static_works=yes
8689 fi
8690 fi
8691 $RM -r conftest*
8692 LDFLAGS="$save_LDFLAGS"
8693
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8696$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8697
8698if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8699 :
8700else
8701 lt_prog_compiler_static=
8702fi
8703
8704
8705
8706
8707
8708
8709
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8712if ${lt_cv_prog_compiler_c_o+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714else
8715 lt_cv_prog_compiler_c_o=no
8716 $RM -r conftest 2>/dev/null
8717 mkdir conftest
8718 cd conftest
8719 mkdir out
8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721
8722 lt_compiler_flag="-o out/conftest2.$ac_objext"
8723 # Insert the option either (1) after the last *FLAGS variable, or
8724 # (2) before a word containing "conftest.", or (3) at the end.
8725 # Note that $ac_compile itself does not contain backslashes and begins
8726 # with a dollar sign (not a hyphen), so the echo should work correctly.
8727 lt_compile=`echo "$ac_compile" | $SED \
8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730 -e 's:$: $lt_compiler_flag:'`
8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732 (eval "$lt_compile" 2>out/conftest.err)
8733 ac_status=$?
8734 cat out/conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737 then
8738 # The compiler can only warn and ignore the option if not recognized
8739 # So say no if there are warnings
8740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743 lt_cv_prog_compiler_c_o=yes
8744 fi
8745 fi
8746 chmod u+w . 2>&5
8747 $RM conftest*
8748 # SGI C++ compiler will create directory out/ii_files/ for
8749 # template instantiation
8750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8751 $RM out/* && rmdir out
8752 cd ..
8753 $RM -r conftest
8754 $RM conftest*
8755
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8758$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8759
8760
8761
8762
8763
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8766$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8767if ${lt_cv_prog_compiler_c_o+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769else
8770 lt_cv_prog_compiler_c_o=no
8771 $RM -r conftest 2>/dev/null
8772 mkdir conftest
8773 cd conftest
8774 mkdir out
8775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776
8777 lt_compiler_flag="-o out/conftest2.$ac_objext"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 lt_compile=`echo "$ac_compile" | $SED \
8783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785 -e 's:$: $lt_compiler_flag:'`
8786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787 (eval "$lt_compile" 2>out/conftest.err)
8788 ac_status=$?
8789 cat out/conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792 then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_c_o=yes
8799 fi
8800 fi
8801 chmod u+w . 2>&5
8802 $RM conftest*
8803 # SGI C++ compiler will create directory out/ii_files/ for
8804 # template instantiation
8805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8806 $RM out/* && rmdir out
8807 cd ..
8808 $RM -r conftest
8809 $RM conftest*
8810
8811fi
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8813$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814
8815
8816
8817
8818hard_links="nottested"
8819if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8820 # do not overwrite the value of need_locks provided by the user
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8822$as_echo_n "checking if we can lock with hard links... " >&6; }
8823 hard_links=yes
8824 $RM conftest*
8825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8826 touch conftest.a
8827 ln conftest.a conftest.b 2>&5 || hard_links=no
8828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8830$as_echo "$hard_links" >&6; }
8831 if test "$hard_links" = no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8833$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8834 need_locks=warn
8835 fi
8836else
8837 need_locks=no
8838fi
8839
8840
8841
8842
8843
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8846$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8847
8848 runpath_var=
8849 allow_undefined_flag=
8850 always_export_symbols=no
8851 archive_cmds=
8852 archive_expsym_cmds=
8853 compiler_needs_object=no
8854 enable_shared_with_static_runtimes=no
8855 export_dynamic_flag_spec=
8856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8857 hardcode_automatic=no
8858 hardcode_direct=no
8859 hardcode_direct_absolute=no
8860 hardcode_libdir_flag_spec=
8861 hardcode_libdir_separator=
8862 hardcode_minus_L=no
8863 hardcode_shlibpath_var=unsupported
8864 inherit_rpath=no
8865 link_all_deplibs=unknown
8866 module_cmds=
8867 module_expsym_cmds=
8868 old_archive_from_new_cmds=
8869 old_archive_from_expsyms_cmds=
8870 thread_safe_flag_spec=
8871 whole_archive_flag_spec=
8872 # include_expsyms should be a list of space-separated symbols to be *always*
8873 # included in the symbol list
8874 include_expsyms=
8875 # exclude_expsyms can be an extended regexp of symbols to exclude
8876 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8877 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8878 # as well as any symbol that contains `d'.
8879 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8880 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8881 # platforms (ab)use it in PIC code, but their linkers get confused if
8882 # the symbol is explicitly referenced. Since portable code cannot
8883 # rely on this symbol name, it's probably fine to never include it in
8884 # preloaded symbol tables.
8885 # Exclude shared library initialization/finalization symbols.
8886 extract_expsyms_cmds=
8887
8888 case $host_os in
8889 cygwin* | mingw* | pw32* | cegcc*)
8890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8891 # When not using gcc, we currently assume that we are using
8892 # Microsoft Visual C++.
8893 if test "$GCC" != yes; then
8894 with_gnu_ld=no
8895 fi
8896 ;;
8897 interix*)
8898 # we just hope/assume this is gcc and not c89 (= MSVC++)
8899 with_gnu_ld=yes
8900 ;;
8901 openbsd*)
8902 with_gnu_ld=no
8903 ;;
8904 linux* | k*bsd*-gnu | gnu*)
8905 link_all_deplibs=no
8906 ;;
8907 esac
8908
8909 ld_shlibs=yes
8910
8911 # On some targets, GNU ld is compatible enough with the native linker
8912 # that we're better off using the native interface for both.
8913 lt_use_gnu_ld_interface=no
8914 if test "$with_gnu_ld" = yes; then
8915 case $host_os in
8916 aix*)
8917 # The AIX port of GNU ld has always aspired to compatibility
8918 # with the native linker. However, as the warning in the GNU ld
8919 # block says, versions before 2.19.5* couldn't really create working
8920 # shared libraries, regardless of the interface used.
8921 case `$LD -v 2>&1` in
8922 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8923 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8924 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8925 *)
8926 lt_use_gnu_ld_interface=yes
8927 ;;
8928 esac
8929 ;;
8930 *)
8931 lt_use_gnu_ld_interface=yes
8932 ;;
8933 esac
8934 fi
8935
8936 if test "$lt_use_gnu_ld_interface" = yes; then
8937 # If archive_cmds runs LD, not CC, wlarc should be empty
8938 wlarc='${wl}'
8939
8940 # Set some defaults for GNU ld with shared library support. These
8941 # are reset later if shared libraries are not supported. Putting them
8942 # here allows them to be overridden if necessary.
8943 runpath_var=LD_RUN_PATH
8944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945 export_dynamic_flag_spec='${wl}--export-dynamic'
8946 # ancient GNU ld didn't support --whole-archive et. al.
8947 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8948 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8949 else
8950 whole_archive_flag_spec=
8951 fi
8952 supports_anon_versioning=no
8953 case `$LD -v 2>&1` in
8954 *GNU\ gold*) supports_anon_versioning=yes ;;
8955 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8956 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8957 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8958 *\ 2.11.*) ;; # other 2.11 versions
8959 *) supports_anon_versioning=yes ;;
8960 esac
8961
8962 # See if GNU ld supports shared libraries.
8963 case $host_os in
8964 aix[3-9]*)
8965 # On AIX/PPC, the GNU linker is very broken
8966 if test "$host_cpu" != ia64; then
8967 ld_shlibs=no
8968 cat <<_LT_EOF 1>&2
8969
8970*** Warning: the GNU linker, at least up to release 2.19, is reported
8971*** to be unable to reliably create shared libraries on AIX.
8972*** Therefore, libtool is disabling shared libraries support. If you
8973*** really care for shared libraries, you may want to install binutils
8974*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8975*** You will then need to restart the configuration process.
8976
8977_LT_EOF
8978 fi
8979 ;;
8980
8981 amigaos*)
8982 case $host_cpu in
8983 powerpc)
8984 # see comment about AmigaOS4 .so support
8985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 archive_expsym_cmds=''
8987 ;;
8988 m68k)
8989 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)'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_minus_L=yes
8992 ;;
8993 esac
8994 ;;
8995
8996 beos*)
8997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8998 allow_undefined_flag=unsupported
8999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9000 # support --undefined. This deserves some investigation. FIXME
9001 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 cygwin* | mingw* | pw32* | cegcc*)
9008 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9009 # as there is no search path for DLLs.
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 export_dynamic_flag_spec='${wl}--export-all-symbols'
9012 allow_undefined_flag=unsupported
9013 always_export_symbols=no
9014 enable_shared_with_static_runtimes=yes
9015 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'
9016 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9017
9018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9020 # If the export-symbols file already is a .def file (1st line
9021 # is EXPORTS), use it as is; otherwise, prepend...
9022 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9023 cp $export_symbols $output_objdir/$soname.def;
9024 else
9025 echo EXPORTS > $output_objdir/$soname.def;
9026 cat $export_symbols >> $output_objdir/$soname.def;
9027 fi~
9028 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9029 else
9030 ld_shlibs=no
9031 fi
9032 ;;
9033
9034 haiku*)
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 link_all_deplibs=yes
9037 ;;
9038
9039 interix[3-9]*)
9040 hardcode_direct=no
9041 hardcode_shlibpath_var=no
9042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9043 export_dynamic_flag_spec='${wl}-E'
9044 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9045 # Instead, shared libraries are loaded at an image base (0x10000000 by
9046 # default) and relocated if they conflict, which is a slow very memory
9047 # consuming and fragmenting process. To avoid this, we pick a random,
9048 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9049 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9051 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'
9052 ;;
9053
9054 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9055 tmp_diet=no
9056 if test "$host_os" = linux-dietlibc; then
9057 case $cc_basename in
9058 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9059 esac
9060 fi
9061 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9062 && test "$tmp_diet" = no
9063 then
9064 tmp_addflag=' $pic_flag'
9065 tmp_sharedflag='-shared'
9066 case $cc_basename,$host_cpu in
9067 pgcc*) # Portland Group C compiler
9068 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'
9069 tmp_addflag=' $pic_flag'
9070 ;;
9071 pgf77* | pgf90* | pgf95* | pgfortran*)
9072 # Portland Group f77 and f90 compilers
9073 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'
9074 tmp_addflag=' $pic_flag -Mnomain' ;;
9075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9076 tmp_addflag=' -i_dynamic' ;;
9077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9078 tmp_addflag=' -i_dynamic -nofor_main' ;;
9079 ifc* | ifort*) # Intel Fortran compiler
9080 tmp_addflag=' -nofor_main' ;;
9081 lf95*) # Lahey Fortran 8.1
9082 whole_archive_flag_spec=
9083 tmp_sharedflag='--shared' ;;
9084 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9085 tmp_sharedflag='-qmkshrobj'
9086 tmp_addflag= ;;
9087 nvcc*) # Cuda Compiler Driver 2.2
9088 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'
9089 compiler_needs_object=yes
9090 ;;
9091 esac
9092 case `$CC -V 2>&1 | sed 5q` in
9093 *Sun\ C*) # Sun C 5.9
9094 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'
9095 compiler_needs_object=yes
9096 tmp_sharedflag='-G' ;;
9097 *Sun\ F*) # Sun Fortran 8.3
9098 tmp_sharedflag='-G' ;;
9099 esac
9100 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9101
9102 if test "x$supports_anon_versioning" = xyes; then
9103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9105 echo "local: *; };" >> $output_objdir/$libname.ver~
9106 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9107 fi
9108
9109 case $cc_basename in
9110 xlf* | bgf* | bgxlf* | mpixlf*)
9111 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9112 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9115 if test "x$supports_anon_versioning" = xyes; then
9116 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9118 echo "local: *; };" >> $output_objdir/$libname.ver~
9119 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9120 fi
9121 ;;
9122 esac
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127
9128 netbsd* | netbsdelf*-gnu)
9129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9131 wlarc=
9132 else
9133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 fi
9136 ;;
9137
9138 solaris*)
9139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9140 ld_shlibs=no
9141 cat <<_LT_EOF 1>&2
9142
9143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9144*** create shared libraries on Solaris systems. Therefore, libtool
9145*** is disabling shared libraries support. We urge you to upgrade GNU
9146*** binutils to release 2.9.1 or newer. Another option is to modify
9147*** your PATH or compiler configuration so that the native linker is
9148*** used, and then restart.
9149
9150_LT_EOF
9151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9152 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
9159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9160 case `$LD -v 2>&1` in
9161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9162 ld_shlibs=no
9163 cat <<_LT_EOF 1>&2
9164
9165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9166*** reliably create shared libraries on SCO systems. Therefore, libtool
9167*** is disabling shared libraries support. We urge you to upgrade GNU
9168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9169*** your PATH or compiler configuration so that the native linker is
9170*** used, and then restart.
9171
9172_LT_EOF
9173 ;;
9174 *)
9175 # For security reasons, it is highly recommended that you always
9176 # use absolute paths for naming shared libraries, and exclude the
9177 # DT_RUNPATH tag from executables and libraries. But doing so
9178 # requires that you compile everything twice, which is a pain.
9179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9183 else
9184 ld_shlibs=no
9185 fi
9186 ;;
9187 esac
9188 ;;
9189
9190 sunos4*)
9191 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192 wlarc=
9193 hardcode_direct=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 *)
9198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9199 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9201 else
9202 ld_shlibs=no
9203 fi
9204 ;;
9205 esac
9206
9207 if test "$ld_shlibs" = no; then
9208 runpath_var=
9209 hardcode_libdir_flag_spec=
9210 export_dynamic_flag_spec=
9211 whole_archive_flag_spec=
9212 fi
9213 else
9214 # PORTME fill in a description of your system's linker (not GNU ld)
9215 case $host_os in
9216 aix3*)
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=yes
9219 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'
9220 # Note: this linker hardcodes the directories in LIBPATH if there
9221 # are no directories specified by -L.
9222 hardcode_minus_L=yes
9223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9224 # Neither direct hardcoding nor static linking is supported with a
9225 # broken collect2.
9226 hardcode_direct=unsupported
9227 fi
9228 ;;
9229
9230 aix[4-9]*)
9231 if test "$host_cpu" = ia64; then
9232 # On IA64, the linker does run time linking by default, so we don't
9233 # have to do anything special.
9234 aix_use_runtimelinking=no
9235 exp_sym_flag='-Bexport'
9236 no_entry_flag=""
9237 else
9238 # If we're using GNU nm, then we don't want the "-C" option.
9239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9240 # Also, AIX nm treats weak defined symbols like other global
9241 # defined symbols, whereas GNU nm marks them as "W".
9242 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9243 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'
9244 else
9245 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'
9246 fi
9247 aix_use_runtimelinking=no
9248
9249 # Test if we are trying to use run time linking or normal
9250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9251 # need to do runtime linking.
9252 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9253 for ld_flag in $LDFLAGS; do
9254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9255 aix_use_runtimelinking=yes
9256 break
9257 fi
9258 done
9259 ;;
9260 esac
9261
9262 exp_sym_flag='-bexport'
9263 no_entry_flag='-bnoentry'
9264 fi
9265
9266 # When large executables or shared objects are built, AIX ld can
9267 # have problems creating the table of contents. If linking a library
9268 # or program results in "error TOC overflow" add -mminimal-toc to
9269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9271
9272 archive_cmds=''
9273 hardcode_direct=yes
9274 hardcode_direct_absolute=yes
9275 hardcode_libdir_separator=':'
9276 link_all_deplibs=yes
9277 file_list_spec='${wl}-f,'
9278
9279 if test "$GCC" = yes; then
9280 case $host_os in aix4.[012]|aix4.[012].*)
9281 # We only want to do this on AIX 4.2 and lower, the check
9282 # below for broken collect2 doesn't work under 4.3+
9283 collect2name=`${CC} -print-prog-name=collect2`
9284 if test -f "$collect2name" &&
9285 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9286 then
9287 # We have reworked collect2
9288 :
9289 else
9290 # We have old collect2
9291 hardcode_direct=unsupported
9292 # It fails to find uninstalled libraries when the uninstalled
9293 # path is not listed in the libpath. Setting hardcode_minus_L
9294 # to unsupported forces relinking
9295 hardcode_minus_L=yes
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_libdir_separator=
9298 fi
9299 ;;
9300 esac
9301 shared_flag='-shared'
9302 if test "$aix_use_runtimelinking" = yes; then
9303 shared_flag="$shared_flag "'${wl}-G'
9304 fi
9305 link_all_deplibs=no
9306 else
9307 # not using gcc
9308 if test "$host_cpu" = ia64; then
9309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9310 # chokes on -Wl,-G. The following line is correct:
9311 shared_flag='-G'
9312 else
9313 if test "$aix_use_runtimelinking" = yes; then
9314 shared_flag='${wl}-G'
9315 else
9316 shared_flag='${wl}-bM:SRE'
9317 fi
9318 fi
9319 fi
9320
9321 export_dynamic_flag_spec='${wl}-bexpall'
9322 # It seems that -bexpall does not export symbols beginning with
9323 # underscore (_), so it is better to generate a list of symbols to export.
9324 always_export_symbols=yes
9325 if test "$aix_use_runtimelinking" = yes; then
9326 # Warning - without using the other runtime loading flags (-brtl),
9327 # -berok will link without error, but may produce a broken library.
9328 allow_undefined_flag='-berok'
9329 # Determine the default libpath from the value encoded in an
9330 # empty executable.
9331 if test "${lt_cv_aix_libpath+set}" = set; then
9332 aix_libpath=$lt_cv_aix_libpath
9333else
9334 if ${lt_cv_aix_libpath_+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336else
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
9339
9340int
9341main ()
9342{
9343
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349
9350 lt_aix_libpath_sed='
9351 /Import File Strings/,/^$/ {
9352 /^0/ {
9353 s/^0 *\([^ ]*\) *$/\1/
9354 p
9355 }
9356 }'
9357 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9358 # Check for a 64-bit object if we didn't find anything.
9359 if test -z "$lt_cv_aix_libpath_"; then
9360 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9361 fi
9362fi
9363rm -f core conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 if test -z "$lt_cv_aix_libpath_"; then
9366 lt_cv_aix_libpath_="/usr/lib:/lib"
9367 fi
9368
9369fi
9370
9371 aix_libpath=$lt_cv_aix_libpath_
9372fi
9373
9374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9375 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"
9376 else
9377 if test "$host_cpu" = ia64; then
9378 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9379 allow_undefined_flag="-z nodefs"
9380 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"
9381 else
9382 # Determine the default libpath from the value encoded in an
9383 # empty executable.
9384 if test "${lt_cv_aix_libpath+set}" = set; then
9385 aix_libpath=$lt_cv_aix_libpath
9386else
9387 if ${lt_cv_aix_libpath_+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389else
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h. */
9392
9393int
9394main ()
9395{
9396
9397 ;
9398 return 0;
9399}
9400_ACEOF
9401if ac_fn_c_try_link "$LINENO"; then :
9402
9403 lt_aix_libpath_sed='
9404 /Import File Strings/,/^$/ {
9405 /^0/ {
9406 s/^0 *\([^ ]*\) *$/\1/
9407 p
9408 }
9409 }'
9410 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411 # Check for a 64-bit object if we didn't find anything.
9412 if test -z "$lt_cv_aix_libpath_"; then
9413 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9414 fi
9415fi
9416rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 if test -z "$lt_cv_aix_libpath_"; then
9419 lt_cv_aix_libpath_="/usr/lib:/lib"
9420 fi
9421
9422fi
9423
9424 aix_libpath=$lt_cv_aix_libpath_
9425fi
9426
9427 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9428 # Warning - without using the other run time loading flags,
9429 # -berok will link without error, but may produce a broken library.
9430 no_undefined_flag=' ${wl}-bernotok'
9431 allow_undefined_flag=' ${wl}-berok'
9432 if test "$with_gnu_ld" = yes; then
9433 # We only use this code for GNU lds that support --whole-archive.
9434 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9435 else
9436 # Exported symbols can be pulled into shared objects from archives
9437 whole_archive_flag_spec='$convenience'
9438 fi
9439 archive_cmds_need_lc=yes
9440 # This is similar to how AIX traditionally builds its shared libraries.
9441 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'
9442 fi
9443 fi
9444 ;;
9445
9446 amigaos*)
9447 case $host_cpu in
9448 powerpc)
9449 # see comment about AmigaOS4 .so support
9450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 archive_expsym_cmds=''
9452 ;;
9453 m68k)
9454 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)'
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_minus_L=yes
9457 ;;
9458 esac
9459 ;;
9460
9461 bsdi[45]*)
9462 export_dynamic_flag_spec=-rdynamic
9463 ;;
9464
9465 cygwin* | mingw* | pw32* | cegcc*)
9466 # When not using gcc, we currently assume that we are using
9467 # Microsoft Visual C++.
9468 # hardcode_libdir_flag_spec is actually meaningless, as there is
9469 # no search path for DLLs.
9470 case $cc_basename in
9471 cl*)
9472 # Native MSVC
9473 hardcode_libdir_flag_spec=' '
9474 allow_undefined_flag=unsupported
9475 always_export_symbols=yes
9476 file_list_spec='@'
9477 # Tell ltmain to make .lib files, not .a files.
9478 libext=lib
9479 # Tell ltmain to make .dll files, not .so files.
9480 shrext_cmds=".dll"
9481 # FIXME: Setting linknames here is a bad hack.
9482 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9483 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9484 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9485 else
9486 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9487 fi~
9488 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9489 linknames='
9490 # The linker will not automatically build a static lib if we build a DLL.
9491 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9492 enable_shared_with_static_runtimes=yes
9493 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9495 # Don't use ranlib
9496 old_postinstall_cmds='chmod 644 $oldlib'
9497 postlink_cmds='lt_outputfile="@OUTPUT@"~
9498 lt_tool_outputfile="@TOOL_OUTPUT@"~
9499 case $lt_outputfile in
9500 *.exe|*.EXE) ;;
9501 *)
9502 lt_outputfile="$lt_outputfile.exe"
9503 lt_tool_outputfile="$lt_tool_outputfile.exe"
9504 ;;
9505 esac~
9506 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9507 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9508 $RM "$lt_outputfile.manifest";
9509 fi'
9510 ;;
9511 *)
9512 # Assume MSVC wrapper
9513 hardcode_libdir_flag_spec=' '
9514 allow_undefined_flag=unsupported
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=".dll"
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9521 # The linker will automatically build a .lib file if we build a DLL.
9522 old_archive_from_new_cmds='true'
9523 # FIXME: Should let the user specify the lib program.
9524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9525 enable_shared_with_static_runtimes=yes
9526 ;;
9527 esac
9528 ;;
9529
9530 darwin* | rhapsody*)
9531
9532
9533 archive_cmds_need_lc=no
9534 hardcode_direct=no
9535 hardcode_automatic=yes
9536 hardcode_shlibpath_var=unsupported
9537 if test "$lt_cv_ld_force_load" = "yes"; then
9538 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\"`'
9539
9540 else
9541 whole_archive_flag_spec=''
9542 fi
9543 link_all_deplibs=yes
9544 allow_undefined_flag="$_lt_dar_allow_undefined"
9545 case $cc_basename in
9546 ifort*) _lt_dar_can_shared=yes ;;
9547 *) _lt_dar_can_shared=$GCC ;;
9548 esac
9549 if test "$_lt_dar_can_shared" = "yes"; then
9550 output_verbose_link_cmd=func_echo_all
9551 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9552 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9553 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}"
9554 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}"
9555
9556 else
9557 ld_shlibs=no
9558 fi
9559
9560 ;;
9561
9562 dgux*)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9569 # support. Future versions do this automatically, but an explicit c++rt0.o
9570 # does not break anything, and helps significantly (at the cost of a little
9571 # extra space).
9572 freebsd2.2*)
9573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9574 hardcode_libdir_flag_spec='-R$libdir'
9575 hardcode_direct=yes
9576 hardcode_shlibpath_var=no
9577 ;;
9578
9579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9580 freebsd2.*)
9581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_direct=yes
9583 hardcode_minus_L=yes
9584 hardcode_shlibpath_var=no
9585 ;;
9586
9587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9588 freebsd* | dragonfly*)
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 hardcode_libdir_flag_spec='-R$libdir'
9591 hardcode_direct=yes
9592 hardcode_shlibpath_var=no
9593 ;;
9594
9595 hpux9*)
9596 if test "$GCC" = yes; then
9597 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'
9598 else
9599 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'
9600 fi
9601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9602 hardcode_libdir_separator=:
9603 hardcode_direct=yes
9604
9605 # hardcode_minus_L: Not really in the search PATH,
9606 # but as the default location of the library.
9607 hardcode_minus_L=yes
9608 export_dynamic_flag_spec='${wl}-E'
9609 ;;
9610
9611 hpux10*)
9612 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9613 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9614 else
9615 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9616 fi
9617 if test "$with_gnu_ld" = no; then
9618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9619 hardcode_libdir_separator=:
9620 hardcode_direct=yes
9621 hardcode_direct_absolute=yes
9622 export_dynamic_flag_spec='${wl}-E'
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
9625 hardcode_minus_L=yes
9626 fi
9627 ;;
9628
9629 hpux11*)
9630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9631 case $host_cpu in
9632 hppa*64*)
9633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 ;;
9635 ia64*)
9636 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9637 ;;
9638 *)
9639 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9640 ;;
9641 esac
9642 else
9643 case $host_cpu in
9644 hppa*64*)
9645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 ;;
9647 ia64*)
9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9649 ;;
9650 *)
9651
9652 # Older versions of the 11.00 compiler do not understand -b yet
9653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9655$as_echo_n "checking if $CC understands -b... " >&6; }
9656if ${lt_cv_prog_compiler__b+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658else
9659 lt_cv_prog_compiler__b=no
9660 save_LDFLAGS="$LDFLAGS"
9661 LDFLAGS="$LDFLAGS -b"
9662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9664 # The linker can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
9666 if test -s conftest.err; then
9667 # Append any errors to the config.log.
9668 cat conftest.err 1>&5
9669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9671 if diff conftest.exp conftest.er2 >/dev/null; then
9672 lt_cv_prog_compiler__b=yes
9673 fi
9674 else
9675 lt_cv_prog_compiler__b=yes
9676 fi
9677 fi
9678 $RM -r conftest*
9679 LDFLAGS="$save_LDFLAGS"
9680
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9683$as_echo "$lt_cv_prog_compiler__b" >&6; }
9684
9685if test x"$lt_cv_prog_compiler__b" = xyes; then
9686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687else
9688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9689fi
9690
9691 ;;
9692 esac
9693 fi
9694 if test "$with_gnu_ld" = no; then
9695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_separator=:
9697
9698 case $host_cpu in
9699 hppa*64*|ia64*)
9700 hardcode_direct=no
9701 hardcode_shlibpath_var=no
9702 ;;
9703 *)
9704 hardcode_direct=yes
9705 hardcode_direct_absolute=yes
9706 export_dynamic_flag_spec='${wl}-E'
9707
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L=yes
9711 ;;
9712 esac
9713 fi
9714 ;;
9715
9716 irix5* | irix6* | nonstopux*)
9717 if test "$GCC" = yes; then
9718 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'
9719 # Try to use the -exported_symbol ld option, if it does not
9720 # work, assume that -exports_file does not work either and
9721 # implicitly export all symbols.
9722 # This should be the same for all languages, so no per-tag cache variable.
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9724$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9725if ${lt_cv_irix_exported_symbol+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727else
9728 save_LDFLAGS="$LDFLAGS"
9729 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h. */
9732int foo (void) { return 0; }
9733_ACEOF
9734if ac_fn_c_try_link "$LINENO"; then :
9735 lt_cv_irix_exported_symbol=yes
9736else
9737 lt_cv_irix_exported_symbol=no
9738fi
9739rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LDFLAGS="$save_LDFLAGS"
9742fi
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9744$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9745 if test "$lt_cv_irix_exported_symbol" = yes; then
9746 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'
9747 fi
9748 else
9749 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'
9750 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'
9751 fi
9752 archive_cmds_need_lc='no'
9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 inherit_rpath=yes
9756 link_all_deplibs=yes
9757 ;;
9758
9759 netbsd* | netbsdelf*-gnu)
9760 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9762 else
9763 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9764 fi
9765 hardcode_libdir_flag_spec='-R$libdir'
9766 hardcode_direct=yes
9767 hardcode_shlibpath_var=no
9768 ;;
9769
9770 newsos6)
9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774 hardcode_libdir_separator=:
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 *nto* | *qnx*)
9779 ;;
9780
9781 openbsd*)
9782 if test -f /usr/libexec/ld.so; then
9783 hardcode_direct=yes
9784 hardcode_shlibpath_var=no
9785 hardcode_direct_absolute=yes
9786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9788 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9790 export_dynamic_flag_spec='${wl}-E'
9791 else
9792 case $host_os in
9793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_libdir_flag_spec='-R$libdir'
9796 ;;
9797 *)
9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800 ;;
9801 esac
9802 fi
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807
9808 os2*)
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_minus_L=yes
9811 allow_undefined_flag=unsupported
9812 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'
9813 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9814 ;;
9815
9816 osf3*)
9817 if test "$GCC" = yes; then
9818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9819 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'
9820 else
9821 allow_undefined_flag=' -expect_unresolved \*'
9822 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'
9823 fi
9824 archive_cmds_need_lc='no'
9825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826 hardcode_libdir_separator=:
9827 ;;
9828
9829 osf4* | osf5*) # as osf3* with the addition of -msym flag
9830 if test "$GCC" = yes; then
9831 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9832 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'
9833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9834 else
9835 allow_undefined_flag=' -expect_unresolved \*'
9836 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'
9837 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~
9838 $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'
9839
9840 # Both c and cxx compiler support -rpath directly
9841 hardcode_libdir_flag_spec='-rpath $libdir'
9842 fi
9843 archive_cmds_need_lc='no'
9844 hardcode_libdir_separator=:
9845 ;;
9846
9847 solaris*)
9848 no_undefined_flag=' -z defs'
9849 if test "$GCC" = yes; then
9850 wlarc='${wl}'
9851 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9853 $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'
9854 else
9855 case `$CC -V 2>&1` in
9856 *"Compilers 5.0"*)
9857 wlarc=''
9858 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9860 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9861 ;;
9862 *)
9863 wlarc='${wl}'
9864 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9866 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9867 ;;
9868 esac
9869 fi
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 hardcode_shlibpath_var=no
9872 case $host_os in
9873 solaris2.[0-5] | solaris2.[0-5].*) ;;
9874 *)
9875 # The compiler driver will combine and reorder linker options,
9876 # but understands `-z linker_flag'. GCC discards it without `$wl',
9877 # but is careful enough not to reorder.
9878 # Supported since Solaris 2.6 (maybe 2.5.1?)
9879 if test "$GCC" = yes; then
9880 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9881 else
9882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9883 fi
9884 ;;
9885 esac
9886 link_all_deplibs=yes
9887 ;;
9888
9889 sunos4*)
9890 if test "x$host_vendor" = xsequent; then
9891 # Use $CC to link under sequent, because it throws in some extra .o
9892 # files that make .init and .fini sections work.
9893 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9894 else
9895 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9896 fi
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_direct=yes
9899 hardcode_minus_L=yes
9900 hardcode_shlibpath_var=no
9901 ;;
9902
9903 sysv4)
9904 case $host_vendor in
9905 sni)
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=yes # is this really true???
9908 ;;
9909 siemens)
9910 ## LD is ld it makes a PLAMLIB
9911 ## CC just makes a GrossModule.
9912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9913 reload_cmds='$CC -r -o $output$reload_objs'
9914 hardcode_direct=no
9915 ;;
9916 motorola)
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9919 ;;
9920 esac
9921 runpath_var='LD_RUN_PATH'
9922 hardcode_shlibpath_var=no
9923 ;;
9924
9925 sysv4.3*)
9926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_shlibpath_var=no
9928 export_dynamic_flag_spec='-Bexport'
9929 ;;
9930
9931 sysv4*MP*)
9932 if test -d /usr/nec; then
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_shlibpath_var=no
9935 runpath_var=LD_RUN_PATH
9936 hardcode_runpath_var=yes
9937 ld_shlibs=yes
9938 fi
9939 ;;
9940
9941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9942 no_undefined_flag='${wl}-z,text'
9943 archive_cmds_need_lc=no
9944 hardcode_shlibpath_var=no
9945 runpath_var='LD_RUN_PATH'
9946
9947 if test "$GCC" = yes; then
9948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950 else
9951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 fi
9954 ;;
9955
9956 sysv5* | sco3.2v5* | sco5v6*)
9957 # Note: We can NOT use -z defs as we might desire, because we do not
9958 # link with -lc, and that would cause any symbols used from libc to
9959 # always be unresolved, which means just about no library would
9960 # ever link correctly. If we're not using GNU ld we use -z text
9961 # though, which does catch some bad symbols but isn't as heavy-handed
9962 # as -z defs.
9963 no_undefined_flag='${wl}-z,text'
9964 allow_undefined_flag='${wl}-z,nodefs'
9965 archive_cmds_need_lc=no
9966 hardcode_shlibpath_var=no
9967 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9968 hardcode_libdir_separator=':'
9969 link_all_deplibs=yes
9970 export_dynamic_flag_spec='${wl}-Bexport'
9971 runpath_var='LD_RUN_PATH'
9972
9973 if test "$GCC" = yes; then
9974 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976 else
9977 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 fi
9980 ;;
9981
9982 uts4*)
9983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_shlibpath_var=no
9986 ;;
9987
9988 *)
9989 ld_shlibs=no
9990 ;;
9991 esac
9992
9993 if test x$host_vendor = xsni; then
9994 case $host in
9995 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9996 export_dynamic_flag_spec='${wl}-Blargedynsym'
9997 ;;
9998 esac
9999 fi
10000 fi
10001
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10003$as_echo "$ld_shlibs" >&6; }
10004test "$ld_shlibs" = no && can_build_shared=no
10005
10006with_gnu_ld=$with_gnu_ld
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022#
10023# Do we need to explicitly link libc?
10024#
10025case "x$archive_cmds_need_lc" in
10026x|xyes)
10027 # Assume -lc should be added
10028 archive_cmds_need_lc=yes
10029
10030 if test "$enable_shared" = yes && test "$GCC" = yes; then
10031 case $archive_cmds in
10032 *'~'*)
10033 # FIXME: we may have to deal with multi-command sequences.
10034 ;;
10035 '$CC '*)
10036 # Test whether the compiler implicitly links with -lc since on some
10037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10038 # to ld, don't add -lc before -lgcc.
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10040$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10041if ${lt_cv_archive_cmds_need_lc+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043else
10044 $RM conftest*
10045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10046
10047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10048 (eval $ac_compile) 2>&5
10049 ac_status=$?
10050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10051 test $ac_status = 0; } 2>conftest.err; then
10052 soname=conftest
10053 lib=conftest
10054 libobjs=conftest.$ac_objext
10055 deplibs=
10056 wl=$lt_prog_compiler_wl
10057 pic_flag=$lt_prog_compiler_pic
10058 compiler_flags=-v
10059 linker_flags=-v
10060 verstring=
10061 output_objdir=.
10062 libname=conftest
10063 lt_save_allow_undefined_flag=$allow_undefined_flag
10064 allow_undefined_flag=
10065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10067 ac_status=$?
10068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069 test $ac_status = 0; }
10070 then
10071 lt_cv_archive_cmds_need_lc=no
10072 else
10073 lt_cv_archive_cmds_need_lc=yes
10074 fi
10075 allow_undefined_flag=$lt_save_allow_undefined_flag
10076 else
10077 cat conftest.err 1>&5
10078 fi
10079 $RM conftest*
10080
10081fi
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10083$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10084 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10085 ;;
10086 esac
10087 fi
10088 ;;
10089esac
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10243$as_echo_n "checking dynamic linker characteristics... " >&6; }
10244
10245if test "$GCC" = yes; then
10246 case $host_os in
10247 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10248 *) lt_awk_arg="/^libraries:/" ;;
10249 esac
10250 case $host_os in
10251 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10252 *) lt_sed_strip_eq="s,=/,/,g" ;;
10253 esac
10254 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10255 case $lt_search_path_spec in
10256 *\;*)
10257 # if the path contains ";" then we assume it to be the separator
10258 # otherwise default to the standard path separator (i.e. ":") - it is
10259 # assumed that no part of a normal pathname contains ";" but that should
10260 # okay in the real world where ";" in dirpaths is itself problematic.
10261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10262 ;;
10263 *)
10264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10265 ;;
10266 esac
10267 # Ok, now we have the path, separated by spaces, we can step through it
10268 # and add multilib dir if necessary.
10269 lt_tmp_lt_search_path_spec=
10270 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10271 for lt_sys_path in $lt_search_path_spec; do
10272 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10274 else
10275 test -d "$lt_sys_path" && \
10276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10277 fi
10278 done
10279 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10280BEGIN {RS=" "; FS="/|\n";} {
10281 lt_foo="";
10282 lt_count=0;
10283 for (lt_i = NF; lt_i > 0; lt_i--) {
10284 if ($lt_i != "" && $lt_i != ".") {
10285 if ($lt_i == "..") {
10286 lt_count++;
10287 } else {
10288 if (lt_count == 0) {
10289 lt_foo="/" $lt_i lt_foo;
10290 } else {
10291 lt_count--;
10292 }
10293 }
10294 }
10295 }
10296 if (lt_foo != "") { lt_freq[lt_foo]++; }
10297 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10298}'`
10299 # AWK program above erroneously prepends '/' to C:/dos/paths
10300 # for these hosts.
10301 case $host_os in
10302 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10303 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10304 esac
10305 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10306else
10307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10308fi
10309library_names_spec=
10310libname_spec='lib$name'
10311soname_spec=
10312shrext_cmds=".so"
10313postinstall_cmds=
10314postuninstall_cmds=
10315finish_cmds=
10316finish_eval=
10317shlibpath_var=
10318shlibpath_overrides_runpath=unknown
10319version_type=none
10320dynamic_linker="$host_os ld.so"
10321sys_lib_dlsearch_path_spec="/lib /usr/lib"
10322need_lib_prefix=unknown
10323hardcode_into_libs=no
10324
10325# when you set need_version to no, make sure it does not cause -set_version
10326# flags to be left without arguments
10327need_version=unknown
10328
10329case $host_os in
10330aix3*)
10331 version_type=linux # correct to gnu/linux during the next big refactor
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10333 shlibpath_var=LIBPATH
10334
10335 # AIX 3 has no versioning support, so we append a major version to the name.
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 ;;
10338
10339aix[4-9]*)
10340 version_type=linux # correct to gnu/linux during the next big refactor
10341 need_lib_prefix=no
10342 need_version=no
10343 hardcode_into_libs=yes
10344 if test "$host_cpu" = ia64; then
10345 # AIX 5 supports IA64
10346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 else
10349 # With GCC up to 2.95.x, collect2 would create an import file
10350 # for dependence libraries. The import file would start with
10351 # the line `#! .'. This would cause the generated library to
10352 # depend on `.', always an invalid library. This was fixed in
10353 # development snapshots of GCC prior to 3.0.
10354 case $host_os in
10355 aix4 | aix4.[01] | aix4.[01].*)
10356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10357 echo ' yes '
10358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10359 :
10360 else
10361 can_build_shared=no
10362 fi
10363 ;;
10364 esac
10365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10366 # soname into executable. Probably we can add versioning support to
10367 # collect2, so additional links can be useful in future.
10368 if test "$aix_use_runtimelinking" = yes; then
10369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10370 # instead of lib<name>.a to let people know that these are not
10371 # typical AIX shared libraries.
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 else
10374 # We preserve .a as extension for shared libraries through AIX4.2
10375 # and later when we are not doing run time linking.
10376 library_names_spec='${libname}${release}.a $libname.a'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 fi
10379 shlibpath_var=LIBPATH
10380 fi
10381 ;;
10382
10383amigaos*)
10384 case $host_cpu in
10385 powerpc)
10386 # Since July 2007 AmigaOS4 officially supports .so libraries.
10387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 ;;
10390 m68k)
10391 library_names_spec='$libname.ixlibrary $libname.a'
10392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10393 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'
10394 ;;
10395 esac
10396 ;;
10397
10398beos*)
10399 library_names_spec='${libname}${shared_ext}'
10400 dynamic_linker="$host_os ld.so"
10401 shlibpath_var=LIBRARY_PATH
10402 ;;
10403
10404bsdi[45]*)
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10413 # the default ld.so.conf also contains /usr/contrib/lib and
10414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10415 # libtool to hard-code these into programs
10416 ;;
10417
10418cygwin* | mingw* | pw32* | cegcc*)
10419 version_type=windows
10420 shrext_cmds=".dll"
10421 need_version=no
10422 need_lib_prefix=no
10423
10424 case $GCC,$cc_basename in
10425 yes,*)
10426 # gcc
10427 library_names_spec='$libname.dll.a'
10428 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10429 postinstall_cmds='base_file=`basename \${file}`~
10430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10431 dldir=$destdir/`dirname \$dlpath`~
10432 test -d \$dldir || mkdir -p \$dldir~
10433 $install_prog $dir/$dlname \$dldir/$dlname~
10434 chmod a+x \$dldir/$dlname~
10435 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10436 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10437 fi'
10438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10439 dlpath=$dir/\$dldll~
10440 $RM \$dlpath'
10441 shlibpath_overrides_runpath=yes
10442
10443 case $host_os in
10444 cygwin*)
10445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10449 ;;
10450 mingw* | cegcc*)
10451 # MinGW DLLs use traditional 'lib' prefix
10452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10453 ;;
10454 pw32*)
10455 # pw32 DLLs use 'pw' prefix rather than 'lib'
10456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10457 ;;
10458 esac
10459 dynamic_linker='Win32 ld.exe'
10460 ;;
10461
10462 *,cl*)
10463 # Native MSVC
10464 libname_spec='$name'
10465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10466 library_names_spec='${libname}.dll.lib'
10467
10468 case $build_os in
10469 mingw*)
10470 sys_lib_search_path_spec=
10471 lt_save_ifs=$IFS
10472 IFS=';'
10473 for lt_path in $LIB
10474 do
10475 IFS=$lt_save_ifs
10476 # Let DOS variable expansion print the short 8.3 style file name.
10477 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10478 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10479 done
10480 IFS=$lt_save_ifs
10481 # Convert to MSYS style.
10482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10483 ;;
10484 cygwin*)
10485 # Convert to unix form, then to dos form, then back to unix form
10486 # but this time dos style (no spaces!) so that the unix form looks
10487 # like /cygdrive/c/PROGRA~1:/cygdr...
10488 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10489 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10490 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10491 ;;
10492 *)
10493 sys_lib_search_path_spec="$LIB"
10494 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10495 # It is most probably a Windows format PATH.
10496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10497 else
10498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10499 fi
10500 # FIXME: find the short name or the path components, as spaces are
10501 # common. (e.g. "Program Files" -> "PROGRA~1")
10502 ;;
10503 esac
10504
10505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10506 postinstall_cmds='base_file=`basename \${file}`~
10507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10508 dldir=$destdir/`dirname \$dlpath`~
10509 test -d \$dldir || mkdir -p \$dldir~
10510 $install_prog $dir/$dlname \$dldir/$dlname'
10511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10512 dlpath=$dir/\$dldll~
10513 $RM \$dlpath'
10514 shlibpath_overrides_runpath=yes
10515 dynamic_linker='Win32 link.exe'
10516 ;;
10517
10518 *)
10519 # Assume MSVC wrapper
10520 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10521 dynamic_linker='Win32 ld.exe'
10522 ;;
10523 esac
10524 # FIXME: first we should search . and the directory the executable is in
10525 shlibpath_var=PATH
10526 ;;
10527
10528darwin* | rhapsody*)
10529 dynamic_linker="$host_os dyld"
10530 version_type=darwin
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10534 soname_spec='${libname}${release}${major}$shared_ext'
10535 shlibpath_overrides_runpath=yes
10536 shlibpath_var=DYLD_LIBRARY_PATH
10537 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10538
10539 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10541 ;;
10542
10543dgux*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 need_lib_prefix=no
10546 need_version=no
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 ;;
10551
10552freebsd* | dragonfly*)
10553 # DragonFly does not have aout. When/if they implement a new
10554 # versioning mechanism, adjust this.
10555 if test -x /usr/bin/objformat; then
10556 objformat=`/usr/bin/objformat`
10557 else
10558 case $host_os in
10559 freebsd[23].*) objformat=aout ;;
10560 *) objformat=elf ;;
10561 esac
10562 fi
10563 version_type=freebsd-$objformat
10564 case $version_type in
10565 freebsd-elf*)
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10567 need_version=no
10568 need_lib_prefix=no
10569 ;;
10570 freebsd-*)
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10572 need_version=yes
10573 ;;
10574 esac
10575 shlibpath_var=LD_LIBRARY_PATH
10576 case $host_os in
10577 freebsd2.*)
10578 shlibpath_overrides_runpath=yes
10579 ;;
10580 freebsd3.[01]* | freebsdelf3.[01]*)
10581 shlibpath_overrides_runpath=yes
10582 hardcode_into_libs=yes
10583 ;;
10584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10586 shlibpath_overrides_runpath=no
10587 hardcode_into_libs=yes
10588 ;;
10589 *) # from 4.6 on, and DragonFly
10590 shlibpath_overrides_runpath=yes
10591 hardcode_into_libs=yes
10592 ;;
10593 esac
10594 ;;
10595
10596haiku*)
10597 version_type=linux # correct to gnu/linux during the next big refactor
10598 need_lib_prefix=no
10599 need_version=no
10600 dynamic_linker="$host_os runtime_loader"
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10606 hardcode_into_libs=yes
10607 ;;
10608
10609hpux9* | hpux10* | hpux11*)
10610 # Give a soname corresponding to the major version so that dld.sl refuses to
10611 # link against other versions.
10612 version_type=sunos
10613 need_lib_prefix=no
10614 need_version=no
10615 case $host_cpu in
10616 ia64*)
10617 shrext_cmds='.so'
10618 hardcode_into_libs=yes
10619 dynamic_linker="$host_os dld.so"
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 if test "X$HPUX_IA64_MODE" = X32; then
10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10626 else
10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10628 fi
10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10630 ;;
10631 hppa*64*)
10632 shrext_cmds='.sl'
10633 hardcode_into_libs=yes
10634 dynamic_linker="$host_os dld.sl"
10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10641 ;;
10642 *)
10643 shrext_cmds='.sl'
10644 dynamic_linker="$host_os dld.sl"
10645 shlibpath_var=SHLIB_PATH
10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 ;;
10650 esac
10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10652 postinstall_cmds='chmod 555 $lib'
10653 # or fails outright, so override atomically:
10654 install_override_mode=555
10655 ;;
10656
10657interix[3-9]*)
10658 version_type=linux # correct to gnu/linux during the next big refactor
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10667 ;;
10668
10669irix5* | irix6* | nonstopux*)
10670 case $host_os in
10671 nonstopux*) version_type=nonstopux ;;
10672 *)
10673 if test "$lt_cv_prog_gnu_ld" = yes; then
10674 version_type=linux # correct to gnu/linux during the next big refactor
10675 else
10676 version_type=irix
10677 fi ;;
10678 esac
10679 need_lib_prefix=no
10680 need_version=no
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10683 case $host_os in
10684 irix5* | nonstopux*)
10685 libsuff= shlibsuff=
10686 ;;
10687 *)
10688 case $LD in # libtool.m4 will add one of these switches to LD
10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10690 libsuff= shlibsuff= libmagic=32-bit;;
10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10692 libsuff=32 shlibsuff=N32 libmagic=N32;;
10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10695 *) libsuff= shlibsuff= libmagic=never-match;;
10696 esac
10697 ;;
10698 esac
10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10700 shlibpath_overrides_runpath=no
10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10703 hardcode_into_libs=yes
10704 ;;
10705
10706# No shared lib support for Linux oldld, aout, or coff.
10707linux*oldld* | linux*aout* | linux*coff*)
10708 dynamic_linker=no
10709 ;;
10710
10711# This must be glibc/ELF.
10712linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10713 version_type=linux # correct to gnu/linux during the next big refactor
10714 need_lib_prefix=no
10715 need_version=no
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=no
10721
10722 # Some binutils ld are patched to set DT_RUNPATH
10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725else
10726 lt_cv_shlibpath_overrides_runpath=no
10727 save_LDFLAGS=$LDFLAGS
10728 save_libdir=$libdir
10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h. */
10733
10734int
10735main ()
10736{
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_link "$LINENO"; then :
10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10744 lt_cv_shlibpath_overrides_runpath=yes
10745fi
10746fi
10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LDFLAGS=$save_LDFLAGS
10750 libdir=$save_libdir
10751
10752fi
10753
10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10755
10756 # This implies no fast_install, which is unacceptable.
10757 # Some rework will be needed to allow for fast_install
10758 # before this can be enabled.
10759 hardcode_into_libs=yes
10760
10761 # Append ld.so.conf contents to the search path
10762 if test -f /etc/ld.so.conf; then
10763 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' ' '`
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10765 fi
10766
10767 # We used to test for /lib/ld.so.1 and disable shared libraries on
10768 # powerpc, because MkLinux only supported shared libraries with the
10769 # GNU dynamic linker. Since this was broken with cross compilers,
10770 # most powerpc-linux boxes support dynamic linking these days and
10771 # people can always --disable-shared, the test was removed, and we
10772 # assume the GNU/Linux dynamic linker is in use.
10773 dynamic_linker='GNU/Linux ld.so'
10774 ;;
10775
10776netbsdelf*-gnu)
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=no
10784 hardcode_into_libs=yes
10785 dynamic_linker='NetBSD ld.elf_so'
10786 ;;
10787
10788netbsd*)
10789 version_type=sunos
10790 need_lib_prefix=no
10791 need_version=no
10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10795 dynamic_linker='NetBSD (a.out) ld.so'
10796 else
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 dynamic_linker='NetBSD ld.elf_so'
10800 fi
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10804 ;;
10805
10806newsos6)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes
10811 ;;
10812
10813*nto* | *qnx*)
10814 version_type=qnx
10815 need_lib_prefix=no
10816 need_version=no
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=no
10821 hardcode_into_libs=yes
10822 dynamic_linker='ldqnx.so'
10823 ;;
10824
10825openbsd*)
10826 version_type=sunos
10827 sys_lib_dlsearch_path_spec="/usr/lib"
10828 need_lib_prefix=no
10829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10830 case $host_os in
10831 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10832 *) need_version=no ;;
10833 esac
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838 case $host_os in
10839 openbsd2.[89] | openbsd2.[89].*)
10840 shlibpath_overrides_runpath=no
10841 ;;
10842 *)
10843 shlibpath_overrides_runpath=yes
10844 ;;
10845 esac
10846 else
10847 shlibpath_overrides_runpath=yes
10848 fi
10849 ;;
10850
10851os2*)
10852 libname_spec='$name'
10853 shrext_cmds=".dll"
10854 need_lib_prefix=no
10855 library_names_spec='$libname${shared_ext} $libname.a'
10856 dynamic_linker='OS/2 ld.exe'
10857 shlibpath_var=LIBPATH
10858 ;;
10859
10860osf3* | osf4* | osf5*)
10861 version_type=osf
10862 need_lib_prefix=no
10863 need_version=no
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10869 ;;
10870
10871rdos*)
10872 dynamic_linker=no
10873 ;;
10874
10875solaris*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 hardcode_into_libs=yes
10884 # ldd complains unless libraries are executable
10885 postinstall_cmds='chmod +x $lib'
10886 ;;
10887
10888sunos4*)
10889 version_type=sunos
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=yes
10894 if test "$with_gnu_ld" = yes; then
10895 need_lib_prefix=no
10896 fi
10897 need_version=yes
10898 ;;
10899
10900sysv4 | sysv4.3*)
10901 version_type=linux # correct to gnu/linux during the next big refactor
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 case $host_vendor in
10906 sni)
10907 shlibpath_overrides_runpath=no
10908 need_lib_prefix=no
10909 runpath_var=LD_RUN_PATH
10910 ;;
10911 siemens)
10912 need_lib_prefix=no
10913 ;;
10914 motorola)
10915 need_lib_prefix=no
10916 need_version=no
10917 shlibpath_overrides_runpath=no
10918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10919 ;;
10920 esac
10921 ;;
10922
10923sysv4*MP*)
10924 if test -d /usr/nec ;then
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10927 soname_spec='$libname${shared_ext}.$major'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 fi
10930 ;;
10931
10932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10933 version_type=freebsd-elf
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 if test "$with_gnu_ld" = yes; then
10942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10943 else
10944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10945 case $host_os in
10946 sco3.2v5*)
10947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10948 ;;
10949 esac
10950 fi
10951 sys_lib_dlsearch_path_spec='/usr/lib'
10952 ;;
10953
10954tpf*)
10955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10956 version_type=linux # correct to gnu/linux during the next big refactor
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=no
10962 hardcode_into_libs=yes
10963 ;;
10964
10965uts4*)
10966 version_type=linux # correct to gnu/linux during the next big refactor
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 ;;
10971
10972*)
10973 dynamic_linker=no
10974 ;;
10975esac
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10977$as_echo "$dynamic_linker" >&6; }
10978test "$dynamic_linker" = no && can_build_shared=no
10979
10980variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10981if test "$GCC" = yes; then
10982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10983fi
10984
10985if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10986 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10987fi
10988if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10989 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10990fi
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11084$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11085hardcode_action=
11086if test -n "$hardcode_libdir_flag_spec" ||
11087 test -n "$runpath_var" ||
11088 test "X$hardcode_automatic" = "Xyes" ; then
11089
11090 # We can hardcode non-existent directories.
11091 if test "$hardcode_direct" != no &&
11092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11093 # have to relink, otherwise we might link with an installed library
11094 # when we should be linking with a yet-to-be-installed one
11095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11096 test "$hardcode_minus_L" != no; then
11097 # Linking always hardcodes the temporary library directory.
11098 hardcode_action=relink
11099 else
11100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11101 hardcode_action=immediate
11102 fi
11103else
11104 # We cannot hardcode anything, or else we can only hardcode existing
11105 # directories.
11106 hardcode_action=unsupported
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11109$as_echo "$hardcode_action" >&6; }
11110
11111if test "$hardcode_action" = relink ||
11112 test "$inherit_rpath" = yes; then
11113 # Fast installation is not supported
11114 enable_fast_install=no
11115elif test "$shlibpath_overrides_runpath" = yes ||
11116 test "$enable_shared" = no; then
11117 # Fast installation is not necessary
11118 enable_fast_install=needless
11119fi
11120
11121
11122
11123
11124
11125
11126 if test "x$enable_dlopen" != xyes; then
11127 enable_dlopen=unknown
11128 enable_dlopen_self=unknown
11129 enable_dlopen_self_static=unknown
11130else
11131 lt_cv_dlopen=no
11132 lt_cv_dlopen_libs=
11133
11134 case $host_os in
11135 beos*)
11136 lt_cv_dlopen="load_add_on"
11137 lt_cv_dlopen_libs=
11138 lt_cv_dlopen_self=yes
11139 ;;
11140
11141 mingw* | pw32* | cegcc*)
11142 lt_cv_dlopen="LoadLibrary"
11143 lt_cv_dlopen_libs=
11144 ;;
11145
11146 cygwin*)
11147 lt_cv_dlopen="dlopen"
11148 lt_cv_dlopen_libs=
11149 ;;
11150
11151 darwin*)
11152 # if libdl is installed we need to link against it
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11154$as_echo_n "checking for dlopen in -ldl... " >&6; }
11155if ${ac_cv_lib_dl_dlopen+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157else
11158 ac_check_lib_save_LIBS=$LIBS
11159LIBS="-ldl $LIBS"
11160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h. */
11162
11163/* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11166#ifdef __cplusplus
11167extern "C"
11168#endif
11169char dlopen ();
11170int
11171main ()
11172{
11173return dlopen ();
11174 ;
11175 return 0;
11176}
11177_ACEOF
11178if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_dl_dlopen=yes
11180else
11181 ac_cv_lib_dl_dlopen=no
11182fi
11183rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185LIBS=$ac_check_lib_save_LIBS
11186fi
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11188$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11189if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11191else
11192
11193 lt_cv_dlopen="dyld"
11194 lt_cv_dlopen_libs=
11195 lt_cv_dlopen_self=yes
11196
11197fi
11198
11199 ;;
11200
11201 *)
11202 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11203if test "x$ac_cv_func_shl_load" = xyes; then :
11204 lt_cv_dlopen="shl_load"
11205else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11207$as_echo_n "checking for shl_load in -ldld... " >&6; }
11208if ${ac_cv_lib_dld_shl_load+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210else
11211 ac_check_lib_save_LIBS=$LIBS
11212LIBS="-ldld $LIBS"
11213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h. */
11215
11216/* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219#ifdef __cplusplus
11220extern "C"
11221#endif
11222char shl_load ();
11223int
11224main ()
11225{
11226return shl_load ();
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231if ac_fn_c_try_link "$LINENO"; then :
11232 ac_cv_lib_dld_shl_load=yes
11233else
11234 ac_cv_lib_dld_shl_load=no
11235fi
11236rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238LIBS=$ac_check_lib_save_LIBS
11239fi
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11241$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11242if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11244else
11245 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11246if test "x$ac_cv_func_dlopen" = xyes; then :
11247 lt_cv_dlopen="dlopen"
11248else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11250$as_echo_n "checking for dlopen in -ldl... " >&6; }
11251if ${ac_cv_lib_dl_dlopen+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253else
11254 ac_check_lib_save_LIBS=$LIBS
11255LIBS="-ldl $LIBS"
11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h. */
11258
11259/* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11262#ifdef __cplusplus
11263extern "C"
11264#endif
11265char dlopen ();
11266int
11267main ()
11268{
11269return dlopen ();
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_dl_dlopen=yes
11276else
11277 ac_cv_lib_dl_dlopen=no
11278fi
11279rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281LIBS=$ac_check_lib_save_LIBS
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11284$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11285if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11287else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11289$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11290if ${ac_cv_lib_svld_dlopen+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292else
11293 ac_check_lib_save_LIBS=$LIBS
11294LIBS="-lsvld $LIBS"
11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h. */
11297
11298/* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301#ifdef __cplusplus
11302extern "C"
11303#endif
11304char dlopen ();
11305int
11306main ()
11307{
11308return dlopen ();
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_svld_dlopen=yes
11315else
11316 ac_cv_lib_svld_dlopen=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320LIBS=$ac_check_lib_save_LIBS
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11323$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11324if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11326else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11328$as_echo_n "checking for dld_link in -ldld... " >&6; }
11329if ${ac_cv_lib_dld_dld_link+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331else
11332 ac_check_lib_save_LIBS=$LIBS
11333LIBS="-ldld $LIBS"
11334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335/* end confdefs.h. */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char dld_link ();
11344int
11345main ()
11346{
11347return dld_link ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352if ac_fn_c_try_link "$LINENO"; then :
11353 ac_cv_lib_dld_dld_link=yes
11354else
11355 ac_cv_lib_dld_dld_link=no
11356fi
11357rm -f core conftest.err conftest.$ac_objext \
11358 conftest$ac_exeext conftest.$ac_ext
11359LIBS=$ac_check_lib_save_LIBS
11360fi
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11362$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11363if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11365fi
11366
11367
11368fi
11369
11370
11371fi
11372
11373
11374fi
11375
11376
11377fi
11378
11379
11380fi
11381
11382 ;;
11383 esac
11384
11385 if test "x$lt_cv_dlopen" != xno; then
11386 enable_dlopen=yes
11387 else
11388 enable_dlopen=no
11389 fi
11390
11391 case $lt_cv_dlopen in
11392 dlopen)
11393 save_CPPFLAGS="$CPPFLAGS"
11394 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11395
11396 save_LDFLAGS="$LDFLAGS"
11397 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11398
11399 save_LIBS="$LIBS"
11400 LIBS="$lt_cv_dlopen_libs $LIBS"
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11403$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11404if ${lt_cv_dlopen_self+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406else
11407 if test "$cross_compiling" = yes; then :
11408 lt_cv_dlopen_self=cross
11409else
11410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11411 lt_status=$lt_dlunknown
11412 cat > conftest.$ac_ext <<_LT_EOF
11413#line $LINENO "configure"
11414#include "confdefs.h"
11415
11416#if HAVE_DLFCN_H
11417#include <dlfcn.h>
11418#endif
11419
11420#include <stdio.h>
11421
11422#ifdef RTLD_GLOBAL
11423# define LT_DLGLOBAL RTLD_GLOBAL
11424#else
11425# ifdef DL_GLOBAL
11426# define LT_DLGLOBAL DL_GLOBAL
11427# else
11428# define LT_DLGLOBAL 0
11429# endif
11430#endif
11431
11432/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11433 find out it does not work in some platform. */
11434#ifndef LT_DLLAZY_OR_NOW
11435# ifdef RTLD_LAZY
11436# define LT_DLLAZY_OR_NOW RTLD_LAZY
11437# else
11438# ifdef DL_LAZY
11439# define LT_DLLAZY_OR_NOW DL_LAZY
11440# else
11441# ifdef RTLD_NOW
11442# define LT_DLLAZY_OR_NOW RTLD_NOW
11443# else
11444# ifdef DL_NOW
11445# define LT_DLLAZY_OR_NOW DL_NOW
11446# else
11447# define LT_DLLAZY_OR_NOW 0
11448# endif
11449# endif
11450# endif
11451# endif
11452#endif
11453
11454/* When -fvisbility=hidden is used, assume the code has been annotated
11455 correspondingly for the symbols needed. */
11456#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11457int fnord () __attribute__((visibility("default")));
11458#endif
11459
11460int fnord () { return 42; }
11461int main ()
11462{
11463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11464 int status = $lt_dlunknown;
11465
11466 if (self)
11467 {
11468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11469 else
11470 {
11471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11472 else puts (dlerror ());
11473 }
11474 /* dlclose (self); */
11475 }
11476 else
11477 puts (dlerror ());
11478
11479 return status;
11480}
11481_LT_EOF
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483 (eval $ac_link) 2>&5
11484 ac_status=$?
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11487 (./conftest; exit; ) >&5 2>/dev/null
11488 lt_status=$?
11489 case x$lt_status in
11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11493 esac
11494 else :
11495 # compilation failed
11496 lt_cv_dlopen_self=no
11497 fi
11498fi
11499rm -fr conftest*
11500
11501
11502fi
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11504$as_echo "$lt_cv_dlopen_self" >&6; }
11505
11506 if test "x$lt_cv_dlopen_self" = xyes; then
11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11509$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11510if ${lt_cv_dlopen_self_static+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513 if test "$cross_compiling" = yes; then :
11514 lt_cv_dlopen_self_static=cross
11515else
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 lt_status=$lt_dlunknown
11518 cat > conftest.$ac_ext <<_LT_EOF
11519#line $LINENO "configure"
11520#include "confdefs.h"
11521
11522#if HAVE_DLFCN_H
11523#include <dlfcn.h>
11524#endif
11525
11526#include <stdio.h>
11527
11528#ifdef RTLD_GLOBAL
11529# define LT_DLGLOBAL RTLD_GLOBAL
11530#else
11531# ifdef DL_GLOBAL
11532# define LT_DLGLOBAL DL_GLOBAL
11533# else
11534# define LT_DLGLOBAL 0
11535# endif
11536#endif
11537
11538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540#ifndef LT_DLLAZY_OR_NOW
11541# ifdef RTLD_LAZY
11542# define LT_DLLAZY_OR_NOW RTLD_LAZY
11543# else
11544# ifdef DL_LAZY
11545# define LT_DLLAZY_OR_NOW DL_LAZY
11546# else
11547# ifdef RTLD_NOW
11548# define LT_DLLAZY_OR_NOW RTLD_NOW
11549# else
11550# ifdef DL_NOW
11551# define LT_DLLAZY_OR_NOW DL_NOW
11552# else
11553# define LT_DLLAZY_OR_NOW 0
11554# endif
11555# endif
11556# endif
11557# endif
11558#endif
11559
11560/* When -fvisbility=hidden is used, assume the code has been annotated
11561 correspondingly for the symbols needed. */
11562#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11563int fnord () __attribute__((visibility("default")));
11564#endif
11565
11566int fnord () { return 42; }
11567int main ()
11568{
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11570 int status = $lt_dlunknown;
11571
11572 if (self)
11573 {
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11575 else
11576 {
11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11578 else puts (dlerror ());
11579 }
11580 /* dlclose (self); */
11581 }
11582 else
11583 puts (dlerror ());
11584
11585 return status;
11586}
11587_LT_EOF
11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11589 (eval $ac_link) 2>&5
11590 ac_status=$?
11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11593 (./conftest; exit; ) >&5 2>/dev/null
11594 lt_status=$?
11595 case x$lt_status in
11596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11598 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11599 esac
11600 else :
11601 # compilation failed
11602 lt_cv_dlopen_self_static=no
11603 fi
11604fi
11605rm -fr conftest*
11606
11607
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11610$as_echo "$lt_cv_dlopen_self_static" >&6; }
11611 fi
11612
11613 CPPFLAGS="$save_CPPFLAGS"
11614 LDFLAGS="$save_LDFLAGS"
11615 LIBS="$save_LIBS"
11616 ;;
11617 esac
11618
11619 case $lt_cv_dlopen_self in
11620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11621 *) enable_dlopen_self=unknown ;;
11622 esac
11623
11624 case $lt_cv_dlopen_self_static in
11625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11626 *) enable_dlopen_self_static=unknown ;;
11627 esac
11628fi
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646striplib=
11647old_striplib=
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11649$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11650if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654$as_echo "yes" >&6; }
11655else
11656# FIXME - insert some real tests, host_os isn't really good enough
11657 case $host_os in
11658 darwin*)
11659 if test -n "$STRIP" ; then
11660 striplib="$STRIP -x"
11661 old_striplib="$STRIP -S"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663$as_echo "yes" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
11667 fi
11668 ;;
11669 *)
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
11672 ;;
11673 esac
11674fi
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687 # Report which library types will actually be built
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11689$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11691$as_echo "$can_build_shared" >&6; }
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11694$as_echo_n "checking whether to build shared libraries... " >&6; }
11695 test "$can_build_shared" = "no" && enable_shared=no
11696
11697 # On AIX, shared libraries and static libraries use the same namespace, and
11698 # are all built from PIC.
11699 case $host_os in
11700 aix3*)
11701 test "$enable_shared" = yes && enable_static=no
11702 if test -n "$RANLIB"; then
11703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11704 postinstall_cmds='$RANLIB $lib'
11705 fi
11706 ;;
11707
11708 aix[4-9]*)
11709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11710 test "$enable_shared" = yes && enable_static=no
11711 fi
11712 ;;
11713 esac
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11715$as_echo "$enable_shared" >&6; }
11716
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11718$as_echo_n "checking whether to build static libraries... " >&6; }
11719 # Make sure either enable_shared or enable_static is yes.
11720 test "$enable_shared" = yes || enable_static=yes
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11722$as_echo "$enable_static" >&6; }
11723
11724
11725
11726
11727fi
11728ac_ext=c
11729ac_cpp='$CPP $CPPFLAGS'
11730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11732ac_compiler_gnu=$ac_cv_c_compiler_gnu
11733
11734CC="$lt_save_CC"
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750 ac_config_commands="$ac_config_commands libtool"
11751
11752
11753
11754
11755# Only expand once:
11756
11757
11758
11759
11760# Check whether --with-libwardenc was given.
11761if test "${with_libwardenc+set}" = set; then :
11762 withval=$with_libwardenc;
11763fi
11764
11765 if test "x$with_libwardenc" != "xno"; then
11766 WITH_LIBWARDENC_TRUE=
11767 WITH_LIBWARDENC_FALSE='#'
11768else
11769 WITH_LIBWARDENC_TRUE='#'
11770 WITH_LIBWARDENC_FALSE=
11771fi
11772
11773if test "x$with_libwardenc" != "xno"; then
11774 LADD_LIBWARDENC="\$(top_srcdir)/lib/libwardenc/src/libwardenc.la"
11775 LINK_WARDENC="yes"
11776
11777$as_echo "#define USE_LIBWARDENC 1" >>confdefs.h
11778
11779else
11780 LINK_WARDENC="no"
11781fi
11782
11783
11784
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11786$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11787if ${libltdl_cv_shlibext+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790
11791module=yes
11792eval libltdl_cv_shlibext=$shrext_cmds
11793module=no
11794eval libltdl_cv_shrext=$shrext_cmds
11795
11796fi
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11798$as_echo "$libltdl_cv_shlibext" >&6; }
11799if test -n "$libltdl_cv_shlibext"; then
11800
11801cat >>confdefs.h <<_ACEOF
11802#define LT_MODULE_EXT "$libltdl_cv_shlibext"
11803_ACEOF
11804
11805fi
11806if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11807
11808cat >>confdefs.h <<_ACEOF
11809#define LT_SHARED_EXT "$libltdl_cv_shrext"
11810_ACEOF
11811
11812fi
11813
11814
11815# Checks for programs.
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821if test -n "$ac_tool_prefix"; then
11822 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11823set dummy ${ac_tool_prefix}gcc; ac_word=$2
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825$as_echo_n "checking for $ac_word... " >&6; }
11826if ${ac_cv_prog_CC+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828else
11829 if test -n "$CC"; then
11830 ac_cv_prog_CC="$CC" # Let the user override the test.
11831else
11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844 done
11845IFS=$as_save_IFS
11846
11847fi
11848fi
11849CC=$ac_cv_prog_CC
11850if test -n "$CC"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11852$as_echo "$CC" >&6; }
11853else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856fi
11857
11858
11859fi
11860if test -z "$ac_cv_prog_CC"; then
11861 ac_ct_CC=$CC
11862 # Extract the first word of "gcc", so it can be a program name with args.
11863set dummy gcc; ac_word=$2
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
11866if ${ac_cv_prog_ac_ct_CC+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868else
11869 if test -n "$ac_ct_CC"; then
11870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11871else
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_ac_ct_CC="gcc"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887fi
11888fi
11889ac_ct_CC=$ac_cv_prog_ac_ct_CC
11890if test -n "$ac_ct_CC"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11892$as_echo "$ac_ct_CC" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897
11898 if test "x$ac_ct_CC" = x; then
11899 CC=""
11900 else
11901 case $cross_compiling:$ac_tool_warned in
11902yes:)
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11905ac_tool_warned=yes ;;
11906esac
11907 CC=$ac_ct_CC
11908 fi
11909else
11910 CC="$ac_cv_prog_CC"
11911fi
11912
11913if test -z "$CC"; then
11914 if test -n "$ac_tool_prefix"; then
11915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11916set dummy ${ac_tool_prefix}cc; ac_word=$2
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918$as_echo_n "checking for $ac_word... " >&6; }
11919if ${ac_cv_prog_CC+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921else
11922 if test -n "$CC"; then
11923 ac_cv_prog_CC="$CC" # Let the user override the test.
11924else
11925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_CC="${ac_tool_prefix}cc"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11935 fi
11936done
11937 done
11938IFS=$as_save_IFS
11939
11940fi
11941fi
11942CC=$ac_cv_prog_CC
11943if test -n "$CC"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11945$as_echo "$CC" >&6; }
11946else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
11949fi
11950
11951
11952 fi
11953fi
11954if test -z "$CC"; then
11955 # Extract the first word of "cc", so it can be a program name with args.
11956set dummy cc; ac_word=$2
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958$as_echo_n "checking for $ac_word... " >&6; }
11959if ${ac_cv_prog_CC+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961else
11962 if test -n "$CC"; then
11963 ac_cv_prog_CC="$CC" # Let the user override the test.
11964else
11965 ac_prog_rejected=no
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11974 ac_prog_rejected=yes
11975 continue
11976 fi
11977 ac_cv_prog_CC="cc"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11980 fi
11981done
11982 done
11983IFS=$as_save_IFS
11984
11985if test $ac_prog_rejected = yes; then
11986 # We found a bogon in the path, so make sure we never use it.
11987 set dummy $ac_cv_prog_CC
11988 shift
11989 if test $# != 0; then
11990 # We chose a different compiler from the bogus one.
11991 # However, it has the same basename, so the bogon will be chosen
11992 # first if we set CC to just the basename; use the full file name.
11993 shift
11994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11995 fi
11996fi
11997fi
11998fi
11999CC=$ac_cv_prog_CC
12000if test -n "$CC"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12002$as_echo "$CC" >&6; }
12003else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
12006fi
12007
12008
12009fi
12010if test -z "$CC"; then
12011 if test -n "$ac_tool_prefix"; then
12012 for ac_prog in cl.exe
12013 do
12014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
12018if ${ac_cv_prog_CC+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020else
12021 if test -n "$CC"; then
12022 ac_cv_prog_CC="$CC" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035done
12036 done
12037IFS=$as_save_IFS
12038
12039fi
12040fi
12041CC=$ac_cv_prog_CC
12042if test -n "$CC"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12044$as_echo "$CC" >&6; }
12045else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
12048fi
12049
12050
12051 test -n "$CC" && break
12052 done
12053fi
12054if test -z "$CC"; then
12055 ac_ct_CC=$CC
12056 for ac_prog in cl.exe
12057do
12058 # Extract the first word of "$ac_prog", so it can be a program name with args.
12059set dummy $ac_prog; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if ${ac_cv_prog_ac_ct_CC+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if test -n "$ac_ct_CC"; then
12066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_ac_ct_CC="$ac_prog"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079done
12080 done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085ac_ct_CC=$ac_cv_prog_ac_ct_CC
12086if test -n "$ac_ct_CC"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12088$as_echo "$ac_ct_CC" >&6; }
12089else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095 test -n "$ac_ct_CC" && break
12096done
12097
12098 if test "x$ac_ct_CC" = x; then
12099 CC=""
12100 else
12101 case $cross_compiling:$ac_tool_warned in
12102yes:)
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12105ac_tool_warned=yes ;;
12106esac
12107 CC=$ac_ct_CC
12108 fi
12109fi
12110
12111fi
12112
12113
12114test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12116as_fn_error $? "no acceptable C compiler found in \$PATH
12117See \`config.log' for more details" "$LINENO" 5; }
12118
12119# Provide some information about the compiler.
12120$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12121set X $ac_compile
12122ac_compiler=$2
12123for ac_option in --version -v -V -qversion; do
12124 { { ac_try="$ac_compiler $ac_option >&5"
12125case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12130$as_echo "$ac_try_echo"; } >&5
12131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12132 ac_status=$?
12133 if test -s conftest.err; then
12134 sed '10a\
12135... rest of stderr output deleted ...
12136 10q' conftest.err >conftest.er1
12137 cat conftest.er1 >&5
12138 fi
12139 rm -f conftest.er1 conftest.err
12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12141 test $ac_status = 0; }
12142done
12143
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12145$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12146if ${ac_cv_c_compiler_gnu+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150/* end confdefs.h. */
12151
12152int
12153main ()
12154{
12155#ifndef __GNUC__
12156 choke me
12157#endif
12158
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163if ac_fn_c_try_compile "$LINENO"; then :
12164 ac_compiler_gnu=yes
12165else
12166 ac_compiler_gnu=no
12167fi
12168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169ac_cv_c_compiler_gnu=$ac_compiler_gnu
12170
12171fi
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12173$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12174if test $ac_compiler_gnu = yes; then
12175 GCC=yes
12176else
12177 GCC=
12178fi
12179ac_test_CFLAGS=${CFLAGS+set}
12180ac_save_CFLAGS=$CFLAGS
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12182$as_echo_n "checking whether $CC accepts -g... " >&6; }
12183if ${ac_cv_prog_cc_g+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185else
12186 ac_save_c_werror_flag=$ac_c_werror_flag
12187 ac_c_werror_flag=yes
12188 ac_cv_prog_cc_g=no
12189 CFLAGS="-g"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h. */
12192
12193int
12194main ()
12195{
12196
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_compile "$LINENO"; then :
12202 ac_cv_prog_cc_g=yes
12203else
12204 CFLAGS=""
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206/* end confdefs.h. */
12207
12208int
12209main ()
12210{
12211
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216if ac_fn_c_try_compile "$LINENO"; then :
12217
12218else
12219 ac_c_werror_flag=$ac_save_c_werror_flag
12220 CFLAGS="-g"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222/* end confdefs.h. */
12223
12224int
12225main ()
12226{
12227
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232if ac_fn_c_try_compile "$LINENO"; then :
12233 ac_cv_prog_cc_g=yes
12234fi
12235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236fi
12237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238fi
12239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 ac_c_werror_flag=$ac_save_c_werror_flag
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12243$as_echo "$ac_cv_prog_cc_g" >&6; }
12244if test "$ac_test_CFLAGS" = set; then
12245 CFLAGS=$ac_save_CFLAGS
12246elif test $ac_cv_prog_cc_g = yes; then
12247 if test "$GCC" = yes; then
12248 CFLAGS="-g -O2"
12249 else
12250 CFLAGS="-g"
12251 fi
12252else
12253 if test "$GCC" = yes; then
12254 CFLAGS="-O2"
12255 else
12256 CFLAGS=
12257 fi
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12260$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12261if ${ac_cv_prog_cc_c89+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263else
12264 ac_cv_prog_cc_c89=no
12265ac_save_CC=$CC
12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h. */
12268#include <stdarg.h>
12269#include <stdio.h>
12270struct stat;
12271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12272struct buf { int x; };
12273FILE * (*rcsopen) (struct buf *, struct stat *, int);
12274static char *e (p, i)
12275 char **p;
12276 int i;
12277{
12278 return p[i];
12279}
12280static char *f (char * (*g) (char **, int), char **p, ...)
12281{
12282 char *s;
12283 va_list v;
12284 va_start (v,p);
12285 s = g (p, va_arg (v,int));
12286 va_end (v);
12287 return s;
12288}
12289
12290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12291 function prototypes and stuff, but not '\xHH' hex character constants.
12292 These don't provoke an error unfortunately, instead are silently treated
12293 as 'x'. The following induces an error, until -std is added to get
12294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12295 array size at least. It's necessary to write '\x00'==0 to get something
12296 that's true only with -std. */
12297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12298
12299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12300 inside strings and character constants. */
12301#define FOO(x) 'x'
12302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12303
12304int test (int i, double x);
12305struct s1 {int (*f) (int a);};
12306struct s2 {int (*f) (double a);};
12307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12308int argc;
12309char **argv;
12310int
12311main ()
12312{
12313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12314 ;
12315 return 0;
12316}
12317_ACEOF
12318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12320do
12321 CC="$ac_save_CC $ac_arg"
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 ac_cv_prog_cc_c89=$ac_arg
12324fi
12325rm -f core conftest.err conftest.$ac_objext
12326 test "x$ac_cv_prog_cc_c89" != "xno" && break
12327done
12328rm -f conftest.$ac_ext
12329CC=$ac_save_CC
12330
12331fi
12332# AC_CACHE_VAL
12333case "x$ac_cv_prog_cc_c89" in
12334 x)
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12336$as_echo "none needed" >&6; } ;;
12337 xno)
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12339$as_echo "unsupported" >&6; } ;;
12340 *)
12341 CC="$CC $ac_cv_prog_cc_c89"
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12344esac
12345if test "x$ac_cv_prog_cc_c89" != xno; then :
12346
12347fi
12348
12349ac_ext=c
12350ac_cpp='$CPP $CPPFLAGS'
12351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
12355ac_ext=c
12356ac_cpp='$CPP $CPPFLAGS'
12357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359ac_compiler_gnu=$ac_cv_c_compiler_gnu
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12361$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12362if ${am_cv_prog_cc_c_o+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364else
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h. */
12367
12368int
12369main ()
12370{
12371
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376 # Make sure it works both with $CC and with simple cc.
12377 # Following AC_PROG_CC_C_O, we do the test twice because some
12378 # compilers refuse to overwrite an existing .o file with -o,
12379 # though they will create one.
12380 am_cv_prog_cc_c_o=yes
12381 for am_i in 1 2; do
12382 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12383 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } \
12387 && test -f conftest2.$ac_objext; then
12388 : OK
12389 else
12390 am_cv_prog_cc_c_o=no
12391 break
12392 fi
12393 done
12394 rm -f core conftest*
12395 unset am_i
12396fi
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12398$as_echo "$am_cv_prog_cc_c_o" >&6; }
12399if test "$am_cv_prog_cc_c_o" != yes; then
12400 # Losing compiler, so override with the script.
12401 # FIXME: It is wrong to rewrite CC.
12402 # But if we don't then we get into trouble of one sort or another.
12403 # A longer-term fix would be to have automake use am__CC in this case,
12404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12405 CC="$am_aux_dir/compile $CC"
12406fi
12407ac_ext=c
12408ac_cpp='$CPP $CPPFLAGS'
12409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411ac_compiler_gnu=$ac_cv_c_compiler_gnu
12412
12413
12414depcc="$CC" am_compiler_list=
12415
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12417$as_echo_n "checking dependency style of $depcc... " >&6; }
12418if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420else
12421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12422 # We make a subdir and do the tests there. Otherwise we can end up
12423 # making bogus files that we don't know about and never remove. For
12424 # instance it was reported that on HP-UX the gcc test will end up
12425 # making a dummy file named 'D' -- because '-MD' means "put the output
12426 # in D".
12427 rm -rf conftest.dir
12428 mkdir conftest.dir
12429 # Copy depcomp to subdir because otherwise we won't find it if we're
12430 # using a relative directory.
12431 cp "$am_depcomp" conftest.dir
12432 cd conftest.dir
12433 # We will build objects and dependencies in a subdirectory because
12434 # it helps to detect inapplicable dependency modes. For instance
12435 # both Tru64's cc and ICC support -MD to output dependencies as a
12436 # side effect of compilation, but ICC will put the dependencies in
12437 # the current directory while Tru64 will put them in the object
12438 # directory.
12439 mkdir sub
12440
12441 am_cv_CC_dependencies_compiler_type=none
12442 if test "$am_compiler_list" = ""; then
12443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12444 fi
12445 am__universal=false
12446 case " $depcc " in #(
12447 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12448 esac
12449
12450 for depmode in $am_compiler_list; do
12451 # Setup a source with many dependencies, because some compilers
12452 # like to wrap large dependency lists on column 80 (with \), and
12453 # we should not choose a depcomp mode which is confused by this.
12454 #
12455 # We need to recreate these files for each test, as the compiler may
12456 # overwrite some of them when testing with obscure command lines.
12457 # This happens at least with the AIX C compiler.
12458 : > sub/conftest.c
12459 for i in 1 2 3 4 5 6; do
12460 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12461 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12462 # Solaris 10 /bin/sh.
12463 echo '/* dummy */' > sub/conftst$i.h
12464 done
12465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12466
12467 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12468 # mode. It turns out that the SunPro C++ compiler does not properly
12469 # handle '-M -o', and we need to detect this. Also, some Intel
12470 # versions had trouble with output in subdirs.
12471 am__obj=sub/conftest.${OBJEXT-o}
12472 am__minus_obj="-o $am__obj"
12473 case $depmode in
12474 gcc)
12475 # This depmode causes a compiler race in universal mode.
12476 test "$am__universal" = false || continue
12477 ;;
12478 nosideeffect)
12479 # After this tag, mechanisms are not by side-effect, so they'll
12480 # only be used when explicitly requested.
12481 if test "x$enable_dependency_tracking" = xyes; then
12482 continue
12483 else
12484 break
12485 fi
12486 ;;
12487 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12488 # This compiler won't grok '-c -o', but also, the minuso test has
12489 # not run yet. These depmodes are late enough in the game, and
12490 # so weak that their functioning should not be impacted.
12491 am__obj=conftest.${OBJEXT-o}
12492 am__minus_obj=
12493 ;;
12494 none) break ;;
12495 esac
12496 if depmode=$depmode \
12497 source=sub/conftest.c object=$am__obj \
12498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12499 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12500 >/dev/null 2>conftest.err &&
12501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12503 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12505 # icc doesn't choke on unknown options, it will just issue warnings
12506 # or remarks (even with -Werror). So we grep stderr for any message
12507 # that says an option was ignored or not supported.
12508 # When given -MP, icc 7.0 and 7.1 complain thusly:
12509 # icc: Command line warning: ignoring option '-M'; no argument required
12510 # The diagnosis changed in icc 8.0:
12511 # icc: Command line remark: option '-MP' not supported
12512 if (grep 'ignoring option' conftest.err ||
12513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12514 am_cv_CC_dependencies_compiler_type=$depmode
12515 break
12516 fi
12517 fi
12518 done
12519
12520 cd ..
12521 rm -rf conftest.dir
12522else
12523 am_cv_CC_dependencies_compiler_type=none
12524fi
12525
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12528$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12529CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12530
12531 if
12532 test "x$enable_dependency_tracking" != xno \
12533 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12534 am__fastdepCC_TRUE=
12535 am__fastdepCC_FALSE='#'
12536else
12537 am__fastdepCC_TRUE='#'
12538 am__fastdepCC_FALSE=
12539fi
12540
12541
12542
12543
12544
12545if test "x$GCC" = "xyes"; then
12546 CFLAG_M32="-m32"
12547 CFLAG_FVISIBILITY_HIDDEN="-fvisibility=hidden"
12548 CPPFLAG_DEXPORT="-D_export=\"__attribute__((visibility(\\\"default\\\")))\""
12549 LDFLAG_RDYNAMIC="-rdynamic"
12550fi
12551
12552if test "x$with_libwardenc" != "xno"; then
12553 AM_CFLAGS="$CFLAG_M32"
12554 STRING_AM_CFLAGS="[$AM_CFLAGS] "
12555fi
12556AM_CPPFLAGS="-I\$(top_srcdir)/lib/util/include"
12557
12558
12559
12560
12561
12562
12563_CFLAGS="$CFLAGS"
12564CFLAGS="$AM_CFLAGS $CFLAGS"
12565
12566# Checks for libraries.
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12568$as_echo_n "checking for dlopen in -ldl... " >&6; }
12569if ${ac_cv_lib_dl_dlopen+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571else
12572 ac_check_lib_save_LIBS=$LIBS
12573LIBS="-ldl $LIBS"
12574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h. */
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char dlopen ();
12584int
12585main ()
12586{
12587return dlopen ();
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_dl_dlopen=yes
12594else
12595 ac_cv_lib_dl_dlopen=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599LIBS=$ac_check_lib_save_LIBS
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12602$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12603if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12604
12605$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12606
12607else
12608 echo "error: libdl missing."; exit 1
12609fi
12610
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12612$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12613if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615else
12616 ac_check_lib_save_LIBS=$LIBS
12617LIBS="-lpthread $LIBS"
12618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619/* end confdefs.h. */
12620
12621/* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
12624#ifdef __cplusplus
12625extern "C"
12626#endif
12627char pthread_create ();
12628int
12629main ()
12630{
12631return pthread_create ();
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_lib_pthread_pthread_create=yes
12638else
12639 ac_cv_lib_pthread_pthread_create=no
12640fi
12641rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643LIBS=$ac_check_lib_save_LIBS
12644fi
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12646$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12647if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12648
12649$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
12650
12651else
12652 echo "error: libpthread missing."; exit 1
12653fi
12654
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12656$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12657if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 ac_check_lib_save_LIBS=$LIBS
12661LIBS="-lrt $LIBS"
12662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h. */
12664
12665/* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668#ifdef __cplusplus
12669extern "C"
12670#endif
12671char clock_gettime ();
12672int
12673main ()
12674{
12675return clock_gettime ();
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_rt_clock_gettime=yes
12682else
12683 ac_cv_lib_rt_clock_gettime=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687LIBS=$ac_check_lib_save_LIBS
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12690$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12691if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12692
12693$as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12694 LINK_RT="yes" LADD_LIBRT="-lrt"
12695else
12696 LINK_RT="no"
12697 echo "warning: librt missing. using compatibility header."
12698fi
12699
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optionGetValue in -lopts" >&5
12701$as_echo_n "checking for optionGetValue in -lopts... " >&6; }
12702if ${ac_cv_lib_opts_optionGetValue+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704else
12705 ac_check_lib_save_LIBS=$LIBS
12706LIBS="-lopts $LIBS"
12707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708/* end confdefs.h. */
12709
12710/* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12713#ifdef __cplusplus
12714extern "C"
12715#endif
12716char optionGetValue ();
12717int
12718main ()
12719{
12720return optionGetValue ();
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725if ac_fn_c_try_link "$LINENO"; then :
12726 ac_cv_lib_opts_optionGetValue=yes
12727else
12728 ac_cv_lib_opts_optionGetValue=no
12729fi
12730rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732LIBS=$ac_check_lib_save_LIBS
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opts_optionGetValue" >&5
12735$as_echo "$ac_cv_lib_opts_optionGetValue" >&6; }
12736if test "x$ac_cv_lib_opts_optionGetValue" = xyes; then :
12737
12738$as_echo "#define HAVE_LIBOPTS 1" >>confdefs.h
12739
12740else
12741 echo "error: libopts missing."; exit 1
12742fi
12743
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
12745$as_echo_n "checking for initscr in -lncurses... " >&6; }
12746if ${ac_cv_lib_ncurses_initscr+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748else
12749 ac_check_lib_save_LIBS=$LIBS
12750LIBS="-lncurses $LIBS"
12751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h. */
12753
12754/* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757#ifdef __cplusplus
12758extern "C"
12759#endif
12760char initscr ();
12761int
12762main ()
12763{
12764return initscr ();
12765 ;
12766 return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"; then :
12770 ac_cv_lib_ncurses_initscr=yes
12771else
12772 ac_cv_lib_ncurses_initscr=no
12773fi
12774rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776LIBS=$ac_check_lib_save_LIBS
12777fi
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
12779$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
12780if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
12781
12782$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12783
12784else
12785 echo "error: libncurses missing."; exit 1
12786fi
12787
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12789$as_echo_n "checking for sqrt in -lm... " >&6; }
12790if ${ac_cv_lib_m_sqrt+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792else
12793 ac_check_lib_save_LIBS=$LIBS
12794LIBS="-lm $LIBS"
12795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h. */
12797
12798/* Override any GCC internal prototype to avoid an error.
12799 Use char because int might match the return type of a GCC
12800 builtin and then its argument prototype would still apply. */
12801#ifdef __cplusplus
12802extern "C"
12803#endif
12804char sqrt ();
12805int
12806main ()
12807{
12808return sqrt ();
12809 ;
12810 return 0;
12811}
12812_ACEOF
12813if ac_fn_c_try_link "$LINENO"; then :
12814 ac_cv_lib_m_sqrt=yes
12815else
12816 ac_cv_lib_m_sqrt=no
12817fi
12818rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12820LIBS=$ac_check_lib_save_LIBS
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12823$as_echo "$ac_cv_lib_m_sqrt" >&6; }
12824if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12825
12826$as_echo "#define HAVE_LIBM 1" >>confdefs.h
12827
12828else
12829 echo "warning: libm missing. some plugins will not build."
12830fi
12831
12832
12833CFLAGS="$_CFLAGS"
12834
12835
12836
12837# Checks for header files.
12838for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termios.h unistd.h
12839do :
12840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12841ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12842if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12843 cat >>confdefs.h <<_ACEOF
12844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12845_ACEOF
12846
12847fi
12848
12849done
12850
12851
12852# Checks for typedefs, structures, and compiler characteristics.
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12854$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12855if ${ac_cv_header_stdbool_h+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857else
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h. */
12860
12861 #include <stdbool.h>
12862 #ifndef bool
12863 "error: bool is not defined"
12864 #endif
12865 #ifndef false
12866 "error: false is not defined"
12867 #endif
12868 #if false
12869 "error: false is not 0"
12870 #endif
12871 #ifndef true
12872 "error: true is not defined"
12873 #endif
12874 #if true != 1
12875 "error: true is not 1"
12876 #endif
12877 #ifndef __bool_true_false_are_defined
12878 "error: __bool_true_false_are_defined is not defined"
12879 #endif
12880
12881 struct s { _Bool s: 1; _Bool t; } s;
12882
12883 char a[true == 1 ? 1 : -1];
12884 char b[false == 0 ? 1 : -1];
12885 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12886 char d[(bool) 0.5 == true ? 1 : -1];
12887 /* See body of main program for 'e'. */
12888 char f[(_Bool) 0.0 == false ? 1 : -1];
12889 char g[true];
12890 char h[sizeof (_Bool)];
12891 char i[sizeof s.t];
12892 enum { j = false, k = true, l = false * true, m = true * 256 };
12893 /* The following fails for
12894 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12895 _Bool n[m];
12896 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12897 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12898 /* Catch a bug in an HP-UX C compiler. See
12899 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12900 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12901 */
12902 _Bool q = true;
12903 _Bool *pq = &q;
12904
12905int
12906main ()
12907{
12908
12909 bool e = &s;
12910 *pq |= q;
12911 *pq |= ! q;
12912 /* Refer to every declared value, to avoid compiler optimizations. */
12913 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12914 + !m + !n + !o + !p + !q + !pq);
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920if ac_fn_c_try_compile "$LINENO"; then :
12921 ac_cv_header_stdbool_h=yes
12922else
12923 ac_cv_header_stdbool_h=no
12924fi
12925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926fi
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12928$as_echo "$ac_cv_header_stdbool_h" >&6; }
12929 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12930if test "x$ac_cv_type__Bool" = xyes; then :
12931
12932cat >>confdefs.h <<_ACEOF
12933#define HAVE__BOOL 1
12934_ACEOF
12935
12936
12937fi
12938
12939
12940if test $ac_cv_header_stdbool_h = yes; then
12941
12942$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12943
12944fi
12945
12946ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12947if test "x$ac_cv_type_size_t" = xyes; then :
12948
12949else
12950
12951cat >>confdefs.h <<_ACEOF
12952#define size_t unsigned int
12953_ACEOF
12954
12955fi
12956
12957
12958for ac_header in time.h
12959do :
12960 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12961if test "x$ac_cv_header_time_h" = xyes; then :
12962 cat >>confdefs.h <<_ACEOF
12963#define HAVE_TIME_H 1
12964_ACEOF
12965 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "#include <time.h>
12966"
12967if test "x$ac_cv_type_clockid_t" = xyes; then :
12968
12969cat >>confdefs.h <<_ACEOF
12970#define HAVE_CLOCKID_T 1
12971_ACEOF
12972
12973
12974fi
12975
12976fi
12977
12978done
12979
12980
12981# Checks for library functions.
12982for ac_header in stdlib.h
12983do :
12984 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12985if test "x$ac_cv_header_stdlib_h" = xyes; then :
12986 cat >>confdefs.h <<_ACEOF
12987#define HAVE_STDLIB_H 1
12988_ACEOF
12989
12990fi
12991
12992done
12993
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12995$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12996if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998else
12999 if test "$cross_compiling" = yes; then :
13000 ac_cv_func_malloc_0_nonnull=no
13001else
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003/* end confdefs.h. */
13004#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13005# include <stdlib.h>
13006#else
13007char *malloc ();
13008#endif
13009
13010int
13011main ()
13012{
13013return ! malloc (0);
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_run "$LINENO"; then :
13019 ac_cv_func_malloc_0_nonnull=yes
13020else
13021 ac_cv_func_malloc_0_nonnull=no
13022fi
13023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13024 conftest.$ac_objext conftest.beam conftest.$ac_ext
13025fi
13026
13027fi
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13029$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13030if test $ac_cv_func_malloc_0_nonnull = yes; then :
13031
13032$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13033
13034else
13035 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13036
13037 case " $LIBOBJS " in
13038 *" malloc.$ac_objext "* ) ;;
13039 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13040 ;;
13041esac
13042
13043
13044$as_echo "#define malloc rpl_malloc" >>confdefs.h
13045
13046fi
13047
13048
13049for ac_header in stdlib.h
13050do :
13051 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13052if test "x$ac_cv_header_stdlib_h" = xyes; then :
13053 cat >>confdefs.h <<_ACEOF
13054#define HAVE_STDLIB_H 1
13055_ACEOF
13056
13057fi
13058
13059done
13060
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13062$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13063if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065else
13066 if test "$cross_compiling" = yes; then :
13067 ac_cv_func_realloc_0_nonnull=no
13068else
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070/* end confdefs.h. */
13071#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13072# include <stdlib.h>
13073#else
13074char *realloc ();
13075#endif
13076
13077int
13078main ()
13079{
13080return ! realloc (0, 0);
13081 ;
13082 return 0;
13083}
13084_ACEOF
13085if ac_fn_c_try_run "$LINENO"; then :
13086 ac_cv_func_realloc_0_nonnull=yes
13087else
13088 ac_cv_func_realloc_0_nonnull=no
13089fi
13090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13091 conftest.$ac_objext conftest.beam conftest.$ac_ext
13092fi
13093
13094fi
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13096$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13097if test $ac_cv_func_realloc_0_nonnull = yes; then :
13098
13099$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13100
13101else
13102 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13103
13104 case " $LIBOBJS " in
13105 *" realloc.$ac_objext "* ) ;;
13106 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13107 ;;
13108esac
13109
13110
13111$as_echo "#define realloc rpl_realloc" >>confdefs.h
13112
13113fi
13114
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
13117$as_echo_n "checking for working strnlen... " >&6; }
13118if ${ac_cv_func_strnlen_working+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 if test "$cross_compiling" = yes; then :
13122 # Guess no on AIX systems, yes otherwise.
13123 case "$host_os" in
13124 aix*) ac_cv_func_strnlen_working=no;;
13125 *) ac_cv_func_strnlen_working=yes;;
13126 esac
13127else
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129/* end confdefs.h. */
13130$ac_includes_default
13131int
13132main ()
13133{
13134
13135#define S "foobar"
13136#define S_LEN (sizeof S - 1)
13137
13138 /* At least one implementation is buggy: that of AIX 4.3 would
13139 give strnlen (S, 1) == 3. */
13140
13141 int i;
13142 for (i = 0; i < S_LEN + 1; ++i)
13143 {
13144 int expected = i <= S_LEN ? i : S_LEN;
13145 if (strnlen (S, i) != expected)
13146 return 1;
13147 }
13148 return 0;
13149
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154if ac_fn_c_try_run "$LINENO"; then :
13155 ac_cv_func_strnlen_working=yes
13156else
13157 ac_cv_func_strnlen_working=no
13158fi
13159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13160 conftest.$ac_objext conftest.beam conftest.$ac_ext
13161fi
13162
13163fi
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
13165$as_echo "$ac_cv_func_strnlen_working" >&6; }
13166test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
13167 *" strnlen.$ac_objext "* ) ;;
13168 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13169 ;;
13170esac
13171
13172
13173for ac_func in clock_gettime getcwd gethostbyname gettimeofday memset mkdir select socket sqrt strchr strdup strerror strrchr strstr setsockopt
13174do :
13175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13176ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13177if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13178 cat >>confdefs.h <<_ACEOF
13179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13180_ACEOF
13181
13182fi
13183done
13184
13185
13186configdir="\$(pkgdatadir)"
13187plugindir="\$(pkglibdir)/plugins"
13188
13189
13190
13191ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile lib/Makefile lib/util/Makefile lib/plugins/Makefile lib/plugins/bncs_login/Makefile lib/plugins/mcp_login/Makefile lib/plugins/mcp_game/Makefile lib/plugins/d2gs_chicken/Makefile lib/plugins/d2gs_pickit/Makefile lib/plugins/d2gs_pes/Makefile lib/plugins/d2gs_dclone/Makefile lib/plugins/d2gs_meph/Makefile lib/plugins/d2gs_pathing/Makefile lib/plugins/d2gs_record/Makefile"
13192
13193
13194
13195
13196subdirs="$subdirs lib/libwardenc"
13197
13198
13199cat >confcache <<\_ACEOF
13200# This file is a shell script that caches the results of configure
13201# tests run on this system so they can be shared between configure
13202# scripts and configure runs, see configure's option --config-cache.
13203# It is not useful on other systems. If it contains results you don't
13204# want to keep, you may remove or edit it.
13205#
13206# config.status only pays attention to the cache file if you give it
13207# the --recheck option to rerun configure.
13208#
13209# `ac_cv_env_foo' variables (set or unset) will be overridden when
13210# loading this file, other *unset* `ac_cv_foo' will be assigned the
13211# following values.
13212
13213_ACEOF
13214
13215# The following way of writing the cache mishandles newlines in values,
13216# but we know of no workaround that is simple, portable, and efficient.
13217# So, we kill variables containing newlines.
13218# Ultrix sh set writes to stderr and can't be redirected directly,
13219# and sets the high bit in the cache file unless we assign to the vars.
13220(
13221 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13222 eval ac_val=\$$ac_var
13223 case $ac_val in #(
13224 *${as_nl}*)
13225 case $ac_var in #(
13226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13228 esac
13229 case $ac_var in #(
13230 _ | IFS | as_nl) ;; #(
13231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13232 *) { eval $ac_var=; unset $ac_var;} ;;
13233 esac ;;
13234 esac
13235 done
13236
13237 (set) 2>&1 |
13238 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13239 *${as_nl}ac_space=\ *)
13240 # `set' does not quote correctly, so add quotes: double-quote
13241 # substitution turns \\\\ into \\, and sed turns \\ into \.
13242 sed -n \
13243 "s/'/'\\\\''/g;
13244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13245 ;; #(
13246 *)
13247 # `set' quotes correctly as required by POSIX, so do not add quotes.
13248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13249 ;;
13250 esac |
13251 sort
13252) |
13253 sed '
13254 /^ac_cv_env_/b end
13255 t clear
13256 :clear
13257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13258 t end
13259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13260 :end' >>confcache
13261if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13262 if test -w "$cache_file"; then
13263 if test "x$cache_file" != "x/dev/null"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13265$as_echo "$as_me: updating cache $cache_file" >&6;}
13266 if test ! -f "$cache_file" || test -h "$cache_file"; then
13267 cat confcache >"$cache_file"
13268 else
13269 case $cache_file in #(
13270 */* | ?:*)
13271 mv -f confcache "$cache_file"$$ &&
13272 mv -f "$cache_file"$$ "$cache_file" ;; #(
13273 *)
13274 mv -f confcache "$cache_file" ;;
13275 esac
13276 fi
13277 fi
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13280$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13281 fi
13282fi
13283rm -f confcache
13284
13285test "x$prefix" = xNONE && prefix=$ac_default_prefix
13286# Let make expand exec_prefix.
13287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13288
13289DEFS=-DHAVE_CONFIG_H
13290
13291ac_libobjs=
13292ac_ltlibobjs=
13293U=
13294for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13295 # 1. Remove the extension, and $U if already installed.
13296 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13297 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13299 # will be set to the directory where LIBOBJS objects are built.
13300 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13301 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13302done
13303LIBOBJS=$ac_libobjs
13304
13305LTLIBOBJS=$ac_ltlibobjs
13306
13307
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13309$as_echo_n "checking that generated files are newer than configure... " >&6; }
13310 if test -n "$am_sleep_pid"; then
13311 # Hide warnings about reused PIDs.
13312 wait $am_sleep_pid 2>/dev/null
13313 fi
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13315$as_echo "done" >&6; }
13316 if test -n "$EXEEXT"; then
13317 am__EXEEXT_TRUE=
13318 am__EXEEXT_FALSE='#'
13319else
13320 am__EXEEXT_TRUE='#'
13321 am__EXEEXT_FALSE=
13322fi
13323
13324if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13325 as_fn_error $? "conditional \"AMDEP\" was never defined.
13326Usually this means the macro was only invoked conditionally." "$LINENO" 5
13327fi
13328if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13329 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13330Usually this means the macro was only invoked conditionally." "$LINENO" 5
13331fi
13332if test -z "${WITH_LIBWARDENC_TRUE}" && test -z "${WITH_LIBWARDENC_FALSE}"; then
13333 as_fn_error $? "conditional \"WITH_LIBWARDENC\" was never defined.
13334Usually this means the macro was only invoked conditionally." "$LINENO" 5
13335fi
13336if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13337 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13338Usually this means the macro was only invoked conditionally." "$LINENO" 5
13339fi
13340
13341: "${CONFIG_STATUS=./config.status}"
13342ac_write_fail=0
13343ac_clean_files_save=$ac_clean_files
13344ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13346$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13347as_write_fail=0
13348cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13349#! $SHELL
13350# Generated by $as_me.
13351# Run this file to recreate the current configuration.
13352# Compiler output produced by configure, useful for debugging
13353# configure, is in config.log if it exists.
13354
13355debug=false
13356ac_cs_recheck=false
13357ac_cs_silent=false
13358
13359SHELL=\${CONFIG_SHELL-$SHELL}
13360export SHELL
13361_ASEOF
13362cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13363## -------------------- ##
13364## M4sh Initialization. ##
13365## -------------------- ##
13366
13367# Be more Bourne compatible
13368DUALCASE=1; export DUALCASE # for MKS sh
13369if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13370 emulate sh
13371 NULLCMD=:
13372 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13373 # is contrary to our usage. Disable this feature.
13374 alias -g '${1+"$@"}'='"$@"'
13375 setopt NO_GLOB_SUBST
13376else
13377 case `(set -o) 2>/dev/null` in #(
13378 *posix*) :
13379 set -o posix ;; #(
13380 *) :
13381 ;;
13382esac
13383fi
13384
13385
13386as_nl='
13387'
13388export as_nl
13389# Printing a long string crashes Solaris 7 /usr/bin/printf.
13390as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13391as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13392as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13393# Prefer a ksh shell builtin over an external printf program on Solaris,
13394# but without wasting forks for bash or zsh.
13395if test -z "$BASH_VERSION$ZSH_VERSION" \
13396 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13397 as_echo='print -r --'
13398 as_echo_n='print -rn --'
13399elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13400 as_echo='printf %s\n'
13401 as_echo_n='printf %s'
13402else
13403 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13404 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13405 as_echo_n='/usr/ucb/echo -n'
13406 else
13407 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13408 as_echo_n_body='eval
13409 arg=$1;
13410 case $arg in #(
13411 *"$as_nl"*)
13412 expr "X$arg" : "X\\(.*\\)$as_nl";
13413 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13414 esac;
13415 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13416 '
13417 export as_echo_n_body
13418 as_echo_n='sh -c $as_echo_n_body as_echo'
13419 fi
13420 export as_echo_body
13421 as_echo='sh -c $as_echo_body as_echo'
13422fi
13423
13424# The user is always right.
13425if test "${PATH_SEPARATOR+set}" != set; then
13426 PATH_SEPARATOR=:
13427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13428 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13429 PATH_SEPARATOR=';'
13430 }
13431fi
13432
13433
13434# IFS
13435# We need space, tab and new line, in precisely that order. Quoting is
13436# there to prevent editors from complaining about space-tab.
13437# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13438# splitting by setting IFS to empty value.)
13439IFS=" "" $as_nl"
13440
13441# Find who we are. Look in the path if we contain no directory separator.
13442as_myself=
13443case $0 in #((
13444 *[\\/]* ) as_myself=$0 ;;
13445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13451 done
13452IFS=$as_save_IFS
13453
13454 ;;
13455esac
13456# We did not find ourselves, most probably we were run as `sh COMMAND'
13457# in which case we are not to be found in the path.
13458if test "x$as_myself" = x; then
13459 as_myself=$0
13460fi
13461if test ! -f "$as_myself"; then
13462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13463 exit 1
13464fi
13465
13466# Unset variables that we do not need and which cause bugs (e.g. in
13467# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13468# suppresses any "Segmentation fault" message there. '((' could
13469# trigger a bug in pdksh 5.2.14.
13470for as_var in BASH_ENV ENV MAIL MAILPATH
13471do eval test x\${$as_var+set} = xset \
13472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13473done
13474PS1='$ '
13475PS2='> '
13476PS4='+ '
13477
13478# NLS nuisances.
13479LC_ALL=C
13480export LC_ALL
13481LANGUAGE=C
13482export LANGUAGE
13483
13484# CDPATH.
13485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13486
13487
13488# as_fn_error STATUS ERROR [LINENO LOG_FD]
13489# ----------------------------------------
13490# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13491# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13492# script with STATUS, using 1 if that was 0.
13493as_fn_error ()
13494{
13495 as_status=$1; test $as_status -eq 0 && as_status=1
13496 if test "$4"; then
13497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13499 fi
13500 $as_echo "$as_me: error: $2" >&2
13501 as_fn_exit $as_status
13502} # as_fn_error
13503
13504
13505# as_fn_set_status STATUS
13506# -----------------------
13507# Set $? to STATUS, without forking.
13508as_fn_set_status ()
13509{
13510 return $1
13511} # as_fn_set_status
13512
13513# as_fn_exit STATUS
13514# -----------------
13515# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13516as_fn_exit ()
13517{
13518 set +e
13519 as_fn_set_status $1
13520 exit $1
13521} # as_fn_exit
13522
13523# as_fn_unset VAR
13524# ---------------
13525# Portably unset VAR.
13526as_fn_unset ()
13527{
13528 { eval $1=; unset $1;}
13529}
13530as_unset=as_fn_unset
13531# as_fn_append VAR VALUE
13532# ----------------------
13533# Append the text in VALUE to the end of the definition contained in VAR. Take
13534# advantage of any shell optimizations that allow amortized linear growth over
13535# repeated appends, instead of the typical quadratic growth present in naive
13536# implementations.
13537if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13538 eval 'as_fn_append ()
13539 {
13540 eval $1+=\$2
13541 }'
13542else
13543 as_fn_append ()
13544 {
13545 eval $1=\$$1\$2
13546 }
13547fi # as_fn_append
13548
13549# as_fn_arith ARG...
13550# ------------------
13551# Perform arithmetic evaluation on the ARGs, and store the result in the
13552# global $as_val. Take advantage of shells that can avoid forks. The arguments
13553# must be portable across $(()) and expr.
13554if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13555 eval 'as_fn_arith ()
13556 {
13557 as_val=$(( $* ))
13558 }'
13559else
13560 as_fn_arith ()
13561 {
13562 as_val=`expr "$@" || test $? -eq 1`
13563 }
13564fi # as_fn_arith
13565
13566
13567if expr a : '\(a\)' >/dev/null 2>&1 &&
13568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13569 as_expr=expr
13570else
13571 as_expr=false
13572fi
13573
13574if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13575 as_basename=basename
13576else
13577 as_basename=false
13578fi
13579
13580if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13581 as_dirname=dirname
13582else
13583 as_dirname=false
13584fi
13585
13586as_me=`$as_basename -- "$0" ||
13587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13588 X"$0" : 'X\(//\)$' \| \
13589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13590$as_echo X/"$0" |
13591 sed '/^.*\/\([^/][^/]*\)\/*$/{
13592 s//\1/
13593 q
13594 }
13595 /^X\/\(\/\/\)$/{
13596 s//\1/
13597 q
13598 }
13599 /^X\/\(\/\).*/{
13600 s//\1/
13601 q
13602 }
13603 s/.*/./; q'`
13604
13605# Avoid depending upon Character Ranges.
13606as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13607as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13608as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13609as_cr_digits='0123456789'
13610as_cr_alnum=$as_cr_Letters$as_cr_digits
13611
13612ECHO_C= ECHO_N= ECHO_T=
13613case `echo -n x` in #(((((
13614-n*)
13615 case `echo 'xy\c'` in
13616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13617 xy) ECHO_C='\c';;
13618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13619 ECHO_T=' ';;
13620 esac;;
13621*)
13622 ECHO_N='-n';;
13623esac
13624
13625rm -f conf$$ conf$$.exe conf$$.file
13626if test -d conf$$.dir; then
13627 rm -f conf$$.dir/conf$$.file
13628else
13629 rm -f conf$$.dir
13630 mkdir conf$$.dir 2>/dev/null
13631fi
13632if (echo >conf$$.file) 2>/dev/null; then
13633 if ln -s conf$$.file conf$$ 2>/dev/null; then
13634 as_ln_s='ln -s'
13635 # ... but there are two gotchas:
13636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13638 # In both cases, we have to default to `cp -pR'.
13639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13640 as_ln_s='cp -pR'
13641 elif ln conf$$.file conf$$ 2>/dev/null; then
13642 as_ln_s=ln
13643 else
13644 as_ln_s='cp -pR'
13645 fi
13646else
13647 as_ln_s='cp -pR'
13648fi
13649rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13650rmdir conf$$.dir 2>/dev/null
13651
13652
13653# as_fn_mkdir_p
13654# -------------
13655# Create "$as_dir" as a directory, including parents if necessary.
13656as_fn_mkdir_p ()
13657{
13658
13659 case $as_dir in #(
13660 -*) as_dir=./$as_dir;;
13661 esac
13662 test -d "$as_dir" || eval $as_mkdir_p || {
13663 as_dirs=
13664 while :; do
13665 case $as_dir in #(
13666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13667 *) as_qdir=$as_dir;;
13668 esac
13669 as_dirs="'$as_qdir' $as_dirs"
13670 as_dir=`$as_dirname -- "$as_dir" ||
13671$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13672 X"$as_dir" : 'X\(//\)[^/]' \| \
13673 X"$as_dir" : 'X\(//\)$' \| \
13674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13675$as_echo X"$as_dir" |
13676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13677 s//\1/
13678 q
13679 }
13680 /^X\(\/\/\)[^/].*/{
13681 s//\1/
13682 q
13683 }
13684 /^X\(\/\/\)$/{
13685 s//\1/
13686 q
13687 }
13688 /^X\(\/\).*/{
13689 s//\1/
13690 q
13691 }
13692 s/.*/./; q'`
13693 test -d "$as_dir" && break
13694 done
13695 test -z "$as_dirs" || eval "mkdir $as_dirs"
13696 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13697
13698
13699} # as_fn_mkdir_p
13700if mkdir -p . 2>/dev/null; then
13701 as_mkdir_p='mkdir -p "$as_dir"'
13702else
13703 test -d ./-p && rmdir ./-p
13704 as_mkdir_p=false
13705fi
13706
13707
13708# as_fn_executable_p FILE
13709# -----------------------
13710# Test if FILE is an executable regular file.
13711as_fn_executable_p ()
13712{
13713 test -f "$1" && test -x "$1"
13714} # as_fn_executable_p
13715as_test_x='test -x'
13716as_executable_p=as_fn_executable_p
13717
13718# Sed expression to map a string onto a valid CPP name.
13719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13720
13721# Sed expression to map a string onto a valid variable name.
13722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13723
13724
13725exec 6>&1
13726## ----------------------------------- ##
13727## Main body of $CONFIG_STATUS script. ##
13728## ----------------------------------- ##
13729_ASEOF
13730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13731
13732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733# Save the log message, to keep $0 and so on meaningful, and to
13734# report actual input values of CONFIG_FILES etc. instead of their
13735# values after options handling.
13736ac_log="
13737This file was extended by motoko $as_me 0.1.0, which was
13738generated by GNU Autoconf 2.69. Invocation command line was
13739
13740 CONFIG_FILES = $CONFIG_FILES
13741 CONFIG_HEADERS = $CONFIG_HEADERS
13742 CONFIG_LINKS = $CONFIG_LINKS
13743 CONFIG_COMMANDS = $CONFIG_COMMANDS
13744 $ $0 $@
13745
13746on `(hostname || uname -n) 2>/dev/null | sed 1q`
13747"
13748
13749_ACEOF
13750
13751case $ac_config_files in *"
13752"*) set x $ac_config_files; shift; ac_config_files=$*;;
13753esac
13754
13755case $ac_config_headers in *"
13756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13757esac
13758
13759
13760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13761# Files that config.status was made for.
13762config_files="$ac_config_files"
13763config_headers="$ac_config_headers"
13764config_commands="$ac_config_commands"
13765
13766_ACEOF
13767
13768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13769ac_cs_usage="\
13770\`$as_me' instantiates files and other configuration actions
13771from templates according to the current configuration. Unless the files
13772and actions are specified as TAGs, all are instantiated by default.
13773
13774Usage: $0 [OPTION]... [TAG]...
13775
13776 -h, --help print this help, then exit
13777 -V, --version print version number and configuration settings, then exit
13778 --config print configuration, then exit
13779 -q, --quiet, --silent
13780 do not print progress messages
13781 -d, --debug don't remove temporary files
13782 --recheck update $as_me by reconfiguring in the same conditions
13783 --file=FILE[:TEMPLATE]
13784 instantiate the configuration file FILE
13785 --header=FILE[:TEMPLATE]
13786 instantiate the configuration header FILE
13787
13788Configuration files:
13789$config_files
13790
13791Configuration headers:
13792$config_headers
13793
13794Configuration commands:
13795$config_commands
13796
13797Report bugs to the package provider."
13798
13799_ACEOF
13800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13801ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13802ac_cs_version="\\
13803motoko config.status 0.1.0
13804configured by $0, generated by GNU Autoconf 2.69,
13805 with options \\"\$ac_cs_config\\"
13806
13807Copyright (C) 2012 Free Software Foundation, Inc.
13808This config.status script is free software; the Free Software Foundation
13809gives unlimited permission to copy, distribute and modify it."
13810
13811ac_pwd='$ac_pwd'
13812srcdir='$srcdir'
13813INSTALL='$INSTALL'
13814MKDIR_P='$MKDIR_P'
13815AWK='$AWK'
13816test -n "\$AWK" || AWK=awk
13817_ACEOF
13818
13819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13820# The default lists apply if the user does not specify any file.
13821ac_need_defaults=:
13822while test $# != 0
13823do
13824 case $1 in
13825 --*=?*)
13826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13828 ac_shift=:
13829 ;;
13830 --*=)
13831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13832 ac_optarg=
13833 ac_shift=:
13834 ;;
13835 *)
13836 ac_option=$1
13837 ac_optarg=$2
13838 ac_shift=shift
13839 ;;
13840 esac
13841
13842 case $ac_option in
13843 # Handling of the options.
13844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13845 ac_cs_recheck=: ;;
13846 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13847 $as_echo "$ac_cs_version"; exit ;;
13848 --config | --confi | --conf | --con | --co | --c )
13849 $as_echo "$ac_cs_config"; exit ;;
13850 --debug | --debu | --deb | --de | --d | -d )
13851 debug=: ;;
13852 --file | --fil | --fi | --f )
13853 $ac_shift
13854 case $ac_optarg in
13855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13856 '') as_fn_error $? "missing file argument" ;;
13857 esac
13858 as_fn_append CONFIG_FILES " '$ac_optarg'"
13859 ac_need_defaults=false;;
13860 --header | --heade | --head | --hea )
13861 $ac_shift
13862 case $ac_optarg in
13863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13864 esac
13865 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13866 ac_need_defaults=false;;
13867 --he | --h)
13868 # Conflict between --help and --header
13869 as_fn_error $? "ambiguous option: \`$1'
13870Try \`$0 --help' for more information.";;
13871 --help | --hel | -h )
13872 $as_echo "$ac_cs_usage"; exit ;;
13873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13874 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13875 ac_cs_silent=: ;;
13876
13877 # This is an error.
13878 -*) as_fn_error $? "unrecognized option: \`$1'
13879Try \`$0 --help' for more information." ;;
13880
13881 *) as_fn_append ac_config_targets " $1"
13882 ac_need_defaults=false ;;
13883
13884 esac
13885 shift
13886done
13887
13888ac_configure_extra_args=
13889
13890if $ac_cs_silent; then
13891 exec 6>/dev/null
13892 ac_configure_extra_args="$ac_configure_extra_args --silent"
13893fi
13894
13895_ACEOF
13896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13897if \$ac_cs_recheck; then
13898 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13899 shift
13900 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13901 CONFIG_SHELL='$SHELL'
13902 export CONFIG_SHELL
13903 exec "\$@"
13904fi
13905
13906_ACEOF
13907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908exec 5>>config.log
13909{
13910 echo
13911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13912## Running $as_me. ##
13913_ASBOX
13914 $as_echo "$ac_log"
13915} >&5
13916
13917_ACEOF
13918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13919#
13920# INIT-COMMANDS
13921#
13922AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13923
13924
13925# The HP-UX ksh and POSIX shell print the target directory to stdout
13926# if CDPATH is set.
13927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13928
13929sed_quote_subst='$sed_quote_subst'
13930double_quote_subst='$double_quote_subst'
13931delay_variable_subst='$delay_variable_subst'
13932macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13933macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13934enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13935enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13936pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13937enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13938SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13939ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13940PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13941host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13942host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13943host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13944build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13945build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13946build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13947SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13948Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13949GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13950EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13951FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13952LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13953NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13954LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13955max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13956ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13957exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13958lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13959lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13960lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13961lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13962lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13963reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13964reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13965OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13966deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13967file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13968file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13969want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13970DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13971sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13972AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13973AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13974archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13975STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13976RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13977old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13978old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13979old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13980lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13981CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13982CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13983compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13984GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13985lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13987lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13988lt_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"`'
13989nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13990lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13991objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13992MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13993lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13994lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13995lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13996lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13997lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13998need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13999MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14000DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14001NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14002LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14003OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14004OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14005libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14006shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14007extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14008archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14009enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14010export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14011whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14012compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14013old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14014old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14015archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14016archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14017module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14018module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14019with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14020allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14021no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14022hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14055sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14056hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14057enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14058enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14059enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14060old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14061striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14062
14063LTCC='$LTCC'
14064LTCFLAGS='$LTCFLAGS'
14065compiler='$compiler_DEFAULT'
14066
14067# A function that is used when there is no print builtin or printf.
14068func_fallback_echo ()
14069{
14070 eval 'cat <<_LTECHO_EOF
14071\$1
14072_LTECHO_EOF'
14073}
14074
14075# Quote evaled strings.
14076for var in SHELL \
14077ECHO \
14078PATH_SEPARATOR \
14079SED \
14080GREP \
14081EGREP \
14082FGREP \
14083LD \
14084NM \
14085LN_S \
14086lt_SP2NL \
14087lt_NL2SP \
14088reload_flag \
14089OBJDUMP \
14090deplibs_check_method \
14091file_magic_cmd \
14092file_magic_glob \
14093want_nocaseglob \
14094DLLTOOL \
14095sharedlib_from_linklib_cmd \
14096AR \
14097AR_FLAGS \
14098archiver_list_spec \
14099STRIP \
14100RANLIB \
14101CC \
14102CFLAGS \
14103compiler \
14104lt_cv_sys_global_symbol_pipe \
14105lt_cv_sys_global_symbol_to_cdecl \
14106lt_cv_sys_global_symbol_to_c_name_address \
14107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14108nm_file_list_spec \
14109lt_prog_compiler_no_builtin_flag \
14110lt_prog_compiler_pic \
14111lt_prog_compiler_wl \
14112lt_prog_compiler_static \
14113lt_cv_prog_compiler_c_o \
14114need_locks \
14115MANIFEST_TOOL \
14116DSYMUTIL \
14117NMEDIT \
14118LIPO \
14119OTOOL \
14120OTOOL64 \
14121shrext_cmds \
14122export_dynamic_flag_spec \
14123whole_archive_flag_spec \
14124compiler_needs_object \
14125with_gnu_ld \
14126allow_undefined_flag \
14127no_undefined_flag \
14128hardcode_libdir_flag_spec \
14129hardcode_libdir_separator \
14130exclude_expsyms \
14131include_expsyms \
14132file_list_spec \
14133variables_saved_for_relink \
14134libname_spec \
14135library_names_spec \
14136soname_spec \
14137install_override_mode \
14138finish_eval \
14139old_striplib \
14140striplib; do
14141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14142 *[\\\\\\\`\\"\\\$]*)
14143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14144 ;;
14145 *)
14146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14147 ;;
14148 esac
14149done
14150
14151# Double-quote double-evaled strings.
14152for var in reload_cmds \
14153old_postinstall_cmds \
14154old_postuninstall_cmds \
14155old_archive_cmds \
14156extract_expsyms_cmds \
14157old_archive_from_new_cmds \
14158old_archive_from_expsyms_cmds \
14159archive_cmds \
14160archive_expsym_cmds \
14161module_cmds \
14162module_expsym_cmds \
14163export_symbols_cmds \
14164prelink_cmds \
14165postlink_cmds \
14166postinstall_cmds \
14167postuninstall_cmds \
14168finish_cmds \
14169sys_lib_search_path_spec \
14170sys_lib_dlsearch_path_spec; do
14171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14172 *[\\\\\\\`\\"\\\$]*)
14173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14174 ;;
14175 *)
14176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14177 ;;
14178 esac
14179done
14180
14181ac_aux_dir='$ac_aux_dir'
14182xsi_shell='$xsi_shell'
14183lt_shell_append='$lt_shell_append'
14184
14185# See if we are running on zsh, and set the options which allow our
14186# commands through without removal of \ escapes INIT.
14187if test -n "\${ZSH_VERSION+set}" ; then
14188 setopt NO_GLOB_SUBST
14189fi
14190
14191
14192 PACKAGE='$PACKAGE'
14193 VERSION='$VERSION'
14194 TIMESTAMP='$TIMESTAMP'
14195 RM='$RM'
14196 ofile='$ofile'
14197
14198
14199
14200
14201_ACEOF
14202
14203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14204
14205# Handling of arguments.
14206for ac_config_target in $ac_config_targets
14207do
14208 case $ac_config_target in
14209 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14210 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14211 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14212 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14213 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14214 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14215 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14216 "lib/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/util/Makefile" ;;
14217 "lib/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/Makefile" ;;
14218 "lib/plugins/bncs_login/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/bncs_login/Makefile" ;;
14219 "lib/plugins/mcp_login/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/mcp_login/Makefile" ;;
14220 "lib/plugins/mcp_game/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/mcp_game/Makefile" ;;
14221 "lib/plugins/d2gs_chicken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_chicken/Makefile" ;;
14222 "lib/plugins/d2gs_pickit/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_pickit/Makefile" ;;
14223 "lib/plugins/d2gs_pes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_pes/Makefile" ;;
14224 "lib/plugins/d2gs_dclone/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_dclone/Makefile" ;;
14225 "lib/plugins/d2gs_meph/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_meph/Makefile" ;;
14226 "lib/plugins/d2gs_pathing/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_pathing/Makefile" ;;
14227 "lib/plugins/d2gs_record/Makefile") CONFIG_FILES="$CONFIG_FILES lib/plugins/d2gs_record/Makefile" ;;
14228
14229 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14230 esac
14231done
14232
14233
14234# If the user did not use the arguments to specify the items to instantiate,
14235# then the envvar interface is used. Set only those that are not.
14236# We use the long form for the default assignment because of an extremely
14237# bizarre bug on SunOS 4.1.3.
14238if $ac_need_defaults; then
14239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14242fi
14243
14244# Have a temporary directory for convenience. Make it in the build tree
14245# simply because there is no reason against having it here, and in addition,
14246# creating and moving files from /tmp can sometimes cause problems.
14247# Hook for its removal unless debugging.
14248# Note that there is a small window in which the directory will not be cleaned:
14249# after its creation but before its name has been assigned to `$tmp'.
14250$debug ||
14251{
14252 tmp= ac_tmp=
14253 trap 'exit_status=$?
14254 : "${ac_tmp:=$tmp}"
14255 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14256' 0
14257 trap 'as_fn_exit 1' 1 2 13 15
14258}
14259# Create a (secure) tmp directory for tmp files.
14260
14261{
14262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14263 test -d "$tmp"
14264} ||
14265{
14266 tmp=./conf$$-$RANDOM
14267 (umask 077 && mkdir "$tmp")
14268} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14269ac_tmp=$tmp
14270
14271# Set up the scripts for CONFIG_FILES section.
14272# No need to generate them if there are no CONFIG_FILES.
14273# This happens for instance with `./config.status config.h'.
14274if test -n "$CONFIG_FILES"; then
14275
14276
14277ac_cr=`echo X | tr X '\015'`
14278# On cygwin, bash can eat \r inside `` if the user requested igncr.
14279# But we know of no other shell where ac_cr would be empty at this
14280# point, so we can use a bashism as a fallback.
14281if test "x$ac_cr" = x; then
14282 eval ac_cr=\$\'\\r\'
14283fi
14284ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14285if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14286 ac_cs_awk_cr='\\r'
14287else
14288 ac_cs_awk_cr=$ac_cr
14289fi
14290
14291echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14292_ACEOF
14293
14294
14295{
14296 echo "cat >conf$$subs.awk <<_ACEOF" &&
14297 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14298 echo "_ACEOF"
14299} >conf$$subs.sh ||
14300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14301ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14302ac_delim='%!_!# '
14303for ac_last_try in false false false false false :; do
14304 . ./conf$$subs.sh ||
14305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14306
14307 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14308 if test $ac_delim_n = $ac_delim_num; then
14309 break
14310 elif $ac_last_try; then
14311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14312 else
14313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14314 fi
14315done
14316rm -f conf$$subs.sh
14317
14318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14320_ACEOF
14321sed -n '
14322h
14323s/^/S["/; s/!.*/"]=/
14324p
14325g
14326s/^[^!]*!//
14327:repl
14328t repl
14329s/'"$ac_delim"'$//
14330t delim
14331:nl
14332h
14333s/\(.\{148\}\)..*/\1/
14334t more1
14335s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14336p
14337n
14338b repl
14339:more1
14340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14341p
14342g
14343s/.\{148\}//
14344t nl
14345:delim
14346h
14347s/\(.\{148\}\)..*/\1/
14348t more2
14349s/["\\]/\\&/g; s/^/"/; s/$/"/
14350p
14351b
14352:more2
14353s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14354p
14355g
14356s/.\{148\}//
14357t delim
14358' <conf$$subs.awk | sed '
14359/^[^""]/{
14360 N
14361 s/\n//
14362}
14363' >>$CONFIG_STATUS || ac_write_fail=1
14364rm -f conf$$subs.awk
14365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14366_ACAWK
14367cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14368 for (key in S) S_is_set[key] = 1
14369 FS = ""
14370
14371}
14372{
14373 line = $ 0
14374 nfields = split(line, field, "@")
14375 substed = 0
14376 len = length(field[1])
14377 for (i = 2; i < nfields; i++) {
14378 key = field[i]
14379 keylen = length(key)
14380 if (S_is_set[key]) {
14381 value = S[key]
14382 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14383 len += length(value) + length(field[++i])
14384 substed = 1
14385 } else
14386 len += 1 + keylen
14387 }
14388
14389 print line
14390}
14391
14392_ACAWK
14393_ACEOF
14394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14395if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14396 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14397else
14398 cat
14399fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14400 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14401_ACEOF
14402
14403# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14404# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14405# trailing colons and then remove the whole line if VPATH becomes empty
14406# (actually we leave an empty line to preserve line numbers).
14407if test "x$srcdir" = x.; then
14408 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14409h
14410s///
14411s/^/:/
14412s/[ ]*$/:/
14413s/:\$(srcdir):/:/g
14414s/:\${srcdir}:/:/g
14415s/:@srcdir@:/:/g
14416s/^:*//
14417s/:*$//
14418x
14419s/\(=[ ]*\).*/\1/
14420G
14421s/\n//
14422s/^[^=]*=[ ]*$//
14423}'
14424fi
14425
14426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14427fi # test -n "$CONFIG_FILES"
14428
14429# Set up the scripts for CONFIG_HEADERS section.
14430# No need to generate them if there are no CONFIG_HEADERS.
14431# This happens for instance with `./config.status Makefile'.
14432if test -n "$CONFIG_HEADERS"; then
14433cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14434BEGIN {
14435_ACEOF
14436
14437# Transform confdefs.h into an awk script `defines.awk', embedded as
14438# here-document in config.status, that substitutes the proper values into
14439# config.h.in to produce config.h.
14440
14441# Create a delimiter string that does not exist in confdefs.h, to ease
14442# handling of long lines.
14443ac_delim='%!_!# '
14444for ac_last_try in false false :; do
14445 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14446 if test -z "$ac_tt"; then
14447 break
14448 elif $ac_last_try; then
14449 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14450 else
14451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14452 fi
14453done
14454
14455# For the awk script, D is an array of macro values keyed by name,
14456# likewise P contains macro parameters if any. Preserve backslash
14457# newline sequences.
14458
14459ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14460sed -n '
14461s/.\{148\}/&'"$ac_delim"'/g
14462t rset
14463:rset
14464s/^[ ]*#[ ]*define[ ][ ]*/ /
14465t def
14466d
14467:def
14468s/\\$//
14469t bsnl
14470s/["\\]/\\&/g
14471s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14472D["\1"]=" \3"/p
14473s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14474d
14475:bsnl
14476s/["\\]/\\&/g
14477s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14478D["\1"]=" \3\\\\\\n"\\/p
14479t cont
14480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14481t cont
14482d
14483:cont
14484n
14485s/.\{148\}/&'"$ac_delim"'/g
14486t clear
14487:clear
14488s/\\$//
14489t bsnlc
14490s/["\\]/\\&/g; s/^/"/; s/$/"/p
14491d
14492:bsnlc
14493s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14494b cont
14495' <confdefs.h | sed '
14496s/'"$ac_delim"'/"\\\
14497"/g' >>$CONFIG_STATUS || ac_write_fail=1
14498
14499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14500 for (key in D) D_is_set[key] = 1
14501 FS = ""
14502}
14503/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14504 line = \$ 0
14505 split(line, arg, " ")
14506 if (arg[1] == "#") {
14507 defundef = arg[2]
14508 mac1 = arg[3]
14509 } else {
14510 defundef = substr(arg[1], 2)
14511 mac1 = arg[2]
14512 }
14513 split(mac1, mac2, "(") #)
14514 macro = mac2[1]
14515 prefix = substr(line, 1, index(line, defundef) - 1)
14516 if (D_is_set[macro]) {
14517 # Preserve the white space surrounding the "#".
14518 print prefix "define", macro P[macro] D[macro]
14519 next
14520 } else {
14521 # Replace #undef with comments. This is necessary, for example,
14522 # in the case of _POSIX_SOURCE, which is predefined and required
14523 # on some systems where configure will not decide to define it.
14524 if (defundef == "undef") {
14525 print "/*", prefix defundef, macro, "*/"
14526 next
14527 }
14528 }
14529}
14530{ print }
14531_ACAWK
14532_ACEOF
14533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14535fi # test -n "$CONFIG_HEADERS"
14536
14537
14538eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14539shift
14540for ac_tag
14541do
14542 case $ac_tag in
14543 :[FHLC]) ac_mode=$ac_tag; continue;;
14544 esac
14545 case $ac_mode$ac_tag in
14546 :[FHL]*:*);;
14547 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14548 :[FH]-) ac_tag=-:-;;
14549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14550 esac
14551 ac_save_IFS=$IFS
14552 IFS=:
14553 set x $ac_tag
14554 IFS=$ac_save_IFS
14555 shift
14556 ac_file=$1
14557 shift
14558
14559 case $ac_mode in
14560 :L) ac_source=$1;;
14561 :[FH])
14562 ac_file_inputs=
14563 for ac_f
14564 do
14565 case $ac_f in
14566 -) ac_f="$ac_tmp/stdin";;
14567 *) # Look for the file first in the build tree, then in the source tree
14568 # (if the path is not absolute). The absolute path cannot be DOS-style,
14569 # because $ac_f cannot contain `:'.
14570 test -f "$ac_f" ||
14571 case $ac_f in
14572 [\\/$]*) false;;
14573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14574 esac ||
14575 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14576 esac
14577 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14578 as_fn_append ac_file_inputs " '$ac_f'"
14579 done
14580
14581 # Let's still pretend it is `configure' which instantiates (i.e., don't
14582 # use $as_me), people would be surprised to read:
14583 # /* config.h. Generated by config.status. */
14584 configure_input='Generated from '`
14585 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14586 `' by configure.'
14587 if test x"$ac_file" != x-; then
14588 configure_input="$ac_file. $configure_input"
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14590$as_echo "$as_me: creating $ac_file" >&6;}
14591 fi
14592 # Neutralize special characters interpreted by sed in replacement strings.
14593 case $configure_input in #(
14594 *\&* | *\|* | *\\* )
14595 ac_sed_conf_input=`$as_echo "$configure_input" |
14596 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14597 *) ac_sed_conf_input=$configure_input;;
14598 esac
14599
14600 case $ac_tag in
14601 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14603 esac
14604 ;;
14605 esac
14606
14607 ac_dir=`$as_dirname -- "$ac_file" ||
14608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14609 X"$ac_file" : 'X\(//\)[^/]' \| \
14610 X"$ac_file" : 'X\(//\)$' \| \
14611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14612$as_echo X"$ac_file" |
14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14614 s//\1/
14615 q
14616 }
14617 /^X\(\/\/\)[^/].*/{
14618 s//\1/
14619 q
14620 }
14621 /^X\(\/\/\)$/{
14622 s//\1/
14623 q
14624 }
14625 /^X\(\/\).*/{
14626 s//\1/
14627 q
14628 }
14629 s/.*/./; q'`
14630 as_dir="$ac_dir"; as_fn_mkdir_p
14631 ac_builddir=.
14632
14633case "$ac_dir" in
14634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14635*)
14636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14637 # A ".." for each directory in $ac_dir_suffix.
14638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14639 case $ac_top_builddir_sub in
14640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14642 esac ;;
14643esac
14644ac_abs_top_builddir=$ac_pwd
14645ac_abs_builddir=$ac_pwd$ac_dir_suffix
14646# for backward compatibility:
14647ac_top_builddir=$ac_top_build_prefix
14648
14649case $srcdir in
14650 .) # We are building in place.
14651 ac_srcdir=.
14652 ac_top_srcdir=$ac_top_builddir_sub
14653 ac_abs_top_srcdir=$ac_pwd ;;
14654 [\\/]* | ?:[\\/]* ) # Absolute name.
14655 ac_srcdir=$srcdir$ac_dir_suffix;
14656 ac_top_srcdir=$srcdir
14657 ac_abs_top_srcdir=$srcdir ;;
14658 *) # Relative name.
14659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14660 ac_top_srcdir=$ac_top_build_prefix$srcdir
14661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14662esac
14663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14664
14665
14666 case $ac_mode in
14667 :F)
14668 #
14669 # CONFIG_FILE
14670 #
14671
14672 case $INSTALL in
14673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14675 esac
14676 ac_MKDIR_P=$MKDIR_P
14677 case $MKDIR_P in
14678 [\\/$]* | ?:[\\/]* ) ;;
14679 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14680 esac
14681_ACEOF
14682
14683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684# If the template does not know about datarootdir, expand it.
14685# FIXME: This hack should be removed a few years after 2.60.
14686ac_datarootdir_hack=; ac_datarootdir_seen=
14687ac_sed_dataroot='
14688/datarootdir/ {
14689 p
14690 q
14691}
14692/@datadir@/p
14693/@docdir@/p
14694/@infodir@/p
14695/@localedir@/p
14696/@mandir@/p'
14697case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14698*datarootdir*) ac_datarootdir_seen=yes;;
14699*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14701$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14702_ACEOF
14703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14704 ac_datarootdir_hack='
14705 s&@datadir@&$datadir&g
14706 s&@docdir@&$docdir&g
14707 s&@infodir@&$infodir&g
14708 s&@localedir@&$localedir&g
14709 s&@mandir@&$mandir&g
14710 s&\\\${datarootdir}&$datarootdir&g' ;;
14711esac
14712_ACEOF
14713
14714# Neutralize VPATH when `$srcdir' = `.'.
14715# Shell code in configure.ac might set extrasub.
14716# FIXME: do we really want to maintain this feature?
14717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14718ac_sed_extra="$ac_vpsub
14719$extrasub
14720_ACEOF
14721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14722:t
14723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14724s|@configure_input@|$ac_sed_conf_input|;t t
14725s&@top_builddir@&$ac_top_builddir_sub&;t t
14726s&@top_build_prefix@&$ac_top_build_prefix&;t t
14727s&@srcdir@&$ac_srcdir&;t t
14728s&@abs_srcdir@&$ac_abs_srcdir&;t t
14729s&@top_srcdir@&$ac_top_srcdir&;t t
14730s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14731s&@builddir@&$ac_builddir&;t t
14732s&@abs_builddir@&$ac_abs_builddir&;t t
14733s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14734s&@INSTALL@&$ac_INSTALL&;t t
14735s&@MKDIR_P@&$ac_MKDIR_P&;t t
14736$ac_datarootdir_hack
14737"
14738eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14739 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14740
14741test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14742 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14744 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14746which seems to be undefined. Please make sure it is defined" >&5
14747$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14748which seems to be undefined. Please make sure it is defined" >&2;}
14749
14750 rm -f "$ac_tmp/stdin"
14751 case $ac_file in
14752 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14753 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14754 esac \
14755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14756 ;;
14757 :H)
14758 #
14759 # CONFIG_HEADER
14760 #
14761 if test x"$ac_file" != x-; then
14762 {
14763 $as_echo "/* $configure_input */" \
14764 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14765 } >"$ac_tmp/config.h" \
14766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14767 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14769$as_echo "$as_me: $ac_file is unchanged" >&6;}
14770 else
14771 rm -f "$ac_file"
14772 mv "$ac_tmp/config.h" "$ac_file" \
14773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14774 fi
14775 else
14776 $as_echo "/* $configure_input */" \
14777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14778 || as_fn_error $? "could not create -" "$LINENO" 5
14779 fi
14780# Compute "$ac_file"'s index in $config_headers.
14781_am_arg="$ac_file"
14782_am_stamp_count=1
14783for _am_header in $config_headers :; do
14784 case $_am_header in
14785 $_am_arg | $_am_arg:* )
14786 break ;;
14787 * )
14788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14789 esac
14790done
14791echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14792$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14793 X"$_am_arg" : 'X\(//\)[^/]' \| \
14794 X"$_am_arg" : 'X\(//\)$' \| \
14795 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14796$as_echo X"$_am_arg" |
14797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14798 s//\1/
14799 q
14800 }
14801 /^X\(\/\/\)[^/].*/{
14802 s//\1/
14803 q
14804 }
14805 /^X\(\/\/\)$/{
14806 s//\1/
14807 q
14808 }
14809 /^X\(\/\).*/{
14810 s//\1/
14811 q
14812 }
14813 s/.*/./; q'`/stamp-h$_am_stamp_count
14814 ;;
14815
14816 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14817$as_echo "$as_me: executing $ac_file commands" >&6;}
14818 ;;
14819 esac
14820
14821
14822 case $ac_file$ac_mode in
14823 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14824 # Older Autoconf quotes --file arguments for eval, but not when files
14825 # are listed without --file. Let's play safe and only enable the eval
14826 # if we detect the quoting.
14827 case $CONFIG_FILES in
14828 *\'*) eval set x "$CONFIG_FILES" ;;
14829 *) set x $CONFIG_FILES ;;
14830 esac
14831 shift
14832 for mf
14833 do
14834 # Strip MF so we end up with the name of the file.
14835 mf=`echo "$mf" | sed -e 's/:.*$//'`
14836 # Check whether this is an Automake generated Makefile or not.
14837 # We used to match only the files named 'Makefile.in', but
14838 # some people rename them; so instead we look at the file content.
14839 # Grep'ing the first line is not enough: some people post-process
14840 # each Makefile.in and add a new line on top of each file to say so.
14841 # Grep'ing the whole file is not good either: AIX grep has a line
14842 # limit of 2048, but all sed's we know have understand at least 4000.
14843 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14844 dirpart=`$as_dirname -- "$mf" ||
14845$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14846 X"$mf" : 'X\(//\)[^/]' \| \
14847 X"$mf" : 'X\(//\)$' \| \
14848 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14849$as_echo X"$mf" |
14850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14851 s//\1/
14852 q
14853 }
14854 /^X\(\/\/\)[^/].*/{
14855 s//\1/
14856 q
14857 }
14858 /^X\(\/\/\)$/{
14859 s//\1/
14860 q
14861 }
14862 /^X\(\/\).*/{
14863 s//\1/
14864 q
14865 }
14866 s/.*/./; q'`
14867 else
14868 continue
14869 fi
14870 # Extract the definition of DEPDIR, am__include, and am__quote
14871 # from the Makefile without running 'make'.
14872 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14873 test -z "$DEPDIR" && continue
14874 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14875 test -z "$am__include" && continue
14876 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14877 # Find all dependency output files, they are included files with
14878 # $(DEPDIR) in their names. We invoke sed twice because it is the
14879 # simplest approach to changing $(DEPDIR) to its actual value in the
14880 # expansion.
14881 for file in `sed -n "
14882 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14883 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14884 # Make sure the directory exists.
14885 test -f "$dirpart/$file" && continue
14886 fdir=`$as_dirname -- "$file" ||
14887$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14888 X"$file" : 'X\(//\)[^/]' \| \
14889 X"$file" : 'X\(//\)$' \| \
14890 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14891$as_echo X"$file" |
14892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14893 s//\1/
14894 q
14895 }
14896 /^X\(\/\/\)[^/].*/{
14897 s//\1/
14898 q
14899 }
14900 /^X\(\/\/\)$/{
14901 s//\1/
14902 q
14903 }
14904 /^X\(\/\).*/{
14905 s//\1/
14906 q
14907 }
14908 s/.*/./; q'`
14909 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14910 # echo "creating $dirpart/$file"
14911 echo '# dummy' > "$dirpart/$file"
14912 done
14913 done
14914}
14915 ;;
14916 "libtool":C)
14917
14918 # See if we are running on zsh, and set the options which allow our
14919 # commands through without removal of \ escapes.
14920 if test -n "${ZSH_VERSION+set}" ; then
14921 setopt NO_GLOB_SUBST
14922 fi
14923
14924 cfgfile="${ofile}T"
14925 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14926 $RM "$cfgfile"
14927
14928 cat <<_LT_EOF >> "$cfgfile"
14929#! $SHELL
14930
14931# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14932# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14933# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14934# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14935#
14936# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14937# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14938# Foundation, Inc.
14939# Written by Gordon Matzigkeit, 1996
14940#
14941# This file is part of GNU Libtool.
14942#
14943# GNU Libtool is free software; you can redistribute it and/or
14944# modify it under the terms of the GNU General Public License as
14945# published by the Free Software Foundation; either version 2 of
14946# the License, or (at your option) any later version.
14947#
14948# As a special exception to the GNU General Public License,
14949# if you distribute this file as part of a program or library that
14950# is built using GNU Libtool, you may include this file under the
14951# same distribution terms that you use for the rest of that program.
14952#
14953# GNU Libtool is distributed in the hope that it will be useful,
14954# but WITHOUT ANY WARRANTY; without even the implied warranty of
14955# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14956# GNU General Public License for more details.
14957#
14958# You should have received a copy of the GNU General Public License
14959# along with GNU Libtool; see the file COPYING. If not, a copy
14960# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14961# obtained by writing to the Free Software Foundation, Inc.,
14962# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14963
14964
14965# The names of the tagged configurations supported by this script.
14966available_tags=""
14967
14968# ### BEGIN LIBTOOL CONFIG
14969
14970# Which release of libtool.m4 was used?
14971macro_version=$macro_version
14972macro_revision=$macro_revision
14973
14974# Whether or not to build shared libraries.
14975build_libtool_libs=$enable_shared
14976
14977# Whether or not to build static libraries.
14978build_old_libs=$enable_static
14979
14980# What type of objects to build.
14981pic_mode=$pic_mode
14982
14983# Whether or not to optimize for fast installation.
14984fast_install=$enable_fast_install
14985
14986# Shell to use when invoking shell scripts.
14987SHELL=$lt_SHELL
14988
14989# An echo program that protects backslashes.
14990ECHO=$lt_ECHO
14991
14992# The PATH separator for the build system.
14993PATH_SEPARATOR=$lt_PATH_SEPARATOR
14994
14995# The host system.
14996host_alias=$host_alias
14997host=$host
14998host_os=$host_os
14999
15000# The build system.
15001build_alias=$build_alias
15002build=$build
15003build_os=$build_os
15004
15005# A sed program that does not truncate output.
15006SED=$lt_SED
15007
15008# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15009Xsed="\$SED -e 1s/^X//"
15010
15011# A grep program that handles long lines.
15012GREP=$lt_GREP
15013
15014# An ERE matcher.
15015EGREP=$lt_EGREP
15016
15017# A literal string matcher.
15018FGREP=$lt_FGREP
15019
15020# A BSD- or MS-compatible name lister.
15021NM=$lt_NM
15022
15023# Whether we need soft or hard links.
15024LN_S=$lt_LN_S
15025
15026# What is the maximum length of a command?
15027max_cmd_len=$max_cmd_len
15028
15029# Object file suffix (normally "o").
15030objext=$ac_objext
15031
15032# Executable file suffix (normally "").
15033exeext=$exeext
15034
15035# whether the shell understands "unset".
15036lt_unset=$lt_unset
15037
15038# turn spaces into newlines.
15039SP2NL=$lt_lt_SP2NL
15040
15041# turn newlines into spaces.
15042NL2SP=$lt_lt_NL2SP
15043
15044# convert \$build file names to \$host format.
15045to_host_file_cmd=$lt_cv_to_host_file_cmd
15046
15047# convert \$build files to toolchain format.
15048to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15049
15050# An object symbol dumper.
15051OBJDUMP=$lt_OBJDUMP
15052
15053# Method to check whether dependent libraries are shared objects.
15054deplibs_check_method=$lt_deplibs_check_method
15055
15056# Command to use when deplibs_check_method = "file_magic".
15057file_magic_cmd=$lt_file_magic_cmd
15058
15059# How to find potential files when deplibs_check_method = "file_magic".
15060file_magic_glob=$lt_file_magic_glob
15061
15062# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15063want_nocaseglob=$lt_want_nocaseglob
15064
15065# DLL creation program.
15066DLLTOOL=$lt_DLLTOOL
15067
15068# Command to associate shared and link libraries.
15069sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15070
15071# The archiver.
15072AR=$lt_AR
15073
15074# Flags to create an archive.
15075AR_FLAGS=$lt_AR_FLAGS
15076
15077# How to feed a file listing to the archiver.
15078archiver_list_spec=$lt_archiver_list_spec
15079
15080# A symbol stripping program.
15081STRIP=$lt_STRIP
15082
15083# Commands used to install an old-style archive.
15084RANLIB=$lt_RANLIB
15085old_postinstall_cmds=$lt_old_postinstall_cmds
15086old_postuninstall_cmds=$lt_old_postuninstall_cmds
15087
15088# Whether to use a lock for old archive extraction.
15089lock_old_archive_extraction=$lock_old_archive_extraction
15090
15091# A C compiler.
15092LTCC=$lt_CC
15093
15094# LTCC compiler flags.
15095LTCFLAGS=$lt_CFLAGS
15096
15097# Take the output of nm and produce a listing of raw symbols and C names.
15098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15099
15100# Transform the output of nm in a proper C declaration.
15101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15102
15103# Transform the output of nm in a C name address pair.
15104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15105
15106# Transform the output of nm in a C name address pair when lib prefix is needed.
15107global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15108
15109# Specify filename containing input files for \$NM.
15110nm_file_list_spec=$lt_nm_file_list_spec
15111
15112# The root where to search for dependent libraries,and in which our libraries should be installed.
15113lt_sysroot=$lt_sysroot
15114
15115# The name of the directory that contains temporary libtool files.
15116objdir=$objdir
15117
15118# Used to examine libraries when file_magic_cmd begins with "file".
15119MAGIC_CMD=$MAGIC_CMD
15120
15121# Must we lock files when doing compilation?
15122need_locks=$lt_need_locks
15123
15124# Manifest tool.
15125MANIFEST_TOOL=$lt_MANIFEST_TOOL
15126
15127# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15128DSYMUTIL=$lt_DSYMUTIL
15129
15130# Tool to change global to local symbols on Mac OS X.
15131NMEDIT=$lt_NMEDIT
15132
15133# Tool to manipulate fat objects and archives on Mac OS X.
15134LIPO=$lt_LIPO
15135
15136# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15137OTOOL=$lt_OTOOL
15138
15139# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15140OTOOL64=$lt_OTOOL64
15141
15142# Old archive suffix (normally "a").
15143libext=$libext
15144
15145# Shared library suffix (normally ".so").
15146shrext_cmds=$lt_shrext_cmds
15147
15148# The commands to extract the exported symbol list from a shared archive.
15149extract_expsyms_cmds=$lt_extract_expsyms_cmds
15150
15151# Variables whose values should be saved in libtool wrapper scripts and
15152# restored at link time.
15153variables_saved_for_relink=$lt_variables_saved_for_relink
15154
15155# Do we need the "lib" prefix for modules?
15156need_lib_prefix=$need_lib_prefix
15157
15158# Do we need a version for libraries?
15159need_version=$need_version
15160
15161# Library versioning type.
15162version_type=$version_type
15163
15164# Shared library runtime path variable.
15165runpath_var=$runpath_var
15166
15167# Shared library path variable.
15168shlibpath_var=$shlibpath_var
15169
15170# Is shlibpath searched before the hard-coded library search path?
15171shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15172
15173# Format of library name prefix.
15174libname_spec=$lt_libname_spec
15175
15176# List of archive names. First name is the real one, the rest are links.
15177# The last name is the one that the linker finds with -lNAME
15178library_names_spec=$lt_library_names_spec
15179
15180# The coded name of the library, if different from the real name.
15181soname_spec=$lt_soname_spec
15182
15183# Permission mode override for installation of shared libraries.
15184install_override_mode=$lt_install_override_mode
15185
15186# Command to use after installation of a shared archive.
15187postinstall_cmds=$lt_postinstall_cmds
15188
15189# Command to use after uninstallation of a shared archive.
15190postuninstall_cmds=$lt_postuninstall_cmds
15191
15192# Commands used to finish a libtool library installation in a directory.
15193finish_cmds=$lt_finish_cmds
15194
15195# As "finish_cmds", except a single script fragment to be evaled but
15196# not shown.
15197finish_eval=$lt_finish_eval
15198
15199# Whether we should hardcode library paths into libraries.
15200hardcode_into_libs=$hardcode_into_libs
15201
15202# Compile-time system search path for libraries.
15203sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15204
15205# Run-time system search path for libraries.
15206sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15207
15208# Whether dlopen is supported.
15209dlopen_support=$enable_dlopen
15210
15211# Whether dlopen of programs is supported.
15212dlopen_self=$enable_dlopen_self
15213
15214# Whether dlopen of statically linked programs is supported.
15215dlopen_self_static=$enable_dlopen_self_static
15216
15217# Commands to strip libraries.
15218old_striplib=$lt_old_striplib
15219striplib=$lt_striplib
15220
15221
15222# The linker used to build libraries.
15223LD=$lt_LD
15224
15225# How to create reloadable object files.
15226reload_flag=$lt_reload_flag
15227reload_cmds=$lt_reload_cmds
15228
15229# Commands used to build an old-style archive.
15230old_archive_cmds=$lt_old_archive_cmds
15231
15232# A language specific compiler.
15233CC=$lt_compiler
15234
15235# Is the compiler the GNU compiler?
15236with_gcc=$GCC
15237
15238# Compiler flag to turn off builtin functions.
15239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15240
15241# Additional compiler flags for building library objects.
15242pic_flag=$lt_lt_prog_compiler_pic
15243
15244# How to pass a linker flag through the compiler.
15245wl=$lt_lt_prog_compiler_wl
15246
15247# Compiler flag to prevent dynamic linking.
15248link_static_flag=$lt_lt_prog_compiler_static
15249
15250# Does compiler simultaneously support -c and -o options?
15251compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15252
15253# Whether or not to add -lc for building shared libraries.
15254build_libtool_need_lc=$archive_cmds_need_lc
15255
15256# Whether or not to disallow shared libs when runtime libs are static.
15257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15258
15259# Compiler flag to allow reflexive dlopens.
15260export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15261
15262# Compiler flag to generate shared objects directly from archives.
15263whole_archive_flag_spec=$lt_whole_archive_flag_spec
15264
15265# Whether the compiler copes with passing no objects directly.
15266compiler_needs_object=$lt_compiler_needs_object
15267
15268# Create an old-style archive from a shared archive.
15269old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15270
15271# Create a temporary old-style archive to link instead of a shared archive.
15272old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15273
15274# Commands used to build a shared archive.
15275archive_cmds=$lt_archive_cmds
15276archive_expsym_cmds=$lt_archive_expsym_cmds
15277
15278# Commands used to build a loadable module if different from building
15279# a shared archive.
15280module_cmds=$lt_module_cmds
15281module_expsym_cmds=$lt_module_expsym_cmds
15282
15283# Whether we are building with GNU ld or not.
15284with_gnu_ld=$lt_with_gnu_ld
15285
15286# Flag that allows shared libraries with undefined symbols to be built.
15287allow_undefined_flag=$lt_allow_undefined_flag
15288
15289# Flag that enforces no undefined symbols.
15290no_undefined_flag=$lt_no_undefined_flag
15291
15292# Flag to hardcode \$libdir into a binary during linking.
15293# This must work even if \$libdir does not exist
15294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15295
15296# Whether we need a single "-rpath" flag with a separated argument.
15297hardcode_libdir_separator=$lt_hardcode_libdir_separator
15298
15299# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15300# DIR into the resulting binary.
15301hardcode_direct=$hardcode_direct
15302
15303# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15304# DIR into the resulting binary and the resulting library dependency is
15305# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15306# library is relocated.
15307hardcode_direct_absolute=$hardcode_direct_absolute
15308
15309# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15310# into the resulting binary.
15311hardcode_minus_L=$hardcode_minus_L
15312
15313# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15314# into the resulting binary.
15315hardcode_shlibpath_var=$hardcode_shlibpath_var
15316
15317# Set to "yes" if building a shared library automatically hardcodes DIR
15318# into the library and all subsequent libraries and executables linked
15319# against it.
15320hardcode_automatic=$hardcode_automatic
15321
15322# Set to yes if linker adds runtime paths of dependent libraries
15323# to runtime path list.
15324inherit_rpath=$inherit_rpath
15325
15326# Whether libtool must link a program against all its dependency libraries.
15327link_all_deplibs=$link_all_deplibs
15328
15329# Set to "yes" if exported symbols are required.
15330always_export_symbols=$always_export_symbols
15331
15332# The commands to list exported symbols.
15333export_symbols_cmds=$lt_export_symbols_cmds
15334
15335# Symbols that should not be listed in the preloaded symbols.
15336exclude_expsyms=$lt_exclude_expsyms
15337
15338# Symbols that must always be exported.
15339include_expsyms=$lt_include_expsyms
15340
15341# Commands necessary for linking programs (against libraries) with templates.
15342prelink_cmds=$lt_prelink_cmds
15343
15344# Commands necessary for finishing linking programs.
15345postlink_cmds=$lt_postlink_cmds
15346
15347# Specify filename containing input files.
15348file_list_spec=$lt_file_list_spec
15349
15350# How to hardcode a shared library path into an executable.
15351hardcode_action=$hardcode_action
15352
15353# ### END LIBTOOL CONFIG
15354
15355_LT_EOF
15356
15357 case $host_os in
15358 aix3*)
15359 cat <<\_LT_EOF >> "$cfgfile"
15360# AIX sometimes has problems with the GCC collect2 program. For some
15361# reason, if we set the COLLECT_NAMES environment variable, the problems
15362# vanish in a puff of smoke.
15363if test "X${COLLECT_NAMES+set}" != Xset; then
15364 COLLECT_NAMES=
15365 export COLLECT_NAMES
15366fi
15367_LT_EOF
15368 ;;
15369 esac
15370
15371
15372ltmain="$ac_aux_dir/ltmain.sh"
15373
15374
15375 # We use sed instead of cat because bash on DJGPP gets confused if
15376 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15377 # text mode, it properly converts lines to CR/LF. This bash problem
15378 # is reportedly fixed, but why not run on old versions too?
15379 sed '$q' "$ltmain" >> "$cfgfile" \
15380 || (rm -f "$cfgfile"; exit 1)
15381
15382 if test x"$xsi_shell" = xyes; then
15383 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15384func_dirname ()\
15385{\
15386\ case ${1} in\
15387\ */*) func_dirname_result="${1%/*}${2}" ;;\
15388\ * ) func_dirname_result="${3}" ;;\
15389\ esac\
15390} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15391 && mv -f "$cfgfile.tmp" "$cfgfile" \
15392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15393test 0 -eq $? || _lt_function_replace_fail=:
15394
15395
15396 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15397func_basename ()\
15398{\
15399\ func_basename_result="${1##*/}"\
15400} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15401 && mv -f "$cfgfile.tmp" "$cfgfile" \
15402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15403test 0 -eq $? || _lt_function_replace_fail=:
15404
15405
15406 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15407func_dirname_and_basename ()\
15408{\
15409\ case ${1} in\
15410\ */*) func_dirname_result="${1%/*}${2}" ;;\
15411\ * ) func_dirname_result="${3}" ;;\
15412\ esac\
15413\ func_basename_result="${1##*/}"\
15414} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15415 && mv -f "$cfgfile.tmp" "$cfgfile" \
15416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15417test 0 -eq $? || _lt_function_replace_fail=:
15418
15419
15420 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15421func_stripname ()\
15422{\
15423\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15424\ # positional parameters, so assign one to ordinary parameter first.\
15425\ func_stripname_result=${3}\
15426\ func_stripname_result=${func_stripname_result#"${1}"}\
15427\ func_stripname_result=${func_stripname_result%"${2}"}\
15428} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15429 && mv -f "$cfgfile.tmp" "$cfgfile" \
15430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15431test 0 -eq $? || _lt_function_replace_fail=:
15432
15433
15434 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15435func_split_long_opt ()\
15436{\
15437\ func_split_long_opt_name=${1%%=*}\
15438\ func_split_long_opt_arg=${1#*=}\
15439} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15440 && mv -f "$cfgfile.tmp" "$cfgfile" \
15441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15442test 0 -eq $? || _lt_function_replace_fail=:
15443
15444
15445 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15446func_split_short_opt ()\
15447{\
15448\ func_split_short_opt_arg=${1#??}\
15449\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15450} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15451 && mv -f "$cfgfile.tmp" "$cfgfile" \
15452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15453test 0 -eq $? || _lt_function_replace_fail=:
15454
15455
15456 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15457func_lo2o ()\
15458{\
15459\ case ${1} in\
15460\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15461\ *) func_lo2o_result=${1} ;;\
15462\ esac\
15463} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15464 && mv -f "$cfgfile.tmp" "$cfgfile" \
15465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15466test 0 -eq $? || _lt_function_replace_fail=:
15467
15468
15469 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15470func_xform ()\
15471{\
15472 func_xform_result=${1%.*}.lo\
15473} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15474 && mv -f "$cfgfile.tmp" "$cfgfile" \
15475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15476test 0 -eq $? || _lt_function_replace_fail=:
15477
15478
15479 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15480func_arith ()\
15481{\
15482 func_arith_result=$(( $* ))\
15483} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15484 && mv -f "$cfgfile.tmp" "$cfgfile" \
15485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15486test 0 -eq $? || _lt_function_replace_fail=:
15487
15488
15489 sed -e '/^func_len ()$/,/^} # func_len /c\
15490func_len ()\
15491{\
15492 func_len_result=${#1}\
15493} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15494 && mv -f "$cfgfile.tmp" "$cfgfile" \
15495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15496test 0 -eq $? || _lt_function_replace_fail=:
15497
15498fi
15499
15500if test x"$lt_shell_append" = xyes; then
15501 sed -e '/^func_append ()$/,/^} # func_append /c\
15502func_append ()\
15503{\
15504 eval "${1}+=\\${2}"\
15505} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15506 && mv -f "$cfgfile.tmp" "$cfgfile" \
15507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15508test 0 -eq $? || _lt_function_replace_fail=:
15509
15510
15511 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15512func_append_quoted ()\
15513{\
15514\ func_quote_for_eval "${2}"\
15515\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15516} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15517 && mv -f "$cfgfile.tmp" "$cfgfile" \
15518 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15519test 0 -eq $? || _lt_function_replace_fail=:
15520
15521
15522 # Save a `func_append' function call where possible by direct use of '+='
15523 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15524 && mv -f "$cfgfile.tmp" "$cfgfile" \
15525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15526 test 0 -eq $? || _lt_function_replace_fail=:
15527else
15528 # Save a `func_append' function call even when '+=' is not available
15529 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15530 && mv -f "$cfgfile.tmp" "$cfgfile" \
15531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15532 test 0 -eq $? || _lt_function_replace_fail=:
15533fi
15534
15535if test x"$_lt_function_replace_fail" = x":"; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15537$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15538fi
15539
15540
15541 mv -f "$cfgfile" "$ofile" ||
15542 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15543 chmod +x "$ofile"
15544
15545 ;;
15546
15547 esac
15548done # for ac_tag
15549
15550
15551as_fn_exit 0
15552_ACEOF
15553ac_clean_files=$ac_clean_files_save
15554
15555test $ac_write_fail = 0 ||
15556 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15557
15558
15559# configure is writing to config.log, and then calls config.status.
15560# config.status does its own redirection, appending to config.log.
15561# Unfortunately, on DOS this fails, as config.log is still kept open
15562# by configure, so config.status won't be able to write to it; its
15563# output is simply discarded. So we exec the FD to /dev/null,
15564# effectively closing config.log, so it can be properly (re)opened and
15565# appended to by config.status. When coming back to configure, we
15566# need to make the FD available again.
15567if test "$no_create" != yes; then
15568 ac_cs_success=:
15569 ac_config_status_args=
15570 test "$silent" = yes &&
15571 ac_config_status_args="$ac_config_status_args --quiet"
15572 exec 5>/dev/null
15573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15574 exec 5>>config.log
15575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15576 # would make configure fail if this is the last instruction.
15577 $ac_cs_success || as_fn_exit 1
15578fi
15579
15580#
15581# CONFIG_SUBDIRS section.
15582#
15583if test "$no_recursion" != yes; then
15584
15585 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15586 # so they do not pile up.
15587 ac_sub_configure_args=
15588 ac_prev=
15589 eval "set x $ac_configure_args"
15590 shift
15591 for ac_arg
15592 do
15593 if test -n "$ac_prev"; then
15594 ac_prev=
15595 continue
15596 fi
15597 case $ac_arg in
15598 -cache-file | --cache-file | --cache-fil | --cache-fi \
15599 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15600 ac_prev=cache_file ;;
15601 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15602 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15603 | --c=*)
15604 ;;
15605 --config-cache | -C)
15606 ;;
15607 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15608 ac_prev=srcdir ;;
15609 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15610 ;;
15611 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15612 ac_prev=prefix ;;
15613 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15614 ;;
15615 --disable-option-checking)
15616 ;;
15617 *)
15618 case $ac_arg in
15619 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15620 esac
15621 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15622 esac
15623 done
15624
15625 # Always prepend --prefix to ensure using the same prefix
15626 # in subdir configurations.
15627 ac_arg="--prefix=$prefix"
15628 case $ac_arg in
15629 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630 esac
15631 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15632
15633 # Pass --silent
15634 if test "$silent" = yes; then
15635 ac_sub_configure_args="--silent $ac_sub_configure_args"
15636 fi
15637
15638 # Always prepend --disable-option-checking to silence warnings, since
15639 # different subdirs can have different --enable and --with options.
15640 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15641
15642 ac_popdir=`pwd`
15643 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15644
15645 # Do not complain, so a configure script can configure whichever
15646 # parts of a large source tree are present.
15647 test -d "$srcdir/$ac_dir" || continue
15648
15649 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15650 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15651 $as_echo "$ac_msg" >&6
15652 as_dir="$ac_dir"; as_fn_mkdir_p
15653 ac_builddir=.
15654
15655case "$ac_dir" in
15656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15657*)
15658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15659 # A ".." for each directory in $ac_dir_suffix.
15660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15661 case $ac_top_builddir_sub in
15662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15664 esac ;;
15665esac
15666ac_abs_top_builddir=$ac_pwd
15667ac_abs_builddir=$ac_pwd$ac_dir_suffix
15668# for backward compatibility:
15669ac_top_builddir=$ac_top_build_prefix
15670
15671case $srcdir in
15672 .) # We are building in place.
15673 ac_srcdir=.
15674 ac_top_srcdir=$ac_top_builddir_sub
15675 ac_abs_top_srcdir=$ac_pwd ;;
15676 [\\/]* | ?:[\\/]* ) # Absolute name.
15677 ac_srcdir=$srcdir$ac_dir_suffix;
15678 ac_top_srcdir=$srcdir
15679 ac_abs_top_srcdir=$srcdir ;;
15680 *) # Relative name.
15681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15682 ac_top_srcdir=$ac_top_build_prefix$srcdir
15683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15684esac
15685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15686
15687
15688 cd "$ac_dir"
15689
15690 # Check for guested configure; otherwise get Cygnus style configure.
15691 if test -f "$ac_srcdir/configure.gnu"; then
15692 ac_sub_configure=$ac_srcdir/configure.gnu
15693 elif test -f "$ac_srcdir/configure"; then
15694 ac_sub_configure=$ac_srcdir/configure
15695 elif test -f "$ac_srcdir/configure.in"; then
15696 # This should be Cygnus configure.
15697 ac_sub_configure=$ac_aux_dir/configure
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15700$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15701 ac_sub_configure=
15702 fi
15703
15704 # The recursion is here.
15705 if test -n "$ac_sub_configure"; then
15706 # Make the cache file name correct relative to the subdirectory.
15707 case $cache_file in
15708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15709 *) # Relative name.
15710 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15711 esac
15712
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15714$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15715 # The eval makes quoting arguments work.
15716 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15717 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15718 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15719 fi
15720
15721 cd "$ac_popdir"
15722 done
15723fi
15724if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15726$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15727fi
15728
15729
15730
15731 echo
15732"------------------------------------------------------------------------------
15733configuration (motoko):
15734
15735compiler: ${CC}
15736compiler flags: ${STRING_AM_CFLAGS}${CFLAGS}
15737preprocessor flags: ${CPPFLAGS}
15738linker flags: ${LDFLAGS}
15739link libwardenc: ${LINK_WARDENC}
15740link librt: ${LINK_RT}
15741host system: ${host}
15742module extension: `grep define\ LT_MODULE_EXT config.h | sed -e 's/^.*\("\..*"\)$/\1/'`
15743install path: ${prefix}
15744
15745consult config.h for further configuration information."