]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/bpf/configure
sim: switch to AC_CHECK_FUNCS_ONCE & merge a little
[thirdparty/binutils-gdb.git] / sim / bpf / configure
CommitLineData
b26e2ae7
JM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="Makefile.in"
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
37e9f182 632ac_func_list=
b26e2ae7
JM
633ac_subst_vars='LTLIBOBJS
634LIBOBJS
760b3e8b
MF
635sim_reserved_bits
636sim_hw
637sim_hw_objs
638sim_hw_cflags
639sim_float
b26e2ae7
JM
640cgen_breaks
641cgen
642cgendir
643CGEN_MAINT
644REPORT_BUGS_TEXI
645REPORT_BUGS_TO
646PKGVERSION
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
650lt_cv_dlopen_libs
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656AWK
657STRIP
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665SED
666LIBTOOL
667PLUGINS_FALSE
668PLUGINS_TRUE
669zlibinc
670zlibdir
671CATOBJEXT
672GENCAT
673INSTOBJEXT
674DATADIRNAME
675CATALOGS
676POSUB
677GMSGFMT
678XGETTEXT
679INCINTL
680LIBINTL_DEP
681LIBINTL
682USE_NLS
683GMAKE_FALSE
684GMAKE_TRUE
685MAKE
686CCDEPMODE
687DEPDIR
688am__leading_dot
689PACKAGE
46f900c0 690C_DIALECT
b26e2ae7
JM
691RANLIB
692AR
c2783492 693LDFLAGS_FOR_BUILD
c25ea03d 694CFLAGS_FOR_BUILD
b26e2ae7
JM
695CC_FOR_BUILD
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
699EGREP
700GREP
c2783492
MF
701CPP
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
b26e2ae7
JM
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
b26e2ae7
JM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
136da8cd
MF
758SHELL
759WERROR_CFLAGS
760WARN_CFLAGS
136da8cd 761sim_scache
760b3e8b 762sim_inline
136da8cd 763sim_endian
760b3e8b 764sim_default_model
136da8cd
MF
765sim_bitsize
766sim_alignment'
b26e2ae7
JM
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770with_system_zlib
771enable_plugins
772enable_shared
773enable_static
774with_pic
775enable_fast_install
776with_gnu_ld
777enable_libtool_lock
778enable_maintainer_mode
779enable_sim_debug
780enable_sim_stdio
781enable_sim_trace
782enable_sim_profile
783enable_sim_assert
784enable_sim_environment
785enable_sim_inline
786with_pkgversion
787with_bugurl
0316fb52 788enable_sim_bitsize
b26e2ae7
JM
789enable_sim_endian
790enable_sim_alignment
791enable_sim_scache
792enable_sim_default_model
5c1008a4
MF
793enable_werror
794enable_build_warnings
795enable_sim_build_warnings
b26e2ae7
JM
796enable_cgen_maint
797'
798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947"enable_$ac_useropt"
948"*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215done
1216
1217if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312else
1313 ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347\`configure' configures this package to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400_ACEOF
1401
1402 cat <<\_ACEOF
1403
1404Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413_ACEOF
1414fi
1415
1416if test -n "$ac_init_help"; then
1417
1418 cat <<\_ACEOF
1419
1420Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-plugins Enable support for plugins
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful (and
1432 sometimes confusing) to the casual installer
1433 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1434 itself)
1435 --enable-sim-stdio Specify whether to use stdio for console
1436 input/output
1437 --enable-sim-trace=opts Enable tracing of simulated programs
1438 --enable-sim-profile=opts
1439 Enable profiling flags
1440 --enable-sim-assert Specify whether to perform random assertions
1441 --enable-sim-environment=environment
1442 Specify mixed, user, virtual or operating
1443 environment
1444 --enable-sim-inline=inlines
1445 Specify which functions should be inlined
0316fb52 1446 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
b26e2ae7
JM
1447 --enable-sim-endian=endian
1448 Specify target byte endian orientation
1449 --enable-sim-alignment=align
1450 Specify strict, nonstrict or forced alignment of
1451 memory accesses
1452 --enable-sim-scache=size
1453 Specify simulator execution cache size
1454 --enable-sim-default-model=model
1455 Specify default model to simulate
5c1008a4
MF
1456 --enable-werror treat compile warnings as errors
1457 --enable-build-warnings enable build-time compiler warnings if gcc is used
1458 --enable-sim-build-warnings
1459 enable SIM specific build-time compiler warnings if
1460 gcc is used
b26e2ae7
JM
1461 --enable-cgen-maint=DIR build cgen generated files
1462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-system-zlib use installed libz
1467 --with-pic try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1471 --with-bugurl=URL Direct users to URL to report a bug
1472
1473Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CPP C preprocessor
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to the package provider.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548 cat <<\_ACEOF
1549configure
1550generated by GNU Autoconf 2.69
1551
1552Copyright (C) 2012 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556 exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594 ac_retval=1
1595fi
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_cpp LINENO
1602# ----------------------
1603# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_cpp ()
1605{
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } > conftest.i && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_cpp
1637
1638# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1639# -------------------------------------------------------
1640# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1641# the include files in INCLUDES and setting the cache variable VAR
1642# accordingly.
1643ac_fn_c_check_header_mongrel ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if eval \${$3+:} false; then :
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655else
1656 # Is the header compilable?
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1658$as_echo_n "checking $2 usability... " >&6; }
1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h. */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665 ac_header_compiler=yes
1666else
1667 ac_header_compiler=no
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1671$as_echo "$ac_header_compiler" >&6; }
1672
1673# Is the header present?
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1675$as_echo_n "checking $2 presence... " >&6; }
1676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_cpp "$LINENO"; then :
1681 ac_header_preproc=yes
1682else
1683 ac_header_preproc=no
1684fi
1685rm -f conftest.err conftest.i conftest.$ac_ext
1686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1687$as_echo "$ac_header_preproc" >&6; }
1688
1689# So? What about this header?
1690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1691 yes:no: )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1693$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1697 no:yes:* )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1699$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1701$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1703$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1705$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1707$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 ;;
1709esac
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714else
1715 eval "$3=\$ac_header_compiler"
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
1720fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_mongrel
1724
1725# ac_fn_c_try_run LINENO
1726# ----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728# that executables *can* be run.
1729ac_fn_c_try_run ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_run
1766
1767# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists and can be compiled using the include files in
1770# INCLUDES, setting the cache variable VAR accordingly.
1771ac_fn_c_check_header_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_header_compile
1797
1798# ac_fn_c_try_link LINENO
1799# -----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded.
1801ac_fn_c_try_link ()
1802{
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1826 }; then :
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833fi
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842} # ac_fn_c_try_link
1843
1844# ac_fn_c_check_func LINENO FUNC VAR
1845# ----------------------------------
1846# Tests whether FUNC exists, setting the cache variable VAR accordingly
1847ac_fn_c_check_func ()
1848{
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1859#define $2 innocuous_$2
1860
1861/* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $2 (); below.
1863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1864 <limits.h> exists even on freestanding compilers. */
1865
1866#ifdef __STDC__
1867# include <limits.h>
1868#else
1869# include <assert.h>
1870#endif
1871
1872#undef $2
1873
1874/* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877#ifdef __cplusplus
1878extern "C"
1879#endif
1880char $2 ();
1881/* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884#if defined __stub_$2 || defined __stub___$2
1885choke me
1886#endif
1887
1888int
1889main ()
1890{
1891return $2 ();
1892 ;
1893 return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_link "$LINENO"; then :
1897 eval "$3=yes"
1898else
1899 eval "$3=no"
1900fi
1901rm -f core conftest.err conftest.$ac_objext \
1902 conftest$ac_exeext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909} # ac_fn_c_check_func
1910
1911# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1912# ----------------------------------------------------
1913# Tries to find if the field MEMBER exists in type AGGR, after including
1914# INCLUDES, setting cache variable VAR accordingly.
1915ac_fn_c_check_member ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1919$as_echo_n "checking for $2.$3... " >&6; }
1920if eval \${$4+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$5
1926int
1927main ()
1928{
1929static $2 ac_aggr;
1930if (ac_aggr.$3)
1931return 0;
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$4=yes"
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941$5
1942int
1943main ()
1944{
1945static $2 ac_aggr;
1946if (sizeof ac_aggr.$3)
1947return 0;
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953 eval "$4=yes"
1954else
1955 eval "$4=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960fi
1961eval ac_res=\$$4
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_member
1967
1968# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1969# -------------------------------------------
1970# Tests whether TYPE exists after having included INCLUDES, setting cache
1971# variable VAR accordingly.
1972ac_fn_c_check_type ()
1973{
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979else
1980 eval "$3=no"
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$4
1984int
1985main ()
1986{
1987if (sizeof ($2))
1988 return 0;
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$4
1997int
1998main ()
1999{
2000if (sizeof (($2)))
2001 return 0;
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007
2008else
2009 eval "$3=yes"
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020} # ac_fn_c_check_type
2021cat >config.log <<_ACEOF
2022This file contains any messages produced by compilers while
2023running configure, to aid debugging if configure makes a mistake.
2024
2025It was created by $as_me, which was
2026generated by GNU Autoconf 2.69. Invocation command line was
2027
2028 $ $0 $@
2029
2030_ACEOF
2031exec 5>>config.log
2032{
2033cat <<_ASUNAME
2034## --------- ##
2035## Platform. ##
2036## --------- ##
2037
2038hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2039uname -m = `(uname -m) 2>/dev/null || echo unknown`
2040uname -r = `(uname -r) 2>/dev/null || echo unknown`
2041uname -s = `(uname -s) 2>/dev/null || echo unknown`
2042uname -v = `(uname -v) 2>/dev/null || echo unknown`
2043
2044/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2045/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2046
2047/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2048/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2049/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2050/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2051/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2052/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2053/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2054
2055_ASUNAME
2056
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 $as_echo "PATH: $as_dir"
2063 done
2064IFS=$as_save_IFS
2065
2066} >&5
2067
2068cat >&5 <<_ACEOF
2069
2070
2071## ----------- ##
2072## Core tests. ##
2073## ----------- ##
2074
2075_ACEOF
2076
2077
2078# Keep a trace of the command line.
2079# Strip out --no-create and --no-recursion so they do not pile up.
2080# Strip out --silent because we don't want to record it for future runs.
2081# Also quote any args containing shell meta-characters.
2082# Make two passes to allow for proper duplicate-argument suppression.
2083ac_configure_args=
2084ac_configure_args0=
2085ac_configure_args1=
2086ac_must_keep_next=false
2087for ac_pass in 1 2
2088do
2089 for ac_arg
2090 do
2091 case $ac_arg in
2092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2094 | -silent | --silent | --silen | --sile | --sil)
2095 continue ;;
2096 *\'*)
2097 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2098 esac
2099 case $ac_pass in
2100 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2101 2)
2102 as_fn_append ac_configure_args1 " '$ac_arg'"
2103 if test $ac_must_keep_next = true; then
2104 ac_must_keep_next=false # Got value, back to normal.
2105 else
2106 case $ac_arg in
2107 *=* | --config-cache | -C | -disable-* | --disable-* \
2108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2110 | -with-* | --with-* | -without-* | --without-* | --x)
2111 case "$ac_configure_args0 " in
2112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2113 esac
2114 ;;
2115 -* ) ac_must_keep_next=true ;;
2116 esac
2117 fi
2118 as_fn_append ac_configure_args " '$ac_arg'"
2119 ;;
2120 esac
2121 done
2122done
2123{ ac_configure_args0=; unset ac_configure_args0;}
2124{ ac_configure_args1=; unset ac_configure_args1;}
2125
2126# When interrupted or exit'd, cleanup temporary files, and complete
2127# config.log. We remove comments because anyway the quotes in there
2128# would cause problems or look ugly.
2129# WARNING: Use '\'' to represent an apostrophe within the trap.
2130# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2131trap 'exit_status=$?
2132 # Save into config.log some information that might help in debugging.
2133 {
2134 echo
2135
2136 $as_echo "## ---------------- ##
2137## Cache variables. ##
2138## ---------------- ##"
2139 echo
2140 # The following way of writing the cache mishandles newlines in values,
2141(
2142 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in #(
2145 *${as_nl}*)
2146 case $ac_var in #(
2147 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2148$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2149 esac
2150 case $ac_var in #(
2151 _ | IFS | as_nl) ;; #(
2152 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2153 *) { eval $ac_var=; unset $ac_var;} ;;
2154 esac ;;
2155 esac
2156 done
2157 (set) 2>&1 |
2158 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159 *${as_nl}ac_space=\ *)
2160 sed -n \
2161 "s/'\''/'\''\\\\'\'''\''/g;
2162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2163 ;; #(
2164 *)
2165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166 ;;
2167 esac |
2168 sort
2169)
2170 echo
2171
2172 $as_echo "## ----------------- ##
2173## Output variables. ##
2174## ----------------- ##"
2175 echo
2176 for ac_var in $ac_subst_vars
2177 do
2178 eval ac_val=\$$ac_var
2179 case $ac_val in
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2181 esac
2182 $as_echo "$ac_var='\''$ac_val'\''"
2183 done | sort
2184 echo
2185
2186 if test -n "$ac_subst_files"; then
2187 $as_echo "## ------------------- ##
2188## File substitutions. ##
2189## ------------------- ##"
2190 echo
2191 for ac_var in $ac_subst_files
2192 do
2193 eval ac_val=\$$ac_var
2194 case $ac_val in
2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 esac
2197 $as_echo "$ac_var='\''$ac_val'\''"
2198 done | sort
2199 echo
2200 fi
2201
2202 if test -s confdefs.h; then
2203 $as_echo "## ----------- ##
2204## confdefs.h. ##
2205## ----------- ##"
2206 echo
2207 cat confdefs.h
2208 echo
2209 fi
2210 test "$ac_signal" != 0 &&
2211 $as_echo "$as_me: caught signal $ac_signal"
2212 $as_echo "$as_me: exit $exit_status"
2213 } >&5
2214 rm -f core *.core core.conftest.* &&
2215 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2216 exit $exit_status
2217' 0
2218for ac_signal in 1 2 13 15; do
2219 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2220done
2221ac_signal=0
2222
2223# confdefs.h avoids OS command line length limits that DEFS can exceed.
2224rm -f -r conftest* confdefs.h
2225
2226$as_echo "/* confdefs.h */" > confdefs.h
2227
2228# Predefined preprocessor variables.
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_NAME "$PACKAGE_NAME"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_VERSION "$PACKAGE_VERSION"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_STRING "$PACKAGE_STRING"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_URL "$PACKAGE_URL"
2252_ACEOF
2253
2254
2255# Let the site file select an alternate cache file if it wants to.
2256# Prefer an explicitly selected file to automatically selected ones.
2257ac_site_file1=NONE
2258ac_site_file2=NONE
2259if test -n "$CONFIG_SITE"; then
2260 # We do not want a PATH search for config.site.
2261 case $CONFIG_SITE in #((
2262 -*) ac_site_file1=./$CONFIG_SITE;;
2263 */*) ac_site_file1=$CONFIG_SITE;;
2264 *) ac_site_file1=./$CONFIG_SITE;;
2265 esac
2266elif test "x$prefix" != xNONE; then
2267 ac_site_file1=$prefix/share/config.site
2268 ac_site_file2=$prefix/etc/config.site
2269else
2270 ac_site_file1=$ac_default_prefix/share/config.site
2271 ac_site_file2=$ac_default_prefix/etc/config.site
2272fi
2273for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2274do
2275 test "x$ac_site_file" = xNONE && continue
2276 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2278$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2279 sed 's/^/| /' "$ac_site_file" >&5
2280 . "$ac_site_file" \
2281 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283as_fn_error $? "failed to load site script $ac_site_file
2284See \`config.log' for more details" "$LINENO" 5; }
2285 fi
2286done
2287
2288if test -r "$cache_file"; then
2289 # Some versions of bash will fail to source /dev/null (special files
2290 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2291 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2293$as_echo "$as_me: loading cache $cache_file" >&6;}
2294 case $cache_file in
2295 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2296 *) . "./$cache_file";;
2297 esac
2298 fi
2299else
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2301$as_echo "$as_me: creating cache $cache_file" >&6;}
2302 >$cache_file
2303fi
2304
37e9f182
MF
2305as_fn_append ac_func_list " __setfpucw"
2306as_fn_append ac_func_list " ftruncate"
2307as_fn_append ac_func_list " getrusage"
2308as_fn_append ac_func_list " lstat"
2309as_fn_append ac_func_list " mmap"
2310as_fn_append ac_func_list " munmap"
2311as_fn_append ac_func_list " posix_fallocate"
2312as_fn_append ac_func_list " sigaction"
2313as_fn_append ac_func_list " time"
2314as_fn_append ac_func_list " truncate"
b26e2ae7
JM
2315# Check that the precious variables saved in the cache have kept the same
2316# value.
2317ac_cache_corrupted=false
2318for ac_var in $ac_precious_vars; do
2319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320 eval ac_new_set=\$ac_env_${ac_var}_set
2321 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322 eval ac_new_val=\$ac_env_${ac_var}_value
2323 case $ac_old_set,$ac_new_set in
2324 set,)
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2326$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2328 ,set)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2330$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,);;
2333 *)
2334 if test "x$ac_old_val" != "x$ac_new_val"; then
2335 # differences in whitespace do not lead to failure.
2336 ac_old_val_w=`echo x $ac_old_val`
2337 ac_new_val_w=`echo x $ac_new_val`
2338 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2340$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341 ac_cache_corrupted=:
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2344$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345 eval $ac_var=\$ac_old_val
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2348$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2350$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351 fi;;
2352 esac
2353 # Pass precious variables to config.status.
2354 if test "$ac_new_set" = set; then
2355 case $ac_new_val in
2356 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 *) ac_arg=$ac_var=$ac_new_val ;;
2358 esac
2359 case " $ac_configure_args " in
2360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2361 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362 esac
2363 fi
2364done
2365if $ac_cache_corrupted; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2369$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2370 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2371fi
2372## -------------------- ##
2373## Main body of script. ##
2374## -------------------- ##
2375
2376ac_ext=c
2377ac_cpp='$CPP $CPPFLAGS'
2378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381
2382
b26e2ae7
JM
2383
2384
2385
2386
2387
c2783492
MF
2388ac_aux_dir=
2389for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2390 if test -f "$ac_dir/install-sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install-sh -c"
2393 break
2394 elif test -f "$ac_dir/install.sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install.sh -c"
2397 break
2398 elif test -f "$ac_dir/shtool"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/shtool install -c"
2401 break
2402 fi
2403done
2404if test -z "$ac_aux_dir"; then
2405 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2406fi
2407
2408# These three variables are undocumented and unsupported,
2409# and are intended to be withdrawn in a future Autoconf release.
2410# They can cause serious problems if a builder's source tree is in a directory
2411# whose full name contains unusual characters.
2412ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2415
2416
2417# Make sure we can run config.sub.
2418$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2419 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2420
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2422$as_echo_n "checking build system type... " >&6; }
2423if ${ac_cv_build+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425else
2426 ac_build_alias=$build_alias
2427test "x$ac_build_alias" = x &&
2428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2429test "x$ac_build_alias" = x &&
2430 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2431ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2433
2434fi
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2436$as_echo "$ac_cv_build" >&6; }
2437case $ac_cv_build in
2438*-*-*) ;;
2439*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2440esac
2441build=$ac_cv_build
2442ac_save_IFS=$IFS; IFS='-'
2443set x $ac_cv_build
2444shift
2445build_cpu=$1
2446build_vendor=$2
2447shift; shift
2448# Remember, the first character of IFS is used to create $*,
2449# except with old shells:
2450build_os=$*
2451IFS=$ac_save_IFS
2452case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2453
2454
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2456$as_echo_n "checking host system type... " >&6; }
2457if ${ac_cv_host+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459else
2460 if test "x$host_alias" = x; then
2461 ac_cv_host=$ac_cv_build
2462else
2463 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2465fi
2466
2467fi
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2469$as_echo "$ac_cv_host" >&6; }
2470case $ac_cv_host in
2471*-*-*) ;;
2472*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2473esac
2474host=$ac_cv_host
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_host
2477shift
2478host_cpu=$1
2479host_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483host_os=$*
2484IFS=$ac_save_IFS
2485case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2486
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2489$as_echo_n "checking target system type... " >&6; }
2490if ${ac_cv_target+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492else
2493 if test "x$target_alias" = x; then
2494 ac_cv_target=$ac_cv_host
2495else
2496 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2498fi
2499
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2502$as_echo "$ac_cv_target" >&6; }
2503case $ac_cv_target in
2504*-*-*) ;;
2505*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2506esac
2507target=$ac_cv_target
2508ac_save_IFS=$IFS; IFS='-'
2509set x $ac_cv_target
2510shift
2511target_cpu=$1
2512target_vendor=$2
2513shift; shift
2514# Remember, the first character of IFS is used to create $*,
2515# except with old shells:
2516target_os=$*
2517IFS=$ac_save_IFS
2518case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2519
2520
2521# The aliases save the names the user supplied, while $host etc.
2522# will get canonicalized.
2523test -n "$target_alias" &&
2524 test "$program_prefix$program_suffix$program_transform_name" = \
2525 NONENONEs,x,x, &&
2526 program_prefix=${target_alias}-
b26e2ae7
JM
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_CC+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555 done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2563$as_echo "$CC" >&6; }
2564else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570fi
2571if test -z "$ac_cv_prog_CC"; then
2572 ac_ct_CC=$CC
2573 # Extract the first word of "gcc", so it can be a program name with args.
2574set dummy gcc; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_ac_ct_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_CC="gcc"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594done
2595 done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601if test -n "$ac_ct_CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2603$as_echo "$ac_ct_CC" >&6; }
2604else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613yes:)
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618 CC=$ac_ct_CC
2619 fi
2620else
2621 CC="$ac_cv_prog_CC"
2622fi
2623
2624if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627set dummy ${ac_tool_prefix}cc; ac_word=$2
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629$as_echo_n "checking for $ac_word... " >&6; }
2630if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635else
2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637for as_dir in $PATH
2638do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647done
2648 done
2649IFS=$as_save_IFS
2650
2651fi
2652fi
2653CC=$ac_cv_prog_CC
2654if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656$as_echo "$CC" >&6; }
2657else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659$as_echo "no" >&6; }
2660fi
2661
2662
2663 fi
2664fi
2665if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667set dummy cc; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if ${ac_cv_prog_CC+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
2676 ac_prog_rejected=no
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2686 continue
2687 fi
2688 ac_cv_prog_CC="cc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2699 shift
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2704 shift
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2706 fi
2707fi
2708fi
2709fi
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713$as_echo "$CC" >&6; }
2714else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
2718
2719
2720fi
2721if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2724 do
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747 done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755$as_echo "$CC" >&6; }
2756else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761
2762 test -n "$CC" && break
2763 done
2764fi
2765if test -z "$CC"; then
2766 ac_ct_CC=$CC
2767 for ac_prog in cl.exe
2768do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791 done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799$as_echo "$ac_ct_CC" >&6; }
2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806 test -n "$ac_ct_CC" && break
2807done
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813yes:)
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816ac_tool_warned=yes ;;
2817esac
2818 CC=$ac_ct_CC
2819 fi
2820fi
2821
2822fi
2823
2824
2825test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827as_fn_error $? "no acceptable C compiler found in \$PATH
2828See \`config.log' for more details" "$LINENO" 5; }
2829
2830# Provide some information about the compiler.
2831$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2832set X $ac_compile
2833ac_compiler=$2
2834for ac_option in --version -v -V -qversion; do
2835 { { ac_try="$ac_compiler $ac_option >&5"
2836case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839esac
2840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841$as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2843 ac_status=$?
2844 if test -s conftest.err; then
2845 sed '10a\
2846... rest of stderr output deleted ...
2847 10q' conftest.err >conftest.er1
2848 cat conftest.er1 >&5
2849 fi
2850 rm -f conftest.er1 conftest.err
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }
2853done
2854
2855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856/* end confdefs.h. */
2857
2858int
2859main ()
2860{
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866ac_clean_files_save=$ac_clean_files
2867ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2868# Try to create an executable without -o first, disregard a.out.
2869# It will help us diagnose broken compilers, and finding out an intuition
2870# of exeext.
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2872$as_echo_n "checking whether the C compiler works... " >&6; }
2873ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2874
2875# The possible output files:
2876ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2877
2878ac_rmfiles=
2879for ac_file in $ac_files
2880do
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2884 esac
2885done
2886rm -f $ac_rmfiles
2887
2888if { { ac_try="$ac_link_default"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894$as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link_default") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; then :
2899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2900# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2901# in a Makefile. We should not override ac_cv_exeext if it was cached,
2902# so that the user can short-circuit this test for compilers unknown to
2903# Autoconf.
2904for ac_file in $ac_files ''
2905do
2906 test -f "$ac_file" || continue
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2909 ;;
2910 [ab].out )
2911 # We found the default executable, but exeext='' is most
2912 # certainly right.
2913 break;;
2914 *.* )
2915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2916 then :; else
2917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 fi
2919 # We set ac_cv_exeext here because the later test for it is not
2920 # safe: cross compilers may not add the suffix if given an `-o'
2921 # argument, so we may need to know it at that point already.
2922 # Even if this section looks crufty: it has the advantage of
2923 # actually working.
2924 break;;
2925 * )
2926 break;;
2927 esac
2928done
2929test "$ac_cv_exeext" = no && ac_cv_exeext=
2930
2931else
2932 ac_file=''
2933fi
2934if test -z "$ac_file"; then :
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937$as_echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942as_fn_error 77 "C compiler cannot create executables
2943See \`config.log' for more details" "$LINENO" 5; }
2944else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946$as_echo "yes" >&6; }
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2949$as_echo_n "checking for C compiler default output file name... " >&6; }
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2951$as_echo "$ac_file" >&6; }
2952ac_exeext=$ac_cv_exeext
2953
2954rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2955ac_clean_files=$ac_clean_files_save
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2957$as_echo_n "checking for suffix of executables... " >&6; }
2958if { { ac_try="$ac_link"
2959case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_link") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; then :
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971# work properly (i.e., refer to `conftest.exe'), while it won't with
2972# `rm'.
2973for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978 break;;
2979 * ) break;;
2980 esac
2981done
2982else
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2986See \`config.log' for more details" "$LINENO" 5; }
2987fi
2988rm -f conftest conftest$ac_cv_exeext
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2990$as_echo "$ac_cv_exeext" >&6; }
2991
2992rm -f conftest.$ac_ext
2993EXEEXT=$ac_cv_exeext
2994ac_exeext=$EXEEXT
2995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996/* end confdefs.h. */
2997#include <stdio.h>
2998int
2999main ()
3000{
3001FILE *f = fopen ("conftest.out", "w");
3002 return ferror (f) || fclose (f) != 0;
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008ac_clean_files="$ac_clean_files conftest.out"
3009# Check that the compiler produces executables we can run. If not, either
3010# the compiler is broken, or we cross compile.
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3012$as_echo_n "checking whether we are cross compiling... " >&6; }
3013if test "$cross_compiling" != yes; then
3014 { { ac_try="$ac_link"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020$as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_link") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }
3025 if { ac_try='./conftest$ac_cv_exeext'
3026 { { case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031$as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; }; then
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043as_fn_error $? "cannot run C compiled programs.
3044If you meant to cross compile, use \`--host'.
3045See \`config.log' for more details" "$LINENO" 5; }
3046 fi
3047 fi
3048fi
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3050$as_echo "$cross_compiling" >&6; }
3051
3052rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3053ac_clean_files=$ac_clean_files_save
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3055$as_echo_n "checking for suffix of object files... " >&6; }
3056if ${ac_cv_objext+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058else
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.o conftest.obj
3071if { { ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compile") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 for ac_file in conftest.o conftest.obj conftest.*; do
3083 test -f "$ac_file" || continue;
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3087 break;;
3088 esac
3089done
3090else
3091 $as_echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096as_fn_error $? "cannot compute suffix of object files: cannot compile
3097See \`config.log' for more details" "$LINENO" 5; }
3098fi
3099rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100fi
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3102$as_echo "$ac_cv_objext" >&6; }
3103OBJEXT=$ac_cv_objext
3104ac_objext=$OBJEXT
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3106$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3107if ${ac_cv_c_compiler_gnu+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109else
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116#ifndef __GNUC__
3117 choke me
3118#endif
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124if ac_fn_c_try_compile "$LINENO"; then :
3125 ac_compiler_gnu=yes
3126else
3127 ac_compiler_gnu=no
3128fi
3129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130ac_cv_c_compiler_gnu=$ac_compiler_gnu
3131
3132fi
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3134$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3135if test $ac_compiler_gnu = yes; then
3136 GCC=yes
3137else
3138 GCC=
3139fi
3140ac_test_CFLAGS=${CFLAGS+set}
3141ac_save_CFLAGS=$CFLAGS
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3143$as_echo_n "checking whether $CC accepts -g... " >&6; }
3144if ${ac_cv_prog_cc_g+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146else
3147 ac_save_c_werror_flag=$ac_c_werror_flag
3148 ac_c_werror_flag=yes
3149 ac_cv_prog_cc_g=no
3150 CFLAGS="-g"
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h. */
3153
3154int
3155main ()
3156{
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162if ac_fn_c_try_compile "$LINENO"; then :
3163 ac_cv_prog_cc_g=yes
3164else
3165 CFLAGS=""
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177if ac_fn_c_try_compile "$LINENO"; then :
3178
3179else
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193if ac_fn_c_try_compile "$LINENO"; then :
3194 ac_cv_prog_cc_g=yes
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202fi
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3204$as_echo "$ac_cv_prog_cc_g" >&6; }
3205if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3209 CFLAGS="-g -O2"
3210 else
3211 CFLAGS="-g"
3212 fi
3213else
3214 if test "$GCC" = yes; then
3215 CFLAGS="-O2"
3216 else
3217 CFLAGS=
3218 fi
3219fi
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3221$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3222if ${ac_cv_prog_cc_c89+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224else
3225 ac_cv_prog_cc_c89=no
3226ac_save_CC=$CC
3227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231struct stat;
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281do
3282 CC="$ac_save_CC $ac_arg"
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_c89=$ac_arg
3285fi
3286rm -f core conftest.err conftest.$ac_objext
3287 test "x$ac_cv_prog_cc_c89" != "xno" && break
3288done
3289rm -f conftest.$ac_ext
3290CC=$ac_save_CC
3291
3292fi
3293# AC_CACHE_VAL
3294case "x$ac_cv_prog_cc_c89" in
3295 x)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3297$as_echo "none needed" >&6; } ;;
3298 xno)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3300$as_echo "unsupported" >&6; } ;;
3301 *)
3302 CC="$CC $ac_cv_prog_cc_c89"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3304$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3305esac
3306if test "x$ac_cv_prog_cc_c89" != xno; then :
3307
3308fi
3309
3310ac_ext=c
3311ac_cpp='$CPP $CPPFLAGS'
3312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
c2783492 3316
ebe9564b
MF
3317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3323$as_echo_n "checking how to run the C preprocessor... " >&6; }
3324# On Suns, sometimes $CPP names a directory.
3325if test -n "$CPP" && test -d "$CPP"; then
3326 CPP=
3327fi
3328if test -z "$CPP"; then
3329 if ${ac_cv_prog_CPP+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331else
3332 # Double quotes because CPP needs to be expanded
3333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3334 do
3335 ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345/* end confdefs.h. */
3346#ifdef __STDC__
3347# include <limits.h>
3348#else
3349# include <assert.h>
3350#endif
3351 Syntax error
3352_ACEOF
3353if ac_fn_c_try_cpp "$LINENO"; then :
3354
3355else
3356 # Broken: fails on valid input.
3357continue
3358fi
3359rm -f conftest.err conftest.i conftest.$ac_ext
3360
3361 # OK, works on sane cases. Now check whether nonexistent headers
3362 # can be detected and how.
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h. */
3365#include <ac_nonexistent.h>
3366_ACEOF
3367if ac_fn_c_try_cpp "$LINENO"; then :
3368 # Broken: success on invalid input.
3369continue
3370else
3371 # Passes both tests.
3372ac_preproc_ok=:
3373break
3374fi
3375rm -f conftest.err conftest.i conftest.$ac_ext
3376
3377done
3378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3379rm -f conftest.i conftest.err conftest.$ac_ext
3380if $ac_preproc_ok; then :
3381 break
3382fi
3383
3384 done
3385 ac_cv_prog_CPP=$CPP
3386
3387fi
3388 CPP=$ac_cv_prog_CPP
3389else
3390 ac_cv_prog_CPP=$CPP
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3393$as_echo "$CPP" >&6; }
3394ac_preproc_ok=false
3395for ac_c_preproc_warn_flag in '' yes
3396do
3397 # Use a header file that comes with gcc, so configuring glibc
3398 # with a fresh cross-compiler works.
3399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400 # <limits.h> exists even on freestanding compilers.
3401 # On the NeXT, cc -E runs the code through the compiler's parser,
3402 # not just through cpp. "Syntax error" is here to catch this case.
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h. */
3405#ifdef __STDC__
3406# include <limits.h>
3407#else
3408# include <assert.h>
3409#endif
3410 Syntax error
3411_ACEOF
3412if ac_fn_c_try_cpp "$LINENO"; then :
3413
3414else
3415 # Broken: fails on valid input.
3416continue
3417fi
3418rm -f conftest.err conftest.i conftest.$ac_ext
3419
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h. */
3424#include <ac_nonexistent.h>
3425_ACEOF
3426if ac_fn_c_try_cpp "$LINENO"; then :
3427 # Broken: success on invalid input.
3428continue
3429else
3430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
3434rm -f conftest.err conftest.i conftest.$ac_ext
3435
3436done
3437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438rm -f conftest.i conftest.err conftest.$ac_ext
3439if $ac_preproc_ok; then :
3440
3441else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details" "$LINENO" 5; }
3446fi
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
b26e2ae7
JM
3454
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3456$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3457if ${ac_cv_path_GREP+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459else
3460 if test -z "$GREP"; then
3461 ac_path_GREP_found=false
3462 # Loop through the user's path and test for each of PROGNAME-LIST
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_prog in grep ggrep; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3471 as_fn_executable_p "$ac_path_GREP" || continue
3472# Check for GNU ac_path_GREP and select it if it is found.
3473 # Check for GNU $ac_path_GREP
3474case `"$ac_path_GREP" --version 2>&1` in
3475*GNU*)
3476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3477*)
3478 ac_count=0
3479 $as_echo_n 0123456789 >"conftest.in"
3480 while :
3481 do
3482 cat "conftest.in" "conftest.in" >"conftest.tmp"
3483 mv "conftest.tmp" "conftest.in"
3484 cp "conftest.in" "conftest.nl"
3485 $as_echo 'GREP' >> "conftest.nl"
3486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3488 as_fn_arith $ac_count + 1 && ac_count=$as_val
3489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3490 # Best one so far, save it but keep looking for a better one
3491 ac_cv_path_GREP="$ac_path_GREP"
3492 ac_path_GREP_max=$ac_count
3493 fi
3494 # 10*(2^10) chars as input seems more than enough
3495 test $ac_count -gt 10 && break
3496 done
3497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3498esac
3499
3500 $ac_path_GREP_found && break 3
3501 done
3502 done
3503 done
3504IFS=$as_save_IFS
3505 if test -z "$ac_cv_path_GREP"; then
3506 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3507 fi
3508else
3509 ac_cv_path_GREP=$GREP
3510fi
3511
3512fi
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3514$as_echo "$ac_cv_path_GREP" >&6; }
3515 GREP="$ac_cv_path_GREP"
3516
3517
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3519$as_echo_n "checking for egrep... " >&6; }
3520if ${ac_cv_path_EGREP+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522else
3523 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3524 then ac_cv_path_EGREP="$GREP -E"
3525 else
3526 if test -z "$EGREP"; then
3527 ac_path_EGREP_found=false
3528 # Loop through the user's path and test for each of PROGNAME-LIST
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in egrep; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3537 as_fn_executable_p "$ac_path_EGREP" || continue
3538# Check for GNU ac_path_EGREP and select it if it is found.
3539 # Check for GNU $ac_path_EGREP
3540case `"$ac_path_EGREP" --version 2>&1` in
3541*GNU*)
3542 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3543*)
3544 ac_count=0
3545 $as_echo_n 0123456789 >"conftest.in"
3546 while :
3547 do
3548 cat "conftest.in" "conftest.in" >"conftest.tmp"
3549 mv "conftest.tmp" "conftest.in"
3550 cp "conftest.in" "conftest.nl"
3551 $as_echo 'EGREP' >> "conftest.nl"
3552 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3554 as_fn_arith $ac_count + 1 && ac_count=$as_val
3555 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3556 # Best one so far, save it but keep looking for a better one
3557 ac_cv_path_EGREP="$ac_path_EGREP"
3558 ac_path_EGREP_max=$ac_count
3559 fi
3560 # 10*(2^10) chars as input seems more than enough
3561 test $ac_count -gt 10 && break
3562 done
3563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3564esac
3565
3566 $ac_path_EGREP_found && break 3
3567 done
3568 done
3569 done
3570IFS=$as_save_IFS
3571 if test -z "$ac_cv_path_EGREP"; then
3572 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3573 fi
3574else
3575 ac_cv_path_EGREP=$EGREP
3576fi
3577
3578 fi
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3581$as_echo "$ac_cv_path_EGREP" >&6; }
3582 EGREP="$ac_cv_path_EGREP"
3583
3584
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3586$as_echo_n "checking for ANSI C header files... " >&6; }
3587if ${ac_cv_header_stdc+:} false; then :
3588 $as_echo_n "(cached) " >&6
3589else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h. */
3592#include <stdlib.h>
3593#include <stdarg.h>
3594#include <string.h>
3595#include <float.h>
3596
3597int
3598main ()
3599{
3600
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_header_stdc=yes
3607else
3608 ac_cv_header_stdc=no
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611
3612if test $ac_cv_header_stdc = yes; then
3613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h. */
3616#include <string.h>
3617
3618_ACEOF
3619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "memchr" >/dev/null 2>&1; then :
3621
3622else
3623 ac_cv_header_stdc=no
3624fi
3625rm -f conftest*
3626
3627fi
3628
3629if test $ac_cv_header_stdc = yes; then
3630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h. */
3633#include <stdlib.h>
3634
3635_ACEOF
3636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "free" >/dev/null 2>&1; then :
3638
3639else
3640 ac_cv_header_stdc=no
3641fi
3642rm -f conftest*
3643
3644fi
3645
3646if test $ac_cv_header_stdc = yes; then
3647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3648 if test "$cross_compiling" = yes; then :
3649 :
3650else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h. */
3653#include <ctype.h>
3654#include <stdlib.h>
3655#if ((' ' & 0x0FF) == 0x020)
3656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3658#else
3659# define ISLOWER(c) \
3660 (('a' <= (c) && (c) <= 'i') \
3661 || ('j' <= (c) && (c) <= 'r') \
3662 || ('s' <= (c) && (c) <= 'z'))
3663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3664#endif
3665
3666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3667int
3668main ()
3669{
3670 int i;
3671 for (i = 0; i < 256; i++)
3672 if (XOR (islower (i), ISLOWER (i))
3673 || toupper (i) != TOUPPER (i))
3674 return 2;
3675 return 0;
3676}
3677_ACEOF
3678if ac_fn_c_try_run "$LINENO"; then :
3679
3680else
3681 ac_cv_header_stdc=no
3682fi
3683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3684 conftest.$ac_objext conftest.beam conftest.$ac_ext
3685fi
3686
3687fi
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3690$as_echo "$ac_cv_header_stdc" >&6; }
3691if test $ac_cv_header_stdc = yes; then
3692
3693$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3694
3695fi
3696
3697# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3698for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3699 inttypes.h stdint.h unistd.h
3700do :
3701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3703"
3704if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3705 cat >>confdefs.h <<_ACEOF
3706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3707_ACEOF
3708
3709fi
3710
3711done
3712
3713
3714
3715 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3716if test "x$ac_cv_header_minix_config_h" = xyes; then :
3717 MINIX=yes
3718else
3719 MINIX=
3720fi
3721
3722
3723 if test "$MINIX" = yes; then
3724
3725$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3726
3727
3728$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3729
3730
3731$as_echo "#define _MINIX 1" >>confdefs.h
3732
3733 fi
3734
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3737$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3738if ${ac_cv_safe_to_define___extensions__+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h. */
3743
3744# define __EXTENSIONS__ 1
3745 $ac_includes_default
3746int
3747main ()
3748{
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
3754if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_safe_to_define___extensions__=yes
3756else
3757 ac_cv_safe_to_define___extensions__=no
3758fi
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3762$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3763 test $ac_cv_safe_to_define___extensions__ = yes &&
3764 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3765
3766 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3767
3768 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3769
3770 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3771
3772 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3773
3774
3775test "$program_prefix" != NONE &&
3776 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3777# Use a double $ so make ignores it.
3778test "$program_suffix" != NONE &&
3779 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3780# Double any \ or $.
3781# By default was `s,x,x', remove it if useless.
3782ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3783program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3784
3785# Find a good install program. We prefer a C program (faster),
3786# so one script is as good as another. But avoid the broken or
3787# incompatible versions:
3788# SysV /etc/install, /usr/sbin/install
3789# SunOS /usr/etc/install
3790# IRIX /sbin/install
3791# AIX /bin/install
3792# AmigaOS /C/install, which installs bootblocks on floppy discs
3793# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3794# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3795# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3796# OS/2's system install, which has a completely different semantic
3797# ./install, which can be erroneously created by make from ./install.sh.
3798# Reject install programs that cannot install multiple files.
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3800$as_echo_n "checking for a BSD-compatible install... " >&6; }
3801if test -z "$INSTALL"; then
3802if ${ac_cv_path_install+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 # Account for people who put trailing slashes in PATH elements.
3811case $as_dir/ in #((
3812 ./ | .// | /[cC]/* | \
3813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3815 /usr/ucb/* ) ;;
3816 *)
3817 # OSF1 and SCO ODT 3.0 have their own names for install.
3818 # Don't use installbsd from OSF since it installs stuff as root
3819 # by default.
3820 for ac_prog in ginstall scoinst install; do
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3823 if test $ac_prog = install &&
3824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825 # AIX install. It has an incompatible calling convention.
3826 :
3827 elif test $ac_prog = install &&
3828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3829 # program-specific install script used by HP pwplus--don't use.
3830 :
3831 else
3832 rm -rf conftest.one conftest.two conftest.dir
3833 echo one > conftest.one
3834 echo two > conftest.two
3835 mkdir conftest.dir
3836 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3837 test -s conftest.one && test -s conftest.two &&
3838 test -s conftest.dir/conftest.one &&
3839 test -s conftest.dir/conftest.two
3840 then
3841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3842 break 3
3843 fi
3844 fi
3845 fi
3846 done
3847 done
3848 ;;
3849esac
3850
3851 done
3852IFS=$as_save_IFS
3853
3854rm -rf conftest.one conftest.two conftest.dir
3855
3856fi
3857 if test "${ac_cv_path_install+set}" = set; then
3858 INSTALL=$ac_cv_path_install
3859 else
3860 # As a last resort, use the slow shell script. Don't cache a
3861 # value for INSTALL within a source directory, because that will
3862 # break other packages using the cache if that directory is
3863 # removed, or if the value is a relative name.
3864 INSTALL=$ac_install_sh
3865 fi
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3868$as_echo "$INSTALL" >&6; }
3869
3870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3871# It thinks the first close brace ends the variable substitution.
3872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3873
3874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3875
3876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3877
3878rm -rf .tst 2>/dev/null
3879mkdir .tst 2>/dev/null
3880if test -d .tst; then
3881 am__leading_dot=.
3882else
3883 am__leading_dot=_
3884fi
3885rmdir .tst 2>/dev/null
3886
3887DEPDIR="${am__leading_dot}deps"
37e9f182
MF
3888
3889
3890
3891
3892 for ac_func in $ac_func_list
3893do :
3894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3896if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3897 cat >>confdefs.h <<_ACEOF
3898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3899_ACEOF
3900
3901fi
3902done
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
b26e2ae7
JM
3923
3924case `pwd` in
3925 *\ * | *\ *)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3927$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3928esac
3929
3930
3931
3932macro_version='2.2.7a'
3933macro_revision='1.3134'
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947ltmain="$ac_aux_dir/ltmain.sh"
3948
3949# Backslashify metacharacters that are still active within
3950# double-quoted strings.
3951sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3952
3953# Same as above, but do not quote variable references.
3954double_quote_subst='s/\(["`\\]\)/\\\1/g'
3955
3956# Sed substitution to delay expansion of an escaped shell variable in a
3957# double_quote_subst'ed string.
3958delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3959
3960# Sed substitution to delay expansion of an escaped single quote.
3961delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3962
3963# Sed substitution to avoid accidental globbing in evaled expressions
3964no_glob_subst='s/\*/\\\*/g'
3965
3966ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3967ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3968ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3971$as_echo_n "checking how to print strings... " >&6; }
3972# Test print first, because it will be a builtin if present.
3973if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3974 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3975 ECHO='print -r --'
3976elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3977 ECHO='printf %s\n'
3978else
3979 # Use this function as a fallback that always works.
3980 func_fallback_echo ()
3981 {
3982 eval 'cat <<_LTECHO_EOF
3983$1
3984_LTECHO_EOF'
3985 }
3986 ECHO='func_fallback_echo'
3987fi
3988
3989# func_echo_all arg...
3990# Invoke $ECHO with all args, space-separated.
3991func_echo_all ()
3992{
3993 $ECHO ""
3994}
3995
3996case "$ECHO" in
3997 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3998$as_echo "printf" >&6; } ;;
3999 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4000$as_echo "print -r" >&6; } ;;
4001 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4002$as_echo "cat" >&6; } ;;
4003esac
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4019$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4020if ${ac_cv_path_SED+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022else
4023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4024 for ac_i in 1 2 3 4 5 6 7; do
4025 ac_script="$ac_script$as_nl$ac_script"
4026 done
4027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4028 { ac_script=; unset ac_script;}
4029 if test -z "$SED"; then
4030 ac_path_SED_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in sed gsed; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4040 as_fn_executable_p "$ac_path_SED" || continue
4041# Check for GNU ac_path_SED and select it if it is found.
4042 # Check for GNU $ac_path_SED
4043case `"$ac_path_SED" --version 2>&1` in
4044*GNU*)
4045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4046*)
4047 ac_count=0
4048 $as_echo_n 0123456789 >"conftest.in"
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo '' >> "conftest.nl"
4055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_SED_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_SED="$ac_path_SED"
4061 ac_path_SED_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067esac
4068
4069 $ac_path_SED_found && break 3
4070 done
4071 done
4072 done
4073IFS=$as_save_IFS
4074 if test -z "$ac_cv_path_SED"; then
4075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4076 fi
4077else
4078 ac_cv_path_SED=$SED
4079fi
4080
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4083$as_echo "$ac_cv_path_SED" >&6; }
4084 SED="$ac_cv_path_SED"
4085 rm -f conftest.sed
4086
4087test -z "$SED" && SED=sed
4088Xsed="$SED -e 1s/^X//"
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4101$as_echo_n "checking for fgrep... " >&6; }
4102if ${ac_cv_path_FGREP+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104else
4105 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4106 then ac_cv_path_FGREP="$GREP -F"
4107 else
4108 if test -z "$FGREP"; then
4109 ac_path_FGREP_found=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in fgrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4119 as_fn_executable_p "$ac_path_FGREP" || continue
4120# Check for GNU ac_path_FGREP and select it if it is found.
4121 # Check for GNU $ac_path_FGREP
4122case `"$ac_path_FGREP" --version 2>&1` in
4123*GNU*)
4124 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4125*)
4126 ac_count=0
4127 $as_echo_n 0123456789 >"conftest.in"
4128 while :
4129 do
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 $as_echo 'FGREP' >> "conftest.nl"
4134 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 as_fn_arith $ac_count + 1 && ac_count=$as_val
4137 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_FGREP="$ac_path_FGREP"
4140 ac_path_FGREP_max=$ac_count
4141 fi
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146esac
4147
4148 $ac_path_FGREP_found && break 3
4149 done
4150 done
4151 done
4152IFS=$as_save_IFS
4153 if test -z "$ac_cv_path_FGREP"; then
4154 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 fi
4156else
4157 ac_cv_path_FGREP=$FGREP
4158fi
4159
4160 fi
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4163$as_echo "$ac_cv_path_FGREP" >&6; }
4164 FGREP="$ac_cv_path_FGREP"
4165
4166
4167test -z "$GREP" && GREP=grep
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187# Check whether --with-gnu-ld was given.
4188if test "${with_gnu_ld+set}" = set; then :
4189 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4190else
4191 with_gnu_ld=no
4192fi
4193
4194ac_prog=ld
4195if test "$GCC" = yes; then
4196 # Check if gcc -print-prog-name=ld gives a path.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4198$as_echo_n "checking for ld used by $CC... " >&6; }
4199 case $host in
4200 *-*-mingw*)
4201 # gcc leaves a trailing carriage return which upsets mingw
4202 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4203 *)
4204 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4205 esac
4206 case $ac_prog in
4207 # Accept absolute paths.
4208 [\\/]* | ?:[\\/]*)
4209 re_direlt='/[^/][^/]*/\.\./'
4210 # Canonicalize the pathname of ld
4211 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4212 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4213 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4214 done
4215 test -z "$LD" && LD="$ac_prog"
4216 ;;
4217 "")
4218 # If it fails, then pretend we aren't using GCC.
4219 ac_prog=ld
4220 ;;
4221 *)
4222 # If it is relative, then search for the first ld in PATH.
4223 with_gnu_ld=unknown
4224 ;;
4225 esac
4226elif test "$with_gnu_ld" = yes; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4228$as_echo_n "checking for GNU ld... " >&6; }
4229else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4231$as_echo_n "checking for non-GNU ld... " >&6; }
4232fi
4233if ${lt_cv_path_LD+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235else
4236 if test -z "$LD"; then
4237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4238 for ac_dir in $PATH; do
4239 IFS="$lt_save_ifs"
4240 test -z "$ac_dir" && ac_dir=.
4241 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4242 lt_cv_path_LD="$ac_dir/$ac_prog"
4243 # Check to see if the program is GNU ld. I'd rather use --version,
4244 # but apparently some variants of GNU ld only accept -v.
4245 # Break only if it was the GNU/non-GNU ld that we prefer.
4246 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4247 *GNU* | *'with BFD'*)
4248 test "$with_gnu_ld" != no && break
4249 ;;
4250 *)
4251 test "$with_gnu_ld" != yes && break
4252 ;;
4253 esac
4254 fi
4255 done
4256 IFS="$lt_save_ifs"
4257else
4258 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4259fi
4260fi
4261
4262LD="$lt_cv_path_LD"
4263if test -n "$LD"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4265$as_echo "$LD" >&6; }
4266else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4272$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4273if ${lt_cv_prog_gnu_ld+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4277case `$LD -v 2>&1 </dev/null` in
4278*GNU* | *'with BFD'*)
4279 lt_cv_prog_gnu_ld=yes
4280 ;;
4281*)
4282 lt_cv_prog_gnu_ld=no
4283 ;;
4284esac
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4287$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4288with_gnu_ld=$lt_cv_prog_gnu_ld
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4299$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4300if ${lt_cv_path_NM+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 if test -n "$NM"; then
4304 # Let the user override the test.
4305 lt_cv_path_NM="$NM"
4306else
4307 lt_nm_to_check="${ac_tool_prefix}nm"
4308 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4309 lt_nm_to_check="$lt_nm_to_check nm"
4310 fi
4311 for lt_tmp_nm in $lt_nm_to_check; do
4312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4313 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4314 IFS="$lt_save_ifs"
4315 test -z "$ac_dir" && ac_dir=.
4316 tmp_nm="$ac_dir/$lt_tmp_nm"
4317 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4318 # Check to see if the nm accepts a BSD-compat flag.
4319 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4320 # nm: unknown option "B" ignored
4321 # Tru64's nm complains that /dev/null is an invalid object file
4322 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4323 */dev/null* | *'Invalid file or object type'*)
4324 lt_cv_path_NM="$tmp_nm -B"
4325 break
4326 ;;
4327 *)
4328 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4329 */dev/null*)
4330 lt_cv_path_NM="$tmp_nm -p"
4331 break
4332 ;;
4333 *)
4334 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4335 continue # so that we can try to find one that supports BSD flags
4336 ;;
4337 esac
4338 ;;
4339 esac
4340 fi
4341 done
4342 IFS="$lt_save_ifs"
4343 done
4344 : ${lt_cv_path_NM=no}
4345fi
4346fi
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4348$as_echo "$lt_cv_path_NM" >&6; }
4349if test "$lt_cv_path_NM" != "no"; then
4350 NM="$lt_cv_path_NM"
4351else
4352 # Didn't find any BSD compatible name lister, look for dumpbin.
4353 if test -n "$DUMPBIN"; then :
4354 # Let the user override the test.
4355 else
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in dumpbin "link -dump"
4358 do
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if ${ac_cv_prog_DUMPBIN+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365else
4366 if test -n "$DUMPBIN"; then
4367 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381 done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386DUMPBIN=$ac_cv_prog_DUMPBIN
4387if test -n "$DUMPBIN"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4389$as_echo "$DUMPBIN" >&6; }
4390else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
4393fi
4394
4395
4396 test -n "$DUMPBIN" && break
4397 done
4398fi
4399if test -z "$DUMPBIN"; then
4400 ac_ct_DUMPBIN=$DUMPBIN
4401 for ac_prog in dumpbin "link -dump"
4402do
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404set dummy $ac_prog; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409else
4410 if test -n "$ac_ct_DUMPBIN"; then
4411 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425 done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4431if test -n "$ac_ct_DUMPBIN"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4433$as_echo "$ac_ct_DUMPBIN" >&6; }
4434else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440 test -n "$ac_ct_DUMPBIN" && break
4441done
4442
4443 if test "x$ac_ct_DUMPBIN" = x; then
4444 DUMPBIN=":"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447yes:)
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450ac_tool_warned=yes ;;
4451esac
4452 DUMPBIN=$ac_ct_DUMPBIN
4453 fi
4454fi
4455
4456 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4457 *COFF*)
4458 DUMPBIN="$DUMPBIN -symbols"
4459 ;;
4460 *)
4461 DUMPBIN=:
4462 ;;
4463 esac
4464 fi
4465
4466 if test "$DUMPBIN" != ":"; then
4467 NM="$DUMPBIN"
4468 fi
4469fi
4470test -z "$NM" && NM=nm
4471
4472
4473
4474
4475
4476
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4478$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4479if ${lt_cv_nm_interface+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481else
4482 lt_cv_nm_interface="BSD nm"
4483 echo "int some_variable = 0;" > conftest.$ac_ext
4484 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4485 (eval "$ac_compile" 2>conftest.err)
4486 cat conftest.err >&5
4487 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4489 cat conftest.err >&5
4490 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4491 cat conftest.out >&5
4492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4493 lt_cv_nm_interface="MS dumpbin"
4494 fi
4495 rm -f conftest*
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4498$as_echo "$lt_cv_nm_interface" >&6; }
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4501$as_echo_n "checking whether ln -s works... " >&6; }
4502LN_S=$as_ln_s
4503if test "$LN_S" = "ln -s"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505$as_echo "yes" >&6; }
4506else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4508$as_echo "no, using $LN_S" >&6; }
4509fi
4510
4511# find the maximum length of command line arguments
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4513$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4514if ${lt_cv_sys_max_cmd_len+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 i=0
4518 teststring="ABCD"
4519
4520 case $build_os in
4521 msdosdjgpp*)
4522 # On DJGPP, this test can blow up pretty badly due to problems in libc
4523 # (any single argument exceeding 2000 bytes causes a buffer overrun
4524 # during glob expansion). Even if it were fixed, the result of this
4525 # check would be larger than it should be.
4526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4527 ;;
4528
4529 gnu*)
4530 # Under GNU Hurd, this test is not required because there is
4531 # no limit to the length of command line arguments.
4532 # Libtool will interpret -1 as no limit whatsoever
4533 lt_cv_sys_max_cmd_len=-1;
4534 ;;
4535
4536 cygwin* | mingw* | cegcc*)
4537 # On Win9x/ME, this test blows up -- it succeeds, but takes
4538 # about 5 minutes as the teststring grows exponentially.
4539 # Worse, since 9x/ME are not pre-emptively multitasking,
4540 # you end up with a "frozen" computer, even though with patience
4541 # the test eventually succeeds (with a max line length of 256k).
4542 # Instead, let's just punt: use the minimum linelength reported by
4543 # all of the supported platforms: 8192 (on NT/2K/XP).
4544 lt_cv_sys_max_cmd_len=8192;
4545 ;;
4546
4547 mint*)
4548 # On MiNT this can take a long time and run out of memory.
4549 lt_cv_sys_max_cmd_len=8192;
4550 ;;
4551
4552 amigaos*)
4553 # On AmigaOS with pdksh, this test takes hours, literally.
4554 # So we just punt and use a minimum line length of 8192.
4555 lt_cv_sys_max_cmd_len=8192;
4556 ;;
4557
4558 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4559 # This has been around since 386BSD, at least. Likely further.
4560 if test -x /sbin/sysctl; then
4561 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4562 elif test -x /usr/sbin/sysctl; then
4563 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4564 else
4565 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4566 fi
4567 # And add a safety zone
4568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4570 ;;
4571
4572 interix*)
4573 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4574 lt_cv_sys_max_cmd_len=196608
4575 ;;
4576
4577 osf*)
4578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4580 # nice to cause kernel panics so lets avoid the loop below.
4581 # First set a reasonable default.
4582 lt_cv_sys_max_cmd_len=16384
4583 #
4584 if test -x /sbin/sysconfig; then
4585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4586 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4587 esac
4588 fi
4589 ;;
4590 sco3.2v5*)
4591 lt_cv_sys_max_cmd_len=102400
4592 ;;
4593 sysv5* | sco5v6* | sysv4.2uw2*)
4594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4595 if test -n "$kargmax"; then
4596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4597 else
4598 lt_cv_sys_max_cmd_len=32768
4599 fi
4600 ;;
4601 *)
4602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4603 if test -n "$lt_cv_sys_max_cmd_len"; then
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4606 else
4607 # Make teststring a little bigger before we do anything with it.
4608 # a 1K string should be a reasonable start.
4609 for i in 1 2 3 4 5 6 7 8 ; do
4610 teststring=$teststring$teststring
4611 done
4612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4613 # If test is not a shell built-in, we'll probably end up computing a
4614 # maximum length that is only half of the actual maximum length, but
4615 # we can't tell.
4616 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4617 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4618 test $i != 17 # 1/2 MB should be enough
4619 do
4620 i=`expr $i + 1`
4621 teststring=$teststring$teststring
4622 done
4623 # Only check the string length outside the loop.
4624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4625 teststring=
4626 # Add a significant safety factor because C++ compilers can tack on
4627 # massive amounts of additional arguments before passing them to the
4628 # linker. It appears as though 1/2 is a usable value.
4629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4630 fi
4631 ;;
4632 esac
4633
4634fi
4635
4636if test -n $lt_cv_sys_max_cmd_len ; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4638$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4639else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4641$as_echo "none" >&6; }
4642fi
4643max_cmd_len=$lt_cv_sys_max_cmd_len
4644
4645
4646
4647
4648
4649
4650: ${CP="cp -f"}
4651: ${MV="mv -f"}
4652: ${RM="rm -f"}
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4655$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4656# Try some XSI features
4657xsi_shell=no
4658( _lt_dummy="a/b/c"
4659 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4660 = c,a/b,, \
4661 && eval 'test $(( 1 + 1 )) -eq 2 \
4662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4663 && xsi_shell=yes
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4665$as_echo "$xsi_shell" >&6; }
4666
4667
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4669$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4670lt_shell_append=no
4671( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4672 >/dev/null 2>&1 \
4673 && lt_shell_append=yes
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4675$as_echo "$lt_shell_append" >&6; }
4676
4677
4678if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679 lt_unset=unset
4680else
4681 lt_unset=false
4682fi
4683
4684
4685
4686
4687
4688# test EBCDIC or ASCII
4689case `echo X|tr X '\101'` in
4690 A) # ASCII based system
4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692 lt_SP2NL='tr \040 \012'
4693 lt_NL2SP='tr \015\012 \040\040'
4694 ;;
4695 *) # EBCDIC based system
4696 lt_SP2NL='tr \100 \n'
4697 lt_NL2SP='tr \r\n \100\100'
4698 ;;
4699esac
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4710$as_echo_n "checking for $LD option to reload object files... " >&6; }
4711if ${lt_cv_ld_reload_flag+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714 lt_cv_ld_reload_flag='-r'
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4717$as_echo "$lt_cv_ld_reload_flag" >&6; }
4718reload_flag=$lt_cv_ld_reload_flag
4719case $reload_flag in
4720"" | " "*) ;;
4721*) reload_flag=" $reload_flag" ;;
4722esac
4723reload_cmds='$LD$reload_flag -o $output$reload_objs'
4724case $host_os in
4725 darwin*)
4726 if test "$GCC" = yes; then
4727 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4728 else
4729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730 fi
4731 ;;
4732esac
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4744set dummy ${ac_tool_prefix}objdump; ac_word=$2
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if ${ac_cv_prog_OBJDUMP+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test -n "$OBJDUMP"; then
4751 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765 done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770OBJDUMP=$ac_cv_prog_OBJDUMP
4771if test -n "$OBJDUMP"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4773$as_echo "$OBJDUMP" >&6; }
4774else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779
4780fi
4781if test -z "$ac_cv_prog_OBJDUMP"; then
4782 ac_ct_OBJDUMP=$OBJDUMP
4783 # Extract the first word of "objdump", so it can be a program name with args.
4784set dummy objdump; ac_word=$2
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786$as_echo_n "checking for $ac_word... " >&6; }
4787if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$ac_ct_OBJDUMP"; then
4791 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804done
4805 done
4806IFS=$as_save_IFS
4807
4808fi
4809fi
4810ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4811if test -n "$ac_ct_OBJDUMP"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4813$as_echo "$ac_ct_OBJDUMP" >&6; }
4814else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818
4819 if test "x$ac_ct_OBJDUMP" = x; then
4820 OBJDUMP="false"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 OBJDUMP=$ac_ct_OBJDUMP
4829 fi
4830else
4831 OBJDUMP="$ac_cv_prog_OBJDUMP"
4832fi
4833
4834test -z "$OBJDUMP" && OBJDUMP=objdump
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4845$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4846if ${lt_cv_deplibs_check_method+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848else
4849 lt_cv_file_magic_cmd='$MAGIC_CMD'
4850lt_cv_file_magic_test_file=
4851lt_cv_deplibs_check_method='unknown'
4852# Need to set the preceding variable on all platforms that support
4853# interlibrary dependencies.
4854# 'none' -- dependencies not supported.
4855# `unknown' -- same as none, but documents that we really don't know.
4856# 'pass_all' -- all dependencies passed with no checks.
4857# 'test_compile' -- check by making test program.
4858# 'file_magic [[regex]]' -- check by looking for files in library path
4859# which responds to the $file_magic_cmd with a given extended regex.
4860# If you have `file' or equivalent on your system and you're not sure
4861# whether `pass_all' will *always* work, you probably want this one.
4862
4863case $host_os in
4864aix[4-9]*)
4865 lt_cv_deplibs_check_method=pass_all
4866 ;;
4867
4868beos*)
4869 lt_cv_deplibs_check_method=pass_all
4870 ;;
4871
4872bsdi[45]*)
4873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4874 lt_cv_file_magic_cmd='/usr/bin/file -L'
4875 lt_cv_file_magic_test_file=/shlib/libc.so
4876 ;;
4877
4878cygwin*)
4879 # func_win32_libid is a shell function defined in ltmain.sh
4880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4881 lt_cv_file_magic_cmd='func_win32_libid'
4882 ;;
4883
4884mingw* | pw32*)
4885 # Base MSYS/MinGW do not provide the 'file' command needed by
4886 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4887 # unless we find 'file', for example because we are cross-compiling.
4888 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4889 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4890 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4891 lt_cv_file_magic_cmd='func_win32_libid'
4892 else
4893 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4894 lt_cv_file_magic_cmd='$OBJDUMP -f'
4895 fi
4896 ;;
4897
4898cegcc*)
4899 # use the weaker test based on 'objdump'. See mingw*.
4900 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4901 lt_cv_file_magic_cmd='$OBJDUMP -f'
4902 ;;
4903
4904darwin* | rhapsody*)
4905 lt_cv_deplibs_check_method=pass_all
4906 ;;
4907
4908freebsd* | dragonfly*)
4909 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4910 case $host_cpu in
4911 i*86 )
4912 # Not sure whether the presence of OpenBSD here was a mistake.
4913 # Let's accept both of them until this is cleared up.
4914 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4915 lt_cv_file_magic_cmd=/usr/bin/file
4916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4917 ;;
4918 esac
4919 else
4920 lt_cv_deplibs_check_method=pass_all
4921 fi
4922 ;;
4923
4924gnu*)
4925 lt_cv_deplibs_check_method=pass_all
4926 ;;
4927
4928haiku*)
4929 lt_cv_deplibs_check_method=pass_all
4930 ;;
4931
4932hpux10.20* | hpux11*)
4933 lt_cv_file_magic_cmd=/usr/bin/file
4934 case $host_cpu in
4935 ia64*)
4936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4937 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4938 ;;
4939 hppa*64*)
4940 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]'
4941 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4942 ;;
4943 *)
4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4945 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4946 ;;
4947 esac
4948 ;;
4949
4950interix[3-9]*)
4951 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4953 ;;
4954
4955irix5* | irix6* | nonstopux*)
4956 case $LD in
4957 *-32|*"-32 ") libmagic=32-bit;;
4958 *-n32|*"-n32 ") libmagic=N32;;
4959 *-64|*"-64 ") libmagic=64-bit;;
4960 *) libmagic=never-match;;
4961 esac
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4964
4965# This must be Linux ELF.
4966linux* | k*bsd*-gnu | kopensolaris*-gnu)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
4969
4970netbsd*)
4971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4973 else
4974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4975 fi
4976 ;;
4977
4978newos6*)
4979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4980 lt_cv_file_magic_cmd=/usr/bin/file
4981 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4982 ;;
4983
4984*nto* | *qnx*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988openbsd*)
4989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4991 else
4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4993 fi
4994 ;;
4995
4996osf3* | osf4* | osf5*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000rdos*)
5001 lt_cv_deplibs_check_method=pass_all
5002 ;;
5003
5004solaris*)
5005 lt_cv_deplibs_check_method=pass_all
5006 ;;
5007
5008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011
5012sysv4 | sysv4.3*)
5013 case $host_vendor in
5014 motorola)
5015 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]'
5016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5017 ;;
5018 ncr)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021 sequent)
5022 lt_cv_file_magic_cmd='/bin/file'
5023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5024 ;;
5025 sni)
5026 lt_cv_file_magic_cmd='/bin/file'
5027 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5028 lt_cv_file_magic_test_file=/lib/libc.so
5029 ;;
5030 siemens)
5031 lt_cv_deplibs_check_method=pass_all
5032 ;;
5033 pc)
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5036 esac
5037 ;;
5038
5039tpf*)
5040 lt_cv_deplibs_check_method=pass_all
5041 ;;
5042esac
5043
5044fi
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5046$as_echo "$lt_cv_deplibs_check_method" >&6; }
5047file_magic_cmd=$lt_cv_file_magic_cmd
5048deplibs_check_method=$lt_cv_deplibs_check_method
5049test -z "$deplibs_check_method" && deplibs_check_method=unknown
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
68ed2854
MF
5062plugin_option=
5063plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5064for plugin in $plugin_names; do
5065 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5066 if test x$plugin_so = x$plugin; then
5067 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5068 fi
5069 if test x$plugin_so != x$plugin; then
5070 plugin_option="--plugin $plugin_so"
5071 break
5072 fi
5073done
5074
b26e2ae7
JM
5075if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5077set dummy ${ac_tool_prefix}ar; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_prog_AR+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082else
5083 if test -n "$AR"; then
5084 ac_cv_prog_AR="$AR" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_AR="${ac_tool_prefix}ar"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103AR=$ac_cv_prog_AR
5104if test -n "$AR"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5106$as_echo "$AR" >&6; }
5107else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112
5113fi
5114if test -z "$ac_cv_prog_AR"; then
5115 ac_ct_AR=$AR
5116 # Extract the first word of "ar", so it can be a program name with args.
5117set dummy ar; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if ${ac_cv_prog_ac_ct_AR+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122else
5123 if test -n "$ac_ct_AR"; then
5124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_ac_ct_AR="ar"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137done
5138 done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143ac_ct_AR=$ac_cv_prog_ac_ct_AR
5144if test -n "$ac_ct_AR"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5146$as_echo "$ac_ct_AR" >&6; }
5147else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152 if test "x$ac_ct_AR" = x; then
5153 AR="false"
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156yes:)
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159ac_tool_warned=yes ;;
5160esac
5161 AR=$ac_ct_AR
5162 fi
5163else
5164 AR="$ac_cv_prog_AR"
5165fi
5166
5167test -z "$AR" && AR=ar
68ed2854
MF
5168if test -n "$plugin_option"; then
5169 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5170 touch conftest.c
5171 $AR $plugin_option rc conftest.a conftest.c
5172 if test "$?" != 0; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5174$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5175 else
5176 AR="$AR $plugin_option"
5177 fi
5178 rm -f conftest.*
68ed2854
MF
5179 fi
5180fi
b26e2ae7
JM
5181test -z "$AR_FLAGS" && AR_FLAGS=cru
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5195set dummy ${ac_tool_prefix}strip; ac_word=$2
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197$as_echo_n "checking for $ac_word... " >&6; }
5198if ${ac_cv_prog_STRIP+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200else
5201 if test -n "$STRIP"; then
5202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215done
5216 done
5217IFS=$as_save_IFS
5218
5219fi
5220fi
5221STRIP=$ac_cv_prog_STRIP
5222if test -n "$STRIP"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5224$as_echo "$STRIP" >&6; }
5225else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227$as_echo "no" >&6; }
5228fi
5229
5230
5231fi
5232if test -z "$ac_cv_prog_STRIP"; then
5233 ac_ct_STRIP=$STRIP
5234 # Extract the first word of "strip", so it can be a program name with args.
5235set dummy strip; ac_word=$2
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
5238if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240else
5241 if test -n "$ac_ct_STRIP"; then
5242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_STRIP="strip"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256 done
5257IFS=$as_save_IFS
5258
5259fi
5260fi
5261ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5262if test -n "$ac_ct_STRIP"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5264$as_echo "$ac_ct_STRIP" >&6; }
5265else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
5268fi
5269
5270 if test "x$ac_ct_STRIP" = x; then
5271 STRIP=":"
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274yes:)
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277ac_tool_warned=yes ;;
5278esac
5279 STRIP=$ac_ct_STRIP
5280 fi
5281else
5282 STRIP="$ac_cv_prog_STRIP"
5283fi
5284
5285test -z "$STRIP" && STRIP=:
5286
5287
5288
5289
5290
5291
5292if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5294set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
5297if ${ac_cv_prog_RANLIB+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299else
5300 if test -n "$RANLIB"; then
5301 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314done
5315 done
5316IFS=$as_save_IFS
5317
5318fi
5319fi
5320RANLIB=$ac_cv_prog_RANLIB
5321if test -n "$RANLIB"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5323$as_echo "$RANLIB" >&6; }
5324else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
5328
5329
5330fi
5331if test -z "$ac_cv_prog_RANLIB"; then
5332 ac_ct_RANLIB=$RANLIB
5333 # Extract the first word of "ranlib", so it can be a program name with args.
5334set dummy ranlib; ac_word=$2
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
5337if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 if test -n "$ac_ct_RANLIB"; then
5341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_ac_ct_RANLIB="ranlib"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355 done
5356IFS=$as_save_IFS
5357
5358fi
5359fi
5360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5361if test -n "$ac_ct_RANLIB"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5363$as_echo "$ac_ct_RANLIB" >&6; }
5364else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367fi
5368
5369 if test "x$ac_ct_RANLIB" = x; then
5370 RANLIB=":"
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373yes:)
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376ac_tool_warned=yes ;;
5377esac
5378 RANLIB=$ac_ct_RANLIB
5379 fi
5380else
5381 RANLIB="$ac_cv_prog_RANLIB"
5382fi
5383
5384test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5385if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5386 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5387 RANLIB="$RANLIB $plugin_option"
5388 fi
5389fi
b26e2ae7
JM
5390
5391
5392
5393
5394
5395
5396# Determine commands to create old-style static archives.
5397old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5398old_postinstall_cmds='chmod 644 $oldlib'
5399old_postuninstall_cmds=
5400
5401if test -n "$RANLIB"; then
5402 case $host_os in
5403 openbsd*)
5404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5405 ;;
5406 *)
5407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5408 ;;
5409 esac
5410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5411fi
5412
5413case $host_os in
5414 darwin*)
5415 lock_old_archive_extraction=yes ;;
5416 *)
5417 lock_old_archive_extraction=no ;;
5418esac
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440for ac_prog in gawk mawk nawk awk
5441do
5442 # Extract the first word of "$ac_prog", so it can be a program name with args.
5443set dummy $ac_prog; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_AWK+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$AWK"; then
5450 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_AWK="$ac_prog"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464 done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469AWK=$ac_cv_prog_AWK
5470if test -n "$AWK"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5472$as_echo "$AWK" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479 test -n "$AWK" && break
5480done
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500# If no C compiler was specified, use CC.
5501LTCC=${LTCC-"$CC"}
5502
5503# If no C compiler flags were specified, use CFLAGS.
5504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5505
5506# Allow CC to be a program name with arguments.
5507compiler=$CC
5508
5509
5510# Check for command to grab the raw symbol name followed by C symbol from nm.
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5513if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515else
5516
5517# These are sane defaults that work on at least a few old systems.
5518# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5519
5520# Character class describing NM global symbol codes.
5521symcode='[BCDEGRST]'
5522
5523# Regexp to match symbols that can be accessed directly from C.
5524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5525
5526# Define system-specific variables.
5527case $host_os in
5528aix*)
5529 symcode='[BCDT]'
5530 ;;
5531cygwin* | mingw* | pw32* | cegcc*)
5532 symcode='[ABCDGISTW]'
5533 ;;
5534hpux*)
5535 if test "$host_cpu" = ia64; then
5536 symcode='[ABCDEGRST]'
5537 fi
5538 ;;
5539irix* | nonstopux*)
5540 symcode='[BCDEGRST]'
5541 ;;
5542osf*)
5543 symcode='[BCDEGQRST]'
5544 ;;
5545solaris*)
5546 symcode='[BDRT]'
5547 ;;
5548sco3.2v5*)
5549 symcode='[DT]'
5550 ;;
5551sysv4.2uw2*)
5552 symcode='[DT]'
5553 ;;
5554sysv5* | sco5v6* | unixware* | OpenUNIX*)
5555 symcode='[ABDT]'
5556 ;;
5557sysv4)
5558 symcode='[DFNSTU]'
5559 ;;
5560esac
5561
5562# If we're using GNU nm, then use its standard symbol codes.
5563case `$NM -V 2>&1` in
5564*GNU* | *'with BFD'*)
5565 symcode='[ABCDGIRSTW]' ;;
5566esac
5567
5568# Transform an extracted symbol line into a proper C declaration.
5569# Some systems (esp. on ia64) link data and code symbols differently,
5570# so use this general approach.
5571lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5572
5573# Transform an extracted symbol line into symbol name and symbol address
5574lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5575lt_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'"
5576
5577# Handle CRLF in mingw tool chain
5578opt_cr=
5579case $build_os in
5580mingw*)
5581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5582 ;;
5583esac
5584
5585# Try without a prefix underscore, then with it.
5586for ac_symprfx in "" "_"; do
5587
5588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5589 symxfrm="\\1 $ac_symprfx\\2 \\2"
5590
5591 # Write the raw and C identifiers.
5592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5593 # Fake it for dumpbin and say T for any non-static function
5594 # and D for any global variable.
5595 # Also find C++ and __fastcall symbols from MSVC++,
5596 # which start with @ or ?.
5597 lt_cv_sys_global_symbol_pipe="$AWK '"\
5598" {last_section=section; section=\$ 3};"\
5599" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5600" \$ 0!~/External *\|/{next};"\
5601" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5602" {if(hide[section]) next};"\
5603" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5604" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5605" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5606" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5607" ' prfx=^$ac_symprfx"
5608 else
5609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5610 fi
5611
5612 # Check to see that the pipe works correctly.
5613 pipe_works=no
5614
5615 rm -f conftest*
5616 cat > conftest.$ac_ext <<_LT_EOF
5617#ifdef __cplusplus
5618extern "C" {
5619#endif
5620char nm_test_var;
5621void nm_test_func(void);
5622void nm_test_func(void){}
5623#ifdef __cplusplus
5624}
5625#endif
5626int main(){nm_test_var='a';nm_test_func();return(0);}
5627_LT_EOF
5628
5629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5630 (eval $ac_compile) 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; }; then
5634 # Now try to grab the symbols.
5635 nlist=conftest.nm
5636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5637 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; } && test -s "$nlist"; then
5641 # Try sorting and uniquifying the output.
5642 if sort "$nlist" | uniq > "$nlist"T; then
5643 mv -f "$nlist"T "$nlist"
5644 else
5645 rm -f "$nlist"T
5646 fi
5647
5648 # Make sure that we snagged all the symbols we need.
5649 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5650 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5651 cat <<_LT_EOF > conftest.$ac_ext
5652#ifdef __cplusplus
5653extern "C" {
5654#endif
5655
5656_LT_EOF
5657 # Now generate the symbol file.
5658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5659
5660 cat <<_LT_EOF >> conftest.$ac_ext
5661
5662/* The mapping between symbol names and symbols. */
5663const struct {
5664 const char *name;
5665 void *address;
5666}
5667lt__PROGRAM__LTX_preloaded_symbols[] =
5668{
5669 { "@PROGRAM@", (void *) 0 },
5670_LT_EOF
5671 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5672 cat <<\_LT_EOF >> conftest.$ac_ext
5673 {0, (void *) 0}
5674};
5675
5676/* This works around a problem in FreeBSD linker */
5677#ifdef FREEBSD_WORKAROUND
5678static const void *lt_preloaded_setup() {
5679 return lt__PROGRAM__LTX_preloaded_symbols;
5680}
5681#endif
5682
5683#ifdef __cplusplus
5684}
5685#endif
5686_LT_EOF
5687 # Now try linking the two files.
5688 mv conftest.$ac_objext conftstm.$ac_objext
5689 lt_save_LIBS="$LIBS"
5690 lt_save_CFLAGS="$CFLAGS"
5691 LIBS="conftstm.$ac_objext"
5692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5694 (eval $ac_link) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5698 pipe_works=yes
5699 fi
5700 LIBS="$lt_save_LIBS"
5701 CFLAGS="$lt_save_CFLAGS"
5702 else
5703 echo "cannot find nm_test_func in $nlist" >&5
5704 fi
5705 else
5706 echo "cannot find nm_test_var in $nlist" >&5
5707 fi
5708 else
5709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5710 fi
5711 else
5712 echo "$progname: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 fi
5715 rm -rf conftest* conftst*
5716
5717 # Do not use the global_symbol_pipe unless it works.
5718 if test "$pipe_works" = yes; then
5719 break
5720 else
5721 lt_cv_sys_global_symbol_pipe=
5722 fi
5723done
5724
5725fi
5726
5727if test -z "$lt_cv_sys_global_symbol_pipe"; then
5728 lt_cv_sys_global_symbol_to_cdecl=
5729fi
5730if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5732$as_echo "failed" >&6; }
5733else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5735$as_echo "ok" >&6; }
5736fi
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759# Check whether --enable-libtool-lock was given.
5760if test "${enable_libtool_lock+set}" = set; then :
5761 enableval=$enable_libtool_lock;
5762fi
5763
5764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765
5766# Some flags need to be propagated to the compiler or linker for good
5767# libtool support.
5768case $host in
5769ia64-*-hpux*)
5770 # Find out which ABI we are using.
5771 echo 'int i;' > conftest.$ac_ext
5772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5773 (eval $ac_compile) 2>&5
5774 ac_status=$?
5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776 test $ac_status = 0; }; then
5777 case `/usr/bin/file conftest.$ac_objext` in
5778 *ELF-32*)
5779 HPUX_IA64_MODE="32"
5780 ;;
5781 *ELF-64*)
5782 HPUX_IA64_MODE="64"
5783 ;;
5784 esac
5785 fi
5786 rm -rf conftest*
5787 ;;
5788*-*-irix6*)
5789 # Find out which ABI we are using.
5790 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5792 (eval $ac_compile) 2>&5
5793 ac_status=$?
5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795 test $ac_status = 0; }; then
5796 if test "$lt_cv_prog_gnu_ld" = yes; then
5797 case `/usr/bin/file conftest.$ac_objext` in
5798 *32-bit*)
5799 LD="${LD-ld} -melf32bsmip"
5800 ;;
5801 *N32*)
5802 LD="${LD-ld} -melf32bmipn32"
5803 ;;
5804 *64-bit*)
5805 LD="${LD-ld} -melf64bmip"
5806 ;;
5807 esac
5808 else
5809 case `/usr/bin/file conftest.$ac_objext` in
5810 *32-bit*)
5811 LD="${LD-ld} -32"
5812 ;;
5813 *N32*)
5814 LD="${LD-ld} -n32"
5815 ;;
5816 *64-bit*)
5817 LD="${LD-ld} -64"
5818 ;;
5819 esac
5820 fi
5821 fi
5822 rm -rf conftest*
5823 ;;
5824
5825x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5826s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5827 # Find out which ABI we are using.
5828 echo 'int i;' > conftest.$ac_ext
5829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5830 (eval $ac_compile) 2>&5
5831 ac_status=$?
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }; then
5834 case `/usr/bin/file conftest.o` in
5835 *32-bit*)
5836 case $host in
5837 x86_64-*kfreebsd*-gnu)
5838 LD="${LD-ld} -m elf_i386_fbsd"
5839 ;;
5840 x86_64-*linux*)
5841 case `/usr/bin/file conftest.o` in
5842 *x86-64*)
5843 LD="${LD-ld} -m elf32_x86_64"
5844 ;;
5845 *)
5846 LD="${LD-ld} -m elf_i386"
5847 ;;
5848 esac
5849 ;;
5850 powerpc64le-*linux*)
5851 LD="${LD-ld} -m elf32lppclinux"
5852 ;;
5853 powerpc64-*linux*)
5854 LD="${LD-ld} -m elf32ppclinux"
5855 ;;
5856 s390x-*linux*)
5857 LD="${LD-ld} -m elf_s390"
5858 ;;
5859 sparc64-*linux*)
5860 LD="${LD-ld} -m elf32_sparc"
5861 ;;
5862 esac
5863 ;;
5864 *64-bit*)
5865 case $host in
5866 x86_64-*kfreebsd*-gnu)
5867 LD="${LD-ld} -m elf_x86_64_fbsd"
5868 ;;
5869 x86_64-*linux*)
5870 LD="${LD-ld} -m elf_x86_64"
5871 ;;
5872 powerpcle-*linux*)
5873 LD="${LD-ld} -m elf64lppc"
5874 ;;
5875 powerpc-*linux*)
5876 LD="${LD-ld} -m elf64ppc"
5877 ;;
5878 s390*-*linux*|s390*-*tpf*)
5879 LD="${LD-ld} -m elf64_s390"
5880 ;;
5881 sparc*-*linux*)
5882 LD="${LD-ld} -m elf64_sparc"
5883 ;;
5884 esac
5885 ;;
5886 esac
5887 fi
5888 rm -rf conftest*
5889 ;;
5890
5891*-*-sco3.2v5*)
5892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5893 SAVE_CFLAGS="$CFLAGS"
5894 CFLAGS="$CFLAGS -belf"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5896$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5897if ${lt_cv_cc_needs_belf+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h. */
5908
5909int
5910main ()
5911{
5912
5913 ;
5914 return 0;
5915}
5916_ACEOF
5917if ac_fn_c_try_link "$LINENO"; then :
5918 lt_cv_cc_needs_belf=yes
5919else
5920 lt_cv_cc_needs_belf=no
5921fi
5922rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 ac_ext=c
5925ac_cpp='$CPP $CPPFLAGS'
5926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5932$as_echo "$lt_cv_cc_needs_belf" >&6; }
5933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5935 CFLAGS="$SAVE_CFLAGS"
5936 fi
5937 ;;
5938sparc*-*solaris*)
5939 # Find out which ABI we are using.
5940 echo 'int i;' > conftest.$ac_ext
5941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5942 (eval $ac_compile) 2>&5
5943 ac_status=$?
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; }; then
5946 case `/usr/bin/file conftest.o` in
5947 *64-bit*)
5948 case $lt_cv_prog_gnu_ld in
5949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5950 *)
5951 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5952 LD="${LD-ld} -64"
5953 fi
5954 ;;
5955 esac
5956 ;;
5957 esac
5958 fi
5959 rm -rf conftest*
5960 ;;
5961esac
5962
5963need_locks="$enable_libtool_lock"
5964
5965
5966 case $host_os in
5967 rhapsody* | darwin*)
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5970set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if ${ac_cv_prog_DSYMUTIL+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975else
5976 if test -n "$DSYMUTIL"; then
5977 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990done
5991 done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996DSYMUTIL=$ac_cv_prog_DSYMUTIL
5997if test -n "$DSYMUTIL"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5999$as_echo "$DSYMUTIL" >&6; }
6000else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
6004
6005
6006fi
6007if test -z "$ac_cv_prog_DSYMUTIL"; then
6008 ac_ct_DSYMUTIL=$DSYMUTIL
6009 # Extract the first word of "dsymutil", so it can be a program name with args.
6010set dummy dsymutil; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015else
6016 if test -n "$ac_ct_DSYMUTIL"; then
6017 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030done
6031 done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6037if test -n "$ac_ct_DSYMUTIL"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6039$as_echo "$ac_ct_DSYMUTIL" >&6; }
6040else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045 if test "x$ac_ct_DSYMUTIL" = x; then
6046 DSYMUTIL=":"
6047 else
6048 case $cross_compiling:$ac_tool_warned in
6049yes:)
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052ac_tool_warned=yes ;;
6053esac
6054 DSYMUTIL=$ac_ct_DSYMUTIL
6055 fi
6056else
6057 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6058fi
6059
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6062set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if ${ac_cv_prog_NMEDIT+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067else
6068 if test -n "$NMEDIT"; then
6069 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083 done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088NMEDIT=$ac_cv_prog_NMEDIT
6089if test -n "$NMEDIT"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6091$as_echo "$NMEDIT" >&6; }
6092else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097
6098fi
6099if test -z "$ac_cv_prog_NMEDIT"; then
6100 ac_ct_NMEDIT=$NMEDIT
6101 # Extract the first word of "nmedit", so it can be a program name with args.
6102set dummy nmedit; ac_word=$2
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104$as_echo_n "checking for $ac_word... " >&6; }
6105if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107else
6108 if test -n "$ac_ct_NMEDIT"; then
6109 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122done
6123 done
6124IFS=$as_save_IFS
6125
6126fi
6127fi
6128ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6129if test -n "$ac_ct_NMEDIT"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6131$as_echo "$ac_ct_NMEDIT" >&6; }
6132else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135fi
6136
6137 if test "x$ac_ct_NMEDIT" = x; then
6138 NMEDIT=":"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141yes:)
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144ac_tool_warned=yes ;;
6145esac
6146 NMEDIT=$ac_ct_NMEDIT
6147 fi
6148else
6149 NMEDIT="$ac_cv_prog_NMEDIT"
6150fi
6151
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6154set dummy ${ac_tool_prefix}lipo; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if ${ac_cv_prog_LIPO+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159else
6160 if test -n "$LIPO"; then
6161 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174done
6175 done
6176IFS=$as_save_IFS
6177
6178fi
6179fi
6180LIPO=$ac_cv_prog_LIPO
6181if test -n "$LIPO"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6183$as_echo "$LIPO" >&6; }
6184else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189
6190fi
6191if test -z "$ac_cv_prog_LIPO"; then
6192 ac_ct_LIPO=$LIPO
6193 # Extract the first word of "lipo", so it can be a program name with args.
6194set dummy lipo; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199else
6200 if test -n "$ac_ct_LIPO"; then
6201 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_LIPO="lipo"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215 done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6221if test -n "$ac_ct_LIPO"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6223$as_echo "$ac_ct_LIPO" >&6; }
6224else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229 if test "x$ac_ct_LIPO" = x; then
6230 LIPO=":"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236ac_tool_warned=yes ;;
6237esac
6238 LIPO=$ac_ct_LIPO
6239 fi
6240else
6241 LIPO="$ac_cv_prog_LIPO"
6242fi
6243
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}otool; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if ${ac_cv_prog_OTOOL+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251else
6252 if test -n "$OTOOL"; then
6253 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267 done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272OTOOL=$ac_cv_prog_OTOOL
6273if test -n "$OTOOL"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6275$as_echo "$OTOOL" >&6; }
6276else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281
6282fi
6283if test -z "$ac_cv_prog_OTOOL"; then
6284 ac_ct_OTOOL=$OTOOL
6285 # Extract the first word of "otool", so it can be a program name with args.
6286set dummy otool; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$ac_ct_OTOOL"; then
6293 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_ac_ct_OTOOL="otool"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306done
6307 done
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6313if test -n "$ac_ct_OTOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6315$as_echo "$ac_ct_OTOOL" >&6; }
6316else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321 if test "x$ac_ct_OTOOL" = x; then
6322 OTOOL=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325yes:)
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328ac_tool_warned=yes ;;
6329esac
6330 OTOOL=$ac_ct_OTOOL
6331 fi
6332else
6333 OTOOL="$ac_cv_prog_OTOOL"
6334fi
6335
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6338set dummy ${ac_tool_prefix}otool64; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_OTOOL64+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343else
6344 if test -n "$OTOOL64"; then
6345 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
6359 done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364OTOOL64=$ac_cv_prog_OTOOL64
6365if test -n "$OTOOL64"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6367$as_echo "$OTOOL64" >&6; }
6368else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_OTOOL64"; then
6376 ac_ct_OTOOL64=$OTOOL64
6377 # Extract the first word of "otool64", so it can be a program name with args.
6378set dummy otool64; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$ac_ct_OTOOL64"; then
6385 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_OTOOL64="otool64"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6405if test -n "$ac_ct_OTOOL64"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6407$as_echo "$ac_ct_OTOOL64" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413 if test "x$ac_ct_OTOOL64" = x; then
6414 OTOOL64=":"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417yes:)
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420ac_tool_warned=yes ;;
6421esac
6422 OTOOL64=$ac_ct_OTOOL64
6423 fi
6424else
6425 OTOOL64="$ac_cv_prog_OTOOL64"
6426fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6455$as_echo_n "checking for -single_module linker flag... " >&6; }
6456if ${lt_cv_apple_cc_single_mod+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458else
6459 lt_cv_apple_cc_single_mod=no
6460 if test -z "${LT_MULTI_MODULE}"; then
6461 # By default we will add the -single_module flag. You can override
6462 # by either setting the environment variable LT_MULTI_MODULE
6463 # non-empty at configure time, or by adding -multi_module to the
6464 # link flags.
6465 rm -rf libconftest.dylib*
6466 echo "int foo(void){return 1;}" > conftest.c
6467 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6468-dynamiclib -Wl,-single_module conftest.c" >&5
6469 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6470 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6471 _lt_result=$?
6472 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6473 lt_cv_apple_cc_single_mod=yes
6474 else
6475 cat conftest.err >&5
6476 fi
6477 rm -rf libconftest.dylib*
6478 rm -f conftest.*
6479 fi
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6482$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6484$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6485if ${lt_cv_ld_exported_symbols_list+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487else
6488 lt_cv_ld_exported_symbols_list=no
6489 save_LDFLAGS=$LDFLAGS
6490 echo "_main" > conftest.sym
6491 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h. */
6494
6495int
6496main ()
6497{
6498
6499 ;
6500 return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_link "$LINENO"; then :
6504 lt_cv_ld_exported_symbols_list=yes
6505else
6506 lt_cv_ld_exported_symbols_list=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6510 LDFLAGS="$save_LDFLAGS"
6511
6512fi
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6514$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6516$as_echo_n "checking for -force_load linker flag... " >&6; }
6517if ${lt_cv_ld_force_load+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519else
6520 lt_cv_ld_force_load=no
6521 cat > conftest.c << _LT_EOF
6522int forced_loaded() { return 2;}
6523_LT_EOF
6524 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6525 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6526 echo "$AR cru libconftest.a conftest.o" >&5
6527 $AR cru libconftest.a conftest.o 2>&5
6528 cat > conftest.c << _LT_EOF
6529int main() { return 0;}
6530_LT_EOF
6531 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6532 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6533 _lt_result=$?
6534 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6535 lt_cv_ld_force_load=yes
6536 else
6537 cat conftest.err >&5
6538 fi
6539 rm -f conftest.err libconftest.a conftest conftest.c
6540 rm -rf conftest.dSYM
6541
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6544$as_echo "$lt_cv_ld_force_load" >&6; }
6545 case $host_os in
6546 rhapsody* | darwin1.[012])
6547 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6548 darwin1.*)
6549 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6550 darwin*) # darwin 5.x on
6551 # if running on 10.5 or later, the deployment target defaults
6552 # to the OS version, if on x86, and 10.4, the deployment
6553 # target defaults to 10.4. Don't you love it?
6554 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6555 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6556 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6557 10.[012][,.]*)
6558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6559 10.*)
6560 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6561 esac
6562 ;;
6563 esac
6564 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6565 _lt_dar_single_mod='$single_module'
6566 fi
6567 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6568 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6569 else
6570 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6571 fi
6572 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6573 _lt_dsymutil='~$DSYMUTIL $lib || :'
6574 else
6575 _lt_dsymutil=
6576 fi
6577 ;;
6578 esac
6579
6580for ac_header in dlfcn.h
6581do :
6582 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6583"
6584if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6585 cat >>confdefs.h <<_ACEOF
6586#define HAVE_DLFCN_H 1
6587_ACEOF
6588
6589fi
6590
6591done
6592
6593
6594
ebe9564b 6595
b26e2ae7
JM
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6598$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6599if ${ac_cv_c_bigendian+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601else
6602 ac_cv_c_bigendian=unknown
6603 # See if we're dealing with a universal compiler.
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605/* end confdefs.h. */
6606#ifndef __APPLE_CC__
6607 not a universal capable compiler
6608 #endif
6609 typedef int dummy;
6610
6611_ACEOF
6612if ac_fn_c_try_compile "$LINENO"; then :
6613
6614 # Check for potential -arch flags. It is not universal unless
6615 # there are at least two -arch flags with different values.
6616 ac_arch=
6617 ac_prev=
6618 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6619 if test -n "$ac_prev"; then
6620 case $ac_word in
6621 i?86 | x86_64 | ppc | ppc64)
6622 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6623 ac_arch=$ac_word
6624 else
6625 ac_cv_c_bigendian=universal
6626 break
6627 fi
6628 ;;
6629 esac
6630 ac_prev=
6631 elif test "x$ac_word" = "x-arch"; then
6632 ac_prev=arch
6633 fi
6634 done
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 if test $ac_cv_c_bigendian = unknown; then
6638 # See if sys/param.h defines the BYTE_ORDER macro.
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h. */
6641#include <sys/types.h>
6642 #include <sys/param.h>
6643
6644int
6645main ()
6646{
6647#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6648 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6649 && LITTLE_ENDIAN)
6650 bogus endian macros
6651 #endif
6652
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657if ac_fn_c_try_compile "$LINENO"; then :
6658 # It does; now see whether it defined to BIG_ENDIAN or not.
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h. */
6661#include <sys/types.h>
6662 #include <sys/param.h>
6663
6664int
6665main ()
6666{
6667#if BYTE_ORDER != BIG_ENDIAN
6668 not big endian
6669 #endif
6670
6671 ;
6672 return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_compile "$LINENO"; then :
6676 ac_cv_c_bigendian=yes
6677else
6678 ac_cv_c_bigendian=no
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 fi
6684 if test $ac_cv_c_bigendian = unknown; then
6685 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688#include <limits.h>
6689
6690int
6691main ()
6692{
6693#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6694 bogus endian macros
6695 #endif
6696
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_compile "$LINENO"; then :
6702 # It does; now see whether it defined to _BIG_ENDIAN or not.
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h. */
6705#include <limits.h>
6706
6707int
6708main ()
6709{
6710#ifndef _BIG_ENDIAN
6711 not big endian
6712 #endif
6713
6714 ;
6715 return 0;
6716}
6717_ACEOF
6718if ac_fn_c_try_compile "$LINENO"; then :
6719 ac_cv_c_bigendian=yes
6720else
6721 ac_cv_c_bigendian=no
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 fi
6727 if test $ac_cv_c_bigendian = unknown; then
6728 # Compile a test program.
6729 if test "$cross_compiling" = yes; then :
6730 # Try to guess by grepping values from an object file.
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733short int ascii_mm[] =
6734 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6735 short int ascii_ii[] =
6736 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6737 int use_ascii (int i) {
6738 return ascii_mm[i] + ascii_ii[i];
6739 }
6740 short int ebcdic_ii[] =
6741 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6742 short int ebcdic_mm[] =
6743 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6744 int use_ebcdic (int i) {
6745 return ebcdic_mm[i] + ebcdic_ii[i];
6746 }
6747 extern int foo;
6748
6749int
6750main ()
6751{
6752return use_ascii (foo) == use_ebcdic (foo);
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6759 ac_cv_c_bigendian=yes
6760 fi
6761 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6762 if test "$ac_cv_c_bigendian" = unknown; then
6763 ac_cv_c_bigendian=no
6764 else
6765 # finding both strings is unlikely to happen, but who knows?
6766 ac_cv_c_bigendian=unknown
6767 fi
6768 fi
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771else
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h. */
6774$ac_includes_default
6775int
6776main ()
6777{
6778
6779 /* Are we little or big endian? From Harbison&Steele. */
6780 union
6781 {
6782 long int l;
6783 char c[sizeof (long int)];
6784 } u;
6785 u.l = 1;
6786 return u.c[sizeof (long int) - 1] == 1;
6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792if ac_fn_c_try_run "$LINENO"; then :
6793 ac_cv_c_bigendian=no
6794else
6795 ac_cv_c_bigendian=yes
6796fi
6797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6798 conftest.$ac_objext conftest.beam conftest.$ac_ext
6799fi
6800
6801 fi
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6804$as_echo "$ac_cv_c_bigendian" >&6; }
6805 case $ac_cv_c_bigendian in #(
6806 yes)
6807 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6808;; #(
6809 no)
6810 ;; #(
6811 universal)
6812
6813$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6814
6815 ;; #(
6816 *)
6817 as_fn_error $? "unknown endianness
6818 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6819 esac
6820
6821
6822
6823
c25ea03d
MF
6824if test "x$cross_compiling" = "xno"; then
6825 : "${CC_FOR_BUILD:=\$(CC)}"
6826 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6827 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d
MF
6828else
6829 : "${CC_FOR_BUILD:=gcc}"
6830 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6831 : "${LDLFAGS_FOR_BUILD:=}"
b26e2ae7
JM
6832fi
6833
6834
6835
c25ea03d 6836
c2783492 6837
a3e2cc64
MF
6838if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6840set dummy ${ac_tool_prefix}ar; ac_word=$2
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if ${ac_cv_prog_AR+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 if test -n "$AR"; then
6847 ac_cv_prog_AR="$AR" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_AR="${ac_tool_prefix}ar"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861 done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866AR=$ac_cv_prog_AR
6867if test -n "$AR"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6869$as_echo "$AR" >&6; }
6870else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875
6876fi
6877if test -z "$ac_cv_prog_AR"; then
6878 ac_ct_AR=$AR
6879 # Extract the first word of "ar", so it can be a program name with args.
6880set dummy ar; ac_word=$2
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if ${ac_cv_prog_ac_ct_AR+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885else
6886 if test -n "$ac_ct_AR"; then
6887 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_ac_ct_AR="ar"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901 done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906ac_ct_AR=$ac_cv_prog_ac_ct_AR
6907if test -n "$ac_ct_AR"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6909$as_echo "$ac_ct_AR" >&6; }
6910else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915 if test "x$ac_ct_AR" = x; then
6916 AR=""
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924 AR=$ac_ct_AR
6925 fi
6926else
6927 AR="$ac_cv_prog_AR"
6928fi
b26e2ae7
JM
6929
6930if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if ${ac_cv_prog_RANLIB+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937else
6938 if test -n "$RANLIB"; then
6939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953 done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958RANLIB=$ac_cv_prog_RANLIB
6959if test -n "$RANLIB"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6961$as_echo "$RANLIB" >&6; }
6962else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967
6968fi
6969if test -z "$ac_cv_prog_RANLIB"; then
6970 ac_ct_RANLIB=$RANLIB
6971 # Extract the first word of "ranlib", so it can be a program name with args.
6972set dummy ranlib; ac_word=$2
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977else
6978 if test -n "$ac_ct_RANLIB"; then
6979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_ac_ct_RANLIB="ranlib"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993 done
6994IFS=$as_save_IFS
6995
6996fi
6997fi
6998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6999if test -n "$ac_ct_RANLIB"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7001$as_echo "$ac_ct_RANLIB" >&6; }
7002else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
7005fi
7006
7007 if test "x$ac_ct_RANLIB" = x; then
7008 RANLIB=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016 RANLIB=$ac_ct_RANLIB
7017 fi
7018else
7019 RANLIB="$ac_cv_prog_RANLIB"
7020fi
7021
7022
46f900c0
MF
7023# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
7024# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
7025# is C99. So handle it ourselves.
7026:
7027C_DIALECT=
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
7029$as_echo_n "checking whether C11 is supported by default... " >&6; }
7030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h. */
7032
7033#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7034# error "C11 support not found"
7035#endif
7036
7037_ACEOF
7038if ac_fn_c_try_compile "$LINENO"; then :
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7040$as_echo "yes" >&6; }
7041else
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
7046$as_echo_n "checking for -std=c11 support... " >&6; }
7047 ac_save_CC="$CC"
7048 CC="$CC -std=c11"
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h. */
7051
7052#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
7053# error "C11 support not found"
7054#endif
7055
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"; then :
7058
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7060$as_echo "yes" >&6; }
7061 CC="$ac_save_CC"
7062 C_DIALECT="-std=c11"
7063
7064else
7065 as_fn_error $? "C11 is required" "$LINENO" 5
7066fi
7067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070
7071
c2783492
MF
7072ac_config_headers="$ac_config_headers config.h:config.in"
7073
7074
b26e2ae7
JM
7075# Some of the common include files depend on bfd.h, and bfd.h checks
7076# that config.h is included first by testing that the PACKAGE macro
7077# is defined.
7078PACKAGE=sim
7079
7080cat >>confdefs.h <<_ACEOF
7081#define PACKAGE "$PACKAGE"
7082_ACEOF
7083
7084
7085
7086# Dependency checking.
7087ac_config_commands="$ac_config_commands depdir"
7088
7089
7090depcc="$CC" am_compiler_list=
7091
7092am_depcomp=$ac_aux_dir/depcomp
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7094$as_echo_n "checking dependency style of $depcc... " >&6; }
7095if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097else
7098 if test -f "$am_depcomp"; then
7099 # We make a subdir and do the tests there. Otherwise we can end up
7100 # making bogus files that we don't know about and never remove. For
7101 # instance it was reported that on HP-UX the gcc test will end up
7102 # making a dummy file named `D' -- because `-MD' means `put the output
7103 # in D'.
7104 mkdir conftest.dir
7105 # Copy depcomp to subdir because otherwise we won't find it if we're
7106 # using a relative directory.
7107 cp "$am_depcomp" conftest.dir
7108 cd conftest.dir
7109 # We will build objects and dependencies in a subdirectory because
7110 # it helps to detect inapplicable dependency modes. For instance
7111 # both Tru64's cc and ICC support -MD to output dependencies as a
7112 # side effect of compilation, but ICC will put the dependencies in
7113 # the current directory while Tru64 will put them in the object
7114 # directory.
7115 mkdir sub
7116
7117 am_cv_CC_dependencies_compiler_type=none
7118 if test "$am_compiler_list" = ""; then
7119 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7120 fi
7121 for depmode in $am_compiler_list; do
7122 if test $depmode = none; then break; fi
7123
7124 $as_echo "$as_me:$LINENO: trying $depmode" >&5
7125 # Setup a source with many dependencies, because some compilers
7126 # like to wrap large dependency lists on column 80 (with \), and
7127 # we should not choose a depcomp mode which is confused by this.
7128 #
7129 # We need to recreate these files for each test, as the compiler may
7130 # overwrite some of them when testing with obscure command lines.
7131 # This happens at least with the AIX C compiler.
7132 : > sub/conftest.c
7133 for i in 1 2 3 4 5 6; do
7134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7136 # Solaris 8's {/usr,}/bin/sh.
7137 touch sub/conftst$i.h
7138 done
7139 echo "include sub/conftest.Po" > confmf
7140
7141 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7142 # mode. It turns out that the SunPro C++ compiler does not properly
7143 # handle `-M -o', and we need to detect this.
7144 depcmd="depmode=$depmode \
7145 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7146 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7147 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7148 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7149 if env $depcmd > conftest.err 2>&1 &&
7150 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7151 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7152 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7153 # icc doesn't choke on unknown options, it will just issue warnings
7154 # or remarks (even with -Werror). So we grep stderr for any message
7155 # that says an option was ignored or not supported.
7156 # When given -MP, icc 7.0 and 7.1 complain thusly:
7157 # icc: Command line warning: ignoring option '-M'; no argument required
7158 # The diagnosis changed in icc 8.0:
7159 # icc: Command line remark: option '-MP' not supported
7160 if (grep 'ignoring option' conftest.err ||
7161 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7162 am_cv_CC_dependencies_compiler_type=$depmode
7163 $as_echo "$as_me:$LINENO: success" >&5
7164 break
7165 fi
7166 fi
7167 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7168 sed -e 's/^/| /' < conftest.err >&5
7169 done
7170
7171 cd ..
7172 rm -rf conftest.dir
7173else
7174 am_cv_CC_dependencies_compiler_type=none
7175fi
7176
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7179$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7180if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
7181then as_fn_error $? "no usable dependency style found" "$LINENO" 5
7182else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7183
7184fi
7185
7186
7187# Check for the 'make' the user wants to use.
7188for ac_prog in make
7189do
7190 # Extract the first word of "$ac_prog", so it can be a program name with args.
7191set dummy $ac_prog; ac_word=$2
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193$as_echo_n "checking for $ac_word... " >&6; }
7194if ${ac_cv_prog_MAKE+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196else
7197 if test -n "$MAKE"; then
7198 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_MAKE="$ac_prog"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212 done
7213IFS=$as_save_IFS
7214
7215fi
7216fi
7217MAKE=$ac_cv_prog_MAKE
7218if test -n "$MAKE"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7220$as_echo "$MAKE" >&6; }
7221else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223$as_echo "no" >&6; }
7224fi
7225
7226
7227 test -n "$MAKE" && break
7228done
7229
7230MAKE_IS_GNU=
7231case "`$MAKE --version 2>&1 | sed 1q`" in
7232 *GNU*)
7233 MAKE_IS_GNU=yes
7234 ;;
7235esac
7236 if test "$MAKE_IS_GNU" = yes; then
7237 GMAKE_TRUE=
7238 GMAKE_FALSE='#'
7239else
7240 GMAKE_TRUE='#'
7241 GMAKE_FALSE=
7242fi
7243
7244
7245ALL_LINGUAS=
7246# If we haven't got the data from the intl directory,
7247# assume NLS is disabled.
7248USE_NLS=no
7249LIBINTL=
7250LIBINTL_DEP=
7251INCINTL=
7252XGETTEXT=
7253GMSGFMT=
7254POSUB=
7255
7256if test -f ../../intl/config.intl; then
7257 . ../../intl/config.intl
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7260$as_echo_n "checking whether NLS is requested... " >&6; }
7261if test x"$USE_NLS" != xyes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
7264else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7266$as_echo "yes" >&6; }
7267
7268$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7269
7270
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7272$as_echo_n "checking for catalogs to be installed... " >&6; }
7273 # Look for .po and .gmo files in the source directory.
7274 CATALOGS=
7275 XLINGUAS=
7276 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7277 # If there aren't any .gmo files the shell will give us the
7278 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7279 # weeded out.
7280 case "$cat" in *\**)
7281 continue;;
7282 esac
7283 # The quadruple backslash is collapsed to a double backslash
7284 # by the backticks, then collapsed again by the double quotes,
7285 # leaving us with one backslash in the sed expression (right
7286 # before the dot that mustn't act as a wildcard).
7287 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7288 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7289 # The user is allowed to set LINGUAS to a list of languages to
7290 # install catalogs for. If it's empty that means "all of them."
7291 if test "x$LINGUAS" = x; then
7292 CATALOGS="$CATALOGS $cat"
7293 XLINGUAS="$XLINGUAS $lang"
7294 else
7295 case "$LINGUAS" in *$lang*)
7296 CATALOGS="$CATALOGS $cat"
7297 XLINGUAS="$XLINGUAS $lang"
7298 ;;
7299 esac
7300 fi
7301 done
7302 LINGUAS="$XLINGUAS"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7304$as_echo "$LINGUAS" >&6; }
7305
7306
7307 DATADIRNAME=share
7308
7309 INSTOBJEXT=.mo
7310
7311 GENCAT=gencat
7312
7313 CATOBJEXT=.gmo
7314
7315fi
7316
7317# Check for common headers.
68ed2854
MF
7318# NB: You can assume C11 headers exist.
7319for ac_header in unistd.h
b26e2ae7 7320do :
68ed2854
MF
7321 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7322if test "x$ac_cv_header_unistd_h" = xyes; then :
b26e2ae7 7323 cat >>confdefs.h <<_ACEOF
68ed2854 7324#define HAVE_UNISTD_H 1
b26e2ae7
JM
7325_ACEOF
7326
7327fi
7328
7329done
7330
7331for ac_header in sys/time.h sys/times.h sys/resource.h sys/mman.h
7332do :
7333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7334ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7335if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7336 cat >>confdefs.h <<_ACEOF
7337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7338_ACEOF
7339
7340fi
7341
7342done
7343
7344for ac_header in fcntl.h fpu_control.h
7345do :
7346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7348if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7349 cat >>confdefs.h <<_ACEOF
7350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7351_ACEOF
7352
7353fi
7354
7355done
7356
68ed2854 7357for ac_header in dlfcn.h sys/stat.h
b26e2ae7
JM
7358do :
7359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7362 cat >>confdefs.h <<_ACEOF
7363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7364_ACEOF
7365
7366fi
7367
7368done
7369
b26e2ae7
JM
7370
7371ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7372#include <sys/types.h>
7373#endif
7374#ifdef HAVE_SYS_STAT_H
7375#include <sys/stat.h>
7376#endif
7377"
7378if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7379
7380cat >>confdefs.h <<_ACEOF
7381#define HAVE_STRUCT_STAT_ST_DEV 1
7382_ACEOF
7383
7384
7385fi
7386ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7387#include <sys/types.h>
7388#endif
7389#ifdef HAVE_SYS_STAT_H
7390#include <sys/stat.h>
7391#endif
7392"
7393if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
7394
7395cat >>confdefs.h <<_ACEOF
7396#define HAVE_STRUCT_STAT_ST_INO 1
7397_ACEOF
7398
7399
7400fi
7401ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
7402#include <sys/types.h>
7403#endif
7404#ifdef HAVE_SYS_STAT_H
7405#include <sys/stat.h>
7406#endif
7407"
7408if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
7409
7410cat >>confdefs.h <<_ACEOF
7411#define HAVE_STRUCT_STAT_ST_MODE 1
7412_ACEOF
7413
7414
7415fi
7416ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
7417#include <sys/types.h>
7418#endif
7419#ifdef HAVE_SYS_STAT_H
7420#include <sys/stat.h>
7421#endif
7422"
7423if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
7424
7425cat >>confdefs.h <<_ACEOF
7426#define HAVE_STRUCT_STAT_ST_NLINK 1
7427_ACEOF
7428
7429
7430fi
7431ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
7432#include <sys/types.h>
7433#endif
7434#ifdef HAVE_SYS_STAT_H
7435#include <sys/stat.h>
7436#endif
7437"
7438if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
7439
7440cat >>confdefs.h <<_ACEOF
7441#define HAVE_STRUCT_STAT_ST_UID 1
7442_ACEOF
7443
7444
7445fi
7446ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
7447#include <sys/types.h>
7448#endif
7449#ifdef HAVE_SYS_STAT_H
7450#include <sys/stat.h>
7451#endif
7452"
7453if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
7454
7455cat >>confdefs.h <<_ACEOF
7456#define HAVE_STRUCT_STAT_ST_GID 1
7457_ACEOF
7458
7459
7460fi
7461ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
7462#include <sys/types.h>
7463#endif
7464#ifdef HAVE_SYS_STAT_H
7465#include <sys/stat.h>
7466#endif
7467"
7468if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7469
7470cat >>confdefs.h <<_ACEOF
7471#define HAVE_STRUCT_STAT_ST_RDEV 1
7472_ACEOF
7473
7474
7475fi
7476ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
7477#include <sys/types.h>
7478#endif
7479#ifdef HAVE_SYS_STAT_H
7480#include <sys/stat.h>
7481#endif
7482"
7483if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
7484
7485cat >>confdefs.h <<_ACEOF
7486#define HAVE_STRUCT_STAT_ST_SIZE 1
7487_ACEOF
7488
7489
7490fi
7491ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
7492#include <sys/types.h>
7493#endif
7494#ifdef HAVE_SYS_STAT_H
7495#include <sys/stat.h>
7496#endif
7497"
7498if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7499
7500cat >>confdefs.h <<_ACEOF
7501#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7502_ACEOF
7503
7504
7505fi
7506ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
7507#include <sys/types.h>
7508#endif
7509#ifdef HAVE_SYS_STAT_H
7510#include <sys/stat.h>
7511#endif
7512"
7513if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7514
7515cat >>confdefs.h <<_ACEOF
7516#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7517_ACEOF
7518
7519
7520fi
7521ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
7522#include <sys/types.h>
7523#endif
7524#ifdef HAVE_SYS_STAT_H
7525#include <sys/stat.h>
7526#endif
7527"
7528if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
7529
7530cat >>confdefs.h <<_ACEOF
7531#define HAVE_STRUCT_STAT_ST_ATIME 1
7532_ACEOF
7533
7534
7535fi
7536ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
7537#include <sys/types.h>
7538#endif
7539#ifdef HAVE_SYS_STAT_H
7540#include <sys/stat.h>
7541#endif
7542"
7543if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
7544
7545cat >>confdefs.h <<_ACEOF
7546#define HAVE_STRUCT_STAT_ST_MTIME 1
7547_ACEOF
7548
7549
7550fi
7551ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
7552#include <sys/types.h>
7553#endif
7554#ifdef HAVE_SYS_STAT_H
7555#include <sys/stat.h>
7556#endif
7557"
7558if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
7559
7560cat >>confdefs.h <<_ACEOF
7561#define HAVE_STRUCT_STAT_ST_CTIME 1
7562_ACEOF
7563
7564
7565fi
7566
7567ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7568#include <sys/socket.h>
7569
7570"
7571if test "x$ac_cv_type_socklen_t" = xyes; then :
7572
7573cat >>confdefs.h <<_ACEOF
7574#define HAVE_SOCKLEN_T 1
7575_ACEOF
7576
7577
7578fi
7579
7580
7581# Check for socket libraries
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7583$as_echo_n "checking for bind in -lsocket... " >&6; }
7584if ${ac_cv_lib_socket_bind+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586else
7587 ac_check_lib_save_LIBS=$LIBS
7588LIBS="-lsocket $LIBS"
7589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h. */
7591
7592/* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7595#ifdef __cplusplus
7596extern "C"
7597#endif
7598char bind ();
7599int
7600main ()
7601{
7602return bind ();
7603 ;
7604 return 0;
7605}
7606_ACEOF
7607if ac_fn_c_try_link "$LINENO"; then :
7608 ac_cv_lib_socket_bind=yes
7609else
7610 ac_cv_lib_socket_bind=no
7611fi
7612rm -f core conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7614LIBS=$ac_check_lib_save_LIBS
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7617$as_echo "$ac_cv_lib_socket_bind" >&6; }
7618if test "x$ac_cv_lib_socket_bind" = xyes; then :
7619 cat >>confdefs.h <<_ACEOF
7620#define HAVE_LIBSOCKET 1
7621_ACEOF
7622
7623 LIBS="-lsocket $LIBS"
7624
7625fi
7626
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7628$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7629if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 ac_check_lib_save_LIBS=$LIBS
7633LIBS="-lnsl $LIBS"
7634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h. */
7636
7637/* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640#ifdef __cplusplus
7641extern "C"
7642#endif
7643char gethostbyname ();
7644int
7645main ()
7646{
7647return gethostbyname ();
7648 ;
7649 return 0;
7650}
7651_ACEOF
7652if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_nsl_gethostbyname=yes
7654else
7655 ac_cv_lib_nsl_gethostbyname=no
7656fi
7657rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659LIBS=$ac_check_lib_save_LIBS
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7662$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7663if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7664 cat >>confdefs.h <<_ACEOF
7665#define HAVE_LIBNSL 1
7666_ACEOF
7667
7668 LIBS="-lnsl $LIBS"
7669
7670fi
7671
7672
7673# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7674# using the same condition.
7675
7676 # Use the system's zlib library.
7677 zlibdir="-L\$(top_builddir)/../zlib"
7678 zlibinc="-I\$(top_srcdir)/../zlib"
7679
7680# Check whether --with-system-zlib was given.
7681if test "${with_system_zlib+set}" = set; then :
7682 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7683 zlibdir=
7684 zlibinc=
7685 fi
7686
7687fi
7688
7689
7690
7691
7692
7693# BFD uses libdl when when plugins enabled.
7694
7695 maybe_plugins=no
7696 for ac_header in dlfcn.h
7697do :
7698 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7699"
7700if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7701 cat >>confdefs.h <<_ACEOF
7702#define HAVE_DLFCN_H 1
7703_ACEOF
7704 maybe_plugins=yes
7705fi
7706
7707done
7708
7709 for ac_header in windows.h
7710do :
7711 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7712"
7713if test "x$ac_cv_header_windows_h" = xyes; then :
7714 cat >>confdefs.h <<_ACEOF
7715#define HAVE_WINDOWS_H 1
7716_ACEOF
7717 maybe_plugins=yes
7718fi
7719
7720done
7721
7722
7723 # Check whether --enable-plugins was given.
7724if test "${enable_plugins+set}" = set; then :
7725 enableval=$enable_plugins; case "${enableval}" in
7726 no) plugins=no ;;
7727 *) plugins=yes
7728 if test "$maybe_plugins" != "yes" ; then
7729 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7730 fi ;;
7731 esac
7732else
7733 plugins=$maybe_plugins
7734
7735fi
7736
7737 if test "$plugins" = "yes"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7739$as_echo_n "checking for library containing dlsym... " >&6; }
7740if ${ac_cv_search_dlsym+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742else
7743 ac_func_search_save_LIBS=$LIBS
7744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h. */
7746
7747/* Override any GCC internal prototype to avoid an error.
7748 Use char because int might match the return type of a GCC
7749 builtin and then its argument prototype would still apply. */
7750#ifdef __cplusplus
7751extern "C"
7752#endif
7753char dlsym ();
7754int
7755main ()
7756{
7757return dlsym ();
7758 ;
7759 return 0;
7760}
7761_ACEOF
7762for ac_lib in '' dl; do
7763 if test -z "$ac_lib"; then
7764 ac_res="none required"
7765 else
7766 ac_res=-l$ac_lib
7767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7768 fi
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 ac_cv_search_dlsym=$ac_res
7771fi
7772rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext
7774 if ${ac_cv_search_dlsym+:} false; then :
7775 break
7776fi
7777done
7778if ${ac_cv_search_dlsym+:} false; then :
7779
7780else
7781 ac_cv_search_dlsym=no
7782fi
7783rm conftest.$ac_ext
7784LIBS=$ac_func_search_save_LIBS
7785fi
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7787$as_echo "$ac_cv_search_dlsym" >&6; }
7788ac_res=$ac_cv_search_dlsym
7789if test "$ac_res" != no; then :
7790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7791
7792fi
7793
7794 fi
7795
7796 if test "$plugins" = yes; then
7797 PLUGINS_TRUE=
7798 PLUGINS_FALSE='#'
7799else
7800 PLUGINS_TRUE='#'
7801 PLUGINS_FALSE=
7802fi
7803
7804
7805
7806
7807
7808# Set options
7809enable_dlopen=yes
7810
7811
7812
7813
7814 enable_win32_dll=no
7815
7816
7817 # Check whether --enable-shared was given.
7818if test "${enable_shared+set}" = set; then :
7819 enableval=$enable_shared; p=${PACKAGE-default}
7820 case $enableval in
7821 yes) enable_shared=yes ;;
7822 no) enable_shared=no ;;
7823 *)
7824 enable_shared=no
7825 # Look at the argument we got. We use all the common list separators.
7826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7827 for pkg in $enableval; do
7828 IFS="$lt_save_ifs"
7829 if test "X$pkg" = "X$p"; then
7830 enable_shared=yes
7831 fi
7832 done
7833 IFS="$lt_save_ifs"
7834 ;;
7835 esac
7836else
7837 enable_shared=yes
7838fi
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848 # Check whether --enable-static was given.
7849if test "${enable_static+set}" = set; then :
7850 enableval=$enable_static; p=${PACKAGE-default}
7851 case $enableval in
7852 yes) enable_static=yes ;;
7853 no) enable_static=no ;;
7854 *)
7855 enable_static=no
7856 # Look at the argument we got. We use all the common list separators.
7857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7858 for pkg in $enableval; do
7859 IFS="$lt_save_ifs"
7860 if test "X$pkg" = "X$p"; then
7861 enable_static=yes
7862 fi
7863 done
7864 IFS="$lt_save_ifs"
7865 ;;
7866 esac
7867else
7868 enable_static=yes
7869fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880# Check whether --with-pic was given.
7881if test "${with_pic+set}" = set; then :
7882 withval=$with_pic; pic_mode="$withval"
7883else
7884 pic_mode=default
7885fi
7886
7887
7888test -z "$pic_mode" && pic_mode=default
7889
7890
7891
7892
7893
7894
7895
7896 # Check whether --enable-fast-install was given.
7897if test "${enable_fast_install+set}" = set; then :
7898 enableval=$enable_fast_install; p=${PACKAGE-default}
7899 case $enableval in
7900 yes) enable_fast_install=yes ;;
7901 no) enable_fast_install=no ;;
7902 *)
7903 enable_fast_install=no
7904 # Look at the argument we got. We use all the common list separators.
7905 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7906 for pkg in $enableval; do
7907 IFS="$lt_save_ifs"
7908 if test "X$pkg" = "X$p"; then
7909 enable_fast_install=yes
7910 fi
7911 done
7912 IFS="$lt_save_ifs"
7913 ;;
7914 esac
7915else
7916 enable_fast_install=yes
7917fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929# This can be used to rebuild libtool when needed
7930LIBTOOL_DEPS="$ltmain"
7931
7932# Always use our own libtool.
7933LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960test -z "$LN_S" && LN_S="ln -s"
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975if test -n "${ZSH_VERSION+set}" ; then
7976 setopt NO_GLOB_SUBST
7977fi
7978
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7980$as_echo_n "checking for objdir... " >&6; }
7981if ${lt_cv_objdir+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 rm -f .libs 2>/dev/null
7985mkdir .libs 2>/dev/null
7986if test -d .libs; then
7987 lt_cv_objdir=.libs
7988else
7989 # MS-DOS does not allow filenames that begin with a dot.
7990 lt_cv_objdir=_libs
7991fi
7992rmdir .libs 2>/dev/null
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7995$as_echo "$lt_cv_objdir" >&6; }
7996objdir=$lt_cv_objdir
7997
7998
7999
8000
8001
8002cat >>confdefs.h <<_ACEOF
8003#define LT_OBJDIR "$lt_cv_objdir/"
8004_ACEOF
8005
8006
8007
8008
8009case $host_os in
8010aix3*)
8011 # AIX sometimes has problems with the GCC collect2 program. For some
8012 # reason, if we set the COLLECT_NAMES environment variable, the problems
8013 # vanish in a puff of smoke.
8014 if test "X${COLLECT_NAMES+set}" != Xset; then
8015 COLLECT_NAMES=
8016 export COLLECT_NAMES
8017 fi
8018 ;;
8019esac
8020
8021# Global variables:
8022ofile=libtool
8023can_build_shared=yes
8024
8025# All known linkers require a `.a' archive for static linking (except MSVC,
8026# which needs '.lib').
8027libext=a
8028
8029with_gnu_ld="$lt_cv_prog_gnu_ld"
8030
8031old_CC="$CC"
8032old_CFLAGS="$CFLAGS"
8033
8034# Set sane defaults for various variables
8035test -z "$CC" && CC=cc
8036test -z "$LTCC" && LTCC=$CC
8037test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8038test -z "$LD" && LD=ld
8039test -z "$ac_objext" && ac_objext=o
8040
8041for cc_temp in $compiler""; do
8042 case $cc_temp in
8043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8045 \-*) ;;
8046 *) break;;
8047 esac
8048done
8049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8050
8051
8052# Only perform the check for file, if the check method requires it
8053test -z "$MAGIC_CMD" && MAGIC_CMD=file
8054case $deplibs_check_method in
8055file_magic*)
8056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8058$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8059if ${lt_cv_path_MAGIC_CMD+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061else
8062 case $MAGIC_CMD in
8063[\\/*] | ?:[\\/]*)
8064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8065 ;;
8066*)
8067 lt_save_MAGIC_CMD="$MAGIC_CMD"
8068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8070 for ac_dir in $ac_dummy; do
8071 IFS="$lt_save_ifs"
8072 test -z "$ac_dir" && ac_dir=.
8073 if test -f $ac_dir/${ac_tool_prefix}file; then
8074 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8075 if test -n "$file_magic_test_file"; then
8076 case $deplibs_check_method in
8077 "file_magic "*)
8078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8081 $EGREP "$file_magic_regex" > /dev/null; then
8082 :
8083 else
8084 cat <<_LT_EOF 1>&2
8085
8086*** Warning: the command libtool uses to detect shared libraries,
8087*** $file_magic_cmd, produces output that libtool cannot recognize.
8088*** The result is that libtool may fail to recognize shared libraries
8089*** as such. This will affect the creation of libtool libraries that
8090*** depend on shared libraries, but programs linked with such libtool
8091*** libraries will work regardless of this problem. Nevertheless, you
8092*** may want to report the problem to your system manager and/or to
8093*** bug-libtool@gnu.org
8094
8095_LT_EOF
8096 fi ;;
8097 esac
8098 fi
8099 break
8100 fi
8101 done
8102 IFS="$lt_save_ifs"
8103 MAGIC_CMD="$lt_save_MAGIC_CMD"
8104 ;;
8105esac
8106fi
8107
8108MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8109if test -n "$MAGIC_CMD"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8111$as_echo "$MAGIC_CMD" >&6; }
8112else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
8116
8117
8118
8119
8120
8121if test -z "$lt_cv_path_MAGIC_CMD"; then
8122 if test -n "$ac_tool_prefix"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8124$as_echo_n "checking for file... " >&6; }
8125if ${lt_cv_path_MAGIC_CMD+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127else
8128 case $MAGIC_CMD in
8129[\\/*] | ?:[\\/]*)
8130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8131 ;;
8132*)
8133 lt_save_MAGIC_CMD="$MAGIC_CMD"
8134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8136 for ac_dir in $ac_dummy; do
8137 IFS="$lt_save_ifs"
8138 test -z "$ac_dir" && ac_dir=.
8139 if test -f $ac_dir/file; then
8140 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8141 if test -n "$file_magic_test_file"; then
8142 case $deplibs_check_method in
8143 "file_magic "*)
8144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8147 $EGREP "$file_magic_regex" > /dev/null; then
8148 :
8149 else
8150 cat <<_LT_EOF 1>&2
8151
8152*** Warning: the command libtool uses to detect shared libraries,
8153*** $file_magic_cmd, produces output that libtool cannot recognize.
8154*** The result is that libtool may fail to recognize shared libraries
8155*** as such. This will affect the creation of libtool libraries that
8156*** depend on shared libraries, but programs linked with such libtool
8157*** libraries will work regardless of this problem. Nevertheless, you
8158*** may want to report the problem to your system manager and/or to
8159*** bug-libtool@gnu.org
8160
8161_LT_EOF
8162 fi ;;
8163 esac
8164 fi
8165 break
8166 fi
8167 done
8168 IFS="$lt_save_ifs"
8169 MAGIC_CMD="$lt_save_MAGIC_CMD"
8170 ;;
8171esac
8172fi
8173
8174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8175if test -n "$MAGIC_CMD"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8177$as_echo "$MAGIC_CMD" >&6; }
8178else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180$as_echo "no" >&6; }
8181fi
8182
8183
8184 else
8185 MAGIC_CMD=:
8186 fi
8187fi
8188
8189 fi
8190 ;;
8191esac
8192
8193# Use C for the default configuration in the libtool script
8194
8195lt_save_CC="$CC"
8196ac_ext=c
8197ac_cpp='$CPP $CPPFLAGS'
8198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200ac_compiler_gnu=$ac_cv_c_compiler_gnu
8201
8202
8203# Source file extension for C test sources.
8204ac_ext=c
8205
8206# Object file extension for compiled C test sources.
8207objext=o
8208objext=$objext
8209
8210# Code to be used in simple compile tests
8211lt_simple_compile_test_code="int some_variable = 0;"
8212
8213# Code to be used in simple link tests
8214lt_simple_link_test_code='int main(){return(0);}'
8215
8216
8217
8218
8219
8220
8221
8222# If no C compiler was specified, use CC.
8223LTCC=${LTCC-"$CC"}
8224
8225# If no C compiler flags were specified, use CFLAGS.
8226LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8227
8228# Allow CC to be a program name with arguments.
8229compiler=$CC
8230
8231# Save the default compiler, since it gets overwritten when the other
8232# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8233compiler_DEFAULT=$CC
8234
8235# save warnings/boilerplate of simple test code
8236ac_outfile=conftest.$ac_objext
8237echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8239_lt_compiler_boilerplate=`cat conftest.err`
8240$RM conftest*
8241
8242ac_outfile=conftest.$ac_objext
8243echo "$lt_simple_link_test_code" >conftest.$ac_ext
8244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8245_lt_linker_boilerplate=`cat conftest.err`
8246$RM -r conftest*
8247
8248
8249## CAVEAT EMPTOR:
8250## There is no encapsulation within the following macros, do not change
8251## the running order or otherwise move them around unless you know exactly
8252## what you are doing...
8253if test -n "$compiler"; then
8254
8255lt_prog_compiler_no_builtin_flag=
8256
8257if test "$GCC" = yes; then
8258 case $cc_basename in
8259 nvcc*)
8260 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8261 *)
8262 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8263 esac
8264
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8266$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8267if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269else
8270 lt_cv_prog_compiler_rtti_exceptions=no
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273 lt_compiler_flag="-fno-rtti -fno-exceptions"
8274 # Insert the option either (1) after the last *FLAGS variable, or
8275 # (2) before a word containing "conftest.", or (3) at the end.
8276 # Note that $ac_compile itself does not contain backslashes and begins
8277 # with a dollar sign (not a hyphen), so the echo should work correctly.
8278 # The option is referenced via a variable to avoid confusing sed.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>conftest.err)
8285 ac_status=$?
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 if (exit $ac_status) && test -s "$ac_outfile"; then
8289 # The compiler can only warn and ignore the option if not recognized
8290 # So say no if there are warnings other than the usual output.
8291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8294 lt_cv_prog_compiler_rtti_exceptions=yes
8295 fi
8296 fi
8297 $RM conftest*
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8301$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8302
8303if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8304 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8305else
8306 :
8307fi
8308
8309fi
8310
8311
8312
8313
8314
8315
8316 lt_prog_compiler_wl=
8317lt_prog_compiler_pic=
8318lt_prog_compiler_static=
8319
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8321$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8322
8323 if test "$GCC" = yes; then
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_static='-static'
8326
8327 case $host_os in
8328 aix*)
8329 # All AIX code is PIC.
8330 if test "$host_cpu" = ia64; then
8331 # AIX 5 now supports IA64 processor
8332 lt_prog_compiler_static='-Bstatic'
8333 fi
8334 lt_prog_compiler_pic='-fPIC'
8335 ;;
8336
8337 amigaos*)
8338 case $host_cpu in
8339 powerpc)
8340 # see comment about AmigaOS4 .so support
8341 lt_prog_compiler_pic='-fPIC'
8342 ;;
8343 m68k)
8344 # FIXME: we need at least 68020 code to build shared libraries, but
8345 # adding the `-m68020' flag to GCC prevents building anything better,
8346 # like `-m68040'.
8347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8348 ;;
8349 esac
8350 ;;
8351
8352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8353 # PIC is the default for these OSes.
8354 ;;
8355
8356 mingw* | cygwin* | pw32* | os2* | cegcc*)
8357 # This hack is so that the source file can tell whether it is being
8358 # built for inclusion in a dll (and should export symbols for example).
8359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8360 # (--disable-auto-import) libraries
8361 lt_prog_compiler_pic='-DDLL_EXPORT'
8362 ;;
8363
8364 darwin* | rhapsody*)
8365 # PIC is the default on this platform
8366 # Common symbols not allowed in MH_DYLIB files
8367 lt_prog_compiler_pic='-fno-common'
8368 ;;
8369
8370 haiku*)
8371 # PIC is the default for Haiku.
8372 # The "-static" flag exists, but is broken.
8373 lt_prog_compiler_static=
8374 ;;
8375
8376 hpux*)
8377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8379 # sets the default TLS model and affects inlining.
8380 case $host_cpu in
8381 hppa*64*)
8382 # +Z the default
8383 ;;
8384 *)
8385 lt_prog_compiler_pic='-fPIC'
8386 ;;
8387 esac
8388 ;;
8389
8390 interix[3-9]*)
8391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8392 # Instead, we relocate shared libraries at runtime.
8393 ;;
8394
8395 msdosdjgpp*)
8396 # Just because we use GCC doesn't mean we suddenly get shared libraries
8397 # on systems that don't support them.
8398 lt_prog_compiler_can_build_shared=no
8399 enable_shared=no
8400 ;;
8401
8402 *nto* | *qnx*)
8403 # QNX uses GNU C++, but need to define -shared option too, otherwise
8404 # it will coredump.
8405 lt_prog_compiler_pic='-fPIC -shared'
8406 ;;
8407
8408 sysv4*MP*)
8409 if test -d /usr/nec; then
8410 lt_prog_compiler_pic=-Kconform_pic
8411 fi
8412 ;;
8413
8414 *)
8415 lt_prog_compiler_pic='-fPIC'
8416 ;;
8417 esac
8418
8419 case $cc_basename in
8420 nvcc*) # Cuda Compiler Driver 2.2
8421 lt_prog_compiler_wl='-Xlinker '
8422 lt_prog_compiler_pic='-Xcompiler -fPIC'
8423 ;;
8424 esac
8425 else
8426 # PORTME Check for flag to pass linker flags through the system compiler.
8427 case $host_os in
8428 aix*)
8429 lt_prog_compiler_wl='-Wl,'
8430 if test "$host_cpu" = ia64; then
8431 # AIX 5 now supports IA64 processor
8432 lt_prog_compiler_static='-Bstatic'
8433 else
8434 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8435 fi
8436 ;;
8437
8438 mingw* | cygwin* | pw32* | os2* | cegcc*)
8439 # This hack is so that the source file can tell whether it is being
8440 # built for inclusion in a dll (and should export symbols for example).
8441 lt_prog_compiler_pic='-DDLL_EXPORT'
8442 ;;
8443
8444 hpux9* | hpux10* | hpux11*)
8445 lt_prog_compiler_wl='-Wl,'
8446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8447 # not for PA HP-UX.
8448 case $host_cpu in
8449 hppa*64*|ia64*)
8450 # +Z the default
8451 ;;
8452 *)
8453 lt_prog_compiler_pic='+Z'
8454 ;;
8455 esac
8456 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8457 lt_prog_compiler_static='${wl}-a ${wl}archive'
8458 ;;
8459
8460 irix5* | irix6* | nonstopux*)
8461 lt_prog_compiler_wl='-Wl,'
8462 # PIC (with -KPIC) is the default.
8463 lt_prog_compiler_static='-non_shared'
8464 ;;
8465
8466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8467 case $cc_basename in
8468 # old Intel for x86_64 which still supported -KPIC.
8469 ecc*)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-KPIC'
8472 lt_prog_compiler_static='-static'
8473 ;;
8474 # icc used to be incompatible with GCC.
8475 # ICC 10 doesn't accept -KPIC any more.
8476 icc* | ifort*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-fPIC'
8479 lt_prog_compiler_static='-static'
8480 ;;
8481 # Lahey Fortran 8.1.
8482 lf95*)
8483 lt_prog_compiler_wl='-Wl,'
8484 lt_prog_compiler_pic='--shared'
8485 lt_prog_compiler_static='--static'
8486 ;;
8487 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8488 # Portland Group compilers (*not* the Pentium gcc compiler,
8489 # which looks to be a dead project)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-fpic'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494 ccc*)
8495 lt_prog_compiler_wl='-Wl,'
8496 # All Alpha code is PIC.
8497 lt_prog_compiler_static='-non_shared'
8498 ;;
8499 xl* | bgxl* | bgf* | mpixl*)
8500 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-qpic'
8503 lt_prog_compiler_static='-qstaticlink'
8504 ;;
8505 *)
8506 case `$CC -V 2>&1 | sed 5q` in
8507 *Sun\ F* | *Sun*Fortran*)
8508 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 lt_prog_compiler_wl=''
8512 ;;
8513 *Sun\ C*)
8514 # Sun C 5.9
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 lt_prog_compiler_wl='-Wl,'
8518 ;;
8519 esac
8520 ;;
8521 esac
8522 ;;
8523
8524 newsos6)
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528
8529 *nto* | *qnx*)
8530 # QNX uses GNU C++, but need to define -shared option too, otherwise
8531 # it will coredump.
8532 lt_prog_compiler_pic='-fPIC -shared'
8533 ;;
8534
8535 osf3* | osf4* | osf5*)
8536 lt_prog_compiler_wl='-Wl,'
8537 # All OSF/1 code is PIC.
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540
8541 rdos*)
8542 lt_prog_compiler_static='-non_shared'
8543 ;;
8544
8545 solaris*)
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 case $cc_basename in
8549 f77* | f90* | f95*)
8550 lt_prog_compiler_wl='-Qoption ld ';;
8551 *)
8552 lt_prog_compiler_wl='-Wl,';;
8553 esac
8554 ;;
8555
8556 sunos4*)
8557 lt_prog_compiler_wl='-Qoption ld '
8558 lt_prog_compiler_pic='-PIC'
8559 lt_prog_compiler_static='-Bstatic'
8560 ;;
8561
8562 sysv4 | sysv4.2uw2* | sysv4.3*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 ;;
8567
8568 sysv4*MP*)
8569 if test -d /usr/nec ;then
8570 lt_prog_compiler_pic='-Kconform_pic'
8571 lt_prog_compiler_static='-Bstatic'
8572 fi
8573 ;;
8574
8575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 ;;
8580
8581 unicos*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_can_build_shared=no
8584 ;;
8585
8586 uts4*)
8587 lt_prog_compiler_pic='-pic'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590
8591 *)
8592 lt_prog_compiler_can_build_shared=no
8593 ;;
8594 esac
8595 fi
8596
8597case $host_os in
8598 # For platforms which do not support PIC, -DPIC is meaningless:
8599 *djgpp*)
8600 lt_prog_compiler_pic=
8601 ;;
8602 *)
8603 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8604 ;;
8605esac
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8607$as_echo "$lt_prog_compiler_pic" >&6; }
8608
8609
8610
8611
8612
8613
8614#
8615# Check to make sure the PIC flag actually works.
8616#
8617if test -n "$lt_prog_compiler_pic"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8619$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8620if ${lt_cv_prog_compiler_pic_works+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622else
8623 lt_cv_prog_compiler_pic_works=no
8624 ac_outfile=conftest.$ac_objext
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8627 # Insert the option either (1) after the last *FLAGS variable, or
8628 # (2) before a word containing "conftest.", or (3) at the end.
8629 # Note that $ac_compile itself does not contain backslashes and begins
8630 # with a dollar sign (not a hyphen), so the echo should work correctly.
8631 # The option is referenced via a variable to avoid confusing sed.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>conftest.err)
8638 ac_status=$?
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s "$ac_outfile"; then
8642 # The compiler can only warn and ignore the option if not recognized
8643 # So say no if there are warnings other than the usual output.
8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_pic_works=yes
8648 fi
8649 fi
8650 $RM conftest*
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8654$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8655
8656if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8657 case $lt_prog_compiler_pic in
8658 "" | " "*) ;;
8659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8660 esac
8661else
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_can_build_shared=no
8664fi
8665
8666fi
8667
8668
8669
8670
8671
8672
8673#
8674# Check to make sure the static flag actually works.
8675#
8676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8678$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8679if ${lt_cv_prog_compiler_static_works+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681else
8682 lt_cv_prog_compiler_static_works=no
8683 save_LDFLAGS="$LDFLAGS"
8684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8687 # The linker can only warn and ignore the option if not recognized
8688 # So say no if there are warnings
8689 if test -s conftest.err; then
8690 # Append any errors to the config.log.
8691 cat conftest.err 1>&5
8692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8694 if diff conftest.exp conftest.er2 >/dev/null; then
8695 lt_cv_prog_compiler_static_works=yes
8696 fi
8697 else
8698 lt_cv_prog_compiler_static_works=yes
8699 fi
8700 fi
8701 $RM -r conftest*
8702 LDFLAGS="$save_LDFLAGS"
8703
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8706$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8707
8708if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8709 :
8710else
8711 lt_prog_compiler_static=
8712fi
8713
8714
8715
8716
8717
8718
8719
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8721$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8722if ${lt_cv_prog_compiler_c_o+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724else
8725 lt_cv_prog_compiler_c_o=no
8726 $RM -r conftest 2>/dev/null
8727 mkdir conftest
8728 cd conftest
8729 mkdir out
8730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731
8732 lt_compiler_flag="-o out/conftest2.$ac_objext"
8733 # Insert the option either (1) after the last *FLAGS variable, or
8734 # (2) before a word containing "conftest.", or (3) at the end.
8735 # Note that $ac_compile itself does not contain backslashes and begins
8736 # with a dollar sign (not a hyphen), so the echo should work correctly.
8737 lt_compile=`echo "$ac_compile" | $SED \
8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740 -e 's:$: $lt_compiler_flag:'`
8741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742 (eval "$lt_compile" 2>out/conftest.err)
8743 ac_status=$?
8744 cat out/conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8747 then
8748 # The compiler can only warn and ignore the option if not recognized
8749 # So say no if there are warnings
8750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8753 lt_cv_prog_compiler_c_o=yes
8754 fi
8755 fi
8756 chmod u+w . 2>&5
8757 $RM conftest*
8758 # SGI C++ compiler will create directory out/ii_files/ for
8759 # template instantiation
8760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8761 $RM out/* && rmdir out
8762 cd ..
8763 $RM -r conftest
8764 $RM conftest*
8765
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8768$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8769
8770
8771
8772
8773
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8776$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8777if ${lt_cv_prog_compiler_c_o+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779else
8780 lt_cv_prog_compiler_c_o=no
8781 $RM -r conftest 2>/dev/null
8782 mkdir conftest
8783 cd conftest
8784 mkdir out
8785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8786
8787 lt_compiler_flag="-o out/conftest2.$ac_objext"
8788 # Insert the option either (1) after the last *FLAGS variable, or
8789 # (2) before a word containing "conftest.", or (3) at the end.
8790 # Note that $ac_compile itself does not contain backslashes and begins
8791 # with a dollar sign (not a hyphen), so the echo should work correctly.
8792 lt_compile=`echo "$ac_compile" | $SED \
8793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795 -e 's:$: $lt_compiler_flag:'`
8796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8797 (eval "$lt_compile" 2>out/conftest.err)
8798 ac_status=$?
8799 cat out/conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8802 then
8803 # The compiler can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8808 lt_cv_prog_compiler_c_o=yes
8809 fi
8810 fi
8811 chmod u+w . 2>&5
8812 $RM conftest*
8813 # SGI C++ compiler will create directory out/ii_files/ for
8814 # template instantiation
8815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8816 $RM out/* && rmdir out
8817 cd ..
8818 $RM -r conftest
8819 $RM conftest*
8820
8821fi
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8823$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8824
8825
8826
8827
8828hard_links="nottested"
8829if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8830 # do not overwrite the value of need_locks provided by the user
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8832$as_echo_n "checking if we can lock with hard links... " >&6; }
8833 hard_links=yes
8834 $RM conftest*
8835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836 touch conftest.a
8837 ln conftest.a conftest.b 2>&5 || hard_links=no
8838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8840$as_echo "$hard_links" >&6; }
8841 if test "$hard_links" = no; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8843$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8844 need_locks=warn
8845 fi
8846else
8847 need_locks=no
8848fi
8849
8850
8851
8852
8853
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8856$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8857
8858 runpath_var=
8859 allow_undefined_flag=
8860 always_export_symbols=no
8861 archive_cmds=
8862 archive_expsym_cmds=
8863 compiler_needs_object=no
8864 enable_shared_with_static_runtimes=no
8865 export_dynamic_flag_spec=
8866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8867 hardcode_automatic=no
8868 hardcode_direct=no
8869 hardcode_direct_absolute=no
8870 hardcode_libdir_flag_spec=
8871 hardcode_libdir_flag_spec_ld=
8872 hardcode_libdir_separator=
8873 hardcode_minus_L=no
8874 hardcode_shlibpath_var=unsupported
8875 inherit_rpath=no
8876 link_all_deplibs=unknown
8877 module_cmds=
8878 module_expsym_cmds=
8879 old_archive_from_new_cmds=
8880 old_archive_from_expsyms_cmds=
8881 thread_safe_flag_spec=
8882 whole_archive_flag_spec=
8883 # include_expsyms should be a list of space-separated symbols to be *always*
8884 # included in the symbol list
8885 include_expsyms=
8886 # exclude_expsyms can be an extended regexp of symbols to exclude
8887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8889 # as well as any symbol that contains `d'.
8890 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8892 # platforms (ab)use it in PIC code, but their linkers get confused if
8893 # the symbol is explicitly referenced. Since portable code cannot
8894 # rely on this symbol name, it's probably fine to never include it in
8895 # preloaded symbol tables.
8896 # Exclude shared library initialization/finalization symbols.
8897 extract_expsyms_cmds=
8898
8899 case $host_os in
8900 cygwin* | mingw* | pw32* | cegcc*)
8901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8902 # When not using gcc, we currently assume that we are using
8903 # Microsoft Visual C++.
8904 if test "$GCC" != yes; then
8905 with_gnu_ld=no
8906 fi
8907 ;;
8908 interix*)
8909 # we just hope/assume this is gcc and not c89 (= MSVC++)
8910 with_gnu_ld=yes
8911 ;;
8912 openbsd*)
8913 with_gnu_ld=no
8914 ;;
8915 esac
8916
8917 ld_shlibs=yes
8918
8919 # On some targets, GNU ld is compatible enough with the native linker
8920 # that we're better off using the native interface for both.
8921 lt_use_gnu_ld_interface=no
8922 if test "$with_gnu_ld" = yes; then
8923 case $host_os in
8924 aix*)
8925 # The AIX port of GNU ld has always aspired to compatibility
8926 # with the native linker. However, as the warning in the GNU ld
8927 # block says, versions before 2.19.5* couldn't really create working
8928 # shared libraries, regardless of the interface used.
8929 case `$LD -v 2>&1` in
8930 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8931 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8932 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8933 *)
8934 lt_use_gnu_ld_interface=yes
8935 ;;
8936 esac
8937 ;;
8938 *)
8939 lt_use_gnu_ld_interface=yes
8940 ;;
8941 esac
8942 fi
8943
8944 if test "$lt_use_gnu_ld_interface" = yes; then
8945 # If archive_cmds runs LD, not CC, wlarc should be empty
8946 wlarc='${wl}'
8947
8948 # Set some defaults for GNU ld with shared library support. These
8949 # are reset later if shared libraries are not supported. Putting them
8950 # here allows them to be overridden if necessary.
8951 runpath_var=LD_RUN_PATH
8952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8953 export_dynamic_flag_spec='${wl}--export-dynamic'
8954 # ancient GNU ld didn't support --whole-archive et. al.
8955 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8956 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8957 else
8958 whole_archive_flag_spec=
8959 fi
8960 supports_anon_versioning=no
8961 case `$LD -v 2>&1` in
8962 *GNU\ gold*) supports_anon_versioning=yes ;;
8963 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8964 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8965 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8966 *\ 2.11.*) ;; # other 2.11 versions
8967 *) supports_anon_versioning=yes ;;
8968 esac
8969
8970 # See if GNU ld supports shared libraries.
8971 case $host_os in
8972 aix[3-9]*)
8973 # On AIX/PPC, the GNU linker is very broken
8974 if test "$host_cpu" != ia64; then
8975 ld_shlibs=no
8976 cat <<_LT_EOF 1>&2
8977
8978*** Warning: the GNU linker, at least up to release 2.19, is reported
8979*** to be unable to reliably create shared libraries on AIX.
8980*** Therefore, libtool is disabling shared libraries support. If you
8981*** really care for shared libraries, you may want to install binutils
8982*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8983*** You will then need to restart the configuration process.
8984
8985_LT_EOF
8986 fi
8987 ;;
8988
8989 amigaos*)
8990 case $host_cpu in
8991 powerpc)
8992 # see comment about AmigaOS4 .so support
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds=''
8995 ;;
8996 m68k)
8997 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)'
8998 hardcode_libdir_flag_spec='-L$libdir'
8999 hardcode_minus_L=yes
9000 ;;
9001 esac
9002 ;;
9003
9004 beos*)
9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006 allow_undefined_flag=unsupported
9007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9008 # support --undefined. This deserves some investigation. FIXME
9009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
9014
9015 cygwin* | mingw* | pw32* | cegcc*)
9016 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9017 # as there is no search path for DLLs.
9018 hardcode_libdir_flag_spec='-L$libdir'
9019 export_dynamic_flag_spec='${wl}--export-all-symbols'
9020 allow_undefined_flag=unsupported
9021 always_export_symbols=no
9022 enable_shared_with_static_runtimes=yes
9023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9024
9025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9027 # If the export-symbols file already is a .def file (1st line
9028 # is EXPORTS), use it as is; otherwise, prepend...
9029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9030 cp $export_symbols $output_objdir/$soname.def;
9031 else
9032 echo EXPORTS > $output_objdir/$soname.def;
9033 cat $export_symbols >> $output_objdir/$soname.def;
9034 fi~
9035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040
9041 haiku*)
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 link_all_deplibs=yes
9044 ;;
9045
9046 interix[3-9]*)
9047 hardcode_direct=no
9048 hardcode_shlibpath_var=no
9049 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9050 export_dynamic_flag_spec='${wl}-E'
9051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9052 # Instead, shared libraries are loaded at an image base (0x10000000 by
9053 # default) and relocated if they conflict, which is a slow very memory
9054 # consuming and fragmenting process. To avoid this, we pick a random,
9055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9058 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'
9059 ;;
9060
9061 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9062 tmp_diet=no
9063 if test "$host_os" = linux-dietlibc; then
9064 case $cc_basename in
9065 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9066 esac
9067 fi
9068 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9069 && test "$tmp_diet" = no
9070 then
9071 tmp_addflag=' $pic_flag'
9072 tmp_sharedflag='-shared'
9073 case $cc_basename,$host_cpu in
9074 pgcc*) # Portland Group C compiler
9075 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'
9076 tmp_addflag=' $pic_flag'
9077 ;;
9078 pgf77* | pgf90* | pgf95* | pgfortran*)
9079 # Portland Group f77 and f90 compilers
9080 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'
9081 tmp_addflag=' $pic_flag -Mnomain' ;;
9082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9083 tmp_addflag=' -i_dynamic' ;;
9084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9085 tmp_addflag=' -i_dynamic -nofor_main' ;;
9086 ifc* | ifort*) # Intel Fortran compiler
9087 tmp_addflag=' -nofor_main' ;;
9088 lf95*) # Lahey Fortran 8.1
9089 whole_archive_flag_spec=
9090 tmp_sharedflag='--shared' ;;
9091 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9092 tmp_sharedflag='-qmkshrobj'
9093 tmp_addflag= ;;
9094 nvcc*) # Cuda Compiler Driver 2.2
9095 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'
9096 compiler_needs_object=yes
9097 ;;
9098 esac
9099 case `$CC -V 2>&1 | sed 5q` in
9100 *Sun\ C*) # Sun C 5.9
9101 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'
9102 compiler_needs_object=yes
9103 tmp_sharedflag='-G' ;;
9104 *Sun\ F*) # Sun Fortran 8.3
9105 tmp_sharedflag='-G' ;;
9106 esac
9107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108
9109 if test "x$supports_anon_versioning" = xyes; then
9110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9112 echo "local: *; };" >> $output_objdir/$libname.ver~
9113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9114 fi
9115
9116 case $cc_basename in
9117 xlf* | bgf* | bgxlf* | mpixlf*)
9118 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9119 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9120 hardcode_libdir_flag_spec=
9121 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9122 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9123 if test "x$supports_anon_versioning" = xyes; then
9124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9126 echo "local: *; };" >> $output_objdir/$libname.ver~
9127 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9128 fi
9129 ;;
9130 esac
9131 else
9132 ld_shlibs=no
9133 fi
9134 ;;
9135
9136 netbsd*)
9137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9139 wlarc=
9140 else
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143 fi
9144 ;;
9145
9146 solaris*)
9147 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9148 ld_shlibs=no
9149 cat <<_LT_EOF 1>&2
9150
9151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9152*** create shared libraries on Solaris systems. Therefore, libtool
9153*** is disabling shared libraries support. We urge you to upgrade GNU
9154*** binutils to release 2.9.1 or newer. Another option is to modify
9155*** your PATH or compiler configuration so that the native linker is
9156*** used, and then restart.
9157
9158_LT_EOF
9159 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166
9167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9168 case `$LD -v 2>&1` in
9169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9170 ld_shlibs=no
9171 cat <<_LT_EOF 1>&2
9172
9173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9174*** reliably create shared libraries on SCO systems. Therefore, libtool
9175*** is disabling shared libraries support. We urge you to upgrade GNU
9176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9177*** your PATH or compiler configuration so that the native linker is
9178*** used, and then restart.
9179
9180_LT_EOF
9181 ;;
9182 *)
9183 # For security reasons, it is highly recommended that you always
9184 # use absolute paths for naming shared libraries, and exclude the
9185 # DT_RUNPATH tag from executables and libraries. But doing so
9186 # requires that you compile everything twice, which is a pain.
9187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9191 else
9192 ld_shlibs=no
9193 fi
9194 ;;
9195 esac
9196 ;;
9197
9198 sunos4*)
9199 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9200 wlarc=
9201 hardcode_direct=yes
9202 hardcode_shlibpath_var=no
9203 ;;
9204
9205 *)
9206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9209 else
9210 ld_shlibs=no
9211 fi
9212 ;;
9213 esac
9214
9215 if test "$ld_shlibs" = no; then
9216 runpath_var=
9217 hardcode_libdir_flag_spec=
9218 export_dynamic_flag_spec=
9219 whole_archive_flag_spec=
9220 fi
9221 else
9222 # PORTME fill in a description of your system's linker (not GNU ld)
9223 case $host_os in
9224 aix3*)
9225 allow_undefined_flag=unsupported
9226 always_export_symbols=yes
9227 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'
9228 # Note: this linker hardcodes the directories in LIBPATH if there
9229 # are no directories specified by -L.
9230 hardcode_minus_L=yes
9231 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9232 # Neither direct hardcoding nor static linking is supported with a
9233 # broken collect2.
9234 hardcode_direct=unsupported
9235 fi
9236 ;;
9237
9238 aix[4-9]*)
9239 if test "$host_cpu" = ia64; then
9240 # On IA64, the linker does run time linking by default, so we don't
9241 # have to do anything special.
9242 aix_use_runtimelinking=no
9243 exp_sym_flag='-Bexport'
9244 no_entry_flag=""
9245 else
9246 # If we're using GNU nm, then we don't want the "-C" option.
9247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9248 # Also, AIX nm treats weak defined symbols like other global
9249 # defined symbols, whereas GNU nm marks them as "W".
9250 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9251 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'
9252 else
9253 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9254 fi
9255 aix_use_runtimelinking=no
9256
9257 # Test if we are trying to use run time linking or normal
9258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9259 # need to do runtime linking.
9260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9261 for ld_flag in $LDFLAGS; do
9262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9263 aix_use_runtimelinking=yes
9264 break
9265 fi
9266 done
9267 ;;
9268 esac
9269
9270 exp_sym_flag='-bexport'
9271 no_entry_flag='-bnoentry'
9272 fi
9273
9274 # When large executables or shared objects are built, AIX ld can
9275 # have problems creating the table of contents. If linking a library
9276 # or program results in "error TOC overflow" add -mminimal-toc to
9277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9279
9280 archive_cmds=''
9281 hardcode_direct=yes
9282 hardcode_direct_absolute=yes
9283 hardcode_libdir_separator=':'
9284 link_all_deplibs=yes
9285 file_list_spec='${wl}-f,'
9286
9287 if test "$GCC" = yes; then
9288 case $host_os in aix4.[012]|aix4.[012].*)
9289 # We only want to do this on AIX 4.2 and lower, the check
9290 # below for broken collect2 doesn't work under 4.3+
9291 collect2name=`${CC} -print-prog-name=collect2`
9292 if test -f "$collect2name" &&
9293 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9294 then
9295 # We have reworked collect2
9296 :
9297 else
9298 # We have old collect2
9299 hardcode_direct=unsupported
9300 # It fails to find uninstalled libraries when the uninstalled
9301 # path is not listed in the libpath. Setting hardcode_minus_L
9302 # to unsupported forces relinking
9303 hardcode_minus_L=yes
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_libdir_separator=
9306 fi
9307 ;;
9308 esac
9309 shared_flag='-shared'
9310 if test "$aix_use_runtimelinking" = yes; then
9311 shared_flag="$shared_flag "'${wl}-G'
9312 fi
9313 else
9314 # not using gcc
9315 if test "$host_cpu" = ia64; then
9316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9317 # chokes on -Wl,-G. The following line is correct:
9318 shared_flag='-G'
9319 else
9320 if test "$aix_use_runtimelinking" = yes; then
9321 shared_flag='${wl}-G'
9322 else
9323 shared_flag='${wl}-bM:SRE'
9324 fi
9325 fi
9326 fi
9327
9328 export_dynamic_flag_spec='${wl}-bexpall'
9329 # It seems that -bexpall does not export symbols beginning with
9330 # underscore (_), so it is better to generate a list of symbols to export.
9331 always_export_symbols=yes
9332 if test "$aix_use_runtimelinking" = yes; then
9333 # Warning - without using the other runtime loading flags (-brtl),
9334 # -berok will link without error, but may produce a broken library.
9335 allow_undefined_flag='-berok'
9336 # Determine the default libpath from the value encoded in an
9337 # empty executable.
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h. */
9340
9341int
9342main ()
9343{
9344
9345 ;
9346 return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_link "$LINENO"; then :
9350
9351lt_aix_libpath_sed='
9352 /Import File Strings/,/^$/ {
9353 /^0/ {
9354 s/^0 *\(.*\)$/\1/
9355 p
9356 }
9357 }'
9358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359# Check for a 64-bit object if we didn't find anything.
9360if test -z "$aix_libpath"; then
9361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362fi
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9367
9368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9369 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"
9370 else
9371 if test "$host_cpu" = ia64; then
9372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9373 allow_undefined_flag="-z nodefs"
9374 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"
9375 else
9376 # Determine the default libpath from the value encoded in an
9377 # empty executable.
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h. */
9380
9381int
9382main ()
9383{
9384
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389if ac_fn_c_try_link "$LINENO"; then :
9390
9391lt_aix_libpath_sed='
9392 /Import File Strings/,/^$/ {
9393 /^0/ {
9394 s/^0 *\(.*\)$/\1/
9395 p
9396 }
9397 }'
9398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9399# Check for a 64-bit object if we didn't find anything.
9400if test -z "$aix_libpath"; then
9401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9402fi
9403fi
9404rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9407
9408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9409 # Warning - without using the other run time loading flags,
9410 # -berok will link without error, but may produce a broken library.
9411 no_undefined_flag=' ${wl}-bernotok'
9412 allow_undefined_flag=' ${wl}-berok'
9413 if test "$with_gnu_ld" = yes; then
9414 # We only use this code for GNU lds that support --whole-archive.
9415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9416 else
9417 # Exported symbols can be pulled into shared objects from archives
9418 whole_archive_flag_spec='$convenience'
9419 fi
9420 archive_cmds_need_lc=yes
9421 # This is similar to how AIX traditionally builds its shared libraries.
9422 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'
9423 fi
9424 fi
9425 ;;
9426
9427 amigaos*)
9428 case $host_cpu in
9429 powerpc)
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9433 ;;
9434 m68k)
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9438 ;;
9439 esac
9440 ;;
9441
9442 bsdi[45]*)
9443 export_dynamic_flag_spec=-rdynamic
9444 ;;
9445
9446 cygwin* | mingw* | pw32* | cegcc*)
9447 # When not using gcc, we currently assume that we are using
9448 # Microsoft Visual C++.
9449 # hardcode_libdir_flag_spec is actually meaningless, as there is
9450 # no search path for DLLs.
9451 hardcode_libdir_flag_spec=' '
9452 allow_undefined_flag=unsupported
9453 # Tell ltmain to make .lib files, not .a files.
9454 libext=lib
9455 # Tell ltmain to make .dll files, not .so files.
9456 shrext_cmds=".dll"
9457 # FIXME: Setting linknames here is a bad hack.
9458 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9459 # The linker will automatically build a .lib file if we build a DLL.
9460 old_archive_from_new_cmds='true'
9461 # FIXME: Should let the user specify the lib program.
9462 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9463 fix_srcfile_path='`cygpath -w "$srcfile"`'
9464 enable_shared_with_static_runtimes=yes
9465 ;;
9466
9467 darwin* | rhapsody*)
9468
9469
9470 archive_cmds_need_lc=no
9471 hardcode_direct=no
9472 hardcode_automatic=yes
9473 hardcode_shlibpath_var=unsupported
9474 if test "$lt_cv_ld_force_load" = "yes"; then
9475 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\"`'
9476 else
9477 whole_archive_flag_spec=''
9478 fi
9479 link_all_deplibs=yes
9480 allow_undefined_flag="$_lt_dar_allow_undefined"
9481 case $cc_basename in
9482 ifort*) _lt_dar_can_shared=yes ;;
9483 *) _lt_dar_can_shared=$GCC ;;
9484 esac
9485 if test "$_lt_dar_can_shared" = "yes"; then
9486 output_verbose_link_cmd=func_echo_all
9487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9489 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}"
9490 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}"
9491
9492 else
9493 ld_shlibs=no
9494 fi
9495
9496 ;;
9497
9498 dgux*)
9499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9505 # support. Future versions do this automatically, but an explicit c++rt0.o
9506 # does not break anything, and helps significantly (at the cost of a little
9507 # extra space).
9508 freebsd2.2*)
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9516 freebsd2.*)
9517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=yes
9519 hardcode_minus_L=yes
9520 hardcode_shlibpath_var=no
9521 ;;
9522
9523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9524 freebsd* | dragonfly*)
9525 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 hardcode_direct=yes
9528 hardcode_shlibpath_var=no
9529 ;;
9530
9531 hpux9*)
9532 if test "$GCC" = yes; then
9533 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9534 else
9535 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'
9536 fi
9537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_direct=yes
9540
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9544 export_dynamic_flag_spec='${wl}-E'
9545 ;;
9546
9547 hpux10*)
9548 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9549 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550 else
9551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9552 fi
9553 if test "$with_gnu_ld" = no; then
9554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_flag_spec_ld='+b $libdir'
9556 hardcode_libdir_separator=:
9557 hardcode_direct=yes
9558 hardcode_direct_absolute=yes
9559 export_dynamic_flag_spec='${wl}-E'
9560 # hardcode_minus_L: Not really in the search PATH,
9561 # but as the default location of the library.
9562 hardcode_minus_L=yes
9563 fi
9564 ;;
9565
9566 hpux11*)
9567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9568 case $host_cpu in
9569 hppa*64*)
9570 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 ;;
9572 ia64*)
9573 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9574 ;;
9575 *)
9576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9577 ;;
9578 esac
9579 else
9580 case $host_cpu in
9581 hppa*64*)
9582 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 ;;
9584 ia64*)
9585 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9586 ;;
9587 *)
9588
9589 # Older versions of the 11.00 compiler do not understand -b yet
9590 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9592$as_echo_n "checking if $CC understands -b... " >&6; }
9593if ${lt_cv_prog_compiler__b+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595else
9596 lt_cv_prog_compiler__b=no
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS -b"
9599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9601 # The linker can only warn and ignore the option if not recognized
9602 # So say no if there are warnings
9603 if test -s conftest.err; then
9604 # Append any errors to the config.log.
9605 cat conftest.err 1>&5
9606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler__b=yes
9610 fi
9611 else
9612 lt_cv_prog_compiler__b=yes
9613 fi
9614 fi
9615 $RM -r conftest*
9616 LDFLAGS="$save_LDFLAGS"
9617
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9620$as_echo "$lt_cv_prog_compiler__b" >&6; }
9621
9622if test x"$lt_cv_prog_compiler__b" = xyes; then
9623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9624else
9625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9626fi
9627
9628 ;;
9629 esac
9630 fi
9631 if test "$with_gnu_ld" = no; then
9632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9633 hardcode_libdir_separator=:
9634
9635 case $host_cpu in
9636 hppa*64*|ia64*)
9637 hardcode_direct=no
9638 hardcode_shlibpath_var=no
9639 ;;
9640 *)
9641 hardcode_direct=yes
9642 hardcode_direct_absolute=yes
9643 export_dynamic_flag_spec='${wl}-E'
9644
9645 # hardcode_minus_L: Not really in the search PATH,
9646 # but as the default location of the library.
9647 hardcode_minus_L=yes
9648 ;;
9649 esac
9650 fi
9651 ;;
9652
9653 irix5* | irix6* | nonstopux*)
9654 if test "$GCC" = yes; then
9655 archive_cmds='$CC -shared $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'
9656 # Try to use the -exported_symbol ld option, if it does not
9657 # work, assume that -exports_file does not work either and
9658 # implicitly export all symbols.
9659 save_LDFLAGS="$LDFLAGS"
9660 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h. */
9663int foo(void) {}
9664_ACEOF
9665if ac_fn_c_try_link "$LINENO"; then :
9666 archive_expsym_cmds='$CC -shared $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'
9667
9668fi
9669rm -f core conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 LDFLAGS="$save_LDFLAGS"
9672 else
9673 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'
9674 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'
9675 fi
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator=:
9679 inherit_rpath=yes
9680 link_all_deplibs=yes
9681 ;;
9682
9683 netbsd*)
9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9686 else
9687 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9688 fi
9689 hardcode_libdir_flag_spec='-R$libdir'
9690 hardcode_direct=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 newsos6)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=yes
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698 hardcode_libdir_separator=:
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 *nto* | *qnx*)
9703 ;;
9704
9705 openbsd*)
9706 if test -f /usr/libexec/ld.so; then
9707 hardcode_direct=yes
9708 hardcode_shlibpath_var=no
9709 hardcode_direct_absolute=yes
9710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714 export_dynamic_flag_spec='${wl}-E'
9715 else
9716 case $host_os in
9717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-R$libdir'
9720 ;;
9721 *)
9722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9724 ;;
9725 esac
9726 fi
9727 else
9728 ld_shlibs=no
9729 fi
9730 ;;
9731
9732 os2*)
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_minus_L=yes
9735 allow_undefined_flag=unsupported
9736 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'
9737 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9738 ;;
9739
9740 osf3*)
9741 if test "$GCC" = yes; then
9742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9743 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'
9744 else
9745 allow_undefined_flag=' -expect_unresolved \*'
9746 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'
9747 fi
9748 archive_cmds_need_lc='no'
9749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 ;;
9752
9753 osf4* | osf5*) # as osf3* with the addition of -msym flag
9754 if test "$GCC" = yes; then
9755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9756 archive_cmds='$CC -shared${allow_undefined_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'
9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758 else
9759 allow_undefined_flag=' -expect_unresolved \*'
9760 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'
9761 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~
9762 $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'
9763
9764 # Both c and cxx compiler support -rpath directly
9765 hardcode_libdir_flag_spec='-rpath $libdir'
9766 fi
9767 archive_cmds_need_lc='no'
9768 hardcode_libdir_separator=:
9769 ;;
9770
9771 solaris*)
9772 no_undefined_flag=' -z defs'
9773 if test "$GCC" = yes; then
9774 wlarc='${wl}'
9775 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9777 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9778 else
9779 case `$CC -V 2>&1` in
9780 *"Compilers 5.0"*)
9781 wlarc=''
9782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9785 ;;
9786 *)
9787 wlarc='${wl}'
9788 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9790 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9791 ;;
9792 esac
9793 fi
9794 hardcode_libdir_flag_spec='-R$libdir'
9795 hardcode_shlibpath_var=no
9796 case $host_os in
9797 solaris2.[0-5] | solaris2.[0-5].*) ;;
9798 *)
9799 # The compiler driver will combine and reorder linker options,
9800 # but understands `-z linker_flag'. GCC discards it without `$wl',
9801 # but is careful enough not to reorder.
9802 # Supported since Solaris 2.6 (maybe 2.5.1?)
9803 if test "$GCC" = yes; then
9804 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9805 else
9806 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9807 fi
9808 ;;
9809 esac
9810 link_all_deplibs=yes
9811 ;;
9812
9813 sunos4*)
9814 if test "x$host_vendor" = xsequent; then
9815 # Use $CC to link under sequent, because it throws in some extra .o
9816 # files that make .init and .fini sections work.
9817 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9820 fi
9821 hardcode_libdir_flag_spec='-L$libdir'
9822 hardcode_direct=yes
9823 hardcode_minus_L=yes
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 sysv4)
9828 case $host_vendor in
9829 sni)
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_direct=yes # is this really true???
9832 ;;
9833 siemens)
9834 ## LD is ld it makes a PLAMLIB
9835 ## CC just makes a GrossModule.
9836 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9837 reload_cmds='$CC -r -o $output$reload_objs'
9838 hardcode_direct=no
9839 ;;
9840 motorola)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9843 ;;
9844 esac
9845 runpath_var='LD_RUN_PATH'
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 sysv4.3*)
9850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9851 hardcode_shlibpath_var=no
9852 export_dynamic_flag_spec='-Bexport'
9853 ;;
9854
9855 sysv4*MP*)
9856 if test -d /usr/nec; then
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_shlibpath_var=no
9859 runpath_var=LD_RUN_PATH
9860 hardcode_runpath_var=yes
9861 ld_shlibs=yes
9862 fi
9863 ;;
9864
9865 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9866 no_undefined_flag='${wl}-z,text'
9867 archive_cmds_need_lc=no
9868 hardcode_shlibpath_var=no
9869 runpath_var='LD_RUN_PATH'
9870
9871 if test "$GCC" = yes; then
9872 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 else
9875 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 fi
9878 ;;
9879
9880 sysv5* | sco3.2v5* | sco5v6*)
9881 # Note: We can NOT use -z defs as we might desire, because we do not
9882 # link with -lc, and that would cause any symbols used from libc to
9883 # always be unresolved, which means just about no library would
9884 # ever link correctly. If we're not using GNU ld we use -z text
9885 # though, which does catch some bad symbols but isn't as heavy-handed
9886 # as -z defs.
9887 no_undefined_flag='${wl}-z,text'
9888 allow_undefined_flag='${wl}-z,nodefs'
9889 archive_cmds_need_lc=no
9890 hardcode_shlibpath_var=no
9891 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9892 hardcode_libdir_separator=':'
9893 link_all_deplibs=yes
9894 export_dynamic_flag_spec='${wl}-Bexport'
9895 runpath_var='LD_RUN_PATH'
9896
9897 if test "$GCC" = yes; then
9898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 fi
9904 ;;
9905
9906 uts4*)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_libdir_flag_spec='-L$libdir'
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 *)
9913 ld_shlibs=no
9914 ;;
9915 esac
9916
9917 if test x$host_vendor = xsni; then
9918 case $host in
9919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9920 export_dynamic_flag_spec='${wl}-Blargedynsym'
9921 ;;
9922 esac
9923 fi
9924 fi
9925
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9927$as_echo "$ld_shlibs" >&6; }
9928test "$ld_shlibs" = no && can_build_shared=no
9929
9930with_gnu_ld=$with_gnu_ld
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946#
9947# Do we need to explicitly link libc?
9948#
9949case "x$archive_cmds_need_lc" in
9950x|xyes)
9951 # Assume -lc should be added
9952 archive_cmds_need_lc=yes
9953
9954 if test "$enable_shared" = yes && test "$GCC" = yes; then
9955 case $archive_cmds in
9956 *'~'*)
9957 # FIXME: we may have to deal with multi-command sequences.
9958 ;;
9959 '$CC '*)
9960 # Test whether the compiler implicitly links with -lc since on some
9961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9962 # to ld, don't add -lc before -lgcc.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9964$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9965if ${lt_cv_archive_cmds_need_lc+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967else
9968 $RM conftest*
9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9970
9971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9972 (eval $ac_compile) 2>&5
9973 ac_status=$?
9974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9975 test $ac_status = 0; } 2>conftest.err; then
9976 soname=conftest
9977 lib=conftest
9978 libobjs=conftest.$ac_objext
9979 deplibs=
9980 wl=$lt_prog_compiler_wl
9981 pic_flag=$lt_prog_compiler_pic
9982 compiler_flags=-v
9983 linker_flags=-v
9984 verstring=
9985 output_objdir=.
9986 libname=conftest
9987 lt_save_allow_undefined_flag=$allow_undefined_flag
9988 allow_undefined_flag=
9989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9990 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9991 ac_status=$?
9992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9993 test $ac_status = 0; }
9994 then
9995 lt_cv_archive_cmds_need_lc=no
9996 else
9997 lt_cv_archive_cmds_need_lc=yes
9998 fi
9999 allow_undefined_flag=$lt_save_allow_undefined_flag
10000 else
10001 cat conftest.err 1>&5
10002 fi
10003 $RM conftest*
10004
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10007$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10008 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10009 ;;
10010 esac
10011 fi
10012 ;;
10013esac
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10172$as_echo_n "checking dynamic linker characteristics... " >&6; }
10173
10174if test "$GCC" = yes; then
10175 case $host_os in
10176 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10177 *) lt_awk_arg="/^libraries:/" ;;
10178 esac
10179 case $host_os in
10180 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10181 *) lt_sed_strip_eq="s,=/,/,g" ;;
10182 esac
10183 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10184 case $lt_search_path_spec in
10185 *\;*)
10186 # if the path contains ";" then we assume it to be the separator
10187 # otherwise default to the standard path separator (i.e. ":") - it is
10188 # assumed that no part of a normal pathname contains ";" but that should
10189 # okay in the real world where ";" in dirpaths is itself problematic.
10190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10191 ;;
10192 *)
10193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10194 ;;
10195 esac
10196 # Ok, now we have the path, separated by spaces, we can step through it
10197 # and add multilib dir if necessary.
10198 lt_tmp_lt_search_path_spec=
10199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10200 for lt_sys_path in $lt_search_path_spec; do
10201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10203 else
10204 test -d "$lt_sys_path" && \
10205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10206 fi
10207 done
10208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10209BEGIN {RS=" "; FS="/|\n";} {
10210 lt_foo="";
10211 lt_count=0;
10212 for (lt_i = NF; lt_i > 0; lt_i--) {
10213 if ($lt_i != "" && $lt_i != ".") {
10214 if ($lt_i == "..") {
10215 lt_count++;
10216 } else {
10217 if (lt_count == 0) {
10218 lt_foo="/" $lt_i lt_foo;
10219 } else {
10220 lt_count--;
10221 }
10222 }
10223 }
10224 }
10225 if (lt_foo != "") { lt_freq[lt_foo]++; }
10226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10227}'`
10228 # AWK program above erroneously prepends '/' to C:/dos/paths
10229 # for these hosts.
10230 case $host_os in
10231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10232 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10233 esac
10234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10235else
10236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10237fi
10238library_names_spec=
10239libname_spec='lib$name'
10240soname_spec=
10241shrext_cmds=".so"
10242postinstall_cmds=
10243postuninstall_cmds=
10244finish_cmds=
10245finish_eval=
10246shlibpath_var=
10247shlibpath_overrides_runpath=unknown
10248version_type=none
10249dynamic_linker="$host_os ld.so"
10250sys_lib_dlsearch_path_spec="/lib /usr/lib"
10251need_lib_prefix=unknown
10252hardcode_into_libs=no
10253
10254# when you set need_version to no, make sure it does not cause -set_version
10255# flags to be left without arguments
10256need_version=unknown
10257
10258case $host_os in
10259aix3*)
10260 version_type=linux
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10262 shlibpath_var=LIBPATH
10263
10264 # AIX 3 has no versioning support, so we append a major version to the name.
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 ;;
10267
10268aix[4-9]*)
10269 version_type=linux
10270 need_lib_prefix=no
10271 need_version=no
10272 hardcode_into_libs=yes
10273 if test "$host_cpu" = ia64; then
10274 # AIX 5 supports IA64
10275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 else
10278 # With GCC up to 2.95.x, collect2 would create an import file
10279 # for dependence libraries. The import file would start with
10280 # the line `#! .'. This would cause the generated library to
10281 # depend on `.', always an invalid library. This was fixed in
10282 # development snapshots of GCC prior to 3.0.
10283 case $host_os in
10284 aix4 | aix4.[01] | aix4.[01].*)
10285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10286 echo ' yes '
10287 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10288 :
10289 else
10290 can_build_shared=no
10291 fi
10292 ;;
10293 esac
10294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10295 # soname into executable. Probably we can add versioning support to
10296 # collect2, so additional links can be useful in future.
10297 if test "$aix_use_runtimelinking" = yes; then
10298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10299 # instead of lib<name>.a to let people know that these are not
10300 # typical AIX shared libraries.
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 else
10303 # We preserve .a as extension for shared libraries through AIX4.2
10304 # and later when we are not doing run time linking.
10305 library_names_spec='${libname}${release}.a $libname.a'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 fi
10308 shlibpath_var=LIBPATH
10309 fi
10310 ;;
10311
10312amigaos*)
10313 case $host_cpu in
10314 powerpc)
10315 # Since July 2007 AmigaOS4 officially supports .so libraries.
10316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318 ;;
10319 m68k)
10320 library_names_spec='$libname.ixlibrary $libname.a'
10321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10322 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'
10323 ;;
10324 esac
10325 ;;
10326
10327beos*)
10328 library_names_spec='${libname}${shared_ext}'
10329 dynamic_linker="$host_os ld.so"
10330 shlibpath_var=LIBRARY_PATH
10331 ;;
10332
10333bsdi[45]*)
10334 version_type=linux
10335 need_version=no
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10342 # the default ld.so.conf also contains /usr/contrib/lib and
10343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10344 # libtool to hard-code these into programs
10345 ;;
10346
10347cygwin* | mingw* | pw32* | cegcc*)
10348 version_type=windows
10349 shrext_cmds=".dll"
10350 need_version=no
10351 need_lib_prefix=no
10352
10353 case $GCC,$host_os in
10354 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10355 library_names_spec='$libname.dll.a'
10356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10357 postinstall_cmds='base_file=`basename \${file}`~
10358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10359 dldir=$destdir/`dirname \$dlpath`~
10360 test -d \$dldir || mkdir -p \$dldir~
10361 $install_prog $dir/$dlname \$dldir/$dlname~
10362 chmod a+x \$dldir/$dlname~
10363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10365 fi'
10366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10367 dlpath=$dir/\$dldll~
10368 $RM \$dlpath'
10369 shlibpath_overrides_runpath=yes
10370
10371 case $host_os in
10372 cygwin*)
10373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10375
10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10377 ;;
10378 mingw* | cegcc*)
10379 # MinGW DLLs use traditional 'lib' prefix
10380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10381 ;;
10382 pw32*)
10383 # pw32 DLLs use 'pw' prefix rather than 'lib'
10384 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10385 ;;
10386 esac
10387 ;;
10388
10389 *)
10390 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10391 ;;
10392 esac
10393 dynamic_linker='Win32 ld.exe'
10394 # FIXME: first we should search . and the directory the executable is in
10395 shlibpath_var=PATH
10396 ;;
10397
10398darwin* | rhapsody*)
10399 dynamic_linker="$host_os dyld"
10400 version_type=darwin
10401 need_lib_prefix=no
10402 need_version=no
10403 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10404 soname_spec='${libname}${release}${major}$shared_ext'
10405 shlibpath_overrides_runpath=yes
10406 shlibpath_var=DYLD_LIBRARY_PATH
10407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10408
10409 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10411 ;;
10412
10413dgux*)
10414 version_type=linux
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 ;;
10421
10422freebsd* | dragonfly*)
10423 # DragonFly does not have aout. When/if they implement a new
10424 # versioning mechanism, adjust this.
10425 if test -x /usr/bin/objformat; then
10426 objformat=`/usr/bin/objformat`
10427 else
10428 case $host_os in
10429 freebsd[23].*) objformat=aout ;;
10430 *) objformat=elf ;;
10431 esac
10432 fi
10433 version_type=freebsd-$objformat
10434 case $version_type in
10435 freebsd-elf*)
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10437 need_version=no
10438 need_lib_prefix=no
10439 ;;
10440 freebsd-*)
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10442 need_version=yes
10443 ;;
10444 esac
10445 shlibpath_var=LD_LIBRARY_PATH
10446 case $host_os in
10447 freebsd2.*)
10448 shlibpath_overrides_runpath=yes
10449 ;;
10450 freebsd3.[01]* | freebsdelf3.[01]*)
10451 shlibpath_overrides_runpath=yes
10452 hardcode_into_libs=yes
10453 ;;
10454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10456 shlibpath_overrides_runpath=no
10457 hardcode_into_libs=yes
10458 ;;
10459 *) # from 4.6 on, and DragonFly
10460 shlibpath_overrides_runpath=yes
10461 hardcode_into_libs=yes
10462 ;;
10463 esac
10464 ;;
10465
b26e2ae7
JM
10466haiku*)
10467 version_type=linux
10468 need_lib_prefix=no
10469 need_version=no
10470 dynamic_linker="$host_os runtime_loader"
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 shlibpath_var=LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10476 hardcode_into_libs=yes
10477 ;;
10478
10479hpux9* | hpux10* | hpux11*)
10480 # Give a soname corresponding to the major version so that dld.sl refuses to
10481 # link against other versions.
10482 version_type=sunos
10483 need_lib_prefix=no
10484 need_version=no
10485 case $host_cpu in
10486 ia64*)
10487 shrext_cmds='.so'
10488 hardcode_into_libs=yes
10489 dynamic_linker="$host_os dld.so"
10490 shlibpath_var=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 if test "X$HPUX_IA64_MODE" = X32; then
10495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10496 else
10497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10498 fi
10499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10500 ;;
10501 hppa*64*)
10502 shrext_cmds='.sl'
10503 hardcode_into_libs=yes
10504 dynamic_linker="$host_os dld.sl"
10505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10511 ;;
10512 *)
10513 shrext_cmds='.sl'
10514 dynamic_linker="$host_os dld.sl"
10515 shlibpath_var=SHLIB_PATH
10516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 ;;
10520 esac
10521 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10522 postinstall_cmds='chmod 555 $lib'
10523 # or fails outright, so override atomically:
10524 install_override_mode=555
10525 ;;
10526
10527interix[3-9]*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 shlibpath_overrides_runpath=no
10536 hardcode_into_libs=yes
10537 ;;
10538
10539irix5* | irix6* | nonstopux*)
10540 case $host_os in
10541 nonstopux*) version_type=nonstopux ;;
10542 *)
10543 if test "$lt_cv_prog_gnu_ld" = yes; then
10544 version_type=linux
10545 else
10546 version_type=irix
10547 fi ;;
10548 esac
10549 need_lib_prefix=no
10550 need_version=no
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10553 case $host_os in
10554 irix5* | nonstopux*)
10555 libsuff= shlibsuff=
10556 ;;
10557 *)
10558 case $LD in # libtool.m4 will add one of these switches to LD
10559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10560 libsuff= shlibsuff= libmagic=32-bit;;
10561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10562 libsuff=32 shlibsuff=N32 libmagic=N32;;
10563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10565 *) libsuff= shlibsuff= libmagic=never-match;;
10566 esac
10567 ;;
10568 esac
10569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10570 shlibpath_overrides_runpath=no
10571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10573 hardcode_into_libs=yes
10574 ;;
10575
10576# No shared lib support for Linux oldld, aout, or coff.
10577linux*oldld* | linux*aout* | linux*coff*)
10578 dynamic_linker=no
10579 ;;
10580
10581# This must be Linux ELF.
46f900c0 10582linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b26e2ae7
JM
10583 version_type=linux
10584 need_lib_prefix=no
10585 need_version=no
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=no
10591
10592 # Some binutils ld are patched to set DT_RUNPATH
10593 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595else
10596 lt_cv_shlibpath_overrides_runpath=no
10597 save_LDFLAGS=$LDFLAGS
10598 save_libdir=$libdir
10599 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10600 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h. */
10603
10604int
10605main ()
10606{
10607
10608 ;
10609 return 0;
10610}
10611_ACEOF
10612if ac_fn_c_try_link "$LINENO"; then :
10613 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10614 lt_cv_shlibpath_overrides_runpath=yes
10615fi
10616fi
10617rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LDFLAGS=$save_LDFLAGS
10620 libdir=$save_libdir
10621
10622fi
10623
10624 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10625
10626 # This implies no fast_install, which is unacceptable.
10627 # Some rework will be needed to allow for fast_install
10628 # before this can be enabled.
10629 hardcode_into_libs=yes
10630
10631 # Append ld.so.conf contents to the search path
10632 if test -f /etc/ld.so.conf; then
10633 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' ' '`
10634 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10635 fi
10636
10637 # We used to test for /lib/ld.so.1 and disable shared libraries on
10638 # powerpc, because MkLinux only supported shared libraries with the
10639 # GNU dynamic linker. Since this was broken with cross compilers,
10640 # most powerpc-linux boxes support dynamic linking these days and
10641 # people can always --disable-shared, the test was removed, and we
10642 # assume the GNU/Linux dynamic linker is in use.
10643 dynamic_linker='GNU/Linux ld.so'
10644 ;;
10645
10646netbsd*)
10647 version_type=sunos
10648 need_lib_prefix=no
10649 need_version=no
10650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10653 dynamic_linker='NetBSD (a.out) ld.so'
10654 else
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 dynamic_linker='NetBSD ld.elf_so'
10658 fi
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=yes
10661 hardcode_into_libs=yes
10662 ;;
10663
10664newsos6)
10665 version_type=linux
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=yes
10669 ;;
10670
10671*nto* | *qnx*)
10672 version_type=qnx
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 dynamic_linker='ldqnx.so'
10681 ;;
10682
10683openbsd*)
10684 version_type=sunos
10685 sys_lib_dlsearch_path_spec="/usr/lib"
10686 need_lib_prefix=no
10687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10688 case $host_os in
10689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10690 *) need_version=no ;;
10691 esac
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10696 case $host_os in
10697 openbsd2.[89] | openbsd2.[89].*)
10698 shlibpath_overrides_runpath=no
10699 ;;
10700 *)
10701 shlibpath_overrides_runpath=yes
10702 ;;
10703 esac
10704 else
10705 shlibpath_overrides_runpath=yes
10706 fi
10707 ;;
10708
10709os2*)
10710 libname_spec='$name'
10711 shrext_cmds=".dll"
10712 need_lib_prefix=no
10713 library_names_spec='$libname${shared_ext} $libname.a'
10714 dynamic_linker='OS/2 ld.exe'
10715 shlibpath_var=LIBPATH
10716 ;;
10717
10718osf3* | osf4* | osf5*)
10719 version_type=osf
10720 need_lib_prefix=no
10721 need_version=no
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10727 ;;
10728
10729rdos*)
10730 dynamic_linker=no
10731 ;;
10732
10733solaris*)
10734 version_type=linux
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=yes
10741 hardcode_into_libs=yes
10742 # ldd complains unless libraries are executable
10743 postinstall_cmds='chmod +x $lib'
10744 ;;
10745
10746sunos4*)
10747 version_type=sunos
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes
10752 if test "$with_gnu_ld" = yes; then
10753 need_lib_prefix=no
10754 fi
10755 need_version=yes
10756 ;;
10757
10758sysv4 | sysv4.3*)
10759 version_type=linux
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 case $host_vendor in
10764 sni)
10765 shlibpath_overrides_runpath=no
10766 need_lib_prefix=no
10767 runpath_var=LD_RUN_PATH
10768 ;;
10769 siemens)
10770 need_lib_prefix=no
10771 ;;
10772 motorola)
10773 need_lib_prefix=no
10774 need_version=no
10775 shlibpath_overrides_runpath=no
10776 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10777 ;;
10778 esac
10779 ;;
10780
10781sysv4*MP*)
10782 if test -d /usr/nec ;then
10783 version_type=linux
10784 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10785 soname_spec='$libname${shared_ext}.$major'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 fi
10788 ;;
10789
10790sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10791 version_type=freebsd-elf
10792 need_lib_prefix=no
10793 need_version=no
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10799 if test "$with_gnu_ld" = yes; then
10800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10801 else
10802 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10803 case $host_os in
10804 sco3.2v5*)
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10806 ;;
10807 esac
10808 fi
10809 sys_lib_dlsearch_path_spec='/usr/lib'
10810 ;;
10811
10812tpf*)
10813 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10814 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=no
10820 hardcode_into_libs=yes
10821 ;;
10822
10823uts4*)
10824 version_type=linux
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 ;;
10829
10830*)
10831 dynamic_linker=no
10832 ;;
10833esac
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10835$as_echo "$dynamic_linker" >&6; }
10836test "$dynamic_linker" = no && can_build_shared=no
10837
10838variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10839if test "$GCC" = yes; then
10840 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10841fi
10842
10843if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10844 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10845fi
10846if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10847 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10848fi
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10942$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10943hardcode_action=
10944if test -n "$hardcode_libdir_flag_spec" ||
10945 test -n "$runpath_var" ||
10946 test "X$hardcode_automatic" = "Xyes" ; then
10947
10948 # We can hardcode non-existent directories.
10949 if test "$hardcode_direct" != no &&
10950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10951 # have to relink, otherwise we might link with an installed library
10952 # when we should be linking with a yet-to-be-installed one
10953 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10954 test "$hardcode_minus_L" != no; then
10955 # Linking always hardcodes the temporary library directory.
10956 hardcode_action=relink
10957 else
10958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10959 hardcode_action=immediate
10960 fi
10961else
10962 # We cannot hardcode anything, or else we can only hardcode existing
10963 # directories.
10964 hardcode_action=unsupported
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10967$as_echo "$hardcode_action" >&6; }
10968
10969if test "$hardcode_action" = relink ||
10970 test "$inherit_rpath" = yes; then
10971 # Fast installation is not supported
10972 enable_fast_install=no
10973elif test "$shlibpath_overrides_runpath" = yes ||
10974 test "$enable_shared" = no; then
10975 # Fast installation is not necessary
10976 enable_fast_install=needless
10977fi
10978
10979
10980
10981
10982
10983
10984 if test "x$enable_dlopen" != xyes; then
10985 enable_dlopen=unknown
10986 enable_dlopen_self=unknown
10987 enable_dlopen_self_static=unknown
10988else
10989 lt_cv_dlopen=no
10990 lt_cv_dlopen_libs=
10991
10992 case $host_os in
10993 beos*)
10994 lt_cv_dlopen="load_add_on"
10995 lt_cv_dlopen_libs=
10996 lt_cv_dlopen_self=yes
10997 ;;
10998
10999 mingw* | pw32* | cegcc*)
11000 lt_cv_dlopen="LoadLibrary"
11001 lt_cv_dlopen_libs=
11002 ;;
11003
11004 cygwin*)
11005 lt_cv_dlopen="dlopen"
11006 lt_cv_dlopen_libs=
11007 ;;
11008
11009 darwin*)
11010 # if libdl is installed we need to link against it
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11012$as_echo_n "checking for dlopen in -ldl... " >&6; }
11013if ${ac_cv_lib_dl_dlopen+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015else
11016 ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldl $LIBS"
11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h. */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char dlopen ();
11028int
11029main ()
11030{
11031return dlopen ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_dl_dlopen=yes
11038else
11039 ac_cv_lib_dl_dlopen=no
11040fi
11041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043LIBS=$ac_check_lib_save_LIBS
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11046$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11047if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11049else
11050
11051 lt_cv_dlopen="dyld"
11052 lt_cv_dlopen_libs=
11053 lt_cv_dlopen_self=yes
11054
11055fi
11056
11057 ;;
11058
11059 *)
11060 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11061if test "x$ac_cv_func_shl_load" = xyes; then :
11062 lt_cv_dlopen="shl_load"
11063else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11065$as_echo_n "checking for shl_load in -ldld... " >&6; }
11066if ${ac_cv_lib_dld_shl_load+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068else
11069 ac_check_lib_save_LIBS=$LIBS
11070LIBS="-ldld $LIBS"
11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h. */
11073
11074/* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080char shl_load ();
11081int
11082main ()
11083{
11084return shl_load ();
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089if ac_fn_c_try_link "$LINENO"; then :
11090 ac_cv_lib_dld_shl_load=yes
11091else
11092 ac_cv_lib_dld_shl_load=no
11093fi
11094rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096LIBS=$ac_check_lib_save_LIBS
11097fi
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11099$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11100if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11101 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11102else
11103 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11104if test "x$ac_cv_func_dlopen" = xyes; then :
11105 lt_cv_dlopen="dlopen"
11106else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11108$as_echo_n "checking for dlopen in -ldl... " >&6; }
11109if ${ac_cv_lib_dl_dlopen+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111else
11112 ac_check_lib_save_LIBS=$LIBS
11113LIBS="-ldl $LIBS"
11114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h. */
11116
11117/* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120#ifdef __cplusplus
11121extern "C"
11122#endif
11123char dlopen ();
11124int
11125main ()
11126{
11127return dlopen ();
11128 ;
11129 return 0;
11130}
11131_ACEOF
11132if ac_fn_c_try_link "$LINENO"; then :
11133 ac_cv_lib_dl_dlopen=yes
11134else
11135 ac_cv_lib_dl_dlopen=no
11136fi
11137rm -f core conftest.err conftest.$ac_objext \
11138 conftest$ac_exeext conftest.$ac_ext
11139LIBS=$ac_check_lib_save_LIBS
11140fi
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11142$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11143if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11145else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11147$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11148if ${ac_cv_lib_svld_dlopen+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150else
11151 ac_check_lib_save_LIBS=$LIBS
11152LIBS="-lsvld $LIBS"
11153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
11155
11156/* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159#ifdef __cplusplus
11160extern "C"
11161#endif
11162char dlopen ();
11163int
11164main ()
11165{
11166return dlopen ();
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_svld_dlopen=yes
11173else
11174 ac_cv_lib_svld_dlopen=no
11175fi
11176rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178LIBS=$ac_check_lib_save_LIBS
11179fi
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11181$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11182if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11186$as_echo_n "checking for dld_link in -ldld... " >&6; }
11187if ${ac_cv_lib_dld_dld_link+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189else
11190 ac_check_lib_save_LIBS=$LIBS
11191LIBS="-ldld $LIBS"
11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h. */
11194
11195/* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198#ifdef __cplusplus
11199extern "C"
11200#endif
11201char dld_link ();
11202int
11203main ()
11204{
11205return dld_link ();
11206 ;
11207 return 0;
11208}
11209_ACEOF
11210if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_dld_dld_link=yes
11212else
11213 ac_cv_lib_dld_dld_link=no
11214fi
11215rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217LIBS=$ac_check_lib_save_LIBS
11218fi
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11220$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11221if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11222 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11223fi
11224
11225
11226fi
11227
11228
11229fi
11230
11231
11232fi
11233
11234
11235fi
11236
11237
11238fi
11239
11240 ;;
11241 esac
11242
11243 if test "x$lt_cv_dlopen" != xno; then
11244 enable_dlopen=yes
11245 else
11246 enable_dlopen=no
11247 fi
11248
11249 case $lt_cv_dlopen in
11250 dlopen)
11251 save_CPPFLAGS="$CPPFLAGS"
11252 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11253
11254 save_LDFLAGS="$LDFLAGS"
11255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11256
11257 save_LIBS="$LIBS"
11258 LIBS="$lt_cv_dlopen_libs $LIBS"
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11261$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11262if ${lt_cv_dlopen_self+:} false; then :
11263 $as_echo_n "(cached) " >&6
11264else
11265 if test "$cross_compiling" = yes; then :
11266 lt_cv_dlopen_self=cross
11267else
11268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11269 lt_status=$lt_dlunknown
11270 cat > conftest.$ac_ext <<_LT_EOF
37e9f182 11271#line 11271 "configure"
b26e2ae7
JM
11272#include "confdefs.h"
11273
11274#if HAVE_DLFCN_H
11275#include <dlfcn.h>
11276#endif
11277
11278#include <stdio.h>
11279
11280#ifdef RTLD_GLOBAL
11281# define LT_DLGLOBAL RTLD_GLOBAL
11282#else
11283# ifdef DL_GLOBAL
11284# define LT_DLGLOBAL DL_GLOBAL
11285# else
11286# define LT_DLGLOBAL 0
11287# endif
11288#endif
11289
11290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11291 find out it does not work in some platform. */
11292#ifndef LT_DLLAZY_OR_NOW
11293# ifdef RTLD_LAZY
11294# define LT_DLLAZY_OR_NOW RTLD_LAZY
11295# else
11296# ifdef DL_LAZY
11297# define LT_DLLAZY_OR_NOW DL_LAZY
11298# else
11299# ifdef RTLD_NOW
11300# define LT_DLLAZY_OR_NOW RTLD_NOW
11301# else
11302# ifdef DL_NOW
11303# define LT_DLLAZY_OR_NOW DL_NOW
11304# else
11305# define LT_DLLAZY_OR_NOW 0
11306# endif
11307# endif
11308# endif
11309# endif
11310#endif
11311
11312/* When -fvisbility=hidden is used, assume the code has been annotated
11313 correspondingly for the symbols needed. */
11314#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11315void fnord () __attribute__((visibility("default")));
11316#endif
11317
11318void fnord () { int i=42; }
11319int main ()
11320{
11321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11322 int status = $lt_dlunknown;
11323
11324 if (self)
11325 {
11326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11327 else
11328 {
11329 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11330 else puts (dlerror ());
11331 }
11332 /* dlclose (self); */
11333 }
11334 else
11335 puts (dlerror ());
11336
11337 return status;
11338}
11339_LT_EOF
11340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11341 (eval $ac_link) 2>&5
11342 ac_status=$?
11343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11345 (./conftest; exit; ) >&5 2>/dev/null
11346 lt_status=$?
11347 case x$lt_status in
11348 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11349 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11350 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11351 esac
11352 else :
11353 # compilation failed
11354 lt_cv_dlopen_self=no
11355 fi
11356fi
11357rm -fr conftest*
11358
11359
11360fi
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11362$as_echo "$lt_cv_dlopen_self" >&6; }
11363
11364 if test "x$lt_cv_dlopen_self" = xyes; then
11365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11367$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11368if ${lt_cv_dlopen_self_static+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 if test "$cross_compiling" = yes; then :
11372 lt_cv_dlopen_self_static=cross
11373else
11374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11375 lt_status=$lt_dlunknown
11376 cat > conftest.$ac_ext <<_LT_EOF
37e9f182 11377#line 11377 "configure"
b26e2ae7
JM
11378#include "confdefs.h"
11379
11380#if HAVE_DLFCN_H
11381#include <dlfcn.h>
11382#endif
11383
11384#include <stdio.h>
11385
11386#ifdef RTLD_GLOBAL
11387# define LT_DLGLOBAL RTLD_GLOBAL
11388#else
11389# ifdef DL_GLOBAL
11390# define LT_DLGLOBAL DL_GLOBAL
11391# else
11392# define LT_DLGLOBAL 0
11393# endif
11394#endif
11395
11396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11397 find out it does not work in some platform. */
11398#ifndef LT_DLLAZY_OR_NOW
11399# ifdef RTLD_LAZY
11400# define LT_DLLAZY_OR_NOW RTLD_LAZY
11401# else
11402# ifdef DL_LAZY
11403# define LT_DLLAZY_OR_NOW DL_LAZY
11404# else
11405# ifdef RTLD_NOW
11406# define LT_DLLAZY_OR_NOW RTLD_NOW
11407# else
11408# ifdef DL_NOW
11409# define LT_DLLAZY_OR_NOW DL_NOW
11410# else
11411# define LT_DLLAZY_OR_NOW 0
11412# endif
11413# endif
11414# endif
11415# endif
11416#endif
11417
11418/* When -fvisbility=hidden is used, assume the code has been annotated
11419 correspondingly for the symbols needed. */
11420#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11421void fnord () __attribute__((visibility("default")));
11422#endif
11423
11424void fnord () { int i=42; }
11425int main ()
11426{
11427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11428 int status = $lt_dlunknown;
11429
11430 if (self)
11431 {
11432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11433 else
11434 {
11435 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436 else puts (dlerror ());
11437 }
11438 /* dlclose (self); */
11439 }
11440 else
11441 puts (dlerror ());
11442
11443 return status;
11444}
11445_LT_EOF
11446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11447 (eval $ac_link) 2>&5
11448 ac_status=$?
11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11451 (./conftest; exit; ) >&5 2>/dev/null
11452 lt_status=$?
11453 case x$lt_status in
11454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11457 esac
11458 else :
11459 # compilation failed
11460 lt_cv_dlopen_self_static=no
11461 fi
11462fi
11463rm -fr conftest*
11464
11465
11466fi
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11468$as_echo "$lt_cv_dlopen_self_static" >&6; }
11469 fi
11470
11471 CPPFLAGS="$save_CPPFLAGS"
11472 LDFLAGS="$save_LDFLAGS"
11473 LIBS="$save_LIBS"
11474 ;;
11475 esac
11476
11477 case $lt_cv_dlopen_self in
11478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11479 *) enable_dlopen_self=unknown ;;
11480 esac
11481
11482 case $lt_cv_dlopen_self_static in
11483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11484 *) enable_dlopen_self_static=unknown ;;
11485 esac
11486fi
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504striplib=
11505old_striplib=
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11507$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11508if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512$as_echo "yes" >&6; }
11513else
11514# FIXME - insert some real tests, host_os isn't really good enough
11515 case $host_os in
11516 darwin*)
11517 if test -n "$STRIP" ; then
11518 striplib="$STRIP -x"
11519 old_striplib="$STRIP -S"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521$as_echo "yes" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; }
11525 fi
11526 ;;
11527 *)
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530 ;;
11531 esac
11532fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 # Report which library types will actually be built
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11547$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11549$as_echo "$can_build_shared" >&6; }
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11552$as_echo_n "checking whether to build shared libraries... " >&6; }
11553 test "$can_build_shared" = "no" && enable_shared=no
11554
11555 # On AIX, shared libraries and static libraries use the same namespace, and
11556 # are all built from PIC.
11557 case $host_os in
11558 aix3*)
11559 test "$enable_shared" = yes && enable_static=no
11560 if test -n "$RANLIB"; then
11561 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11562 postinstall_cmds='$RANLIB $lib'
11563 fi
11564 ;;
11565
11566 aix[4-9]*)
11567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11568 test "$enable_shared" = yes && enable_static=no
11569 fi
11570 ;;
11571 esac
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11573$as_echo "$enable_shared" >&6; }
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11576$as_echo_n "checking whether to build static libraries... " >&6; }
11577 # Make sure either enable_shared or enable_static is yes.
11578 test "$enable_shared" = yes || enable_static=yes
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11580$as_echo "$enable_static" >&6; }
11581
11582
11583
11584
11585fi
11586ac_ext=c
11587ac_cpp='$CPP $CPPFLAGS'
11588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11590ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591
11592CC="$lt_save_CC"
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 ac_config_commands="$ac_config_commands libtool"
11607
11608
11609
11610
11611# Only expand once:
11612
11613
11614
11615
b26e2ae7
JM
11616
11617
11618
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11620$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11621 # Check whether --enable-maintainer-mode was given.
11622if test "${enable_maintainer_mode+set}" = set; then :
11623 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11624else
11625 USE_MAINTAINER_MODE=no
11626fi
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11629$as_echo "$USE_MAINTAINER_MODE" >&6; }
11630 if test $USE_MAINTAINER_MODE = yes; then
11631 MAINTAINER_MODE_TRUE=
11632 MAINTAINER_MODE_FALSE='#'
11633else
11634 MAINTAINER_MODE_TRUE='#'
11635 MAINTAINER_MODE_FALSE=
11636fi
11637
11638 MAINT=$MAINTAINER_MODE_TRUE
11639
11640
11641
11642
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11644$as_echo_n "checking for sim debug setting... " >&6; }
11645sim_debug="0"
11646# Check whether --enable-sim-debug was given.
11647if test "${enable_sim_debug+set}" = set; then :
11648 enableval=$enable_sim_debug; case "${enableval}" in
11649 yes) sim_debug="7";;
11650 no) sim_debug="0";;
11651 *) sim_debug="($enableval)";;
11652esac
11653fi
11654if test "$sim_debug" != "0"; then
11655
11656cat >>confdefs.h <<_ACEOF
11657#define DEBUG $sim_debug
11658_ACEOF
11659
11660fi
11661
11662cat >>confdefs.h <<_ACEOF
11663#define WITH_DEBUG $sim_debug
11664_ACEOF
11665
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11667$as_echo "$sim_debug" >&6; }
11668
11669
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11671$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11672sim_stdio="0"
11673# Check whether --enable-sim-stdio was given.
11674if test "${enable_sim_stdio+set}" = set; then :
11675 enableval=$enable_sim_stdio; case "${enableval}" in
11676 yes) sim_stdio="DO_USE_STDIO";;
11677 no) sim_stdio="DONT_USE_STDIO";;
11678 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
11679esac
11680fi
11681
11682cat >>confdefs.h <<_ACEOF
11683#define WITH_STDIO $sim_stdio
11684_ACEOF
11685
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11687$as_echo "$sim_stdio" >&6; }
11688
11689
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11691$as_echo_n "checking for sim trace settings... " >&6; }
11692sim_trace="~TRACE_debug"
11693# Check whether --enable-sim-trace was given.
11694if test "${enable_sim_trace+set}" = set; then :
11695 enableval=$enable_sim_trace; case "${enableval}" in
11696 yes) sim_trace="-1";;
11697 no) sim_trace="0";;
11698 [-0-9]*)
11699 sim_trace="'(${enableval})'";;
11700 [[:lower:]]*)
11701 sim_trace=""
11702 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11703 if test x"$sim_trace" = x; then
11704 sim_trace="(TRACE_$x"
11705 else
11706 sim_trace="${sim_trace}|TRACE_$x"
11707 fi
11708 done
11709 sim_trace="$sim_trace)" ;;
11710esac
11711fi
11712
11713cat >>confdefs.h <<_ACEOF
11714#define WITH_TRACE $sim_trace
11715_ACEOF
11716
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11718$as_echo "$sim_trace" >&6; }
11719
11720
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11722$as_echo_n "checking for sim profile settings... " >&6; }
11723profile="1"
11724sim_profile="-1"
11725# Check whether --enable-sim-profile was given.
11726if test "${enable_sim_profile+set}" = set; then :
11727 enableval=$enable_sim_profile; case "${enableval}" in
11728 yes) profile="1" sim_profile="-1";;
11729 no) profile="0" sim_profile="0";;
11730 [-0-9]*)
11731 profile="(${enableval})" sim_profile="(${enableval})";;
11732 [a-z]*)
11733 profile="1"
11734 sim_profile=""
11735 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11736 if test x"$sim_profile" = x; then
11737 sim_profile="(PROFILE_$x"
11738 else
11739 sim_profile="${sim_profile}|PROFILE_$x"
11740 fi
11741 done
11742 sim_profile="$sim_profile)" ;;
11743esac
11744fi
11745
11746cat >>confdefs.h <<_ACEOF
11747#define PROFILE $profile
11748_ACEOF
11749
11750
11751cat >>confdefs.h <<_ACEOF
11752#define WITH_PROFILE $sim_profile
11753_ACEOF
11754
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11756$as_echo "$sim_profile" >&6; }
11757
11758
11759
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
11761$as_echo_n "checking whether to enable sim asserts... " >&6; }
11762sim_assert="1"
11763# Check whether --enable-sim-assert was given.
11764if test "${enable_sim_assert+set}" = set; then :
11765 enableval=$enable_sim_assert; case "${enableval}" in
11766 yes) sim_assert="1";;
11767 no) sim_assert="0";;
11768 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
11769esac
11770fi
11771
11772cat >>confdefs.h <<_ACEOF
11773#define WITH_ASSERT $sim_assert
11774_ACEOF
11775
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
11777$as_echo "$sim_assert" >&6; }
11778
11779
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
11781$as_echo_n "checking default sim environment setting... " >&6; }
11782sim_environment="ALL_ENVIRONMENT"
11783# Check whether --enable-sim-environment was given.
11784if test "${enable_sim_environment+set}" = set; then :
11785 enableval=$enable_sim_environment; case "${enableval}" in
11786 all | ALL) sim_environment="ALL_ENVIRONMENT";;
11787 user | USER) sim_environment="USER_ENVIRONMENT";;
11788 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
11789 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
11790 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
11791esac
11792fi
11793
11794cat >>confdefs.h <<_ACEOF
11795#define WITH_ENVIRONMENT $sim_environment
11796_ACEOF
11797
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
11799$as_echo "$sim_environment" >&6; }
11800
11801
11802sim_inline="-DDEFAULT_INLINE=0"
11803# Check whether --enable-sim-inline was given.
11804if test "${enable_sim_inline+set}" = set; then :
11805 enableval=$enable_sim_inline; sim_inline=""
11806case "$enableval" in
11807 no) sim_inline="-DDEFAULT_INLINE=0";;
11808 0) sim_inline="-DDEFAULT_INLINE=0";;
11809 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11810 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11811 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11812 new_flag=""
11813 case "$x" in
11814 *_INLINE=*) new_flag="-D$x";;
11815 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11816 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11817 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11818 esac
11819 if test x"$sim_inline" = x""; then
11820 sim_inline="$new_flag"
11821 else
11822 sim_inline="$sim_inline $new_flag"
11823 fi
11824 done;;
11825esac
11826if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11827 echo "Setting inline flags = $sim_inline" 6>&1
11828fi
11829fi
11830
11831
11832
11833
11834# Check whether --with-pkgversion was given.
11835if test "${with_pkgversion+set}" = set; then :
11836 withval=$with_pkgversion; case "$withval" in
11837 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
11838 no) PKGVERSION= ;;
11839 *) PKGVERSION="($withval) " ;;
11840 esac
11841else
11842 PKGVERSION="(SIM) "
11843
11844fi
11845
11846
11847
11848
11849
11850# Check whether --with-bugurl was given.
11851if test "${with_bugurl+set}" = set; then :
11852 withval=$with_bugurl; case "$withval" in
11853 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
11854 no) BUGURL=
11855 ;;
11856 *) BUGURL="$withval"
11857 ;;
11858 esac
11859else
dfb856ba 11860 BUGURL="https://www.gnu.org/software/gdb/bugs/"
b26e2ae7
JM
11861
11862fi
11863
11864 case ${BUGURL} in
11865 "")
11866 REPORT_BUGS_TO=
11867 REPORT_BUGS_TEXI=
11868 ;;
11869 *)
11870 REPORT_BUGS_TO="<$BUGURL>"
11871 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11872 ;;
11873 esac;
11874
11875
11876
11877
11878cat >>confdefs.h <<_ACEOF
11879#define PKGVERSION "$PKGVERSION"
11880_ACEOF
11881
11882
11883cat >>confdefs.h <<_ACEOF
11884#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11885_ACEOF
11886
11887
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11889$as_echo_n "checking return type of signal handlers... " >&6; }
11890if ${ac_cv_type_signal+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892else
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894/* end confdefs.h. */
11895#include <sys/types.h>
11896#include <signal.h>
11897
11898int
11899main ()
11900{
11901return *(signal (0, 0)) (0) == 1;
11902 ;
11903 return 0;
11904}
11905_ACEOF
11906if ac_fn_c_try_compile "$LINENO"; then :
11907 ac_cv_type_signal=int
11908else
11909 ac_cv_type_signal=void
11910fi
11911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11914$as_echo "$ac_cv_type_signal" >&6; }
11915
11916cat >>confdefs.h <<_ACEOF
11917#define RETSIGTYPE $ac_cv_type_signal
11918_ACEOF
11919
11920
11921
11922
11923
11924
0316fb52
JM
11925wire_word_bitsize="64"
11926wire_word_msb=""
11927wire_address_bitsize=""
11928wire_cell_bitsize=""
11929# Check whether --enable-sim-bitsize was given.
11930if test "${enable_sim_bitsize+set}" = set; then :
11931 enableval=$enable_sim_bitsize; sim_bitsize=
11932case "${enableval}" in
11933 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11934 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11935 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11936 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11937 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11938 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11939 else
11940 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11941 fi ;;
11942 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11943 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11944 else
11945 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11946 fi ;;
11947 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11948esac
11949# address bitsize
11950tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
11951case x"${tmp}" in
11952 x ) ;;
11953 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11954 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
11955 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11956esac
11957# cell bitsize
11958tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11959case x"${tmp}" in
11960 x ) ;;
11961 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11962 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
11963 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11964esac
11965if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11966 echo "Setting bitsize flags = $sim_bitsize" 6>&1
11967fi
11968else
11969 sim_bitsize=""
11970if test x"$wire_word_bitsize" != x; then
11971 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11972fi
11973if test x"$wire_word_msb" != x; then
11974 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11975fi
11976if test x"$wire_address_bitsize" != x; then
11977 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11978fi
11979if test x"$wire_cell_bitsize" != x; then
11980 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11981fi
11982fi
11983
b26e2ae7
JM
11984
11985wire_endian=""
11986default_endian="LITTLE"
11987# Check whether --enable-sim-endian was given.
11988if test "${enable_sim_endian+set}" = set; then :
11989 enableval=$enable_sim_endian; case "${enableval}" in
11990 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11991 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
11992 yes) if test x"$wire_endian" != x; then
11993 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11994 else
11995 if test x"$default_endian" != x; then
11996 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11997 else
11998 echo "No hard-wired endian for target $target" 1>&6
11999 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
12000 fi
12001 fi;;
12002 no) if test x"$default_endian" != x; then
12003 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
12004 else
12005 if test x"$wire_endian" != x; then
12006 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
12007 else
12008 echo "No default endian for target $target" 1>&6
12009 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
12010 fi
12011 fi;;
12012 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
12013esac
12014if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
12015 echo "Setting endian flags = $sim_endian" 6>&1
12016fi
12017else
12018 if test x"$default_endian" != x; then
12019 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
12020else
12021 if test x"$wire_endian" != x; then
12022 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
12023 else
12024 sim_endian=
12025 fi
12026fi
12027fi
12028
12029wire_alignment="NONSTRICT_ALIGNMENT"
12030default_alignment=""
12031
12032# Check whether --enable-sim-alignment was given.
12033if test "${enable_sim_alignment+set}" = set; then :
12034 enableval=$enable_sim_alignment; case "${enableval}" in
12035 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
12036 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
12037 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
12038 yes) if test x"$wire_alignment" != x; then
12039 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
12040 else
12041 if test x"$default_alignment" != x; then
12042 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
12043 else
12044 echo "No hard-wired alignment for target $target" 1>&6
12045 sim_alignment="-DWITH_ALIGNMENT=0"
12046 fi
12047 fi;;
12048 no) if test x"$default_alignment" != x; then
12049 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
12050 else
12051 if test x"$wire_alignment" != x; then
12052 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
12053 else
12054 echo "No default alignment for target $target" 1>&6
12055 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
12056 fi
12057 fi;;
12058 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
12059esac
12060if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
12061 echo "Setting alignment flags = $sim_alignment" 6>&1
12062fi
12063else
12064 if test x"$default_alignment" != x; then
12065 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
12066else
12067 if test x"$wire_alignment" != x; then
12068 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
12069 else
12070 sim_alignment=
12071 fi
12072fi
12073fi
12074
12075
12076default_sim_scache="16384"
12077# Check whether --enable-sim-scache was given.
12078if test "${enable_sim_scache+set}" = set; then :
12079 enableval=$enable_sim_scache; case "${enableval}" in
12080 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
12081 no) sim_scache="-DWITH_SCACHE=0" ;;
12082 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
12083 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
12084 sim_scache="";;
12085esac
12086if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
12087 echo "Setting scache size = $sim_scache" 6>&1
12088fi
12089else
12090 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
12091fi
12092
12093
12094
12095default_sim_default_model="bpf-def"
12096# Check whether --enable-sim-default-model was given.
12097if test "${enable_sim_default_model+set}" = set; then :
12098 enableval=$enable_sim_default_model; case "${enableval}" in
12099 yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
12100 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
12101esac
12102if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
12103 echo "Setting default model = $sim_default_model" 6>&1
12104fi
12105else
12106 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
12107fi
12108
12109
12110
5c1008a4
MF
12111# Check whether --enable-werror was given.
12112if test "${enable_werror+set}" = set; then :
12113 enableval=$enable_werror; case "${enableval}" in
12114 yes | y) ERROR_ON_WARNING="yes" ;;
12115 no | n) ERROR_ON_WARNING="no" ;;
12116 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12117 esac
12118fi
12119
12120
12121# Enable -Werror by default when using gcc
12122if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12123 ERROR_ON_WARNING=yes
12124fi
12125
12126WERROR_CFLAGS=""
12127
12128build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12129-Wpointer-sign \
12130-Wno-unused -Wunused-value -Wunused-function \
12131-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
12132-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12133-Wold-style-declaration -Wold-style-definition"
12134
12135# Enable -Wno-format by default when using gcc on mingw since many
12136# GCC versions complain about %I64.
12137case "${host}" in
12138 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12139 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
12140esac
12141
12142# Check whether --enable-build-warnings was given.
12143if test "${enable_build_warnings+set}" = set; then :
12144 enableval=$enable_build_warnings; case "${enableval}" in
12145 yes) ;;
12146 no) build_warnings="-w";;
12147 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12148 build_warnings="${build_warnings} ${t}";;
12149 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12150 build_warnings="${t} ${build_warnings}";;
12151 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12152esac
12153if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12154 echo "Setting compiler warning flags = $build_warnings" 6>&1
12155fi
12156fi
12157# Check whether --enable-sim-build-warnings was given.
12158if test "${enable_sim_build_warnings+set}" = set; then :
12159 enableval=$enable_sim_build_warnings; case "${enableval}" in
12160 yes) ;;
12161 no) build_warnings="-w";;
12162 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12163 build_warnings="${build_warnings} ${t}";;
12164 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12165 build_warnings="${t} ${build_warnings}";;
12166 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12167esac
12168if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12169 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12170fi
12171fi
12172WARN_CFLAGS=""
12173if test "x${build_warnings}" != x -a "x$GCC" = xyes
12174then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12176$as_echo_n "checking compiler warning flags... " >&6; }
12177 # Separate out the -Werror flag as some files just cannot be
12178 # compiled with it enabled.
12179 for w in ${build_warnings}; do
12180 case $w in
12181 -Werr*) WERROR_CFLAGS=-Werror ;;
12182 *) # Check that GCC accepts it
12183 saved_CFLAGS="$CFLAGS"
12184 CFLAGS="$CFLAGS $w"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h. */
12187
12188int
12189main ()
12190{
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196if ac_fn_c_try_compile "$LINENO"; then :
12197 WARN_CFLAGS="${WARN_CFLAGS} $w"
12198fi
12199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 CFLAGS="$saved_CFLAGS"
12201 esac
12202 done
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12204$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12205fi
12206
12207
b26e2ae7
JM
12208cgen_maint=no
12209cgen=guile
12210cgendir='$(srcdir)/../../cgen'
12211# Check whether --enable-cgen-maint was given.
12212if test "${enable_cgen_maint+set}" = set; then :
12213 enableval=$enable_cgen_maint; case "${enableval}" in
12214 yes) cgen_maint=yes ;;
12215 no) cgen_maint=no ;;
12216 *)
12217 # Argument is a directory where cgen can be found. In some
12218 # future world cgen could be installable, but right now this
12219 # is not the case. Instead we assume the directory is a path
12220 # to the cgen source tree.
12221 cgen_maint=yes
12222 if test -r ${enableval}/iformat.scm; then
12223 # This looks like a cgen source tree.
12224 cgendir=${enableval}
12225 else
12226 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
12227 fi
12228 ;;
12229esac
12230fi
12231if test x${cgen_maint} != xno ; then
12232 CGEN_MAINT=''
12233else
12234 CGEN_MAINT='#'
12235fi
12236
12237
12238
12239
12240
12241
12242cgen_breaks=""
12243if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12244cgen_breaks="break cgen_rtx_error";
12245fi
12246
12247ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
12248
12249ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
12250
12251ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
12252
12253ac_config_commands="$ac_config_commands Makefile"
12254
12255ac_config_commands="$ac_config_commands stamp-h"
12256
760b3e8b
MF
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
b26e2ae7
JM
12269cat >confcache <<\_ACEOF
12270# This file is a shell script that caches the results of configure
12271# tests run on this system so they can be shared between configure
12272# scripts and configure runs, see configure's option --config-cache.
12273# It is not useful on other systems. If it contains results you don't
12274# want to keep, you may remove or edit it.
12275#
12276# config.status only pays attention to the cache file if you give it
12277# the --recheck option to rerun configure.
12278#
12279# `ac_cv_env_foo' variables (set or unset) will be overridden when
12280# loading this file, other *unset* `ac_cv_foo' will be assigned the
12281# following values.
12282
12283_ACEOF
12284
12285# The following way of writing the cache mishandles newlines in values,
12286# but we know of no workaround that is simple, portable, and efficient.
12287# So, we kill variables containing newlines.
12288# Ultrix sh set writes to stderr and can't be redirected directly,
12289# and sets the high bit in the cache file unless we assign to the vars.
12290(
12291 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12292 eval ac_val=\$$ac_var
12293 case $ac_val in #(
12294 *${as_nl}*)
12295 case $ac_var in #(
12296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12297$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12298 esac
12299 case $ac_var in #(
12300 _ | IFS | as_nl) ;; #(
12301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12302 *) { eval $ac_var=; unset $ac_var;} ;;
12303 esac ;;
12304 esac
12305 done
12306
12307 (set) 2>&1 |
12308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12309 *${as_nl}ac_space=\ *)
12310 # `set' does not quote correctly, so add quotes: double-quote
12311 # substitution turns \\\\ into \\, and sed turns \\ into \.
12312 sed -n \
12313 "s/'/'\\\\''/g;
12314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12315 ;; #(
12316 *)
12317 # `set' quotes correctly as required by POSIX, so do not add quotes.
12318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12319 ;;
12320 esac |
12321 sort
12322) |
12323 sed '
12324 /^ac_cv_env_/b end
12325 t clear
12326 :clear
12327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12328 t end
12329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12330 :end' >>confcache
12331if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12332 if test -w "$cache_file"; then
12333 if test "x$cache_file" != "x/dev/null"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12335$as_echo "$as_me: updating cache $cache_file" >&6;}
12336 if test ! -f "$cache_file" || test -h "$cache_file"; then
12337 cat confcache >"$cache_file"
12338 else
12339 case $cache_file in #(
12340 */* | ?:*)
12341 mv -f confcache "$cache_file"$$ &&
12342 mv -f "$cache_file"$$ "$cache_file" ;; #(
12343 *)
12344 mv -f confcache "$cache_file" ;;
12345 esac
12346 fi
12347 fi
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12350$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12351 fi
12352fi
12353rm -f confcache
12354
12355test "x$prefix" = xNONE && prefix=$ac_default_prefix
12356# Let make expand exec_prefix.
12357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12358
12359DEFS=-DHAVE_CONFIG_H
12360
12361ac_libobjs=
12362ac_ltlibobjs=
12363U=
12364for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12365 # 1. Remove the extension, and $U if already installed.
12366 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12367 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12368 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12369 # will be set to the directory where LIBOBJS objects are built.
12370 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12371 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12372done
12373LIBOBJS=$ac_libobjs
12374
12375LTLIBOBJS=$ac_ltlibobjs
12376
12377
12378
12379if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
12380 as_fn_error $? "conditional \"GMAKE\" was never defined.
12381Usually this means the macro was only invoked conditionally." "$LINENO" 5
12382fi
12383if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
12384 as_fn_error $? "conditional \"PLUGINS\" was never defined.
12385Usually this means the macro was only invoked conditionally." "$LINENO" 5
12386fi
12387if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12388 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12389Usually this means the macro was only invoked conditionally." "$LINENO" 5
12390fi
12391
12392: "${CONFIG_STATUS=./config.status}"
12393ac_write_fail=0
12394ac_clean_files_save=$ac_clean_files
12395ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12397$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12398as_write_fail=0
12399cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12400#! $SHELL
12401# Generated by $as_me.
12402# Run this file to recreate the current configuration.
12403# Compiler output produced by configure, useful for debugging
12404# configure, is in config.log if it exists.
12405
12406debug=false
12407ac_cs_recheck=false
12408ac_cs_silent=false
12409
12410SHELL=\${CONFIG_SHELL-$SHELL}
12411export SHELL
12412_ASEOF
12413cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12414## -------------------- ##
12415## M4sh Initialization. ##
12416## -------------------- ##
12417
12418# Be more Bourne compatible
12419DUALCASE=1; export DUALCASE # for MKS sh
12420if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12421 emulate sh
12422 NULLCMD=:
12423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12424 # is contrary to our usage. Disable this feature.
12425 alias -g '${1+"$@"}'='"$@"'
12426 setopt NO_GLOB_SUBST
12427else
12428 case `(set -o) 2>/dev/null` in #(
12429 *posix*) :
12430 set -o posix ;; #(
12431 *) :
12432 ;;
12433esac
12434fi
12435
12436
12437as_nl='
12438'
12439export as_nl
12440# Printing a long string crashes Solaris 7 /usr/bin/printf.
12441as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12442as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12443as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12444# Prefer a ksh shell builtin over an external printf program on Solaris,
12445# but without wasting forks for bash or zsh.
12446if test -z "$BASH_VERSION$ZSH_VERSION" \
12447 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12448 as_echo='print -r --'
12449 as_echo_n='print -rn --'
12450elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12451 as_echo='printf %s\n'
12452 as_echo_n='printf %s'
12453else
12454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12456 as_echo_n='/usr/ucb/echo -n'
12457 else
12458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12459 as_echo_n_body='eval
12460 arg=$1;
12461 case $arg in #(
12462 *"$as_nl"*)
12463 expr "X$arg" : "X\\(.*\\)$as_nl";
12464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12465 esac;
12466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12467 '
12468 export as_echo_n_body
12469 as_echo_n='sh -c $as_echo_n_body as_echo'
12470 fi
12471 export as_echo_body
12472 as_echo='sh -c $as_echo_body as_echo'
12473fi
12474
12475# The user is always right.
12476if test "${PATH_SEPARATOR+set}" != set; then
12477 PATH_SEPARATOR=:
12478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12480 PATH_SEPARATOR=';'
12481 }
12482fi
12483
12484
12485# IFS
12486# We need space, tab and new line, in precisely that order. Quoting is
12487# there to prevent editors from complaining about space-tab.
12488# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12489# splitting by setting IFS to empty value.)
12490IFS=" "" $as_nl"
12491
12492# Find who we are. Look in the path if we contain no directory separator.
12493as_myself=
12494case $0 in #((
12495 *[\\/]* ) as_myself=$0 ;;
12496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $PATH
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
12501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12502 done
12503IFS=$as_save_IFS
12504
12505 ;;
12506esac
12507# We did not find ourselves, most probably we were run as `sh COMMAND'
12508# in which case we are not to be found in the path.
12509if test "x$as_myself" = x; then
12510 as_myself=$0
12511fi
12512if test ! -f "$as_myself"; then
12513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12514 exit 1
12515fi
12516
12517# Unset variables that we do not need and which cause bugs (e.g. in
12518# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12519# suppresses any "Segmentation fault" message there. '((' could
12520# trigger a bug in pdksh 5.2.14.
12521for as_var in BASH_ENV ENV MAIL MAILPATH
12522do eval test x\${$as_var+set} = xset \
12523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12524done
12525PS1='$ '
12526PS2='> '
12527PS4='+ '
12528
12529# NLS nuisances.
12530LC_ALL=C
12531export LC_ALL
12532LANGUAGE=C
12533export LANGUAGE
12534
12535# CDPATH.
12536(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12537
12538
12539# as_fn_error STATUS ERROR [LINENO LOG_FD]
12540# ----------------------------------------
12541# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12542# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12543# script with STATUS, using 1 if that was 0.
12544as_fn_error ()
12545{
12546 as_status=$1; test $as_status -eq 0 && as_status=1
12547 if test "$4"; then
12548 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12550 fi
12551 $as_echo "$as_me: error: $2" >&2
12552 as_fn_exit $as_status
12553} # as_fn_error
12554
12555
12556# as_fn_set_status STATUS
12557# -----------------------
12558# Set $? to STATUS, without forking.
12559as_fn_set_status ()
12560{
12561 return $1
12562} # as_fn_set_status
12563
12564# as_fn_exit STATUS
12565# -----------------
12566# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12567as_fn_exit ()
12568{
12569 set +e
12570 as_fn_set_status $1
12571 exit $1
12572} # as_fn_exit
12573
12574# as_fn_unset VAR
12575# ---------------
12576# Portably unset VAR.
12577as_fn_unset ()
12578{
12579 { eval $1=; unset $1;}
12580}
12581as_unset=as_fn_unset
12582# as_fn_append VAR VALUE
12583# ----------------------
12584# Append the text in VALUE to the end of the definition contained in VAR. Take
12585# advantage of any shell optimizations that allow amortized linear growth over
12586# repeated appends, instead of the typical quadratic growth present in naive
12587# implementations.
12588if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12589 eval 'as_fn_append ()
12590 {
12591 eval $1+=\$2
12592 }'
12593else
12594 as_fn_append ()
12595 {
12596 eval $1=\$$1\$2
12597 }
12598fi # as_fn_append
12599
12600# as_fn_arith ARG...
12601# ------------------
12602# Perform arithmetic evaluation on the ARGs, and store the result in the
12603# global $as_val. Take advantage of shells that can avoid forks. The arguments
12604# must be portable across $(()) and expr.
12605if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12606 eval 'as_fn_arith ()
12607 {
12608 as_val=$(( $* ))
12609 }'
12610else
12611 as_fn_arith ()
12612 {
12613 as_val=`expr "$@" || test $? -eq 1`
12614 }
12615fi # as_fn_arith
12616
12617
12618if expr a : '\(a\)' >/dev/null 2>&1 &&
12619 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12620 as_expr=expr
12621else
12622 as_expr=false
12623fi
12624
12625if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12626 as_basename=basename
12627else
12628 as_basename=false
12629fi
12630
12631if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12632 as_dirname=dirname
12633else
12634 as_dirname=false
12635fi
12636
12637as_me=`$as_basename -- "$0" ||
12638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12639 X"$0" : 'X\(//\)$' \| \
12640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12641$as_echo X/"$0" |
12642 sed '/^.*\/\([^/][^/]*\)\/*$/{
12643 s//\1/
12644 q
12645 }
12646 /^X\/\(\/\/\)$/{
12647 s//\1/
12648 q
12649 }
12650 /^X\/\(\/\).*/{
12651 s//\1/
12652 q
12653 }
12654 s/.*/./; q'`
12655
12656# Avoid depending upon Character Ranges.
12657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12660as_cr_digits='0123456789'
12661as_cr_alnum=$as_cr_Letters$as_cr_digits
12662
12663ECHO_C= ECHO_N= ECHO_T=
12664case `echo -n x` in #(((((
12665-n*)
12666 case `echo 'xy\c'` in
12667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12668 xy) ECHO_C='\c';;
12669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12670 ECHO_T=' ';;
12671 esac;;
12672*)
12673 ECHO_N='-n';;
12674esac
12675
12676rm -f conf$$ conf$$.exe conf$$.file
12677if test -d conf$$.dir; then
12678 rm -f conf$$.dir/conf$$.file
12679else
12680 rm -f conf$$.dir
12681 mkdir conf$$.dir 2>/dev/null
12682fi
12683if (echo >conf$$.file) 2>/dev/null; then
12684 if ln -s conf$$.file conf$$ 2>/dev/null; then
12685 as_ln_s='ln -s'
12686 # ... but there are two gotchas:
12687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12689 # In both cases, we have to default to `cp -pR'.
12690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12691 as_ln_s='cp -pR'
12692 elif ln conf$$.file conf$$ 2>/dev/null; then
12693 as_ln_s=ln
12694 else
12695 as_ln_s='cp -pR'
12696 fi
12697else
12698 as_ln_s='cp -pR'
12699fi
12700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12701rmdir conf$$.dir 2>/dev/null
12702
12703
12704# as_fn_mkdir_p
12705# -------------
12706# Create "$as_dir" as a directory, including parents if necessary.
12707as_fn_mkdir_p ()
12708{
12709
12710 case $as_dir in #(
12711 -*) as_dir=./$as_dir;;
12712 esac
12713 test -d "$as_dir" || eval $as_mkdir_p || {
12714 as_dirs=
12715 while :; do
12716 case $as_dir in #(
12717 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12718 *) as_qdir=$as_dir;;
12719 esac
12720 as_dirs="'$as_qdir' $as_dirs"
12721 as_dir=`$as_dirname -- "$as_dir" ||
12722$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12723 X"$as_dir" : 'X\(//\)[^/]' \| \
12724 X"$as_dir" : 'X\(//\)$' \| \
12725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12726$as_echo X"$as_dir" |
12727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12728 s//\1/
12729 q
12730 }
12731 /^X\(\/\/\)[^/].*/{
12732 s//\1/
12733 q
12734 }
12735 /^X\(\/\/\)$/{
12736 s//\1/
12737 q
12738 }
12739 /^X\(\/\).*/{
12740 s//\1/
12741 q
12742 }
12743 s/.*/./; q'`
12744 test -d "$as_dir" && break
12745 done
12746 test -z "$as_dirs" || eval "mkdir $as_dirs"
12747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12748
12749
12750} # as_fn_mkdir_p
12751if mkdir -p . 2>/dev/null; then
12752 as_mkdir_p='mkdir -p "$as_dir"'
12753else
12754 test -d ./-p && rmdir ./-p
12755 as_mkdir_p=false
12756fi
12757
12758
12759# as_fn_executable_p FILE
12760# -----------------------
12761# Test if FILE is an executable regular file.
12762as_fn_executable_p ()
12763{
12764 test -f "$1" && test -x "$1"
12765} # as_fn_executable_p
12766as_test_x='test -x'
12767as_executable_p=as_fn_executable_p
12768
12769# Sed expression to map a string onto a valid CPP name.
12770as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12771
12772# Sed expression to map a string onto a valid variable name.
12773as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12774
12775
12776exec 6>&1
12777## ----------------------------------- ##
12778## Main body of $CONFIG_STATUS script. ##
12779## ----------------------------------- ##
12780_ASEOF
12781test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12782
12783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12784# Save the log message, to keep $0 and so on meaningful, and to
12785# report actual input values of CONFIG_FILES etc. instead of their
12786# values after options handling.
12787ac_log="
12788This file was extended by $as_me, which was
12789generated by GNU Autoconf 2.69. Invocation command line was
12790
12791 CONFIG_FILES = $CONFIG_FILES
12792 CONFIG_HEADERS = $CONFIG_HEADERS
12793 CONFIG_LINKS = $CONFIG_LINKS
12794 CONFIG_COMMANDS = $CONFIG_COMMANDS
12795 $ $0 $@
12796
12797on `(hostname || uname -n) 2>/dev/null | sed 1q`
12798"
12799
12800_ACEOF
12801
12802case $ac_config_files in *"
12803"*) set x $ac_config_files; shift; ac_config_files=$*;;
12804esac
12805
12806case $ac_config_headers in *"
12807"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12808esac
12809
12810
12811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812# Files that config.status was made for.
12813config_files="$ac_config_files"
12814config_headers="$ac_config_headers"
12815config_commands="$ac_config_commands"
12816
12817_ACEOF
12818
12819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820ac_cs_usage="\
12821\`$as_me' instantiates files and other configuration actions
12822from templates according to the current configuration. Unless the files
12823and actions are specified as TAGs, all are instantiated by default.
12824
12825Usage: $0 [OPTION]... [TAG]...
12826
12827 -h, --help print this help, then exit
12828 -V, --version print version number and configuration settings, then exit
12829 --config print configuration, then exit
12830 -q, --quiet, --silent
12831 do not print progress messages
12832 -d, --debug don't remove temporary files
12833 --recheck update $as_me by reconfiguring in the same conditions
12834 --file=FILE[:TEMPLATE]
12835 instantiate the configuration file FILE
12836 --header=FILE[:TEMPLATE]
12837 instantiate the configuration header FILE
12838
12839Configuration files:
12840$config_files
12841
12842Configuration headers:
12843$config_headers
12844
12845Configuration commands:
12846$config_commands
12847
12848Report bugs to the package provider."
12849
12850_ACEOF
12851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12852ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12853ac_cs_version="\\
12854config.status
12855configured by $0, generated by GNU Autoconf 2.69,
12856 with options \\"\$ac_cs_config\\"
12857
12858Copyright (C) 2012 Free Software Foundation, Inc.
12859This config.status script is free software; the Free Software Foundation
12860gives unlimited permission to copy, distribute and modify it."
12861
12862ac_pwd='$ac_pwd'
12863srcdir='$srcdir'
12864INSTALL='$INSTALL'
12865AWK='$AWK'
12866test -n "\$AWK" || AWK=awk
12867_ACEOF
12868
12869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870# The default lists apply if the user does not specify any file.
12871ac_need_defaults=:
12872while test $# != 0
12873do
12874 case $1 in
12875 --*=?*)
12876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12878 ac_shift=:
12879 ;;
12880 --*=)
12881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12882 ac_optarg=
12883 ac_shift=:
12884 ;;
12885 *)
12886 ac_option=$1
12887 ac_optarg=$2
12888 ac_shift=shift
12889 ;;
12890 esac
12891
12892 case $ac_option in
12893 # Handling of the options.
12894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12895 ac_cs_recheck=: ;;
12896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12897 $as_echo "$ac_cs_version"; exit ;;
12898 --config | --confi | --conf | --con | --co | --c )
12899 $as_echo "$ac_cs_config"; exit ;;
12900 --debug | --debu | --deb | --de | --d | -d )
12901 debug=: ;;
12902 --file | --fil | --fi | --f )
12903 $ac_shift
12904 case $ac_optarg in
12905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12906 '') as_fn_error $? "missing file argument" ;;
12907 esac
12908 as_fn_append CONFIG_FILES " '$ac_optarg'"
12909 ac_need_defaults=false;;
12910 --header | --heade | --head | --hea )
12911 $ac_shift
12912 case $ac_optarg in
12913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12914 esac
12915 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12916 ac_need_defaults=false;;
12917 --he | --h)
12918 # Conflict between --help and --header
12919 as_fn_error $? "ambiguous option: \`$1'
12920Try \`$0 --help' for more information.";;
12921 --help | --hel | -h )
12922 $as_echo "$ac_cs_usage"; exit ;;
12923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12925 ac_cs_silent=: ;;
12926
12927 # This is an error.
12928 -*) as_fn_error $? "unrecognized option: \`$1'
12929Try \`$0 --help' for more information." ;;
12930
12931 *) as_fn_append ac_config_targets " $1"
12932 ac_need_defaults=false ;;
12933
12934 esac
12935 shift
12936done
12937
12938ac_configure_extra_args=
12939
12940if $ac_cs_silent; then
12941 exec 6>/dev/null
12942 ac_configure_extra_args="$ac_configure_extra_args --silent"
12943fi
12944
12945_ACEOF
12946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12947if \$ac_cs_recheck; then
12948 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12949 shift
12950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12951 CONFIG_SHELL='$SHELL'
12952 export CONFIG_SHELL
12953 exec "\$@"
12954fi
12955
12956_ACEOF
12957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12958exec 5>>config.log
12959{
12960 echo
12961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12962## Running $as_me. ##
12963_ASBOX
12964 $as_echo "$ac_log"
12965} >&5
12966
12967_ACEOF
12968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969#
12970# INIT-COMMANDS
12971#
12972ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
12973
12974
12975# The HP-UX ksh and POSIX shell print the target directory to stdout
12976# if CDPATH is set.
12977(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12978
12979sed_quote_subst='$sed_quote_subst'
12980double_quote_subst='$double_quote_subst'
12981delay_variable_subst='$delay_variable_subst'
12982macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12983macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12984enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12985enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12986pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12987enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12988SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12989ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12990host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12991host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12992host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12993build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12994build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12995build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12996SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12997Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12998GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12999EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13000FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13001LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13002NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13003LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13004max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13005ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13006exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13007lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13008lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13009lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13010reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13011reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13012OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13013deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13014file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13015AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13016AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13017STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13018RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13019old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13020old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13021old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13022lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13023CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13024CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13025compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13026GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13027lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13028lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13029lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13030lt_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"`'
13031objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13032MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13033lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13034lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13035lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13036lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13037lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13038need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13039DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13040NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13041LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13042OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13043OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13044libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13045shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13046extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13047archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13048enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13049export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13050whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13051compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13052old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13053old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13054archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13055archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13056module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13057module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13058with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13059allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13060no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13061hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13062hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13063hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13064hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13065hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13066hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13067hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13068hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13069inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13070link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13071fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13072always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13073export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13074exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13075include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13076prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13077file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13078variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13079need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13080need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13081version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13082runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13083shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13084shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13085libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13086library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13087soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13088install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13089postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13090postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13091finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13092finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13093hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13094sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13095sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13096hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13097enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13098enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13099enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13100old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13101striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13102
13103LTCC='$LTCC'
13104LTCFLAGS='$LTCFLAGS'
13105compiler='$compiler_DEFAULT'
13106
13107# A function that is used when there is no print builtin or printf.
13108func_fallback_echo ()
13109{
13110 eval 'cat <<_LTECHO_EOF
13111\$1
13112_LTECHO_EOF'
13113}
13114
13115# Quote evaled strings.
13116for var in SHELL \
13117ECHO \
13118SED \
13119GREP \
13120EGREP \
13121FGREP \
13122LD \
13123NM \
13124LN_S \
13125lt_SP2NL \
13126lt_NL2SP \
13127reload_flag \
13128OBJDUMP \
13129deplibs_check_method \
13130file_magic_cmd \
13131AR \
13132AR_FLAGS \
13133STRIP \
13134RANLIB \
13135CC \
13136CFLAGS \
13137compiler \
13138lt_cv_sys_global_symbol_pipe \
13139lt_cv_sys_global_symbol_to_cdecl \
13140lt_cv_sys_global_symbol_to_c_name_address \
13141lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13142lt_prog_compiler_no_builtin_flag \
13143lt_prog_compiler_wl \
13144lt_prog_compiler_pic \
13145lt_prog_compiler_static \
13146lt_cv_prog_compiler_c_o \
13147need_locks \
13148DSYMUTIL \
13149NMEDIT \
13150LIPO \
13151OTOOL \
13152OTOOL64 \
13153shrext_cmds \
13154export_dynamic_flag_spec \
13155whole_archive_flag_spec \
13156compiler_needs_object \
13157with_gnu_ld \
13158allow_undefined_flag \
13159no_undefined_flag \
13160hardcode_libdir_flag_spec \
13161hardcode_libdir_flag_spec_ld \
13162hardcode_libdir_separator \
13163fix_srcfile_path \
13164exclude_expsyms \
13165include_expsyms \
13166file_list_spec \
13167variables_saved_for_relink \
13168libname_spec \
13169library_names_spec \
13170soname_spec \
13171install_override_mode \
13172finish_eval \
13173old_striplib \
13174striplib; do
13175 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13176 *[\\\\\\\`\\"\\\$]*)
13177 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13178 ;;
13179 *)
13180 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13181 ;;
13182 esac
13183done
13184
13185# Double-quote double-evaled strings.
13186for var in reload_cmds \
13187old_postinstall_cmds \
13188old_postuninstall_cmds \
13189old_archive_cmds \
13190extract_expsyms_cmds \
13191old_archive_from_new_cmds \
13192old_archive_from_expsyms_cmds \
13193archive_cmds \
13194archive_expsym_cmds \
13195module_cmds \
13196module_expsym_cmds \
13197export_symbols_cmds \
13198prelink_cmds \
13199postinstall_cmds \
13200postuninstall_cmds \
13201finish_cmds \
13202sys_lib_search_path_spec \
13203sys_lib_dlsearch_path_spec; do
13204 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13205 *[\\\\\\\`\\"\\\$]*)
13206 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13207 ;;
13208 *)
13209 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13210 ;;
13211 esac
13212done
13213
13214ac_aux_dir='$ac_aux_dir'
13215xsi_shell='$xsi_shell'
13216lt_shell_append='$lt_shell_append'
13217
13218# See if we are running on zsh, and set the options which allow our
13219# commands through without removal of \ escapes INIT.
13220if test -n "\${ZSH_VERSION+set}" ; then
13221 setopt NO_GLOB_SUBST
13222fi
13223
13224
13225 PACKAGE='$PACKAGE'
13226 VERSION='$VERSION'
13227 TIMESTAMP='$TIMESTAMP'
13228 RM='$RM'
13229 ofile='$ofile'
13230
13231
13232
13233
13234_ACEOF
13235
13236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13237
13238# Handling of arguments.
13239for ac_config_target in $ac_config_targets
13240do
13241 case $ac_config_target in
13242 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13243 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
13244 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13245 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13246 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13247 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13248 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13249 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13250
13251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13252 esac
13253done
13254
13255
13256# If the user did not use the arguments to specify the items to instantiate,
13257# then the envvar interface is used. Set only those that are not.
13258# We use the long form for the default assignment because of an extremely
13259# bizarre bug on SunOS 4.1.3.
13260if $ac_need_defaults; then
13261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13264fi
13265
13266# Have a temporary directory for convenience. Make it in the build tree
13267# simply because there is no reason against having it here, and in addition,
13268# creating and moving files from /tmp can sometimes cause problems.
13269# Hook for its removal unless debugging.
13270# Note that there is a small window in which the directory will not be cleaned:
13271# after its creation but before its name has been assigned to `$tmp'.
13272$debug ||
13273{
13274 tmp= ac_tmp=
13275 trap 'exit_status=$?
13276 : "${ac_tmp:=$tmp}"
13277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13278' 0
13279 trap 'as_fn_exit 1' 1 2 13 15
13280}
13281# Create a (secure) tmp directory for tmp files.
13282
13283{
13284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13285 test -d "$tmp"
13286} ||
13287{
13288 tmp=./conf$$-$RANDOM
13289 (umask 077 && mkdir "$tmp")
13290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13291ac_tmp=$tmp
13292
13293# Set up the scripts for CONFIG_FILES section.
13294# No need to generate them if there are no CONFIG_FILES.
13295# This happens for instance with `./config.status config.h'.
13296if test -n "$CONFIG_FILES"; then
13297
13298
13299ac_cr=`echo X | tr X '\015'`
13300# On cygwin, bash can eat \r inside `` if the user requested igncr.
13301# But we know of no other shell where ac_cr would be empty at this
13302# point, so we can use a bashism as a fallback.
13303if test "x$ac_cr" = x; then
13304 eval ac_cr=\$\'\\r\'
13305fi
13306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13308 ac_cs_awk_cr='\\r'
13309else
13310 ac_cs_awk_cr=$ac_cr
13311fi
13312
13313echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13314_ACEOF
13315
13316
13317{
13318 echo "cat >conf$$subs.awk <<_ACEOF" &&
13319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13320 echo "_ACEOF"
13321} >conf$$subs.sh ||
13322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13324ac_delim='%!_!# '
13325for ac_last_try in false false false false false :; do
13326 . ./conf$$subs.sh ||
13327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13328
13329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13330 if test $ac_delim_n = $ac_delim_num; then
13331 break
13332 elif $ac_last_try; then
13333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13334 else
13335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13336 fi
13337done
13338rm -f conf$$subs.sh
13339
13340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13342_ACEOF
13343sed -n '
13344h
13345s/^/S["/; s/!.*/"]=/
13346p
13347g
13348s/^[^!]*!//
13349:repl
13350t repl
13351s/'"$ac_delim"'$//
13352t delim
13353:nl
13354h
13355s/\(.\{148\}\)..*/\1/
13356t more1
13357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13358p
13359n
13360b repl
13361:more1
13362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13363p
13364g
13365s/.\{148\}//
13366t nl
13367:delim
13368h
13369s/\(.\{148\}\)..*/\1/
13370t more2
13371s/["\\]/\\&/g; s/^/"/; s/$/"/
13372p
13373b
13374:more2
13375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13376p
13377g
13378s/.\{148\}//
13379t delim
13380' <conf$$subs.awk | sed '
13381/^[^""]/{
13382 N
13383 s/\n//
13384}
13385' >>$CONFIG_STATUS || ac_write_fail=1
13386rm -f conf$$subs.awk
13387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388_ACAWK
13389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13390 for (key in S) S_is_set[key] = 1
13391 FS = "\a"
13392
13393}
13394{
13395 line = $ 0
13396 nfields = split(line, field, "@")
13397 substed = 0
13398 len = length(field[1])
13399 for (i = 2; i < nfields; i++) {
13400 key = field[i]
13401 keylen = length(key)
13402 if (S_is_set[key]) {
13403 value = S[key]
13404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13405 len += length(value) + length(field[++i])
13406 substed = 1
13407 } else
13408 len += 1 + keylen
13409 }
13410
13411 print line
13412}
13413
13414_ACAWK
13415_ACEOF
13416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13419else
13420 cat
13421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13423_ACEOF
13424
13425# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13427# trailing colons and then remove the whole line if VPATH becomes empty
13428# (actually we leave an empty line to preserve line numbers).
13429if test "x$srcdir" = x.; then
13430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13431h
13432s///
13433s/^/:/
13434s/[ ]*$/:/
13435s/:\$(srcdir):/:/g
13436s/:\${srcdir}:/:/g
13437s/:@srcdir@:/:/g
13438s/^:*//
13439s/:*$//
13440x
13441s/\(=[ ]*\).*/\1/
13442G
13443s/\n//
13444s/^[^=]*=[ ]*$//
13445}'
13446fi
13447
13448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449fi # test -n "$CONFIG_FILES"
13450
13451# Set up the scripts for CONFIG_HEADERS section.
13452# No need to generate them if there are no CONFIG_HEADERS.
13453# This happens for instance with `./config.status Makefile'.
13454if test -n "$CONFIG_HEADERS"; then
13455cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13456BEGIN {
13457_ACEOF
13458
13459# Transform confdefs.h into an awk script `defines.awk', embedded as
13460# here-document in config.status, that substitutes the proper values into
13461# config.h.in to produce config.h.
13462
13463# Create a delimiter string that does not exist in confdefs.h, to ease
13464# handling of long lines.
13465ac_delim='%!_!# '
13466for ac_last_try in false false :; do
13467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13468 if test -z "$ac_tt"; then
13469 break
13470 elif $ac_last_try; then
13471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13472 else
13473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13474 fi
13475done
13476
13477# For the awk script, D is an array of macro values keyed by name,
13478# likewise P contains macro parameters if any. Preserve backslash
13479# newline sequences.
13480
13481ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13482sed -n '
13483s/.\{148\}/&'"$ac_delim"'/g
13484t rset
13485:rset
13486s/^[ ]*#[ ]*define[ ][ ]*/ /
13487t def
13488d
13489:def
13490s/\\$//
13491t bsnl
13492s/["\\]/\\&/g
13493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13494D["\1"]=" \3"/p
13495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13496d
13497:bsnl
13498s/["\\]/\\&/g
13499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13500D["\1"]=" \3\\\\\\n"\\/p
13501t cont
13502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13503t cont
13504d
13505:cont
13506n
13507s/.\{148\}/&'"$ac_delim"'/g
13508t clear
13509:clear
13510s/\\$//
13511t bsnlc
13512s/["\\]/\\&/g; s/^/"/; s/$/"/p
13513d
13514:bsnlc
13515s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13516b cont
13517' <confdefs.h | sed '
13518s/'"$ac_delim"'/"\\\
13519"/g' >>$CONFIG_STATUS || ac_write_fail=1
13520
13521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 for (key in D) D_is_set[key] = 1
13523 FS = "\a"
13524}
13525/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13526 line = \$ 0
13527 split(line, arg, " ")
13528 if (arg[1] == "#") {
13529 defundef = arg[2]
13530 mac1 = arg[3]
13531 } else {
13532 defundef = substr(arg[1], 2)
13533 mac1 = arg[2]
13534 }
13535 split(mac1, mac2, "(") #)
13536 macro = mac2[1]
13537 prefix = substr(line, 1, index(line, defundef) - 1)
13538 if (D_is_set[macro]) {
13539 # Preserve the white space surrounding the "#".
13540 print prefix "define", macro P[macro] D[macro]
13541 next
13542 } else {
13543 # Replace #undef with comments. This is necessary, for example,
13544 # in the case of _POSIX_SOURCE, which is predefined and required
13545 # on some systems where configure will not decide to define it.
13546 if (defundef == "undef") {
13547 print "/*", prefix defundef, macro, "*/"
13548 next
13549 }
13550 }
13551}
13552{ print }
13553_ACAWK
13554_ACEOF
13555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13557fi # test -n "$CONFIG_HEADERS"
13558
13559
13560eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13561shift
13562for ac_tag
13563do
13564 case $ac_tag in
13565 :[FHLC]) ac_mode=$ac_tag; continue;;
13566 esac
13567 case $ac_mode$ac_tag in
13568 :[FHL]*:*);;
13569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13570 :[FH]-) ac_tag=-:-;;
13571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13572 esac
13573 ac_save_IFS=$IFS
13574 IFS=:
13575 set x $ac_tag
13576 IFS=$ac_save_IFS
13577 shift
13578 ac_file=$1
13579 shift
13580
13581 case $ac_mode in
13582 :L) ac_source=$1;;
13583 :[FH])
13584 ac_file_inputs=
13585 for ac_f
13586 do
13587 case $ac_f in
13588 -) ac_f="$ac_tmp/stdin";;
13589 *) # Look for the file first in the build tree, then in the source tree
13590 # (if the path is not absolute). The absolute path cannot be DOS-style,
13591 # because $ac_f cannot contain `:'.
13592 test -f "$ac_f" ||
13593 case $ac_f in
13594 [\\/$]*) false;;
13595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13596 esac ||
13597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13598 esac
13599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13600 as_fn_append ac_file_inputs " '$ac_f'"
13601 done
13602
13603 # Let's still pretend it is `configure' which instantiates (i.e., don't
13604 # use $as_me), people would be surprised to read:
13605 # /* config.h. Generated by config.status. */
13606 configure_input='Generated from '`
13607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13608 `' by configure.'
13609 if test x"$ac_file" != x-; then
13610 configure_input="$ac_file. $configure_input"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13612$as_echo "$as_me: creating $ac_file" >&6;}
13613 fi
13614 # Neutralize special characters interpreted by sed in replacement strings.
13615 case $configure_input in #(
13616 *\&* | *\|* | *\\* )
13617 ac_sed_conf_input=`$as_echo "$configure_input" |
13618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13619 *) ac_sed_conf_input=$configure_input;;
13620 esac
13621
13622 case $ac_tag in
13623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13625 esac
13626 ;;
13627 esac
13628
13629 ac_dir=`$as_dirname -- "$ac_file" ||
13630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13631 X"$ac_file" : 'X\(//\)[^/]' \| \
13632 X"$ac_file" : 'X\(//\)$' \| \
13633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13634$as_echo X"$ac_file" |
13635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13636 s//\1/
13637 q
13638 }
13639 /^X\(\/\/\)[^/].*/{
13640 s//\1/
13641 q
13642 }
13643 /^X\(\/\/\)$/{
13644 s//\1/
13645 q
13646 }
13647 /^X\(\/\).*/{
13648 s//\1/
13649 q
13650 }
13651 s/.*/./; q'`
13652 as_dir="$ac_dir"; as_fn_mkdir_p
13653 ac_builddir=.
13654
13655case "$ac_dir" in
13656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13657*)
13658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13659 # A ".." for each directory in $ac_dir_suffix.
13660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13661 case $ac_top_builddir_sub in
13662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13664 esac ;;
13665esac
13666ac_abs_top_builddir=$ac_pwd
13667ac_abs_builddir=$ac_pwd$ac_dir_suffix
13668# for backward compatibility:
13669ac_top_builddir=$ac_top_build_prefix
13670
13671case $srcdir in
13672 .) # We are building in place.
13673 ac_srcdir=.
13674 ac_top_srcdir=$ac_top_builddir_sub
13675 ac_abs_top_srcdir=$ac_pwd ;;
13676 [\\/]* | ?:[\\/]* ) # Absolute name.
13677 ac_srcdir=$srcdir$ac_dir_suffix;
13678 ac_top_srcdir=$srcdir
13679 ac_abs_top_srcdir=$srcdir ;;
13680 *) # Relative name.
13681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13682 ac_top_srcdir=$ac_top_build_prefix$srcdir
13683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13684esac
13685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13686
13687
13688 case $ac_mode in
13689 :F)
13690 #
13691 # CONFIG_FILE
13692 #
13693
13694 case $INSTALL in
13695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13697 esac
13698_ACEOF
13699
13700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13701# If the template does not know about datarootdir, expand it.
13702# FIXME: This hack should be removed a few years after 2.60.
13703ac_datarootdir_hack=; ac_datarootdir_seen=
13704ac_sed_dataroot='
13705/datarootdir/ {
13706 p
13707 q
13708}
13709/@datadir@/p
13710/@docdir@/p
13711/@infodir@/p
13712/@localedir@/p
13713/@mandir@/p'
13714case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13715*datarootdir*) ac_datarootdir_seen=yes;;
13716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13718$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13719_ACEOF
13720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 ac_datarootdir_hack='
13722 s&@datadir@&$datadir&g
13723 s&@docdir@&$docdir&g
13724 s&@infodir@&$infodir&g
13725 s&@localedir@&$localedir&g
13726 s&@mandir@&$mandir&g
13727 s&\\\${datarootdir}&$datarootdir&g' ;;
13728esac
13729_ACEOF
13730
13731# Neutralize VPATH when `$srcdir' = `.'.
13732# Shell code in configure.ac might set extrasub.
13733# FIXME: do we really want to maintain this feature?
13734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735ac_sed_extra="$ac_vpsub
13736$extrasub
13737_ACEOF
13738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13739:t
13740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13741s|@configure_input@|$ac_sed_conf_input|;t t
13742s&@top_builddir@&$ac_top_builddir_sub&;t t
13743s&@top_build_prefix@&$ac_top_build_prefix&;t t
13744s&@srcdir@&$ac_srcdir&;t t
13745s&@abs_srcdir@&$ac_abs_srcdir&;t t
13746s&@top_srcdir@&$ac_top_srcdir&;t t
13747s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13748s&@builddir@&$ac_builddir&;t t
13749s&@abs_builddir@&$ac_abs_builddir&;t t
13750s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13751s&@INSTALL@&$ac_INSTALL&;t t
13752$ac_datarootdir_hack
13753"
13754eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13755 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13756
13757test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13758 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13760 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13762which seems to be undefined. Please make sure it is defined" >&5
13763$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13764which seems to be undefined. Please make sure it is defined" >&2;}
13765
13766 rm -f "$ac_tmp/stdin"
13767 case $ac_file in
13768 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13769 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13770 esac \
13771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13772 ;;
13773 :H)
13774 #
13775 # CONFIG_HEADER
13776 #
13777 if test x"$ac_file" != x-; then
13778 {
13779 $as_echo "/* $configure_input */" \
13780 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13781 } >"$ac_tmp/config.h" \
13782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13783 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13785$as_echo "$as_me: $ac_file is unchanged" >&6;}
13786 else
13787 rm -f "$ac_file"
13788 mv "$ac_tmp/config.h" "$ac_file" \
13789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13790 fi
13791 else
13792 $as_echo "/* $configure_input */" \
13793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13794 || as_fn_error $? "could not create -" "$LINENO" 5
13795 fi
13796 ;;
13797
13798 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13799$as_echo "$as_me: executing $ac_file commands" >&6;}
13800 ;;
13801 esac
13802
13803
13804 case $ac_file$ac_mode in
13805 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
13806 "libtool":C)
13807
13808 # See if we are running on zsh, and set the options which allow our
13809 # commands through without removal of \ escapes.
13810 if test -n "${ZSH_VERSION+set}" ; then
13811 setopt NO_GLOB_SUBST
13812 fi
13813
13814 cfgfile="${ofile}T"
13815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13816 $RM "$cfgfile"
13817
13818 cat <<_LT_EOF >> "$cfgfile"
13819#! $SHELL
13820
13821# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13822# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13824# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13825#
13826# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13827# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13828# Written by Gordon Matzigkeit, 1996
13829#
13830# This file is part of GNU Libtool.
13831#
13832# GNU Libtool is free software; you can redistribute it and/or
13833# modify it under the terms of the GNU General Public License as
13834# published by the Free Software Foundation; either version 2 of
13835# the License, or (at your option) any later version.
13836#
13837# As a special exception to the GNU General Public License,
13838# if you distribute this file as part of a program or library that
13839# is built using GNU Libtool, you may include this file under the
13840# same distribution terms that you use for the rest of that program.
13841#
13842# GNU Libtool is distributed in the hope that it will be useful,
13843# but WITHOUT ANY WARRANTY; without even the implied warranty of
13844# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13845# GNU General Public License for more details.
13846#
13847# You should have received a copy of the GNU General Public License
13848# along with GNU Libtool; see the file COPYING. If not, a copy
13849# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13850# obtained by writing to the Free Software Foundation, Inc.,
13851# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13852
13853
13854# The names of the tagged configurations supported by this script.
13855available_tags=""
13856
13857# ### BEGIN LIBTOOL CONFIG
13858
13859# Which release of libtool.m4 was used?
13860macro_version=$macro_version
13861macro_revision=$macro_revision
13862
13863# Whether or not to build shared libraries.
13864build_libtool_libs=$enable_shared
13865
13866# Whether or not to build static libraries.
13867build_old_libs=$enable_static
13868
13869# What type of objects to build.
13870pic_mode=$pic_mode
13871
13872# Whether or not to optimize for fast installation.
13873fast_install=$enable_fast_install
13874
13875# Shell to use when invoking shell scripts.
13876SHELL=$lt_SHELL
13877
13878# An echo program that protects backslashes.
13879ECHO=$lt_ECHO
13880
13881# The host system.
13882host_alias=$host_alias
13883host=$host
13884host_os=$host_os
13885
13886# The build system.
13887build_alias=$build_alias
13888build=$build
13889build_os=$build_os
13890
13891# A sed program that does not truncate output.
13892SED=$lt_SED
13893
13894# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13895Xsed="\$SED -e 1s/^X//"
13896
13897# A grep program that handles long lines.
13898GREP=$lt_GREP
13899
13900# An ERE matcher.
13901EGREP=$lt_EGREP
13902
13903# A literal string matcher.
13904FGREP=$lt_FGREP
13905
13906# A BSD- or MS-compatible name lister.
13907NM=$lt_NM
13908
13909# Whether we need soft or hard links.
13910LN_S=$lt_LN_S
13911
13912# What is the maximum length of a command?
13913max_cmd_len=$max_cmd_len
13914
13915# Object file suffix (normally "o").
13916objext=$ac_objext
13917
13918# Executable file suffix (normally "").
13919exeext=$exeext
13920
13921# whether the shell understands "unset".
13922lt_unset=$lt_unset
13923
13924# turn spaces into newlines.
13925SP2NL=$lt_lt_SP2NL
13926
13927# turn newlines into spaces.
13928NL2SP=$lt_lt_NL2SP
13929
13930# An object symbol dumper.
13931OBJDUMP=$lt_OBJDUMP
13932
13933# Method to check whether dependent libraries are shared objects.
13934deplibs_check_method=$lt_deplibs_check_method
13935
13936# Command to use when deplibs_check_method == "file_magic".
13937file_magic_cmd=$lt_file_magic_cmd
13938
13939# The archiver.
13940AR=$lt_AR
13941AR_FLAGS=$lt_AR_FLAGS
13942
13943# A symbol stripping program.
13944STRIP=$lt_STRIP
13945
13946# Commands used to install an old-style archive.
13947RANLIB=$lt_RANLIB
13948old_postinstall_cmds=$lt_old_postinstall_cmds
13949old_postuninstall_cmds=$lt_old_postuninstall_cmds
13950
13951# Whether to use a lock for old archive extraction.
13952lock_old_archive_extraction=$lock_old_archive_extraction
13953
13954# A C compiler.
13955LTCC=$lt_CC
13956
13957# LTCC compiler flags.
13958LTCFLAGS=$lt_CFLAGS
13959
13960# Take the output of nm and produce a listing of raw symbols and C names.
13961global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13962
13963# Transform the output of nm in a proper C declaration.
13964global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13965
13966# Transform the output of nm in a C name address pair.
13967global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13968
13969# Transform the output of nm in a C name address pair when lib prefix is needed.
13970global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13971
13972# The name of the directory that contains temporary libtool files.
13973objdir=$objdir
13974
13975# Used to examine libraries when file_magic_cmd begins with "file".
13976MAGIC_CMD=$MAGIC_CMD
13977
13978# Must we lock files when doing compilation?
13979need_locks=$lt_need_locks
13980
13981# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13982DSYMUTIL=$lt_DSYMUTIL
13983
13984# Tool to change global to local symbols on Mac OS X.
13985NMEDIT=$lt_NMEDIT
13986
13987# Tool to manipulate fat objects and archives on Mac OS X.
13988LIPO=$lt_LIPO
13989
13990# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13991OTOOL=$lt_OTOOL
13992
13993# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13994OTOOL64=$lt_OTOOL64
13995
13996# Old archive suffix (normally "a").
13997libext=$libext
13998
13999# Shared library suffix (normally ".so").
14000shrext_cmds=$lt_shrext_cmds
14001
14002# The commands to extract the exported symbol list from a shared archive.
14003extract_expsyms_cmds=$lt_extract_expsyms_cmds
14004
14005# Variables whose values should be saved in libtool wrapper scripts and
14006# restored at link time.
14007variables_saved_for_relink=$lt_variables_saved_for_relink
14008
14009# Do we need the "lib" prefix for modules?
14010need_lib_prefix=$need_lib_prefix
14011
14012# Do we need a version for libraries?
14013need_version=$need_version
14014
14015# Library versioning type.
14016version_type=$version_type
14017
14018# Shared library runtime path variable.
14019runpath_var=$runpath_var
14020
14021# Shared library path variable.
14022shlibpath_var=$shlibpath_var
14023
14024# Is shlibpath searched before the hard-coded library search path?
14025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14026
14027# Format of library name prefix.
14028libname_spec=$lt_libname_spec
14029
14030# List of archive names. First name is the real one, the rest are links.
14031# The last name is the one that the linker finds with -lNAME
14032library_names_spec=$lt_library_names_spec
14033
14034# The coded name of the library, if different from the real name.
14035soname_spec=$lt_soname_spec
14036
14037# Permission mode override for installation of shared libraries.
14038install_override_mode=$lt_install_override_mode
14039
14040# Command to use after installation of a shared archive.
14041postinstall_cmds=$lt_postinstall_cmds
14042
14043# Command to use after uninstallation of a shared archive.
14044postuninstall_cmds=$lt_postuninstall_cmds
14045
14046# Commands used to finish a libtool library installation in a directory.
14047finish_cmds=$lt_finish_cmds
14048
14049# As "finish_cmds", except a single script fragment to be evaled but
14050# not shown.
14051finish_eval=$lt_finish_eval
14052
14053# Whether we should hardcode library paths into libraries.
14054hardcode_into_libs=$hardcode_into_libs
14055
14056# Compile-time system search path for libraries.
14057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14058
14059# Run-time system search path for libraries.
14060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14061
14062# Whether dlopen is supported.
14063dlopen_support=$enable_dlopen
14064
14065# Whether dlopen of programs is supported.
14066dlopen_self=$enable_dlopen_self
14067
14068# Whether dlopen of statically linked programs is supported.
14069dlopen_self_static=$enable_dlopen_self_static
14070
14071# Commands to strip libraries.
14072old_striplib=$lt_old_striplib
14073striplib=$lt_striplib
14074
14075
14076# The linker used to build libraries.
14077LD=$lt_LD
14078
14079# How to create reloadable object files.
14080reload_flag=$lt_reload_flag
14081reload_cmds=$lt_reload_cmds
14082
14083# Commands used to build an old-style archive.
14084old_archive_cmds=$lt_old_archive_cmds
14085
14086# A language specific compiler.
14087CC=$lt_compiler
14088
14089# Is the compiler the GNU compiler?
14090with_gcc=$GCC
14091
14092# Compiler flag to turn off builtin functions.
14093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14094
14095# How to pass a linker flag through the compiler.
14096wl=$lt_lt_prog_compiler_wl
14097
14098# Additional compiler flags for building library objects.
14099pic_flag=$lt_lt_prog_compiler_pic
14100
14101# Compiler flag to prevent dynamic linking.
14102link_static_flag=$lt_lt_prog_compiler_static
14103
14104# Does compiler simultaneously support -c and -o options?
14105compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14106
14107# Whether or not to add -lc for building shared libraries.
14108build_libtool_need_lc=$archive_cmds_need_lc
14109
14110# Whether or not to disallow shared libs when runtime libs are static.
14111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14112
14113# Compiler flag to allow reflexive dlopens.
14114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14115
14116# Compiler flag to generate shared objects directly from archives.
14117whole_archive_flag_spec=$lt_whole_archive_flag_spec
14118
14119# Whether the compiler copes with passing no objects directly.
14120compiler_needs_object=$lt_compiler_needs_object
14121
14122# Create an old-style archive from a shared archive.
14123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14124
14125# Create a temporary old-style archive to link instead of a shared archive.
14126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14127
14128# Commands used to build a shared archive.
14129archive_cmds=$lt_archive_cmds
14130archive_expsym_cmds=$lt_archive_expsym_cmds
14131
14132# Commands used to build a loadable module if different from building
14133# a shared archive.
14134module_cmds=$lt_module_cmds
14135module_expsym_cmds=$lt_module_expsym_cmds
14136
14137# Whether we are building with GNU ld or not.
14138with_gnu_ld=$lt_with_gnu_ld
14139
14140# Flag that allows shared libraries with undefined symbols to be built.
14141allow_undefined_flag=$lt_allow_undefined_flag
14142
14143# Flag that enforces no undefined symbols.
14144no_undefined_flag=$lt_no_undefined_flag
14145
14146# Flag to hardcode \$libdir into a binary during linking.
14147# This must work even if \$libdir does not exist
14148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14149
14150# If ld is used when linking, flag to hardcode \$libdir into a binary
14151# during linking. This must work even if \$libdir does not exist.
14152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14153
14154# Whether we need a single "-rpath" flag with a separated argument.
14155hardcode_libdir_separator=$lt_hardcode_libdir_separator
14156
14157# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14158# DIR into the resulting binary.
14159hardcode_direct=$hardcode_direct
14160
14161# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14162# DIR into the resulting binary and the resulting library dependency is
14163# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14164# library is relocated.
14165hardcode_direct_absolute=$hardcode_direct_absolute
14166
14167# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14168# into the resulting binary.
14169hardcode_minus_L=$hardcode_minus_L
14170
14171# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14172# into the resulting binary.
14173hardcode_shlibpath_var=$hardcode_shlibpath_var
14174
14175# Set to "yes" if building a shared library automatically hardcodes DIR
14176# into the library and all subsequent libraries and executables linked
14177# against it.
14178hardcode_automatic=$hardcode_automatic
14179
14180# Set to yes if linker adds runtime paths of dependent libraries
14181# to runtime path list.
14182inherit_rpath=$inherit_rpath
14183
14184# Whether libtool must link a program against all its dependency libraries.
14185link_all_deplibs=$link_all_deplibs
14186
14187# Fix the shell variable \$srcfile for the compiler.
14188fix_srcfile_path=$lt_fix_srcfile_path
14189
14190# Set to "yes" if exported symbols are required.
14191always_export_symbols=$always_export_symbols
14192
14193# The commands to list exported symbols.
14194export_symbols_cmds=$lt_export_symbols_cmds
14195
14196# Symbols that should not be listed in the preloaded symbols.
14197exclude_expsyms=$lt_exclude_expsyms
14198
14199# Symbols that must always be exported.
14200include_expsyms=$lt_include_expsyms
14201
14202# Commands necessary for linking programs (against libraries) with templates.
14203prelink_cmds=$lt_prelink_cmds
14204
14205# Specify filename containing input files.
14206file_list_spec=$lt_file_list_spec
14207
14208# How to hardcode a shared library path into an executable.
14209hardcode_action=$hardcode_action
14210
14211# ### END LIBTOOL CONFIG
14212
14213_LT_EOF
14214
14215 case $host_os in
14216 aix3*)
14217 cat <<\_LT_EOF >> "$cfgfile"
14218# AIX sometimes has problems with the GCC collect2 program. For some
14219# reason, if we set the COLLECT_NAMES environment variable, the problems
14220# vanish in a puff of smoke.
14221if test "X${COLLECT_NAMES+set}" != Xset; then
14222 COLLECT_NAMES=
14223 export COLLECT_NAMES
14224fi
14225_LT_EOF
14226 ;;
14227 esac
14228
14229
14230ltmain="$ac_aux_dir/ltmain.sh"
14231
14232
14233 # We use sed instead of cat because bash on DJGPP gets confused if
14234 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14235 # text mode, it properly converts lines to CR/LF. This bash problem
14236 # is reportedly fixed, but why not run on old versions too?
14237 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14238 || (rm -f "$cfgfile"; exit 1)
14239
14240 case $xsi_shell in
14241 yes)
14242 cat << \_LT_EOF >> "$cfgfile"
14243
14244# func_dirname file append nondir_replacement
14245# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14246# otherwise set result to NONDIR_REPLACEMENT.
14247func_dirname ()
14248{
14249 case ${1} in
14250 */*) func_dirname_result="${1%/*}${2}" ;;
14251 * ) func_dirname_result="${3}" ;;
14252 esac
14253}
14254
14255# func_basename file
14256func_basename ()
14257{
14258 func_basename_result="${1##*/}"
14259}
14260
14261# func_dirname_and_basename file append nondir_replacement
14262# perform func_basename and func_dirname in a single function
14263# call:
14264# dirname: Compute the dirname of FILE. If nonempty,
14265# add APPEND to the result, otherwise set result
14266# to NONDIR_REPLACEMENT.
14267# value returned in "$func_dirname_result"
14268# basename: Compute filename of FILE.
14269# value retuned in "$func_basename_result"
14270# Implementation must be kept synchronized with func_dirname
14271# and func_basename. For efficiency, we do not delegate to
14272# those functions but instead duplicate the functionality here.
14273func_dirname_and_basename ()
14274{
14275 case ${1} in
14276 */*) func_dirname_result="${1%/*}${2}" ;;
14277 * ) func_dirname_result="${3}" ;;
14278 esac
14279 func_basename_result="${1##*/}"
14280}
14281
14282# func_stripname prefix suffix name
14283# strip PREFIX and SUFFIX off of NAME.
14284# PREFIX and SUFFIX must not contain globbing or regex special
14285# characters, hashes, percent signs, but SUFFIX may contain a leading
14286# dot (in which case that matches only a dot).
14287func_stripname ()
14288{
14289 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14290 # positional parameters, so assign one to ordinary parameter first.
14291 func_stripname_result=${3}
14292 func_stripname_result=${func_stripname_result#"${1}"}
14293 func_stripname_result=${func_stripname_result%"${2}"}
14294}
14295
14296# func_opt_split
14297func_opt_split ()
14298{
14299 func_opt_split_opt=${1%%=*}
14300 func_opt_split_arg=${1#*=}
14301}
14302
14303# func_lo2o object
14304func_lo2o ()
14305{
14306 case ${1} in
14307 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14308 *) func_lo2o_result=${1} ;;
14309 esac
14310}
14311
14312# func_xform libobj-or-source
14313func_xform ()
14314{
14315 func_xform_result=${1%.*}.lo
14316}
14317
14318# func_arith arithmetic-term...
14319func_arith ()
14320{
14321 func_arith_result=$(( $* ))
14322}
14323
14324# func_len string
14325# STRING may not start with a hyphen.
14326func_len ()
14327{
14328 func_len_result=${#1}
14329}
14330
14331_LT_EOF
14332 ;;
14333 *) # Bourne compatible functions.
14334 cat << \_LT_EOF >> "$cfgfile"
14335
14336# func_dirname file append nondir_replacement
14337# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14338# otherwise set result to NONDIR_REPLACEMENT.
14339func_dirname ()
14340{
14341 # Extract subdirectory from the argument.
14342 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14343 if test "X$func_dirname_result" = "X${1}"; then
14344 func_dirname_result="${3}"
14345 else
14346 func_dirname_result="$func_dirname_result${2}"
14347 fi
14348}
14349
14350# func_basename file
14351func_basename ()
14352{
14353 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14354}
14355
14356
14357# func_stripname prefix suffix name
14358# strip PREFIX and SUFFIX off of NAME.
14359# PREFIX and SUFFIX must not contain globbing or regex special
14360# characters, hashes, percent signs, but SUFFIX may contain a leading
14361# dot (in which case that matches only a dot).
14362# func_strip_suffix prefix name
14363func_stripname ()
14364{
14365 case ${2} in
14366 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14367 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14368 esac
14369}
14370
14371# sed scripts:
14372my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14373my_sed_long_arg='1s/^-[^=]*=//'
14374
14375# func_opt_split
14376func_opt_split ()
14377{
14378 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14379 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14380}
14381
14382# func_lo2o object
14383func_lo2o ()
14384{
14385 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14386}
14387
14388# func_xform libobj-or-source
14389func_xform ()
14390{
14391 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14392}
14393
14394# func_arith arithmetic-term...
14395func_arith ()
14396{
14397 func_arith_result=`expr "$@"`
14398}
14399
14400# func_len string
14401# STRING may not start with a hyphen.
14402func_len ()
14403{
14404 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14405}
14406
14407_LT_EOF
14408esac
14409
14410case $lt_shell_append in
14411 yes)
14412 cat << \_LT_EOF >> "$cfgfile"
14413
14414# func_append var value
14415# Append VALUE to the end of shell variable VAR.
14416func_append ()
14417{
14418 eval "$1+=\$2"
14419}
14420_LT_EOF
14421 ;;
14422 *)
14423 cat << \_LT_EOF >> "$cfgfile"
14424
14425# func_append var value
14426# Append VALUE to the end of shell variable VAR.
14427func_append ()
14428{
14429 eval "$1=\$$1\$2"
14430}
14431
14432_LT_EOF
14433 ;;
14434 esac
14435
14436
14437 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14438 || (rm -f "$cfgfile"; exit 1)
14439
14440 mv -f "$cfgfile" "$ofile" ||
14441 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14442 chmod +x "$ofile"
14443
14444 ;;
14445 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
14446 rm -f Makesim1.tmp Makesim2.tmp Makefile
14447 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14448 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14449 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
14450 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14451 <Makefile.sim >Makefile
14452 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
14453 ;;
14454 "stamp-h":C) echo > stamp-h ;;
14455
14456 esac
14457done # for ac_tag
14458
14459
14460as_fn_exit 0
14461_ACEOF
14462ac_clean_files=$ac_clean_files_save
14463
14464test $ac_write_fail = 0 ||
14465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14466
14467
14468# configure is writing to config.log, and then calls config.status.
14469# config.status does its own redirection, appending to config.log.
14470# Unfortunately, on DOS this fails, as config.log is still kept open
14471# by configure, so config.status won't be able to write to it; its
14472# output is simply discarded. So we exec the FD to /dev/null,
14473# effectively closing config.log, so it can be properly (re)opened and
14474# appended to by config.status. When coming back to configure, we
14475# need to make the FD available again.
14476if test "$no_create" != yes; then
14477 ac_cs_success=:
14478 ac_config_status_args=
14479 test "$silent" = yes &&
14480 ac_config_status_args="$ac_config_status_args --quiet"
14481 exec 5>/dev/null
14482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14483 exec 5>>config.log
14484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14485 # would make configure fail if this is the last instruction.
14486 $ac_cs_success || as_fn_exit 1
14487fi
14488if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14490$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14491fi
14492
14493