gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / sim / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
6bddc3e8
MF
3# Generated by GNU Autoconf 2.69 for sim 0.
4#
5# Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
d0ac1c44
SM
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 9#
c906108c
SS
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
b7026657 16
81ecdfbb
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
20 emulate sh
21 NULLCMD=:
81ecdfbb 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
b7026657 33fi
b7026657 34
81ecdfbb
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
b7026657 52else
81ecdfbb
RW
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b7026657
AC
81fi
82
83
81ecdfbb
RW
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 92as_myself=
81ecdfbb
RW
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
b7026657
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
d0ac1c44
SM
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
d0ac1c44
SM
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
81ecdfbb
RW
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
c2783492 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
b5689863
MF
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 221do
81ecdfbb
RW
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
81ecdfbb
RW
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 276 else
6bddc3e8
MF
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
b7026657 283 fi
81ecdfbb
RW
284 exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302 { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311 return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319 set +e
320 as_fn_set_status $1
321 exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
368
369
370} # as_fn_mkdir_p
d0ac1c44
SM
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377 test -f "$1" && test -x "$1"
378} # as_fn_executable_p
81ecdfbb
RW
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412fi # as_fn_arith
413
414
d0ac1c44
SM
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
81ecdfbb
RW
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 419# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
420as_fn_error ()
421{
d0ac1c44
SM
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 426 fi
d0ac1c44 427 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
428 as_fn_exit $as_status
429} # as_fn_error
b7026657 430
81ecdfbb
RW
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
433 as_expr=expr
434else
435 as_expr=false
436fi
437
81ecdfbb 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
439 as_basename=basename
440else
441 as_basename=false
442fi
443
81ecdfbb
RW
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446else
447 as_dirname=false
448fi
b7026657 449
81ecdfbb 450as_me=`$as_basename -- "$0" ||
b7026657
AC
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
b7026657 468
fdd6fa61
AG
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
df1756f4 475
b7026657 476
81ecdfbb
RW
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
b7026657 486 sed '
81ecdfbb
RW
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
b7026657 491 N
81ecdfbb
RW
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 494 t loop
81ecdfbb 495 s/-\n.*//
b7026657 496 ' >$as_me.lineno &&
81ecdfbb
RW
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657 499
d0ac1c44
SM
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
b7026657
AC
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
b7026657
AC
508 # Exit status is that of the last command.
509 exit
510}
511
81ecdfbb
RW
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521*)
522 ECHO_N='-n';;
b7026657
AC
523esac
524
81ecdfbb
RW
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
b7026657 528else
81ecdfbb
RW
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
b7026657 531fi
81ecdfbb
RW
532if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 534 as_ln_s='ln -s'
81ecdfbb
RW
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 538 # In both cases, we have to default to `cp -pR'.
81ecdfbb 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 540 as_ln_s='cp -pR'
81ecdfbb
RW
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
d0ac1c44 544 as_ln_s='cp -pR'
fdd6fa61 545 fi
b7026657 546else
d0ac1c44 547 as_ln_s='cp -pR'
b7026657 548fi
81ecdfbb
RW
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
b7026657
AC
551
552if mkdir -p . 2>/dev/null; then
81ecdfbb 553 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
554else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557fi
c906108c 558
d0ac1c44
SM
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
b7026657
AC
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
b5689863
MF
568SHELL=${CONFIG_SHELL-/bin/sh}
569
b7026657 570
d0ac1c44
SM
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
b7026657
AC
573
574# Name of the host.
d0ac1c44 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
b7026657
AC
579#
580# Initializations.
581#
c906108c 582ac_default_prefix=/usr/local
81ecdfbb 583ac_clean_files=
b7026657 584ac_config_libobj_dir=.
81ecdfbb 585LIBOBJS=
b7026657
AC
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
fdd6fa61 590
b7026657 591# Identity of this package.
6bddc3e8
MF
592PACKAGE_NAME='sim'
593PACKAGE_TARNAME='sim'
594PACKAGE_VERSION='0'
595PACKAGE_STRING='sim 0'
596PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
c2783492
MF
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
b15c5d7a
MF
635ac_header_list=
636ac_func_list=
81ecdfbb 637enable_option_checking=no
6bddc3e8
MF
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
e173c80f 641SIM_RX_CYCLE_ACCURATE_FLAGS
408a44aa 642SIM_FRV_TRAPDUMP_FLAGS
36bb57e4
MF
643sim_float
644sim_bitsize
d73f39ee 645SIM_INLINE
456ef1c1
MF
646sim_hw_sockser
647sim_hw_cflags
648SIM_ENABLE_HW_FALSE
649SIM_ENABLE_HW_TRUE
1bf5c342
MF
650cgen
651cgendir
652CGEN_MAINT
b6b1c790
MF
653SIM_ENABLE_IGEN_FALSE
654SIM_ENABLE_IGEN_TRUE
81ecdfbb 655subdirs
36bb57e4
MF
656SIM_COMMON_BUILD_FALSE
657SIM_COMMON_BUILD_TRUE
658SIM_SUBDIRS
a0e674c1 659SIM_PRIMARY_TARGET
c2783492
MF
660AM_BACKSLASH
661AM_DEFAULT_VERBOSITY
662AM_DEFAULT_V
663AM_V
6bddc3e8
MF
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667am__nodep
668AMDEPBACKSLASH
669AMDEP_FALSE
670AMDEP_TRUE
671am__quote
672am__include
673DEPDIR
6bddc3e8
MF
674am__untar
675am__tar
676AMTAR
677am__leading_dot
678SET_MAKE
6bddc3e8
MF
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
6bddc3e8
MF
682install_sh
683MAKEINFO
684AUTOHEADER
685AUTOMAKE
686AUTOCONF
687ACLOCAL
688VERSION
689PACKAGE
690CYGPATH_W
691am__isrc
8c379db2
TT
692MAINT
693MAINTAINER_MODE_FALSE
694MAINTAINER_MODE_TRUE
5d0b3088
MF
695READLINE_CFLAGS
696READLINE_LIB
697TERMCAP_LIB
d57b6533
MF
698SDL_LIBS
699SDL_CFLAGS
b5689863
MF
700lt_cv_dlopen_libs
701OTOOL64
702OTOOL
703LIPO
704NMEDIT
705DSYMUTIL
706AWK
707STRIP
708OBJDUMP
709LN_S
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LD
714FGREP
715SED
716LIBTOOL
717PLUGINS_FALSE
718PLUGINS_TRUE
719zlibinc
720zlibdir
ce3ec98a
MF
721CATOBJEXT
722GENCAT
723INSTOBJEXT
724DATADIRNAME
725CATALOGS
726POSUB
727GMSGFMT
728XGETTEXT
729INCINTL
730LIBINTL_DEP
731LIBINTL
732USE_NLS
a48ff3ef 733LIBOBJS
c2783492 734C_DIALECT
d57b6533
MF
735PKG_CONFIG_LIBDIR
736PKG_CONFIG_PATH
737PKG_CONFIG
c2783492
MF
738RANLIB
739AR
740LDFLAGS_FOR_BUILD
741CFLAGS_FOR_BUILD
aa0fca16 742RANLIB_FOR_BUILD
c2783492 743CC_FOR_BUILD
aa0fca16 744AR_FOR_BUILD
a979f2a0 745DTC
c2783492
MF
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749EGREP
750GREP
751CPP
752OBJEXT
753EXEEXT
754ac_ct_CC
755CPPFLAGS
756LDFLAGS
757CFLAGS
758CC
81ecdfbb
RW
759target_os
760target_vendor
761target_cpu
762target
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
6dd65fc0
MF
771REPORT_BUGS_TEXI
772REPORT_BUGS_TO
773PKGVERSION
81ecdfbb
RW
774target_alias
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
47ce766a
MF
811SHELL
812WERROR_CFLAGS
813WARN_CFLAGS'
b7026657 814ac_subst_files=''
81ecdfbb
RW
815ac_user_opts='
816enable_option_checking
6dd65fc0
MF
817with_pkgversion
818with_bugurl
b5689863
MF
819with_system_zlib
820enable_plugins
821enable_shared
822enable_static
823with_pic
824enable_fast_install
825with_gnu_ld
826enable_libtool_lock
8c379db2 827enable_maintainer_mode
6bddc3e8 828enable_dependency_tracking
c2783492 829enable_silent_rules
81ecdfbb 830enable_sim
26da232c 831enable_example_sims
a0e674c1 832enable_targets
ba307cdd 833enable_sim_alignment
dba333c1 834enable_sim_assert
1bf5c342 835enable_cgen_maint
04381273 836enable_sim_debug
f9a4d543 837enable_sim_endian
5ea45474 838enable_sim_environment
456ef1c1 839enable_sim_hardware
d73f39ee 840enable_sim_inline
04381273 841enable_sim_profile
7eb1f99a 842enable_sim_reserved_bits
b79efe26 843enable_sim_scache
04381273
MF
844enable_sim_stdio
845enable_sim_trace
47ce766a
MF
846enable_werror
847enable_build_warnings
848enable_sim_build_warnings
408a44aa 849enable_sim_frv_trapdump
e173c80f 850enable_sim_rx_cycle_accurate
81ecdfbb
RW
851'
852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
858LIBS
5e25901f 859CPPFLAGS
d57b6533
MF
860CPP
861PKG_CONFIG
862PKG_CONFIG_PATH
863PKG_CONFIG_LIBDIR
864SDL_CFLAGS
865SDL_LIBS'
d8b04da7 866ac_subdirs_all='bpf
81ecdfbb
RW
867mips
868mn10300
37f980dc 869or1k
b9249c46 870riscv
81ecdfbb 871ppc
36bb57e4 872v850'
c906108c
SS
873
874# Initialize some variables set by options.
b7026657
AC
875ac_init_help=
876ac_init_version=false
81ecdfbb
RW
877ac_unrecognized_opts=
878ac_unrecognized_sep=
c906108c
SS
879# The variables have the same names as the options, with
880# dashes changed to underlines.
b7026657 881cache_file=/dev/null
c906108c 882exec_prefix=NONE
c906108c 883no_create=
c906108c
SS
884no_recursion=
885prefix=NONE
886program_prefix=NONE
887program_suffix=NONE
888program_transform_name=s,x,x,
889silent=
890site=
891srcdir=
c906108c
SS
892verbose=
893x_includes=NONE
894x_libraries=NONE
b7026657
AC
895
896# Installation directory options.
897# These are left unexpanded so users can "make install exec_prefix=/foo"
898# and all the variables that are supposed to be based on exec_prefix
899# by default will actually change.
900# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 901# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
902bindir='${exec_prefix}/bin'
903sbindir='${exec_prefix}/sbin'
904libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
905datarootdir='${prefix}/share'
906datadir='${datarootdir}'
c906108c
SS
907sysconfdir='${prefix}/etc'
908sharedstatedir='${prefix}/com'
909localstatedir='${prefix}/var'
c906108c
SS
910includedir='${prefix}/include'
911oldincludedir='/usr/include'
6bddc3e8 912docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
913infodir='${datarootdir}/info'
914htmldir='${docdir}'
915dvidir='${docdir}'
916pdfdir='${docdir}'
917psdir='${docdir}'
918libdir='${exec_prefix}/lib'
919localedir='${datarootdir}/locale'
920mandir='${datarootdir}/man'
c906108c 921
c906108c 922ac_prev=
81ecdfbb 923ac_dashdash=
c906108c
SS
924for ac_option
925do
c906108c
SS
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
81ecdfbb 928 eval $ac_prev=\$ac_option
c906108c
SS
929 ac_prev=
930 continue
931 fi
932
81ecdfbb 933 case $ac_option in
d0ac1c44
SM
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
81ecdfbb 937 esac
c906108c
SS
938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
81ecdfbb
RW
941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
c906108c
SS
944
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 948 bindir=$ac_optarg ;;
c906108c
SS
949
950 -build | --build | --buil | --bui | --bu)
b7026657 951 ac_prev=build_alias ;;
c906108c 952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 953 build_alias=$ac_optarg ;;
c906108c
SS
954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
c906108c 964
81ecdfbb 965 -datadir | --datadir | --datadi | --datad)
c906108c 966 ac_prev=datadir ;;
81ecdfbb 967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 968 datadir=$ac_optarg ;;
c906108c 969
81ecdfbb
RW
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
c906108c 977 -disable-* | --disable-*)
81ecdfbb 978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 979 # Reject names that are not valid shell variable names.
81ecdfbb 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 981 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
c906108c
SS
1002
1003 -enable-* | --enable-*)
81ecdfbb 1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 1005 # Reject names that are not valid shell variable names.
81ecdfbb 1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1007 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
fdd6fa61 1016 esac
81ecdfbb 1017 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
b7026657 1026 exec_prefix=$ac_optarg ;;
c906108c
SS
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
b7026657
AC
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
c906108c
SS
1038
1039 -host | --host | --hos | --ho)
b7026657 1040 ac_prev=host_alias ;;
c906108c 1041 -host=* | --host=* | --hos=* | --ho=*)
b7026657 1042 host_alias=$ac_optarg ;;
c906108c 1043
81ecdfbb
RW
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
c906108c
SS
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 1055 includedir=$ac_optarg ;;
c906108c
SS
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1060 infodir=$ac_optarg ;;
c906108c
SS
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1065 libdir=$ac_optarg ;;
c906108c
SS
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
b7026657 1072 libexecdir=$ac_optarg ;;
c906108c 1073
81ecdfbb
RW
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
c906108c 1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1080 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1084 localstatedir=$ac_optarg ;;
c906108c
SS
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1089 mandir=$ac_optarg ;;
c906108c
SS
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1096 | --no-cr | --no-c | -n)
c906108c
SS
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1110 oldincludedir=$ac_optarg ;;
c906108c
SS
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1115 prefix=$ac_optarg ;;
c906108c
SS
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1122 program_prefix=$ac_optarg ;;
c906108c
SS
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1129 program_suffix=$ac_optarg ;;
c906108c
SS
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1146 program_transform_name=$ac_optarg ;;
c906108c 1147
81ecdfbb
RW
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
c906108c
SS
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
b7026657 1166 sbindir=$ac_optarg ;;
c906108c
SS
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
b7026657 1177 sharedstatedir=$ac_optarg ;;
c906108c
SS
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
b7026657 1182 site=$ac_optarg ;;
0fda6bd2 1183
c906108c
SS
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1187 srcdir=$ac_optarg ;;
c906108c
SS
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1194 sysconfdir=$ac_optarg ;;
c906108c
SS
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1197 ac_prev=target_alias ;;
c906108c 1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1199 target_alias=$ac_optarg ;;
c906108c
SS
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
b7026657
AC
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
c906108c
SS
1206
1207 -with-* | --with-*)
81ecdfbb 1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1209 # Reject names that are not valid shell variable names.
81ecdfbb 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1211 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
fdd6fa61 1220 esac
81ecdfbb 1221 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1222
1223 -without-* | --without-*)
81ecdfbb 1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1225 # Reject names that are not valid shell variable names.
81ecdfbb 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1227 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232"with_$ac_useropt"
1233"*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
c906108c
SS
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1248 x_includes=$ac_optarg ;;
c906108c
SS
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1255 x_libraries=$ac_optarg ;;
c906108c 1256
d0ac1c44
SM
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258Try \`$0 --help' for more information"
c906108c
SS
1259 ;;
1260
b7026657
AC
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1267 esac
1268 eval $ac_envvar=\$ac_optarg
b7026657
AC
1269 export $ac_envvar ;;
1270
c906108c 1271 *)
b7026657 1272 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1277 ;;
1278
1279 esac
1280done
1281
1282if test -n "$ac_prev"; then
b7026657 1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1284 as_fn_error $? "missing argument to $ac_option"
c906108c 1285fi
c906108c 1286
81ecdfbb
RW
1287if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
d0ac1c44 1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
fdd6fa61 1292 esac
81ecdfbb 1293fi
fdd6fa61 1294
81ecdfbb
RW
1295# Check all directory arguments for consistency.
1296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
c906108c 1300do
81ecdfbb
RW
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
b7026657 1309 case $ac_val in
81ecdfbb
RW
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1312 esac
d0ac1c44 1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1314done
1315
b7026657
AC
1316# There might be people who depend on the old broken behavior: `$host'
1317# used to hold the argument of --host etc.
1318# FIXME: To remove some day.
1319build=$build_alias
1320host=$host_alias
1321target=$target_alias
1322
1323# FIXME: To remove some day.
1324if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
b7026657
AC
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330fi
c906108c 1331
b7026657
AC
1332ac_tool_prefix=
1333test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335test "$silent" = yes && exec 6>/dev/null
c906108c 1336
c906108c 1337
81ecdfbb
RW
1338ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339ac_ls_di=`ls -di .` &&
1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1341 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1343 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1344
1345
c906108c
SS
1346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
81ecdfbb
RW
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355$as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
c906108c 1373 srcdir=$ac_confdir
81ecdfbb 1374 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1375 srcdir=..
1376 fi
1377else
1378 ac_srcdir_defaulted=no
1379fi
81ecdfbb
RW
1380if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1383fi
1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
d0ac1c44 1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1387 pwd)`
1388# When building in place, set srcdir=.
1389if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391fi
1392# Remove unnecessary trailing slashes from srcdir.
1393# Double slashes in file names in object file debugging info
1394# mess up M-x gdb in Emacs.
1395case $srcdir in
1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397esac
1398for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403done
df1756f4
TG
1404
1405#
b7026657
AC
1406# Report the --help message.
1407#
1408if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
6bddc3e8 1412\`configure' configures sim 0 to adapt to many kinds of systems.
b7026657
AC
1413
1414Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419Defaults for the options are specified in brackets.
1420
1421Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
d0ac1c44 1426 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
b7026657
AC
1432Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1434 [$ac_default_prefix]
b7026657 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1436 [PREFIX]
b7026657
AC
1437
1438By default, \`make install' will install all the files in
1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441for instance \`--prefix=\$HOME'.
1442
1443For better control, use the options below.
1444
1445Fine tuning of the installation directories:
81ecdfbb
RW
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
6bddc3e8 1460 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
81ecdfbb
RW
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1465_ACEOF
1466
1467 cat <<\_ACEOF
1468
1469Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
6bddc3e8
MF
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of sim 0:";;
1484 esac
b7026657
AC
1485 cat <<\_ACEOF
1486
1487Optional Features:
81ecdfbb 1488 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b5689863
MF
1491 --enable-plugins Enable support for plugins
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
8c379db2
TT
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
6bddc3e8
MF
1500 --enable-dependency-tracking
1501 do not reject slow dependency extractors
1502 --disable-dependency-tracking
1503 speeds up one-time build
c2783492
MF
1504 --enable-silent-rules less verbose build output (undo: "make V=1")
1505 --disable-silent-rules verbose build output (undo: "make V=0")
8d0978fb 1506 --enable-sim Enable the GNU simulator
26da232c 1507 --enable-example-sims enable example GNU simulators
a0e674c1 1508 --enable-targets alternative target configurations
ba307cdd
MF
1509 --enable-sim-alignment=align
1510 Specify strict, nonstrict or forced alignment of
1511 memory accesses
dba333c1 1512 --enable-sim-assert Specify whether to perform random assertions
1bf5c342 1513 --enable-cgen-maint=DIR build cgen generated files
04381273
MF
1514 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1515 itself)
f9a4d543
MF
1516 --enable-sim-endian=endian
1517 Specify target byte endian orientation
5ea45474
MF
1518 --enable-sim-environment=environment
1519 Specify mixed, user, virtual or operating
1520 environment
456ef1c1 1521 --enable-sim-hardware Whether to enable hardware/device simulation
d73f39ee
MF
1522 --enable-sim-inline=inlines
1523 Specify which functions should be inlined
04381273
MF
1524 --enable-sim-profile=opts
1525 Enable profiling flags
7eb1f99a
MF
1526 --enable-sim-reserved-bits
1527 Specify whether to check reserved bits in
1528 instruction
b79efe26
MF
1529 --enable-sim-scache=size
1530 Specify simulator execution cache size
04381273
MF
1531 --enable-sim-stdio Specify whether to use stdio for console
1532 input/output
1533 --enable-sim-trace=opts Enable tracing of simulated programs
47ce766a
MF
1534 --enable-werror treat compile warnings as errors
1535 --enable-build-warnings enable build-time compiler warnings if gcc is used
1536 --enable-sim-build-warnings
1537 enable SIM specific build-time compiler warnings if
1538 gcc is used
408a44aa
MF
1539 --enable-sim-frv-trapdump
1540 Make unknown traps dump the registers
e173c80f
MF
1541 --disable-sim-rx-cycle-accurate
1542 Disable cycle accurate simulation (faster runtime)
b7026657 1543
6dd65fc0
MF
1544Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1548 --with-bugurl=URL Direct users to URL to report a bug
b5689863
MF
1549 --with-system-zlib use installed libz
1550 --with-pic try to use only PIC/non-PIC objects [default=use
1551 both]
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
6dd65fc0 1553
b7026657
AC
1554Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
81ecdfbb 1559 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1561 you have headers in a nonstandard directory <include dir>
5e25901f 1562 CPP C preprocessor
d57b6533
MF
1563 PKG_CONFIG path to pkg-config utility
1564 PKG_CONFIG_PATH
1565 directories to add to pkg-config's search path
1566 PKG_CONFIG_LIBDIR
1567 path overriding pkg-config's built-in search path
1568 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1569 SDL_LIBS linker flags for SDL, overriding pkg-config
b7026657
AC
1570
1571Use these variables to override the choices made by `configure' or to help
1572it to find libraries and programs with nonstandard names/locations.
1573
6bddc3e8
MF
1574Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1575sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
b7026657 1576_ACEOF
81ecdfbb 1577ac_status=$?
b7026657
AC
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
b7026657 1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
b7026657
AC
1586 ac_builddir=.
1587
81ecdfbb
RW
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
b7026657
AC
1603
1604case $srcdir in
81ecdfbb 1605 .) # We are building in place.
b7026657 1606 ac_srcdir=.
81ecdfbb
RW
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1610 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fdd6fa61 1617esac
81ecdfbb 1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fdd6fa61 1619
81ecdfbb
RW
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
0fda6bd2 1628 else
81ecdfbb
RW
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1632 done
1633fi
1634
81ecdfbb 1635test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1636if $ac_init_version; then
1637 cat <<\_ACEOF
6bddc3e8 1638sim configure 0
d0ac1c44 1639generated by GNU Autoconf 2.69
b7026657 1640
d0ac1c44 1641Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
81ecdfbb 1645 exit
b7026657 1646fi
81ecdfbb
RW
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684fi
d0ac1c44
SM
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
81ecdfbb
RW
1687
1688} # ac_fn_c_try_compile
5e25901f
MF
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721fi
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_cpp
c2783492
MF
1726
1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730# the include files in INCLUDES and setting the cache variable VAR
1731# accordingly.
1732ac_fn_c_check_header_mongrel ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if eval \${$3+:} false; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740fi
1741eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744else
1745 # Is the header compilable?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747$as_echo_n "checking $2 usability... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h. */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1755else
1756 ac_header_compiler=no
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760$as_echo "$ac_header_compiler" >&6; }
1761
1762# Is the header present?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764$as_echo_n "checking $2 presence... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1771else
1772 ac_header_preproc=no
1773fi
1774rm -f conftest.err conftest.i conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776$as_echo "$ac_header_preproc" >&6; }
1777
1778# So? What about this header?
1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780 yes:no: )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786 no:yes:* )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797( $as_echo "## -------------------------------------------------------------------------------------- ##
1798## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1799## -------------------------------------------------------------------------------------- ##"
1800 ) | sed "s/^/$as_me: WARNING: /" >&2
1801 ;;
1802esac
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807else
1808 eval "$3=\$ac_header_compiler"
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813fi
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} # ac_fn_c_check_header_mongrel
1817
1818# ac_fn_c_try_run LINENO
1819# ----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821# that executables *can* be run.
1822ac_fn_c_try_run ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836 { { case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_try") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; }; }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: program exited with status $ac_status" >&5
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=$ac_status
1853fi
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858} # ac_fn_c_try_run
1859
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
b15c5d7a
MF
1890
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_link
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005# ----------------------------------------------------
2006# Tries to find if the field MEMBER exists in type AGGR, after including
2007# INCLUDES, setting cache variable VAR accordingly.
2008ac_fn_c_check_member ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012$as_echo_n "checking for $2.$3... " >&6; }
2013if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$5
2019int
2020main ()
2021{
2022static $2 ac_aggr;
2023if (ac_aggr.$3)
2024return 0;
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$4=yes"
2031else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (sizeof ac_aggr.$3)
2040return 0;
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047else
2048 eval "$4=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054eval ac_res=\$$4
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059} # ac_fn_c_check_member
2060
a48ff3ef
MF
2061# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2062# ---------------------------------------------
2063# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2064# accordingly.
2065ac_fn_c_check_decl ()
2066{
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 as_decl_name=`echo $2|sed 's/ *(.*//'`
2069 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2072if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074else
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
2078int
2079main ()
2080{
2081#ifndef $as_decl_name
2082#ifdef __cplusplus
2083 (void) $as_decl_use;
2084#else
2085 (void) $as_decl_name;
2086#endif
2087#endif
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$3=yes"
2095else
2096 eval "$3=no"
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105} # ac_fn_c_check_decl
2106
b15c5d7a
MF
2107# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2108# -------------------------------------------
2109# Tests whether TYPE exists after having included INCLUDES, setting cache
2110# variable VAR accordingly.
2111ac_fn_c_check_type ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115$as_echo_n "checking for $2... " >&6; }
2116if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118else
2119 eval "$3=no"
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h. */
2122$4
2123int
2124main ()
2125{
2126if (sizeof ($2))
2127 return 0;
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$4
2136int
2137main ()
2138{
2139if (sizeof (($2)))
2140 return 0;
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146
2147else
2148 eval "$3=yes"
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159} # ac_fn_c_check_type
81ecdfbb 2160cat >config.log <<_ACEOF
b7026657
AC
2161This file contains any messages produced by compilers while
2162running configure, to aid debugging if configure makes a mistake.
2163
6bddc3e8 2164It was created by sim $as_me 0, which was
d0ac1c44 2165generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
2166
2167 $ $0 $@
2168
2169_ACEOF
81ecdfbb 2170exec 5>>config.log
b7026657
AC
2171{
2172cat <<_ASUNAME
2173## --------- ##
2174## Platform. ##
2175## --------- ##
2176
2177hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182
2183/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185
2186/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2189/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b7026657
AC
2190/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193
2194_ASUNAME
2195
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2201 $as_echo "PATH: $as_dir"
2202 done
2203IFS=$as_save_IFS
b7026657
AC
2204
2205} >&5
2206
2207cat >&5 <<_ACEOF
2208
2209
2210## ----------- ##
2211## Core tests. ##
2212## ----------- ##
2213
2214_ACEOF
2215
2216
2217# Keep a trace of the command line.
2218# Strip out --no-create and --no-recursion so they do not pile up.
2219# Strip out --silent because we don't want to record it for future runs.
2220# Also quote any args containing shell meta-characters.
2221# Make two passes to allow for proper duplicate-argument suppression.
2222ac_configure_args=
2223ac_configure_args0=
2224ac_configure_args1=
b7026657
AC
2225ac_must_keep_next=false
2226for ac_pass in 1 2
2227do
2228 for ac_arg
2229 do
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
81ecdfbb
RW
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2237 esac
2238 case $ac_pass in
81ecdfbb 2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2240 2)
81ecdfbb 2241 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2253 ;;
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2256 fi
81ecdfbb 2257 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2258 ;;
2259 esac
2260 done
2261done
81ecdfbb
RW
2262{ ac_configure_args0=; unset ac_configure_args0;}
2263{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2264
2265# When interrupted or exit'd, cleanup temporary files, and complete
2266# config.log. We remove comments because anyway the quotes in there
2267# would cause problems or look ugly.
81ecdfbb
RW
2268# WARNING: Use '\'' to represent an apostrophe within the trap.
2269# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2270trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2272 {
2273 echo
2274
d0ac1c44 2275 $as_echo "## ---------------- ##
b7026657 2276## Cache variables. ##
d0ac1c44 2277## ---------------- ##"
b7026657
AC
2278 echo
2279 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2280(
2281 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282 eval ac_val=\$$ac_var
2283 case $ac_val in #(
2284 *${as_nl}*)
2285 case $ac_var in #(
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 esac
2289 case $ac_var in #(
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2293 esac ;;
2294 esac
2295 done
b7026657 2296 (set) 2>&1 |
81ecdfbb
RW
2297 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
b7026657 2299 sed -n \
81ecdfbb
RW
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 ;; #(
b7026657 2303 *)
81ecdfbb 2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2305 ;;
81ecdfbb
RW
2306 esac |
2307 sort
2308)
b7026657
AC
2309 echo
2310
d0ac1c44 2311 $as_echo "## ----------------- ##
b7026657 2312## Output variables. ##
d0ac1c44 2313## ----------------- ##"
b7026657
AC
2314 echo
2315 for ac_var in $ac_subst_vars
2316 do
81ecdfbb
RW
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2322 done | sort
2323 echo
2324
2325 if test -n "$ac_subst_files"; then
d0ac1c44 2326 $as_echo "## ------------------- ##
81ecdfbb 2327## File substitutions. ##
d0ac1c44 2328## ------------------- ##"
b7026657
AC
2329 echo
2330 for ac_var in $ac_subst_files
2331 do
81ecdfbb
RW
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2337 done | sort
2338 echo
2339 fi
2340
2341 if test -s confdefs.h; then
d0ac1c44 2342 $as_echo "## ----------- ##
b7026657 2343## confdefs.h. ##
d0ac1c44 2344## ----------- ##"
b7026657 2345 echo
81ecdfbb 2346 cat confdefs.h
b7026657 2347 echo
0fda6bd2 2348 fi
b7026657 2349 test "$ac_signal" != 0 &&
81ecdfbb
RW
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
b7026657 2352 } >&5
81ecdfbb
RW
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2355 exit $exit_status
81ecdfbb 2356' 0
b7026657 2357for ac_signal in 1 2 13 15; do
81ecdfbb 2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2359done
2360ac_signal=0
2361
2362# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2363rm -f -r conftest* confdefs.h
2364
2365$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2366
2367# Predefined preprocessor variables.
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_NAME "$PACKAGE_NAME"
2371_ACEOF
2372
b7026657
AC
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375_ACEOF
2376
b7026657
AC
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_VERSION "$PACKAGE_VERSION"
2379_ACEOF
2380
b7026657
AC
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_STRING "$PACKAGE_STRING"
2383_ACEOF
2384
b7026657
AC
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387_ACEOF
2388
81ecdfbb
RW
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_URL "$PACKAGE_URL"
2391_ACEOF
2392
b7026657
AC
2393
2394# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2395# Prefer an explicitly selected file to automatically selected ones.
2396ac_site_file1=NONE
2397ac_site_file2=NONE
2398if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2399 # We do not want a PATH search for config.site.
2400 case $CONFIG_SITE in #((
2401 -*) ac_site_file1=./$CONFIG_SITE;;
2402 */*) ac_site_file1=$CONFIG_SITE;;
2403 *) ac_site_file1=./$CONFIG_SITE;;
2404 esac
81ecdfbb
RW
2405elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 2411fi
81ecdfbb
RW
2412for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413do
2414 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2415 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2418 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2419 . "$ac_site_file" \
2420 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422as_fn_error $? "failed to load site script $ac_site_file
2423See \`config.log' for more details" "$LINENO" 5; }
c906108c
SS
2424 fi
2425done
2426
2427if test -r "$cache_file"; then
d0ac1c44
SM
2428 # Some versions of bash will fail to source /dev/null (special files
2429 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2433 case $cache_file in
81ecdfbb
RW
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
b7026657
AC
2436 esac
2437 fi
c906108c 2438else
81ecdfbb
RW
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657 2441 >$cache_file
c906108c
SS
2442fi
2443
b15c5d7a
MF
2444as_fn_append ac_header_list " dlfcn.h"
2445as_fn_append ac_header_list " fcntl.h"
2446as_fn_append ac_header_list " fpu_control.h"
2447as_fn_append ac_header_list " termios.h"
2448as_fn_append ac_header_list " unistd.h"
2449as_fn_append ac_header_list " utime.h"
2450as_fn_append ac_header_list " linux/if_tun.h"
2451as_fn_append ac_header_list " linux/mii.h"
2452as_fn_append ac_header_list " linux/types.h"
2453as_fn_append ac_header_list " net/if.h"
2454as_fn_append ac_header_list " netinet/in.h"
2455as_fn_append ac_header_list " netinet/tcp.h"
2456as_fn_append ac_header_list " sys/ioctl.h"
2457as_fn_append ac_header_list " sys/mman.h"
a48ff3ef 2458as_fn_append ac_header_list " sys/mount.h"
b15c5d7a
MF
2459as_fn_append ac_header_list " sys/param.h"
2460as_fn_append ac_header_list " sys/resource.h"
b15c5d7a
MF
2461as_fn_append ac_header_list " sys/socket.h"
2462as_fn_append ac_header_list " sys/stat.h"
a48ff3ef
MF
2463as_fn_append ac_header_list " sys/statfs.h"
2464as_fn_append ac_header_list " sys/termio.h"
2465as_fn_append ac_header_list " sys/termios.h"
2466as_fn_append ac_header_list " sys/types.h"
2467as_fn_append ac_header_list " sys/vfs.h"
b15c5d7a 2468as_fn_append ac_func_list " __setfpucw"
a48ff3ef 2469as_fn_append ac_func_list " access"
b15c5d7a
MF
2470as_fn_append ac_func_list " aint"
2471as_fn_append ac_func_list " anint"
a48ff3ef
MF
2472as_fn_append ac_func_list " cfgetispeed"
2473as_fn_append ac_func_list " cfgetospeed"
2474as_fn_append ac_func_list " cfsetispeed"
2475as_fn_append ac_func_list " cfsetospeed"
2476as_fn_append ac_func_list " chdir"
b15c5d7a 2477as_fn_append ac_func_list " chmod"
a48ff3ef
MF
2478as_fn_append ac_func_list " dup"
2479as_fn_append ac_func_list " dup2"
b15c5d7a
MF
2480as_fn_append ac_func_list " execv"
2481as_fn_append ac_func_list " execve"
a48ff3ef 2482as_fn_append ac_func_list " fcntl"
b15c5d7a 2483as_fn_append ac_func_list " fork"
a48ff3ef
MF
2484as_fn_append ac_func_list " fstat"
2485as_fn_append ac_func_list " fstatfs"
b15c5d7a 2486as_fn_append ac_func_list " ftruncate"
a48ff3ef 2487as_fn_append ac_func_list " getdirentries"
b15c5d7a 2488as_fn_append ac_func_list " getegid"
a48ff3ef 2489as_fn_append ac_func_list " geteuid"
b15c5d7a 2490as_fn_append ac_func_list " getgid"
a48ff3ef
MF
2491as_fn_append ac_func_list " getpid"
2492as_fn_append ac_func_list " getppid"
b15c5d7a 2493as_fn_append ac_func_list " getrusage"
a48ff3ef 2494as_fn_append ac_func_list " gettimeofday"
b15c5d7a 2495as_fn_append ac_func_list " getuid"
a48ff3ef 2496as_fn_append ac_func_list " ioctl"
b15c5d7a 2497as_fn_append ac_func_list " kill"
a48ff3ef
MF
2498as_fn_append ac_func_list " link"
2499as_fn_append ac_func_list " lseek"
b15c5d7a
MF
2500as_fn_append ac_func_list " mmap"
2501as_fn_append ac_func_list " munmap"
a48ff3ef 2502as_fn_append ac_func_list " pipe"
b15c5d7a
MF
2503as_fn_append ac_func_list " posix_fallocate"
2504as_fn_append ac_func_list " pread"
a48ff3ef
MF
2505as_fn_append ac_func_list " rmdir"
2506as_fn_append ac_func_list " setregid"
2507as_fn_append ac_func_list " setreuid"
b15c5d7a 2508as_fn_append ac_func_list " setgid"
a48ff3ef 2509as_fn_append ac_func_list " setuid"
b15c5d7a 2510as_fn_append ac_func_list " sigaction"
a48ff3ef 2511as_fn_append ac_func_list " sigprocmask"
b15c5d7a 2512as_fn_append ac_func_list " sqrt"
a48ff3ef 2513as_fn_append ac_func_list " stat"
b15c5d7a 2514as_fn_append ac_func_list " strsignal"
a48ff3ef
MF
2515as_fn_append ac_func_list " symlink"
2516as_fn_append ac_func_list " tcdrain"
2517as_fn_append ac_func_list " tcflow"
2518as_fn_append ac_func_list " tcflush"
2519as_fn_append ac_func_list " tcgetattr"
2520as_fn_append ac_func_list " tcgetpgrp"
2521as_fn_append ac_func_list " tcsendbreak"
2522as_fn_append ac_func_list " tcsetattr"
2523as_fn_append ac_func_list " tcsetpgrp"
b15c5d7a
MF
2524as_fn_append ac_func_list " time"
2525as_fn_append ac_func_list " truncate"
a48ff3ef
MF
2526as_fn_append ac_func_list " umask"
2527as_fn_append ac_func_list " unlink"
b15c5d7a 2528as_fn_append ac_func_list " utime"
b7026657
AC
2529# Check that the precious variables saved in the cache have kept the same
2530# value.
2531ac_cache_corrupted=false
81ecdfbb 2532for ac_var in $ac_precious_vars; do
b7026657
AC
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2537 case $ac_old_set,$ac_new_set in
2538 set,)
81ecdfbb
RW
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2541 ac_cache_corrupted=: ;;
2542 ,set)
81ecdfbb
RW
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2545 ac_cache_corrupted=: ;;
2546 ,);;
2547 *)
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
81ecdfbb 2570 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657 2576 esac
c906108c 2577 fi
b7026657
AC
2578done
2579if $ac_cache_corrupted; then
81ecdfbb
RW
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2584 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2585fi
81ecdfbb
RW
2586## -------------------- ##
2587## Main body of script. ##
2588## -------------------- ##
c906108c 2589
fdd6fa61
AG
2590ac_ext=c
2591ac_cpp='$CPP $CPPFLAGS'
2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
c906108c
SS
2596
2597
8c379db2
TT
2598
2599
2600
6dd65fc0
MF
2601
2602
2603# Check whether --with-pkgversion was given.
2604if test "${with_pkgversion+set}" = set; then :
2605 withval=$with_pkgversion; case "$withval" in
2606 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2607 no) PKGVERSION= ;;
2608 *) PKGVERSION="($withval) " ;;
2609 esac
2610else
2611 PKGVERSION="(SIM) "
2612
2613fi
2614
2615
2616
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PKGVERSION "$PKGVERSION"
2620_ACEOF
2621
2622
2623
2624# Check whether --with-bugurl was given.
2625if test "${with_bugurl+set}" = set; then :
2626 withval=$with_bugurl; case "$withval" in
2627 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2628 no) BUGURL=
2629 ;;
2630 *) BUGURL="$withval"
2631 ;;
2632 esac
2633else
2634 BUGURL="$PACKAGE_BUGREPORT"
2635
2636fi
2637
2638 case ${BUGURL} in
2639 "")
2640 REPORT_BUGS_TO=
2641 REPORT_BUGS_TEXI=
2642 ;;
2643 *)
2644 REPORT_BUGS_TO="<$BUGURL>"
2645 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2646 ;;
2647 esac;
2648
2649
2650
2651
2652cat >>confdefs.h <<_ACEOF
2653#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2654_ACEOF
2655
2656
b15c5d7a
MF
2657ac_config_headers="$ac_config_headers config.h"
2658
2659
6bddc3e8
MF
2660ac_aux_dir=
2661for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2662 if test -f "$ac_dir/install-sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install-sh -c"
2665 break
2666 elif test -f "$ac_dir/install.sh"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/install.sh -c"
2669 break
2670 elif test -f "$ac_dir/shtool"; then
2671 ac_aux_dir=$ac_dir
2672 ac_install_sh="$ac_aux_dir/shtool install -c"
2673 break
b7026657
AC
2674 fi
2675done
6bddc3e8
MF
2676if test -z "$ac_aux_dir"; then
2677 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
c906108c
SS
2678fi
2679
6bddc3e8
MF
2680# These three variables are undocumented and unsupported,
2681# and are intended to be withdrawn in a future Autoconf release.
2682# They can cause serious problems if a builder's source tree is in a directory
2683# whose full name contains unusual characters.
2684ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
81ecdfbb 2687
6bddc3e8
MF
2688
2689# Make sure we can run config.sub.
2690$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2692
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694$as_echo_n "checking build system type... " >&6; }
2695if ${ac_cv_build+:} false; then :
81ecdfbb 2696 $as_echo_n "(cached) " >&6
c906108c 2697else
6bddc3e8
MF
2698 ac_build_alias=$build_alias
2699test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701test "x$ac_build_alias" = x &&
2702 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2703ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
b7026657
AC
2705
2706fi
6bddc3e8
MF
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708$as_echo "$ac_cv_build" >&6; }
2709case $ac_cv_build in
2710*-*-*) ;;
2711*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2712esac
6bddc3e8
MF
2713build=$ac_cv_build
2714ac_save_IFS=$IFS; IFS='-'
2715set x $ac_cv_build
2716shift
2717build_cpu=$1
2718build_vendor=$2
2719shift; shift
2720# Remember, the first character of IFS is used to create $*,
2721# except with old shells:
2722build_os=$*
2723IFS=$ac_save_IFS
2724case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657 2725
6bddc3e8
MF
2726
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728$as_echo_n "checking host system type... " >&6; }
2729if ${ac_cv_host+:} false; then :
81ecdfbb 2730 $as_echo_n "(cached) " >&6
b7026657 2731else
6bddc3e8
MF
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
b7026657 2734else
6bddc3e8
MF
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b7026657 2737fi
6bddc3e8 2738
fdd6fa61 2739fi
6bddc3e8
MF
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741$as_echo "$ac_cv_host" >&6; }
2742case $ac_cv_host in
2743*-*-*) ;;
2744*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2745esac
2746host=$ac_cv_host
2747ac_save_IFS=$IFS; IFS='-'
2748set x $ac_cv_host
2749shift
2750host_cpu=$1
2751host_vendor=$2
2752shift; shift
2753# Remember, the first character of IFS is used to create $*,
2754# except with old shells:
2755host_os=$*
2756IFS=$ac_save_IFS
2757case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fdd6fa61 2758
fdd6fa61 2759
6bddc3e8
MF
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2761$as_echo_n "checking target system type... " >&6; }
2762if ${ac_cv_target+:} false; then :
81ecdfbb 2763 $as_echo_n "(cached) " >&6
b7026657 2764else
6bddc3e8
MF
2765 if test "x$target_alias" = x; then
2766 ac_cv_target=$ac_cv_host
c906108c 2767else
6bddc3e8
MF
2768 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2770fi
2771
2772fi
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2774$as_echo "$ac_cv_target" >&6; }
2775case $ac_cv_target in
2776*-*-*) ;;
2777*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2778esac
2779target=$ac_cv_target
2780ac_save_IFS=$IFS; IFS='-'
2781set x $ac_cv_target
2782shift
2783target_cpu=$1
2784target_vendor=$2
2785shift; shift
2786# Remember, the first character of IFS is used to create $*,
2787# except with old shells:
2788target_os=$*
2789IFS=$ac_save_IFS
2790case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2791
2792
2793# The aliases save the names the user supplied, while $host etc.
2794# will get canonicalized.
2795test -n "$target_alias" &&
2796 test "$program_prefix$program_suffix$program_transform_name" = \
2797 NONENONEs,x,x, &&
2798 program_prefix=${target_alias}-
c2783492
MF
2799# Expand $ac_aux_dir to an absolute path.
2800am_aux_dir=`cd "$ac_aux_dir" && pwd`
6bddc3e8 2801
c2783492
MF
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2809set dummy ${ac_tool_prefix}gcc; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
8c379db2 2814else
c2783492
MF
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
8c379db2 2832
c2783492
MF
2833fi
2834fi
2835CC=$ac_cv_prog_CC
2836if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838$as_echo "$CC" >&6; }
8c379db2 2839else
c2783492
MF
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
8c379db2
TT
2842fi
2843
6bddc3e8 2844
c2783492
MF
2845fi
2846if test -z "$ac_cv_prog_CC"; then
2847 ac_ct_CC=$CC
2848 # Extract the first word of "gcc", so it can be a program name with args.
2849set dummy gcc; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
2853 $as_echo_n "(cached) " >&6
2854else
c2783492
MF
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bddc3e8
MF
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
c2783492
MF
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_ac_ct_CC="gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
6bddc3e8
MF
2870 done
2871IFS=$as_save_IFS
2872
6bddc3e8 2873fi
6bddc3e8 2874fi
c2783492
MF
2875ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876if test -n "$ac_ct_CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2878$as_echo "$ac_ct_CC" >&6; }
6bddc3e8 2879else
c2783492
MF
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
6bddc3e8
MF
2882fi
2883
c2783492
MF
2884 if test "x$ac_ct_CC" = x; then
2885 CC=""
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888yes:)
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891ac_tool_warned=yes ;;
2892esac
2893 CC=$ac_ct_CC
2894 fi
6bddc3e8 2895else
c2783492 2896 CC="$ac_cv_prog_CC"
6bddc3e8
MF
2897fi
2898
c2783492
MF
2899if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2902set dummy ${ac_tool_prefix}cc; ac_word=$2
6bddc3e8
MF
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2905if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2906 $as_echo_n "(cached) " >&6
2907else
c2783492
MF
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8
MF
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 2918 ac_cv_prog_CC="${ac_tool_prefix}cc"
6bddc3e8
MF
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923 done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
c2783492
MF
2928CC=$ac_cv_prog_CC
2929if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931$as_echo "$CC" >&6; }
6bddc3e8
MF
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
c2783492 2938 fi
6bddc3e8 2939fi
c2783492
MF
2940if test -z "$CC"; then
2941 # Extract the first word of "cc", so it can be a program name with args.
2942set dummy cc; ac_word=$2
6bddc3e8
MF
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
c2783492 2945if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
2946 $as_echo_n "(cached) " >&6
2947else
c2783492
MF
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
6bddc3e8 2950else
c2783492 2951 ac_prog_rejected=no
6bddc3e8
MF
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492
MF
2959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2960 ac_prog_rejected=yes
2961 continue
2962 fi
2963 ac_cv_prog_CC="cc"
6bddc3e8
MF
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967done
2968 done
2969IFS=$as_save_IFS
2970
c2783492
MF
2971if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2974 shift
2975 if test $# != 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2979 shift
2980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2981 fi
6bddc3e8
MF
2982fi
2983fi
c2783492
MF
2984fi
2985CC=$ac_cv_prog_CC
2986if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988$as_echo "$CC" >&6; }
6bddc3e8
MF
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
6bddc3e8
MF
2994
2995fi
c2783492
MF
2996if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2998 for ac_prog in cl.exe
2999 do
3000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if ${ac_cv_prog_CC+:} false; then :
6bddc3e8
MF
3005 $as_echo_n "(cached) " >&6
3006else
c2783492
MF
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
6bddc3e8
MF
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
c2783492
MF
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
6bddc3e8
MF
3022 done
3023IFS=$as_save_IFS
3024
3025fi
6bddc3e8 3026fi
c2783492
MF
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030$as_echo "$CC" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
6bddc3e8 3035
c2783492
MF
3036
3037 test -n "$CC" && break
3038 done
3039fi
3040if test -z "$CC"; then
3041 ac_ct_CC=$CC
3042 for ac_prog in cl.exe
6bddc3e8
MF
3043do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
c2783492 3048if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bddc3e8
MF
3049 $as_echo_n "(cached) " >&6
3050else
c2783492
MF
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6bddc3e8
MF
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 3061 ac_cv_prog_ac_ct_CC="$ac_prog"
6bddc3e8
MF
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
c2783492
MF
3071ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074$as_echo "$ac_ct_CC" >&6; }
6bddc3e8
MF
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
c2783492 3081 test -n "$ac_ct_CC" && break
6bddc3e8
MF
3082done
3083
c2783492
MF
3084 if test "x$ac_ct_CC" = x; then
3085 CC=""
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088yes:)
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091ac_tool_warned=yes ;;
6bddc3e8 3092esac
c2783492 3093 CC=$ac_ct_CC
6bddc3e8
MF
3094 fi
3095fi
3096
6bddc3e8
MF
3097fi
3098
3099
c2783492
MF
3100test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error $? "no acceptable C compiler found in \$PATH
3103See \`config.log' for more details" "$LINENO" 5; }
6bddc3e8 3104
c2783492
MF
3105# Provide some information about the compiler.
3106$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3107set X $ac_compile
3108ac_compiler=$2
3109for ac_option in --version -v -V -qversion; do
3110 { { ac_try="$ac_compiler $ac_option >&5"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3118 ac_status=$?
3119 if test -s conftest.err; then
3120 sed '10a\
3121... rest of stderr output deleted ...
3122 10q' conftest.err >conftest.er1
3123 cat conftest.er1 >&5
3124 fi
3125 rm -f conftest.er1 conftest.err
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }
3128done
6bddc3e8 3129
c2783492
MF
3130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131/* end confdefs.h. */
6bddc3e8 3132
c2783492
MF
3133int
3134main ()
3135{
6bddc3e8 3136
c2783492
MF
3137 ;
3138 return 0;
3139}
6bddc3e8 3140_ACEOF
c2783492
MF
3141ac_clean_files_save=$ac_clean_files
3142ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3143# Try to create an executable without -o first, disregard a.out.
3144# It will help us diagnose broken compilers, and finding out an intuition
3145# of exeext.
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3147$as_echo_n "checking whether the C compiler works... " >&6; }
3148ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6bddc3e8 3149
c2783492
MF
3150# The possible output files:
3151ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6bddc3e8 3152
c2783492
MF
3153ac_rmfiles=
3154for ac_file in $ac_files
3155do
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 esac
3160done
3161rm -f $ac_rmfiles
81ecdfbb
RW
3162
3163if { { ac_try="$ac_link_default"
3164case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169$as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link_default") 2>&5
b7026657 3171 ac_status=$?
81ecdfbb
RW
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3175# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3176# in a Makefile. We should not override ac_cv_exeext if it was cached,
3177# so that the user can short-circuit this test for compilers unknown to
3178# Autoconf.
3179for ac_file in $ac_files ''
b7026657
AC
3180do
3181 test -f "$ac_file" || continue
3182 case $ac_file in
81ecdfbb 3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b7026657
AC
3184 ;;
3185 [ab].out )
3186 # We found the default executable, but exeext='' is most
3187 # certainly right.
3188 break;;
3189 *.* )
81ecdfbb
RW
3190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3191 then :; else
3192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 fi
3194 # We set ac_cv_exeext here because the later test for it is not
3195 # safe: cross compilers may not add the suffix if given an `-o'
3196 # argument, so we may need to know it at that point already.
3197 # Even if this section looks crufty: it has the advantage of
3198 # actually working.
b7026657
AC
3199 break;;
3200 * )
3201 break;;
3202 esac
3203done
81ecdfbb
RW
3204test "$ac_cv_exeext" = no && ac_cv_exeext=
3205
b7026657 3206else
81ecdfbb
RW
3207 ac_file=''
3208fi
81ecdfbb 3209if test -z "$ac_file"; then :
d0ac1c44
SM
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212$as_echo "$as_me: failed program was:" >&5
b7026657
AC
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
81ecdfbb
RW
3215{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3217as_fn_error 77 "C compiler cannot create executables
3218See \`config.log' for more details" "$LINENO" 5; }
3219else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221$as_echo "yes" >&6; }
b7026657 3222fi
d0ac1c44
SM
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3224$as_echo_n "checking for C compiler default output file name... " >&6; }
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3226$as_echo "$ac_file" >&6; }
b7026657 3227ac_exeext=$ac_cv_exeext
b7026657 3228
d0ac1c44 3229rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b7026657 3230ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3232$as_echo_n "checking for suffix of executables... " >&6; }
3233if { { ac_try="$ac_link"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239$as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
b7026657 3241 ac_status=$?
81ecdfbb
RW
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; then :
b7026657
AC
3244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3245# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3246# work properly (i.e., refer to `conftest.exe'), while it won't with
3247# `rm'.
3248for ac_file in conftest.exe conftest conftest.*; do
3249 test -f "$ac_file" || continue
3250 case $ac_file in
81ecdfbb 3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b7026657 3252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b7026657
AC
3253 break;;
3254 * ) break;;
3255 esac
3256done
c906108c 3257else
81ecdfbb
RW
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3260as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3261See \`config.log' for more details" "$LINENO" 5; }
c906108c 3262fi
d0ac1c44 3263rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3265$as_echo "$ac_cv_exeext" >&6; }
b7026657
AC
3266
3267rm -f conftest.$ac_ext
3268EXEEXT=$ac_cv_exeext
3269ac_exeext=$EXEEXT
d0ac1c44
SM
3270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h. */
3272#include <stdio.h>
3273int
3274main ()
3275{
3276FILE *f = fopen ("conftest.out", "w");
3277 return ferror (f) || fclose (f) != 0;
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283ac_clean_files="$ac_clean_files conftest.out"
3284# Check that the compiler produces executables we can run. If not, either
3285# the compiler is broken, or we cross compile.
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3287$as_echo_n "checking whether we are cross compiling... " >&6; }
3288if test "$cross_compiling" != yes; then
3289 { { ac_try="$ac_link"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
3294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295$as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }
3300 if { ac_try='./conftest$ac_cv_exeext'
3301 { { case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_try") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; }; then
3311 cross_compiling=no
3312 else
3313 if test "$cross_compiling" = maybe; then
3314 cross_compiling=yes
3315 else
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error $? "cannot run C compiled programs.
3319If you meant to cross compile, use \`--host'.
3320See \`config.log' for more details" "$LINENO" 5; }
3321 fi
3322 fi
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3325$as_echo "$cross_compiling" >&6; }
3326
3327rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3328ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3330$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3331if ${ac_cv_objext+:} false; then :
81ecdfbb 3332 $as_echo_n "(cached) " >&6
b7026657 3333else
81ecdfbb 3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3335/* end confdefs.h. */
3336
3337int
3338main ()
3339{
3340
3341 ;
3342 return 0;
3343}
3344_ACEOF
3345rm -f conftest.o conftest.obj
81ecdfbb
RW
3346if { { ac_try="$ac_compile"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352$as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_compile") 2>&5
b7026657 3354 ac_status=$?
81ecdfbb
RW
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 for ac_file in conftest.o conftest.obj conftest.*; do
3358 test -f "$ac_file" || continue;
b7026657 3359 case $ac_file in
81ecdfbb 3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b7026657
AC
3361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 break;;
3363 esac
3364done
3365else
81ecdfbb 3366 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
81ecdfbb
RW
3369{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3371as_fn_error $? "cannot compute suffix of object files: cannot compile
3372See \`config.log' for more details" "$LINENO" 5; }
c906108c 3373fi
b7026657
AC
3374rm -f conftest.$ac_cv_objext conftest.$ac_ext
3375fi
81ecdfbb
RW
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3377$as_echo "$ac_cv_objext" >&6; }
b7026657
AC
3378OBJEXT=$ac_cv_objext
3379ac_objext=$OBJEXT
81ecdfbb
RW
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3381$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3382if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3383 $as_echo_n "(cached) " >&6
b7026657 3384else
81ecdfbb 3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3386/* end confdefs.h. */
3387
3388int
3389main ()
3390{
3391#ifndef __GNUC__
3392 choke me
3393#endif
c906108c 3394
b7026657
AC
3395 ;
3396 return 0;
3397}
3398_ACEOF
81ecdfbb 3399if ac_fn_c_try_compile "$LINENO"; then :
b7026657 3400 ac_compiler_gnu=yes
c906108c 3401else
81ecdfbb 3402 ac_compiler_gnu=no
c906108c 3403fi
81ecdfbb 3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3405ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c 3406
b7026657 3407fi
81ecdfbb
RW
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3409$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3410if test $ac_compiler_gnu = yes; then
3411 GCC=yes
3412else
3413 GCC=
3414fi
b7026657
AC
3415ac_test_CFLAGS=${CFLAGS+set}
3416ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3418$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3419if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb 3420 $as_echo_n "(cached) " >&6
c906108c 3421else
81ecdfbb
RW
3422 ac_save_c_werror_flag=$ac_c_werror_flag
3423 ac_c_werror_flag=yes
3424 ac_cv_prog_cc_g=no
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
81ecdfbb 3437if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3438 ac_cv_prog_cc_g=yes
3439else
81ecdfbb
RW
3440 CFLAGS=""
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h. */
3443
3444int
3445main ()
3446{
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452if ac_fn_c_try_compile "$LINENO"; then :
3453
3454else
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
c906108c 3463
81ecdfbb
RW
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470fi
3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3472fi
81ecdfbb 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3474fi
81ecdfbb
RW
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3479$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3480if test "$ac_test_CFLAGS" = set; then
b7026657 3481 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3482elif test $ac_cv_prog_cc_g = yes; then
3483 if test "$GCC" = yes; then
3484 CFLAGS="-g -O2"
3485 else
3486 CFLAGS="-g"
3487 fi
3488else
3489 if test "$GCC" = yes; then
3490 CFLAGS="-O2"
3491 else
3492 CFLAGS=
3493 fi
3494fi
81ecdfbb
RW
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3496$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3497if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3498 $as_echo_n "(cached) " >&6
b7026657 3499else
81ecdfbb 3500 ac_cv_prog_cc_c89=no
b7026657 3501ac_save_CC=$CC
81ecdfbb 3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
3503/* end confdefs.h. */
3504#include <stdarg.h>
3505#include <stdio.h>
d0ac1c44 3506struct stat;
b7026657
AC
3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508struct buf { int x; };
3509FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510static char *e (p, i)
3511 char **p;
3512 int i;
3513{
3514 return p[i];
3515}
3516static char *f (char * (*g) (char **, int), char **p, ...)
3517{
3518 char *s;
3519 va_list v;
3520 va_start (v,p);
3521 s = g (p, va_arg (v,int));
3522 va_end (v);
3523 return s;
3524}
3525
3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3529 as 'x'. The following induces an error, until -std is added to get
b7026657
AC
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3532 that's true only with -std. */
b7026657
AC
3533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
81ecdfbb
RW
3535/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3536 inside strings and character constants. */
3537#define FOO(x) 'x'
3538int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3539
b7026657
AC
3540int test (int i, double x);
3541struct s1 {int (*f) (int a);};
3542struct s2 {int (*f) (double a);};
3543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544int argc;
3545char **argv;
3546int
3547main ()
3548{
3549return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 ;
3551 return 0;
3552}
3553_ACEOF
81ecdfbb
RW
3554for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b7026657
AC
3556do
3557 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_prog_cc_c89=$ac_arg
b7026657 3560fi
81ecdfbb
RW
3561rm -f core conftest.err conftest.$ac_objext
3562 test "x$ac_cv_prog_cc_c89" != "xno" && break
b7026657 3563done
81ecdfbb 3564rm -f conftest.$ac_ext
b7026657
AC
3565CC=$ac_save_CC
3566
3567fi
81ecdfbb
RW
3568# AC_CACHE_VAL
3569case "x$ac_cv_prog_cc_c89" in
3570 x)
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3572$as_echo "none needed" >&6; } ;;
3573 xno)
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3575$as_echo "unsupported" >&6; } ;;
b7026657 3576 *)
81ecdfbb
RW
3577 CC="$CC $ac_cv_prog_cc_c89"
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3579$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b7026657 3580esac
81ecdfbb 3581if test "x$ac_cv_prog_cc_c89" != xno; then :
b7026657 3582
fdd6fa61
AG
3583fi
3584
fdd6fa61
AG
3585ac_ext=c
3586ac_cpp='$CPP $CPPFLAGS'
3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590
c2783492
MF
3591ac_ext=c
3592ac_cpp='$CPP $CPPFLAGS'
3593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3597$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3598if ${am_cv_prog_cc_c_o+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612 # Make sure it works both with $CC and with simple cc.
3613 # Following AC_PROG_CC_C_O, we do the test twice because some
3614 # compilers refuse to overwrite an existing .o file with -o,
3615 # though they will create one.
3616 am_cv_prog_cc_c_o=yes
3617 for am_i in 1 2; do
3618 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3619 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } \
3623 && test -f conftest2.$ac_objext; then
3624 : OK
3625 else
3626 am_cv_prog_cc_c_o=no
3627 break
3628 fi
3629 done
3630 rm -f core conftest*
3631 unset am_i
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3634$as_echo "$am_cv_prog_cc_c_o" >&6; }
3635if test "$am_cv_prog_cc_c_o" != yes; then
3636 # Losing compiler, so override with the script.
3637 # FIXME: It is wrong to rewrite CC.
3638 # But if we don't then we get into trouble of one sort or another.
3639 # A longer-term fix would be to have automake use am__CC in this case,
3640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3641 CC="$am_aux_dir/compile $CC"
3642fi
3643ac_ext=c
3644ac_cpp='$CPP $CPPFLAGS'
3645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649
3650
3651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3657$as_echo_n "checking how to run the C preprocessor... " >&6; }
3658# On Suns, sometimes $CPP names a directory.
3659if test -n "$CPP" && test -d "$CPP"; then
3660 CPP=
3661fi
3662if test -z "$CPP"; then
3663 if ${ac_cv_prog_CPP+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665else
3666 # Double quotes because CPP needs to be expanded
3667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3668 do
3669 ac_preproc_ok=false
3670for ac_c_preproc_warn_flag in '' yes
3671do
3672 # Use a header file that comes with gcc, so configuring glibc
3673 # with a fresh cross-compiler works.
3674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3675 # <limits.h> exists even on freestanding compilers.
3676 # On the NeXT, cc -E runs the code through the compiler's parser,
3677 # not just through cpp. "Syntax error" is here to catch this case.
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h. */
3680#ifdef __STDC__
3681# include <limits.h>
3682#else
3683# include <assert.h>
3684#endif
3685 Syntax error
3686_ACEOF
3687if ac_fn_c_try_cpp "$LINENO"; then :
3688
3689else
3690 # Broken: fails on valid input.
3691continue
3692fi
3693rm -f conftest.err conftest.i conftest.$ac_ext
3694
3695 # OK, works on sane cases. Now check whether nonexistent headers
3696 # can be detected and how.
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699#include <ac_nonexistent.h>
3700_ACEOF
3701if ac_fn_c_try_cpp "$LINENO"; then :
3702 # Broken: success on invalid input.
3703continue
3704else
3705 # Passes both tests.
3706ac_preproc_ok=:
3707break
3708fi
3709rm -f conftest.err conftest.i conftest.$ac_ext
3710
3711done
3712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3713rm -f conftest.i conftest.err conftest.$ac_ext
3714if $ac_preproc_ok; then :
3715 break
3716fi
3717
3718 done
3719 ac_cv_prog_CPP=$CPP
3720
3721fi
3722 CPP=$ac_cv_prog_CPP
3723else
3724 ac_cv_prog_CPP=$CPP
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3727$as_echo "$CPP" >&6; }
3728ac_preproc_ok=false
3729for ac_c_preproc_warn_flag in '' yes
3730do
3731 # Use a header file that comes with gcc, so configuring glibc
3732 # with a fresh cross-compiler works.
3733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 # <limits.h> exists even on freestanding compilers.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp. "Syntax error" is here to catch this case.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h. */
3739#ifdef __STDC__
3740# include <limits.h>
3741#else
3742# include <assert.h>
3743#endif
3744 Syntax error
3745_ACEOF
3746if ac_fn_c_try_cpp "$LINENO"; then :
3747
3748else
3749 # Broken: fails on valid input.
3750continue
3751fi
3752rm -f conftest.err conftest.i conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether nonexistent headers
3755 # can be detected and how.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758#include <ac_nonexistent.h>
3759_ACEOF
3760if ac_fn_c_try_cpp "$LINENO"; then :
3761 # Broken: success on invalid input.
3762continue
3763else
3764 # Passes both tests.
3765ac_preproc_ok=:
3766break
3767fi
3768rm -f conftest.err conftest.i conftest.$ac_ext
3769
3770done
3771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772rm -f conftest.i conftest.err conftest.$ac_ext
3773if $ac_preproc_ok; then :
3774
3775else
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3779See \`config.log' for more details" "$LINENO" 5; }
3780fi
3781
3782ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3790$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3791if ${ac_cv_path_GREP+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793else
3794 if test -z "$GREP"; then
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 as_fn_executable_p "$ac_path_GREP" || continue
3806# Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808case `"$ac_path_GREP" --version 2>&1` in
3809*GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3811*)
3812 ac_count=0
3813 $as_echo_n 0123456789 >"conftest.in"
3814 while :
3815 do
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 $as_echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 as_fn_arith $ac_count + 1 && ac_count=$as_val
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3827 fi
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832esac
3833
3834 $ac_path_GREP_found && break 3
3835 done
3836 done
3837 done
3838IFS=$as_save_IFS
3839 if test -z "$ac_cv_path_GREP"; then
3840 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3841 fi
3842else
3843 ac_cv_path_GREP=$GREP
3844fi
3845
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3848$as_echo "$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3850
3851
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3853$as_echo_n "checking for egrep... " >&6; }
3854if ${ac_cv_path_EGREP+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856else
3857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858 then ac_cv_path_EGREP="$GREP -E"
3859 else
3860 if test -z "$EGREP"; then
3861 ac_path_EGREP_found=false
3862 # Loop through the user's path and test for each of PROGNAME-LIST
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in egrep; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871 as_fn_executable_p "$ac_path_EGREP" || continue
3872# Check for GNU ac_path_EGREP and select it if it is found.
3873 # Check for GNU $ac_path_EGREP
3874case `"$ac_path_EGREP" --version 2>&1` in
3875*GNU*)
3876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877*)
3878 ac_count=0
3879 $as_echo_n 0123456789 >"conftest.in"
3880 while :
3881 do
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 $as_echo 'EGREP' >> "conftest.nl"
3886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 as_fn_arith $ac_count + 1 && ac_count=$as_val
3889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_EGREP="$ac_path_EGREP"
3892 ac_path_EGREP_max=$ac_count
3893 fi
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3896 done
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898esac
3899
3900 $ac_path_EGREP_found && break 3
3901 done
3902 done
3903 done
3904IFS=$as_save_IFS
3905 if test -z "$ac_cv_path_EGREP"; then
3906 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3907 fi
3908else
3909 ac_cv_path_EGREP=$EGREP
3910fi
3911
3912 fi
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3915$as_echo "$ac_cv_path_EGREP" >&6; }
3916 EGREP="$ac_cv_path_EGREP"
3917
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3920$as_echo_n "checking for ANSI C header files... " >&6; }
3921if ${ac_cv_header_stdc+:} false; then :
6bddc3e8
MF
3922 $as_echo_n "(cached) " >&6
3923else
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h. */
c2783492
MF
3926#include <stdlib.h>
3927#include <stdarg.h>
3928#include <string.h>
3929#include <float.h>
6bddc3e8
MF
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
c2783492
MF
3939if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_header_stdc=yes
3941else
3942 ac_cv_header_stdc=no
fdd6fa61 3943fi
c2783492 3944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81ecdfbb 3945
c2783492
MF
3946if test $ac_cv_header_stdc = yes; then
3947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h. */
3950#include <string.h>
6bddc3e8 3951
c2783492
MF
3952_ACEOF
3953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3954 $EGREP "memchr" >/dev/null 2>&1; then :
6bddc3e8 3955
c2783492
MF
3956else
3957 ac_cv_header_stdc=no
3958fi
3959rm -f conftest*
6bddc3e8 3960
6bddc3e8 3961fi
81ecdfbb 3962
c2783492
MF
3963if test $ac_cv_header_stdc = yes; then
3964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h. */
3967#include <stdlib.h>
fdd6fa61 3968
c2783492
MF
3969_ACEOF
3970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "free" >/dev/null 2>&1; then :
6bddc3e8 3972
c2783492
MF
3973else
3974 ac_cv_header_stdc=no
6bddc3e8 3975fi
c2783492 3976rm -f conftest*
6bddc3e8 3977
6bddc3e8 3978fi
c2783492
MF
3979
3980if test $ac_cv_header_stdc = yes; then
3981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3982 if test "$cross_compiling" = yes; then :
3983 :
6bddc3e8 3984else
c2783492
MF
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
3987#include <ctype.h>
3988#include <stdlib.h>
3989#if ((' ' & 0x0FF) == 0x020)
3990# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3991# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3992#else
3993# define ISLOWER(c) \
3994 (('a' <= (c) && (c) <= 'i') \
3995 || ('j' <= (c) && (c) <= 'r') \
3996 || ('s' <= (c) && (c) <= 'z'))
3997# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3998#endif
3999
4000#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4001int
4002main ()
4003{
4004 int i;
4005 for (i = 0; i < 256; i++)
4006 if (XOR (islower (i), ISLOWER (i))
4007 || toupper (i) != TOUPPER (i))
4008 return 2;
4009 return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_run "$LINENO"; then :
4013
4014else
4015 ac_cv_header_stdc=no
4016fi
4017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4018 conftest.$ac_objext conftest.beam conftest.$ac_ext
6bddc3e8
MF
4019fi
4020
c2783492
MF
4021fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4024$as_echo "$ac_cv_header_stdc" >&6; }
4025if test $ac_cv_header_stdc = yes; then
6bddc3e8 4026
c2783492 4027$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6bddc3e8 4028
c2783492 4029fi
6bddc3e8 4030
c2783492
MF
4031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033 inttypes.h stdint.h unistd.h
4034do :
4035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4037"
4038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4039 cat >>confdefs.h <<_ACEOF
4040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041_ACEOF
4042
4043fi
4044
4045done
4046
4047
4048
4049 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4050if test "x$ac_cv_header_minix_config_h" = xyes; then :
4051 MINIX=yes
fdd6fa61 4052else
c2783492
MF
4053 MINIX=
4054fi
4055
4056
4057 if test "$MINIX" = yes; then
4058
4059$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4060
4061
4062$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4063
4064
4065$as_echo "#define _MINIX 1" >>confdefs.h
6bddc3e8 4066
6bddc3e8 4067 fi
6bddc3e8 4068
6bddc3e8 4069
c2783492
MF
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4071$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4072if ${ac_cv_safe_to_define___extensions__+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h. */
c906108c 4077
c2783492
MF
4078# define __EXTENSIONS__ 1
4079 $ac_includes_default
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_safe_to_define___extensions__=yes
6bddc3e8 4090else
c2783492
MF
4091 ac_cv_safe_to_define___extensions__=no
4092fi
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4094fi
c2783492
MF
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4096$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4097 test $ac_cv_safe_to_define___extensions__ = yes &&
4098 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6bddc3e8 4099
c2783492 4100 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c906108c 4101
c2783492 4102 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c906108c 4103
c2783492 4104 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c906108c 4105
c2783492 4106 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c906108c 4107
c2783492
MF
4108
4109test "$program_prefix" != NONE &&
4110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4111# Use a double $ so make ignores it.
4112test "$program_suffix" != NONE &&
4113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4114# Double any \ or $.
4115# By default was `s,x,x', remove it if useless.
4116ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4117program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4118
4119# Find a good install program. We prefer a C program (faster),
4120# so one script is as good as another. But avoid the broken or
4121# incompatible versions:
4122# SysV /etc/install, /usr/sbin/install
4123# SunOS /usr/etc/install
4124# IRIX /sbin/install
4125# AIX /bin/install
4126# AmigaOS /C/install, which installs bootblocks on floppy discs
4127# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4128# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4129# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4130# OS/2's system install, which has a completely different semantic
4131# ./install, which can be erroneously created by make from ./install.sh.
4132# Reject install programs that cannot install multiple files.
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4134$as_echo_n "checking for a BSD-compatible install... " >&6; }
4135if test -z "$INSTALL"; then
4136if ${ac_cv_path_install+:} false; then :
81ecdfbb 4137 $as_echo_n "(cached) " >&6
c906108c 4138else
c2783492 4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b7026657
AC
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
c2783492
MF
4144 # Account for people who put trailing slashes in PATH elements.
4145case $as_dir/ in #((
4146 ./ | .// | /[cC]/* | \
4147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4149 /usr/ucb/* ) ;;
4150 *)
4151 # OSF1 and SCO ODT 3.0 have their own names for install.
4152 # Don't use installbsd from OSF since it installs stuff as root
4153 # by default.
4154 for ac_prog in ginstall scoinst install; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4157 if test $ac_prog = install &&
4158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4159 # AIX install. It has an incompatible calling convention.
4160 :
4161 elif test $ac_prog = install &&
4162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4163 # program-specific install script used by HP pwplus--don't use.
4164 :
4165 else
4166 rm -rf conftest.one conftest.two conftest.dir
4167 echo one > conftest.one
4168 echo two > conftest.two
4169 mkdir conftest.dir
4170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4171 test -s conftest.one && test -s conftest.two &&
4172 test -s conftest.dir/conftest.one &&
4173 test -s conftest.dir/conftest.two
4174 then
4175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4176 break 3
4177 fi
4178 fi
4179 fi
4180 done
4181 done
4182 ;;
4183esac
4184
81ecdfbb
RW
4185 done
4186IFS=$as_save_IFS
b7026657 4187
c2783492
MF
4188rm -rf conftest.one conftest.two conftest.dir
4189
c906108c 4190fi
c2783492
MF
4191 if test "${ac_cv_path_install+set}" = set; then
4192 INSTALL=$ac_cv_path_install
4193 else
4194 # As a last resort, use the slow shell script. Don't cache a
4195 # value for INSTALL within a source directory, because that will
4196 # break other packages using the cache if that directory is
4197 # removed, or if the value is a relative name.
4198 INSTALL=$ac_install_sh
4199 fi
c906108c 4200fi
c2783492
MF
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4202$as_echo "$INSTALL" >&6; }
b7026657 4203
c2783492
MF
4204# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4205# It thinks the first close brace ends the variable substitution.
4206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
81ecdfbb 4207
c2783492
MF
4208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4209
4210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4211
4212
4213
4214
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4217$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4218if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb 4219 $as_echo_n "(cached) " >&6
b7026657 4220else
c2783492
MF
4221 ac_cv_c_bigendian=unknown
4222 # See if we're dealing with a universal compiler.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225#ifndef __APPLE_CC__
4226 not a universal capable compiler
4227 #endif
4228 typedef int dummy;
c906108c 4229
c2783492
MF
4230_ACEOF
4231if ac_fn_c_try_compile "$LINENO"; then :
4232
4233 # Check for potential -arch flags. It is not universal unless
4234 # there are at least two -arch flags with different values.
4235 ac_arch=
4236 ac_prev=
4237 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4238 if test -n "$ac_prev"; then
4239 case $ac_word in
4240 i?86 | x86_64 | ppc | ppc64)
4241 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4242 ac_arch=$ac_word
4243 else
4244 ac_cv_c_bigendian=universal
4245 break
4246 fi
4247 ;;
4248 esac
4249 ac_prev=
4250 elif test "x$ac_word" = "x-arch"; then
4251 ac_prev=arch
4252 fi
4253 done
b7026657 4254fi
c2783492
MF
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 if test $ac_cv_c_bigendian = unknown; then
4257 # See if sys/param.h defines the BYTE_ORDER macro.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h. */
4260#include <sys/types.h>
4261 #include <sys/param.h>
c906108c 4262
c2783492
MF
4263int
4264main ()
4265{
4266#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4267 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4268 && LITTLE_ENDIAN)
4269 bogus endian macros
4270 #endif
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276if ac_fn_c_try_compile "$LINENO"; then :
4277 # It does; now see whether it defined to BIG_ENDIAN or not.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */
4280#include <sys/types.h>
4281 #include <sys/param.h>
4282
4283int
4284main ()
4285{
4286#if BYTE_ORDER != BIG_ENDIAN
4287 not big endian
4288 #endif
4289
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_c_bigendian=yes
b7026657 4296else
c2783492
MF
4297 ac_cv_c_bigendian=no
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4300fi
c2783492
MF
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 if test $ac_cv_c_bigendian = unknown; then
4304 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h. */
4307#include <limits.h>
c906108c 4308
c2783492
MF
4309int
4310main ()
4311{
4312#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4313 bogus endian macros
4314 #endif
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320if ac_fn_c_try_compile "$LINENO"; then :
4321 # It does; now see whether it defined to _BIG_ENDIAN or not.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h. */
4324#include <limits.h>
4325
4326int
4327main ()
4328{
4329#ifndef _BIG_ENDIAN
4330 not big endian
4331 #endif
b7026657 4332
c2783492
MF
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337if ac_fn_c_try_compile "$LINENO"; then :
4338 ac_cv_c_bigendian=yes
c906108c 4339else
c2783492 4340 ac_cv_c_bigendian=no
c906108c 4341fi
c2783492
MF
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343fi
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 if test $ac_cv_c_bigendian = unknown; then
4347 # Compile a test program.
4348 if test "$cross_compiling" = yes; then :
4349 # Try to guess by grepping values from an object file.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h. */
4352short int ascii_mm[] =
4353 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4354 short int ascii_ii[] =
4355 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4356 int use_ascii (int i) {
4357 return ascii_mm[i] + ascii_ii[i];
4358 }
4359 short int ebcdic_ii[] =
4360 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4361 short int ebcdic_mm[] =
4362 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4363 int use_ebcdic (int i) {
4364 return ebcdic_mm[i] + ebcdic_ii[i];
4365 }
4366 extern int foo;
c906108c 4367
c2783492
MF
4368int
4369main ()
4370{
4371return use_ascii (foo) == use_ebcdic (foo);
4372 ;
4373 return 0;
4374}
4375_ACEOF
4376if ac_fn_c_try_compile "$LINENO"; then :
4377 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4378 ac_cv_c_bigendian=yes
4379 fi
4380 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4381 if test "$ac_cv_c_bigendian" = unknown; then
4382 ac_cv_c_bigendian=no
4383 else
4384 # finding both strings is unlikely to happen, but who knows?
4385 ac_cv_c_bigendian=unknown
4386 fi
4387 fi
b7026657 4388fi
c2783492 4389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4390else
c2783492
MF
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
4393$ac_includes_default
4394int
4395main ()
4396{
4397
4398 /* Are we little or big endian? From Harbison&Steele. */
4399 union
4400 {
4401 long int l;
4402 char c[sizeof (long int)];
4403 } u;
4404 u.l = 1;
4405 return u.c[sizeof (long int) - 1] == 1;
b7026657 4406
c2783492
MF
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_run "$LINENO"; then :
4412 ac_cv_c_bigendian=no
4413else
4414 ac_cv_c_bigendian=yes
c906108c 4415fi
c2783492
MF
4416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4417 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4418fi
c2783492
MF
4419
4420 fi
c906108c 4421fi
c2783492
MF
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4423$as_echo "$ac_cv_c_bigendian" >&6; }
4424 case $ac_cv_c_bigendian in #(
4425 yes)
4426 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4427;; #(
4428 no)
4429 ;; #(
4430 universal)
c906108c 4431
c2783492
MF
4432$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4433
4434 ;; #(
4435 *)
4436 as_fn_error $? "unknown endianness
4437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4438 esac
4439
4440
4441
4442
a979f2a0
MF
4443if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4445set dummy ${ac_tool_prefix}dtc; ac_word=$2
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447$as_echo_n "checking for $ac_word... " >&6; }
4448if ${ac_cv_prog_DTC+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 if test -n "$DTC"; then
4452 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465done
4466 done
4467IFS=$as_save_IFS
4468
4469fi
4470fi
4471DTC=$ac_cv_prog_DTC
4472if test -n "$DTC"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4474$as_echo "$DTC" >&6; }
4475else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$ac_cv_prog_DTC"; then
4483 ac_ct_DTC=$DTC
4484 # Extract the first word of "dtc", so it can be a program name with args.
4485set dummy dtc; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -n "$ac_ct_DTC"; then
4492 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_DTC="dtc"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506 done
4507IFS=$as_save_IFS
4508
4509fi
4510fi
4511ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4512if test -n "$ac_ct_DTC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4514$as_echo "$ac_ct_DTC" >&6; }
4515else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518fi
4519
4520 if test "x$ac_ct_DTC" = x; then
4521 DTC=""
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524yes:)
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527ac_tool_warned=yes ;;
4528esac
4529 DTC=$ac_ct_DTC
4530 fi
4531else
4532 DTC="$ac_cv_prog_DTC"
4533fi
4534
4535
c2783492 4536if test "x$cross_compiling" = "xno"; then
aa0fca16 4537 : "${AR_FOR_BUILD:=\$(AR)}"
c2783492 4538 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 4539 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c2783492
MF
4540 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4541 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c906108c 4542else
aa0fca16 4543 : "${AR_FOR_BUILD:=ar}"
c2783492 4544 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 4545 : "${RANLIB_FOR_BUILD:=ranlib}"
c2783492
MF
4546 : "${CFLAGS_FOR_BUILD:=-g -O}"
4547 : "${LDLFAGS_FOR_BUILD:=}"
c906108c
SS
4548fi
4549
4550
c906108c 4551
c2783492
MF
4552
4553
aa0fca16
MF
4554
4555
b7026657 4556if test -n "$ac_tool_prefix"; then
c2783492
MF
4557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4558set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4561if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4562 $as_echo_n "(cached) " >&6
c906108c 4563else
c2783492
MF
4564 if test -n "$AR"; then
4565 ac_cv_prog_AR="$AR" # Let the user override the test.
c906108c 4566else
b7026657
AC
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
81ecdfbb 4572 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4574 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4576 break 2
4577 fi
4578done
81ecdfbb
RW
4579 done
4580IFS=$as_save_IFS
b7026657
AC
4581
4582fi
4583fi
c2783492
MF
4584AR=$ac_cv_prog_AR
4585if test -n "$AR"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4587$as_echo "$AR" >&6; }
b7026657 4588else
81ecdfbb
RW
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
b7026657
AC
4591fi
4592
81ecdfbb 4593
b7026657 4594fi
c2783492
MF
4595if test -z "$ac_cv_prog_AR"; then
4596 ac_ct_AR=$AR
4597 # Extract the first word of "ar", so it can be a program name with args.
4598set dummy ar; ac_word=$2
81ecdfbb
RW
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4601if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4602 $as_echo_n "(cached) " >&6
b7026657 4603else
c2783492
MF
4604 if test -n "$ac_ct_AR"; then
4605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b7026657
AC
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
81ecdfbb 4612 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4614 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4616 break 2
4617 fi
4618done
81ecdfbb
RW
4619 done
4620IFS=$as_save_IFS
b7026657
AC
4621
4622fi
4623fi
c2783492
MF
4624ac_ct_AR=$ac_cv_prog_ac_ct_AR
4625if test -n "$ac_ct_AR"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4627$as_echo "$ac_ct_AR" >&6; }
b7026657 4628else
81ecdfbb
RW
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
c906108c 4631fi
b7026657 4632
c2783492
MF
4633 if test "x$ac_ct_AR" = x; then
4634 AR=""
81ecdfbb
RW
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637yes:)
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
c2783492 4642 AR=$ac_ct_AR
c906108c 4643 fi
c906108c 4644else
c2783492 4645 AR="$ac_cv_prog_AR"
c906108c
SS
4646fi
4647
c2783492
MF
4648if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4653if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4654 $as_echo_n "(cached) " >&6
c906108c 4655else
c2783492
MF
4656 if test -n "$RANLIB"; then
4657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 4658else
b7026657
AC
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
81ecdfbb 4664 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4668 break 2
4669 fi
4670done
81ecdfbb
RW
4671 done
4672IFS=$as_save_IFS
b7026657 4673
c906108c
SS
4674fi
4675fi
c2783492
MF
4676RANLIB=$ac_cv_prog_RANLIB
4677if test -n "$RANLIB"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4679$as_echo "$RANLIB" >&6; }
c906108c 4680else
81ecdfbb
RW
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
c906108c
SS
4683fi
4684
81ecdfbb 4685
b7026657 4686fi
c2783492
MF
4687if test -z "$ac_cv_prog_RANLIB"; then
4688 ac_ct_RANLIB=$RANLIB
4689 # Extract the first word of "ranlib", so it can be a program name with args.
4690set dummy ranlib; ac_word=$2
81ecdfbb
RW
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692$as_echo_n "checking for $ac_word... " >&6; }
c2783492 4693if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4694 $as_echo_n "(cached) " >&6
c906108c 4695else
c2783492
MF
4696 if test -n "$ac_ct_RANLIB"; then
4697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b7026657
AC
4698else
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
81ecdfbb 4704 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c2783492 4706 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b7026657
AC
4708 break 2
4709 fi
4710done
81ecdfbb
RW
4711 done
4712IFS=$as_save_IFS
b7026657 4713
c906108c 4714fi
b7026657 4715fi
c2783492
MF
4716ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4717if test -n "$ac_ct_RANLIB"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4719$as_echo "$ac_ct_RANLIB" >&6; }
c906108c 4720else
81ecdfbb
RW
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722$as_echo "no" >&6; }
c906108c 4723fi
b7026657 4724
c2783492
MF
4725 if test "x$ac_ct_RANLIB" = x; then
4726 RANLIB=":"
81ecdfbb
RW
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729yes:)
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732ac_tool_warned=yes ;;
4733esac
c2783492 4734 RANLIB=$ac_ct_RANLIB
81ecdfbb 4735 fi
c2783492
MF
4736else
4737 RANLIB="$ac_cv_prog_RANLIB"
4738fi
4739
4740
d57b6533
MF
4741
4742
4743
4744
4745
4746
4747if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4750set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_path_PKG_CONFIG+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755else
4756 case $PKG_CONFIG in
4757 [\\/]* | ?:[\\/]*)
4758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4759 ;;
4760 *)
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773 done
4774IFS=$as_save_IFS
4775
4776 ;;
4777esac
4778fi
4779PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4780if test -n "$PKG_CONFIG"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4782$as_echo "$PKG_CONFIG" >&6; }
4783else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787
4788
4789fi
4790if test -z "$ac_cv_path_PKG_CONFIG"; then
4791 ac_pt_PKG_CONFIG=$PKG_CONFIG
4792 # Extract the first word of "pkg-config", so it can be a program name with args.
4793set dummy pkg-config; ac_word=$2
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798else
4799 case $ac_pt_PKG_CONFIG in
4800 [\\/]* | ?:[\\/]*)
4801 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4802 ;;
4803 *)
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819 ;;
4820esac
4821fi
4822ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4823if test -n "$ac_pt_PKG_CONFIG"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4825$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4826else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828$as_echo "no" >&6; }
4829fi
4830
4831 if test "x$ac_pt_PKG_CONFIG" = x; then
4832 PKG_CONFIG=""
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835yes:)
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838ac_tool_warned=yes ;;
4839esac
4840 PKG_CONFIG=$ac_pt_PKG_CONFIG
4841 fi
4842else
4843 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4844fi
4845
4846fi
4847if test -n "$PKG_CONFIG"; then
4848 _pkg_min_version=0.9.0
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4850$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4851 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853$as_echo "yes" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
4857 PKG_CONFIG=""
4858 fi
4859fi
4860
c2783492
MF
4861# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4862# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4863# is C99. So handle it ourselves.
4864:
4865C_DIALECT=
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4867$as_echo_n "checking whether C11 is supported by default... " >&6; }
4868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h. */
4870
4871#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4872# error "C11 support not found"
4873#endif
4874
4875_ACEOF
4876if ac_fn_c_try_compile "$LINENO"; then :
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878$as_echo "yes" >&6; }
4879else
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4884$as_echo_n "checking for -std=c11 support... " >&6; }
4885 ac_save_CC="$CC"
4886 CC="$CC -std=c11"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h. */
4889
4890#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4891# error "C11 support not found"
4892#endif
4893
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898$as_echo "yes" >&6; }
4899 CC="$ac_save_CC"
4900 C_DIALECT="-std=c11"
4901
4902else
4903 as_fn_error $? "C11 is required" "$LINENO" 5
4904fi
4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908
4909
4910
4911
c906108c 4912
b15c5d7a
MF
4913 for ac_header in $ac_header_list
4914do :
4915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4917"
4918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4919 cat >>confdefs.h <<_ACEOF
4920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921_ACEOF
4922
b7026657
AC
4923fi
4924
b15c5d7a 4925done
b7026657 4926
b7026657 4927
c2783492 4928
c2783492 4929
c2783492 4930
c2783492 4931
c2783492 4932
b15c5d7a
MF
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
a48ff3ef
MF
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
b15c5d7a
MF
4967
4968
4969
4970
4971
4972
4973
4974
b15c5d7a
MF
4975
4976
4977
4978 for ac_func in $ac_func_list
4979do :
4980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4981ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4982if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4985_ACEOF
4986
4987fi
4988done
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
a48ff3ef
MF
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5113$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5114if ${ac_cv_struct_tm+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h. */
5119#include <sys/types.h>
5120#include <time.h>
5121
5122int
5123main ()
5124{
5125struct tm tm;
5126 int *p = &tm.tm_sec;
5127 return !p;
5128 ;
5129 return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_struct_tm=time.h
5134else
5135 ac_cv_struct_tm=sys/time.h
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5140$as_echo "$ac_cv_struct_tm" >&6; }
5141if test $ac_cv_struct_tm = sys/time.h; then
5142
5143$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5144
5145fi
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5148$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5149if ${ac_cv_type_uid_t+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#include <sys/types.h>
5155
5156_ACEOF
5157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "uid_t" >/dev/null 2>&1; then :
5159 ac_cv_type_uid_t=yes
5160else
5161 ac_cv_type_uid_t=no
5162fi
5163rm -f conftest*
5164
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5167$as_echo "$ac_cv_type_uid_t" >&6; }
5168if test $ac_cv_type_uid_t = no; then
5169
5170$as_echo "#define uid_t int" >>confdefs.h
5171
5172
5173$as_echo "#define gid_t int" >>confdefs.h
5174
5175fi
5176
b5689863
MF
5177case `pwd` in
5178 *\ * | *\ *)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5180$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5181esac
a48ff3ef 5182
a48ff3ef 5183
a48ff3ef 5184
b5689863
MF
5185macro_version='2.2.7a'
5186macro_revision='1.3134'
a48ff3ef 5187
a48ff3ef 5188
a48ff3ef 5189
a48ff3ef 5190
a48ff3ef 5191
a48ff3ef 5192
a48ff3ef 5193
a48ff3ef 5194
a48ff3ef 5195
a48ff3ef
MF
5196
5197
5198
5199
b5689863 5200ltmain="$ac_aux_dir/ltmain.sh"
a48ff3ef 5201
b5689863
MF
5202# Backslashify metacharacters that are still active within
5203# double-quoted strings.
5204sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a48ff3ef 5205
b5689863
MF
5206# Same as above, but do not quote variable references.
5207double_quote_subst='s/\(["`\\]\)/\\\1/g'
a48ff3ef 5208
b5689863
MF
5209# Sed substitution to delay expansion of an escaped shell variable in a
5210# double_quote_subst'ed string.
5211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5212
5213# Sed substitution to delay expansion of an escaped single quote.
5214delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5215
5216# Sed substitution to avoid accidental globbing in evaled expressions
5217no_glob_subst='s/\*/\\\*/g'
5218
5219ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5220ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5221ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
a48ff3ef 5222
b5689863
MF
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5224$as_echo_n "checking how to print strings... " >&6; }
5225# Test print first, because it will be a builtin if present.
5226if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5227 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5228 ECHO='print -r --'
5229elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5230 ECHO='printf %s\n'
5231else
5232 # Use this function as a fallback that always works.
5233 func_fallback_echo ()
5234 {
5235 eval 'cat <<_LTECHO_EOF
5236$1
5237_LTECHO_EOF'
5238 }
5239 ECHO='func_fallback_echo'
a48ff3ef
MF
5240fi
5241
b5689863
MF
5242# func_echo_all arg...
5243# Invoke $ECHO with all args, space-separated.
5244func_echo_all ()
5245{
5246 $ECHO ""
5247}
5248
5249case "$ECHO" in
5250 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5251$as_echo "printf" >&6; } ;;
5252 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5253$as_echo "print -r" >&6; } ;;
5254 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5255$as_echo "cat" >&6; } ;;
5256esac
5257
5258
a48ff3ef 5259
a48ff3ef 5260
a48ff3ef
MF
5261
5262
a48ff3ef 5263
a48ff3ef 5264
a48ff3ef
MF
5265
5266
a48ff3ef 5267
a48ff3ef
MF
5268
5269
a48ff3ef 5270
b5689863
MF
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5272$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5273if ${ac_cv_path_SED+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275else
5276 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5277 for ac_i in 1 2 3 4 5 6 7; do
5278 ac_script="$ac_script$as_nl$ac_script"
5279 done
5280 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5281 { ac_script=; unset ac_script;}
5282 if test -z "$SED"; then
5283 ac_path_SED_found=false
5284 # Loop through the user's path and test for each of PROGNAME-LIST
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_prog in sed gsed; do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5293 as_fn_executable_p "$ac_path_SED" || continue
5294# Check for GNU ac_path_SED and select it if it is found.
5295 # Check for GNU $ac_path_SED
5296case `"$ac_path_SED" --version 2>&1` in
5297*GNU*)
5298 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5299*)
5300 ac_count=0
5301 $as_echo_n 0123456789 >"conftest.in"
5302 while :
5303 do
5304 cat "conftest.in" "conftest.in" >"conftest.tmp"
5305 mv "conftest.tmp" "conftest.in"
5306 cp "conftest.in" "conftest.nl"
5307 $as_echo '' >> "conftest.nl"
5308 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310 as_fn_arith $ac_count + 1 && ac_count=$as_val
5311 if test $ac_count -gt ${ac_path_SED_max-0}; then
5312 # Best one so far, save it but keep looking for a better one
5313 ac_cv_path_SED="$ac_path_SED"
5314 ac_path_SED_max=$ac_count
5315 fi
5316 # 10*(2^10) chars as input seems more than enough
5317 test $ac_count -gt 10 && break
5318 done
5319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320esac
5321
5322 $ac_path_SED_found && break 3
5323 done
5324 done
5325 done
5326IFS=$as_save_IFS
5327 if test -z "$ac_cv_path_SED"; then
5328 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5329 fi
5330else
5331 ac_cv_path_SED=$SED
a48ff3ef
MF
5332fi
5333
b5689863
MF
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5336$as_echo "$ac_cv_path_SED" >&6; }
5337 SED="$ac_cv_path_SED"
5338 rm -f conftest.sed
a48ff3ef 5339
b5689863
MF
5340test -z "$SED" && SED=sed
5341Xsed="$SED -e 1s/^X//"
a48ff3ef 5342
a48ff3ef 5343
a48ff3ef
MF
5344
5345
a48ff3ef 5346
a48ff3ef 5347
a48ff3ef 5348
a48ff3ef 5349
a48ff3ef 5350
b5689863
MF
5351
5352
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5354$as_echo_n "checking for fgrep... " >&6; }
5355if ${ac_cv_path_FGREP+:} false; then :
a48ff3ef
MF
5356 $as_echo_n "(cached) " >&6
5357else
b5689863
MF
5358 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5359 then ac_cv_path_FGREP="$GREP -F"
5360 else
5361 if test -z "$FGREP"; then
5362 ac_path_FGREP_found=false
5363 # Loop through the user's path and test for each of PROGNAME-LIST
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_prog in fgrep; do
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5372 as_fn_executable_p "$ac_path_FGREP" || continue
5373# Check for GNU ac_path_FGREP and select it if it is found.
5374 # Check for GNU $ac_path_FGREP
5375case `"$ac_path_FGREP" --version 2>&1` in
5376*GNU*)
5377 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5378*)
5379 ac_count=0
5380 $as_echo_n 0123456789 >"conftest.in"
5381 while :
5382 do
5383 cat "conftest.in" "conftest.in" >"conftest.tmp"
5384 mv "conftest.tmp" "conftest.in"
5385 cp "conftest.in" "conftest.nl"
5386 $as_echo 'FGREP' >> "conftest.nl"
5387 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389 as_fn_arith $ac_count + 1 && ac_count=$as_val
5390 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5391 # Best one so far, save it but keep looking for a better one
5392 ac_cv_path_FGREP="$ac_path_FGREP"
5393 ac_path_FGREP_max=$ac_count
5394 fi
5395 # 10*(2^10) chars as input seems more than enough
5396 test $ac_count -gt 10 && break
5397 done
5398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399esac
5400
5401 $ac_path_FGREP_found && break 3
5402 done
5403 done
5404 done
5405IFS=$as_save_IFS
5406 if test -z "$ac_cv_path_FGREP"; then
5407 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408 fi
5409else
5410 ac_cv_path_FGREP=$FGREP
5411fi
5412
5413 fi
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5416$as_echo "$ac_cv_path_FGREP" >&6; }
5417 FGREP="$ac_cv_path_FGREP"
5418
5419
5420test -z "$GREP" && GREP=grep
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440# Check whether --with-gnu-ld was given.
5441if test "${with_gnu_ld+set}" = set; then :
5442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5443else
5444 with_gnu_ld=no
5445fi
5446
5447ac_prog=ld
5448if test "$GCC" = yes; then
5449 # Check if gcc -print-prog-name=ld gives a path.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5451$as_echo_n "checking for ld used by $CC... " >&6; }
5452 case $host in
5453 *-*-mingw*)
5454 # gcc leaves a trailing carriage return which upsets mingw
5455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5456 *)
5457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5458 esac
5459 case $ac_prog in
5460 # Accept absolute paths.
5461 [\\/]* | ?:[\\/]*)
5462 re_direlt='/[^/][^/]*/\.\./'
5463 # Canonicalize the pathname of ld
5464 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5465 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5466 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5467 done
5468 test -z "$LD" && LD="$ac_prog"
5469 ;;
5470 "")
5471 # If it fails, then pretend we aren't using GCC.
5472 ac_prog=ld
5473 ;;
5474 *)
5475 # If it is relative, then search for the first ld in PATH.
5476 with_gnu_ld=unknown
5477 ;;
5478 esac
5479elif test "$with_gnu_ld" = yes; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5481$as_echo_n "checking for GNU ld... " >&6; }
5482else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5484$as_echo_n "checking for non-GNU ld... " >&6; }
5485fi
5486if ${lt_cv_path_LD+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488else
5489 if test -z "$LD"; then
5490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5491 for ac_dir in $PATH; do
5492 IFS="$lt_save_ifs"
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5495 lt_cv_path_LD="$ac_dir/$ac_prog"
5496 # Check to see if the program is GNU ld. I'd rather use --version,
5497 # but apparently some variants of GNU ld only accept -v.
5498 # Break only if it was the GNU/non-GNU ld that we prefer.
5499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5500 *GNU* | *'with BFD'*)
5501 test "$with_gnu_ld" != no && break
5502 ;;
5503 *)
5504 test "$with_gnu_ld" != yes && break
5505 ;;
5506 esac
5507 fi
5508 done
5509 IFS="$lt_save_ifs"
5510else
5511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5512fi
5513fi
5514
5515LD="$lt_cv_path_LD"
5516if test -n "$LD"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5518$as_echo "$LD" >&6; }
5519else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5525$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5526if ${lt_cv_prog_gnu_ld+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528else
5529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5530case `$LD -v 2>&1 </dev/null` in
5531*GNU* | *'with BFD'*)
5532 lt_cv_prog_gnu_ld=yes
5533 ;;
5534*)
5535 lt_cv_prog_gnu_ld=no
5536 ;;
5537esac
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5540$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5541with_gnu_ld=$lt_cv_prog_gnu_ld
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5552$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5553if ${lt_cv_path_NM+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555else
5556 if test -n "$NM"; then
5557 # Let the user override the test.
5558 lt_cv_path_NM="$NM"
5559else
5560 lt_nm_to_check="${ac_tool_prefix}nm"
5561 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5562 lt_nm_to_check="$lt_nm_to_check nm"
5563 fi
5564 for lt_tmp_nm in $lt_nm_to_check; do
5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5567 IFS="$lt_save_ifs"
5568 test -z "$ac_dir" && ac_dir=.
5569 tmp_nm="$ac_dir/$lt_tmp_nm"
5570 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5571 # Check to see if the nm accepts a BSD-compat flag.
5572 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5573 # nm: unknown option "B" ignored
5574 # Tru64's nm complains that /dev/null is an invalid object file
5575 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5576 */dev/null* | *'Invalid file or object type'*)
5577 lt_cv_path_NM="$tmp_nm -B"
5578 break
5579 ;;
5580 *)
5581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5582 */dev/null*)
5583 lt_cv_path_NM="$tmp_nm -p"
5584 break
5585 ;;
5586 *)
5587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5588 continue # so that we can try to find one that supports BSD flags
5589 ;;
5590 esac
5591 ;;
5592 esac
5593 fi
5594 done
5595 IFS="$lt_save_ifs"
5596 done
5597 : ${lt_cv_path_NM=no}
5598fi
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5601$as_echo "$lt_cv_path_NM" >&6; }
5602if test "$lt_cv_path_NM" != "no"; then
5603 NM="$lt_cv_path_NM"
5604else
5605 # Didn't find any BSD compatible name lister, look for dumpbin.
5606 if test -n "$DUMPBIN"; then :
5607 # Let the user override the test.
5608 else
5609 if test -n "$ac_tool_prefix"; then
5610 for ac_prog in dumpbin "link -dump"
5611 do
5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615$as_echo_n "checking for $ac_word... " >&6; }
5616if ${ac_cv_prog_DUMPBIN+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618else
5619 if test -n "$DUMPBIN"; then
5620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5621else
5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623for as_dir in $PATH
5624do
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5632 fi
5633done
5634 done
5635IFS=$as_save_IFS
5636
5637fi
5638fi
5639DUMPBIN=$ac_cv_prog_DUMPBIN
5640if test -n "$DUMPBIN"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5642$as_echo "$DUMPBIN" >&6; }
5643else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }
5646fi
5647
5648
5649 test -n "$DUMPBIN" && break
5650 done
5651fi
5652if test -z "$DUMPBIN"; then
5653 ac_ct_DUMPBIN=$DUMPBIN
5654 for ac_prog in dumpbin "link -dump"
5655do
5656 # Extract the first word of "$ac_prog", so it can be a program name with args.
5657set dummy $ac_prog; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662else
5663 if test -n "$ac_ct_DUMPBIN"; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678 done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5684if test -n "$ac_ct_DUMPBIN"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5686$as_echo "$ac_ct_DUMPBIN" >&6; }
5687else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692
5693 test -n "$ac_ct_DUMPBIN" && break
5694done
5695
5696 if test "x$ac_ct_DUMPBIN" = x; then
5697 DUMPBIN=":"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700yes:)
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703ac_tool_warned=yes ;;
5704esac
5705 DUMPBIN=$ac_ct_DUMPBIN
5706 fi
5707fi
5708
5709 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5710 *COFF*)
5711 DUMPBIN="$DUMPBIN -symbols"
5712 ;;
5713 *)
5714 DUMPBIN=:
5715 ;;
5716 esac
5717 fi
5718
5719 if test "$DUMPBIN" != ":"; then
5720 NM="$DUMPBIN"
5721 fi
5722fi
5723test -z "$NM" && NM=nm
5724
5725
5726
5727
5728
5729
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5731$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5732if ${lt_cv_nm_interface+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 lt_cv_nm_interface="BSD nm"
5736 echo "int some_variable = 0;" > conftest.$ac_ext
5737 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5738 (eval "$ac_compile" 2>conftest.err)
5739 cat conftest.err >&5
5740 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5741 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5742 cat conftest.err >&5
5743 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5744 cat conftest.out >&5
5745 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5746 lt_cv_nm_interface="MS dumpbin"
5747 fi
5748 rm -f conftest*
5749fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5751$as_echo "$lt_cv_nm_interface" >&6; }
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5754$as_echo_n "checking whether ln -s works... " >&6; }
5755LN_S=$as_ln_s
5756if test "$LN_S" = "ln -s"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758$as_echo "yes" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5761$as_echo "no, using $LN_S" >&6; }
5762fi
5763
5764# find the maximum length of command line arguments
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5766$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5767if ${lt_cv_sys_max_cmd_len+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769else
5770 i=0
5771 teststring="ABCD"
5772
5773 case $build_os in
5774 msdosdjgpp*)
5775 # On DJGPP, this test can blow up pretty badly due to problems in libc
5776 # (any single argument exceeding 2000 bytes causes a buffer overrun
5777 # during glob expansion). Even if it were fixed, the result of this
5778 # check would be larger than it should be.
5779 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5780 ;;
5781
5782 gnu*)
5783 # Under GNU Hurd, this test is not required because there is
5784 # no limit to the length of command line arguments.
5785 # Libtool will interpret -1 as no limit whatsoever
5786 lt_cv_sys_max_cmd_len=-1;
5787 ;;
5788
5789 cygwin* | mingw* | cegcc*)
5790 # On Win9x/ME, this test blows up -- it succeeds, but takes
5791 # about 5 minutes as the teststring grows exponentially.
5792 # Worse, since 9x/ME are not pre-emptively multitasking,
5793 # you end up with a "frozen" computer, even though with patience
5794 # the test eventually succeeds (with a max line length of 256k).
5795 # Instead, let's just punt: use the minimum linelength reported by
5796 # all of the supported platforms: 8192 (on NT/2K/XP).
5797 lt_cv_sys_max_cmd_len=8192;
5798 ;;
5799
5800 mint*)
5801 # On MiNT this can take a long time and run out of memory.
5802 lt_cv_sys_max_cmd_len=8192;
5803 ;;
5804
5805 amigaos*)
5806 # On AmigaOS with pdksh, this test takes hours, literally.
5807 # So we just punt and use a minimum line length of 8192.
5808 lt_cv_sys_max_cmd_len=8192;
5809 ;;
5810
5811 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5812 # This has been around since 386BSD, at least. Likely further.
5813 if test -x /sbin/sysctl; then
5814 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5815 elif test -x /usr/sbin/sysctl; then
5816 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5817 else
5818 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5819 fi
5820 # And add a safety zone
5821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5823 ;;
5824
5825 interix*)
5826 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5827 lt_cv_sys_max_cmd_len=196608
5828 ;;
5829
5830 osf*)
5831 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5832 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5833 # nice to cause kernel panics so lets avoid the loop below.
5834 # First set a reasonable default.
5835 lt_cv_sys_max_cmd_len=16384
5836 #
5837 if test -x /sbin/sysconfig; then
5838 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5839 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5840 esac
5841 fi
5842 ;;
5843 sco3.2v5*)
5844 lt_cv_sys_max_cmd_len=102400
5845 ;;
5846 sysv5* | sco5v6* | sysv4.2uw2*)
5847 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5848 if test -n "$kargmax"; then
5849 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5850 else
5851 lt_cv_sys_max_cmd_len=32768
5852 fi
5853 ;;
5854 *)
5855 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5856 if test -n "$lt_cv_sys_max_cmd_len"; then
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5859 else
5860 # Make teststring a little bigger before we do anything with it.
5861 # a 1K string should be a reasonable start.
5862 for i in 1 2 3 4 5 6 7 8 ; do
5863 teststring=$teststring$teststring
5864 done
5865 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5866 # If test is not a shell built-in, we'll probably end up computing a
5867 # maximum length that is only half of the actual maximum length, but
5868 # we can't tell.
5869 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5870 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5871 test $i != 17 # 1/2 MB should be enough
5872 do
5873 i=`expr $i + 1`
5874 teststring=$teststring$teststring
5875 done
5876 # Only check the string length outside the loop.
5877 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5878 teststring=
5879 # Add a significant safety factor because C++ compilers can tack on
5880 # massive amounts of additional arguments before passing them to the
5881 # linker. It appears as though 1/2 is a usable value.
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5883 fi
5884 ;;
5885 esac
5886
5887fi
5888
5889if test -n $lt_cv_sys_max_cmd_len ; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5891$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5892else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5894$as_echo "none" >&6; }
5895fi
5896max_cmd_len=$lt_cv_sys_max_cmd_len
5897
5898
5899
5900
5901
5902
5903: ${CP="cp -f"}
5904: ${MV="mv -f"}
5905: ${RM="rm -f"}
5906
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5908$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5909# Try some XSI features
5910xsi_shell=no
5911( _lt_dummy="a/b/c"
5912 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5913 = c,a/b,, \
5914 && eval 'test $(( 1 + 1 )) -eq 2 \
5915 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5916 && xsi_shell=yes
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5918$as_echo "$xsi_shell" >&6; }
5919
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5922$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5923lt_shell_append=no
5924( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5925 >/dev/null 2>&1 \
5926 && lt_shell_append=yes
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5928$as_echo "$lt_shell_append" >&6; }
5929
5930
5931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5932 lt_unset=unset
5933else
5934 lt_unset=false
5935fi
5936
5937
5938
5939
5940
5941# test EBCDIC or ASCII
5942case `echo X|tr X '\101'` in
5943 A) # ASCII based system
5944 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5945 lt_SP2NL='tr \040 \012'
5946 lt_NL2SP='tr \015\012 \040\040'
5947 ;;
5948 *) # EBCDIC based system
5949 lt_SP2NL='tr \100 \n'
5950 lt_NL2SP='tr \r\n \100\100'
5951 ;;
5952esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5963$as_echo_n "checking for $LD option to reload object files... " >&6; }
5964if ${lt_cv_ld_reload_flag+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966else
5967 lt_cv_ld_reload_flag='-r'
5968fi
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5970$as_echo "$lt_cv_ld_reload_flag" >&6; }
5971reload_flag=$lt_cv_ld_reload_flag
5972case $reload_flag in
5973"" | " "*) ;;
5974*) reload_flag=" $reload_flag" ;;
5975esac
5976reload_cmds='$LD$reload_flag -o $output$reload_objs'
5977case $host_os in
5978 darwin*)
5979 if test "$GCC" = yes; then
5980 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5981 else
5982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5983 fi
5984 ;;
5985esac
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5997set dummy ${ac_tool_prefix}objdump; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if ${ac_cv_prog_OBJDUMP+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002else
6003 if test -n "$OBJDUMP"; then
6004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
6018 done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023OBJDUMP=$ac_cv_prog_OBJDUMP
6024if test -n "$OBJDUMP"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6026$as_echo "$OBJDUMP" >&6; }
6027else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032
6033fi
6034if test -z "$ac_cv_prog_OBJDUMP"; then
6035 ac_ct_OBJDUMP=$OBJDUMP
6036 # Extract the first word of "objdump", so it can be a program name with args.
6037set dummy objdump; ac_word=$2
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
6040if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 if test -n "$ac_ct_OBJDUMP"; then
6044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057done
6058 done
6059IFS=$as_save_IFS
6060
6061fi
6062fi
6063ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6064if test -n "$ac_ct_OBJDUMP"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6066$as_echo "$ac_ct_OBJDUMP" >&6; }
6067else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
6070fi
6071
6072 if test "x$ac_ct_OBJDUMP" = x; then
6073 OBJDUMP="false"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076yes:)
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079ac_tool_warned=yes ;;
6080esac
6081 OBJDUMP=$ac_ct_OBJDUMP
6082 fi
6083else
6084 OBJDUMP="$ac_cv_prog_OBJDUMP"
6085fi
6086
6087test -z "$OBJDUMP" && OBJDUMP=objdump
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6098$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6099if ${lt_cv_deplibs_check_method+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 lt_cv_file_magic_cmd='$MAGIC_CMD'
6103lt_cv_file_magic_test_file=
6104lt_cv_deplibs_check_method='unknown'
6105# Need to set the preceding variable on all platforms that support
6106# interlibrary dependencies.
6107# 'none' -- dependencies not supported.
6108# `unknown' -- same as none, but documents that we really don't know.
6109# 'pass_all' -- all dependencies passed with no checks.
6110# 'test_compile' -- check by making test program.
6111# 'file_magic [[regex]]' -- check by looking for files in library path
6112# which responds to the $file_magic_cmd with a given extended regex.
6113# If you have `file' or equivalent on your system and you're not sure
6114# whether `pass_all' will *always* work, you probably want this one.
6115
6116case $host_os in
6117aix[4-9]*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121beos*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125bsdi[45]*)
6126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6127 lt_cv_file_magic_cmd='/usr/bin/file -L'
6128 lt_cv_file_magic_test_file=/shlib/libc.so
6129 ;;
6130
6131cygwin*)
6132 # func_win32_libid is a shell function defined in ltmain.sh
6133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6134 lt_cv_file_magic_cmd='func_win32_libid'
6135 ;;
6136
6137mingw* | pw32*)
6138 # Base MSYS/MinGW do not provide the 'file' command needed by
6139 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6140 # unless we find 'file', for example because we are cross-compiling.
6141 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6142 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144 lt_cv_file_magic_cmd='func_win32_libid'
6145 else
6146 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6147 lt_cv_file_magic_cmd='$OBJDUMP -f'
6148 fi
6149 ;;
6150
6151cegcc*)
6152 # use the weaker test based on 'objdump'. See mingw*.
6153 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6154 lt_cv_file_magic_cmd='$OBJDUMP -f'
6155 ;;
6156
6157darwin* | rhapsody*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161freebsd* | dragonfly*)
6162 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6163 case $host_cpu in
6164 i*86 )
6165 # Not sure whether the presence of OpenBSD here was a mistake.
6166 # Let's accept both of them until this is cleared up.
6167 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6168 lt_cv_file_magic_cmd=/usr/bin/file
6169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6170 ;;
6171 esac
6172 else
6173 lt_cv_deplibs_check_method=pass_all
6174 fi
6175 ;;
6176
6177gnu*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181haiku*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184
6185hpux10.20* | hpux11*)
6186 lt_cv_file_magic_cmd=/usr/bin/file
6187 case $host_cpu in
6188 ia64*)
6189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6190 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6191 ;;
6192 hppa*64*)
6193 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]'
6194 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6195 ;;
6196 *)
6197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6198 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6199 ;;
6200 esac
6201 ;;
6202
6203interix[3-9]*)
6204 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6206 ;;
6207
6208irix5* | irix6* | nonstopux*)
6209 case $LD in
6210 *-32|*"-32 ") libmagic=32-bit;;
6211 *-n32|*"-n32 ") libmagic=N32;;
6212 *-64|*"-64 ") libmagic=64-bit;;
6213 *) libmagic=never-match;;
6214 esac
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217
6218# This must be Linux ELF.
6219linux* | k*bsd*-gnu | kopensolaris*-gnu)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222
6223netbsd*)
6224 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6226 else
6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6228 fi
6229 ;;
6230
6231newos6*)
6232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6233 lt_cv_file_magic_cmd=/usr/bin/file
6234 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6235 ;;
6236
6237*nto* | *qnx*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241openbsd*)
6242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6244 else
6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246 fi
6247 ;;
6248
6249osf3* | osf4* | osf5*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253rdos*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257solaris*)
6258 lt_cv_deplibs_check_method=pass_all
6259 ;;
6260
6261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264
6265sysv4 | sysv4.3*)
6266 case $host_vendor in
6267 motorola)
6268 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]'
6269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6270 ;;
6271 ncr)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274 sequent)
6275 lt_cv_file_magic_cmd='/bin/file'
6276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6277 ;;
6278 sni)
6279 lt_cv_file_magic_cmd='/bin/file'
6280 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6281 lt_cv_file_magic_test_file=/lib/libc.so
6282 ;;
6283 siemens)
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
6286 pc)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289 esac
6290 ;;
6291
6292tpf*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295esac
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6299$as_echo "$lt_cv_deplibs_check_method" >&6; }
6300file_magic_cmd=$lt_cv_file_magic_cmd
6301deplibs_check_method=$lt_cv_deplibs_check_method
6302test -z "$deplibs_check_method" && deplibs_check_method=unknown
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315plugin_option=
6316plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6317for plugin in $plugin_names; do
6318 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6319 if test x$plugin_so = x$plugin; then
6320 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6321 fi
6322 if test x$plugin_so != x$plugin; then
6323 plugin_option="--plugin $plugin_so"
6324 break
6325 fi
6326done
6327
6328if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330set dummy ${ac_tool_prefix}ar; ac_word=$2
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332$as_echo_n "checking for $ac_word... " >&6; }
6333if ${ac_cv_prog_AR+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335else
6336 if test -n "$AR"; then
6337 ac_cv_prog_AR="$AR" # Let the user override the test.
6338else
6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_AR="${ac_tool_prefix}ar"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350done
6351 done
6352IFS=$as_save_IFS
6353
6354fi
6355fi
6356AR=$ac_cv_prog_AR
6357if test -n "$AR"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6359$as_echo "$AR" >&6; }
6360else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
6363fi
6364
6365
6366fi
6367if test -z "$ac_cv_prog_AR"; then
6368 ac_ct_AR=$AR
6369 # Extract the first word of "ar", so it can be a program name with args.
6370set dummy ar; ac_word=$2
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if ${ac_cv_prog_ac_ct_AR+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375else
6376 if test -n "$ac_ct_AR"; then
6377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_ac_ct_AR="ar"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391 done
6392IFS=$as_save_IFS
6393
6394fi
6395fi
6396ac_ct_AR=$ac_cv_prog_ac_ct_AR
6397if test -n "$ac_ct_AR"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6399$as_echo "$ac_ct_AR" >&6; }
6400else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405 if test "x$ac_ct_AR" = x; then
6406 AR="false"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409yes:)
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412ac_tool_warned=yes ;;
6413esac
6414 AR=$ac_ct_AR
6415 fi
6416else
6417 AR="$ac_cv_prog_AR"
6418fi
6419
6420test -z "$AR" && AR=ar
6421if test -n "$plugin_option"; then
6422 if $AR --help 2>&1 | grep -q "\--plugin"; then
6423 touch conftest.c
6424 $AR $plugin_option rc conftest.a conftest.c
6425 if test "$?" != 0; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6427$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6428 else
6429 AR="$AR $plugin_option"
6430 fi
6431 rm -f conftest.*
6432 fi
6433fi
6434test -z "$AR_FLAGS" && AR_FLAGS=cru
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}strip; ac_word=$2
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450$as_echo_n "checking for $ac_word... " >&6; }
6451if ${ac_cv_prog_STRIP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453else
6454 if test -n "$STRIP"; then
6455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6467 fi
6468done
6469 done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474STRIP=$ac_cv_prog_STRIP
6475if test -n "$STRIP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6477$as_echo "$STRIP" >&6; }
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484fi
6485if test -z "$ac_cv_prog_STRIP"; then
6486 ac_ct_STRIP=$STRIP
6487 # Extract the first word of "strip", so it can be a program name with args.
6488set dummy strip; ac_word=$2
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
6491if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 if test -n "$ac_ct_STRIP"; then
6495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_ac_ct_STRIP="strip"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509 done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6515if test -n "$ac_ct_STRIP"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6517$as_echo "$ac_ct_STRIP" >&6; }
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
6521fi
6522
6523 if test "x$ac_ct_STRIP" = x; then
6524 STRIP=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527yes:)
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530ac_tool_warned=yes ;;
6531esac
6532 STRIP=$ac_ct_STRIP
6533 fi
6534else
6535 STRIP="$ac_cv_prog_STRIP"
6536fi
6537
6538test -z "$STRIP" && STRIP=:
6539
6540
6541
6542
6543
6544
6545if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6547set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if ${ac_cv_prog_RANLIB+:} false; then :
6551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$RANLIB"; then
6554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568 done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573RANLIB=$ac_cv_prog_RANLIB
6574if test -n "$RANLIB"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6576$as_echo "$RANLIB" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583fi
6584if test -z "$ac_cv_prog_RANLIB"; then
6585 ac_ct_RANLIB=$RANLIB
6586 # Extract the first word of "ranlib", so it can be a program name with args.
6587set dummy ranlib; ac_word=$2
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
6590if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592else
6593 if test -n "$ac_ct_RANLIB"; then
6594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_RANLIB="ranlib"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607done
6608 done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6614if test -n "$ac_ct_RANLIB"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6616$as_echo "$ac_ct_RANLIB" >&6; }
6617else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622 if test "x$ac_ct_RANLIB" = x; then
6623 RANLIB=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626yes:)
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629ac_tool_warned=yes ;;
6630esac
6631 RANLIB=$ac_ct_RANLIB
6632 fi
6633else
6634 RANLIB="$ac_cv_prog_RANLIB"
6635fi
6636
6637test -z "$RANLIB" && RANLIB=:
6638if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6639 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6640 RANLIB="$RANLIB $plugin_option"
6641 fi
6642fi
6643
6644
6645
6646
6647
6648
6649# Determine commands to create old-style static archives.
6650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6651old_postinstall_cmds='chmod 644 $oldlib'
6652old_postuninstall_cmds=
6653
6654if test -n "$RANLIB"; then
6655 case $host_os in
6656 openbsd*)
6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6658 ;;
6659 *)
6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6661 ;;
6662 esac
6663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6664fi
6665
6666case $host_os in
6667 darwin*)
6668 lock_old_archive_extraction=yes ;;
6669 *)
6670 lock_old_archive_extraction=no ;;
6671esac
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693for ac_prog in gawk mawk nawk awk
6694do
6695 # Extract the first word of "$ac_prog", so it can be a program name with args.
6696set dummy $ac_prog; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if ${ac_cv_prog_AWK+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 if test -n "$AWK"; then
6703 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AWK="$ac_prog"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717 done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722AWK=$ac_cv_prog_AWK
6723if test -n "$AWK"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6725$as_echo "$AWK" >&6; }
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731
6732 test -n "$AWK" && break
6733done
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753# If no C compiler was specified, use CC.
6754LTCC=${LTCC-"$CC"}
6755
6756# If no C compiler flags were specified, use CFLAGS.
6757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6758
6759# Allow CC to be a program name with arguments.
6760compiler=$CC
6761
6762
6763# Check for command to grab the raw symbol name followed by C symbol from nm.
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6765$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6766if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768else
6769
6770# These are sane defaults that work on at least a few old systems.
6771# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6772
6773# Character class describing NM global symbol codes.
6774symcode='[BCDEGRST]'
6775
6776# Regexp to match symbols that can be accessed directly from C.
6777sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6778
6779# Define system-specific variables.
6780case $host_os in
6781aix*)
6782 symcode='[BCDT]'
6783 ;;
6784cygwin* | mingw* | pw32* | cegcc*)
6785 symcode='[ABCDGISTW]'
6786 ;;
6787hpux*)
6788 if test "$host_cpu" = ia64; then
6789 symcode='[ABCDEGRST]'
6790 fi
6791 ;;
6792irix* | nonstopux*)
6793 symcode='[BCDEGRST]'
6794 ;;
6795osf*)
6796 symcode='[BCDEGQRST]'
6797 ;;
6798solaris*)
6799 symcode='[BDRT]'
6800 ;;
6801sco3.2v5*)
6802 symcode='[DT]'
6803 ;;
6804sysv4.2uw2*)
6805 symcode='[DT]'
6806 ;;
6807sysv5* | sco5v6* | unixware* | OpenUNIX*)
6808 symcode='[ABDT]'
6809 ;;
6810sysv4)
6811 symcode='[DFNSTU]'
6812 ;;
6813esac
6814
6815# If we're using GNU nm, then use its standard symbol codes.
6816case `$NM -V 2>&1` in
6817*GNU* | *'with BFD'*)
6818 symcode='[ABCDGIRSTW]' ;;
6819esac
6820
6821# Transform an extracted symbol line into a proper C declaration.
6822# Some systems (esp. on ia64) link data and code symbols differently,
6823# so use this general approach.
6824lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6825
6826# Transform an extracted symbol line into symbol name and symbol address
6827lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6828lt_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'"
6829
6830# Handle CRLF in mingw tool chain
6831opt_cr=
6832case $build_os in
6833mingw*)
6834 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6835 ;;
6836esac
6837
6838# Try without a prefix underscore, then with it.
6839for ac_symprfx in "" "_"; do
6840
6841 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6842 symxfrm="\\1 $ac_symprfx\\2 \\2"
6843
6844 # Write the raw and C identifiers.
6845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6846 # Fake it for dumpbin and say T for any non-static function
6847 # and D for any global variable.
6848 # Also find C++ and __fastcall symbols from MSVC++,
6849 # which start with @ or ?.
6850 lt_cv_sys_global_symbol_pipe="$AWK '"\
6851" {last_section=section; section=\$ 3};"\
6852" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6853" \$ 0!~/External *\|/{next};"\
6854" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6855" {if(hide[section]) next};"\
6856" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6857" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6858" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6859" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6860" ' prfx=^$ac_symprfx"
6861 else
6862 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6863 fi
6864
6865 # Check to see that the pipe works correctly.
6866 pipe_works=no
6867
6868 rm -f conftest*
6869 cat > conftest.$ac_ext <<_LT_EOF
6870#ifdef __cplusplus
6871extern "C" {
6872#endif
6873char nm_test_var;
6874void nm_test_func(void);
6875void nm_test_func(void){}
6876#ifdef __cplusplus
6877}
6878#endif
6879int main(){nm_test_var='a';nm_test_func();return(0);}
6880_LT_EOF
6881
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 # Now try to grab the symbols.
6888 nlist=conftest.nm
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6890 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; } && test -s "$nlist"; then
6894 # Try sorting and uniquifying the output.
6895 if sort "$nlist" | uniq > "$nlist"T; then
6896 mv -f "$nlist"T "$nlist"
6897 else
6898 rm -f "$nlist"T
6899 fi
6900
6901 # Make sure that we snagged all the symbols we need.
6902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6904 cat <<_LT_EOF > conftest.$ac_ext
6905#ifdef __cplusplus
6906extern "C" {
6907#endif
6908
6909_LT_EOF
6910 # Now generate the symbol file.
6911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6912
6913 cat <<_LT_EOF >> conftest.$ac_ext
6914
6915/* The mapping between symbol names and symbols. */
6916const struct {
6917 const char *name;
6918 void *address;
6919}
6920lt__PROGRAM__LTX_preloaded_symbols[] =
6921{
6922 { "@PROGRAM@", (void *) 0 },
6923_LT_EOF
6924 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6925 cat <<\_LT_EOF >> conftest.$ac_ext
6926 {0, (void *) 0}
6927};
6928
6929/* This works around a problem in FreeBSD linker */
6930#ifdef FREEBSD_WORKAROUND
6931static const void *lt_preloaded_setup() {
6932 return lt__PROGRAM__LTX_preloaded_symbols;
6933}
6934#endif
6935
6936#ifdef __cplusplus
6937}
6938#endif
6939_LT_EOF
6940 # Now try linking the two files.
6941 mv conftest.$ac_objext conftstm.$ac_objext
6942 lt_save_LIBS="$LIBS"
6943 lt_save_CFLAGS="$CFLAGS"
6944 LIBS="conftstm.$ac_objext"
6945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6947 (eval $ac_link) 2>&5
6948 ac_status=$?
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6951 pipe_works=yes
6952 fi
6953 LIBS="$lt_save_LIBS"
6954 CFLAGS="$lt_save_CFLAGS"
6955 else
6956 echo "cannot find nm_test_func in $nlist" >&5
6957 fi
6958 else
6959 echo "cannot find nm_test_var in $nlist" >&5
6960 fi
6961 else
6962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6963 fi
6964 else
6965 echo "$progname: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 fi
6968 rm -rf conftest* conftst*
6969
6970 # Do not use the global_symbol_pipe unless it works.
6971 if test "$pipe_works" = yes; then
6972 break
6973 else
6974 lt_cv_sys_global_symbol_pipe=
6975 fi
6976done
6977
6978fi
6979
6980if test -z "$lt_cv_sys_global_symbol_pipe"; then
6981 lt_cv_sys_global_symbol_to_cdecl=
6982fi
6983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6985$as_echo "failed" >&6; }
6986else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6988$as_echo "ok" >&6; }
6989fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012# Check whether --enable-libtool-lock was given.
7013if test "${enable_libtool_lock+set}" = set; then :
7014 enableval=$enable_libtool_lock;
7015fi
7016
7017test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7018
7019# Some flags need to be propagated to the compiler or linker for good
7020# libtool support.
7021case $host in
7022ia64-*-hpux*)
7023 # Find out which ABI we are using.
7024 echo 'int i;' > conftest.$ac_ext
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; then
7030 case `/usr/bin/file conftest.$ac_objext` in
7031 *ELF-32*)
7032 HPUX_IA64_MODE="32"
7033 ;;
7034 *ELF-64*)
7035 HPUX_IA64_MODE="64"
7036 ;;
7037 esac
7038 fi
7039 rm -rf conftest*
7040 ;;
7041*-*-irix6*)
7042 # Find out which ABI we are using.
7043 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 if test "$lt_cv_prog_gnu_ld" = yes; then
7050 case `/usr/bin/file conftest.$ac_objext` in
7051 *32-bit*)
7052 LD="${LD-ld} -melf32bsmip"
7053 ;;
7054 *N32*)
7055 LD="${LD-ld} -melf32bmipn32"
7056 ;;
7057 *64-bit*)
7058 LD="${LD-ld} -melf64bmip"
7059 ;;
7060 esac
7061 else
7062 case `/usr/bin/file conftest.$ac_objext` in
7063 *32-bit*)
7064 LD="${LD-ld} -32"
7065 ;;
7066 *N32*)
7067 LD="${LD-ld} -n32"
7068 ;;
7069 *64-bit*)
7070 LD="${LD-ld} -64"
7071 ;;
7072 esac
7073 fi
7074 fi
7075 rm -rf conftest*
7076 ;;
7077
7078x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7079s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7080 # Find out which ABI we are using.
7081 echo 'int i;' > conftest.$ac_ext
7082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083 (eval $ac_compile) 2>&5
7084 ac_status=$?
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }; then
7087 case `/usr/bin/file conftest.o` in
7088 *32-bit*)
7089 case $host in
7090 x86_64-*kfreebsd*-gnu)
7091 LD="${LD-ld} -m elf_i386_fbsd"
7092 ;;
7093 x86_64-*linux*)
7094 case `/usr/bin/file conftest.o` in
7095 *x86-64*)
7096 LD="${LD-ld} -m elf32_x86_64"
7097 ;;
7098 *)
7099 LD="${LD-ld} -m elf_i386"
7100 ;;
7101 esac
7102 ;;
7103 powerpc64le-*linux*)
7104 LD="${LD-ld} -m elf32lppclinux"
7105 ;;
7106 powerpc64-*linux*)
7107 LD="${LD-ld} -m elf32ppclinux"
7108 ;;
7109 s390x-*linux*)
7110 LD="${LD-ld} -m elf_s390"
7111 ;;
7112 sparc64-*linux*)
7113 LD="${LD-ld} -m elf32_sparc"
7114 ;;
7115 esac
7116 ;;
7117 *64-bit*)
7118 case $host in
7119 x86_64-*kfreebsd*-gnu)
7120 LD="${LD-ld} -m elf_x86_64_fbsd"
7121 ;;
7122 x86_64-*linux*)
7123 LD="${LD-ld} -m elf_x86_64"
7124 ;;
7125 powerpcle-*linux*)
7126 LD="${LD-ld} -m elf64lppc"
7127 ;;
7128 powerpc-*linux*)
7129 LD="${LD-ld} -m elf64ppc"
7130 ;;
7131 s390*-*linux*|s390*-*tpf*)
7132 LD="${LD-ld} -m elf64_s390"
7133 ;;
7134 sparc*-*linux*)
7135 LD="${LD-ld} -m elf64_sparc"
7136 ;;
7137 esac
7138 ;;
7139 esac
7140 fi
7141 rm -rf conftest*
7142 ;;
7143
7144*-*-sco3.2v5*)
7145 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7146 SAVE_CFLAGS="$CFLAGS"
7147 CFLAGS="$CFLAGS -belf"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7149$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7150if ${lt_cv_cc_needs_belf+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h. */
7161
7162int
7163main ()
7164{
7165
7166 ;
7167 return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_link "$LINENO"; then :
7171 lt_cv_cc_needs_belf=yes
7172else
7173 lt_cv_cc_needs_belf=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 ac_ext=c
7178ac_cpp='$CPP $CPPFLAGS'
7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7185$as_echo "$lt_cv_cc_needs_belf" >&6; }
7186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7188 CFLAGS="$SAVE_CFLAGS"
7189 fi
7190 ;;
7191sparc*-*solaris*)
7192 # Find out which ABI we are using.
7193 echo 'int i;' > conftest.$ac_ext
7194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7195 (eval $ac_compile) 2>&5
7196 ac_status=$?
7197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7198 test $ac_status = 0; }; then
7199 case `/usr/bin/file conftest.o` in
7200 *64-bit*)
7201 case $lt_cv_prog_gnu_ld in
7202 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7203 *)
7204 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7205 LD="${LD-ld} -64"
7206 fi
7207 ;;
7208 esac
7209 ;;
7210 esac
7211 fi
7212 rm -rf conftest*
7213 ;;
7214esac
7215
7216need_locks="$enable_libtool_lock"
7217
7218
7219 case $host_os in
7220 rhapsody* | darwin*)
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7223set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225$as_echo_n "checking for $ac_word... " >&6; }
7226if ${ac_cv_prog_DSYMUTIL+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228else
7229 if test -n "$DSYMUTIL"; then
7230 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7231else
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244 done
7245IFS=$as_save_IFS
7246
7247fi
7248fi
7249DSYMUTIL=$ac_cv_prog_DSYMUTIL
7250if test -n "$DSYMUTIL"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7252$as_echo "$DSYMUTIL" >&6; }
7253else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255$as_echo "no" >&6; }
7256fi
7257
7258
7259fi
7260if test -z "$ac_cv_prog_DSYMUTIL"; then
7261 ac_ct_DSYMUTIL=$DSYMUTIL
7262 # Extract the first word of "dsymutil", so it can be a program name with args.
7263set dummy dsymutil; ac_word=$2
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265$as_echo_n "checking for $ac_word... " >&6; }
7266if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 if test -n "$ac_ct_DSYMUTIL"; then
7270 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284 done
7285IFS=$as_save_IFS
7286
7287fi
7288fi
7289ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7290if test -n "$ac_ct_DSYMUTIL"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7292$as_echo "$ac_ct_DSYMUTIL" >&6; }
7293else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
7296fi
7297
7298 if test "x$ac_ct_DSYMUTIL" = x; then
7299 DSYMUTIL=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302yes:)
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305ac_tool_warned=yes ;;
7306esac
7307 DSYMUTIL=$ac_ct_DSYMUTIL
7308 fi
7309else
7310 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7311fi
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7315set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; }
7318if ${ac_cv_prog_NMEDIT+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320else
7321 if test -n "$NMEDIT"; then
7322 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7323else
7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336 done
7337IFS=$as_save_IFS
7338
7339fi
7340fi
7341NMEDIT=$ac_cv_prog_NMEDIT
7342if test -n "$NMEDIT"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7344$as_echo "$NMEDIT" >&6; }
7345else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347$as_echo "no" >&6; }
7348fi
7349
7350
7351fi
7352if test -z "$ac_cv_prog_NMEDIT"; then
7353 ac_ct_NMEDIT=$NMEDIT
7354 # Extract the first word of "nmedit", so it can be a program name with args.
7355set dummy nmedit; ac_word=$2
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357$as_echo_n "checking for $ac_word... " >&6; }
7358if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360else
7361 if test -n "$ac_ct_NMEDIT"; then
7362 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7363else
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376 done
7377IFS=$as_save_IFS
7378
7379fi
7380fi
7381ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7382if test -n "$ac_ct_NMEDIT"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7384$as_echo "$ac_ct_NMEDIT" >&6; }
7385else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387$as_echo "no" >&6; }
7388fi
7389
7390 if test "x$ac_ct_NMEDIT" = x; then
7391 NMEDIT=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394yes:)
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397ac_tool_warned=yes ;;
7398esac
7399 NMEDIT=$ac_ct_NMEDIT
7400 fi
7401else
7402 NMEDIT="$ac_cv_prog_NMEDIT"
7403fi
7404
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7407set dummy ${ac_tool_prefix}lipo; ac_word=$2
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409$as_echo_n "checking for $ac_word... " >&6; }
7410if ${ac_cv_prog_LIPO+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412else
7413 if test -n "$LIPO"; then
7414 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428 done
7429IFS=$as_save_IFS
7430
7431fi
7432fi
7433LIPO=$ac_cv_prog_LIPO
7434if test -n "$LIPO"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7436$as_echo "$LIPO" >&6; }
7437else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7440fi
7441
7442
7443fi
7444if test -z "$ac_cv_prog_LIPO"; then
7445 ac_ct_LIPO=$LIPO
7446 # Extract the first word of "lipo", so it can be a program name with args.
7447set dummy lipo; ac_word=$2
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 if test -n "$ac_ct_LIPO"; then
7454 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_LIPO="lipo"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7466 fi
7467done
7468 done
7469IFS=$as_save_IFS
7470
7471fi
7472fi
7473ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7474if test -n "$ac_ct_LIPO"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7476$as_echo "$ac_ct_LIPO" >&6; }
7477else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
7480fi
7481
7482 if test "x$ac_ct_LIPO" = x; then
7483 LIPO=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486yes:)
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489ac_tool_warned=yes ;;
7490esac
7491 LIPO=$ac_ct_LIPO
7492 fi
7493else
7494 LIPO="$ac_cv_prog_LIPO"
7495fi
7496
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7499set dummy ${ac_tool_prefix}otool; ac_word=$2
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501$as_echo_n "checking for $ac_word... " >&6; }
7502if ${ac_cv_prog_OTOOL+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504else
7505 if test -n "$OTOOL"; then
7506 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7518 fi
7519done
7520 done
7521IFS=$as_save_IFS
7522
7523fi
7524fi
7525OTOOL=$ac_cv_prog_OTOOL
7526if test -n "$OTOOL"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7528$as_echo "$OTOOL" >&6; }
7529else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531$as_echo "no" >&6; }
7532fi
7533
7534
7535fi
7536if test -z "$ac_cv_prog_OTOOL"; then
7537 ac_ct_OTOOL=$OTOOL
7538 # Extract the first word of "otool", so it can be a program name with args.
7539set dummy otool; ac_word=$2
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541$as_echo_n "checking for $ac_word... " >&6; }
7542if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544else
7545 if test -n "$ac_ct_OTOOL"; then
7546 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_ac_ct_OTOOL="otool"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559done
7560 done
7561IFS=$as_save_IFS
7562
7563fi
7564fi
7565ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7566if test -n "$ac_ct_OTOOL"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7568$as_echo "$ac_ct_OTOOL" >&6; }
7569else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
7573
7574 if test "x$ac_ct_OTOOL" = x; then
7575 OTOOL=":"
7576 else
7577 case $cross_compiling:$ac_tool_warned in
7578yes:)
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581ac_tool_warned=yes ;;
7582esac
7583 OTOOL=$ac_ct_OTOOL
7584 fi
7585else
7586 OTOOL="$ac_cv_prog_OTOOL"
7587fi
7588
7589 if test -n "$ac_tool_prefix"; then
7590 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7591set dummy ${ac_tool_prefix}otool64; ac_word=$2
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593$as_echo_n "checking for $ac_word... " >&6; }
7594if ${ac_cv_prog_OTOOL64+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596else
7597 if test -n "$OTOOL64"; then
7598 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612 done
7613IFS=$as_save_IFS
7614
7615fi
7616fi
7617OTOOL64=$ac_cv_prog_OTOOL64
7618if test -n "$OTOOL64"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7620$as_echo "$OTOOL64" >&6; }
7621else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627fi
7628if test -z "$ac_cv_prog_OTOOL64"; then
7629 ac_ct_OTOOL64=$OTOOL64
7630 # Extract the first word of "otool64", so it can be a program name with args.
7631set dummy otool64; ac_word=$2
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7635 $as_echo_n "(cached) " >&6
7636else
7637 if test -n "$ac_ct_OTOOL64"; then
7638 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_ac_ct_OTOOL64="otool64"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651done
7652 done
7653IFS=$as_save_IFS
7654
7655fi
7656fi
7657ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7658if test -n "$ac_ct_OTOOL64"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7660$as_echo "$ac_ct_OTOOL64" >&6; }
7661else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664fi
7665
7666 if test "x$ac_ct_OTOOL64" = x; then
7667 OTOOL64=":"
7668 else
7669 case $cross_compiling:$ac_tool_warned in
7670yes:)
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673ac_tool_warned=yes ;;
7674esac
7675 OTOOL64=$ac_ct_OTOOL64
7676 fi
7677else
7678 OTOOL64="$ac_cv_prog_OTOOL64"
7679fi
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7708$as_echo_n "checking for -single_module linker flag... " >&6; }
7709if ${lt_cv_apple_cc_single_mod+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711else
7712 lt_cv_apple_cc_single_mod=no
7713 if test -z "${LT_MULTI_MODULE}"; then
7714 # By default we will add the -single_module flag. You can override
7715 # by either setting the environment variable LT_MULTI_MODULE
7716 # non-empty at configure time, or by adding -multi_module to the
7717 # link flags.
7718 rm -rf libconftest.dylib*
7719 echo "int foo(void){return 1;}" > conftest.c
7720 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721-dynamiclib -Wl,-single_module conftest.c" >&5
7722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7723 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7724 _lt_result=$?
7725 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7726 lt_cv_apple_cc_single_mod=yes
7727 else
7728 cat conftest.err >&5
7729 fi
7730 rm -rf libconftest.dylib*
7731 rm -f conftest.*
7732 fi
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7735$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7737$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7738if ${lt_cv_ld_exported_symbols_list+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740else
7741 lt_cv_ld_exported_symbols_list=no
7742 save_LDFLAGS=$LDFLAGS
7743 echo "_main" > conftest.sym
7744 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h. */
7747
7748int
7749main ()
7750{
7751
7752 ;
7753 return 0;
7754}
7755_ACEOF
7756if ac_fn_c_try_link "$LINENO"; then :
7757 lt_cv_ld_exported_symbols_list=yes
7758else
7759 lt_cv_ld_exported_symbols_list=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext \
7762 conftest$ac_exeext conftest.$ac_ext
7763 LDFLAGS="$save_LDFLAGS"
7764
7765fi
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7767$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7769$as_echo_n "checking for -force_load linker flag... " >&6; }
7770if ${lt_cv_ld_force_load+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772else
7773 lt_cv_ld_force_load=no
7774 cat > conftest.c << _LT_EOF
7775int forced_loaded() { return 2;}
7776_LT_EOF
7777 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7778 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7779 echo "$AR cru libconftest.a conftest.o" >&5
7780 $AR cru libconftest.a conftest.o 2>&5
7781 cat > conftest.c << _LT_EOF
7782int main() { return 0;}
7783_LT_EOF
7784 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7785 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7786 _lt_result=$?
7787 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7788 lt_cv_ld_force_load=yes
7789 else
7790 cat conftest.err >&5
7791 fi
7792 rm -f conftest.err libconftest.a conftest conftest.c
7793 rm -rf conftest.dSYM
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7797$as_echo "$lt_cv_ld_force_load" >&6; }
7798 case $host_os in
7799 rhapsody* | darwin1.[012])
7800 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7801 darwin1.*)
7802 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7803 darwin*) # darwin 5.x on
7804 # if running on 10.5 or later, the deployment target defaults
7805 # to the OS version, if on x86, and 10.4, the deployment
7806 # target defaults to 10.4. Don't you love it?
7807 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7808 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7809 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7810 10.[012][,.]*)
7811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7812 10.*)
7813 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7814 esac
7815 ;;
7816 esac
7817 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7818 _lt_dar_single_mod='$single_module'
7819 fi
7820 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7821 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7822 else
7823 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7824 fi
7825 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7826 _lt_dsymutil='~$DSYMUTIL $lib || :'
7827 else
7828 _lt_dsymutil=
7829 fi
7830 ;;
7831 esac
7832
7833for ac_header in dlfcn.h
7834do :
7835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7836"
7837if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7838 cat >>confdefs.h <<_ACEOF
7839#define HAVE_DLFCN_H 1
7840_ACEOF
7841
7842fi
7843
7844done
7845
7846
7847ac_header_dirent=no
7848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7849 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7851$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7852if eval \${$as_ac_Header+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h. */
7857#include <sys/types.h>
7858#include <$ac_hdr>
7859
7860int
7861main ()
7862{
7863if ((DIR *) 0)
7864return 0;
7865 ;
7866 return 0;
7867}
7868_ACEOF
7869if ac_fn_c_try_compile "$LINENO"; then :
7870 eval "$as_ac_Header=yes"
7871else
7872 eval "$as_ac_Header=no"
7873fi
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875fi
7876eval ac_res=\$$as_ac_Header
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7878$as_echo "$ac_res" >&6; }
7879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7880 cat >>confdefs.h <<_ACEOF
7881#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7882_ACEOF
7883
7884ac_header_dirent=$ac_hdr; break
7885fi
7886
7887done
7888# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7889if test $ac_header_dirent = dirent.h; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7891$as_echo_n "checking for library containing opendir... " >&6; }
7892if ${ac_cv_search_opendir+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894else
7895 ac_func_search_save_LIBS=$LIBS
7896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h. */
7898
7899/* Override any GCC internal prototype to avoid an error.
7900 Use char because int might match the return type of a GCC
7901 builtin and then its argument prototype would still apply. */
7902#ifdef __cplusplus
7903extern "C"
7904#endif
7905char opendir ();
7906int
7907main ()
7908{
7909return opendir ();
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914for ac_lib in '' dir; do
7915 if test -z "$ac_lib"; then
7916 ac_res="none required"
7917 else
7918 ac_res=-l$ac_lib
7919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7920 fi
7921 if ac_fn_c_try_link "$LINENO"; then :
7922 ac_cv_search_opendir=$ac_res
7923fi
7924rm -f core conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext
7926 if ${ac_cv_search_opendir+:} false; then :
7927 break
7928fi
7929done
7930if ${ac_cv_search_opendir+:} false; then :
7931
7932else
7933 ac_cv_search_opendir=no
7934fi
7935rm conftest.$ac_ext
7936LIBS=$ac_func_search_save_LIBS
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7939$as_echo "$ac_cv_search_opendir" >&6; }
7940ac_res=$ac_cv_search_opendir
7941if test "$ac_res" != no; then :
7942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7943
7944fi
7945
7946else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7948$as_echo_n "checking for library containing opendir... " >&6; }
7949if ${ac_cv_search_opendir+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951else
7952 ac_func_search_save_LIBS=$LIBS
7953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h. */
7955
7956/* Override any GCC internal prototype to avoid an error.
7957 Use char because int might match the return type of a GCC
7958 builtin and then its argument prototype would still apply. */
7959#ifdef __cplusplus
7960extern "C"
7961#endif
7962char opendir ();
7963int
7964main ()
7965{
7966return opendir ();
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971for ac_lib in '' x; do
7972 if test -z "$ac_lib"; then
7973 ac_res="none required"
7974 else
7975 ac_res=-l$ac_lib
7976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7977 fi
7978 if ac_fn_c_try_link "$LINENO"; then :
7979 ac_cv_search_opendir=$ac_res
7980fi
7981rm -f core conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext
7983 if ${ac_cv_search_opendir+:} false; then :
7984 break
7985fi
7986done
7987if ${ac_cv_search_opendir+:} false; then :
7988
7989else
7990 ac_cv_search_opendir=no
7991fi
7992rm conftest.$ac_ext
7993LIBS=$ac_func_search_save_LIBS
7994fi
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7996$as_echo "$ac_cv_search_opendir" >&6; }
7997ac_res=$ac_cv_search_opendir
7998if test "$ac_res" != no; then :
7999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8000
8001fi
8002
8003fi
8004
8005
8006
8007
8008ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8009if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8010
8011cat >>confdefs.h <<_ACEOF
8012#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8013_ACEOF
8014
8015
8016$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8017
8018fi
8019
8020
8021ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8022if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8023
8024cat >>confdefs.h <<_ACEOF
8025#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8026_ACEOF
8027
8028
8029$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8030
8031else
8032 case " $LIBOBJS " in
8033 *" fileblocks.$ac_objext "* ) ;;
8034 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8035 ;;
8036esac
8037
8038fi
8039
8040
8041ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8042if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8043
8044cat >>confdefs.h <<_ACEOF
8045#define HAVE_STRUCT_STAT_ST_RDEV 1
8046_ACEOF
8047
8048
8049$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8050
8051fi
8052
8053
8054ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8055#include <$ac_cv_struct_tm>
8056
8057"
8058if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8059
8060cat >>confdefs.h <<_ACEOF
8061#define HAVE_STRUCT_TM_TM_ZONE 1
8062_ACEOF
8063
8064
8065fi
8066
8067if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8068
8069$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8070
8071else
8072 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8073"
8074if test "x$ac_cv_have_decl_tzname" = xyes; then :
8075 ac_have_decl=1
8076else
8077 ac_have_decl=0
8078fi
8079
8080cat >>confdefs.h <<_ACEOF
8081#define HAVE_DECL_TZNAME $ac_have_decl
8082_ACEOF
8083
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8085$as_echo_n "checking for tzname... " >&6; }
8086if ${ac_cv_var_tzname+:} false; then :
8087 $as_echo_n "(cached) " >&6
8088else
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h. */
8091#include <time.h>
a48ff3ef
MF
8092#if !HAVE_DECL_TZNAME
8093extern char *tzname[];
8094#endif
b5689863
MF
8095
8096int
8097main ()
8098{
8099return tzname[0][0];
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_link "$LINENO"; then :
8105 ac_cv_var_tzname=yes
8106else
8107 ac_cv_var_tzname=no
8108fi
8109rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8113$as_echo "$ac_cv_var_tzname" >&6; }
8114 if test $ac_cv_var_tzname = yes; then
8115
8116$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8117
8118 fi
8119fi
8120
8121
8122ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8123#include <sys/types.h>
8124#endif
8125#ifdef HAVE_SYS_STAT_H
8126#include <sys/stat.h>
8127#endif
8128"
8129if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8130
8131cat >>confdefs.h <<_ACEOF
8132#define HAVE_STRUCT_STAT_ST_DEV 1
8133_ACEOF
8134
8135
8136fi
8137ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8138#include <sys/types.h>
8139#endif
8140#ifdef HAVE_SYS_STAT_H
8141#include <sys/stat.h>
8142#endif
8143"
8144if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8145
8146cat >>confdefs.h <<_ACEOF
8147#define HAVE_STRUCT_STAT_ST_INO 1
8148_ACEOF
8149
8150
8151fi
8152ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8153#include <sys/types.h>
8154#endif
8155#ifdef HAVE_SYS_STAT_H
8156#include <sys/stat.h>
8157#endif
8158"
8159if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8160
8161cat >>confdefs.h <<_ACEOF
8162#define HAVE_STRUCT_STAT_ST_MODE 1
8163_ACEOF
8164
8165
8166fi
8167ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8168#include <sys/types.h>
8169#endif
8170#ifdef HAVE_SYS_STAT_H
8171#include <sys/stat.h>
8172#endif
8173"
8174if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8175
8176cat >>confdefs.h <<_ACEOF
8177#define HAVE_STRUCT_STAT_ST_NLINK 1
8178_ACEOF
8179
8180
8181fi
8182ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8183#include <sys/types.h>
8184#endif
8185#ifdef HAVE_SYS_STAT_H
8186#include <sys/stat.h>
8187#endif
8188"
8189if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8190
8191cat >>confdefs.h <<_ACEOF
8192#define HAVE_STRUCT_STAT_ST_UID 1
8193_ACEOF
8194
8195
8196fi
8197ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8198#include <sys/types.h>
8199#endif
8200#ifdef HAVE_SYS_STAT_H
8201#include <sys/stat.h>
8202#endif
8203"
8204if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8205
8206cat >>confdefs.h <<_ACEOF
8207#define HAVE_STRUCT_STAT_ST_GID 1
8208_ACEOF
8209
8210
8211fi
8212ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8213#include <sys/types.h>
8214#endif
8215#ifdef HAVE_SYS_STAT_H
8216#include <sys/stat.h>
8217#endif
8218"
8219if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8220
8221cat >>confdefs.h <<_ACEOF
8222#define HAVE_STRUCT_STAT_ST_RDEV 1
8223_ACEOF
8224
8225
8226fi
8227ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8228#include <sys/types.h>
8229#endif
8230#ifdef HAVE_SYS_STAT_H
8231#include <sys/stat.h>
8232#endif
8233"
8234if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8235
8236cat >>confdefs.h <<_ACEOF
8237#define HAVE_STRUCT_STAT_ST_SIZE 1
8238_ACEOF
8239
8240
8241fi
8242ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8243#include <sys/types.h>
8244#endif
8245#ifdef HAVE_SYS_STAT_H
8246#include <sys/stat.h>
8247#endif
8248"
8249if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8250
8251cat >>confdefs.h <<_ACEOF
8252#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8253_ACEOF
8254
8255
8256fi
8257ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8258#include <sys/types.h>
8259#endif
8260#ifdef HAVE_SYS_STAT_H
8261#include <sys/stat.h>
8262#endif
8263"
8264if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8265
8266cat >>confdefs.h <<_ACEOF
8267#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8268_ACEOF
8269
8270
8271fi
8272ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8273#include <sys/types.h>
8274#endif
8275#ifdef HAVE_SYS_STAT_H
8276#include <sys/stat.h>
8277#endif
8278"
8279if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8280
8281cat >>confdefs.h <<_ACEOF
8282#define HAVE_STRUCT_STAT_ST_ATIME 1
8283_ACEOF
8284
8285
8286fi
8287ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8288#include <sys/types.h>
8289#endif
8290#ifdef HAVE_SYS_STAT_H
8291#include <sys/stat.h>
8292#endif
8293"
8294if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8295
8296cat >>confdefs.h <<_ACEOF
8297#define HAVE_STRUCT_STAT_ST_MTIME 1
8298_ACEOF
8299
8300
8301fi
8302ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8303#include <sys/types.h>
8304#endif
8305#ifdef HAVE_SYS_STAT_H
8306#include <sys/stat.h>
8307#endif
8308"
8309if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8310
8311cat >>confdefs.h <<_ACEOF
8312#define HAVE_STRUCT_STAT_ST_CTIME 1
8313_ACEOF
8314
8315
8316fi
8317
8318
8319ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8320if test "x$ac_cv_type___int128" = xyes; then :
8321
8322cat >>confdefs.h <<_ACEOF
8323#define HAVE___INT128 1
8324_ACEOF
8325
8326
8327fi
8328
8329ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8330#include <sys/socket.h>
8331
8332"
8333if test "x$ac_cv_type_socklen_t" = xyes; then :
8334
8335cat >>confdefs.h <<_ACEOF
8336#define HAVE_SOCKLEN_T 1
8337_ACEOF
8338
8339
8340fi
8341
8342
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8344$as_echo_n "checking type of array argument to getgroups... " >&6; }
8345if ${ac_cv_type_getgroups+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347else
8348 if test "$cross_compiling" = yes; then :
8349 ac_cv_type_getgroups=cross
8350else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353/* Thanks to Mike Rendell for this test. */
8354$ac_includes_default
8355#define NGID 256
8356#undef MAX
8357#define MAX(x, y) ((x) > (y) ? (x) : (y))
8358
8359int
8360main ()
8361{
8362 gid_t gidset[NGID];
8363 int i, n;
8364 union { gid_t gval; long int lval; } val;
8365
8366 val.lval = -1;
8367 for (i = 0; i < NGID; i++)
8368 gidset[i] = val.gval;
8369 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8370 gidset);
8371 /* Exit non-zero if getgroups seems to require an array of ints. This
8372 happens when gid_t is short int but getgroups modifies an array
8373 of ints. */
8374 return n > 0 && gidset[n] != val.gval;
8375}
8376_ACEOF
8377if ac_fn_c_try_run "$LINENO"; then :
8378 ac_cv_type_getgroups=gid_t
8379else
8380 ac_cv_type_getgroups=int
8381fi
8382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8383 conftest.$ac_objext conftest.beam conftest.$ac_ext
8384fi
8385
8386if test $ac_cv_type_getgroups = cross; then
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
8389#include <unistd.h>
8390
8391_ACEOF
8392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8393 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8394 ac_cv_type_getgroups=gid_t
8395else
8396 ac_cv_type_getgroups=int
8397fi
8398rm -f conftest*
8399
8400fi
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8403$as_echo "$ac_cv_type_getgroups" >&6; }
8404
8405cat >>confdefs.h <<_ACEOF
8406#define GETGROUPS_T $ac_cv_type_getgroups
8407_ACEOF
8408
8409
8410ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8411if test "x$ac_cv_type_mode_t" = xyes; then :
8412
8413else
8414
8415cat >>confdefs.h <<_ACEOF
8416#define mode_t int
8417_ACEOF
8418
8419fi
8420
8421ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8422if test "x$ac_cv_type_off_t" = xyes; then :
8423
8424else
8425
8426cat >>confdefs.h <<_ACEOF
8427#define off_t long int
8428_ACEOF
8429
8430fi
8431
8432ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8433if test "x$ac_cv_type_pid_t" = xyes; then :
8434
8435else
8436
8437cat >>confdefs.h <<_ACEOF
8438#define pid_t int
8439_ACEOF
8440
8441fi
8442
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8444$as_echo_n "checking return type of signal handlers... " >&6; }
8445if ${ac_cv_type_signal+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447else
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h. */
8450#include <sys/types.h>
8451#include <signal.h>
8452
8453int
8454main ()
8455{
8456return *(signal (0, 0)) (0) == 1;
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461if ac_fn_c_try_compile "$LINENO"; then :
8462 ac_cv_type_signal=int
8463else
8464 ac_cv_type_signal=void
8465fi
8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467fi
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8469$as_echo "$ac_cv_type_signal" >&6; }
8470
8471cat >>confdefs.h <<_ACEOF
8472#define RETSIGTYPE $ac_cv_type_signal
8473_ACEOF
8474
8475
8476ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8477if test "x$ac_cv_type_size_t" = xyes; then :
8478
8479else
8480
8481cat >>confdefs.h <<_ACEOF
8482#define size_t unsigned int
8483_ACEOF
8484
8485fi
8486
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8488$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8489if ${ac_cv_type_uid_t+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493/* end confdefs.h. */
8494#include <sys/types.h>
8495
8496_ACEOF
8497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498 $EGREP "uid_t" >/dev/null 2>&1; then :
8499 ac_cv_type_uid_t=yes
8500else
8501 ac_cv_type_uid_t=no
8502fi
8503rm -f conftest*
8504
8505fi
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8507$as_echo "$ac_cv_type_uid_t" >&6; }
8508if test $ac_cv_type_uid_t = no; then
8509
8510$as_echo "#define uid_t int" >>confdefs.h
8511
8512
8513$as_echo "#define gid_t int" >>confdefs.h
8514
8515fi
8516
8517
ce3ec98a
MF
8518ALL_LINGUAS=
8519# If we haven't got the data from the intl directory,
8520# assume NLS is disabled.
8521USE_NLS=no
8522LIBINTL=
8523LIBINTL_DEP=
8524INCINTL=
8525XGETTEXT=
8526GMSGFMT=
8527POSUB=
8528
8529if test -f ../intl/config.intl; then
8530 . ../intl/config.intl
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8533$as_echo_n "checking whether NLS is requested... " >&6; }
8534if test x"$USE_NLS" != xyes; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
8537else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8539$as_echo "yes" >&6; }
8540
8541$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8542
8543
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8545$as_echo_n "checking for catalogs to be installed... " >&6; }
8546 # Look for .po and .gmo files in the source directory.
8547 CATALOGS=
8548 XLINGUAS=
8549 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8550 # If there aren't any .gmo files the shell will give us the
8551 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8552 # weeded out.
8553 case "$cat" in *\**)
8554 continue;;
8555 esac
8556 # The quadruple backslash is collapsed to a double backslash
8557 # by the backticks, then collapsed again by the double quotes,
8558 # leaving us with one backslash in the sed expression (right
8559 # before the dot that mustn't act as a wildcard).
8560 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8561 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8562 # The user is allowed to set LINGUAS to a list of languages to
8563 # install catalogs for. If it's empty that means "all of them."
8564 if test "x$LINGUAS" = x; then
8565 CATALOGS="$CATALOGS $cat"
8566 XLINGUAS="$XLINGUAS $lang"
8567 else
8568 case "$LINGUAS" in *$lang*)
8569 CATALOGS="$CATALOGS $cat"
8570 XLINGUAS="$XLINGUAS $lang"
8571 ;;
8572 esac
8573 fi
8574 done
8575 LINGUAS="$XLINGUAS"
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8577$as_echo "$LINGUAS" >&6; }
8578
8579
8580 DATADIRNAME=share
8581
8582 INSTOBJEXT=.mo
8583
8584 GENCAT=gencat
8585
8586 CATOBJEXT=.gmo
8587
8588fi
8589
b5689863
MF
8590
8591 # Use the system's zlib library.
8592 zlibdir="-L\$(top_builddir)/../zlib"
8593 zlibinc="-I\$(top_srcdir)/../zlib"
8594
8595# Check whether --with-system-zlib was given.
8596if test "${with_system_zlib+set}" = set; then :
8597 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8598 zlibdir=
8599 zlibinc=
8600 fi
8601
8602fi
8603
8604
8605
8606
8607
8608
8609 maybe_plugins=no
8610 for ac_header in dlfcn.h
8611do :
8612 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8613"
8614if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8615 cat >>confdefs.h <<_ACEOF
8616#define HAVE_DLFCN_H 1
8617_ACEOF
8618 maybe_plugins=yes
8619fi
8620
8621done
8622
8623 for ac_header in windows.h
8624do :
8625 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8626"
8627if test "x$ac_cv_header_windows_h" = xyes; then :
8628 cat >>confdefs.h <<_ACEOF
8629#define HAVE_WINDOWS_H 1
8630_ACEOF
8631 maybe_plugins=yes
8632fi
8633
8634done
8635
8636
8637 # Check whether --enable-plugins was given.
8638if test "${enable_plugins+set}" = set; then :
8639 enableval=$enable_plugins; case "${enableval}" in
8640 no) plugins=no ;;
8641 *) plugins=yes
8642 if test "$maybe_plugins" != "yes" ; then
8643 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8644 fi ;;
8645 esac
8646else
8647 plugins=$maybe_plugins
8648
8649fi
8650
8651 if test "$plugins" = "yes"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8653$as_echo_n "checking for library containing dlsym... " >&6; }
8654if ${ac_cv_search_dlsym+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 ac_func_search_save_LIBS=$LIBS
8658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h. */
8660
8661/* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667char dlsym ();
8668int
8669main ()
8670{
8671return dlsym ();
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676for ac_lib in '' dl; do
8677 if test -z "$ac_lib"; then
8678 ac_res="none required"
8679 else
8680 ac_res=-l$ac_lib
8681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8682 fi
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 ac_cv_search_dlsym=$ac_res
8685fi
8686rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext
8688 if ${ac_cv_search_dlsym+:} false; then :
8689 break
8690fi
8691done
8692if ${ac_cv_search_dlsym+:} false; then :
8693
8694else
8695 ac_cv_search_dlsym=no
8696fi
8697rm conftest.$ac_ext
8698LIBS=$ac_func_search_save_LIBS
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8701$as_echo "$ac_cv_search_dlsym" >&6; }
8702ac_res=$ac_cv_search_dlsym
8703if test "$ac_res" != no; then :
8704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8705
8706fi
8707
8708 fi
8709
8710 if test "$plugins" = yes; then
8711 PLUGINS_TRUE=
8712 PLUGINS_FALSE='#'
8713else
8714 PLUGINS_TRUE='#'
8715 PLUGINS_FALSE=
8716fi
8717
8718
8719
8720
8721
8722# Set options
8723enable_dlopen=yes
8724
8725
8726
8727
8728 enable_win32_dll=no
8729
8730
8731 # Check whether --enable-shared was given.
8732if test "${enable_shared+set}" = set; then :
8733 enableval=$enable_shared; p=${PACKAGE-default}
8734 case $enableval in
8735 yes) enable_shared=yes ;;
8736 no) enable_shared=no ;;
8737 *)
8738 enable_shared=no
8739 # Look at the argument we got. We use all the common list separators.
8740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8741 for pkg in $enableval; do
8742 IFS="$lt_save_ifs"
8743 if test "X$pkg" = "X$p"; then
8744 enable_shared=yes
8745 fi
8746 done
8747 IFS="$lt_save_ifs"
8748 ;;
8749 esac
8750else
8751 enable_shared=yes
8752fi
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762 # Check whether --enable-static was given.
8763if test "${enable_static+set}" = set; then :
8764 enableval=$enable_static; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8768 *)
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8776 fi
8777 done
8778 IFS="$lt_save_ifs"
8779 ;;
8780 esac
8781else
8782 enable_static=yes
8783fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794# Check whether --with-pic was given.
8795if test "${with_pic+set}" = set; then :
8796 withval=$with_pic; pic_mode="$withval"
8797else
8798 pic_mode=default
8799fi
8800
8801
8802test -z "$pic_mode" && pic_mode=default
8803
8804
8805
8806
8807
8808
8809
8810 # Check whether --enable-fast-install was given.
8811if test "${enable_fast_install+set}" = set; then :
8812 enableval=$enable_fast_install; p=${PACKAGE-default}
8813 case $enableval in
8814 yes) enable_fast_install=yes ;;
8815 no) enable_fast_install=no ;;
8816 *)
8817 enable_fast_install=no
8818 # Look at the argument we got. We use all the common list separators.
8819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8820 for pkg in $enableval; do
8821 IFS="$lt_save_ifs"
8822 if test "X$pkg" = "X$p"; then
8823 enable_fast_install=yes
8824 fi
8825 done
8826 IFS="$lt_save_ifs"
8827 ;;
8828 esac
8829else
8830 enable_fast_install=yes
8831fi
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843# This can be used to rebuild libtool when needed
8844LIBTOOL_DEPS="$ltmain"
8845
8846# Always use our own libtool.
8847LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874test -z "$LN_S" && LN_S="ln -s"
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889if test -n "${ZSH_VERSION+set}" ; then
8890 setopt NO_GLOB_SUBST
8891fi
8892
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8894$as_echo_n "checking for objdir... " >&6; }
8895if ${lt_cv_objdir+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897else
8898 rm -f .libs 2>/dev/null
8899mkdir .libs 2>/dev/null
8900if test -d .libs; then
8901 lt_cv_objdir=.libs
8902else
8903 # MS-DOS does not allow filenames that begin with a dot.
8904 lt_cv_objdir=_libs
8905fi
8906rmdir .libs 2>/dev/null
8907fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8909$as_echo "$lt_cv_objdir" >&6; }
8910objdir=$lt_cv_objdir
8911
8912
8913
8914
8915
8916cat >>confdefs.h <<_ACEOF
8917#define LT_OBJDIR "$lt_cv_objdir/"
8918_ACEOF
8919
8920
8921
8922
8923case $host_os in
8924aix3*)
8925 # AIX sometimes has problems with the GCC collect2 program. For some
8926 # reason, if we set the COLLECT_NAMES environment variable, the problems
8927 # vanish in a puff of smoke.
8928 if test "X${COLLECT_NAMES+set}" != Xset; then
8929 COLLECT_NAMES=
8930 export COLLECT_NAMES
8931 fi
8932 ;;
8933esac
8934
8935# Global variables:
8936ofile=libtool
8937can_build_shared=yes
8938
8939# All known linkers require a `.a' archive for static linking (except MSVC,
8940# which needs '.lib').
8941libext=a
8942
8943with_gnu_ld="$lt_cv_prog_gnu_ld"
8944
8945old_CC="$CC"
8946old_CFLAGS="$CFLAGS"
8947
8948# Set sane defaults for various variables
8949test -z "$CC" && CC=cc
8950test -z "$LTCC" && LTCC=$CC
8951test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8952test -z "$LD" && LD=ld
8953test -z "$ac_objext" && ac_objext=o
8954
8955for cc_temp in $compiler""; do
8956 case $cc_temp in
8957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8959 \-*) ;;
8960 *) break;;
8961 esac
8962done
8963cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8964
8965
8966# Only perform the check for file, if the check method requires it
8967test -z "$MAGIC_CMD" && MAGIC_CMD=file
8968case $deplibs_check_method in
8969file_magic*)
8970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8972$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8973if ${lt_cv_path_MAGIC_CMD+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975else
8976 case $MAGIC_CMD in
8977[\\/*] | ?:[\\/]*)
8978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8979 ;;
8980*)
8981 lt_save_MAGIC_CMD="$MAGIC_CMD"
8982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8984 for ac_dir in $ac_dummy; do
8985 IFS="$lt_save_ifs"
8986 test -z "$ac_dir" && ac_dir=.
8987 if test -f $ac_dir/${ac_tool_prefix}file; then
8988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8989 if test -n "$file_magic_test_file"; then
8990 case $deplibs_check_method in
8991 "file_magic "*)
8992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8995 $EGREP "$file_magic_regex" > /dev/null; then
8996 :
8997 else
8998 cat <<_LT_EOF 1>&2
8999
9000*** Warning: the command libtool uses to detect shared libraries,
9001*** $file_magic_cmd, produces output that libtool cannot recognize.
9002*** The result is that libtool may fail to recognize shared libraries
9003*** as such. This will affect the creation of libtool libraries that
9004*** depend on shared libraries, but programs linked with such libtool
9005*** libraries will work regardless of this problem. Nevertheless, you
9006*** may want to report the problem to your system manager and/or to
9007*** bug-libtool@gnu.org
9008
9009_LT_EOF
9010 fi ;;
9011 esac
9012 fi
9013 break
9014 fi
9015 done
9016 IFS="$lt_save_ifs"
9017 MAGIC_CMD="$lt_save_MAGIC_CMD"
9018 ;;
9019esac
9020fi
9021
9022MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9023if test -n "$MAGIC_CMD"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9025$as_echo "$MAGIC_CMD" >&6; }
9026else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028$as_echo "no" >&6; }
9029fi
9030
9031
9032
9033
9034
9035if test -z "$lt_cv_path_MAGIC_CMD"; then
9036 if test -n "$ac_tool_prefix"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9038$as_echo_n "checking for file... " >&6; }
9039if ${lt_cv_path_MAGIC_CMD+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041else
9042 case $MAGIC_CMD in
9043[\\/*] | ?:[\\/]*)
9044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9045 ;;
9046*)
9047 lt_save_MAGIC_CMD="$MAGIC_CMD"
9048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9051 IFS="$lt_save_ifs"
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f $ac_dir/file; then
9054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9057 "file_magic "*)
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9062 :
9063 else
9064 cat <<_LT_EOF 1>&2
9065
9066*** Warning: the command libtool uses to detect shared libraries,
9067*** $file_magic_cmd, produces output that libtool cannot recognize.
9068*** The result is that libtool may fail to recognize shared libraries
9069*** as such. This will affect the creation of libtool libraries that
9070*** depend on shared libraries, but programs linked with such libtool
9071*** libraries will work regardless of this problem. Nevertheless, you
9072*** may want to report the problem to your system manager and/or to
9073*** bug-libtool@gnu.org
9074
9075_LT_EOF
9076 fi ;;
9077 esac
9078 fi
9079 break
9080 fi
9081 done
9082 IFS="$lt_save_ifs"
9083 MAGIC_CMD="$lt_save_MAGIC_CMD"
9084 ;;
9085esac
9086fi
9087
9088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089if test -n "$MAGIC_CMD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9091$as_echo "$MAGIC_CMD" >&6; }
9092else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
9095fi
9096
9097
9098 else
9099 MAGIC_CMD=:
9100 fi
9101fi
9102
9103 fi
9104 ;;
9105esac
9106
9107# Use C for the default configuration in the libtool script
9108
9109lt_save_CC="$CC"
9110ac_ext=c
9111ac_cpp='$CPP $CPPFLAGS'
9112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9114ac_compiler_gnu=$ac_cv_c_compiler_gnu
9115
9116
9117# Source file extension for C test sources.
9118ac_ext=c
9119
9120# Object file extension for compiled C test sources.
9121objext=o
9122objext=$objext
9123
9124# Code to be used in simple compile tests
9125lt_simple_compile_test_code="int some_variable = 0;"
9126
9127# Code to be used in simple link tests
9128lt_simple_link_test_code='int main(){return(0);}'
9129
9130
9131
9132
9133
9134
9135
9136# If no C compiler was specified, use CC.
9137LTCC=${LTCC-"$CC"}
9138
9139# If no C compiler flags were specified, use CFLAGS.
9140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141
9142# Allow CC to be a program name with arguments.
9143compiler=$CC
9144
9145# Save the default compiler, since it gets overwritten when the other
9146# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9147compiler_DEFAULT=$CC
9148
9149# save warnings/boilerplate of simple test code
9150ac_outfile=conftest.$ac_objext
9151echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9152eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153_lt_compiler_boilerplate=`cat conftest.err`
9154$RM conftest*
9155
9156ac_outfile=conftest.$ac_objext
9157echo "$lt_simple_link_test_code" >conftest.$ac_ext
9158eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9159_lt_linker_boilerplate=`cat conftest.err`
9160$RM -r conftest*
9161
9162
9163## CAVEAT EMPTOR:
9164## There is no encapsulation within the following macros, do not change
9165## the running order or otherwise move them around unless you know exactly
9166## what you are doing...
9167if test -n "$compiler"; then
9168
9169lt_prog_compiler_no_builtin_flag=
9170
9171if test "$GCC" = yes; then
9172 case $cc_basename in
9173 nvcc*)
9174 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9175 *)
9176 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9177 esac
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9180$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9181if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183else
9184 lt_cv_prog_compiler_rtti_exceptions=no
9185 ac_outfile=conftest.$ac_objext
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="-fno-rtti -fno-exceptions"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>conftest.err)
9199 ac_status=$?
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_rtti_exceptions=yes
9209 fi
9210 fi
9211 $RM conftest*
9212
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9215$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9216
9217if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9218 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9219else
9220 :
9221fi
9222
9223fi
9224
9225
9226
9227
9228
9229
9230 lt_prog_compiler_wl=
9231lt_prog_compiler_pic=
9232lt_prog_compiler_static=
9233
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9235$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9236
9237 if test "$GCC" = yes; then
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_static='-static'
9240
9241 case $host_os in
9242 aix*)
9243 # All AIX code is PIC.
9244 if test "$host_cpu" = ia64; then
9245 # AIX 5 now supports IA64 processor
9246 lt_prog_compiler_static='-Bstatic'
9247 fi
9248 lt_prog_compiler_pic='-fPIC'
9249 ;;
9250
9251 amigaos*)
9252 case $host_cpu in
9253 powerpc)
9254 # see comment about AmigaOS4 .so support
9255 lt_prog_compiler_pic='-fPIC'
9256 ;;
9257 m68k)
9258 # FIXME: we need at least 68020 code to build shared libraries, but
9259 # adding the `-m68020' flag to GCC prevents building anything better,
9260 # like `-m68040'.
9261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9262 ;;
9263 esac
9264 ;;
9265
9266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9267 # PIC is the default for these OSes.
9268 ;;
9269
9270 mingw* | cygwin* | pw32* | os2* | cegcc*)
9271 # This hack is so that the source file can tell whether it is being
9272 # built for inclusion in a dll (and should export symbols for example).
9273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9274 # (--disable-auto-import) libraries
9275 lt_prog_compiler_pic='-DDLL_EXPORT'
9276 ;;
9277
9278 darwin* | rhapsody*)
9279 # PIC is the default on this platform
9280 # Common symbols not allowed in MH_DYLIB files
9281 lt_prog_compiler_pic='-fno-common'
9282 ;;
9283
9284 haiku*)
9285 # PIC is the default for Haiku.
9286 # The "-static" flag exists, but is broken.
9287 lt_prog_compiler_static=
9288 ;;
9289
9290 hpux*)
9291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9293 # sets the default TLS model and affects inlining.
9294 case $host_cpu in
9295 hppa*64*)
9296 # +Z the default
9297 ;;
9298 *)
9299 lt_prog_compiler_pic='-fPIC'
9300 ;;
9301 esac
9302 ;;
9303
9304 interix[3-9]*)
9305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9306 # Instead, we relocate shared libraries at runtime.
9307 ;;
9308
9309 msdosdjgpp*)
9310 # Just because we use GCC doesn't mean we suddenly get shared libraries
9311 # on systems that don't support them.
9312 lt_prog_compiler_can_build_shared=no
9313 enable_shared=no
9314 ;;
9315
9316 *nto* | *qnx*)
9317 # QNX uses GNU C++, but need to define -shared option too, otherwise
9318 # it will coredump.
9319 lt_prog_compiler_pic='-fPIC -shared'
9320 ;;
9321
9322 sysv4*MP*)
9323 if test -d /usr/nec; then
9324 lt_prog_compiler_pic=-Kconform_pic
9325 fi
9326 ;;
9327
9328 *)
9329 lt_prog_compiler_pic='-fPIC'
9330 ;;
9331 esac
9332
9333 case $cc_basename in
9334 nvcc*) # Cuda Compiler Driver 2.2
9335 lt_prog_compiler_wl='-Xlinker '
9336 lt_prog_compiler_pic='-Xcompiler -fPIC'
9337 ;;
9338 esac
9339 else
9340 # PORTME Check for flag to pass linker flags through the system compiler.
9341 case $host_os in
9342 aix*)
9343 lt_prog_compiler_wl='-Wl,'
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 now supports IA64 processor
9346 lt_prog_compiler_static='-Bstatic'
9347 else
9348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9349 fi
9350 ;;
9351
9352 mingw* | cygwin* | pw32* | os2* | cegcc*)
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 lt_prog_compiler_pic='-DDLL_EXPORT'
9356 ;;
9357
9358 hpux9* | hpux10* | hpux11*)
9359 lt_prog_compiler_wl='-Wl,'
9360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361 # not for PA HP-UX.
9362 case $host_cpu in
9363 hppa*64*|ia64*)
9364 # +Z the default
9365 ;;
9366 *)
9367 lt_prog_compiler_pic='+Z'
9368 ;;
9369 esac
9370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371 lt_prog_compiler_static='${wl}-a ${wl}archive'
9372 ;;
9373
9374 irix5* | irix6* | nonstopux*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC (with -KPIC) is the default.
9377 lt_prog_compiler_static='-non_shared'
9378 ;;
9379
9380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9381 case $cc_basename in
9382 # old Intel for x86_64 which still supported -KPIC.
9383 ecc*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-static'
9387 ;;
9388 # icc used to be incompatible with GCC.
9389 # ICC 10 doesn't accept -KPIC any more.
9390 icc* | ifort*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9394 ;;
9395 # Lahey Fortran 8.1.
9396 lf95*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='--shared'
9399 lt_prog_compiler_static='--static'
9400 ;;
9401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9402 # Portland Group compilers (*not* the Pentium gcc compiler,
9403 # which looks to be a dead project)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-fpic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408 ccc*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # All Alpha code is PIC.
9411 lt_prog_compiler_static='-non_shared'
9412 ;;
9413 xl* | bgxl* | bgf* | mpixl*)
9414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-qpic'
9417 lt_prog_compiler_static='-qstaticlink'
9418 ;;
9419 *)
9420 case `$CC -V 2>&1 | sed 5q` in
9421 *Sun\ F* | *Sun*Fortran*)
9422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 lt_prog_compiler_wl=''
9426 ;;
9427 *Sun\ C*)
9428 # Sun C 5.9
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl='-Wl,'
9432 ;;
9433 esac
9434 ;;
9435 esac
9436 ;;
9437
9438 newsos6)
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9441 ;;
9442
9443 *nto* | *qnx*)
9444 # QNX uses GNU C++, but need to define -shared option too, otherwise
9445 # it will coredump.
9446 lt_prog_compiler_pic='-fPIC -shared'
9447 ;;
9448
9449 osf3* | osf4* | osf5*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # All OSF/1 code is PIC.
9452 lt_prog_compiler_static='-non_shared'
9453 ;;
9454
9455 rdos*)
9456 lt_prog_compiler_static='-non_shared'
9457 ;;
9458
9459 solaris*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 case $cc_basename in
9463 f77* | f90* | f95*)
9464 lt_prog_compiler_wl='-Qoption ld ';;
9465 *)
9466 lt_prog_compiler_wl='-Wl,';;
9467 esac
9468 ;;
9469
9470 sunos4*)
9471 lt_prog_compiler_wl='-Qoption ld '
9472 lt_prog_compiler_pic='-PIC'
9473 lt_prog_compiler_static='-Bstatic'
9474 ;;
9475
9476 sysv4 | sysv4.2uw2* | sysv4.3*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9480 ;;
9481
9482 sysv4*MP*)
9483 if test -d /usr/nec ;then
9484 lt_prog_compiler_pic='-Kconform_pic'
9485 lt_prog_compiler_static='-Bstatic'
9486 fi
9487 ;;
9488
9489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-KPIC'
9492 lt_prog_compiler_static='-Bstatic'
9493 ;;
9494
9495 unicos*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_can_build_shared=no
9498 ;;
9499
9500 uts4*)
9501 lt_prog_compiler_pic='-pic'
9502 lt_prog_compiler_static='-Bstatic'
9503 ;;
9504
9505 *)
9506 lt_prog_compiler_can_build_shared=no
9507 ;;
9508 esac
9509 fi
9510
9511case $host_os in
9512 # For platforms which do not support PIC, -DPIC is meaningless:
9513 *djgpp*)
9514 lt_prog_compiler_pic=
9515 ;;
9516 *)
9517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9518 ;;
9519esac
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9521$as_echo "$lt_prog_compiler_pic" >&6; }
9522
9523
9524
9525
9526
9527
9528#
9529# Check to make sure the PIC flag actually works.
9530#
9531if test -n "$lt_prog_compiler_pic"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9534if ${lt_cv_prog_compiler_pic_works+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536else
9537 lt_cv_prog_compiler_pic_works=no
9538 ac_outfile=conftest.$ac_objext
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 # The option is referenced via a variable to avoid confusing sed.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551 (eval "$lt_compile" 2>conftest.err)
9552 ac_status=$?
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 if (exit $ac_status) && test -s "$ac_outfile"; then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings other than the usual output.
9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_pic_works=yes
9562 fi
9563 fi
9564 $RM conftest*
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9568$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9569
9570if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9571 case $lt_prog_compiler_pic in
9572 "" | " "*) ;;
9573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9574 esac
9575else
9576 lt_prog_compiler_pic=
9577 lt_prog_compiler_can_build_shared=no
9578fi
9579
9580fi
9581
9582
9583
9584
9585
9586
9587#
9588# Check to make sure the static flag actually works.
9589#
9590wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9592$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9593if ${lt_cv_prog_compiler_static_works+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595else
9596 lt_cv_prog_compiler_static_works=no
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
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_static_works=yes
9610 fi
9611 else
9612 lt_cv_prog_compiler_static_works=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_static_works" >&5
9620$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9621
9622if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9623 :
9624else
9625 lt_prog_compiler_static=
9626fi
9627
9628
9629
9630
9631
9632
9633
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9635$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9636if ${lt_cv_prog_compiler_c_o+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639 lt_cv_prog_compiler_c_o=no
9640 $RM -r conftest 2>/dev/null
9641 mkdir conftest
9642 cd conftest
9643 mkdir out
9644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9645
9646 lt_compiler_flag="-o out/conftest2.$ac_objext"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 lt_compile=`echo "$ac_compile" | $SED \
9652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9654 -e 's:$: $lt_compiler_flag:'`
9655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9656 (eval "$lt_compile" 2>out/conftest.err)
9657 ac_status=$?
9658 cat out/conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9661 then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_c_o=yes
9668 fi
9669 fi
9670 chmod u+w . 2>&5
9671 $RM conftest*
9672 # SGI C++ compiler will create directory out/ii_files/ for
9673 # template instantiation
9674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9675 $RM out/* && rmdir out
9676 cd ..
9677 $RM -r conftest
9678 $RM conftest*
9679
9680fi
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9682$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9683
9684
9685
9686
9687
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9690$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9691if ${lt_cv_prog_compiler_c_o+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693else
9694 lt_cv_prog_compiler_c_o=no
9695 $RM -r conftest 2>/dev/null
9696 mkdir conftest
9697 cd conftest
9698 mkdir out
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9700
9701 lt_compiler_flag="-o out/conftest2.$ac_objext"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 lt_compile=`echo "$ac_compile" | $SED \
9707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9709 -e 's:$: $lt_compiler_flag:'`
9710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9711 (eval "$lt_compile" 2>out/conftest.err)
9712 ac_status=$?
9713 cat out/conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9716 then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_c_o=yes
9723 fi
9724 fi
9725 chmod u+w . 2>&5
9726 $RM conftest*
9727 # SGI C++ compiler will create directory out/ii_files/ for
9728 # template instantiation
9729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9730 $RM out/* && rmdir out
9731 cd ..
9732 $RM -r conftest
9733 $RM conftest*
9734
9735fi
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9737$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9738
9739
9740
9741
9742hard_links="nottested"
9743if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9744 # do not overwrite the value of need_locks provided by the user
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9746$as_echo_n "checking if we can lock with hard links... " >&6; }
9747 hard_links=yes
9748 $RM conftest*
9749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9750 touch conftest.a
9751 ln conftest.a conftest.b 2>&5 || hard_links=no
9752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9754$as_echo "$hard_links" >&6; }
9755 if test "$hard_links" = no; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9757$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9758 need_locks=warn
9759 fi
9760else
9761 need_locks=no
9762fi
9763
9764
9765
9766
9767
9768
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9770$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9771
9772 runpath_var=
9773 allow_undefined_flag=
9774 always_export_symbols=no
9775 archive_cmds=
9776 archive_expsym_cmds=
9777 compiler_needs_object=no
9778 enable_shared_with_static_runtimes=no
9779 export_dynamic_flag_spec=
9780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9781 hardcode_automatic=no
9782 hardcode_direct=no
9783 hardcode_direct_absolute=no
9784 hardcode_libdir_flag_spec=
9785 hardcode_libdir_flag_spec_ld=
9786 hardcode_libdir_separator=
9787 hardcode_minus_L=no
9788 hardcode_shlibpath_var=unsupported
9789 inherit_rpath=no
9790 link_all_deplibs=unknown
9791 module_cmds=
9792 module_expsym_cmds=
9793 old_archive_from_new_cmds=
9794 old_archive_from_expsyms_cmds=
9795 thread_safe_flag_spec=
9796 whole_archive_flag_spec=
9797 # include_expsyms should be a list of space-separated symbols to be *always*
9798 # included in the symbol list
9799 include_expsyms=
9800 # exclude_expsyms can be an extended regexp of symbols to exclude
9801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9803 # as well as any symbol that contains `d'.
9804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9806 # platforms (ab)use it in PIC code, but their linkers get confused if
9807 # the symbol is explicitly referenced. Since portable code cannot
9808 # rely on this symbol name, it's probably fine to never include it in
9809 # preloaded symbol tables.
9810 # Exclude shared library initialization/finalization symbols.
9811 extract_expsyms_cmds=
9812
9813 case $host_os in
9814 cygwin* | mingw* | pw32* | cegcc*)
9815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9816 # When not using gcc, we currently assume that we are using
9817 # Microsoft Visual C++.
9818 if test "$GCC" != yes; then
9819 with_gnu_ld=no
9820 fi
9821 ;;
9822 interix*)
9823 # we just hope/assume this is gcc and not c89 (= MSVC++)
9824 with_gnu_ld=yes
9825 ;;
9826 openbsd*)
9827 with_gnu_ld=no
9828 ;;
9829 esac
9830
9831 ld_shlibs=yes
9832
9833 # On some targets, GNU ld is compatible enough with the native linker
9834 # that we're better off using the native interface for both.
9835 lt_use_gnu_ld_interface=no
9836 if test "$with_gnu_ld" = yes; then
9837 case $host_os in
9838 aix*)
9839 # The AIX port of GNU ld has always aspired to compatibility
9840 # with the native linker. However, as the warning in the GNU ld
9841 # block says, versions before 2.19.5* couldn't really create working
9842 # shared libraries, regardless of the interface used.
9843 case `$LD -v 2>&1` in
9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9847 *)
9848 lt_use_gnu_ld_interface=yes
9849 ;;
9850 esac
9851 ;;
9852 *)
9853 lt_use_gnu_ld_interface=yes
9854 ;;
9855 esac
9856 fi
9857
9858 if test "$lt_use_gnu_ld_interface" = yes; then
9859 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 wlarc='${wl}'
9861
9862 # Set some defaults for GNU ld with shared library support. These
9863 # are reset later if shared libraries are not supported. Putting them
9864 # here allows them to be overridden if necessary.
9865 runpath_var=LD_RUN_PATH
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867 export_dynamic_flag_spec='${wl}--export-dynamic'
9868 # ancient GNU ld didn't support --whole-archive et. al.
9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9871 else
9872 whole_archive_flag_spec=
9873 fi
9874 supports_anon_versioning=no
9875 case `$LD -v 2>&1` in
9876 *GNU\ gold*) supports_anon_versioning=yes ;;
9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9880 *\ 2.11.*) ;; # other 2.11 versions
9881 *) supports_anon_versioning=yes ;;
9882 esac
9883
9884 # See if GNU ld supports shared libraries.
9885 case $host_os in
9886 aix[3-9]*)
9887 # On AIX/PPC, the GNU linker is very broken
9888 if test "$host_cpu" != ia64; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9891
9892*** Warning: the GNU linker, at least up to release 2.19, is reported
9893*** to be unable to reliably create shared libraries on AIX.
9894*** Therefore, libtool is disabling shared libraries support. If you
9895*** really care for shared libraries, you may want to install binutils
9896*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9897*** You will then need to restart the configuration process.
9898
9899_LT_EOF
9900 fi
9901 ;;
9902
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 archive_expsym_cmds=''
9909 ;;
9910 m68k)
9911 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)'
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9914 ;;
9915 esac
9916 ;;
9917
9918 beos*)
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 allow_undefined_flag=unsupported
9921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9922 # support --undefined. This deserves some investigation. FIXME
9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
9928
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9931 # as there is no search path for DLLs.
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 export_dynamic_flag_spec='${wl}--export-all-symbols'
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=no
9936 enable_shared_with_static_runtimes=yes
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938
9939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941 # If the export-symbols file already is a .def file (1st line
9942 # is EXPORTS), use it as is; otherwise, prepend...
9943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9944 cp $export_symbols $output_objdir/$soname.def;
9945 else
9946 echo EXPORTS > $output_objdir/$soname.def;
9947 cat $export_symbols >> $output_objdir/$soname.def;
9948 fi~
9949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9950 else
9951 ld_shlibs=no
9952 fi
9953 ;;
9954
9955 haiku*)
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 link_all_deplibs=yes
9958 ;;
9959
9960 interix[3-9]*)
9961 hardcode_direct=no
9962 hardcode_shlibpath_var=no
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 export_dynamic_flag_spec='${wl}-E'
9965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9966 # Instead, shared libraries are loaded at an image base (0x10000000 by
9967 # default) and relocated if they conflict, which is a slow very memory
9968 # consuming and fragmenting process. To avoid this, we pick a random,
9969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9972 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'
9973 ;;
9974
9975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9976 tmp_diet=no
9977 if test "$host_os" = linux-dietlibc; then
9978 case $cc_basename in
9979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9980 esac
9981 fi
9982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9983 && test "$tmp_diet" = no
9984 then
9985 tmp_addflag=' $pic_flag'
9986 tmp_sharedflag='-shared'
9987 case $cc_basename,$host_cpu in
9988 pgcc*) # Portland Group C compiler
9989 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'
9990 tmp_addflag=' $pic_flag'
9991 ;;
9992 pgf77* | pgf90* | pgf95* | pgfortran*)
9993 # Portland Group f77 and f90 compilers
9994 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'
9995 tmp_addflag=' $pic_flag -Mnomain' ;;
9996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9997 tmp_addflag=' -i_dynamic' ;;
9998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9999 tmp_addflag=' -i_dynamic -nofor_main' ;;
10000 ifc* | ifort*) # Intel Fortran compiler
10001 tmp_addflag=' -nofor_main' ;;
10002 lf95*) # Lahey Fortran 8.1
10003 whole_archive_flag_spec=
10004 tmp_sharedflag='--shared' ;;
10005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10006 tmp_sharedflag='-qmkshrobj'
10007 tmp_addflag= ;;
10008 nvcc*) # Cuda Compiler Driver 2.2
10009 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'
10010 compiler_needs_object=yes
10011 ;;
10012 esac
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ C*) # Sun C 5.9
10015 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'
10016 compiler_needs_object=yes
10017 tmp_sharedflag='-G' ;;
10018 *Sun\ F*) # Sun Fortran 8.3
10019 tmp_sharedflag='-G' ;;
10020 esac
10021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022
10023 if test "x$supports_anon_versioning" = xyes; then
10024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10026 echo "local: *; };" >> $output_objdir/$libname.ver~
10027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10028 fi
10029
10030 case $cc_basename in
10031 xlf* | bgf* | bgxlf* | mpixlf*)
10032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10034 hardcode_libdir_flag_spec=
10035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10037 if test "x$supports_anon_versioning" = xyes; then
10038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10040 echo "local: *; };" >> $output_objdir/$libname.ver~
10041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10042 fi
10043 ;;
10044 esac
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
10049
10050 netbsd*)
10051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053 wlarc=
10054 else
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10057 fi
10058 ;;
10059
10060 solaris*)
10061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10062 ld_shlibs=no
10063 cat <<_LT_EOF 1>&2
10064
10065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10066*** create shared libraries on Solaris systems. Therefore, libtool
10067*** is disabling shared libraries support. We urge you to upgrade GNU
10068*** binutils to release 2.9.1 or newer. Another option is to modify
10069*** your PATH or compiler configuration so that the native linker is
10070*** used, and then restart.
10071
10072_LT_EOF
10073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076 else
10077 ld_shlibs=no
10078 fi
10079 ;;
10080
10081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10082 case `$LD -v 2>&1` in
10083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10084 ld_shlibs=no
10085 cat <<_LT_EOF 1>&2
10086
10087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10088*** reliably create shared libraries on SCO systems. Therefore, libtool
10089*** is disabling shared libraries support. We urge you to upgrade GNU
10090*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10091*** your PATH or compiler configuration so that the native linker is
10092*** used, and then restart.
10093
10094_LT_EOF
10095 ;;
10096 *)
10097 # For security reasons, it is highly recommended that you always
10098 # use absolute paths for naming shared libraries, and exclude the
10099 # DT_RUNPATH tag from executables and libraries. But doing so
10100 # requires that you compile everything twice, which is a pain.
10101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 else
10106 ld_shlibs=no
10107 fi
10108 ;;
10109 esac
10110 ;;
10111
10112 sunos4*)
10113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 wlarc=
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 *)
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10123 else
10124 ld_shlibs=no
10125 fi
10126 ;;
10127 esac
10128
10129 if test "$ld_shlibs" = no; then
10130 runpath_var=
10131 hardcode_libdir_flag_spec=
10132 export_dynamic_flag_spec=
10133 whole_archive_flag_spec=
10134 fi
10135 else
10136 # PORTME fill in a description of your system's linker (not GNU ld)
10137 case $host_os in
10138 aix3*)
10139 allow_undefined_flag=unsupported
10140 always_export_symbols=yes
10141 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'
10142 # Note: this linker hardcodes the directories in LIBPATH if there
10143 # are no directories specified by -L.
10144 hardcode_minus_L=yes
10145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10146 # Neither direct hardcoding nor static linking is supported with a
10147 # broken collect2.
10148 hardcode_direct=unsupported
10149 fi
10150 ;;
10151
10152 aix[4-9]*)
10153 if test "$host_cpu" = ia64; then
10154 # On IA64, the linker does run time linking by default, so we don't
10155 # have to do anything special.
10156 aix_use_runtimelinking=no
10157 exp_sym_flag='-Bexport'
10158 no_entry_flag=""
10159 else
10160 # If we're using GNU nm, then we don't want the "-C" option.
10161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10162 # Also, AIX nm treats weak defined symbols like other global
10163 # defined symbols, whereas GNU nm marks them as "W".
10164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10165 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'
10166 else
10167 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'
10168 fi
10169 aix_use_runtimelinking=no
10170
10171 # Test if we are trying to use run time linking or normal
10172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10173 # need to do runtime linking.
10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10175 for ld_flag in $LDFLAGS; do
10176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10177 aix_use_runtimelinking=yes
10178 break
10179 fi
10180 done
10181 ;;
10182 esac
10183
10184 exp_sym_flag='-bexport'
10185 no_entry_flag='-bnoentry'
10186 fi
10187
10188 # When large executables or shared objects are built, AIX ld can
10189 # have problems creating the table of contents. If linking a library
10190 # or program results in "error TOC overflow" add -mminimal-toc to
10191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10193
10194 archive_cmds=''
10195 hardcode_direct=yes
10196 hardcode_direct_absolute=yes
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 file_list_spec='${wl}-f,'
10200
10201 if test "$GCC" = yes; then
10202 case $host_os in aix4.[012]|aix4.[012].*)
10203 # We only want to do this on AIX 4.2 and lower, the check
10204 # below for broken collect2 doesn't work under 4.3+
10205 collect2name=`${CC} -print-prog-name=collect2`
10206 if test -f "$collect2name" &&
10207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10208 then
10209 # We have reworked collect2
10210 :
10211 else
10212 # We have old collect2
10213 hardcode_direct=unsupported
10214 # It fails to find uninstalled libraries when the uninstalled
10215 # path is not listed in the libpath. Setting hardcode_minus_L
10216 # to unsupported forces relinking
10217 hardcode_minus_L=yes
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_libdir_separator=
10220 fi
10221 ;;
10222 esac
10223 shared_flag='-shared'
10224 if test "$aix_use_runtimelinking" = yes; then
10225 shared_flag="$shared_flag "'${wl}-G'
10226 fi
10227 else
10228 # not using gcc
10229 if test "$host_cpu" = ia64; then
10230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10231 # chokes on -Wl,-G. The following line is correct:
10232 shared_flag='-G'
10233 else
10234 if test "$aix_use_runtimelinking" = yes; then
10235 shared_flag='${wl}-G'
10236 else
10237 shared_flag='${wl}-bM:SRE'
10238 fi
10239 fi
10240 fi
10241
10242 export_dynamic_flag_spec='${wl}-bexpall'
10243 # It seems that -bexpall does not export symbols beginning with
10244 # underscore (_), so it is better to generate a list of symbols to export.
10245 always_export_symbols=yes
10246 if test "$aix_use_runtimelinking" = yes; then
10247 # Warning - without using the other runtime loading flags (-brtl),
10248 # -berok will link without error, but may produce a broken library.
10249 allow_undefined_flag='-berok'
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h. */
10254
10255int
10256main ()
10257{
10258
10259 ;
10260 return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_link "$LINENO"; then :
10264
10265lt_aix_libpath_sed='
10266 /Import File Strings/,/^$/ {
10267 /^0/ {
10268 s/^0 *\(.*\)$/\1/
10269 p
10270 }
10271 }'
10272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273# Check for a 64-bit object if we didn't find anything.
10274if test -z "$aix_libpath"; then
10275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276fi
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10281
10282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10283 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"
10284 else
10285 if test "$host_cpu" = ia64; then
10286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10287 allow_undefined_flag="-z nodefs"
10288 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"
10289 else
10290 # Determine the default libpath from the value encoded in an
10291 # empty executable.
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h. */
10294
10295int
10296main ()
10297{
10298
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303if ac_fn_c_try_link "$LINENO"; then :
10304
10305lt_aix_libpath_sed='
10306 /Import File Strings/,/^$/ {
10307 /^0/ {
10308 s/^0 *\(.*\)$/\1/
10309 p
10310 }
10311 }'
10312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10313# Check for a 64-bit object if we didn't find anything.
10314if test -z "$aix_libpath"; then
10315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10316fi
10317fi
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10321
10322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10323 # Warning - without using the other run time loading flags,
10324 # -berok will link without error, but may produce a broken library.
10325 no_undefined_flag=' ${wl}-bernotok'
10326 allow_undefined_flag=' ${wl}-berok'
10327 if test "$with_gnu_ld" = yes; then
10328 # We only use this code for GNU lds that support --whole-archive.
10329 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10330 else
10331 # Exported symbols can be pulled into shared objects from archives
10332 whole_archive_flag_spec='$convenience'
10333 fi
10334 archive_cmds_need_lc=yes
10335 # This is similar to how AIX traditionally builds its shared libraries.
10336 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'
10337 fi
10338 fi
10339 ;;
10340
10341 amigaos*)
10342 case $host_cpu in
10343 powerpc)
10344 # see comment about AmigaOS4 .so support
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 archive_expsym_cmds=''
10347 ;;
10348 m68k)
10349 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)'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_minus_L=yes
10352 ;;
10353 esac
10354 ;;
10355
10356 bsdi[45]*)
10357 export_dynamic_flag_spec=-rdynamic
10358 ;;
10359
10360 cygwin* | mingw* | pw32* | cegcc*)
10361 # When not using gcc, we currently assume that we are using
10362 # Microsoft Visual C++.
10363 # hardcode_libdir_flag_spec is actually meaningless, as there is
10364 # no search path for DLLs.
10365 hardcode_libdir_flag_spec=' '
10366 allow_undefined_flag=unsupported
10367 # Tell ltmain to make .lib files, not .a files.
10368 libext=lib
10369 # Tell ltmain to make .dll files, not .so files.
10370 shrext_cmds=".dll"
10371 # FIXME: Setting linknames here is a bad hack.
10372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10373 # The linker will automatically build a .lib file if we build a DLL.
10374 old_archive_from_new_cmds='true'
10375 # FIXME: Should let the user specify the lib program.
10376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10377 fix_srcfile_path='`cygpath -w "$srcfile"`'
10378 enable_shared_with_static_runtimes=yes
10379 ;;
10380
10381 darwin* | rhapsody*)
10382
10383
10384 archive_cmds_need_lc=no
10385 hardcode_direct=no
10386 hardcode_automatic=yes
10387 hardcode_shlibpath_var=unsupported
10388 if test "$lt_cv_ld_force_load" = "yes"; then
10389 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\"`'
10390 else
10391 whole_archive_flag_spec=''
10392 fi
10393 link_all_deplibs=yes
10394 allow_undefined_flag="$_lt_dar_allow_undefined"
10395 case $cc_basename in
10396 ifort*) _lt_dar_can_shared=yes ;;
10397 *) _lt_dar_can_shared=$GCC ;;
10398 esac
10399 if test "$_lt_dar_can_shared" = "yes"; then
10400 output_verbose_link_cmd=func_echo_all
10401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10403 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}"
10404 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}"
10405
10406 else
10407 ld_shlibs=no
10408 fi
10409
10410 ;;
10411
10412 dgux*)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10419 # support. Future versions do this automatically, but an explicit c++rt0.o
10420 # does not break anything, and helps significantly (at the cost of a little
10421 # extra space).
10422 freebsd2.2*)
10423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10424 hardcode_libdir_flag_spec='-R$libdir'
10425 hardcode_direct=yes
10426 hardcode_shlibpath_var=no
10427 ;;
10428
10429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10430 freebsd2.*)
10431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_direct=yes
10433 hardcode_minus_L=yes
10434 hardcode_shlibpath_var=no
10435 ;;
10436
10437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10438 freebsd* | dragonfly*)
10439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10440 hardcode_libdir_flag_spec='-R$libdir'
10441 hardcode_direct=yes
10442 hardcode_shlibpath_var=no
10443 ;;
10444
10445 hpux9*)
10446 if test "$GCC" = yes; then
10447 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'
10448 else
10449 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'
10450 fi
10451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
10454
10455 # hardcode_minus_L: Not really in the search PATH,
10456 # but as the default location of the library.
10457 hardcode_minus_L=yes
10458 export_dynamic_flag_spec='${wl}-E'
10459 ;;
10460
10461 hpux10*)
10462 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10464 else
10465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466 fi
10467 if test "$with_gnu_ld" = no; then
10468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10469 hardcode_libdir_flag_spec_ld='+b $libdir'
10470 hardcode_libdir_separator=:
10471 hardcode_direct=yes
10472 hardcode_direct_absolute=yes
10473 export_dynamic_flag_spec='${wl}-E'
10474 # hardcode_minus_L: Not really in the search PATH,
10475 # but as the default location of the library.
10476 hardcode_minus_L=yes
10477 fi
10478 ;;
10479
10480 hpux11*)
10481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10482 case $host_cpu in
10483 hppa*64*)
10484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 ;;
10486 ia64*)
10487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10488 ;;
10489 *)
10490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10491 ;;
10492 esac
10493 else
10494 case $host_cpu in
10495 hppa*64*)
10496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10497 ;;
10498 ia64*)
10499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10500 ;;
10501 *)
10502
10503 # Older versions of the 11.00 compiler do not understand -b yet
10504 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10506$as_echo_n "checking if $CC understands -b... " >&6; }
10507if ${lt_cv_prog_compiler__b+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 lt_cv_prog_compiler__b=no
10511 save_LDFLAGS="$LDFLAGS"
10512 LDFLAGS="$LDFLAGS -b"
10513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10515 # The linker can only warn and ignore the option if not recognized
10516 # So say no if there are warnings
10517 if test -s conftest.err; then
10518 # Append any errors to the config.log.
10519 cat conftest.err 1>&5
10520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10522 if diff conftest.exp conftest.er2 >/dev/null; then
10523 lt_cv_prog_compiler__b=yes
10524 fi
10525 else
10526 lt_cv_prog_compiler__b=yes
10527 fi
10528 fi
10529 $RM -r conftest*
10530 LDFLAGS="$save_LDFLAGS"
10531
10532fi
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10534$as_echo "$lt_cv_prog_compiler__b" >&6; }
10535
10536if test x"$lt_cv_prog_compiler__b" = xyes; then
10537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10538else
10539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10540fi
10541
10542 ;;
10543 esac
10544 fi
10545 if test "$with_gnu_ld" = no; then
10546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10547 hardcode_libdir_separator=:
10548
10549 case $host_cpu in
10550 hppa*64*|ia64*)
10551 hardcode_direct=no
10552 hardcode_shlibpath_var=no
10553 ;;
10554 *)
10555 hardcode_direct=yes
10556 hardcode_direct_absolute=yes
10557 export_dynamic_flag_spec='${wl}-E'
10558
10559 # hardcode_minus_L: Not really in the search PATH,
10560 # but as the default location of the library.
10561 hardcode_minus_L=yes
10562 ;;
10563 esac
10564 fi
10565 ;;
10566
10567 irix5* | irix6* | nonstopux*)
10568 if test "$GCC" = yes; then
10569 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'
10570 # Try to use the -exported_symbol ld option, if it does not
10571 # work, assume that -exports_file does not work either and
10572 # implicitly export all symbols.
10573 save_LDFLAGS="$LDFLAGS"
10574 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h. */
10577int foo(void) {}
10578_ACEOF
10579if ac_fn_c_try_link "$LINENO"; then :
10580 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'
10581
10582fi
10583rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LDFLAGS="$save_LDFLAGS"
10586 else
10587 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'
10588 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'
10589 fi
10590 archive_cmds_need_lc='no'
10591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592 hardcode_libdir_separator=:
10593 inherit_rpath=yes
10594 link_all_deplibs=yes
10595 ;;
10596
10597 netbsd*)
10598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10600 else
10601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10602 fi
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10606 ;;
10607
10608 newsos6)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=yes
10611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10612 hardcode_libdir_separator=:
10613 hardcode_shlibpath_var=no
10614 ;;
10615
10616 *nto* | *qnx*)
10617 ;;
10618
10619 openbsd*)
10620 if test -f /usr/libexec/ld.so; then
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 hardcode_direct_absolute=yes
10624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10628 export_dynamic_flag_spec='${wl}-E'
10629 else
10630 case $host_os in
10631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_libdir_flag_spec='-R$libdir'
10634 ;;
10635 *)
10636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10638 ;;
10639 esac
10640 fi
10641 else
10642 ld_shlibs=no
10643 fi
10644 ;;
10645
10646 os2*)
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_minus_L=yes
10649 allow_undefined_flag=unsupported
10650 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'
10651 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10652 ;;
10653
10654 osf3*)
10655 if test "$GCC" = yes; then
10656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10657 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'
10658 else
10659 allow_undefined_flag=' -expect_unresolved \*'
10660 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'
10661 fi
10662 archive_cmds_need_lc='no'
10663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10664 hardcode_libdir_separator=:
10665 ;;
10666
10667 osf4* | osf5*) # as osf3* with the addition of -msym flag
10668 if test "$GCC" = yes; then
10669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10670 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'
10671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10672 else
10673 allow_undefined_flag=' -expect_unresolved \*'
10674 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'
10675 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~
10676 $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'
10677
10678 # Both c and cxx compiler support -rpath directly
10679 hardcode_libdir_flag_spec='-rpath $libdir'
10680 fi
10681 archive_cmds_need_lc='no'
10682 hardcode_libdir_separator=:
10683 ;;
10684
10685 solaris*)
10686 no_undefined_flag=' -z defs'
10687 if test "$GCC" = yes; then
10688 wlarc='${wl}'
10689 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10691 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10692 else
10693 case `$CC -V 2>&1` in
10694 *"Compilers 5.0"*)
10695 wlarc=''
10696 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10698 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10699 ;;
10700 *)
10701 wlarc='${wl}'
10702 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10704 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10705 ;;
10706 esac
10707 fi
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 hardcode_shlibpath_var=no
10710 case $host_os in
10711 solaris2.[0-5] | solaris2.[0-5].*) ;;
10712 *)
10713 # The compiler driver will combine and reorder linker options,
10714 # but understands `-z linker_flag'. GCC discards it without `$wl',
10715 # but is careful enough not to reorder.
10716 # Supported since Solaris 2.6 (maybe 2.5.1?)
10717 if test "$GCC" = yes; then
10718 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10719 else
10720 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10721 fi
10722 ;;
10723 esac
10724 link_all_deplibs=yes
10725 ;;
10726
10727 sunos4*)
10728 if test "x$host_vendor" = xsequent; then
10729 # Use $CC to link under sequent, because it throws in some extra .o
10730 # files that make .init and .fini sections work.
10731 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10734 fi
10735 hardcode_libdir_flag_spec='-L$libdir'
10736 hardcode_direct=yes
10737 hardcode_minus_L=yes
10738 hardcode_shlibpath_var=no
10739 ;;
10740
10741 sysv4)
10742 case $host_vendor in
10743 sni)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=yes # is this really true???
10746 ;;
10747 siemens)
10748 ## LD is ld it makes a PLAMLIB
10749 ## CC just makes a GrossModule.
10750 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10751 reload_cmds='$CC -r -o $output$reload_objs'
10752 hardcode_direct=no
10753 ;;
10754 motorola)
10755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10757 ;;
10758 esac
10759 runpath_var='LD_RUN_PATH'
10760 hardcode_shlibpath_var=no
10761 ;;
10762
10763 sysv4.3*)
10764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765 hardcode_shlibpath_var=no
10766 export_dynamic_flag_spec='-Bexport'
10767 ;;
10768
10769 sysv4*MP*)
10770 if test -d /usr/nec; then
10771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_shlibpath_var=no
10773 runpath_var=LD_RUN_PATH
10774 hardcode_runpath_var=yes
10775 ld_shlibs=yes
10776 fi
10777 ;;
10778
10779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10780 no_undefined_flag='${wl}-z,text'
10781 archive_cmds_need_lc=no
10782 hardcode_shlibpath_var=no
10783 runpath_var='LD_RUN_PATH'
10784
10785 if test "$GCC" = yes; then
10786 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 else
10789 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 fi
10792 ;;
10793
10794 sysv5* | sco3.2v5* | sco5v6*)
10795 # Note: We can NOT use -z defs as we might desire, because we do not
10796 # link with -lc, and that would cause any symbols used from libc to
10797 # always be unresolved, which means just about no library would
10798 # ever link correctly. If we're not using GNU ld we use -z text
10799 # though, which does catch some bad symbols but isn't as heavy-handed
10800 # as -z defs.
10801 no_undefined_flag='${wl}-z,text'
10802 allow_undefined_flag='${wl}-z,nodefs'
10803 archive_cmds_need_lc=no
10804 hardcode_shlibpath_var=no
10805 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10806 hardcode_libdir_separator=':'
10807 link_all_deplibs=yes
10808 export_dynamic_flag_spec='${wl}-Bexport'
10809 runpath_var='LD_RUN_PATH'
10810
10811 if test "$GCC" = yes; then
10812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 else
10815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 fi
10818 ;;
10819
10820 uts4*)
10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_libdir_flag_spec='-L$libdir'
10823 hardcode_shlibpath_var=no
10824 ;;
10825
10826 *)
10827 ld_shlibs=no
10828 ;;
10829 esac
10830
10831 if test x$host_vendor = xsni; then
10832 case $host in
10833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10834 export_dynamic_flag_spec='${wl}-Blargedynsym'
10835 ;;
10836 esac
10837 fi
10838 fi
10839
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10841$as_echo "$ld_shlibs" >&6; }
10842test "$ld_shlibs" = no && can_build_shared=no
10843
10844with_gnu_ld=$with_gnu_ld
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860#
10861# Do we need to explicitly link libc?
10862#
10863case "x$archive_cmds_need_lc" in
10864x|xyes)
10865 # Assume -lc should be added
10866 archive_cmds_need_lc=yes
10867
10868 if test "$enable_shared" = yes && test "$GCC" = yes; then
10869 case $archive_cmds in
10870 *'~'*)
10871 # FIXME: we may have to deal with multi-command sequences.
10872 ;;
10873 '$CC '*)
10874 # Test whether the compiler implicitly links with -lc since on some
10875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10876 # to ld, don't add -lc before -lgcc.
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10878$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10879if ${lt_cv_archive_cmds_need_lc+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881else
10882 $RM conftest*
10883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10884
10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10886 (eval $ac_compile) 2>&5
10887 ac_status=$?
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; } 2>conftest.err; then
10890 soname=conftest
10891 lib=conftest
10892 libobjs=conftest.$ac_objext
10893 deplibs=
10894 wl=$lt_prog_compiler_wl
10895 pic_flag=$lt_prog_compiler_pic
10896 compiler_flags=-v
10897 linker_flags=-v
10898 verstring=
10899 output_objdir=.
10900 libname=conftest
10901 lt_save_allow_undefined_flag=$allow_undefined_flag
10902 allow_undefined_flag=
10903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10904 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10905 ac_status=$?
10906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10907 test $ac_status = 0; }
10908 then
10909 lt_cv_archive_cmds_need_lc=no
10910 else
10911 lt_cv_archive_cmds_need_lc=yes
10912 fi
10913 allow_undefined_flag=$lt_save_allow_undefined_flag
10914 else
10915 cat conftest.err 1>&5
10916 fi
10917 $RM conftest*
10918
10919fi
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10921$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10922 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10923 ;;
10924 esac
10925 fi
10926 ;;
10927esac
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11086$as_echo_n "checking dynamic linker characteristics... " >&6; }
11087
11088if test "$GCC" = yes; then
11089 case $host_os in
11090 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11091 *) lt_awk_arg="/^libraries:/" ;;
11092 esac
11093 case $host_os in
11094 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11095 *) lt_sed_strip_eq="s,=/,/,g" ;;
11096 esac
11097 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11098 case $lt_search_path_spec in
11099 *\;*)
11100 # if the path contains ";" then we assume it to be the separator
11101 # otherwise default to the standard path separator (i.e. ":") - it is
11102 # assumed that no part of a normal pathname contains ";" but that should
11103 # okay in the real world where ";" in dirpaths is itself problematic.
11104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11105 ;;
11106 *)
11107 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11108 ;;
11109 esac
11110 # Ok, now we have the path, separated by spaces, we can step through it
11111 # and add multilib dir if necessary.
11112 lt_tmp_lt_search_path_spec=
11113 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11114 for lt_sys_path in $lt_search_path_spec; do
11115 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11116 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11117 else
11118 test -d "$lt_sys_path" && \
11119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11120 fi
11121 done
11122 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11123BEGIN {RS=" "; FS="/|\n";} {
11124 lt_foo="";
11125 lt_count=0;
11126 for (lt_i = NF; lt_i > 0; lt_i--) {
11127 if ($lt_i != "" && $lt_i != ".") {
11128 if ($lt_i == "..") {
11129 lt_count++;
11130 } else {
11131 if (lt_count == 0) {
11132 lt_foo="/" $lt_i lt_foo;
11133 } else {
11134 lt_count--;
11135 }
11136 }
11137 }
11138 }
11139 if (lt_foo != "") { lt_freq[lt_foo]++; }
11140 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11141}'`
11142 # AWK program above erroneously prepends '/' to C:/dos/paths
11143 # for these hosts.
11144 case $host_os in
11145 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11146 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11147 esac
11148 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11149else
11150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11151fi
11152library_names_spec=
11153libname_spec='lib$name'
11154soname_spec=
11155shrext_cmds=".so"
11156postinstall_cmds=
11157postuninstall_cmds=
11158finish_cmds=
11159finish_eval=
11160shlibpath_var=
11161shlibpath_overrides_runpath=unknown
11162version_type=none
11163dynamic_linker="$host_os ld.so"
11164sys_lib_dlsearch_path_spec="/lib /usr/lib"
11165need_lib_prefix=unknown
11166hardcode_into_libs=no
11167
11168# when you set need_version to no, make sure it does not cause -set_version
11169# flags to be left without arguments
11170need_version=unknown
11171
11172case $host_os in
11173aix3*)
11174 version_type=linux
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11176 shlibpath_var=LIBPATH
11177
11178 # AIX 3 has no versioning support, so we append a major version to the name.
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 ;;
11181
11182aix[4-9]*)
11183 version_type=linux
11184 need_lib_prefix=no
11185 need_version=no
11186 hardcode_into_libs=yes
11187 if test "$host_cpu" = ia64; then
11188 # AIX 5 supports IA64
11189 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 else
11192 # With GCC up to 2.95.x, collect2 would create an import file
11193 # for dependence libraries. The import file would start with
11194 # the line `#! .'. This would cause the generated library to
11195 # depend on `.', always an invalid library. This was fixed in
11196 # development snapshots of GCC prior to 3.0.
11197 case $host_os in
11198 aix4 | aix4.[01] | aix4.[01].*)
11199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11200 echo ' yes '
11201 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11202 :
11203 else
11204 can_build_shared=no
11205 fi
11206 ;;
11207 esac
11208 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11209 # soname into executable. Probably we can add versioning support to
11210 # collect2, so additional links can be useful in future.
11211 if test "$aix_use_runtimelinking" = yes; then
11212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11213 # instead of lib<name>.a to let people know that these are not
11214 # typical AIX shared libraries.
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 else
11217 # We preserve .a as extension for shared libraries through AIX4.2
11218 # and later when we are not doing run time linking.
11219 library_names_spec='${libname}${release}.a $libname.a'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 fi
11222 shlibpath_var=LIBPATH
11223 fi
11224 ;;
11225
11226amigaos*)
11227 case $host_cpu in
11228 powerpc)
11229 # Since July 2007 AmigaOS4 officially supports .so libraries.
11230 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 ;;
11233 m68k)
11234 library_names_spec='$libname.ixlibrary $libname.a'
11235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11236 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'
11237 ;;
11238 esac
11239 ;;
11240
11241beos*)
11242 library_names_spec='${libname}${shared_ext}'
11243 dynamic_linker="$host_os ld.so"
11244 shlibpath_var=LIBRARY_PATH
11245 ;;
11246
11247bsdi[45]*)
11248 version_type=linux
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11256 # the default ld.so.conf also contains /usr/contrib/lib and
11257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11258 # libtool to hard-code these into programs
11259 ;;
11260
11261cygwin* | mingw* | pw32* | cegcc*)
11262 version_type=windows
11263 shrext_cmds=".dll"
11264 need_version=no
11265 need_lib_prefix=no
11266
11267 case $GCC,$host_os in
11268 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11269 library_names_spec='$libname.dll.a'
11270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11271 postinstall_cmds='base_file=`basename \${file}`~
11272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11273 dldir=$destdir/`dirname \$dlpath`~
11274 test -d \$dldir || mkdir -p \$dldir~
11275 $install_prog $dir/$dlname \$dldir/$dlname~
11276 chmod a+x \$dldir/$dlname~
11277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11278 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11279 fi'
11280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11281 dlpath=$dir/\$dldll~
11282 $RM \$dlpath'
11283 shlibpath_overrides_runpath=yes
11284
11285 case $host_os in
11286 cygwin*)
11287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11289
11290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11291 ;;
11292 mingw* | cegcc*)
11293 # MinGW DLLs use traditional 'lib' prefix
11294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11295 ;;
11296 pw32*)
11297 # pw32 DLLs use 'pw' prefix rather than 'lib'
11298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11299 ;;
11300 esac
11301 ;;
11302
11303 *)
11304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11305 ;;
11306 esac
11307 dynamic_linker='Win32 ld.exe'
11308 # FIXME: first we should search . and the directory the executable is in
11309 shlibpath_var=PATH
11310 ;;
11311
11312darwin* | rhapsody*)
11313 dynamic_linker="$host_os dyld"
11314 version_type=darwin
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11318 soname_spec='${libname}${release}${major}$shared_ext'
11319 shlibpath_overrides_runpath=yes
11320 shlibpath_var=DYLD_LIBRARY_PATH
11321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11322
11323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11325 ;;
11326
11327dgux*)
11328 version_type=linux
11329 need_lib_prefix=no
11330 need_version=no
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 ;;
11335
11336freebsd* | dragonfly*)
11337 # DragonFly does not have aout. When/if they implement a new
11338 # versioning mechanism, adjust this.
11339 if test -x /usr/bin/objformat; then
11340 objformat=`/usr/bin/objformat`
11341 else
11342 case $host_os in
11343 freebsd[23].*) objformat=aout ;;
11344 *) objformat=elf ;;
11345 esac
11346 fi
11347 version_type=freebsd-$objformat
11348 case $version_type in
11349 freebsd-elf*)
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 need_version=no
11352 need_lib_prefix=no
11353 ;;
11354 freebsd-*)
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11356 need_version=yes
11357 ;;
11358 esac
11359 shlibpath_var=LD_LIBRARY_PATH
11360 case $host_os in
11361 freebsd2.*)
11362 shlibpath_overrides_runpath=yes
11363 ;;
11364 freebsd3.[01]* | freebsdelf3.[01]*)
11365 shlibpath_overrides_runpath=yes
11366 hardcode_into_libs=yes
11367 ;;
11368 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11369 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11370 shlibpath_overrides_runpath=no
11371 hardcode_into_libs=yes
11372 ;;
11373 *) # from 4.6 on, and DragonFly
11374 shlibpath_overrides_runpath=yes
11375 hardcode_into_libs=yes
11376 ;;
11377 esac
11378 ;;
11379
11380haiku*)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
11384 dynamic_linker="$host_os runtime_loader"
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LIBRARY_PATH
11388 shlibpath_overrides_runpath=yes
11389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11390 hardcode_into_libs=yes
11391 ;;
11392
11393hpux9* | hpux10* | hpux11*)
11394 # Give a soname corresponding to the major version so that dld.sl refuses to
11395 # link against other versions.
11396 version_type=sunos
11397 need_lib_prefix=no
11398 need_version=no
11399 case $host_cpu in
11400 ia64*)
11401 shrext_cmds='.so'
11402 hardcode_into_libs=yes
11403 dynamic_linker="$host_os dld.so"
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 if test "X$HPUX_IA64_MODE" = X32; then
11409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11410 else
11411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11412 fi
11413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11414 ;;
11415 hppa*64*)
11416 shrext_cmds='.sl'
11417 hardcode_into_libs=yes
11418 dynamic_linker="$host_os dld.sl"
11419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11425 ;;
11426 *)
11427 shrext_cmds='.sl'
11428 dynamic_linker="$host_os dld.sl"
11429 shlibpath_var=SHLIB_PATH
11430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 ;;
11434 esac
11435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11436 postinstall_cmds='chmod 555 $lib'
11437 # or fails outright, so override atomically:
11438 install_override_mode=555
11439 ;;
11440
11441interix[3-9]*)
11442 version_type=linux
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 hardcode_into_libs=yes
11451 ;;
11452
11453irix5* | irix6* | nonstopux*)
11454 case $host_os in
11455 nonstopux*) version_type=nonstopux ;;
11456 *)
11457 if test "$lt_cv_prog_gnu_ld" = yes; then
11458 version_type=linux
11459 else
11460 version_type=irix
11461 fi ;;
11462 esac
11463 need_lib_prefix=no
11464 need_version=no
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11467 case $host_os in
11468 irix5* | nonstopux*)
11469 libsuff= shlibsuff=
11470 ;;
11471 *)
11472 case $LD in # libtool.m4 will add one of these switches to LD
11473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11474 libsuff= shlibsuff= libmagic=32-bit;;
11475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11476 libsuff=32 shlibsuff=N32 libmagic=N32;;
11477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11479 *) libsuff= shlibsuff= libmagic=never-match;;
11480 esac
11481 ;;
11482 esac
11483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11484 shlibpath_overrides_runpath=no
11485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11487 hardcode_into_libs=yes
11488 ;;
11489
11490# No shared lib support for Linux oldld, aout, or coff.
11491linux*oldld* | linux*aout* | linux*coff*)
11492 dynamic_linker=no
11493 ;;
11494
11495# This must be Linux ELF.
11496linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11497 version_type=linux
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=no
11505
11506 # Some binutils ld are patched to set DT_RUNPATH
11507 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 lt_cv_shlibpath_overrides_runpath=no
11511 save_LDFLAGS=$LDFLAGS
11512 save_libdir=$libdir
11513 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11514 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516/* end confdefs.h. */
11517
11518int
11519main ()
11520{
11521
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526if ac_fn_c_try_link "$LINENO"; then :
11527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11528 lt_cv_shlibpath_overrides_runpath=yes
11529fi
11530fi
11531rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LDFLAGS=$save_LDFLAGS
11534 libdir=$save_libdir
11535
11536fi
11537
11538 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11539
11540 # This implies no fast_install, which is unacceptable.
11541 # Some rework will be needed to allow for fast_install
11542 # before this can be enabled.
11543 hardcode_into_libs=yes
11544
11545 # Append ld.so.conf contents to the search path
11546 if test -f /etc/ld.so.conf; then
11547 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' ' '`
11548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11549 fi
11550
11551 # We used to test for /lib/ld.so.1 and disable shared libraries on
11552 # powerpc, because MkLinux only supported shared libraries with the
11553 # GNU dynamic linker. Since this was broken with cross compilers,
11554 # most powerpc-linux boxes support dynamic linking these days and
11555 # people can always --disable-shared, the test was removed, and we
11556 # assume the GNU/Linux dynamic linker is in use.
11557 dynamic_linker='GNU/Linux ld.so'
11558 ;;
11559
11560netbsd*)
11561 version_type=sunos
11562 need_lib_prefix=no
11563 need_version=no
11564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11567 dynamic_linker='NetBSD (a.out) ld.so'
11568 else
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 dynamic_linker='NetBSD ld.elf_so'
11572 fi
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11576 ;;
11577
11578newsos6)
11579 version_type=linux
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=yes
11583 ;;
11584
11585*nto* | *qnx*)
11586 version_type=qnx
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=no
11593 hardcode_into_libs=yes
11594 dynamic_linker='ldqnx.so'
11595 ;;
11596
11597openbsd*)
11598 version_type=sunos
11599 sys_lib_dlsearch_path_spec="/usr/lib"
11600 need_lib_prefix=no
11601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11602 case $host_os in
11603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11604 *) need_version=no ;;
11605 esac
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11610 case $host_os in
11611 openbsd2.[89] | openbsd2.[89].*)
11612 shlibpath_overrides_runpath=no
11613 ;;
11614 *)
11615 shlibpath_overrides_runpath=yes
11616 ;;
11617 esac
11618 else
11619 shlibpath_overrides_runpath=yes
11620 fi
11621 ;;
11622
11623os2*)
11624 libname_spec='$name'
11625 shrext_cmds=".dll"
11626 need_lib_prefix=no
11627 library_names_spec='$libname${shared_ext} $libname.a'
11628 dynamic_linker='OS/2 ld.exe'
11629 shlibpath_var=LIBPATH
11630 ;;
11631
11632osf3* | osf4* | osf5*)
11633 version_type=osf
11634 need_lib_prefix=no
11635 need_version=no
11636 soname_spec='${libname}${release}${shared_ext}$major'
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11641 ;;
11642
11643rdos*)
11644 dynamic_linker=no
11645 ;;
11646
11647solaris*)
11648 version_type=linux
11649 need_lib_prefix=no
11650 need_version=no
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11656 # ldd complains unless libraries are executable
11657 postinstall_cmds='chmod +x $lib'
11658 ;;
11659
11660sunos4*)
11661 version_type=sunos
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 if test "$with_gnu_ld" = yes; then
11667 need_lib_prefix=no
11668 fi
11669 need_version=yes
11670 ;;
11671
11672sysv4 | sysv4.3*)
11673 version_type=linux
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 case $host_vendor in
11678 sni)
11679 shlibpath_overrides_runpath=no
11680 need_lib_prefix=no
11681 runpath_var=LD_RUN_PATH
11682 ;;
11683 siemens)
11684 need_lib_prefix=no
11685 ;;
11686 motorola)
11687 need_lib_prefix=no
11688 need_version=no
11689 shlibpath_overrides_runpath=no
11690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11691 ;;
11692 esac
11693 ;;
11694
11695sysv4*MP*)
11696 if test -d /usr/nec ;then
11697 version_type=linux
11698 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11699 soname_spec='$libname${shared_ext}.$major'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 fi
11702 ;;
11703
11704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11705 version_type=freebsd-elf
11706 need_lib_prefix=no
11707 need_version=no
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11709 soname_spec='${libname}${release}${shared_ext}$major'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=yes
11712 hardcode_into_libs=yes
11713 if test "$with_gnu_ld" = yes; then
11714 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11715 else
11716 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11717 case $host_os in
11718 sco3.2v5*)
11719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11720 ;;
11721 esac
11722 fi
11723 sys_lib_dlsearch_path_spec='/usr/lib'
11724 ;;
11725
11726tpf*)
11727 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11728 version_type=linux
11729 need_lib_prefix=no
11730 need_version=no
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=no
11734 hardcode_into_libs=yes
11735 ;;
11736
11737uts4*)
11738 version_type=linux
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 ;;
11743
11744*)
11745 dynamic_linker=no
11746 ;;
11747esac
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11749$as_echo "$dynamic_linker" >&6; }
11750test "$dynamic_linker" = no && can_build_shared=no
11751
11752variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11753if test "$GCC" = yes; then
11754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11755fi
11756
11757if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11758 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11759fi
11760if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11761 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11762fi
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11856$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11857hardcode_action=
11858if test -n "$hardcode_libdir_flag_spec" ||
11859 test -n "$runpath_var" ||
11860 test "X$hardcode_automatic" = "Xyes" ; then
11861
11862 # We can hardcode non-existent directories.
11863 if test "$hardcode_direct" != no &&
11864 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11865 # have to relink, otherwise we might link with an installed library
11866 # when we should be linking with a yet-to-be-installed one
11867 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11868 test "$hardcode_minus_L" != no; then
11869 # Linking always hardcodes the temporary library directory.
11870 hardcode_action=relink
11871 else
11872 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11873 hardcode_action=immediate
11874 fi
11875else
11876 # We cannot hardcode anything, or else we can only hardcode existing
11877 # directories.
11878 hardcode_action=unsupported
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11881$as_echo "$hardcode_action" >&6; }
11882
11883if test "$hardcode_action" = relink ||
11884 test "$inherit_rpath" = yes; then
11885 # Fast installation is not supported
11886 enable_fast_install=no
11887elif test "$shlibpath_overrides_runpath" = yes ||
11888 test "$enable_shared" = no; then
11889 # Fast installation is not necessary
11890 enable_fast_install=needless
11891fi
11892
11893
11894
11895
11896
11897
11898 if test "x$enable_dlopen" != xyes; then
11899 enable_dlopen=unknown
11900 enable_dlopen_self=unknown
11901 enable_dlopen_self_static=unknown
11902else
11903 lt_cv_dlopen=no
11904 lt_cv_dlopen_libs=
11905
11906 case $host_os in
11907 beos*)
11908 lt_cv_dlopen="load_add_on"
11909 lt_cv_dlopen_libs=
11910 lt_cv_dlopen_self=yes
11911 ;;
11912
11913 mingw* | pw32* | cegcc*)
11914 lt_cv_dlopen="LoadLibrary"
11915 lt_cv_dlopen_libs=
11916 ;;
11917
11918 cygwin*)
11919 lt_cv_dlopen="dlopen"
11920 lt_cv_dlopen_libs=
11921 ;;
11922
11923 darwin*)
11924 # if libdl is installed we need to link against it
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11926$as_echo_n "checking for dlopen in -ldl... " >&6; }
11927if ${ac_cv_lib_dl_dlopen+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929else
11930 ac_check_lib_save_LIBS=$LIBS
11931LIBS="-ldl $LIBS"
11932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933/* end confdefs.h. */
11934
11935/* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938#ifdef __cplusplus
11939extern "C"
11940#endif
11941char dlopen ();
11942int
11943main ()
11944{
11945return dlopen ();
11946 ;
11947 return 0;
11948}
11949_ACEOF
11950if ac_fn_c_try_link "$LINENO"; then :
11951 ac_cv_lib_dl_dlopen=yes
11952else
11953 ac_cv_lib_dl_dlopen=no
11954fi
11955rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957LIBS=$ac_check_lib_save_LIBS
11958fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11960$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11961if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11963else
11964
11965 lt_cv_dlopen="dyld"
11966 lt_cv_dlopen_libs=
11967 lt_cv_dlopen_self=yes
11968
11969fi
11970
11971 ;;
11972
11973 *)
11974 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11975if test "x$ac_cv_func_shl_load" = xyes; then :
11976 lt_cv_dlopen="shl_load"
11977else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11979$as_echo_n "checking for shl_load in -ldld... " >&6; }
11980if ${ac_cv_lib_dld_shl_load+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982else
11983 ac_check_lib_save_LIBS=$LIBS
11984LIBS="-ldld $LIBS"
11985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h. */
11987
11988/* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991#ifdef __cplusplus
11992extern "C"
11993#endif
11994char shl_load ();
a48ff3ef
MF
11995int
11996main ()
11997{
b5689863 11998return shl_load ();
a48ff3ef
MF
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003if ac_fn_c_try_link "$LINENO"; then :
b5689863 12004 ac_cv_lib_dld_shl_load=yes
a48ff3ef 12005else
b5689863 12006 ac_cv_lib_dld_shl_load=no
a48ff3ef
MF
12007fi
12008rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
b5689863 12010LIBS=$ac_check_lib_save_LIBS
a48ff3ef 12011fi
b5689863
MF
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12013$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12014if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12015 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12016else
12017 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12018if test "x$ac_cv_func_dlopen" = xyes; then :
12019 lt_cv_dlopen="dlopen"
12020else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12022$as_echo_n "checking for dlopen in -ldl... " >&6; }
12023if ${ac_cv_lib_dl_dlopen+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025else
12026 ac_check_lib_save_LIBS=$LIBS
12027LIBS="-ldl $LIBS"
12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029/* end confdefs.h. */
a48ff3ef 12030
b5689863
MF
12031/* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12034#ifdef __cplusplus
12035extern "C"
12036#endif
12037char dlopen ();
12038int
12039main ()
12040{
12041return dlopen ();
12042 ;
12043 return 0;
12044}
12045_ACEOF
12046if ac_fn_c_try_link "$LINENO"; then :
12047 ac_cv_lib_dl_dlopen=yes
12048else
12049 ac_cv_lib_dl_dlopen=no
a48ff3ef 12050fi
b5689863
MF
12051rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053LIBS=$ac_check_lib_save_LIBS
12054fi
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12056$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12057if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12059else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12061$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12062if ${ac_cv_lib_svld_dlopen+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 ac_check_lib_save_LIBS=$LIBS
12066LIBS="-lsvld $LIBS"
12067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h. */
a48ff3ef 12069
b5689863
MF
12070/* Override any GCC internal prototype to avoid an error.
12071 Use char because int might match the return type of a GCC
12072 builtin and then its argument prototype would still apply. */
12073#ifdef __cplusplus
12074extern "C"
b15c5d7a 12075#endif
b5689863
MF
12076char dlopen ();
12077int
12078main ()
12079{
12080return dlopen ();
12081 ;
12082 return 0;
12083}
b15c5d7a 12084_ACEOF
b5689863
MF
12085if ac_fn_c_try_link "$LINENO"; then :
12086 ac_cv_lib_svld_dlopen=yes
12087else
12088 ac_cv_lib_svld_dlopen=no
b15c5d7a 12089fi
b5689863
MF
12090rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092LIBS=$ac_check_lib_save_LIBS
12093fi
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12095$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12096if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12098else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12100$as_echo_n "checking for dld_link in -ldld... " >&6; }
12101if ${ac_cv_lib_dld_dld_link+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103else
12104 ac_check_lib_save_LIBS=$LIBS
12105LIBS="-ldld $LIBS"
12106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h. */
b15c5d7a 12108
b5689863
MF
12109/* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12112#ifdef __cplusplus
12113extern "C"
12114#endif
12115char dld_link ();
12116int
12117main ()
12118{
12119return dld_link ();
12120 ;
12121 return 0;
12122}
b15c5d7a 12123_ACEOF
b5689863
MF
12124if ac_fn_c_try_link "$LINENO"; then :
12125 ac_cv_lib_dld_dld_link=yes
12126else
12127 ac_cv_lib_dld_dld_link=no
12128fi
12129rm -f core conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131LIBS=$ac_check_lib_save_LIBS
12132fi
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12134$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12135if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12136 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12137fi
b15c5d7a
MF
12138
12139
12140fi
b15c5d7a 12141
b5689863
MF
12142
12143fi
b15c5d7a
MF
12144
12145
12146fi
b15c5d7a 12147
b5689863
MF
12148
12149fi
b15c5d7a
MF
12150
12151
12152fi
b15c5d7a 12153
b5689863
MF
12154 ;;
12155 esac
b15c5d7a 12156
b5689863
MF
12157 if test "x$lt_cv_dlopen" != xno; then
12158 enable_dlopen=yes
12159 else
12160 enable_dlopen=no
12161 fi
b15c5d7a 12162
b5689863
MF
12163 case $lt_cv_dlopen in
12164 dlopen)
12165 save_CPPFLAGS="$CPPFLAGS"
12166 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
b15c5d7a 12167
b5689863
MF
12168 save_LDFLAGS="$LDFLAGS"
12169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
b15c5d7a 12170
b5689863
MF
12171 save_LIBS="$LIBS"
12172 LIBS="$lt_cv_dlopen_libs $LIBS"
b15c5d7a 12173
b5689863
MF
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12175$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12176if ${lt_cv_dlopen_self+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 if test "$cross_compiling" = yes; then :
12180 lt_cv_dlopen_self=cross
12181else
12182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12183 lt_status=$lt_dlunknown
12184 cat > conftest.$ac_ext <<_LT_EOF
7eb1f99a 12185#line 12185 "configure"
b5689863
MF
12186#include "confdefs.h"
12187
12188#if HAVE_DLFCN_H
12189#include <dlfcn.h>
b15c5d7a 12190#endif
b15c5d7a 12191
b5689863 12192#include <stdio.h>
b15c5d7a 12193
b5689863
MF
12194#ifdef RTLD_GLOBAL
12195# define LT_DLGLOBAL RTLD_GLOBAL
12196#else
12197# ifdef DL_GLOBAL
12198# define LT_DLGLOBAL DL_GLOBAL
12199# else
12200# define LT_DLGLOBAL 0
12201# endif
12202#endif
b15c5d7a 12203
b5689863
MF
12204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12205 find out it does not work in some platform. */
12206#ifndef LT_DLLAZY_OR_NOW
12207# ifdef RTLD_LAZY
12208# define LT_DLLAZY_OR_NOW RTLD_LAZY
12209# else
12210# ifdef DL_LAZY
12211# define LT_DLLAZY_OR_NOW DL_LAZY
12212# else
12213# ifdef RTLD_NOW
12214# define LT_DLLAZY_OR_NOW RTLD_NOW
12215# else
12216# ifdef DL_NOW
12217# define LT_DLLAZY_OR_NOW DL_NOW
12218# else
12219# define LT_DLLAZY_OR_NOW 0
12220# endif
12221# endif
12222# endif
12223# endif
b15c5d7a 12224#endif
b5689863
MF
12225
12226/* When -fvisbility=hidden is used, assume the code has been annotated
12227 correspondingly for the symbols needed. */
12228#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12229void fnord () __attribute__((visibility("default")));
b15c5d7a 12230#endif
b15c5d7a 12231
b5689863
MF
12232void fnord () { int i=42; }
12233int main ()
12234{
12235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12236 int status = $lt_dlunknown;
b15c5d7a 12237
b5689863
MF
12238 if (self)
12239 {
12240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12241 else
12242 {
12243 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12244 else puts (dlerror ());
12245 }
12246 /* dlclose (self); */
12247 }
12248 else
12249 puts (dlerror ());
b15c5d7a 12250
b5689863
MF
12251 return status;
12252}
12253_LT_EOF
12254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12255 (eval $ac_link) 2>&5
12256 ac_status=$?
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12259 (./conftest; exit; ) >&5 2>/dev/null
12260 lt_status=$?
12261 case x$lt_status in
12262 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12263 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12264 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12265 esac
12266 else :
12267 # compilation failed
12268 lt_cv_dlopen_self=no
12269 fi
b15c5d7a 12270fi
b5689863 12271rm -fr conftest*
b15c5d7a
MF
12272
12273
12274fi
b5689863
MF
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12276$as_echo "$lt_cv_dlopen_self" >&6; }
12277
12278 if test "x$lt_cv_dlopen_self" = xyes; then
12279 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12281$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12282if ${lt_cv_dlopen_self_static+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284else
12285 if test "$cross_compiling" = yes; then :
12286 lt_cv_dlopen_self_static=cross
12287else
12288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12289 lt_status=$lt_dlunknown
12290 cat > conftest.$ac_ext <<_LT_EOF
7eb1f99a 12291#line 12291 "configure"
b5689863
MF
12292#include "confdefs.h"
12293
12294#if HAVE_DLFCN_H
12295#include <dlfcn.h>
b15c5d7a 12296#endif
b15c5d7a 12297
b5689863 12298#include <stdio.h>
b15c5d7a 12299
b5689863
MF
12300#ifdef RTLD_GLOBAL
12301# define LT_DLGLOBAL RTLD_GLOBAL
12302#else
12303# ifdef DL_GLOBAL
12304# define LT_DLGLOBAL DL_GLOBAL
12305# else
12306# define LT_DLGLOBAL 0
12307# endif
12308#endif
b15c5d7a 12309
b5689863
MF
12310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12311 find out it does not work in some platform. */
12312#ifndef LT_DLLAZY_OR_NOW
12313# ifdef RTLD_LAZY
12314# define LT_DLLAZY_OR_NOW RTLD_LAZY
12315# else
12316# ifdef DL_LAZY
12317# define LT_DLLAZY_OR_NOW DL_LAZY
12318# else
12319# ifdef RTLD_NOW
12320# define LT_DLLAZY_OR_NOW RTLD_NOW
12321# else
12322# ifdef DL_NOW
12323# define LT_DLLAZY_OR_NOW DL_NOW
12324# else
12325# define LT_DLLAZY_OR_NOW 0
12326# endif
12327# endif
12328# endif
12329# endif
b15c5d7a 12330#endif
b5689863
MF
12331
12332/* When -fvisbility=hidden is used, assume the code has been annotated
12333 correspondingly for the symbols needed. */
12334#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12335void fnord () __attribute__((visibility("default")));
b15c5d7a 12336#endif
b15c5d7a 12337
b5689863
MF
12338void fnord () { int i=42; }
12339int main ()
12340{
12341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12342 int status = $lt_dlunknown;
12343
12344 if (self)
12345 {
12346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12347 else
12348 {
12349 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12350 else puts (dlerror ());
12351 }
12352 /* dlclose (self); */
12353 }
12354 else
12355 puts (dlerror ());
12356
12357 return status;
12358}
12359_LT_EOF
12360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12361 (eval $ac_link) 2>&5
12362 ac_status=$?
12363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12364 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12365 (./conftest; exit; ) >&5 2>/dev/null
12366 lt_status=$?
12367 case x$lt_status in
12368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12370 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12371 esac
12372 else :
12373 # compilation failed
12374 lt_cv_dlopen_self_static=no
12375 fi
12376fi
12377rm -fr conftest*
b15c5d7a
MF
12378
12379
12380fi
b5689863
MF
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12382$as_echo "$lt_cv_dlopen_self_static" >&6; }
12383 fi
b15c5d7a 12384
b5689863
MF
12385 CPPFLAGS="$save_CPPFLAGS"
12386 LDFLAGS="$save_LDFLAGS"
12387 LIBS="$save_LIBS"
12388 ;;
12389 esac
b15c5d7a 12390
b5689863
MF
12391 case $lt_cv_dlopen_self in
12392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12393 *) enable_dlopen_self=unknown ;;
12394 esac
b15c5d7a 12395
b5689863
MF
12396 case $lt_cv_dlopen_self_static in
12397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12398 *) enable_dlopen_self_static=unknown ;;
12399 esac
b15c5d7a 12400fi
b15c5d7a 12401
b15c5d7a
MF
12402
12403
b15c5d7a
MF
12404
12405
b15c5d7a 12406
b15c5d7a
MF
12407
12408
b15c5d7a 12409
b15c5d7a 12410
b15c5d7a 12411
b15c5d7a
MF
12412
12413
b15c5d7a
MF
12414
12415
a48ff3ef 12416
a48ff3ef 12417
b5689863
MF
12418striplib=
12419old_striplib=
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12421$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12422if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426$as_echo "yes" >&6; }
a48ff3ef 12427else
b5689863
MF
12428# FIXME - insert some real tests, host_os isn't really good enough
12429 case $host_os in
12430 darwin*)
12431 if test -n "$STRIP" ; then
12432 striplib="$STRIP -x"
12433 old_striplib="$STRIP -S"
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435$as_echo "yes" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438$as_echo "no" >&6; }
12439 fi
12440 ;;
12441 *)
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444 ;;
12445 esac
a48ff3ef
MF
12446fi
12447
a48ff3ef 12448
a48ff3ef 12449
a48ff3ef 12450
a48ff3ef
MF
12451
12452
a48ff3ef 12453
a48ff3ef 12454
a48ff3ef 12455
a48ff3ef 12456
a48ff3ef 12457
a48ff3ef 12458
b5689863
MF
12459 # Report which library types will actually be built
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12461$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12463$as_echo "$can_build_shared" >&6; }
a48ff3ef 12464
b5689863
MF
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12466$as_echo_n "checking whether to build shared libraries... " >&6; }
12467 test "$can_build_shared" = "no" && enable_shared=no
a48ff3ef 12468
b5689863
MF
12469 # On AIX, shared libraries and static libraries use the same namespace, and
12470 # are all built from PIC.
12471 case $host_os in
12472 aix3*)
12473 test "$enable_shared" = yes && enable_static=no
12474 if test -n "$RANLIB"; then
12475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12476 postinstall_cmds='$RANLIB $lib'
12477 fi
12478 ;;
a48ff3ef 12479
b5689863
MF
12480 aix[4-9]*)
12481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12482 test "$enable_shared" = yes && enable_static=no
12483 fi
12484 ;;
12485 esac
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12487$as_echo "$enable_shared" >&6; }
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12490$as_echo_n "checking whether to build static libraries... " >&6; }
12491 # Make sure either enable_shared or enable_static is yes.
12492 test "$enable_shared" = yes || enable_static=yes
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12494$as_echo "$enable_static" >&6; }
a48ff3ef 12495
a48ff3ef 12496
a48ff3ef 12497
b15c5d7a 12498
b15c5d7a 12499fi
b5689863
MF
12500ac_ext=c
12501ac_cpp='$CPP $CPPFLAGS'
12502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504ac_compiler_gnu=$ac_cv_c_compiler_gnu
b15c5d7a 12505
b5689863 12506CC="$lt_save_CC"
b15c5d7a
MF
12507
12508
a48ff3ef 12509
a48ff3ef 12510
a48ff3ef 12511
a48ff3ef 12512
a48ff3ef 12513
a48ff3ef 12514
a48ff3ef 12515
a48ff3ef
MF
12516
12517
a48ff3ef 12518
b5689863
MF
12519
12520 ac_config_commands="$ac_config_commands libtool"
12521
12522
12523
12524
12525# Only expand once:
12526
12527
a48ff3ef 12528
b15c5d7a 12529
07490bf8
MF
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12531$as_echo_n "checking for bind in -lsocket... " >&6; }
12532if ${ac_cv_lib_socket_bind+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534else
12535 ac_check_lib_save_LIBS=$LIBS
12536LIBS="-lsocket $LIBS"
12537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h. */
12539
12540/* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546char bind ();
12547int
12548main ()
12549{
12550return bind ();
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_socket_bind=yes
12557else
12558 ac_cv_lib_socket_bind=no
12559fi
12560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562LIBS=$ac_check_lib_save_LIBS
12563fi
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12565$as_echo "$ac_cv_lib_socket_bind" >&6; }
12566if test "x$ac_cv_lib_socket_bind" = xyes; then :
12567 cat >>confdefs.h <<_ACEOF
12568#define HAVE_LIBSOCKET 1
12569_ACEOF
12570
12571 LIBS="-lsocket $LIBS"
12572
12573fi
12574
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12576$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12577if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579else
12580 ac_check_lib_save_LIBS=$LIBS
12581LIBS="-lnsl $LIBS"
12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583/* end confdefs.h. */
12584
12585/* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588#ifdef __cplusplus
12589extern "C"
12590#endif
12591char gethostbyname ();
12592int
12593main ()
12594{
12595return gethostbyname ();
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600if ac_fn_c_try_link "$LINENO"; then :
12601 ac_cv_lib_nsl_gethostbyname=yes
12602else
12603 ac_cv_lib_nsl_gethostbyname=no
12604fi
12605rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607LIBS=$ac_check_lib_save_LIBS
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12610$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12611if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12612 cat >>confdefs.h <<_ACEOF
12613#define HAVE_LIBNSL 1
12614_ACEOF
12615
12616 LIBS="-lnsl $LIBS"
12617
12618fi
12619
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12621$as_echo_n "checking for fabs in -lm... " >&6; }
12622if ${ac_cv_lib_m_fabs+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624else
12625 ac_check_lib_save_LIBS=$LIBS
12626LIBS="-lm $LIBS"
12627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h. */
12629
12630/* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633#ifdef __cplusplus
12634extern "C"
12635#endif
12636char fabs ();
12637int
12638main ()
12639{
12640return fabs ();
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_lib_m_fabs=yes
12647else
12648 ac_cv_lib_m_fabs=no
12649fi
12650rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652LIBS=$ac_check_lib_save_LIBS
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12655$as_echo "$ac_cv_lib_m_fabs" >&6; }
12656if test "x$ac_cv_lib_m_fabs" = xyes; then :
12657 cat >>confdefs.h <<_ACEOF
12658#define HAVE_LIBM 1
12659_ACEOF
12660
12661 LIBS="-lm $LIBS"
12662
12663fi
12664
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12666$as_echo_n "checking for log2 in -lm... " >&6; }
12667if ${ac_cv_lib_m_log2+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669else
12670 ac_check_lib_save_LIBS=$LIBS
12671LIBS="-lm $LIBS"
12672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h. */
12674
12675/* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12678#ifdef __cplusplus
12679extern "C"
12680#endif
12681char log2 ();
12682int
12683main ()
12684{
12685return log2 ();
12686 ;
12687 return 0;
12688}
12689_ACEOF
12690if ac_fn_c_try_link "$LINENO"; then :
12691 ac_cv_lib_m_log2=yes
12692else
12693 ac_cv_lib_m_log2=no
12694fi
12695rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697LIBS=$ac_check_lib_save_LIBS
12698fi
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12700$as_echo "$ac_cv_lib_m_log2" >&6; }
12701if test "x$ac_cv_lib_m_log2" = xyes; then :
12702 cat >>confdefs.h <<_ACEOF
12703#define HAVE_LIBM 1
12704_ACEOF
12705
12706 LIBS="-lm $LIBS"
12707
12708fi
12709
12710
b15c5d7a 12711
d57b6533
MF
12712pkg_failed=no
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12714$as_echo_n "checking for sdl... " >&6; }
12715
12716if test -n "$SDL_CFLAGS"; then
12717 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12718 elif test -n "$PKG_CONFIG"; then
12719 if test -n "$PKG_CONFIG" && \
12720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12721 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12722 ac_status=$?
12723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724 test $ac_status = 0; }; then
12725 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12726 test "x$?" != "x0" && pkg_failed=yes
12727else
12728 pkg_failed=yes
12729fi
12730 else
12731 pkg_failed=untried
12732fi
12733if test -n "$SDL_LIBS"; then
12734 pkg_cv_SDL_LIBS="$SDL_LIBS"
12735 elif test -n "$PKG_CONFIG"; then
12736 if test -n "$PKG_CONFIG" && \
12737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12738 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12739 ac_status=$?
12740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741 test $ac_status = 0; }; then
12742 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12743 test "x$?" != "x0" && pkg_failed=yes
12744else
12745 pkg_failed=yes
12746fi
12747 else
12748 pkg_failed=untried
12749fi
12750
12751if test $pkg_failed = no; then
12752 pkg_save_LDFLAGS="$LDFLAGS"
12753 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h. */
12756
12757int
12758main ()
12759{
12760
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765if ac_fn_c_try_link "$LINENO"; then :
12766
12767else
12768 pkg_failed=yes
12769fi
12770rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 LDFLAGS=$pkg_save_LDFLAGS
12773fi
12774
12775
12776
12777if test $pkg_failed = yes; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779$as_echo "no" >&6; }
12780
12781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12782 _pkg_short_errors_supported=yes
12783else
12784 _pkg_short_errors_supported=no
12785fi
12786 if test $_pkg_short_errors_supported = yes; then
12787 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12788 else
12789 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12790 fi
12791 # Put the nasty error message in config.log where it belongs
12792 echo "$SDL_PKG_ERRORS" >&5
12793
12794 :
12795elif test $pkg_failed = untried; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798 :
12799else
12800 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12801 SDL_LIBS=$pkg_cv_SDL_LIBS
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12803$as_echo "yes" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12805$as_echo_n "checking for dlopen in -ldl... " >&6; }
12806if ${ac_cv_lib_dl_dlopen+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808else
12809 ac_check_lib_save_LIBS=$LIBS
12810LIBS="-ldl $LIBS"
12811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h. */
12813
12814/* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820char dlopen ();
12821int
12822main ()
12823{
12824return dlopen ();
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829if ac_fn_c_try_link "$LINENO"; then :
12830 ac_cv_lib_dl_dlopen=yes
12831else
12832 ac_cv_lib_dl_dlopen=no
12833fi
12834rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836LIBS=$ac_check_lib_save_LIBS
12837fi
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12839$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12840if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12841 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
12842 SDL_LIBS="-ldl"
12843
12844else
12845 SDL_CFLAGS= SDL_LIBS=
12846fi
12847
12848
12849fi
12850
12851
12852
5d0b3088
MF
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12854$as_echo_n "checking for cygwin... " >&6; }
12855if ${sim_cv_os_cygwin+:} false; then :
12856 $as_echo_n "(cached) " >&6
12857else
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h. */
12860
12861#ifdef __CYGWIN__
12862lose
12863#endif
12864_ACEOF
12865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12866 $EGREP "lose" >/dev/null 2>&1; then :
12867 sim_cv_os_cygwin=yes
12868else
12869 sim_cv_os_cygwin=no
12870fi
12871rm -f conftest*
12872
12873fi
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
12875$as_echo "$sim_cv_os_cygwin" >&6; }
12876
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12878$as_echo_n "checking for library containing tgetent... " >&6; }
12879if ${ac_cv_search_tgetent+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881else
12882 ac_func_search_save_LIBS=$LIBS
12883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h. */
12885
12886/* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889#ifdef __cplusplus
12890extern "C"
12891#endif
12892char tgetent ();
12893int
12894main ()
12895{
12896return tgetent ();
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901for ac_lib in '' termcap tinfo curses ncurses; do
12902 if test -z "$ac_lib"; then
12903 ac_res="none required"
12904 else
12905 ac_res=-l$ac_lib
12906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12907 fi
12908 if ac_fn_c_try_link "$LINENO"; then :
12909 ac_cv_search_tgetent=$ac_res
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext
12913 if ${ac_cv_search_tgetent+:} false; then :
12914 break
12915fi
12916done
12917if ${ac_cv_search_tgetent+:} false; then :
12918
12919else
12920 ac_cv_search_tgetent=no
12921fi
12922rm conftest.$ac_ext
12923LIBS=$ac_func_search_save_LIBS
12924fi
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12926$as_echo "$ac_cv_search_tgetent" >&6; }
12927ac_res=$ac_cv_search_tgetent
12928if test "$ac_res" != no; then :
12929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12930 TERMCAP_LIB=$ac_cv_search_tgetent
12931else
12932 TERMCAP_LIB=""
12933fi
12934
12935if test x$sim_cv_os_cygwin = xyes; then
12936 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
12937fi
12938
12939
12940if test -r ../readline/Makefile; then
12941 READLINE_LIB=../../readline/readline/libreadline.a
12942 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
12943else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12945$as_echo_n "checking for readline in -lreadline... " >&6; }
12946if ${ac_cv_lib_readline_readline+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948else
12949 ac_check_lib_save_LIBS=$LIBS
12950LIBS="-lreadline $TERMCAP_LIB $LIBS"
12951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h. */
12953
12954/* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957#ifdef __cplusplus
12958extern "C"
12959#endif
12960char readline ();
12961int
12962main ()
12963{
12964return readline ();
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969if ac_fn_c_try_link "$LINENO"; then :
12970 ac_cv_lib_readline_readline=yes
12971else
12972 ac_cv_lib_readline_readline=no
12973fi
12974rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976LIBS=$ac_check_lib_save_LIBS
12977fi
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12979$as_echo "$ac_cv_lib_readline_readline" >&6; }
12980if test "x$ac_cv_lib_readline_readline" = xyes; then :
12981 READLINE_LIB=-lreadline
12982else
12983 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
12984fi
12985
12986 READLINE_CFLAGS=
12987fi
12988
12989
12990
d57b6533 12991
b15c5d7a
MF
12992
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12994$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12995 # Check whether --enable-maintainer-mode was given.
12996if test "${enable_maintainer_mode+set}" = set; then :
12997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12998else
12999 USE_MAINTAINER_MODE=no
13000fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13003$as_echo "$USE_MAINTAINER_MODE" >&6; }
13004 if test $USE_MAINTAINER_MODE = yes; then
13005 MAINTAINER_MODE_TRUE=
13006 MAINTAINER_MODE_FALSE='#'
13007else
13008 MAINTAINER_MODE_TRUE='#'
13009 MAINTAINER_MODE_FALSE=
13010fi
13011
13012 MAINT=$MAINTAINER_MODE_TRUE
13013
13014
13015am__api_version='1.15'
13016
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13018$as_echo_n "checking whether build environment is sane... " >&6; }
13019# Reject unsafe characters in $srcdir or the absolute working directory
13020# name. Accept space and tab only in the latter.
13021am_lf='
13022'
13023case `pwd` in
13024 *[\\\"\#\$\&\'\`$am_lf]*)
13025 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13026esac
13027case $srcdir in
13028 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13029 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13030esac
13031
13032# Do 'set' in a subshell so we don't clobber the current shell's
13033# arguments. Must try -L first in case configure is actually a
13034# symlink; some systems play weird games with the mod time of symlinks
13035# (eg FreeBSD returns the mod time of the symlink's containing
13036# directory).
13037if (
13038 am_has_slept=no
13039 for am_try in 1 2; do
13040 echo "timestamp, slept: $am_has_slept" > conftest.file
13041 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13042 if test "$*" = "X"; then
13043 # -L didn't work.
13044 set X `ls -t "$srcdir/configure" conftest.file`
13045 fi
13046 if test "$*" != "X $srcdir/configure conftest.file" \
13047 && test "$*" != "X conftest.file $srcdir/configure"; then
13048
13049 # If neither matched, then we have a broken ls. This can happen
13050 # if, for instance, CONFIG_SHELL is bash and it inherits a
13051 # broken ls alias from the environment. This has actually
13052 # happened. Such a system could not be considered "sane".
13053 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13054 alias in your environment" "$LINENO" 5
13055 fi
13056 if test "$2" = conftest.file || test $am_try -eq 2; then
13057 break
13058 fi
13059 # Just in case.
13060 sleep 1
13061 am_has_slept=yes
13062 done
13063 test "$2" = conftest.file
13064 )
13065then
13066 # Ok.
13067 :
13068else
13069 as_fn_error $? "newly created file is older than distributed files!
13070Check your system clock" "$LINENO" 5
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13073$as_echo "yes" >&6; }
13074# If we didn't sleep, we still need to ensure time stamps of config.status and
13075# generated files are strictly newer.
13076am_sleep_pid=
13077if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13078 ( sleep 1 ) &
13079 am_sleep_pid=$!
13080fi
13081
13082rm -f conftest.file
13083
13084if test x"${MISSING+set}" != xset; then
13085 case $am_aux_dir in
13086 *\ * | *\ *)
13087 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13088 *)
13089 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13090 esac
13091fi
13092# Use eval to expand $SHELL
13093if eval "$MISSING --is-lightweight"; then
13094 am_missing_run="$MISSING "
c2783492
MF
13095else
13096 am_missing_run=
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13098$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13099fi
13100
13101if test x"${install_sh+set}" != xset; then
13102 case $am_aux_dir in
13103 *\ * | *\ *)
13104 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13105 *)
13106 install_sh="\${SHELL} $am_aux_dir/install-sh"
13107 esac
13108fi
13109
13110# Installed binaries are usually stripped using 'strip' when the user
13111# run "make install-strip". However 'strip' might not be the right
13112# tool to use in cross-compilation environments, therefore Automake
13113# will honor the 'STRIP' environment variable to overrule this program.
13114if test "$cross_compiling" != no; then
13115 if test -n "$ac_tool_prefix"; then
13116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13117set dummy ${ac_tool_prefix}strip; ac_word=$2
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if ${ac_cv_prog_STRIP+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 if test -n "$STRIP"; then
13124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
81ecdfbb 13136 fi
81ecdfbb 13137done
c2783492
MF
13138 done
13139IFS=$as_save_IFS
b7026657 13140
c906108c 13141fi
b7026657 13142fi
c2783492
MF
13143STRIP=$ac_cv_prog_STRIP
13144if test -n "$STRIP"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13146$as_echo "$STRIP" >&6; }
81ecdfbb 13147else
c2783492
MF
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
81ecdfbb 13150fi
b7026657 13151
b7026657 13152
c2783492
MF
13153fi
13154if test -z "$ac_cv_prog_STRIP"; then
13155 ac_ct_STRIP=$STRIP
13156 # Extract the first word of "strip", so it can be a program name with args.
13157set dummy strip; ac_word=$2
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159$as_echo_n "checking for $ac_word... " >&6; }
13160if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13161 $as_echo_n "(cached) " >&6
c906108c 13162else
c2783492
MF
13163 if test -n "$ac_ct_STRIP"; then
13164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
81ecdfbb 13165else
c2783492
MF
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_ac_ct_STRIP="strip"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177done
13178 done
13179IFS=$as_save_IFS
81ecdfbb 13180
81ecdfbb 13181fi
df1756f4 13182fi
c2783492
MF
13183ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13184if test -n "$ac_ct_STRIP"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13186$as_echo "$ac_ct_STRIP" >&6; }
13187else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
b7026657 13190fi
c2783492
MF
13191
13192 if test "x$ac_ct_STRIP" = x; then
13193 STRIP=":"
c906108c 13194 else
c2783492
MF
13195 case $cross_compiling:$ac_tool_warned in
13196yes:)
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13199ac_tool_warned=yes ;;
13200esac
13201 STRIP=$ac_ct_STRIP
c906108c
SS
13202 fi
13203else
c2783492 13204 STRIP="$ac_cv_prog_STRIP"
c906108c 13205fi
81ecdfbb 13206
b7026657 13207fi
c2783492 13208INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
b7026657 13209
c2783492
MF
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13211$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13212if test -z "$MKDIR_P"; then
13213 if ${ac_cv_path_mkdir+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215else
13216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13218do
13219 IFS=$as_save_IFS
13220 test -z "$as_dir" && as_dir=.
13221 for ac_prog in mkdir gmkdir; do
13222 for ac_exec_ext in '' $ac_executable_extensions; do
13223 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13224 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13225 'mkdir (GNU coreutils) '* | \
13226 'mkdir (coreutils) '* | \
13227 'mkdir (fileutils) '4.1*)
13228 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13229 break 3;;
13230 esac
13231 done
13232 done
13233 done
13234IFS=$as_save_IFS
b7026657 13235
fdd6fa61
AG
13236fi
13237
c2783492
MF
13238 test -d ./--version && rmdir ./--version
13239 if test "${ac_cv_path_mkdir+set}" = set; then
13240 MKDIR_P="$ac_cv_path_mkdir -p"
b5689863
MF
13241 else
13242 # As a last resort, use the slow shell script. Don't cache a
13243 # value for MKDIR_P within a source directory, because that will
13244 # break other packages using the cache if that directory is
13245 # removed, or if the value is a relative name.
13246 MKDIR_P="$ac_install_sh -d"
13247 fi
c2783492 13248fi
b5689863
MF
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13250$as_echo "$MKDIR_P" >&6; }
6bddc3e8 13251
c2783492
MF
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13253$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13254set x ${MAKE-make}
13255ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13256if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6bddc3e8
MF
13257 $as_echo_n "(cached) " >&6
13258else
c2783492
MF
13259 cat >conftest.make <<\_ACEOF
13260SHELL = /bin/sh
13261all:
13262 @echo '@@@%%%=$(MAKE)=@@@%%%'
13263_ACEOF
13264# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13265case `${MAKE-make} -f conftest.make 2>/dev/null` in
13266 *@@@%%%=?*=@@@%%%*)
13267 eval ac_cv_prog_make_${ac_make}_set=yes;;
13268 *)
13269 eval ac_cv_prog_make_${ac_make}_set=no;;
13270esac
13271rm -f conftest.make
13272fi
13273if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275$as_echo "yes" >&6; }
13276 SET_MAKE=
13277else
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279$as_echo "no" >&6; }
13280 SET_MAKE="MAKE=${MAKE-make}"
13281fi
6bddc3e8 13282
c2783492
MF
13283rm -rf .tst 2>/dev/null
13284mkdir .tst 2>/dev/null
13285if test -d .tst; then
13286 am__leading_dot=.
13287else
13288 am__leading_dot=_
13289fi
13290rmdir .tst 2>/dev/null
6bddc3e8 13291
c2783492 13292DEPDIR="${am__leading_dot}deps"
6bddc3e8 13293
c2783492 13294ac_config_commands="$ac_config_commands depfiles"
6bddc3e8 13295
c2783492
MF
13296
13297am_make=${MAKE-make}
13298cat > confinc << 'END'
13299am__doit:
13300 @echo this is the am__doit target
13301.PHONY: am__doit
13302END
13303# If we don't find an include directive, just comment out the code.
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13305$as_echo_n "checking for style of include used by $am_make... " >&6; }
13306am__include="#"
13307am__quote=
13308_am_result=none
13309# First try GNU make style include.
13310echo "include confinc" > confmf
13311# Ignore all kinds of additional output from 'make'.
13312case `$am_make -s -f confmf 2> /dev/null` in #(
13313*the\ am__doit\ target*)
13314 am__include=include
13315 am__quote=
13316 _am_result=GNU
13317 ;;
13318esac
13319# Now try BSD make style include.
13320if test "$am__include" = "#"; then
13321 echo '.include "confinc"' > confmf
13322 case `$am_make -s -f confmf 2> /dev/null` in #(
13323 *the\ am__doit\ target*)
13324 am__include=.include
13325 am__quote="\""
13326 _am_result=BSD
13327 ;;
13328 esac
6bddc3e8
MF
13329fi
13330
c2783492
MF
13331
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13333$as_echo "$_am_result" >&6; }
13334rm -f confinc confmf
13335
13336# Check whether --enable-dependency-tracking was given.
13337if test "${enable_dependency_tracking+set}" = set; then :
13338 enableval=$enable_dependency_tracking;
6bddc3e8 13339fi
6bddc3e8 13340
c2783492
MF
13341if test "x$enable_dependency_tracking" != xno; then
13342 am_depcomp="$ac_aux_dir/depcomp"
13343 AMDEPBACKSLASH='\'
13344 am__nodep='_no'
13345fi
13346 if test "x$enable_dependency_tracking" != xno; then
13347 AMDEP_TRUE=
13348 AMDEP_FALSE='#'
6bddc3e8 13349else
c2783492
MF
13350 AMDEP_TRUE='#'
13351 AMDEP_FALSE=
6bddc3e8
MF
13352fi
13353
13354
c2783492
MF
13355# Check whether --enable-silent-rules was given.
13356if test "${enable_silent_rules+set}" = set; then :
13357 enableval=$enable_silent_rules;
5e25901f 13358fi
c2783492
MF
13359
13360case $enable_silent_rules in # (((
13361 yes) AM_DEFAULT_VERBOSITY=0;;
13362 no) AM_DEFAULT_VERBOSITY=1;;
13363 *) AM_DEFAULT_VERBOSITY=1;;
13364esac
13365am_make=${MAKE-make}
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13367$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13368if ${am_cv_make_support_nested_variables+:} false; then :
5e25901f
MF
13369 $as_echo_n "(cached) " >&6
13370else
c2783492
MF
13371 if $as_echo 'TRUE=$(BAR$(V))
13372BAR0=false
13373BAR1=true
13374V=1
13375am__doit:
13376 @$(TRUE)
13377.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13378 am_cv_make_support_nested_variables=yes
5e25901f 13379else
c2783492 13380 am_cv_make_support_nested_variables=no
5e25901f 13381fi
c2783492
MF
13382fi
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13384$as_echo "$am_cv_make_support_nested_variables" >&6; }
13385if test $am_cv_make_support_nested_variables = yes; then
13386 AM_V='$(V)'
13387 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5e25901f 13388else
c2783492
MF
13389 AM_V=$AM_DEFAULT_VERBOSITY
13390 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5e25901f 13391fi
c2783492 13392AM_BACKSLASH='\'
5e25901f 13393
c2783492
MF
13394if test "`cd $srcdir && pwd`" != "`pwd`"; then
13395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13396 # is not polluted with repeated "-I."
13397 am__isrc=' -I$(srcdir)'
13398 # test to see if srcdir already configured
13399 if test -f $srcdir/config.status; then
13400 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13401 fi
5e25901f
MF
13402fi
13403
c2783492
MF
13404# test whether we have cygpath
13405if test -z "$CYGPATH_W"; then
13406 if (cygpath --version) >/dev/null 2>/dev/null; then
13407 CYGPATH_W='cygpath -w'
13408 else
13409 CYGPATH_W=echo
13410 fi
5e25901f 13411fi
c2783492
MF
13412
13413
13414# Define the identity of the package.
13415 PACKAGE='sim'
13416 VERSION='0'
13417
13418
13419cat >>confdefs.h <<_ACEOF
13420#define PACKAGE "$PACKAGE"
5e25901f 13421_ACEOF
5e25901f 13422
5e25901f 13423
c2783492
MF
13424cat >>confdefs.h <<_ACEOF
13425#define VERSION "$VERSION"
5e25901f 13426_ACEOF
5e25901f 13427
c2783492 13428# Some tools Automake needs.
5e25901f 13429
c2783492
MF
13430ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13431
13432
13433AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13434
13435
13436AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13437
13438
13439AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13440
13441
13442MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13443
13444# For better backward compatibility. To be removed once Automake 1.9.x
13445# dies out for good. For more background, see:
13446# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13447# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13448mkdir_p='$(MKDIR_P)'
13449
13450# We need awk for the "check" target (and possibly the TAP driver). The
13451# system "awk" is bad on some platforms.
13452# Always define AMTAR for backward compatibility. Yes, it's still used
13453# in the wild :-( We should find a proper way to deprecate it ...
13454AMTAR='$${TAR-tar}'
13455
13456
13457# We'll loop over all known methods to create a tar archive until one works.
13458_am_tools='gnutar pax cpio none'
13459
13460am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5e25901f 13461
5e25901f 13462
c906108c 13463
c906108c 13464
c2783492
MF
13465
13466depcc="$CC" am_compiler_list=
13467
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13469$as_echo_n "checking dependency style of $depcc... " >&6; }
13470if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 13471 $as_echo_n "(cached) " >&6
c906108c 13472else
c2783492
MF
13473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13474 # We make a subdir and do the tests there. Otherwise we can end up
13475 # making bogus files that we don't know about and never remove. For
13476 # instance it was reported that on HP-UX the gcc test will end up
13477 # making a dummy file named 'D' -- because '-MD' means "put the output
13478 # in D".
13479 rm -rf conftest.dir
13480 mkdir conftest.dir
13481 # Copy depcomp to subdir because otherwise we won't find it if we're
13482 # using a relative directory.
13483 cp "$am_depcomp" conftest.dir
13484 cd conftest.dir
13485 # We will build objects and dependencies in a subdirectory because
13486 # it helps to detect inapplicable dependency modes. For instance
13487 # both Tru64's cc and ICC support -MD to output dependencies as a
13488 # side effect of compilation, but ICC will put the dependencies in
13489 # the current directory while Tru64 will put them in the object
13490 # directory.
13491 mkdir sub
13492
13493 am_cv_CC_dependencies_compiler_type=none
13494 if test "$am_compiler_list" = ""; then
13495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
b7026657 13496 fi
c2783492
MF
13497 am__universal=false
13498 case " $depcc " in #(
13499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13500 esac
13501
13502 for depmode in $am_compiler_list; do
13503 # Setup a source with many dependencies, because some compilers
13504 # like to wrap large dependency lists on column 80 (with \), and
13505 # we should not choose a depcomp mode which is confused by this.
13506 #
13507 # We need to recreate these files for each test, as the compiler may
13508 # overwrite some of them when testing with obscure command lines.
13509 # This happens at least with the AIX C compiler.
13510 : > sub/conftest.c
13511 for i in 1 2 3 4 5 6; do
13512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13514 # Solaris 10 /bin/sh.
13515 echo '/* dummy */' > sub/conftst$i.h
13516 done
13517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13518
13519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13520 # mode. It turns out that the SunPro C++ compiler does not properly
13521 # handle '-M -o', and we need to detect this. Also, some Intel
13522 # versions had trouble with output in subdirs.
13523 am__obj=sub/conftest.${OBJEXT-o}
13524 am__minus_obj="-o $am__obj"
13525 case $depmode in
13526 gcc)
13527 # This depmode causes a compiler race in universal mode.
13528 test "$am__universal" = false || continue
13529 ;;
13530 nosideeffect)
13531 # After this tag, mechanisms are not by side-effect, so they'll
13532 # only be used when explicitly requested.
13533 if test "x$enable_dependency_tracking" = xyes; then
13534 continue
13535 else
13536 break
13537 fi
13538 ;;
13539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13540 # This compiler won't grok '-c -o', but also, the minuso test has
13541 # not run yet. These depmodes are late enough in the game, and
13542 # so weak that their functioning should not be impacted.
13543 am__obj=conftest.${OBJEXT-o}
13544 am__minus_obj=
13545 ;;
13546 none) break ;;
13547 esac
13548 if depmode=$depmode \
13549 source=sub/conftest.c object=$am__obj \
13550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13552 >/dev/null 2>conftest.err &&
13553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13557 # icc doesn't choke on unknown options, it will just issue warnings
13558 # or remarks (even with -Werror). So we grep stderr for any message
13559 # that says an option was ignored or not supported.
13560 # When given -MP, icc 7.0 and 7.1 complain thusly:
13561 # icc: Command line warning: ignoring option '-M'; no argument required
13562 # The diagnosis changed in icc 8.0:
13563 # icc: Command line remark: option '-MP' not supported
13564 if (grep 'ignoring option' conftest.err ||
13565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13566 am_cv_CC_dependencies_compiler_type=$depmode
13567 break
13568 fi
13569 fi
81ecdfbb 13570 done
b7026657 13571
c2783492
MF
13572 cd ..
13573 rm -rf conftest.dir
b7026657 13574else
c2783492 13575 am_cv_CC_dependencies_compiler_type=none
b7026657
AC
13576fi
13577
13578fi
c2783492
MF
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13580$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13581CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
b7026657 13582
c2783492
MF
13583 if
13584 test "x$enable_dependency_tracking" != xno \
13585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13586 am__fastdepCC_TRUE=
13587 am__fastdepCC_FALSE='#'
c906108c 13588else
c2783492
MF
13589 am__fastdepCC_TRUE='#'
13590 am__fastdepCC_FALSE=
b7026657
AC
13591fi
13592
c906108c
SS
13593
13594
c2783492
MF
13595# POSIX will say in a future version that running "rm -f" with no argument
13596# is OK; and we want to be able to make that assumption in our Makefile
13597# recipes. So use an aggressive probe to check that the usage we want is
13598# actually supported "in the wild" to an acceptable degree.
13599# See automake bug#10828.
13600# To make any issue more visible, cause the running configure to be aborted
13601# by default if the 'rm' program in use doesn't match our expectations; the
13602# user can still override this though.
13603if rm -f && rm -fr && rm -rf; then : OK; else
13604 cat >&2 <<'END'
13605Oops!
13606
13607Your 'rm' program seems unable to run without file operands specified
13608on the command line, even when the '-f' option is present. This is contrary
13609to the behaviour of most rm programs out there, and not conforming with
13610the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13611
13612Please tell bug-automake@gnu.org about your system, including the value
13613of your $PATH and any error possibly output before this message. This
13614can help us improve future automake versions.
13615
13616END
13617 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13618 echo 'Configuration will proceed anyway, since you have set the' >&2
13619 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13620 echo >&2
5c887dd5 13621 else
c2783492
MF
13622 cat >&2 <<'END'
13623Aborting the configuration process, to ensure you take notice of the issue.
13624
13625You can download and install GNU coreutils to get an 'rm' implementation
13626that behaves properly: <http://www.gnu.org/software/coreutils/>.
13627
13628If you want to complete the configuration process using your problematic
13629'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13630to "yes", and re-run configure.
13631
13632END
13633 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5c887dd5 13634 fi
c906108c
SS
13635fi
13636
fbe8d1cf
MF
13637# Check whether --enable-silent-rules was given.
13638if test "${enable_silent_rules+set}" = set; then :
13639 enableval=$enable_silent_rules;
13640fi
13641
13642case $enable_silent_rules in # (((
13643 yes) AM_DEFAULT_VERBOSITY=0;;
13644 no) AM_DEFAULT_VERBOSITY=1;;
13645 *) AM_DEFAULT_VERBOSITY=0;;
13646esac
13647am_make=${MAKE-make}
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13649$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13650if ${am_cv_make_support_nested_variables+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652else
13653 if $as_echo 'TRUE=$(BAR$(V))
13654BAR0=false
13655BAR1=true
13656V=1
13657am__doit:
13658 @$(TRUE)
13659.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13660 am_cv_make_support_nested_variables=yes
13661else
13662 am_cv_make_support_nested_variables=no
13663fi
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13666$as_echo "$am_cv_make_support_nested_variables" >&6; }
13667if test $am_cv_make_support_nested_variables = yes; then
13668 AM_V='$(V)'
13669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13670else
13671 AM_V=$AM_DEFAULT_VERBOSITY
13672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13673fi
13674AM_BACKSLASH='\'
13675
c906108c
SS
13676
13677# If a cpu ever has more than one simulator to choose from, use
13678# --enable-sim=... to choose.
81ecdfbb
RW
13679# Check whether --enable-sim was given.
13680if test "${enable_sim+set}" = set; then :
13681 enableval=$enable_sim; case "${enableval}" in
c906108c 13682yes | no) ;;
d0ac1c44 13683*) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
c906108c 13684esac
81ecdfbb
RW
13685fi
13686
c906108c 13687
26da232c
MF
13688# Check whether --enable-example-sims was given.
13689if test "${enable_example_sims+set}" = set; then :
13690 enableval=$enable_example_sims;
13691fi
13692
13693
a0e674c1
MF
13694# Check whether --enable-targets was given.
13695if test "${enable_targets+set}" = set; then :
13696 enableval=$enable_targets; case "${enableval}" in
13697 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13698 ;;
13699 no) enable_targets= ;;
13700 *) enable_targets=$enableval ;;
13701esac
13702fi
13703
13704
13705SIM_PRIMARY_TARGET=
13706
13707
36bb57e4
MF
13708SIM_SUBDIRS=
13709
13710
13711SIM_COMMON_BUILD_TRUE=
13712SIM_COMMON_BUILD_FALSE='#'
13713
13714
13715
13716ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13717
a0e674c1
MF
13718
13719
bc56166f 13720
119da465 13721if test "${enable_sim}" != no; then
3e8bb3e9 13722 sim_igen=no
a0e674c1
MF
13723 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13724 do
bc56166f 13725 case "${targ}" in
a0e674c1
MF
13726 all|aarch64*-*-*)
13727 if test "${targ}" = "${target}"; then
13728 SIM_PRIMARY_TARGET=aarch64
13729 fi
36bb57e4 13730 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
2e8cf49e 13731
36bb57e4 13732 ac_config_commands="$ac_config_commands aarch64/Makefile"
2e8cf49e 13733
36bb57e4 13734 as_fn_append SIM_SUBDIRS " aarch64"
fdd6fa61 13735
bc56166f
MF
13736 ac_config_commands="$ac_config_commands depdir-aarch64"
13737
13738
a0e674c1 13739
3e8bb3e9 13740 ;;
a0e674c1
MF
13741 esac
13742
bc56166f 13743 case "${targ}" in
a0e674c1
MF
13744 all|arm*-*-*)
13745 if test "${targ}" = "${target}"; then
13746 SIM_PRIMARY_TARGET=arm
13747 fi
36bb57e4
MF
13748 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13749
13750 ac_config_commands="$ac_config_commands arm/Makefile"
13751
13752 as_fn_append SIM_SUBDIRS " arm"
bc56166f
MF
13753
13754 ac_config_commands="$ac_config_commands depdir-arm"
13755
fdd6fa61 13756
a0e674c1 13757
3e8bb3e9 13758 ;;
a0e674c1
MF
13759 esac
13760
bc56166f 13761 case "${targ}" in
a0e674c1
MF
13762 all|avr*-*-*)
13763 if test "${targ}" = "${target}"; then
13764 SIM_PRIMARY_TARGET=avr
13765 fi
36bb57e4
MF
13766 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13767
13768 ac_config_commands="$ac_config_commands avr/Makefile"
13769
13770 as_fn_append SIM_SUBDIRS " avr"
bc56166f
MF
13771
13772 ac_config_commands="$ac_config_commands depdir-avr"
13773
0cd79707 13774
a0e674c1 13775
3e8bb3e9 13776 ;;
a0e674c1
MF
13777 esac
13778
bc56166f 13779 case "${targ}" in
a0e674c1
MF
13780 all|bfin-*-*)
13781 if test "${targ}" = "${target}"; then
13782 SIM_PRIMARY_TARGET=bfin
13783 fi
d8b04da7 13784 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
36bb57e4 13785
d8b04da7 13786 ac_config_commands="$ac_config_commands bfin/Makefile"
36bb57e4 13787
d8b04da7 13788 as_fn_append SIM_SUBDIRS " bfin"
bc56166f
MF
13789
13790 ac_config_commands="$ac_config_commands depdir-bfin"
13791
ddd44b70 13792
a0e674c1 13793
3e8bb3e9 13794 ;;
a0e674c1
MF
13795 esac
13796
bc56166f 13797 case "${targ}" in
a0e674c1
MF
13798 all|bpf-*-*)
13799 if test "${targ}" = "${target}"; then
13800 SIM_PRIMARY_TARGET=bpf
13801 fi
d8b04da7
MF
13802
13803
13804subdirs="$subdirs bpf"
36bb57e4 13805
bc56166f
MF
13806
13807 ac_config_commands="$ac_config_commands depdir-bpf"
13808
ddd44b70 13809
a0e674c1 13810
3e8bb3e9 13811 ;;
a0e674c1
MF
13812 esac
13813
bc56166f 13814 case "${targ}" in
a0e674c1
MF
13815 all|cr16*-*-*)
13816 if test "${targ}" = "${target}"; then
13817 SIM_PRIMARY_TARGET=cr16
13818 fi
36bb57e4
MF
13819 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13820
13821 ac_config_commands="$ac_config_commands cr16/Makefile"
13822
13823 as_fn_append SIM_SUBDIRS " cr16"
bc56166f
MF
13824
13825 ac_config_commands="$ac_config_commands depdir-cr16"
13826
ddd44b70 13827
a0e674c1 13828
3e8bb3e9 13829 ;;
a0e674c1
MF
13830 esac
13831
bc56166f 13832 case "${targ}" in
a0e674c1
MF
13833 all|cris-*-* | crisv32-*-*)
13834 if test "${targ}" = "${target}"; then
13835 SIM_PRIMARY_TARGET=cris
13836 fi
408a44aa 13837 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
36bb57e4 13838
408a44aa
MF
13839 ac_config_commands="$ac_config_commands cris/Makefile"
13840
13841 as_fn_append SIM_SUBDIRS " cris"
bc56166f
MF
13842
13843 ac_config_commands="$ac_config_commands depdir-cris"
13844
b9249c46 13845
a0e674c1 13846
3e8bb3e9 13847 ;;
a0e674c1
MF
13848 esac
13849
bc56166f 13850 case "${targ}" in
a0e674c1
MF
13851 all|d10v-*-*)
13852 if test "${targ}" = "${target}"; then
13853 SIM_PRIMARY_TARGET=d10v
13854 fi
36bb57e4
MF
13855 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13856
13857 ac_config_commands="$ac_config_commands d10v/Makefile"
13858
13859 as_fn_append SIM_SUBDIRS " d10v"
bc56166f
MF
13860
13861 ac_config_commands="$ac_config_commands depdir-d10v"
13862
b9249c46 13863
a0e674c1 13864
3e8bb3e9 13865 ;;
a0e674c1
MF
13866 esac
13867
bc56166f 13868 case "${targ}" in
a0e674c1
MF
13869 all|frv-*-*)
13870 if test "${targ}" = "${target}"; then
13871 SIM_PRIMARY_TARGET=frv
13872 fi
408a44aa
MF
13873 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
13874
13875 ac_config_commands="$ac_config_commands frv/Makefile"
36bb57e4 13876
408a44aa 13877 as_fn_append SIM_SUBDIRS " frv"
bc56166f
MF
13878
13879 ac_config_commands="$ac_config_commands depdir-frv"
13880
b9249c46 13881
a0e674c1 13882
36bb57e4
MF
13883 ;;
13884 esac
13885
13886 case "${targ}" in
13887 all|ft32-*-*)
13888 if test "${targ}" = "${target}"; then
13889 SIM_PRIMARY_TARGET=ft32
13890 fi
13891 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13892
13893 ac_config_commands="$ac_config_commands ft32/Makefile"
13894
13895 as_fn_append SIM_SUBDIRS " ft32"
13896
13897 ac_config_commands="$ac_config_commands depdir-ft32"
13898
13899
13900
3e8bb3e9 13901 ;;
a0e674c1
MF
13902 esac
13903
bc56166f 13904 case "${targ}" in
a0e674c1
MF
13905 all|h8300*-*-*)
13906 if test "${targ}" = "${target}"; then
13907 SIM_PRIMARY_TARGET=h8300
13908 fi
36bb57e4
MF
13909 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13910
13911 ac_config_commands="$ac_config_commands h8300/Makefile"
13912
13913 as_fn_append SIM_SUBDIRS " h8300"
bc56166f
MF
13914
13915 ac_config_commands="$ac_config_commands depdir-h8300"
13916
119da465 13917
a0e674c1 13918
3e8bb3e9 13919 ;;
a0e674c1
MF
13920 esac
13921
bc56166f 13922 case "${targ}" in
a0e674c1
MF
13923 all|iq2000-*-*)
13924 if test "${targ}" = "${target}"; then
13925 SIM_PRIMARY_TARGET=iq2000
13926 fi
408a44aa 13927 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
36bb57e4 13928
408a44aa
MF
13929 ac_config_commands="$ac_config_commands iq2000/Makefile"
13930
13931 as_fn_append SIM_SUBDIRS " iq2000"
bc56166f
MF
13932
13933 ac_config_commands="$ac_config_commands depdir-iq2000"
13934
119da465 13935
a0e674c1 13936
3e8bb3e9 13937 ;;
a0e674c1
MF
13938 esac
13939
bc56166f 13940 case "${targ}" in
a0e674c1
MF
13941 all|lm32-*-*)
13942 if test "${targ}" = "${target}"; then
13943 SIM_PRIMARY_TARGET=lm32
13944 fi
408a44aa
MF
13945 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
13946
13947 ac_config_commands="$ac_config_commands lm32/Makefile"
36bb57e4 13948
408a44aa 13949 as_fn_append SIM_SUBDIRS " lm32"
bc56166f
MF
13950
13951 ac_config_commands="$ac_config_commands depdir-lm32"
13952
119da465 13953
a0e674c1 13954
3e8bb3e9 13955 ;;
a0e674c1
MF
13956 esac
13957
bc56166f 13958 case "${targ}" in
a0e674c1
MF
13959 all|m32c-*-*)
13960 if test "${targ}" = "${target}"; then
13961 SIM_PRIMARY_TARGET=m32c
13962 fi
36bb57e4
MF
13963 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13964
13965 ac_config_commands="$ac_config_commands m32c/Makefile"
13966
13967 as_fn_append SIM_SUBDIRS " m32c"
bc56166f
MF
13968
13969 ac_config_commands="$ac_config_commands depdir-m32c"
13970
87326c78 13971
a0e674c1 13972
3e8bb3e9 13973 ;;
a0e674c1
MF
13974 esac
13975
bc56166f 13976 case "${targ}" in
a0e674c1
MF
13977 all|m32r-*-*)
13978 if test "${targ}" = "${target}"; then
13979 SIM_PRIMARY_TARGET=m32r
13980 fi
313c332f 13981 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
36bb57e4 13982
313c332f
MF
13983 ac_config_commands="$ac_config_commands m32r/Makefile"
13984
13985 as_fn_append SIM_SUBDIRS " m32r"
bc56166f
MF
13986
13987 ac_config_commands="$ac_config_commands depdir-m32r"
13988
87326c78 13989
a0e674c1 13990
3e8bb3e9 13991 ;;
a0e674c1
MF
13992 esac
13993
bc56166f 13994 case "${targ}" in
a0e674c1
MF
13995 all|m68hc11-*-*|m6811-*-*)
13996 if test "${targ}" = "${target}"; then
13997 SIM_PRIMARY_TARGET=m68hc11
13998 fi
36bb57e4
MF
13999 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
14000
14001 ac_config_commands="$ac_config_commands m68hc11/Makefile"
14002
14003 as_fn_append SIM_SUBDIRS " m68hc11"
bc56166f
MF
14004
14005 ac_config_commands="$ac_config_commands depdir-m68hc11"
14006
87326c78 14007
a0e674c1 14008
3e8bb3e9 14009 ;;
a0e674c1
MF
14010 esac
14011
bc56166f 14012 case "${targ}" in
a0e674c1
MF
14013 all|mcore-*-*)
14014 if test "${targ}" = "${target}"; then
14015 SIM_PRIMARY_TARGET=mcore
14016 fi
36bb57e4
MF
14017 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
14018
14019 ac_config_commands="$ac_config_commands mcore/Makefile"
14020
14021 as_fn_append SIM_SUBDIRS " mcore"
bc56166f
MF
14022
14023 ac_config_commands="$ac_config_commands depdir-mcore"
14024
119da465 14025
a0e674c1 14026
3e8bb3e9 14027 ;;
a0e674c1
MF
14028 esac
14029
bc56166f 14030 case "${targ}" in
a0e674c1
MF
14031 all|microblaze-*-*)
14032 if test "${targ}" = "${target}"; then
14033 SIM_PRIMARY_TARGET=microblaze
14034 fi
36bb57e4
MF
14035 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
14036
14037 ac_config_commands="$ac_config_commands microblaze/Makefile"
14038
14039 as_fn_append SIM_SUBDIRS " microblaze"
bc56166f
MF
14040
14041 ac_config_commands="$ac_config_commands depdir-microblaze"
14042
119da465 14043
a0e674c1 14044
3e8bb3e9 14045 ;;
a0e674c1
MF
14046 esac
14047
bc56166f 14048 case "${targ}" in
a0e674c1
MF
14049 all|mips*-*-*)
14050 if test "${targ}" = "${target}"; then
14051 SIM_PRIMARY_TARGET=mips
14052 fi
36bb57e4
MF
14053 subdirs="$subdirs mips"
14054
bc56166f
MF
14055
14056 ac_config_commands="$ac_config_commands depdir-mips"
14057
119da465 14058
3e8bb3e9
MF
14059 sim_igen=yes
14060 ;;
a0e674c1
MF
14061 esac
14062
bc56166f 14063 case "${targ}" in
a0e674c1
MF
14064 all|mn10300*-*-*)
14065 if test "${targ}" = "${target}"; then
14066 SIM_PRIMARY_TARGET=mn10300
14067 fi
36bb57e4
MF
14068 subdirs="$subdirs mn10300"
14069
bc56166f
MF
14070
14071 ac_config_commands="$ac_config_commands depdir-mn10300"
14072
119da465 14073
3e8bb3e9
MF
14074 sim_igen=yes
14075 ;;
a0e674c1
MF
14076 esac
14077
bc56166f 14078 case "${targ}" in
a0e674c1
MF
14079 all|moxie-*-*)
14080 if test "${targ}" = "${target}"; then
14081 SIM_PRIMARY_TARGET=moxie
14082 fi
36bb57e4
MF
14083 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
14084
14085 ac_config_commands="$ac_config_commands moxie/Makefile"
14086
14087 as_fn_append SIM_SUBDIRS " moxie"
bc56166f
MF
14088
14089 ac_config_commands="$ac_config_commands depdir-moxie"
14090
119da465 14091
a0e674c1 14092
3e8bb3e9 14093 ;;
a0e674c1
MF
14094 esac
14095
bc56166f 14096 case "${targ}" in
a0e674c1
MF
14097 all|msp430*-*-*)
14098 if test "${targ}" = "${target}"; then
14099 SIM_PRIMARY_TARGET=msp430
14100 fi
36bb57e4
MF
14101 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
14102
14103 ac_config_commands="$ac_config_commands msp430/Makefile"
14104
14105 as_fn_append SIM_SUBDIRS " msp430"
bc56166f
MF
14106
14107 ac_config_commands="$ac_config_commands depdir-msp430"
14108
119da465 14109
a0e674c1 14110
3e8bb3e9 14111 ;;
a0e674c1
MF
14112 esac
14113
bc56166f 14114 case "${targ}" in
a0e674c1
MF
14115 all|or1k-*-* | or1knd-*-*)
14116 if test "${targ}" = "${target}"; then
14117 SIM_PRIMARY_TARGET=or1k
14118 fi
36bb57e4
MF
14119 subdirs="$subdirs or1k"
14120
bc56166f
MF
14121
14122 ac_config_commands="$ac_config_commands depdir-or1k"
14123
119da465 14124
a0e674c1 14125
3e8bb3e9 14126 ;;
a0e674c1
MF
14127 esac
14128
bc56166f 14129 case "${targ}" in
a0e674c1
MF
14130 all|pru*-*-*)
14131 if test "${targ}" = "${target}"; then
14132 SIM_PRIMARY_TARGET=pru
14133 fi
36bb57e4
MF
14134 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
14135
14136 ac_config_commands="$ac_config_commands pru/Makefile"
14137
14138 as_fn_append SIM_SUBDIRS " pru"
bc56166f
MF
14139
14140 ac_config_commands="$ac_config_commands depdir-pru"
14141
119da465 14142
a0e674c1 14143
3e8bb3e9 14144 ;;
a0e674c1
MF
14145 esac
14146
bc56166f 14147 case "${targ}" in
a0e674c1
MF
14148 all|riscv*-*-*)
14149 if test "${targ}" = "${target}"; then
14150 SIM_PRIMARY_TARGET=riscv
14151 fi
36bb57e4
MF
14152 subdirs="$subdirs riscv"
14153
bc56166f
MF
14154
14155 ac_config_commands="$ac_config_commands depdir-riscv"
14156
119da465 14157
a0e674c1 14158
3e8bb3e9 14159 ;;
a0e674c1
MF
14160 esac
14161
bc56166f 14162 case "${targ}" in
a0e674c1
MF
14163 all|rl78-*-*)
14164 if test "${targ}" = "${target}"; then
14165 SIM_PRIMARY_TARGET=rl78
14166 fi
36bb57e4
MF
14167 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
14168
14169 ac_config_commands="$ac_config_commands rl78/Makefile"
14170
14171 as_fn_append SIM_SUBDIRS " rl78"
bc56166f
MF
14172
14173 ac_config_commands="$ac_config_commands depdir-rl78"
14174
f46e4eb7 14175
a0e674c1 14176
3e8bb3e9 14177 ;;
a0e674c1
MF
14178 esac
14179
bc56166f 14180 case "${targ}" in
a0e674c1
MF
14181 all|rx-*-*)
14182 if test "${targ}" = "${target}"; then
14183 SIM_PRIMARY_TARGET=rx
14184 fi
e173c80f 14185 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
36bb57e4 14186
e173c80f
MF
14187 ac_config_commands="$ac_config_commands rx/Makefile"
14188
14189 as_fn_append SIM_SUBDIRS " rx"
bc56166f
MF
14190
14191 ac_config_commands="$ac_config_commands depdir-rx"
14192
f46e4eb7 14193
a0e674c1 14194
3e8bb3e9 14195 ;;
a0e674c1
MF
14196 esac
14197
bc56166f 14198 case "${targ}" in
a0e674c1
MF
14199 all|sh*-*-*)
14200 if test "${targ}" = "${target}"; then
14201 SIM_PRIMARY_TARGET=sh
14202 fi
36bb57e4
MF
14203 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
14204
14205 ac_config_commands="$ac_config_commands sh/Makefile"
14206
14207 as_fn_append SIM_SUBDIRS " sh"
bc56166f
MF
14208
14209 ac_config_commands="$ac_config_commands depdir-sh"
14210
f46e4eb7 14211
a0e674c1 14212
3e8bb3e9 14213 ;;
a0e674c1
MF
14214 esac
14215
bc56166f 14216 case "${targ}" in
a0e674c1
MF
14217 all|sparc-*-rtems*|sparc-*-elf*)
14218 if test "${targ}" = "${target}"; then
14219 SIM_PRIMARY_TARGET=erc32
14220 fi
5d0b3088
MF
14221 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
14222
14223 ac_config_commands="$ac_config_commands erc32/Makefile"
36bb57e4 14224
5d0b3088 14225 as_fn_append SIM_SUBDIRS " erc32"
bc56166f
MF
14226
14227 ac_config_commands="$ac_config_commands depdir-erc32"
14228
119da465 14229
a0e674c1 14230
3e8bb3e9 14231 ;;
a0e674c1
MF
14232 esac
14233
bc56166f 14234 case "${targ}" in
a0e674c1
MF
14235 all|powerpc*-*-*)
14236 if test "${targ}" = "${target}"; then
14237 SIM_PRIMARY_TARGET=ppc
14238 fi
36bb57e4 14239 subdirs="$subdirs ppc"
bc56166f 14240
bc56166f 14241
36bb57e4 14242 ac_config_commands="$ac_config_commands depdir-ppc"
bc56166f 14243
119da465 14244
a0e674c1 14245
3e8bb3e9 14246 ;;
a0e674c1
MF
14247 esac
14248
bc56166f 14249 case "${targ}" in
a0e674c1
MF
14250 all|v850*-*-*)
14251 if test "${targ}" = "${target}"; then
14252 SIM_PRIMARY_TARGET=v850
14253 fi
36bb57e4
MF
14254 subdirs="$subdirs v850"
14255
bc56166f
MF
14256
14257 ac_config_commands="$ac_config_commands depdir-v850"
14258
119da465 14259
3e8bb3e9
MF
14260 sim_igen=yes
14261 ;;
14262 esac
a0e674c1
MF
14263
14264 done
26da232c
MF
14265
14266 if test "x${enable_example_sims}" = xyes; then
36bb57e4
MF
14267 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
14268
14269 ac_config_commands="$ac_config_commands example-synacor/Makefile"
14270
14271 as_fn_append SIM_SUBDIRS " example-synacor"
bc56166f
MF
14272
14273 ac_config_commands="$ac_config_commands depdir-example-synacor"
14274
26da232c
MF
14275
14276 fi
b6b1c790
MF
14277fi
14278 if test "$sim_igen" = "yes"; then
14279 SIM_ENABLE_IGEN_TRUE=
14280 SIM_ENABLE_IGEN_FALSE='#'
14281else
14282 SIM_ENABLE_IGEN_TRUE='#'
14283 SIM_ENABLE_IGEN_FALSE=
c906108c
SS
14284fi
14285
b6b1c790 14286
ba307cdd
MF
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
14288$as_echo_n "checking whether to force sim alignment... " >&6; }
14289sim_alignment=
14290# Check whether --enable-sim-alignment was given.
14291if test "${enable_sim_alignment+set}" = set; then :
14292 enableval=$enable_sim_alignment; case "${enableval}" in
14293 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
14294 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
14295 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
14296 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
14297esac
14298fi
14299
14300cat >>confdefs.h <<_ACEOF
14301#define WITH_ALIGNMENT ${sim_alignment:-0}
14302_ACEOF
14303
14304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14305$as_echo "${sim_alignment:-no}" >&6; }
14306
dba333c1
MF
14307
14308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
14309$as_echo_n "checking whether to enable sim asserts... " >&6; }
14310sim_assert="1"
14311# Check whether --enable-sim-assert was given.
14312if test "${enable_sim_assert+set}" = set; then :
14313 enableval=$enable_sim_assert; case "${enableval}" in
14314 yes) sim_assert="1";;
14315 no) sim_assert="0";;
14316 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
14317esac
14318fi
14319
14320cat >>confdefs.h <<_ACEOF
14321#define WITH_ASSERT $sim_assert
14322_ACEOF
14323
14324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
14325$as_echo "$sim_assert" >&6; }
14326
1bf5c342
MF
14327
14328cgen_maint=no
14329cgen=guile
14330cgendir='$(srcdir)/../../cgen'
14331# Check whether --enable-cgen-maint was given.
14332if test "${enable_cgen_maint+set}" = set; then :
14333 enableval=$enable_cgen_maint; case "${enableval}" in
14334 yes) cgen_maint=yes ;;
14335 no) cgen_maint=no ;;
14336 *)
14337 # Argument is a directory where cgen can be found. In some
14338 # future world cgen could be installable, but right now this
14339 # is not the case. Instead we assume the directory is a path
14340 # to the cgen source tree.
14341 cgen_maint=yes
14342 if test -r ${enableval}/iformat.scm; then
14343 # This looks like a cgen source tree.
14344 cgendir=${enableval}
14345 else
14346 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14347 fi
14348 ;;
14349esac
14350fi
14351if test x${cgen_maint} != xno ; then
14352 CGEN_MAINT=''
14353else
14354 CGEN_MAINT='#'
14355fi
14356
14357
14358
14359
04381273
MF
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
14361$as_echo_n "checking for sim debug setting... " >&6; }
14362sim_debug="0"
14363# Check whether --enable-sim-debug was given.
14364if test "${enable_sim_debug+set}" = set; then :
14365 enableval=$enable_sim_debug; case "${enableval}" in
14366 yes) sim_debug="7";;
14367 no) sim_debug="0";;
14368 *) sim_debug="($enableval)";;
14369esac
14370fi
14371if test "$sim_debug" != "0"; then
14372
14373cat >>confdefs.h <<_ACEOF
14374#define DEBUG $sim_debug
14375_ACEOF
14376
14377fi
14378
14379cat >>confdefs.h <<_ACEOF
14380#define WITH_DEBUG $sim_debug
14381_ACEOF
14382
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
14384$as_echo "$sim_debug" >&6; }
f9a4d543
MF
14385
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
14387$as_echo_n "checking whether to force sim endianness... " >&6; }
14388sim_endian=
14389# Check whether --enable-sim-endian was given.
14390if test "${enable_sim_endian+set}" = set; then :
14391 enableval=$enable_sim_endian; case "${enableval}" in
14392 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
14393 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
14394 yes | no) ;;
14395 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
14396esac
14397fi
14398
14399cat >>confdefs.h <<_ACEOF
14400#define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
14401_ACEOF
14402
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14404$as_echo "${sim_alignment:-no}" >&6; }
04381273 14405
dba333c1 14406
5ea45474
MF
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
14408$as_echo_n "checking default sim environment setting... " >&6; }
14409sim_environment="ALL_ENVIRONMENT"
14410# Check whether --enable-sim-environment was given.
14411if test "${enable_sim_environment+set}" = set; then :
14412 enableval=$enable_sim_environment; case "${enableval}" in
14413 all | ALL) sim_environment="ALL_ENVIRONMENT";;
14414 user | USER) sim_environment="USER_ENVIRONMENT";;
14415 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
14416 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
14417 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
14418esac
14419fi
14420
14421cat >>confdefs.h <<_ACEOF
14422#define WITH_ENVIRONMENT $sim_environment
14423_ACEOF
14424
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
14426$as_echo "$sim_environment" >&6; }
14427
456ef1c1
MF
14428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
14429$as_echo_n "checking for sim hardware settings... " >&6; }
14430# Check whether --enable-sim-hardware was given.
14431if test "${enable_sim_hardware+set}" = set; then :
14432 enableval=$enable_sim_hardware;
14433else
14434 enable_sim_hardware="yes"
14435fi
14436
14437sim_hw_sockser=
14438if test "$enable_sim_hardware" = no; then
14439 sim_hw_cflags="-DWITH_HW=0"
14440elif test "$enable_sim_hardware" = yes; then
14441 sim_hw_cflags="-DWITH_HW=1"
14442 # mingw does not support sockser
14443 case ${host} in
14444 *mingw*) ;;
14445 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14446 # that you instatiate. Instead, other code will call into it directly.
14447 # At some point, we should convert it over.
14448 sim_hw_sockser="dv-sockser.o"
14449 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14450 ;;
14451 esac
14452else
14453 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14454fi
14455 if test "$enable_sim_hardware" = "yes"; then
14456 SIM_ENABLE_HW_TRUE=
14457 SIM_ENABLE_HW_FALSE='#'
14458else
14459 SIM_ENABLE_HW_TRUE='#'
14460 SIM_ENABLE_HW_FALSE=
14461fi
14462
14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14464$as_echo "${enable_sim_hardware}" >&6; }
14465
14466
14467
d73f39ee
MF
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14469$as_echo_n "checking sim inline settings... " >&6; }
14470sim_inline="-DDEFAULT_INLINE=0"
14471# Check whether --enable-sim-inline was given.
14472if test "${enable_sim_inline+set}" = set; then :
14473 enableval=$enable_sim_inline; sim_inline=""
14474case "$enableval" in
14475 no) sim_inline="-DDEFAULT_INLINE=0";;
14476 0) sim_inline="-DDEFAULT_INLINE=0";;
14477 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14478 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14479 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14480 new_flag=""
14481 case "$x" in
14482 *_INLINE=*) new_flag="-D$x";;
14483 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14484 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14485 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14486 esac
14487 if test x"$sim_inline" = x""; then
14488 sim_inline="$new_flag"
14489 else
14490 sim_inline="$sim_inline $new_flag"
14491 fi
14492 done;;
14493esac
14494
14495fi
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14497$as_echo "$sim_inline" >&6; }
14498SIM_INLINE=$sim_inline
14499
14500
04381273
MF
14501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14502$as_echo_n "checking for sim profile settings... " >&6; }
14503profile="1"
14504sim_profile="-1"
14505# Check whether --enable-sim-profile was given.
14506if test "${enable_sim_profile+set}" = set; then :
14507 enableval=$enable_sim_profile; case "${enableval}" in
14508 yes) profile="1" sim_profile="-1";;
14509 no) profile="0" sim_profile="0";;
14510 [-0-9]*)
14511 profile="(${enableval})" sim_profile="(${enableval})";;
14512 [a-z]*)
14513 profile="1"
14514 sim_profile=""
14515 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14516 if test x"$sim_profile" = x; then
14517 sim_profile="(PROFILE_$x"
14518 else
14519 sim_profile="${sim_profile}|PROFILE_$x"
14520 fi
14521 done
14522 sim_profile="$sim_profile)" ;;
14523esac
14524fi
14525
14526cat >>confdefs.h <<_ACEOF
14527#define PROFILE $profile
14528_ACEOF
14529
14530
14531cat >>confdefs.h <<_ACEOF
14532#define WITH_PROFILE $sim_profile
14533_ACEOF
14534
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14536$as_echo "$sim_profile" >&6; }
14537
7eb1f99a
MF
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
14539$as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
14540# Check whether --enable-sim-reserved-bits was given.
14541if test "${enable_sim_reserved_bits+set}" = set; then :
14542 enableval=$enable_sim_reserved_bits; case "${enableval}" in
14543yes|no) ;;
14544*) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
14545esac
14546fi
14547
14548if test "x${enable_sim_reserved_bits}" != xno; then
14549 sim_reserved_bits=1
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14551$as_echo "yes" >&6; }
14552else
14553 sim_reserved_bits=0
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555$as_echo "no" >&6; }
14556fi
14557
14558cat >>confdefs.h <<_ACEOF
14559#define WITH_RESERVED_BITS $sim_reserved_bits
14560_ACEOF
14561
14562
b79efe26
MF
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
14564$as_echo_n "checking for sim cache size... " >&6; }
14565sim_scache="16384"
14566# Check whether --enable-sim-scache was given.
14567if test "${enable_sim_scache+set}" = set; then :
14568 enableval=$enable_sim_scache; case "${enableval}" in
14569 yes) ;;
14570 no) sim_scache="0";;
14571 [0-9]*) sim_scache="${enableval}";;
14572 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
14573esac
14574fi
14575
14576
14577cat >>confdefs.h <<_ACEOF
14578#define WITH_SCACHE $sim_scache
14579_ACEOF
14580
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
14582$as_echo "$sim_scache" >&6; }
14583
04381273
MF
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14585$as_echo_n "checking for sim stdio debug behavior... " >&6; }
14586sim_stdio="0"
14587# Check whether --enable-sim-stdio was given.
14588if test "${enable_sim_stdio+set}" = set; then :
14589 enableval=$enable_sim_stdio; case "${enableval}" in
14590 yes) sim_stdio="DO_USE_STDIO";;
14591 no) sim_stdio="DONT_USE_STDIO";;
14592 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14593esac
14594fi
14595
14596cat >>confdefs.h <<_ACEOF
14597#define WITH_STDIO $sim_stdio
14598_ACEOF
14599
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14601$as_echo "$sim_stdio" >&6; }
14602
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14604$as_echo_n "checking for sim trace settings... " >&6; }
14605sim_trace="~TRACE_debug"
14606# Check whether --enable-sim-trace was given.
14607if test "${enable_sim_trace+set}" = set; then :
14608 enableval=$enable_sim_trace; case "${enableval}" in
14609 yes) sim_trace="-1";;
14610 no) sim_trace="0";;
14611 [-0-9]*)
14612 sim_trace="'(${enableval})'";;
14613 [[:lower:]]*)
14614 sim_trace=""
14615 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14616 if test x"$sim_trace" = x; then
14617 sim_trace="(TRACE_$x"
14618 else
14619 sim_trace="${sim_trace}|TRACE_$x"
14620 fi
14621 done
14622 sim_trace="$sim_trace)" ;;
14623esac
14624fi
14625
14626cat >>confdefs.h <<_ACEOF
14627#define WITH_TRACE $sim_trace
14628_ACEOF
14629
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14631$as_echo "$sim_trace" >&6; }
14632
5ea45474 14633
47ce766a
MF
14634# Check whether --enable-werror was given.
14635if test "${enable_werror+set}" = set; then :
14636 enableval=$enable_werror; case "${enableval}" in
14637 yes | y) ERROR_ON_WARNING="yes" ;;
14638 no | n) ERROR_ON_WARNING="no" ;;
14639 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14640 esac
14641fi
14642
14643
14644if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14645 ERROR_ON_WARNING=yes
14646fi
14647
14648WERROR_CFLAGS=""
14649if test "${ERROR_ON_WARNING}" = yes ; then
14650 WERROR_CFLAGS="-Werror"
14651fi
14652
7f6fa743
MF
14653build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
14654-Wno-unused -Wunused-value -Wunused-function
14655-Wno-switch -Wno-char-subscripts
14656-Wempty-body -Wunused-but-set-parameter
3167423f 14657-Wno-error=maybe-uninitialized
7f6fa743
MF
14658-Wmissing-declarations
14659-Wmissing-prototypes
14660-Wdeclaration-after-statement -Wmissing-parameter-type
14661-Wpointer-sign
14662-Wold-style-declaration -Wold-style-definition
14663"
47ce766a
MF
14664
14665# Enable -Wno-format by default when using gcc on mingw since many
14666# GCC versions complain about %I64.
14667case "${host}" in
14668 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14669 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14670esac
14671
14672# Check whether --enable-build-warnings was given.
14673if test "${enable_build_warnings+set}" = set; then :
14674 enableval=$enable_build_warnings; case "${enableval}" in
14675 yes) ;;
14676 no) build_warnings="-w";;
14677 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14678 build_warnings="${build_warnings} ${t}";;
14679 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14680 build_warnings="${t} ${build_warnings}";;
14681 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14682esac
14683if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14684 echo "Setting compiler warning flags = $build_warnings" 6>&1
14685fi
14686fi
14687# Check whether --enable-sim-build-warnings was given.
14688if test "${enable_sim_build_warnings+set}" = set; then :
14689 enableval=$enable_sim_build_warnings; case "${enableval}" in
14690 yes) ;;
14691 no) build_warnings="-w";;
14692 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14693 build_warnings="${build_warnings} ${t}";;
14694 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14695 build_warnings="${t} ${build_warnings}";;
14696 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14697esac
14698if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14699 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14700fi
14701fi
14702WARN_CFLAGS=""
14703if test "x${build_warnings}" != x -a "x$GCC" = xyes
14704then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14706$as_echo_n "checking compiler warning flags... " >&6; }
14707 # Separate out the -Werror flag as some files just cannot be
14708 # compiled with it enabled.
14709 for w in ${build_warnings}; do
14710 case $w in
14711 -Werr*) WERROR_CFLAGS=-Werror ;;
14712 *) # Check that GCC accepts it
14713 saved_CFLAGS="$CFLAGS"
14714 CFLAGS="$CFLAGS -Werror $w"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716/* end confdefs.h. */
14717
14718int
14719main ()
14720{
14721
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726if ac_fn_c_try_compile "$LINENO"; then :
14727 WARN_CFLAGS="${WARN_CFLAGS} $w"
14728fi
14729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 CFLAGS="$saved_CFLAGS"
14731 esac
14732 done
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14734$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14735fi
14736
14737
36bb57e4
MF
14738
14739
14740
408a44aa
MF
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
14742$as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
14743# Check whether --enable-sim-frv-trapdump was given.
14744if test "${enable_sim_frv_trapdump+set}" = set; then :
14745 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
14746yes|no) ;;
14747*) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
14748esac
14749fi
14750
14751if test "x${enable_sim_frv_trapdump}" != xno; then
14752 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754$as_echo "yes" >&6; }
14755else
14756 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758$as_echo "no" >&6; }
14759fi
14760
14761
e173c80f
MF
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14763$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14764# Check whether --enable-sim-rx-cycle-accurate was given.
14765if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14766 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14767yes | no) ;;
14768*) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14769esac
14770fi
14771
14772if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14773 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14775$as_echo "yes" >&6; }
14776else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778$as_echo "no" >&6; }
14779fi
14780
14781
14782
3f8414df 14783ac_config_files="$ac_config_files arch-subdir.mk Makefile"
81ecdfbb 14784
b7026657 14785cat >confcache <<\_ACEOF
c906108c
SS
14786# This file is a shell script that caches the results of configure
14787# tests run on this system so they can be shared between configure
b7026657
AC
14788# scripts and configure runs, see configure's option --config-cache.
14789# It is not useful on other systems. If it contains results you don't
14790# want to keep, you may remove or edit it.
c906108c 14791#
b7026657
AC
14792# config.status only pays attention to the cache file if you give it
14793# the --recheck option to rerun configure.
c906108c 14794#
b7026657
AC
14795# `ac_cv_env_foo' variables (set or unset) will be overridden when
14796# loading this file, other *unset* `ac_cv_foo' will be assigned the
14797# following values.
14798
14799_ACEOF
14800
c906108c
SS
14801# The following way of writing the cache mishandles newlines in values,
14802# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14803# So, we kill variables containing newlines.
c906108c
SS
14804# Ultrix sh set writes to stderr and can't be redirected directly,
14805# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14806(
14807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14808 eval ac_val=\$$ac_var
14809 case $ac_val in #(
14810 *${as_nl}*)
14811 case $ac_var in #(
14812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14814 esac
14815 case $ac_var in #(
14816 _ | IFS | as_nl) ;; #(
14817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14818 *) { eval $ac_var=; unset $ac_var;} ;;
14819 esac ;;
14820 esac
14821 done
14822
b7026657 14823 (set) 2>&1 |
81ecdfbb
RW
14824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14825 *${as_nl}ac_space=\ *)
14826 # `set' does not quote correctly, so add quotes: double-quote
14827 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
14828 sed -n \
14829 "s/'/'\\\\''/g;
14830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14831 ;; #(
b7026657
AC
14832 *)
14833 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 14835 ;;
81ecdfbb
RW
14836 esac |
14837 sort
14838) |
b7026657 14839 sed '
81ecdfbb 14840 /^ac_cv_env_/b end
b7026657 14841 t clear
81ecdfbb 14842 :clear
b7026657
AC
14843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14844 t end
81ecdfbb
RW
14845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14846 :end' >>confcache
14847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14848 if test -w "$cache_file"; then
d0ac1c44 14849 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14851$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
14852 if test ! -f "$cache_file" || test -h "$cache_file"; then
14853 cat confcache >"$cache_file"
14854 else
14855 case $cache_file in #(
14856 */* | ?:*)
14857 mv -f confcache "$cache_file"$$ &&
14858 mv -f "$cache_file"$$ "$cache_file" ;; #(
14859 *)
14860 mv -f confcache "$cache_file" ;;
14861 esac
14862 fi
14863 fi
c906108c 14864 else
81ecdfbb
RW
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14866$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
14867 fi
14868fi
14869rm -f confcache
14870
c906108c
SS
14871test "x$prefix" = xNONE && prefix=$ac_default_prefix
14872# Let make expand exec_prefix.
14873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14874
b15c5d7a 14875DEFS=-DHAVE_CONFIG_H
b7026657
AC
14876
14877ac_libobjs=
14878ac_ltlibobjs=
d0ac1c44 14879U=
b7026657
AC
14880for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14881 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14882 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14883 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14885 # will be set to the directory where LIBOBJS objects are built.
14886 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14887 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
14888done
14889LIBOBJS=$ac_libobjs
c906108c 14890
b7026657
AC
14891LTLIBOBJS=$ac_ltlibobjs
14892
14893
c2783492 14894
b5689863
MF
14895if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14896 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14897Usually this means the macro was only invoked conditionally." "$LINENO" 5
14898fi
8c379db2
TT
14899if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14900 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14901Usually this means the macro was only invoked conditionally." "$LINENO" 5
14902fi
6bddc3e8
MF
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14904$as_echo_n "checking that generated files are newer than configure... " >&6; }
14905 if test -n "$am_sleep_pid"; then
14906 # Hide warnings about reused PIDs.
14907 wait $am_sleep_pid 2>/dev/null
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14910$as_echo "done" >&6; }
6bddc3e8
MF
14911if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14912 as_fn_error $? "conditional \"AMDEP\" was never defined.
14913Usually this means the macro was only invoked conditionally." "$LINENO" 5
14914fi
14915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14916 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14917Usually this means the macro was only invoked conditionally." "$LINENO" 5
14918fi
c2783492
MF
14919 if test -n "$EXEEXT"; then
14920 am__EXEEXT_TRUE=
14921 am__EXEEXT_FALSE='#'
14922else
14923 am__EXEEXT_TRUE='#'
14924 am__EXEEXT_FALSE=
6bddc3e8 14925fi
b7026657 14926
b6b1c790
MF
14927if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14928 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14929Usually this means the macro was only invoked conditionally." "$LINENO" 5
14930fi
456ef1c1
MF
14931if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14932 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14933Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934fi
c2783492 14935
d0ac1c44 14936: "${CONFIG_STATUS=./config.status}"
81ecdfbb 14937ac_write_fail=0
b7026657
AC
14938ac_clean_files_save=$ac_clean_files
14939ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14941$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14942as_write_fail=0
14943cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
14944#! $SHELL
14945# Generated by $as_me.
c906108c 14946# Run this file to recreate the current configuration.
c906108c 14947# Compiler output produced by configure, useful for debugging
b7026657
AC
14948# configure, is in config.log if it exists.
14949
14950debug=false
14951ac_cs_recheck=false
14952ac_cs_silent=false
b7026657 14953
81ecdfbb
RW
14954SHELL=\${CONFIG_SHELL-$SHELL}
14955export SHELL
14956_ASEOF
14957cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14958## -------------------- ##
14959## M4sh Initialization. ##
14960## -------------------- ##
14961
14962# Be more Bourne compatible
14963DUALCASE=1; export DUALCASE # for MKS sh
14964if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
14965 emulate sh
14966 NULLCMD=:
81ecdfbb 14967 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
14968 # is contrary to our usage. Disable this feature.
14969 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14970 setopt NO_GLOB_SUBST
14971else
14972 case `(set -o) 2>/dev/null` in #(
14973 *posix*) :
14974 set -o posix ;; #(
14975 *) :
14976 ;;
14977esac
b7026657 14978fi
c906108c 14979
81ecdfbb
RW
14980
14981as_nl='
14982'
14983export as_nl
14984# Printing a long string crashes Solaris 7 /usr/bin/printf.
14985as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14986as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14987as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14988# Prefer a ksh shell builtin over an external printf program on Solaris,
14989# but without wasting forks for bash or zsh.
14990if test -z "$BASH_VERSION$ZSH_VERSION" \
14991 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14992 as_echo='print -r --'
14993 as_echo_n='print -rn --'
14994elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14995 as_echo='printf %s\n'
14996 as_echo_n='printf %s'
b7026657 14997else
81ecdfbb
RW
14998 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14999 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15000 as_echo_n='/usr/ucb/echo -n'
15001 else
15002 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15003 as_echo_n_body='eval
15004 arg=$1;
15005 case $arg in #(
15006 *"$as_nl"*)
15007 expr "X$arg" : "X\\(.*\\)$as_nl";
15008 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15009 esac;
15010 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15011 '
15012 export as_echo_n_body
15013 as_echo_n='sh -c $as_echo_n_body as_echo'
15014 fi
15015 export as_echo_body
15016 as_echo='sh -c $as_echo_body as_echo'
15017fi
15018
15019# The user is always right.
15020if test "${PATH_SEPARATOR+set}" != set; then
15021 PATH_SEPARATOR=:
15022 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15023 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15024 PATH_SEPARATOR=';'
15025 }
b7026657
AC
15026fi
15027
15028
81ecdfbb
RW
15029# IFS
15030# We need space, tab and new line, in precisely that order. Quoting is
15031# there to prevent editors from complaining about space-tab.
15032# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15033# splitting by setting IFS to empty value.)
15034IFS=" "" $as_nl"
15035
15036# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15037as_myself=
81ecdfbb
RW
15038case $0 in #((
15039 *[\\/]* ) as_myself=$0 ;;
15040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15041for as_dir in $PATH
15042do
15043 IFS=$as_save_IFS
15044 test -z "$as_dir" && as_dir=.
15045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15046 done
15047IFS=$as_save_IFS
15048
15049 ;;
15050esac
15051# We did not find ourselves, most probably we were run as `sh COMMAND'
15052# in which case we are not to be found in the path.
15053if test "x$as_myself" = x; then
15054 as_myself=$0
15055fi
15056if test ! -f "$as_myself"; then
15057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15058 exit 1
15059fi
15060
15061# Unset variables that we do not need and which cause bugs (e.g. in
15062# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15063# suppresses any "Segmentation fault" message there. '((' could
15064# trigger a bug in pdksh 5.2.14.
15065for as_var in BASH_ENV ENV MAIL MAILPATH
15066do eval test x\${$as_var+set} = xset \
15067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15068done
b7026657
AC
15069PS1='$ '
15070PS2='> '
15071PS4='+ '
15072
15073# NLS nuisances.
81ecdfbb
RW
15074LC_ALL=C
15075export LC_ALL
15076LANGUAGE=C
15077export LANGUAGE
15078
15079# CDPATH.
15080(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15081
15082
d0ac1c44
SM
15083# as_fn_error STATUS ERROR [LINENO LOG_FD]
15084# ----------------------------------------
81ecdfbb
RW
15085# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15086# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15087# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15088as_fn_error ()
15089{
d0ac1c44
SM
15090 as_status=$1; test $as_status -eq 0 && as_status=1
15091 if test "$4"; then
15092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 15094 fi
d0ac1c44 15095 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15096 as_fn_exit $as_status
15097} # as_fn_error
c906108c 15098
81ecdfbb
RW
15099
15100# as_fn_set_status STATUS
15101# -----------------------
15102# Set $? to STATUS, without forking.
15103as_fn_set_status ()
15104{
15105 return $1
15106} # as_fn_set_status
15107
15108# as_fn_exit STATUS
15109# -----------------
15110# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15111as_fn_exit ()
15112{
15113 set +e
15114 as_fn_set_status $1
15115 exit $1
15116} # as_fn_exit
15117
15118# as_fn_unset VAR
15119# ---------------
15120# Portably unset VAR.
15121as_fn_unset ()
15122{
15123 { eval $1=; unset $1;}
15124}
15125as_unset=as_fn_unset
15126# as_fn_append VAR VALUE
15127# ----------------------
15128# Append the text in VALUE to the end of the definition contained in VAR. Take
15129# advantage of any shell optimizations that allow amortized linear growth over
15130# repeated appends, instead of the typical quadratic growth present in naive
15131# implementations.
15132if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15133 eval 'as_fn_append ()
15134 {
15135 eval $1+=\$2
15136 }'
15137else
15138 as_fn_append ()
15139 {
15140 eval $1=\$$1\$2
15141 }
15142fi # as_fn_append
15143
15144# as_fn_arith ARG...
15145# ------------------
15146# Perform arithmetic evaluation on the ARGs, and store the result in the
15147# global $as_val. Take advantage of shells that can avoid forks. The arguments
15148# must be portable across $(()) and expr.
15149if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15150 eval 'as_fn_arith ()
15151 {
15152 as_val=$(( $* ))
15153 }'
15154else
15155 as_fn_arith ()
15156 {
15157 as_val=`expr "$@" || test $? -eq 1`
15158 }
15159fi # as_fn_arith
15160
15161
15162if expr a : '\(a\)' >/dev/null 2>&1 &&
15163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
15164 as_expr=expr
15165else
15166 as_expr=false
15167fi
c906108c 15168
81ecdfbb 15169if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
15170 as_basename=basename
15171else
15172 as_basename=false
15173fi
c906108c 15174
81ecdfbb
RW
15175if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15176 as_dirname=dirname
15177else
15178 as_dirname=false
15179fi
c906108c 15180
81ecdfbb 15181as_me=`$as_basename -- "$0" ||
b7026657
AC
15182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15183 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15185$as_echo X/"$0" |
15186 sed '/^.*\/\([^/][^/]*\)\/*$/{
15187 s//\1/
15188 q
15189 }
15190 /^X\/\(\/\/\)$/{
15191 s//\1/
15192 q
15193 }
15194 /^X\/\(\/\).*/{
15195 s//\1/
15196 q
15197 }
15198 s/.*/./; q'`
b7026657 15199
fdd6fa61
AG
15200# Avoid depending upon Character Ranges.
15201as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15202as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15203as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15204as_cr_digits='0123456789'
15205as_cr_alnum=$as_cr_Letters$as_cr_digits
15206
81ecdfbb
RW
15207ECHO_C= ECHO_N= ECHO_T=
15208case `echo -n x` in #(((((
15209-n*)
15210 case `echo 'xy\c'` in
15211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15212 xy) ECHO_C='\c';;
15213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15214 ECHO_T=' ';;
15215 esac;;
15216*)
15217 ECHO_N='-n';;
b7026657
AC
15218esac
15219
81ecdfbb
RW
15220rm -f conf$$ conf$$.exe conf$$.file
15221if test -d conf$$.dir; then
15222 rm -f conf$$.dir/conf$$.file
b7026657 15223else
81ecdfbb
RW
15224 rm -f conf$$.dir
15225 mkdir conf$$.dir 2>/dev/null
b7026657 15226fi
81ecdfbb
RW
15227if (echo >conf$$.file) 2>/dev/null; then
15228 if ln -s conf$$.file conf$$ 2>/dev/null; then
fdd6fa61 15229 as_ln_s='ln -s'
81ecdfbb
RW
15230 # ... but there are two gotchas:
15231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15233 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15235 as_ln_s='cp -pR'
81ecdfbb
RW
15236 elif ln conf$$.file conf$$ 2>/dev/null; then
15237 as_ln_s=ln
15238 else
d0ac1c44 15239 as_ln_s='cp -pR'
fdd6fa61 15240 fi
b7026657 15241else
d0ac1c44 15242 as_ln_s='cp -pR'
b7026657 15243fi
81ecdfbb
RW
15244rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15245rmdir conf$$.dir 2>/dev/null
15246
15247
15248# as_fn_mkdir_p
15249# -------------
15250# Create "$as_dir" as a directory, including parents if necessary.
15251as_fn_mkdir_p ()
15252{
b7026657 15253
81ecdfbb
RW
15254 case $as_dir in #(
15255 -*) as_dir=./$as_dir;;
15256 esac
15257 test -d "$as_dir" || eval $as_mkdir_p || {
15258 as_dirs=
15259 while :; do
15260 case $as_dir in #(
15261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15262 *) as_qdir=$as_dir;;
15263 esac
15264 as_dirs="'$as_qdir' $as_dirs"
15265 as_dir=`$as_dirname -- "$as_dir" ||
15266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15267 X"$as_dir" : 'X\(//\)[^/]' \| \
15268 X"$as_dir" : 'X\(//\)$' \| \
15269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15270$as_echo X"$as_dir" |
15271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15272 s//\1/
15273 q
15274 }
15275 /^X\(\/\/\)[^/].*/{
15276 s//\1/
15277 q
15278 }
15279 /^X\(\/\/\)$/{
15280 s//\1/
15281 q
15282 }
15283 /^X\(\/\).*/{
15284 s//\1/
15285 q
15286 }
15287 s/.*/./; q'`
15288 test -d "$as_dir" && break
15289 done
15290 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
15292
15293
15294} # as_fn_mkdir_p
b7026657 15295if mkdir -p . 2>/dev/null; then
81ecdfbb 15296 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
15297else
15298 test -d ./-p && rmdir ./-p
15299 as_mkdir_p=false
15300fi
15301
d0ac1c44
SM
15302
15303# as_fn_executable_p FILE
15304# -----------------------
15305# Test if FILE is an executable regular file.
15306as_fn_executable_p ()
15307{
15308 test -f "$1" && test -x "$1"
15309} # as_fn_executable_p
15310as_test_x='test -x'
15311as_executable_p=as_fn_executable_p
b7026657
AC
15312
15313# Sed expression to map a string onto a valid CPP name.
15314as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15315
15316# Sed expression to map a string onto a valid variable name.
15317as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15318
15319
b7026657 15320exec 6>&1
81ecdfbb
RW
15321## ----------------------------------- ##
15322## Main body of $CONFIG_STATUS script. ##
15323## ----------------------------------- ##
15324_ASEOF
15325test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15326
15327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328# Save the log message, to keep $0 and so on meaningful, and to
b7026657 15329# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15330# values after options handling.
15331ac_log="
6bddc3e8 15332This file was extended by sim $as_me 0, which was
d0ac1c44 15333generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
15334
15335 CONFIG_FILES = $CONFIG_FILES
15336 CONFIG_HEADERS = $CONFIG_HEADERS
15337 CONFIG_LINKS = $CONFIG_LINKS
15338 CONFIG_COMMANDS = $CONFIG_COMMANDS
15339 $ $0 $@
15340
81ecdfbb
RW
15341on `(hostname || uname -n) 2>/dev/null | sed 1q`
15342"
15343
b7026657
AC
15344_ACEOF
15345
81ecdfbb
RW
15346case $ac_config_files in *"
15347"*) set x $ac_config_files; shift; ac_config_files=$*;;
15348esac
b7026657 15349
b15c5d7a
MF
15350case $ac_config_headers in *"
15351"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15352esac
fdd6fa61 15353
fdd6fa61 15354
81ecdfbb
RW
15355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15356# Files that config.status was made for.
15357config_files="$ac_config_files"
b15c5d7a 15358config_headers="$ac_config_headers"
6bddc3e8 15359config_commands="$ac_config_commands"
b7026657 15360
81ecdfbb 15361_ACEOF
fdd6fa61 15362
81ecdfbb 15363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 15364ac_cs_usage="\
81ecdfbb
RW
15365\`$as_me' instantiates files and other configuration actions
15366from templates according to the current configuration. Unless the files
15367and actions are specified as TAGs, all are instantiated by default.
b7026657 15368
81ecdfbb 15369Usage: $0 [OPTION]... [TAG]...
b7026657
AC
15370
15371 -h, --help print this help, then exit
81ecdfbb 15372 -V, --version print version number and configuration settings, then exit
d0ac1c44 15373 --config print configuration, then exit
81ecdfbb
RW
15374 -q, --quiet, --silent
15375 do not print progress messages
b7026657
AC
15376 -d, --debug don't remove temporary files
15377 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15378 --file=FILE[:TEMPLATE]
15379 instantiate the configuration file FILE
b15c5d7a
MF
15380 --header=FILE[:TEMPLATE]
15381 instantiate the configuration header FILE
b7026657
AC
15382
15383Configuration files:
15384$config_files
15385
b15c5d7a
MF
15386Configuration headers:
15387$config_headers
15388
6bddc3e8
MF
15389Configuration commands:
15390$config_commands
15391
15392Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
15393sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
fdd6fa61 15394
81ecdfbb
RW
15395_ACEOF
15396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15397ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657 15398ac_cs_version="\\
6bddc3e8 15399sim config.status 0
d0ac1c44
SM
15400configured by $0, generated by GNU Autoconf 2.69,
15401 with options \\"\$ac_cs_config\\"
b7026657 15402
d0ac1c44 15403Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
15404This config.status script is free software; the Free Software Foundation
15405gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15406
15407ac_pwd='$ac_pwd'
15408srcdir='$srcdir'
15409INSTALL='$INSTALL'
6bddc3e8
MF
15410MKDIR_P='$MKDIR_P'
15411AWK='$AWK'
81ecdfbb 15412test -n "\$AWK" || AWK=awk
b7026657
AC
15413_ACEOF
15414
81ecdfbb
RW
15415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416# The default lists apply if the user does not specify any file.
b7026657
AC
15417ac_need_defaults=:
15418while test $# != 0
15419do
15420 case $1 in
d0ac1c44 15421 --*=?*)
81ecdfbb
RW
15422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15423 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657
AC
15424 ac_shift=:
15425 ;;
d0ac1c44
SM
15426 --*=)
15427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15428 ac_optarg=
15429 ac_shift=:
15430 ;;
81ecdfbb 15431 *)
b7026657
AC
15432 ac_option=$1
15433 ac_optarg=$2
15434 ac_shift=shift
15435 ;;
b7026657
AC
15436 esac
15437
15438 case $ac_option in
15439 # Handling of the options.
b7026657
AC
15440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15441 ac_cs_recheck=: ;;
81ecdfbb
RW
15442 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15443 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15444 --config | --confi | --conf | --con | --co | --c )
15445 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15446 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
15447 debug=: ;;
15448 --file | --fil | --fi | --f )
15449 $ac_shift
81ecdfbb
RW
15450 case $ac_optarg in
15451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15452 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15453 esac
15454 as_fn_append CONFIG_FILES " '$ac_optarg'"
fdd6fa61 15455 ac_need_defaults=false;;
b15c5d7a
MF
15456 --header | --heade | --head | --hea )
15457 $ac_shift
15458 case $ac_optarg in
15459 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15460 esac
15461 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15462 ac_need_defaults=false;;
15463 --he | --h)
15464 # Conflict between --help and --header
15465 as_fn_error $? "ambiguous option: \`$1'
15466Try \`$0 --help' for more information.";;
15467 --help | --hel | -h )
81ecdfbb 15468 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
15469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15471 ac_cs_silent=: ;;
15472
15473 # This is an error.
d0ac1c44 15474 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15475Try \`$0 --help' for more information." ;;
b7026657 15476
81ecdfbb
RW
15477 *) as_fn_append ac_config_targets " $1"
15478 ac_need_defaults=false ;;
b7026657
AC
15479
15480 esac
15481 shift
c906108c 15482done
b7026657
AC
15483
15484ac_configure_extra_args=
15485
15486if $ac_cs_silent; then
15487 exec 6>/dev/null
15488 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c 15489fi
c906108c 15490
b7026657 15491_ACEOF
81ecdfbb 15492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 15493if \$ac_cs_recheck; then
d0ac1c44 15494 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15495 shift
15496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15497 CONFIG_SHELL='$SHELL'
15498 export CONFIG_SHELL
15499 exec "\$@"
b7026657 15500fi
c906108c 15501
b7026657 15502_ACEOF
81ecdfbb
RW
15503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504exec 5>>config.log
15505{
15506 echo
15507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15508## Running $as_me. ##
15509_ASBOX
15510 $as_echo "$ac_log"
15511} >&5
b7026657 15512
81ecdfbb
RW
15513_ACEOF
15514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6bddc3e8
MF
15515#
15516# INIT-COMMANDS
15517#
b5689863
MF
15518
15519
15520# The HP-UX ksh and POSIX shell print the target directory to stdout
15521# if CDPATH is set.
15522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15523
15524sed_quote_subst='$sed_quote_subst'
15525double_quote_subst='$double_quote_subst'
15526delay_variable_subst='$delay_variable_subst'
15527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15529enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15530enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15532enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15533SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15534ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15535host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15536host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15537host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15538build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15539build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15540build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15541SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15542Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15543GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15544EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15545FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15546LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15547NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15548LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15549max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15550ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15551exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15552lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15553lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15554lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15555reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15556reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15557OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15558deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15559file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15560AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15561AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15562STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15563RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15564old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15565old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15566old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15567lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15568CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15569CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15570compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15571GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15572lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15573lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15574lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15575lt_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"`'
15576objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15577MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15578lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15579lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15580lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15581lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15582lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15583need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15584DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15585NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15586LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15587OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15588OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15589libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15590shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15591extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15592archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15593enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15594export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15595whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15596compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15597old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15598old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15599archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15600archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15601module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15602module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15603with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15604allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15605no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15606hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15607hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15608hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15609hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15610hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15611hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15612hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15613hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15614inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15615link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15616fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15617always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15618export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15619exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15620include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15621prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15622file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15623variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15624need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15625need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15626version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15627runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15628shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15629shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15630libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15631library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15632soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15633install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15634postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15635postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15636finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15637finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15638hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15639sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15640sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15641hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15642enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15643enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15644enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15645old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15646striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15647
15648LTCC='$LTCC'
15649LTCFLAGS='$LTCFLAGS'
15650compiler='$compiler_DEFAULT'
15651
15652# A function that is used when there is no print builtin or printf.
15653func_fallback_echo ()
15654{
15655 eval 'cat <<_LTECHO_EOF
15656\$1
15657_LTECHO_EOF'
15658}
15659
15660# Quote evaled strings.
15661for var in SHELL \
15662ECHO \
15663SED \
15664GREP \
15665EGREP \
15666FGREP \
15667LD \
15668NM \
15669LN_S \
15670lt_SP2NL \
15671lt_NL2SP \
15672reload_flag \
15673OBJDUMP \
15674deplibs_check_method \
15675file_magic_cmd \
15676AR \
15677AR_FLAGS \
15678STRIP \
15679RANLIB \
15680CC \
15681CFLAGS \
15682compiler \
15683lt_cv_sys_global_symbol_pipe \
15684lt_cv_sys_global_symbol_to_cdecl \
15685lt_cv_sys_global_symbol_to_c_name_address \
15686lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15687lt_prog_compiler_no_builtin_flag \
15688lt_prog_compiler_wl \
15689lt_prog_compiler_pic \
15690lt_prog_compiler_static \
15691lt_cv_prog_compiler_c_o \
15692need_locks \
15693DSYMUTIL \
15694NMEDIT \
15695LIPO \
15696OTOOL \
15697OTOOL64 \
15698shrext_cmds \
15699export_dynamic_flag_spec \
15700whole_archive_flag_spec \
15701compiler_needs_object \
15702with_gnu_ld \
15703allow_undefined_flag \
15704no_undefined_flag \
15705hardcode_libdir_flag_spec \
15706hardcode_libdir_flag_spec_ld \
15707hardcode_libdir_separator \
15708fix_srcfile_path \
15709exclude_expsyms \
15710include_expsyms \
15711file_list_spec \
15712variables_saved_for_relink \
15713libname_spec \
15714library_names_spec \
15715soname_spec \
15716install_override_mode \
15717finish_eval \
15718old_striplib \
15719striplib; do
15720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15721 *[\\\\\\\`\\"\\\$]*)
15722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15723 ;;
15724 *)
15725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15726 ;;
15727 esac
15728done
15729
15730# Double-quote double-evaled strings.
15731for var in reload_cmds \
15732old_postinstall_cmds \
15733old_postuninstall_cmds \
15734old_archive_cmds \
15735extract_expsyms_cmds \
15736old_archive_from_new_cmds \
15737old_archive_from_expsyms_cmds \
15738archive_cmds \
15739archive_expsym_cmds \
15740module_cmds \
15741module_expsym_cmds \
15742export_symbols_cmds \
15743prelink_cmds \
15744postinstall_cmds \
15745postuninstall_cmds \
15746finish_cmds \
15747sys_lib_search_path_spec \
15748sys_lib_dlsearch_path_spec; do
15749 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15750 *[\\\\\\\`\\"\\\$]*)
15751 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15752 ;;
15753 *)
15754 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15755 ;;
15756 esac
15757done
15758
15759ac_aux_dir='$ac_aux_dir'
15760xsi_shell='$xsi_shell'
15761lt_shell_append='$lt_shell_append'
15762
15763# See if we are running on zsh, and set the options which allow our
15764# commands through without removal of \ escapes INIT.
15765if test -n "\${ZSH_VERSION+set}" ; then
15766 setopt NO_GLOB_SUBST
15767fi
15768
15769
15770 PACKAGE='$PACKAGE'
15771 VERSION='$VERSION'
15772 TIMESTAMP='$TIMESTAMP'
15773 RM='$RM'
15774 ofile='$ofile'
15775
15776
15777
6bddc3e8 15778AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
bc56166f
MF
15779ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15780ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15781ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15782ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15783ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15784ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15785ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15786ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15787ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15788ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15789ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15790ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15791ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15792ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15793ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15794ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15795ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15796ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15797ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15798ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15799ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15800ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15801ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15802ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15803ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15804ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15805ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15806ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15807ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15808ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15809ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15810ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6bddc3e8 15811
81ecdfbb 15812_ACEOF
b7026657 15813
81ecdfbb 15814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
df1756f4 15815
81ecdfbb 15816# Handling of arguments.
b7026657
AC
15817for ac_config_target in $ac_config_targets
15818do
81ecdfbb 15819 case $ac_config_target in
b15c5d7a 15820 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
b5689863 15821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
6bddc3e8 15822 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36bb57e4
MF
15823 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15824 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15825 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
bc56166f 15826 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
36bb57e4
MF
15827 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15828 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
bc56166f 15829 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
36bb57e4
MF
15830 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15831 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
bc56166f 15832 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
d8b04da7
MF
15833 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
15834 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
bc56166f
MF
15835 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15836 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
36bb57e4
MF
15837 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15838 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
bc56166f 15839 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
408a44aa
MF
15840 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
15841 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
bc56166f 15842 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
36bb57e4
MF
15843 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15844 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
bc56166f 15845 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
408a44aa
MF
15846 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
15847 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
bc56166f 15848 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
36bb57e4
MF
15849 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15850 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15851 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15852 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15853 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
bc56166f 15854 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
408a44aa
MF
15855 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
15856 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
bc56166f 15857 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
408a44aa
MF
15858 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
15859 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
bc56166f 15860 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
36bb57e4
MF
15861 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15862 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
bc56166f 15863 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
313c332f
MF
15864 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
15865 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
bc56166f 15866 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
36bb57e4
MF
15867 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15868 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
bc56166f 15869 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
36bb57e4
MF
15870 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15871 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
bc56166f 15872 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
36bb57e4
MF
15873 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15874 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
bc56166f
MF
15875 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15876 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15877 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
36bb57e4
MF
15878 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15879 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
bc56166f 15880 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
36bb57e4
MF
15881 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15882 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
bc56166f
MF
15883 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15884 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
36bb57e4
MF
15885 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15886 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
bc56166f
MF
15887 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15888 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
36bb57e4
MF
15889 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15890 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
bc56166f 15891 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
e173c80f
MF
15892 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
15893 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
bc56166f 15894 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
36bb57e4
MF
15895 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15896 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
bc56166f 15897 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
5d0b3088
MF
15898 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
15899 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
bc56166f
MF
15900 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15901 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
bc56166f 15902 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
36bb57e4
MF
15903 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15904 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
bc56166f 15905 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
3f8414df 15906 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
81ecdfbb
RW
15907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15908
d0ac1c44 15909 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 15910 esac
b7026657 15911done
c906108c 15912
81ecdfbb 15913
b7026657
AC
15914# If the user did not use the arguments to specify the items to instantiate,
15915# then the envvar interface is used. Set only those that are not.
15916# We use the long form for the default assignment because of an extremely
15917# bizarre bug on SunOS 4.1.3.
15918if $ac_need_defaults; then
15919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
b15c5d7a 15920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6bddc3e8 15921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b7026657 15922fi
c906108c 15923
b7026657 15924# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15925# simply because there is no reason against having it here, and in addition,
b7026657 15926# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15927# Hook for its removal unless debugging.
15928# Note that there is a small window in which the directory will not be cleaned:
15929# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
15930$debug ||
15931{
d0ac1c44 15932 tmp= ac_tmp=
81ecdfbb 15933 trap 'exit_status=$?
d0ac1c44
SM
15934 : "${ac_tmp:=$tmp}"
15935 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
15936' 0
15937 trap 'as_fn_exit 1' 1 2 13 15
b7026657 15938}
b7026657
AC
15939# Create a (secure) tmp directory for tmp files.
15940
15941{
81ecdfbb 15942 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 15943 test -d "$tmp"
b7026657
AC
15944} ||
15945{
81ecdfbb
RW
15946 tmp=./conf$$-$RANDOM
15947 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
15948} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15949ac_tmp=$tmp
81ecdfbb
RW
15950
15951# Set up the scripts for CONFIG_FILES section.
15952# No need to generate them if there are no CONFIG_FILES.
15953# This happens for instance with `./config.status config.h'.
15954if test -n "$CONFIG_FILES"; then
15955
15956
15957ac_cr=`echo X | tr X '\015'`
15958# On cygwin, bash can eat \r inside `` if the user requested igncr.
15959# But we know of no other shell where ac_cr would be empty at this
15960# point, so we can use a bashism as a fallback.
15961if test "x$ac_cr" = x; then
15962 eval ac_cr=\$\'\\r\'
15963fi
15964ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15965if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 15966 ac_cs_awk_cr='\\r'
81ecdfbb
RW
15967else
15968 ac_cs_awk_cr=$ac_cr
15969fi
15970
d0ac1c44 15971echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
15972_ACEOF
15973
15974
15975{
15976 echo "cat >conf$$subs.awk <<_ACEOF" &&
15977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15978 echo "_ACEOF"
15979} >conf$$subs.sh ||
d0ac1c44
SM
15980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15981ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
15982ac_delim='%!_!# '
15983for ac_last_try in false false false false false :; do
15984 . ./conf$$subs.sh ||
d0ac1c44 15985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15986
15987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15988 if test $ac_delim_n = $ac_delim_num; then
15989 break
15990 elif $ac_last_try; then
d0ac1c44 15991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
15992 else
15993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15994 fi
15995done
15996rm -f conf$$subs.sh
15997
15998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15999cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
16000_ACEOF
16001sed -n '
16002h
16003s/^/S["/; s/!.*/"]=/
16004p
16005g
16006s/^[^!]*!//
16007:repl
16008t repl
16009s/'"$ac_delim"'$//
16010t delim
16011:nl
16012h
d0ac1c44 16013s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16014t more1
16015s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16016p
16017n
16018b repl
16019:more1
16020s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16021p
16022g
16023s/.\{148\}//
16024t nl
16025:delim
16026h
d0ac1c44 16027s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16028t more2
16029s/["\\]/\\&/g; s/^/"/; s/$/"/
16030p
16031b
16032:more2
16033s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16034p
16035g
16036s/.\{148\}//
16037t delim
16038' <conf$$subs.awk | sed '
16039/^[^""]/{
16040 N
16041 s/\n//
16042}
16043' >>$CONFIG_STATUS || ac_write_fail=1
16044rm -f conf$$subs.awk
16045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046_ACAWK
d0ac1c44 16047cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16048 for (key in S) S_is_set[key] = 1
16049 FS = "\a"
16050
16051}
b7026657 16052{
81ecdfbb
RW
16053 line = $ 0
16054 nfields = split(line, field, "@")
16055 substed = 0
16056 len = length(field[1])
16057 for (i = 2; i < nfields; i++) {
16058 key = field[i]
16059 keylen = length(key)
16060 if (S_is_set[key]) {
16061 value = S[key]
16062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16063 len += length(value) + length(field[++i])
16064 substed = 1
16065 } else
16066 len += 1 + keylen
16067 }
16068
16069 print line
b7026657
AC
16070}
16071
81ecdfbb
RW
16072_ACAWK
16073_ACEOF
16074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16075if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16076 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16077else
16078 cat
d0ac1c44
SM
16079fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16080 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
fdd6fa61
AG
16081_ACEOF
16082
d0ac1c44
SM
16083# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16084# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16085# trailing colons and then remove the whole line if VPATH becomes empty
16086# (actually we leave an empty line to preserve line numbers).
16087if test "x$srcdir" = x.; then
d0ac1c44
SM
16088 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16089h
16090s///
16091s/^/:/
16092s/[ ]*$/:/
16093s/:\$(srcdir):/:/g
16094s/:\${srcdir}:/:/g
16095s/:@srcdir@:/:/g
16096s/^:*//
81ecdfbb 16097s/:*$//
d0ac1c44
SM
16098x
16099s/\(=[ ]*\).*/\1/
16100G
16101s/\n//
81ecdfbb
RW
16102s/^[^=]*=[ ]*$//
16103}'
16104fi
fdd6fa61 16105
81ecdfbb
RW
16106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107fi # test -n "$CONFIG_FILES"
b7026657 16108
b15c5d7a
MF
16109# Set up the scripts for CONFIG_HEADERS section.
16110# No need to generate them if there are no CONFIG_HEADERS.
16111# This happens for instance with `./config.status Makefile'.
16112if test -n "$CONFIG_HEADERS"; then
16113cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16114BEGIN {
16115_ACEOF
16116
16117# Transform confdefs.h into an awk script `defines.awk', embedded as
16118# here-document in config.status, that substitutes the proper values into
16119# config.h.in to produce config.h.
16120
16121# Create a delimiter string that does not exist in confdefs.h, to ease
16122# handling of long lines.
16123ac_delim='%!_!# '
16124for ac_last_try in false false :; do
16125 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16126 if test -z "$ac_tt"; then
16127 break
16128 elif $ac_last_try; then
16129 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16130 else
16131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16132 fi
16133done
16134
16135# For the awk script, D is an array of macro values keyed by name,
16136# likewise P contains macro parameters if any. Preserve backslash
16137# newline sequences.
16138
16139ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16140sed -n '
16141s/.\{148\}/&'"$ac_delim"'/g
16142t rset
16143:rset
16144s/^[ ]*#[ ]*define[ ][ ]*/ /
16145t def
16146d
16147:def
16148s/\\$//
16149t bsnl
16150s/["\\]/\\&/g
16151s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16152D["\1"]=" \3"/p
16153s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16154d
16155:bsnl
16156s/["\\]/\\&/g
16157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16158D["\1"]=" \3\\\\\\n"\\/p
16159t cont
16160s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16161t cont
16162d
16163:cont
16164n
16165s/.\{148\}/&'"$ac_delim"'/g
16166t clear
16167:clear
16168s/\\$//
16169t bsnlc
16170s/["\\]/\\&/g; s/^/"/; s/$/"/p
16171d
16172:bsnlc
16173s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16174b cont
16175' <confdefs.h | sed '
16176s/'"$ac_delim"'/"\\\
16177"/g' >>$CONFIG_STATUS || ac_write_fail=1
16178
16179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 for (key in D) D_is_set[key] = 1
16181 FS = "\a"
16182}
16183/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16184 line = \$ 0
16185 split(line, arg, " ")
16186 if (arg[1] == "#") {
16187 defundef = arg[2]
16188 mac1 = arg[3]
16189 } else {
16190 defundef = substr(arg[1], 2)
16191 mac1 = arg[2]
16192 }
16193 split(mac1, mac2, "(") #)
16194 macro = mac2[1]
16195 prefix = substr(line, 1, index(line, defundef) - 1)
16196 if (D_is_set[macro]) {
16197 # Preserve the white space surrounding the "#".
16198 print prefix "define", macro P[macro] D[macro]
16199 next
16200 } else {
16201 # Replace #undef with comments. This is necessary, for example,
16202 # in the case of _POSIX_SOURCE, which is predefined and required
16203 # on some systems where configure will not decide to define it.
16204 if (defundef == "undef") {
16205 print "/*", prefix defundef, macro, "*/"
16206 next
16207 }
16208 }
16209}
16210{ print }
16211_ACAWK
16212_ACEOF
16213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16214 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16215fi # test -n "$CONFIG_HEADERS"
b7026657 16216
b15c5d7a
MF
16217
16218eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
16219shift
16220for ac_tag
16221do
16222 case $ac_tag in
16223 :[FHLC]) ac_mode=$ac_tag; continue;;
16224 esac
16225 case $ac_mode$ac_tag in
16226 :[FHL]*:*);;
d0ac1c44 16227 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16228 :[FH]-) ac_tag=-:-;;
16229 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16230 esac
16231 ac_save_IFS=$IFS
16232 IFS=:
16233 set x $ac_tag
16234 IFS=$ac_save_IFS
16235 shift
16236 ac_file=$1
16237 shift
b7026657 16238
81ecdfbb
RW
16239 case $ac_mode in
16240 :L) ac_source=$1;;
16241 :[FH])
16242 ac_file_inputs=
16243 for ac_f
16244 do
16245 case $ac_f in
d0ac1c44 16246 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16247 *) # Look for the file first in the build tree, then in the source tree
16248 # (if the path is not absolute). The absolute path cannot be DOS-style,
16249 # because $ac_f cannot contain `:'.
16250 test -f "$ac_f" ||
16251 case $ac_f in
16252 [\\/$]*) false;;
16253 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16254 esac ||
d0ac1c44 16255 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16256 esac
16257 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16258 as_fn_append ac_file_inputs " '$ac_f'"
16259 done
16260
16261 # Let's still pretend it is `configure' which instantiates (i.e., don't
16262 # use $as_me), people would be surprised to read:
16263 # /* config.h. Generated by config.status. */
16264 configure_input='Generated from '`
16265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16266 `' by configure.'
16267 if test x"$ac_file" != x-; then
16268 configure_input="$ac_file. $configure_input"
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16270$as_echo "$as_me: creating $ac_file" >&6;}
fdd6fa61 16271 fi
81ecdfbb
RW
16272 # Neutralize special characters interpreted by sed in replacement strings.
16273 case $configure_input in #(
16274 *\&* | *\|* | *\\* )
16275 ac_sed_conf_input=`$as_echo "$configure_input" |
16276 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16277 *) ac_sed_conf_input=$configure_input;;
16278 esac
df1756f4 16279
81ecdfbb 16280 case $ac_tag in
d0ac1c44
SM
16281 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16283 esac
16284 ;;
df1756f4
TG
16285 esac
16286
81ecdfbb 16287 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
16288$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16289 X"$ac_file" : 'X\(//\)[^/]' \| \
16290 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16292$as_echo X"$ac_file" |
16293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16294 s//\1/
16295 q
16296 }
16297 /^X\(\/\/\)[^/].*/{
16298 s//\1/
16299 q
16300 }
16301 /^X\(\/\/\)$/{
16302 s//\1/
16303 q
16304 }
16305 /^X\(\/\).*/{
16306 s//\1/
16307 q
16308 }
16309 s/.*/./; q'`
16310 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
16311 ac_builddir=.
16312
81ecdfbb
RW
16313case "$ac_dir" in
16314.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16315*)
16316 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16317 # A ".." for each directory in $ac_dir_suffix.
16318 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16319 case $ac_top_builddir_sub in
16320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16322 esac ;;
16323esac
16324ac_abs_top_builddir=$ac_pwd
16325ac_abs_builddir=$ac_pwd$ac_dir_suffix
16326# for backward compatibility:
16327ac_top_builddir=$ac_top_build_prefix
b7026657
AC
16328
16329case $srcdir in
81ecdfbb 16330 .) # We are building in place.
b7026657 16331 ac_srcdir=.
81ecdfbb
RW
16332 ac_top_srcdir=$ac_top_builddir_sub
16333 ac_abs_top_srcdir=$ac_pwd ;;
16334 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 16335 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16336 ac_top_srcdir=$srcdir
16337 ac_abs_top_srcdir=$srcdir ;;
16338 *) # Relative name.
16339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16340 ac_top_srcdir=$ac_top_build_prefix$srcdir
16341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 16342esac
81ecdfbb 16343ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 16344
b7026657 16345
81ecdfbb
RW
16346 case $ac_mode in
16347 :F)
16348 #
16349 # CONFIG_FILE
16350 #
c906108c 16351
b7026657
AC
16352 case $INSTALL in
16353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 16354 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 16355 esac
6bddc3e8
MF
16356 ac_MKDIR_P=$MKDIR_P
16357 case $MKDIR_P in
16358 [\\/$]* | ?:[\\/]* ) ;;
16359 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16360 esac
81ecdfbb 16361_ACEOF
c906108c 16362
81ecdfbb
RW
16363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16364# If the template does not know about datarootdir, expand it.
16365# FIXME: This hack should be removed a few years after 2.60.
16366ac_datarootdir_hack=; ac_datarootdir_seen=
16367ac_sed_dataroot='
16368/datarootdir/ {
16369 p
16370 q
16371}
16372/@datadir@/p
16373/@docdir@/p
16374/@infodir@/p
16375/@localedir@/p
16376/@mandir@/p'
16377case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16378*datarootdir*) ac_datarootdir_seen=yes;;
16379*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16381$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16382_ACEOF
16383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16384 ac_datarootdir_hack='
16385 s&@datadir@&$datadir&g
16386 s&@docdir@&$docdir&g
16387 s&@infodir@&$infodir&g
16388 s&@localedir@&$localedir&g
16389 s&@mandir@&$mandir&g
16390 s&\\\${datarootdir}&$datarootdir&g' ;;
16391esac
b7026657 16392_ACEOF
81ecdfbb
RW
16393
16394# Neutralize VPATH when `$srcdir' = `.'.
16395# Shell code in configure.ac might set extrasub.
16396# FIXME: do we really want to maintain this feature?
16397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16398ac_sed_extra="$ac_vpsub
b7026657
AC
16399$extrasub
16400_ACEOF
81ecdfbb 16401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657
AC
16402:t
16403/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16404s|@configure_input@|$ac_sed_conf_input|;t t
16405s&@top_builddir@&$ac_top_builddir_sub&;t t
16406s&@top_build_prefix@&$ac_top_build_prefix&;t t
16407s&@srcdir@&$ac_srcdir&;t t
16408s&@abs_srcdir@&$ac_abs_srcdir&;t t
16409s&@top_srcdir@&$ac_top_srcdir&;t t
16410s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16411s&@builddir@&$ac_builddir&;t t
16412s&@abs_builddir@&$ac_abs_builddir&;t t
16413s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16414s&@INSTALL@&$ac_INSTALL&;t t
6bddc3e8 16415s&@MKDIR_P@&$ac_MKDIR_P&;t t
81ecdfbb
RW
16416$ac_datarootdir_hack
16417"
d0ac1c44
SM
16418eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16419 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16420
16421test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16422 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16423 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16424 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16426which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16427$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16428which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16429
d0ac1c44 16430 rm -f "$ac_tmp/stdin"
81ecdfbb 16431 case $ac_file in
d0ac1c44
SM
16432 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16433 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16434 esac \
d0ac1c44 16435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 16436 ;;
b15c5d7a
MF
16437 :H)
16438 #
16439 # CONFIG_HEADER
16440 #
16441 if test x"$ac_file" != x-; then
16442 {
16443 $as_echo "/* $configure_input */" \
16444 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16445 } >"$ac_tmp/config.h" \
16446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16447 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16449$as_echo "$as_me: $ac_file is unchanged" >&6;}
16450 else
16451 rm -f "$ac_file"
16452 mv "$ac_tmp/config.h" "$ac_file" \
16453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16454 fi
16455 else
16456 $as_echo "/* $configure_input */" \
16457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16458 || as_fn_error $? "could not create -" "$LINENO" 5
16459 fi
16460# Compute "$ac_file"'s index in $config_headers.
16461_am_arg="$ac_file"
16462_am_stamp_count=1
16463for _am_header in $config_headers :; do
16464 case $_am_header in
16465 $_am_arg | $_am_arg:* )
16466 break ;;
16467 * )
16468 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16469 esac
16470done
16471echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16472$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16473 X"$_am_arg" : 'X\(//\)[^/]' \| \
16474 X"$_am_arg" : 'X\(//\)$' \| \
16475 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16476$as_echo X"$_am_arg" |
16477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16478 s//\1/
16479 q
16480 }
16481 /^X\(\/\/\)[^/].*/{
16482 s//\1/
16483 q
16484 }
16485 /^X\(\/\/\)$/{
16486 s//\1/
16487 q
16488 }
16489 /^X\(\/\).*/{
16490 s//\1/
16491 q
16492 }
16493 s/.*/./; q'`/stamp-h$_am_stamp_count
16494 ;;
df1756f4 16495
6bddc3e8
MF
16496 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16497$as_echo "$as_me: executing $ac_file commands" >&6;}
16498 ;;
16499 esac
16500
c906108c 16501
6bddc3e8 16502 case $ac_file$ac_mode in
b5689863
MF
16503 "libtool":C)
16504
16505 # See if we are running on zsh, and set the options which allow our
16506 # commands through without removal of \ escapes.
16507 if test -n "${ZSH_VERSION+set}" ; then
16508 setopt NO_GLOB_SUBST
16509 fi
16510
16511 cfgfile="${ofile}T"
16512 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16513 $RM "$cfgfile"
16514
16515 cat <<_LT_EOF >> "$cfgfile"
16516#! $SHELL
16517
16518# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16519# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16521# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16522#
16523# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16524# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16525# Written by Gordon Matzigkeit, 1996
16526#
16527# This file is part of GNU Libtool.
16528#
16529# GNU Libtool is free software; you can redistribute it and/or
16530# modify it under the terms of the GNU General Public License as
16531# published by the Free Software Foundation; either version 2 of
16532# the License, or (at your option) any later version.
16533#
16534# As a special exception to the GNU General Public License,
16535# if you distribute this file as part of a program or library that
16536# is built using GNU Libtool, you may include this file under the
16537# same distribution terms that you use for the rest of that program.
16538#
16539# GNU Libtool is distributed in the hope that it will be useful,
16540# but WITHOUT ANY WARRANTY; without even the implied warranty of
16541# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16542# GNU General Public License for more details.
16543#
16544# You should have received a copy of the GNU General Public License
16545# along with GNU Libtool; see the file COPYING. If not, a copy
16546# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16547# obtained by writing to the Free Software Foundation, Inc.,
16548# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16549
16550
16551# The names of the tagged configurations supported by this script.
16552available_tags=""
16553
16554# ### BEGIN LIBTOOL CONFIG
16555
16556# Which release of libtool.m4 was used?
16557macro_version=$macro_version
16558macro_revision=$macro_revision
16559
16560# Whether or not to build shared libraries.
16561build_libtool_libs=$enable_shared
16562
16563# Whether or not to build static libraries.
16564build_old_libs=$enable_static
16565
16566# What type of objects to build.
16567pic_mode=$pic_mode
16568
16569# Whether or not to optimize for fast installation.
16570fast_install=$enable_fast_install
16571
16572# Shell to use when invoking shell scripts.
16573SHELL=$lt_SHELL
16574
16575# An echo program that protects backslashes.
16576ECHO=$lt_ECHO
16577
16578# The host system.
16579host_alias=$host_alias
16580host=$host
16581host_os=$host_os
16582
16583# The build system.
16584build_alias=$build_alias
16585build=$build
16586build_os=$build_os
16587
16588# A sed program that does not truncate output.
16589SED=$lt_SED
16590
16591# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16592Xsed="\$SED -e 1s/^X//"
16593
16594# A grep program that handles long lines.
16595GREP=$lt_GREP
16596
16597# An ERE matcher.
16598EGREP=$lt_EGREP
16599
16600# A literal string matcher.
16601FGREP=$lt_FGREP
16602
16603# A BSD- or MS-compatible name lister.
16604NM=$lt_NM
16605
16606# Whether we need soft or hard links.
16607LN_S=$lt_LN_S
16608
16609# What is the maximum length of a command?
16610max_cmd_len=$max_cmd_len
16611
16612# Object file suffix (normally "o").
16613objext=$ac_objext
16614
16615# Executable file suffix (normally "").
16616exeext=$exeext
16617
16618# whether the shell understands "unset".
16619lt_unset=$lt_unset
16620
16621# turn spaces into newlines.
16622SP2NL=$lt_lt_SP2NL
16623
16624# turn newlines into spaces.
16625NL2SP=$lt_lt_NL2SP
16626
16627# An object symbol dumper.
16628OBJDUMP=$lt_OBJDUMP
16629
16630# Method to check whether dependent libraries are shared objects.
16631deplibs_check_method=$lt_deplibs_check_method
16632
16633# Command to use when deplibs_check_method == "file_magic".
16634file_magic_cmd=$lt_file_magic_cmd
16635
16636# The archiver.
16637AR=$lt_AR
16638AR_FLAGS=$lt_AR_FLAGS
16639
16640# A symbol stripping program.
16641STRIP=$lt_STRIP
16642
16643# Commands used to install an old-style archive.
16644RANLIB=$lt_RANLIB
16645old_postinstall_cmds=$lt_old_postinstall_cmds
16646old_postuninstall_cmds=$lt_old_postuninstall_cmds
16647
16648# Whether to use a lock for old archive extraction.
16649lock_old_archive_extraction=$lock_old_archive_extraction
16650
16651# A C compiler.
16652LTCC=$lt_CC
16653
16654# LTCC compiler flags.
16655LTCFLAGS=$lt_CFLAGS
16656
16657# Take the output of nm and produce a listing of raw symbols and C names.
16658global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16659
16660# Transform the output of nm in a proper C declaration.
16661global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16662
16663# Transform the output of nm in a C name address pair.
16664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16665
16666# Transform the output of nm in a C name address pair when lib prefix is needed.
16667global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16668
16669# The name of the directory that contains temporary libtool files.
16670objdir=$objdir
16671
16672# Used to examine libraries when file_magic_cmd begins with "file".
16673MAGIC_CMD=$MAGIC_CMD
16674
16675# Must we lock files when doing compilation?
16676need_locks=$lt_need_locks
16677
16678# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16679DSYMUTIL=$lt_DSYMUTIL
16680
16681# Tool to change global to local symbols on Mac OS X.
16682NMEDIT=$lt_NMEDIT
16683
16684# Tool to manipulate fat objects and archives on Mac OS X.
16685LIPO=$lt_LIPO
16686
16687# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16688OTOOL=$lt_OTOOL
16689
16690# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16691OTOOL64=$lt_OTOOL64
16692
16693# Old archive suffix (normally "a").
16694libext=$libext
16695
16696# Shared library suffix (normally ".so").
16697shrext_cmds=$lt_shrext_cmds
16698
16699# The commands to extract the exported symbol list from a shared archive.
16700extract_expsyms_cmds=$lt_extract_expsyms_cmds
16701
16702# Variables whose values should be saved in libtool wrapper scripts and
16703# restored at link time.
16704variables_saved_for_relink=$lt_variables_saved_for_relink
16705
16706# Do we need the "lib" prefix for modules?
16707need_lib_prefix=$need_lib_prefix
16708
16709# Do we need a version for libraries?
16710need_version=$need_version
16711
16712# Library versioning type.
16713version_type=$version_type
16714
16715# Shared library runtime path variable.
16716runpath_var=$runpath_var
16717
16718# Shared library path variable.
16719shlibpath_var=$shlibpath_var
16720
16721# Is shlibpath searched before the hard-coded library search path?
16722shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16723
16724# Format of library name prefix.
16725libname_spec=$lt_libname_spec
16726
16727# List of archive names. First name is the real one, the rest are links.
16728# The last name is the one that the linker finds with -lNAME
16729library_names_spec=$lt_library_names_spec
16730
16731# The coded name of the library, if different from the real name.
16732soname_spec=$lt_soname_spec
16733
16734# Permission mode override for installation of shared libraries.
16735install_override_mode=$lt_install_override_mode
16736
16737# Command to use after installation of a shared archive.
16738postinstall_cmds=$lt_postinstall_cmds
16739
16740# Command to use after uninstallation of a shared archive.
16741postuninstall_cmds=$lt_postuninstall_cmds
16742
16743# Commands used to finish a libtool library installation in a directory.
16744finish_cmds=$lt_finish_cmds
16745
16746# As "finish_cmds", except a single script fragment to be evaled but
16747# not shown.
16748finish_eval=$lt_finish_eval
16749
16750# Whether we should hardcode library paths into libraries.
16751hardcode_into_libs=$hardcode_into_libs
16752
16753# Compile-time system search path for libraries.
16754sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16755
16756# Run-time system search path for libraries.
16757sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16758
16759# Whether dlopen is supported.
16760dlopen_support=$enable_dlopen
16761
16762# Whether dlopen of programs is supported.
16763dlopen_self=$enable_dlopen_self
16764
16765# Whether dlopen of statically linked programs is supported.
16766dlopen_self_static=$enable_dlopen_self_static
16767
16768# Commands to strip libraries.
16769old_striplib=$lt_old_striplib
16770striplib=$lt_striplib
16771
16772
16773# The linker used to build libraries.
16774LD=$lt_LD
16775
16776# How to create reloadable object files.
16777reload_flag=$lt_reload_flag
16778reload_cmds=$lt_reload_cmds
16779
16780# Commands used to build an old-style archive.
16781old_archive_cmds=$lt_old_archive_cmds
16782
16783# A language specific compiler.
16784CC=$lt_compiler
16785
16786# Is the compiler the GNU compiler?
16787with_gcc=$GCC
16788
16789# Compiler flag to turn off builtin functions.
16790no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16791
16792# How to pass a linker flag through the compiler.
16793wl=$lt_lt_prog_compiler_wl
16794
16795# Additional compiler flags for building library objects.
16796pic_flag=$lt_lt_prog_compiler_pic
16797
16798# Compiler flag to prevent dynamic linking.
16799link_static_flag=$lt_lt_prog_compiler_static
16800
16801# Does compiler simultaneously support -c and -o options?
16802compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16803
16804# Whether or not to add -lc for building shared libraries.
16805build_libtool_need_lc=$archive_cmds_need_lc
16806
16807# Whether or not to disallow shared libs when runtime libs are static.
16808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16809
16810# Compiler flag to allow reflexive dlopens.
16811export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16812
16813# Compiler flag to generate shared objects directly from archives.
16814whole_archive_flag_spec=$lt_whole_archive_flag_spec
16815
16816# Whether the compiler copes with passing no objects directly.
16817compiler_needs_object=$lt_compiler_needs_object
16818
16819# Create an old-style archive from a shared archive.
16820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16821
16822# Create a temporary old-style archive to link instead of a shared archive.
16823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16824
16825# Commands used to build a shared archive.
16826archive_cmds=$lt_archive_cmds
16827archive_expsym_cmds=$lt_archive_expsym_cmds
16828
16829# Commands used to build a loadable module if different from building
16830# a shared archive.
16831module_cmds=$lt_module_cmds
16832module_expsym_cmds=$lt_module_expsym_cmds
16833
16834# Whether we are building with GNU ld or not.
16835with_gnu_ld=$lt_with_gnu_ld
16836
16837# Flag that allows shared libraries with undefined symbols to be built.
16838allow_undefined_flag=$lt_allow_undefined_flag
16839
16840# Flag that enforces no undefined symbols.
16841no_undefined_flag=$lt_no_undefined_flag
16842
16843# Flag to hardcode \$libdir into a binary during linking.
16844# This must work even if \$libdir does not exist
16845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16846
16847# If ld is used when linking, flag to hardcode \$libdir into a binary
16848# during linking. This must work even if \$libdir does not exist.
16849hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16850
16851# Whether we need a single "-rpath" flag with a separated argument.
16852hardcode_libdir_separator=$lt_hardcode_libdir_separator
16853
16854# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16855# DIR into the resulting binary.
16856hardcode_direct=$hardcode_direct
16857
16858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16859# DIR into the resulting binary and the resulting library dependency is
16860# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16861# library is relocated.
16862hardcode_direct_absolute=$hardcode_direct_absolute
16863
16864# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16865# into the resulting binary.
16866hardcode_minus_L=$hardcode_minus_L
16867
16868# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16869# into the resulting binary.
16870hardcode_shlibpath_var=$hardcode_shlibpath_var
16871
16872# Set to "yes" if building a shared library automatically hardcodes DIR
16873# into the library and all subsequent libraries and executables linked
16874# against it.
16875hardcode_automatic=$hardcode_automatic
16876
16877# Set to yes if linker adds runtime paths of dependent libraries
16878# to runtime path list.
16879inherit_rpath=$inherit_rpath
16880
16881# Whether libtool must link a program against all its dependency libraries.
16882link_all_deplibs=$link_all_deplibs
16883
16884# Fix the shell variable \$srcfile for the compiler.
16885fix_srcfile_path=$lt_fix_srcfile_path
16886
16887# Set to "yes" if exported symbols are required.
16888always_export_symbols=$always_export_symbols
16889
16890# The commands to list exported symbols.
16891export_symbols_cmds=$lt_export_symbols_cmds
16892
16893# Symbols that should not be listed in the preloaded symbols.
16894exclude_expsyms=$lt_exclude_expsyms
16895
16896# Symbols that must always be exported.
16897include_expsyms=$lt_include_expsyms
16898
16899# Commands necessary for linking programs (against libraries) with templates.
16900prelink_cmds=$lt_prelink_cmds
16901
16902# Specify filename containing input files.
16903file_list_spec=$lt_file_list_spec
16904
16905# How to hardcode a shared library path into an executable.
16906hardcode_action=$hardcode_action
16907
16908# ### END LIBTOOL CONFIG
16909
16910_LT_EOF
16911
16912 case $host_os in
16913 aix3*)
16914 cat <<\_LT_EOF >> "$cfgfile"
16915# AIX sometimes has problems with the GCC collect2 program. For some
16916# reason, if we set the COLLECT_NAMES environment variable, the problems
16917# vanish in a puff of smoke.
16918if test "X${COLLECT_NAMES+set}" != Xset; then
16919 COLLECT_NAMES=
16920 export COLLECT_NAMES
16921fi
16922_LT_EOF
16923 ;;
16924 esac
16925
16926
16927ltmain="$ac_aux_dir/ltmain.sh"
16928
16929
16930 # We use sed instead of cat because bash on DJGPP gets confused if
16931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16932 # text mode, it properly converts lines to CR/LF. This bash problem
16933 # is reportedly fixed, but why not run on old versions too?
16934 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16935 || (rm -f "$cfgfile"; exit 1)
16936
16937 case $xsi_shell in
16938 yes)
16939 cat << \_LT_EOF >> "$cfgfile"
16940
16941# func_dirname file append nondir_replacement
16942# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16943# otherwise set result to NONDIR_REPLACEMENT.
16944func_dirname ()
16945{
16946 case ${1} in
16947 */*) func_dirname_result="${1%/*}${2}" ;;
16948 * ) func_dirname_result="${3}" ;;
16949 esac
16950}
16951
16952# func_basename file
16953func_basename ()
16954{
16955 func_basename_result="${1##*/}"
16956}
16957
16958# func_dirname_and_basename file append nondir_replacement
16959# perform func_basename and func_dirname in a single function
16960# call:
16961# dirname: Compute the dirname of FILE. If nonempty,
16962# add APPEND to the result, otherwise set result
16963# to NONDIR_REPLACEMENT.
16964# value returned in "$func_dirname_result"
16965# basename: Compute filename of FILE.
16966# value retuned in "$func_basename_result"
16967# Implementation must be kept synchronized with func_dirname
16968# and func_basename. For efficiency, we do not delegate to
16969# those functions but instead duplicate the functionality here.
16970func_dirname_and_basename ()
16971{
16972 case ${1} in
16973 */*) func_dirname_result="${1%/*}${2}" ;;
16974 * ) func_dirname_result="${3}" ;;
16975 esac
16976 func_basename_result="${1##*/}"
16977}
16978
16979# func_stripname prefix suffix name
16980# strip PREFIX and SUFFIX off of NAME.
16981# PREFIX and SUFFIX must not contain globbing or regex special
16982# characters, hashes, percent signs, but SUFFIX may contain a leading
16983# dot (in which case that matches only a dot).
16984func_stripname ()
16985{
16986 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16987 # positional parameters, so assign one to ordinary parameter first.
16988 func_stripname_result=${3}
16989 func_stripname_result=${func_stripname_result#"${1}"}
16990 func_stripname_result=${func_stripname_result%"${2}"}
16991}
16992
16993# func_opt_split
16994func_opt_split ()
16995{
16996 func_opt_split_opt=${1%%=*}
16997 func_opt_split_arg=${1#*=}
16998}
16999
17000# func_lo2o object
17001func_lo2o ()
17002{
17003 case ${1} in
17004 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17005 *) func_lo2o_result=${1} ;;
17006 esac
17007}
17008
17009# func_xform libobj-or-source
17010func_xform ()
17011{
17012 func_xform_result=${1%.*}.lo
17013}
17014
17015# func_arith arithmetic-term...
17016func_arith ()
17017{
17018 func_arith_result=$(( $* ))
17019}
17020
17021# func_len string
17022# STRING may not start with a hyphen.
17023func_len ()
17024{
17025 func_len_result=${#1}
17026}
17027
17028_LT_EOF
17029 ;;
17030 *) # Bourne compatible functions.
17031 cat << \_LT_EOF >> "$cfgfile"
17032
17033# func_dirname file append nondir_replacement
17034# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17035# otherwise set result to NONDIR_REPLACEMENT.
17036func_dirname ()
17037{
17038 # Extract subdirectory from the argument.
17039 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17040 if test "X$func_dirname_result" = "X${1}"; then
17041 func_dirname_result="${3}"
17042 else
17043 func_dirname_result="$func_dirname_result${2}"
17044 fi
17045}
17046
17047# func_basename file
17048func_basename ()
17049{
17050 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17051}
17052
17053
17054# func_stripname prefix suffix name
17055# strip PREFIX and SUFFIX off of NAME.
17056# PREFIX and SUFFIX must not contain globbing or regex special
17057# characters, hashes, percent signs, but SUFFIX may contain a leading
17058# dot (in which case that matches only a dot).
17059# func_strip_suffix prefix name
17060func_stripname ()
17061{
17062 case ${2} in
17063 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17064 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17065 esac
17066}
17067
17068# sed scripts:
17069my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17070my_sed_long_arg='1s/^-[^=]*=//'
17071
17072# func_opt_split
17073func_opt_split ()
17074{
17075 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17076 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17077}
17078
17079# func_lo2o object
17080func_lo2o ()
17081{
17082 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17083}
17084
17085# func_xform libobj-or-source
17086func_xform ()
17087{
17088 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17089}
17090
17091# func_arith arithmetic-term...
17092func_arith ()
17093{
17094 func_arith_result=`expr "$@"`
17095}
17096
17097# func_len string
17098# STRING may not start with a hyphen.
17099func_len ()
17100{
17101 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17102}
17103
17104_LT_EOF
17105esac
17106
17107case $lt_shell_append in
17108 yes)
17109 cat << \_LT_EOF >> "$cfgfile"
17110
17111# func_append var value
17112# Append VALUE to the end of shell variable VAR.
17113func_append ()
17114{
17115 eval "$1+=\$2"
17116}
17117_LT_EOF
17118 ;;
17119 *)
17120 cat << \_LT_EOF >> "$cfgfile"
17121
17122# func_append var value
17123# Append VALUE to the end of shell variable VAR.
17124func_append ()
17125{
17126 eval "$1=\$$1\$2"
17127}
17128
17129_LT_EOF
17130 ;;
17131 esac
17132
17133
17134 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17135 || (rm -f "$cfgfile"; exit 1)
17136
17137 mv -f "$cfgfile" "$ofile" ||
17138 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17139 chmod +x "$ofile"
17140
17141 ;;
6bddc3e8
MF
17142 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17143 # Older Autoconf quotes --file arguments for eval, but not when files
17144 # are listed without --file. Let's play safe and only enable the eval
17145 # if we detect the quoting.
17146 case $CONFIG_FILES in
17147 *\'*) eval set x "$CONFIG_FILES" ;;
17148 *) set x $CONFIG_FILES ;;
81ecdfbb 17149 esac
6bddc3e8
MF
17150 shift
17151 for mf
17152 do
17153 # Strip MF so we end up with the name of the file.
17154 mf=`echo "$mf" | sed -e 's/:.*$//'`
17155 # Check whether this is an Automake generated Makefile or not.
17156 # We used to match only the files named 'Makefile.in', but
17157 # some people rename them; so instead we look at the file content.
17158 # Grep'ing the first line is not enough: some people post-process
17159 # each Makefile.in and add a new line on top of each file to say so.
17160 # Grep'ing the whole file is not good either: AIX grep has a line
17161 # limit of 2048, but all sed's we know have understand at least 4000.
17162 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17163 dirpart=`$as_dirname -- "$mf" ||
17164$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17165 X"$mf" : 'X\(//\)[^/]' \| \
17166 X"$mf" : 'X\(//\)$' \| \
17167 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17168$as_echo X"$mf" |
17169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17170 s//\1/
17171 q
17172 }
17173 /^X\(\/\/\)[^/].*/{
17174 s//\1/
17175 q
17176 }
17177 /^X\(\/\/\)$/{
17178 s//\1/
17179 q
17180 }
17181 /^X\(\/\).*/{
17182 s//\1/
17183 q
17184 }
17185 s/.*/./; q'`
17186 else
17187 continue
17188 fi
17189 # Extract the definition of DEPDIR, am__include, and am__quote
17190 # from the Makefile without running 'make'.
17191 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17192 test -z "$DEPDIR" && continue
17193 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17194 test -z "$am__include" && continue
17195 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17196 # Find all dependency output files, they are included files with
17197 # $(DEPDIR) in their names. We invoke sed twice because it is the
17198 # simplest approach to changing $(DEPDIR) to its actual value in the
17199 # expansion.
17200 for file in `sed -n "
17201 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17203 # Make sure the directory exists.
17204 test -f "$dirpart/$file" && continue
17205 fdir=`$as_dirname -- "$file" ||
17206$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17207 X"$file" : 'X\(//\)[^/]' \| \
17208 X"$file" : 'X\(//\)$' \| \
17209 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17210$as_echo X"$file" |
17211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17212 s//\1/
17213 q
17214 }
17215 /^X\(\/\/\)[^/].*/{
17216 s//\1/
17217 q
17218 }
17219 /^X\(\/\/\)$/{
17220 s//\1/
17221 q
17222 }
17223 /^X\(\/\).*/{
17224 s//\1/
17225 q
17226 }
17227 s/.*/./; q'`
17228 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17229 # echo "creating $dirpart/$file"
17230 echo '# dummy' > "$dirpart/$file"
17231 done
17232 done
17233}
36bb57e4
MF
17234 ;;
17235 "aarch64/Makefile":C) sed -n \
17236 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17237 /^srcdir = / s:$:/aarch64:
36bb57e4
MF
17238 p
17239 }' \
17240 <Make-common.sim >aarch64/Makesim1.tmp
17241 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
17242 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
17243 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
17244 <aarch64/Makefile.sim >aarch64/Makefile
17245 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
6bddc3e8 17246 ;;
bc56166f 17247 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
36bb57e4
MF
17248 "arm/Makefile":C) sed -n \
17249 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17250 /^srcdir = / s:$:/arm:
36bb57e4
MF
17251 p
17252 }' \
17253 <Make-common.sim >arm/Makesim1.tmp
17254 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
17255 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
17256 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
17257 <arm/Makefile.sim >arm/Makefile
17258 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
17259 ;;
bc56166f 17260 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
36bb57e4
MF
17261 "avr/Makefile":C) sed -n \
17262 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17263 /^srcdir = / s:$:/avr:
36bb57e4
MF
17264 p
17265 }' \
17266 <Make-common.sim >avr/Makesim1.tmp
17267 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
17268 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
17269 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
17270 <avr/Makefile.sim >avr/Makefile
17271 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
17272 ;;
bc56166f 17273 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
d8b04da7
MF
17274 "bfin/Makefile":C) sed -n \
17275 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17276 /^srcdir = / s:$:/bfin:
17277 p
17278 }' \
17279 <Make-common.sim >bfin/Makesim1.tmp
17280 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
17281 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
17282 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
17283 <bfin/Makefile.sim >bfin/Makefile
17284 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
17285 ;;
bc56166f
MF
17286 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
17287 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
36bb57e4
MF
17288 "cr16/Makefile":C) sed -n \
17289 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17290 /^srcdir = / s:$:/cr16:
36bb57e4
MF
17291 p
17292 }' \
17293 <Make-common.sim >cr16/Makesim1.tmp
17294 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
17295 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
17296 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
17297 <cr16/Makefile.sim >cr16/Makefile
17298 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
17299 ;;
bc56166f 17300 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
408a44aa
MF
17301 "cris/Makefile":C) sed -n \
17302 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17303 /^srcdir = / s:$:/cris:
17304 p
17305 }' \
17306 <Make-common.sim >cris/Makesim1.tmp
17307 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
17308 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
17309 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
17310 <cris/Makefile.sim >cris/Makefile
17311 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
17312 ;;
bc56166f 17313 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
36bb57e4
MF
17314 "d10v/Makefile":C) sed -n \
17315 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17316 /^srcdir = / s:$:/d10v:
36bb57e4
MF
17317 p
17318 }' \
17319 <Make-common.sim >d10v/Makesim1.tmp
17320 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
17321 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
17322 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
17323 <d10v/Makefile.sim >d10v/Makefile
17324 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
17325 ;;
bc56166f 17326 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
408a44aa
MF
17327 "frv/Makefile":C) sed -n \
17328 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17329 /^srcdir = / s:$:/frv:
17330 p
17331 }' \
17332 <Make-common.sim >frv/Makesim1.tmp
17333 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
17334 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
17335 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
17336 <frv/Makefile.sim >frv/Makefile
17337 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
17338 ;;
bc56166f 17339 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
36bb57e4
MF
17340 "ft32/Makefile":C) sed -n \
17341 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17342 /^srcdir = / s:$:/ft32:
36bb57e4
MF
17343 p
17344 }' \
17345 <Make-common.sim >ft32/Makesim1.tmp
17346 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
17347 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
17348 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
17349 <ft32/Makefile.sim >ft32/Makefile
17350 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
17351 ;;
17352 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
17353 "h8300/Makefile":C) sed -n \
17354 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17355 /^srcdir = / s:$:/h8300:
36bb57e4
MF
17356 p
17357 }' \
17358 <Make-common.sim >h8300/Makesim1.tmp
17359 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
17360 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
17361 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
17362 <h8300/Makefile.sim >h8300/Makefile
17363 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
17364 ;;
bc56166f 17365 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
408a44aa
MF
17366 "iq2000/Makefile":C) sed -n \
17367 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17368 /^srcdir = / s:$:/iq2000:
17369 p
17370 }' \
17371 <Make-common.sim >iq2000/Makesim1.tmp
17372 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
17373 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
17374 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
17375 <iq2000/Makefile.sim >iq2000/Makefile
17376 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
17377 ;;
bc56166f 17378 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
408a44aa
MF
17379 "lm32/Makefile":C) sed -n \
17380 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17381 /^srcdir = / s:$:/lm32:
17382 p
17383 }' \
17384 <Make-common.sim >lm32/Makesim1.tmp
17385 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
17386 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
17387 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
17388 <lm32/Makefile.sim >lm32/Makefile
17389 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
17390 ;;
bc56166f 17391 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
36bb57e4
MF
17392 "m32c/Makefile":C) sed -n \
17393 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17394 /^srcdir = / s:$:/m32c:
36bb57e4
MF
17395 p
17396 }' \
17397 <Make-common.sim >m32c/Makesim1.tmp
17398 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
17399 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
17400 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
17401 <m32c/Makefile.sim >m32c/Makefile
17402 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
17403 ;;
bc56166f 17404 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
313c332f
MF
17405 "m32r/Makefile":C) sed -n \
17406 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17407 /^srcdir = / s:$:/m32r:
17408 p
17409 }' \
17410 <Make-common.sim >m32r/Makesim1.tmp
17411 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
17412 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
17413 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
17414 <m32r/Makefile.sim >m32r/Makefile
17415 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
17416 ;;
bc56166f 17417 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
36bb57e4
MF
17418 "m68hc11/Makefile":C) sed -n \
17419 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17420 /^srcdir = / s:$:/m68hc11:
36bb57e4
MF
17421 p
17422 }' \
17423 <Make-common.sim >m68hc11/Makesim1.tmp
17424 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
17425 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
17426 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
17427 <m68hc11/Makefile.sim >m68hc11/Makefile
17428 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
17429 ;;
bc56166f 17430 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
36bb57e4
MF
17431 "mcore/Makefile":C) sed -n \
17432 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17433 /^srcdir = / s:$:/mcore:
36bb57e4
MF
17434 p
17435 }' \
17436 <Make-common.sim >mcore/Makesim1.tmp
17437 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
17438 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
17439 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
17440 <mcore/Makefile.sim >mcore/Makefile
17441 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
17442 ;;
bc56166f 17443 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
36bb57e4
MF
17444 "microblaze/Makefile":C) sed -n \
17445 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17446 /^srcdir = / s:$:/microblaze:
36bb57e4
MF
17447 p
17448 }' \
17449 <Make-common.sim >microblaze/Makesim1.tmp
17450 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
17451 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
17452 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
17453 <microblaze/Makefile.sim >microblaze/Makefile
17454 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
17455 ;;
bc56166f
MF
17456 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
17457 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
17458 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
36bb57e4
MF
17459 "moxie/Makefile":C) sed -n \
17460 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17461 /^srcdir = / s:$:/moxie:
36bb57e4
MF
17462 p
17463 }' \
17464 <Make-common.sim >moxie/Makesim1.tmp
17465 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
17466 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
17467 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
17468 <moxie/Makefile.sim >moxie/Makefile
17469 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
17470 ;;
bc56166f 17471 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
36bb57e4
MF
17472 "msp430/Makefile":C) sed -n \
17473 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17474 /^srcdir = / s:$:/msp430:
36bb57e4
MF
17475 p
17476 }' \
17477 <Make-common.sim >msp430/Makesim1.tmp
17478 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
17479 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
17480 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
17481 <msp430/Makefile.sim >msp430/Makefile
17482 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
17483 ;;
bc56166f
MF
17484 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
17485 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
36bb57e4
MF
17486 "pru/Makefile":C) sed -n \
17487 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17488 /^srcdir = / s:$:/pru:
36bb57e4
MF
17489 p
17490 }' \
17491 <Make-common.sim >pru/Makesim1.tmp
17492 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
17493 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
17494 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
17495 <pru/Makefile.sim >pru/Makefile
17496 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
17497 ;;
bc56166f
MF
17498 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
17499 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
36bb57e4
MF
17500 "rl78/Makefile":C) sed -n \
17501 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17502 /^srcdir = / s:$:/rl78:
36bb57e4
MF
17503 p
17504 }' \
17505 <Make-common.sim >rl78/Makesim1.tmp
17506 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
17507 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
17508 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
17509 <rl78/Makefile.sim >rl78/Makefile
17510 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
17511 ;;
bc56166f 17512 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
e173c80f
MF
17513 "rx/Makefile":C) sed -n \
17514 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17515 /^srcdir = / s:$:/rx:
e173c80f
MF
17516 p
17517 }' \
17518 <Make-common.sim >rx/Makesim1.tmp
17519 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
17520 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
17521 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
17522 <rx/Makefile.sim >rx/Makefile
17523 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
17524 ;;
bc56166f 17525 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
36bb57e4
MF
17526 "sh/Makefile":C) sed -n \
17527 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17528 /^srcdir = / s:$:/sh:
36bb57e4
MF
17529 p
17530 }' \
17531 <Make-common.sim >sh/Makesim1.tmp
17532 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
17533 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
17534 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
17535 <sh/Makefile.sim >sh/Makefile
17536 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
17537 ;;
bc56166f 17538 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
5d0b3088
MF
17539 "erc32/Makefile":C) sed -n \
17540 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17541 /^srcdir = / s:$:/erc32:
17542 p
17543 }' \
17544 <Make-common.sim >erc32/Makesim1.tmp
17545 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
17546 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
17547 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
17548 <erc32/Makefile.sim >erc32/Makefile
17549 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
17550 ;;
bc56166f
MF
17551 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
17552 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
bc56166f 17553 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
36bb57e4
MF
17554 "example-synacor/Makefile":C) sed -n \
17555 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
b3408412 17556 /^srcdir = / s:$:/example-synacor:
36bb57e4
MF
17557 p
17558 }' \
17559 <Make-common.sim >example-synacor/Makesim1.tmp
17560 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
17561 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
17562 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
17563 <example-synacor/Makefile.sim >example-synacor/Makefile
17564 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
17565 ;;
bc56166f 17566 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
81ecdfbb 17567
6bddc3e8 17568 esac
81ecdfbb
RW
17569done # for ac_tag
17570
17571
17572as_fn_exit 0
b7026657 17573_ACEOF
b7026657
AC
17574ac_clean_files=$ac_clean_files_save
17575
81ecdfbb 17576test $ac_write_fail = 0 ||
d0ac1c44 17577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17578
b7026657
AC
17579
17580# configure is writing to config.log, and then calls config.status.
17581# config.status does its own redirection, appending to config.log.
17582# Unfortunately, on DOS this fails, as config.log is still kept open
17583# by configure, so config.status won't be able to write to it; its
17584# output is simply discarded. So we exec the FD to /dev/null,
17585# effectively closing config.log, so it can be properly (re)opened and
17586# appended to by config.status. When coming back to configure, we
17587# need to make the FD available again.
17588if test "$no_create" != yes; then
17589 ac_cs_success=:
17590 ac_config_status_args=
17591 test "$silent" = yes &&
17592 ac_config_status_args="$ac_config_status_args --quiet"
17593 exec 5>/dev/null
17594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17595 exec 5>>config.log
17596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17597 # would make configure fail if this is the last instruction.
d0ac1c44 17598 $ac_cs_success || as_fn_exit 1
b7026657 17599fi
c906108c 17600
b7026657 17601#
81ecdfbb 17602# CONFIG_SUBDIRS section.
b7026657 17603#
c906108c
SS
17604if test "$no_recursion" != yes; then
17605
81ecdfbb
RW
17606 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17607 # so they do not pile up.
c906108c
SS
17608 ac_sub_configure_args=
17609 ac_prev=
d6416cdc
RW
17610 eval "set x $ac_configure_args"
17611 shift
17612 for ac_arg
17613 do
c906108c
SS
17614 if test -n "$ac_prev"; then
17615 ac_prev=
17616 continue
17617 fi
b7026657 17618 case $ac_arg in
c906108c
SS
17619 -cache-file | --cache-file | --cache-fil | --cache-fi \
17620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17621 ac_prev=cache_file ;;
17622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
b7026657
AC
17623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17624 | --c=*)
17625 ;;
17626 --config-cache | -C)
c906108c
SS
17627 ;;
17628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17629 ac_prev=srcdir ;;
17630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17631 ;;
b7026657
AC
17632 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17633 ac_prev=prefix ;;
17634 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17635 ;;
81ecdfbb
RW
17636 --disable-option-checking)
17637 ;;
d6416cdc
RW
17638 *)
17639 case $ac_arg in
81ecdfbb 17640 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17641 esac
81ecdfbb 17642 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
17643 esac
17644 done
17645
b7026657
AC
17646 # Always prepend --prefix to ensure using the same prefix
17647 # in subdir configurations.
d6416cdc
RW
17648 ac_arg="--prefix=$prefix"
17649 case $ac_arg in
81ecdfbb 17650 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6416cdc 17651 esac
81ecdfbb
RW
17652 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17653
17654 # Pass --silent
17655 if test "$silent" = yes; then
17656 ac_sub_configure_args="--silent $ac_sub_configure_args"
17657 fi
17658
17659 # Always prepend --disable-option-checking to silence warnings, since
17660 # different subdirs can have different --enable and --with options.
17661 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
b7026657
AC
17662
17663 ac_popdir=`pwd`
17664 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
17665
17666 # Do not complain, so a configure script can configure whichever
17667 # parts of a large source tree are present.
d6416cdc 17668 test -d "$srcdir/$ac_dir" || continue
fdd6fa61 17669
81ecdfbb
RW
17670 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17671 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17672 $as_echo "$ac_msg" >&6
17673 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
17674 ac_builddir=.
17675
81ecdfbb
RW
17676case "$ac_dir" in
17677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17678*)
17679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17680 # A ".." for each directory in $ac_dir_suffix.
17681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17682 case $ac_top_builddir_sub in
17683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17685 esac ;;
17686esac
17687ac_abs_top_builddir=$ac_pwd
17688ac_abs_builddir=$ac_pwd$ac_dir_suffix
17689# for backward compatibility:
17690ac_top_builddir=$ac_top_build_prefix
c906108c 17691
b7026657 17692case $srcdir in
81ecdfbb 17693 .) # We are building in place.
b7026657 17694 ac_srcdir=.
81ecdfbb
RW
17695 ac_top_srcdir=$ac_top_builddir_sub
17696 ac_abs_top_srcdir=$ac_pwd ;;
17697 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 17698 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17699 ac_top_srcdir=$srcdir
17700 ac_abs_top_srcdir=$srcdir ;;
17701 *) # Relative name.
17702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17703 ac_top_srcdir=$ac_top_build_prefix$srcdir
17704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 17705esac
81ecdfbb 17706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 17707
c906108c 17708
d6416cdc 17709 cd "$ac_dir"
c906108c
SS
17710
17711 # Check for guested configure; otherwise get Cygnus style configure.
d6416cdc
RW
17712 if test -f "$ac_srcdir/configure.gnu"; then
17713 ac_sub_configure=$ac_srcdir/configure.gnu
17714 elif test -f "$ac_srcdir/configure"; then
17715 ac_sub_configure=$ac_srcdir/configure
17716 elif test -f "$ac_srcdir/configure.in"; then
17717 # This should be Cygnus configure.
17718 ac_sub_configure=$ac_aux_dir/configure
c906108c 17719 else
81ecdfbb
RW
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17721$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
17722 ac_sub_configure=
17723 fi
17724
17725 # The recursion is here.
17726 if test -n "$ac_sub_configure"; then
c906108c 17727 # Make the cache file name correct relative to the subdirectory.
b7026657
AC
17728 case $cache_file in
17729 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
17730 *) # Relative name.
17731 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 17732 esac
c906108c 17733
81ecdfbb
RW
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17735$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 17736 # The eval makes quoting arguments work.
d6416cdc
RW
17737 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17738 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
d0ac1c44 17739 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
17740 fi
17741
d6416cdc 17742 cd "$ac_popdir"
c906108c
SS
17743 done
17744fi
81ecdfbb
RW
17745if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17747$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17748fi
c906108c 17749
This page took 1.858957 seconds and 4 git commands to generate.