]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: switch common srcdir to abs_srcdir
[thirdparty/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: 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."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_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.
317 as_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.
327 as_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"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
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.
385 if (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 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # 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.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
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
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
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
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
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'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
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 |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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; }
499
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
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
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `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';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
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.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_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.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_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
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 sim_reserved_bits
643 sim_default_model
644 sim_scache
645 sim_float
646 sim_bitsize
647 SIM_INLINE
648 sim_hw_sockser
649 sim_hw_cflags
650 SIM_ENABLE_HW_FALSE
651 SIM_ENABLE_HW_TRUE
652 cgen
653 cgendir
654 CGEN_MAINT
655 SIM_ENABLE_IGEN_FALSE
656 SIM_ENABLE_IGEN_TRUE
657 subdirs
658 SIM_COMMON_BUILD_FALSE
659 SIM_COMMON_BUILD_TRUE
660 SIM_SUBDIRS
661 SIM_PRIMARY_TARGET
662 AM_BACKSLASH
663 AM_DEFAULT_VERBOSITY
664 AM_DEFAULT_V
665 AM_V
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 lt_cv_dlopen_libs
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 AWK
704 STRIP
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 SED
713 LIBTOOL
714 PLUGINS_FALSE
715 PLUGINS_TRUE
716 zlibinc
717 zlibdir
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 LIBOBJS
731 C_DIALECT
732 RANLIB
733 AR
734 LDFLAGS_FOR_BUILD
735 CFLAGS_FOR_BUILD
736 RANLIB_FOR_BUILD
737 CC_FOR_BUILD
738 AR_FOR_BUILD
739 DTC
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 EGREP
744 GREP
745 CPP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 target_os
754 target_vendor
755 target_cpu
756 target
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 REPORT_BUGS_TEXI
766 REPORT_BUGS_TO
767 PKGVERSION
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL
806 WERROR_CFLAGS
807 WARN_CFLAGS'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 with_pkgversion
812 with_bugurl
813 with_system_zlib
814 enable_plugins
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_gnu_ld
820 enable_libtool_lock
821 enable_maintainer_mode
822 enable_dependency_tracking
823 enable_silent_rules
824 enable_sim
825 enable_example_sims
826 enable_targets
827 enable_sim_alignment
828 enable_sim_assert
829 enable_cgen_maint
830 enable_sim_debug
831 enable_sim_endian
832 enable_sim_environment
833 enable_sim_hardware
834 enable_sim_inline
835 enable_sim_profile
836 enable_sim_stdio
837 enable_sim_trace
838 enable_werror
839 enable_build_warnings
840 enable_sim_build_warnings
841 enable_sim_rx_cycle_accurate
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP'
852 ac_subdirs_all='bfin
853 bpf
854 cris
855 frv
856 iq2000
857 lm32
858 m32r
859 mips
860 mn10300
861 or1k
862 riscv
863 erc32
864 ppc
865 v850'
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures sim 0 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of sim 0:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-plugins Enable support for plugins
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-sim Enable the GNU simulator
1500 --enable-example-sims enable example GNU simulators
1501 --enable-targets alternative target configurations
1502 --enable-sim-alignment=align
1503 Specify strict, nonstrict or forced alignment of
1504 memory accesses
1505 --enable-sim-assert Specify whether to perform random assertions
1506 --enable-cgen-maint=DIR build cgen generated files
1507 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1508 itself)
1509 --enable-sim-endian=endian
1510 Specify target byte endian orientation
1511 --enable-sim-environment=environment
1512 Specify mixed, user, virtual or operating
1513 environment
1514 --enable-sim-hardware Whether to enable hardware/device simulation
1515 --enable-sim-inline=inlines
1516 Specify which functions should be inlined
1517 --enable-sim-profile=opts
1518 Enable profiling flags
1519 --enable-sim-stdio Specify whether to use stdio for console
1520 input/output
1521 --enable-sim-trace=opts Enable tracing of simulated programs
1522 --enable-werror treat compile warnings as errors
1523 --enable-build-warnings enable build-time compiler warnings if gcc is used
1524 --enable-sim-build-warnings
1525 enable SIM specific build-time compiler warnings if
1526 gcc is used
1527 --disable-sim-rx-cycle-accurate
1528 Disable cycle accurate simulation (faster runtime)
1529
1530 Optional Packages:
1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1533 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1534 --with-bugurl=URL Direct users to URL to report a bug
1535 --with-system-zlib use installed libz
1536 --with-pic try to use only PIC/non-PIC objects [default=use
1537 both]
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1554 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1555 _ACEOF
1556 ac_status=$?
1557 fi
1558
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1566
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1582
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612 fi
1613
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 sim configure 0
1618 generated by GNU Autoconf 2.69
1619
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1625 fi
1626
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1630
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_compile
1668
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_cpp
1705
1706 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1709 # the include files in INCLUDES and setting the cache variable VAR
1710 # accordingly.
1711 ac_fn_c_check_header_mongrel ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if eval \${$3+:} false; then :
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 fi
1720 eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 else
1724 # Is the header compilable?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1726 $as_echo_n "checking $2 usability... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 $4
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 ac_header_compiler=yes
1734 else
1735 ac_header_compiler=no
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1739 $as_echo "$ac_header_compiler" >&6; }
1740
1741 # Is the header present?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1743 $as_echo_n "checking $2 presence... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_cpp "$LINENO"; then :
1749 ac_header_preproc=yes
1750 else
1751 ac_header_preproc=no
1752 fi
1753 rm -f conftest.err conftest.i conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1755 $as_echo "$ac_header_preproc" >&6; }
1756
1757 # So? What about this header?
1758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1759 yes:no: )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1761 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 ;;
1765 no:yes:* )
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1767 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1769 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1771 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1773 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1777 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1778 ## -------------------------------------------------------------------------------------- ##"
1779 ) | sed "s/^/$as_me: WARNING: /" >&2
1780 ;;
1781 esac
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 else
1787 eval "$3=\$ac_header_compiler"
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_header_mongrel
1796
1797 # ac_fn_c_try_run LINENO
1798 # ----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1800 # that executables *can* be run.
1801 ac_fn_c_try_run ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1815 { { case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_try") 2>&5
1822 ac_status=$?
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; }; }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: program exited with status $ac_status" >&5
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=$ac_status
1832 fi
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_run
1838
1839 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists and can be compiled using the include files in
1842 # INCLUDES, setting the cache variable VAR accordingly.
1843 ac_fn_c_check_header_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 eval "$3=yes"
1858 else
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_header_compile
1869
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905 fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_link
1915
1916 # ac_fn_c_check_func LINENO FUNC VAR
1917 # ----------------------------------
1918 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1919 ac_fn_c_check_func ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1931 #define $2 innocuous_$2
1932
1933 /* System header to define __stub macros and hopefully few prototypes,
1934 which can conflict with char $2 (); below.
1935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1936 <limits.h> exists even on freestanding compilers. */
1937
1938 #ifdef __STDC__
1939 # include <limits.h>
1940 #else
1941 # include <assert.h>
1942 #endif
1943
1944 #undef $2
1945
1946 /* Override any GCC internal prototype to avoid an error.
1947 Use char because int might match the return type of a GCC
1948 builtin and then its argument prototype would still apply. */
1949 #ifdef __cplusplus
1950 extern "C"
1951 #endif
1952 char $2 ();
1953 /* The GNU C library defines this for functions which it implements
1954 to always fail with ENOSYS. Some functions are actually named
1955 something starting with __ and the normal name is an alias. */
1956 #if defined __stub_$2 || defined __stub___$2
1957 choke me
1958 #endif
1959
1960 int
1961 main ()
1962 {
1963 return $2 ();
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_link "$LINENO"; then :
1969 eval "$3=yes"
1970 else
1971 eval "$3=no"
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext \
1974 conftest$ac_exeext conftest.$ac_ext
1975 fi
1976 eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981 } # ac_fn_c_check_func
1982
1983 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1984 # ----------------------------------------------------
1985 # Tries to find if the field MEMBER exists in type AGGR, after including
1986 # INCLUDES, setting cache variable VAR accordingly.
1987 ac_fn_c_check_member ()
1988 {
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1991 $as_echo_n "checking for $2.$3... " >&6; }
1992 if eval \${$4+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $5
1998 int
1999 main ()
2000 {
2001 static $2 ac_aggr;
2002 if (ac_aggr.$3)
2003 return 0;
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 eval "$4=yes"
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $5
2014 int
2015 main ()
2016 {
2017 static $2 ac_aggr;
2018 if (sizeof ac_aggr.$3)
2019 return 0;
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 eval "$4=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$4
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_member
2039
2040 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2041 # ---------------------------------------------
2042 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2043 # accordingly.
2044 ac_fn_c_check_decl ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 as_decl_name=`echo $2|sed 's/ *(.*//'`
2048 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2050 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main ()
2059 {
2060 #ifndef $as_decl_name
2061 #ifdef __cplusplus
2062 (void) $as_decl_use;
2063 #else
2064 (void) $as_decl_name;
2065 #endif
2066 #endif
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 eval "$3=yes"
2074 else
2075 eval "$3=no"
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_decl
2085
2086 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087 # -------------------------------------------
2088 # Tests whether TYPE exists after having included INCLUDES, setting cache
2089 # variable VAR accordingly.
2090 ac_fn_c_check_type ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 eval "$3=no"
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 if (sizeof ($2))
2106 return 0;
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main ()
2117 {
2118 if (sizeof (($2)))
2119 return 0;
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125
2126 else
2127 eval "$3=yes"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_type
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2142
2143 It was created by sim $as_me 0, which was
2144 generated by GNU Autoconf 2.69. Invocation command line was
2145
2146 $ $0 $@
2147
2148 _ACEOF
2149 exec 5>>config.log
2150 {
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2155
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2164
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2172
2173 _ASUNAME
2174
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2181 done
2182 IFS=$as_save_IFS
2183
2184 } >&5
2185
2186 cat >&5 <<_ACEOF
2187
2188
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2192
2193 _ACEOF
2194
2195
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2206 do
2207 for ac_arg
2208 do
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 case $ac_pass in
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219 2)
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2232 ;;
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2235 fi
2236 as_fn_append ac_configure_args " '$ac_arg'"
2237 ;;
2238 esac
2239 done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2243
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2251 {
2252 echo
2253
2254 $as_echo "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
2259 (
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
2275 (set) 2>&1 |
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2278 sed -n \
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
2282 *)
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 ;;
2285 esac |
2286 sort
2287 )
2288 echo
2289
2290 $as_echo "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2293 echo
2294 for ac_var in $ac_subst_vars
2295 do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 esac
2300 $as_echo "$ac_var='\''$ac_val'\''"
2301 done | sort
2302 echo
2303
2304 if test -n "$ac_subst_files"; then
2305 $as_echo "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2308 echo
2309 for ac_var in $ac_subst_files
2310 do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2318 fi
2319
2320 if test -s confdefs.h; then
2321 $as_echo "## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##"
2324 echo
2325 cat confdefs.h
2326 echo
2327 fi
2328 test "$ac_signal" != 0 &&
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
2331 } >&5
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334 exit $exit_status
2335 ' 0
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 done
2339 ac_signal=0
2340
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2343
2344 $as_echo "/* confdefs.h */" > confdefs.h
2345
2346 # Predefined preprocessor variables.
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2370 _ACEOF
2371
2372
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2375 ac_site_file1=NONE
2376 ac_site_file2=NONE
2377 if test -n "$CONFIG_SITE"; then
2378 # We do not want a PATH search for config.site.
2379 case $CONFIG_SITE in #((
2380 -*) ac_site_file1=./$CONFIG_SITE;;
2381 */*) ac_site_file1=$CONFIG_SITE;;
2382 *) ac_site_file1=./$CONFIG_SITE;;
2383 esac
2384 elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2387 else
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
2390 fi
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 do
2393 test "x$ac_site_file" = xNONE && continue
2394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2398 . "$ac_site_file" \
2399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "failed to load site script $ac_site_file
2402 See \`config.log' for more details" "$LINENO" 5; }
2403 fi
2404 done
2405
2406 if test -r "$cache_file"; then
2407 # Some versions of bash will fail to source /dev/null (special files
2408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 $as_echo "$as_me: loading cache $cache_file" >&6;}
2412 case $cache_file in
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
2415 esac
2416 fi
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 $as_echo "$as_me: creating cache $cache_file" >&6;}
2420 >$cache_file
2421 fi
2422
2423 as_fn_append ac_header_list " dlfcn.h"
2424 as_fn_append ac_header_list " fcntl.h"
2425 as_fn_append ac_header_list " fpu_control.h"
2426 as_fn_append ac_header_list " termios.h"
2427 as_fn_append ac_header_list " unistd.h"
2428 as_fn_append ac_header_list " utime.h"
2429 as_fn_append ac_header_list " linux/if_tun.h"
2430 as_fn_append ac_header_list " linux/mii.h"
2431 as_fn_append ac_header_list " linux/types.h"
2432 as_fn_append ac_header_list " net/if.h"
2433 as_fn_append ac_header_list " netinet/in.h"
2434 as_fn_append ac_header_list " netinet/tcp.h"
2435 as_fn_append ac_header_list " sys/ioctl.h"
2436 as_fn_append ac_header_list " sys/mman.h"
2437 as_fn_append ac_header_list " sys/mount.h"
2438 as_fn_append ac_header_list " sys/param.h"
2439 as_fn_append ac_header_list " sys/resource.h"
2440 as_fn_append ac_header_list " sys/socket.h"
2441 as_fn_append ac_header_list " sys/stat.h"
2442 as_fn_append ac_header_list " sys/statfs.h"
2443 as_fn_append ac_header_list " sys/termio.h"
2444 as_fn_append ac_header_list " sys/termios.h"
2445 as_fn_append ac_header_list " sys/types.h"
2446 as_fn_append ac_header_list " sys/vfs.h"
2447 as_fn_append ac_func_list " __setfpucw"
2448 as_fn_append ac_func_list " access"
2449 as_fn_append ac_func_list " aint"
2450 as_fn_append ac_func_list " anint"
2451 as_fn_append ac_func_list " cfgetispeed"
2452 as_fn_append ac_func_list " cfgetospeed"
2453 as_fn_append ac_func_list " cfsetispeed"
2454 as_fn_append ac_func_list " cfsetospeed"
2455 as_fn_append ac_func_list " chdir"
2456 as_fn_append ac_func_list " chmod"
2457 as_fn_append ac_func_list " dup"
2458 as_fn_append ac_func_list " dup2"
2459 as_fn_append ac_func_list " execv"
2460 as_fn_append ac_func_list " execve"
2461 as_fn_append ac_func_list " fcntl"
2462 as_fn_append ac_func_list " fork"
2463 as_fn_append ac_func_list " fstat"
2464 as_fn_append ac_func_list " fstatfs"
2465 as_fn_append ac_func_list " ftruncate"
2466 as_fn_append ac_func_list " getdirentries"
2467 as_fn_append ac_func_list " getegid"
2468 as_fn_append ac_func_list " geteuid"
2469 as_fn_append ac_func_list " getgid"
2470 as_fn_append ac_func_list " getpid"
2471 as_fn_append ac_func_list " getppid"
2472 as_fn_append ac_func_list " getrusage"
2473 as_fn_append ac_func_list " gettimeofday"
2474 as_fn_append ac_func_list " getuid"
2475 as_fn_append ac_func_list " ioctl"
2476 as_fn_append ac_func_list " kill"
2477 as_fn_append ac_func_list " link"
2478 as_fn_append ac_func_list " lseek"
2479 as_fn_append ac_func_list " mmap"
2480 as_fn_append ac_func_list " munmap"
2481 as_fn_append ac_func_list " pipe"
2482 as_fn_append ac_func_list " posix_fallocate"
2483 as_fn_append ac_func_list " pread"
2484 as_fn_append ac_func_list " rmdir"
2485 as_fn_append ac_func_list " setregid"
2486 as_fn_append ac_func_list " setreuid"
2487 as_fn_append ac_func_list " setgid"
2488 as_fn_append ac_func_list " setuid"
2489 as_fn_append ac_func_list " sigaction"
2490 as_fn_append ac_func_list " sigprocmask"
2491 as_fn_append ac_func_list " sqrt"
2492 as_fn_append ac_func_list " stat"
2493 as_fn_append ac_func_list " strsignal"
2494 as_fn_append ac_func_list " symlink"
2495 as_fn_append ac_func_list " tcdrain"
2496 as_fn_append ac_func_list " tcflow"
2497 as_fn_append ac_func_list " tcflush"
2498 as_fn_append ac_func_list " tcgetattr"
2499 as_fn_append ac_func_list " tcgetpgrp"
2500 as_fn_append ac_func_list " tcsendbreak"
2501 as_fn_append ac_func_list " tcsetattr"
2502 as_fn_append ac_func_list " tcsetpgrp"
2503 as_fn_append ac_func_list " time"
2504 as_fn_append ac_func_list " truncate"
2505 as_fn_append ac_func_list " umask"
2506 as_fn_append ac_func_list " unlink"
2507 as_fn_append ac_func_list " utime"
2508 # Check that the precious variables saved in the cache have kept the same
2509 # value.
2510 ac_cache_corrupted=false
2511 for ac_var in $ac_precious_vars; do
2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513 eval ac_new_set=\$ac_env_${ac_var}_set
2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515 eval ac_new_val=\$ac_env_${ac_var}_value
2516 case $ac_old_set,$ac_new_set in
2517 set,)
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2519 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2521 ,set)
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2523 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2524 ac_cache_corrupted=: ;;
2525 ,);;
2526 *)
2527 if test "x$ac_old_val" != "x$ac_new_val"; then
2528 # differences in whitespace do not lead to failure.
2529 ac_old_val_w=`echo x $ac_old_val`
2530 ac_new_val_w=`echo x $ac_new_val`
2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2534 ac_cache_corrupted=:
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2537 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538 eval $ac_var=\$ac_old_val
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2541 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2543 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2544 fi;;
2545 esac
2546 # Pass precious variables to config.status.
2547 if test "$ac_new_set" = set; then
2548 case $ac_new_val in
2549 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 *) ac_arg=$ac_var=$ac_new_val ;;
2551 esac
2552 case " $ac_configure_args " in
2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555 esac
2556 fi
2557 done
2558 if $ac_cache_corrupted; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2563 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2564 fi
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576
2577
2578
2579
2580
2581
2582 # Check whether --with-pkgversion was given.
2583 if test "${with_pkgversion+set}" = set; then :
2584 withval=$with_pkgversion; case "$withval" in
2585 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2586 no) PKGVERSION= ;;
2587 *) PKGVERSION="($withval) " ;;
2588 esac
2589 else
2590 PKGVERSION="(SIM) "
2591
2592 fi
2593
2594
2595
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PKGVERSION "$PKGVERSION"
2599 _ACEOF
2600
2601
2602
2603 # Check whether --with-bugurl was given.
2604 if test "${with_bugurl+set}" = set; then :
2605 withval=$with_bugurl; case "$withval" in
2606 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2607 no) BUGURL=
2608 ;;
2609 *) BUGURL="$withval"
2610 ;;
2611 esac
2612 else
2613 BUGURL="$PACKAGE_BUGREPORT"
2614
2615 fi
2616
2617 case ${BUGURL} in
2618 "")
2619 REPORT_BUGS_TO=
2620 REPORT_BUGS_TEXI=
2621 ;;
2622 *)
2623 REPORT_BUGS_TO="<$BUGURL>"
2624 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2625 ;;
2626 esac;
2627
2628
2629
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2633 _ACEOF
2634
2635
2636 ac_config_headers="$ac_config_headers config.h"
2637
2638
2639 ac_aux_dir=
2640 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641 if test -f "$ac_dir/install-sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install-sh -c"
2644 break
2645 elif test -f "$ac_dir/install.sh"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/install.sh -c"
2648 break
2649 elif test -f "$ac_dir/shtool"; then
2650 ac_aux_dir=$ac_dir
2651 ac_install_sh="$ac_aux_dir/shtool install -c"
2652 break
2653 fi
2654 done
2655 if test -z "$ac_aux_dir"; then
2656 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2657 fi
2658
2659 # These three variables are undocumented and unsupported,
2660 # and are intended to be withdrawn in a future Autoconf release.
2661 # They can cause serious problems if a builder's source tree is in a directory
2662 # whose full name contains unusual characters.
2663 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2664 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2665 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2666
2667
2668 # Make sure we can run config.sub.
2669 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2670 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2673 $as_echo_n "checking build system type... " >&6; }
2674 if ${ac_cv_build+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 ac_build_alias=$build_alias
2678 test "x$ac_build_alias" = x &&
2679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2680 test "x$ac_build_alias" = x &&
2681 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2682 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2687 $as_echo "$ac_cv_build" >&6; }
2688 case $ac_cv_build in
2689 *-*-*) ;;
2690 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2691 esac
2692 build=$ac_cv_build
2693 ac_save_IFS=$IFS; IFS='-'
2694 set x $ac_cv_build
2695 shift
2696 build_cpu=$1
2697 build_vendor=$2
2698 shift; shift
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2701 build_os=$*
2702 IFS=$ac_save_IFS
2703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2704
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2707 $as_echo_n "checking host system type... " >&6; }
2708 if ${ac_cv_host+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test "x$host_alias" = x; then
2712 ac_cv_host=$ac_cv_build
2713 else
2714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2715 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2716 fi
2717
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2720 $as_echo "$ac_cv_host" >&6; }
2721 case $ac_cv_host in
2722 *-*-*) ;;
2723 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2724 esac
2725 host=$ac_cv_host
2726 ac_save_IFS=$IFS; IFS='-'
2727 set x $ac_cv_host
2728 shift
2729 host_cpu=$1
2730 host_vendor=$2
2731 shift; shift
2732 # Remember, the first character of IFS is used to create $*,
2733 # except with old shells:
2734 host_os=$*
2735 IFS=$ac_save_IFS
2736 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2737
2738
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2740 $as_echo_n "checking target system type... " >&6; }
2741 if ${ac_cv_target+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test "x$target_alias" = x; then
2745 ac_cv_target=$ac_cv_host
2746 else
2747 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2748 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2749 fi
2750
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2753 $as_echo "$ac_cv_target" >&6; }
2754 case $ac_cv_target in
2755 *-*-*) ;;
2756 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2757 esac
2758 target=$ac_cv_target
2759 ac_save_IFS=$IFS; IFS='-'
2760 set x $ac_cv_target
2761 shift
2762 target_cpu=$1
2763 target_vendor=$2
2764 shift; shift
2765 # Remember, the first character of IFS is used to create $*,
2766 # except with old shells:
2767 target_os=$*
2768 IFS=$ac_save_IFS
2769 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2770
2771
2772 # The aliases save the names the user supplied, while $host etc.
2773 # will get canonicalized.
2774 test -n "$target_alias" &&
2775 test "$program_prefix$program_suffix$program_transform_name" = \
2776 NONENONEs,x,x, &&
2777 program_prefix=${target_alias}-
2778 # Expand $ac_aux_dir to an absolute path.
2779 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2780
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_CC+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 $as_echo "$CC" >&6; }
2818 else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$ac_cv_prog_CC"; then
2826 ac_ct_CC=$CC
2827 # Extract the first word of "gcc", so it can be a program name with args.
2828 set dummy gcc; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC="gcc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2857 $as_echo "$ac_ct_CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872 CC=$ac_ct_CC
2873 fi
2874 else
2875 CC="$ac_cv_prog_CC"
2876 fi
2877
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}cc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_CC="${ac_tool_prefix}cc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 fi
2919 if test -z "$CC"; then
2920 # Extract the first word of "cc", so it can be a program name with args.
2921 set dummy cc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 ac_prog_rejected=no
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2939 ac_prog_rejected=yes
2940 continue
2941 fi
2942 ac_cv_prog_CC="cc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 if test $ac_prog_rejected = yes; then
2951 # We found a bogon in the path, so make sure we never use it.
2952 set dummy $ac_cv_prog_CC
2953 shift
2954 if test $# != 0; then
2955 # We chose a different compiler from the bogus one.
2956 # However, it has the same basename, so the bogon will be chosen
2957 # first if we set CC to just the basename; use the full file name.
2958 shift
2959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 fi
2961 fi
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015
3016 test -n "$CC" && break
3017 done
3018 fi
3019 if test -z "$CC"; then
3020 ac_ct_CC=$CC
3021 for ac_prog in cl.exe
3022 do
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 test -n "$ac_ct_CC" && break
3061 done
3062
3063 if test "x$ac_ct_CC" = x; then
3064 CC=""
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 CC=$ac_ct_CC
3073 fi
3074 fi
3075
3076 fi
3077
3078
3079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "no acceptable C compiler found in \$PATH
3082 See \`config.log' for more details" "$LINENO" 5; }
3083
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3086 set X $ac_compile
3087 ac_compiler=$2
3088 for ac_option in --version -v -V -qversion; do
3089 { { ac_try="$ac_compiler $ac_option >&5"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3095 $as_echo "$ac_try_echo"; } >&5
3096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3097 ac_status=$?
3098 if test -s conftest.err; then
3099 sed '10a\
3100 ... rest of stderr output deleted ...
3101 10q' conftest.err >conftest.er1
3102 cat conftest.er1 >&5
3103 fi
3104 rm -f conftest.er1 conftest.err
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 done
3108
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3128
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3131
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3134 do
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3141
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3159 do
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3163 ;;
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 fi
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3179 * )
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184
3185 else
3186 ac_file=''
3187 fi
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3207
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 fi
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3252 int
3253 main ()
3254 {
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 fi
3301 fi
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3305
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 $as_echo_n "checking for suffix of object files... " >&6; }
3310 if ${ac_cv_objext+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315
3316 int
3317 main ()
3318 {
3319
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.o conftest.obj
3325 if { { ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_compile") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 for ac_file in conftest.o conftest.obj conftest.*; do
3337 test -f "$ac_file" || continue;
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 break;;
3342 esac
3343 done
3344 else
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3356 $as_echo "$ac_cv_objext" >&6; }
3357 OBJEXT=$ac_cv_objext
3358 ac_objext=$OBJEXT
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3361 if ${ac_cv_c_compiler_gnu+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366
3367 int
3368 main ()
3369 {
3370 #ifndef __GNUC__
3371 choke me
3372 #endif
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_compiler_gnu=yes
3380 else
3381 ac_compiler_gnu=no
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3385
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3389 if test $ac_compiler_gnu = yes; then
3390 GCC=yes
3391 else
3392 GCC=
3393 fi
3394 ac_test_CFLAGS=${CFLAGS+set}
3395 ac_save_CFLAGS=$CFLAGS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3398 if ${ac_cv_prog_cc_g+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 ac_save_c_werror_flag=$ac_c_werror_flag
3402 ac_c_werror_flag=yes
3403 ac_cv_prog_cc_g=no
3404 CFLAGS="-g"
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main ()
3410 {
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_g=yes
3418 else
3419 CFLAGS=""
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432
3433 else
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main ()
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_g=yes
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3458 $as_echo "$ac_cv_prog_cc_g" >&6; }
3459 if test "$ac_test_CFLAGS" = set; then
3460 CFLAGS=$ac_save_CFLAGS
3461 elif test $ac_cv_prog_cc_g = yes; then
3462 if test "$GCC" = yes; then
3463 CFLAGS="-g -O2"
3464 else
3465 CFLAGS="-g"
3466 fi
3467 else
3468 if test "$GCC" = yes; then
3469 CFLAGS="-O2"
3470 else
3471 CFLAGS=
3472 fi
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3476 if ${ac_cv_prog_cc_c89+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 ac_cv_prog_cc_c89=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdarg.h>
3484 #include <stdio.h>
3485 struct stat;
3486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3487 struct buf { int x; };
3488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3489 static char *e (p, i)
3490 char **p;
3491 int i;
3492 {
3493 return p[i];
3494 }
3495 static char *f (char * (*g) (char **, int), char **p, ...)
3496 {
3497 char *s;
3498 va_list v;
3499 va_start (v,p);
3500 s = g (p, va_arg (v,int));
3501 va_end (v);
3502 return s;
3503 }
3504
3505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3506 function prototypes and stuff, but not '\xHH' hex character constants.
3507 These don't provoke an error unfortunately, instead are silently treated
3508 as 'x'. The following induces an error, until -std is added to get
3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3510 array size at least. It's necessary to write '\x00'==0 to get something
3511 that's true only with -std. */
3512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3513
3514 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3515 inside strings and character constants. */
3516 #define FOO(x) 'x'
3517 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3518
3519 int test (int i, double x);
3520 struct s1 {int (*f) (int a);};
3521 struct s2 {int (*f) (double a);};
3522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3523 int argc;
3524 char **argv;
3525 int
3526 main ()
3527 {
3528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3535 do
3536 CC="$ac_save_CC $ac_arg"
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_c89=$ac_arg
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext
3541 test "x$ac_cv_prog_cc_c89" != "xno" && break
3542 done
3543 rm -f conftest.$ac_ext
3544 CC=$ac_save_CC
3545
3546 fi
3547 # AC_CACHE_VAL
3548 case "x$ac_cv_prog_cc_c89" in
3549 x)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3551 $as_echo "none needed" >&6; } ;;
3552 xno)
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 $as_echo "unsupported" >&6; } ;;
3555 *)
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3558 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3559 esac
3560 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561
3562 fi
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3576 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3577 if ${am_cv_prog_cc_c_o+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 # Make sure it works both with $CC and with simple cc.
3592 # Following AC_PROG_CC_C_O, we do the test twice because some
3593 # compilers refuse to overwrite an existing .o file with -o,
3594 # though they will create one.
3595 am_cv_prog_cc_c_o=yes
3596 for am_i in 1 2; do
3597 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3598 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } \
3602 && test -f conftest2.$ac_objext; then
3603 : OK
3604 else
3605 am_cv_prog_cc_c_o=no
3606 break
3607 fi
3608 done
3609 rm -f core conftest*
3610 unset am_i
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3613 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3614 if test "$am_cv_prog_cc_c_o" != yes; then
3615 # Losing compiler, so override with the script.
3616 # FIXME: It is wrong to rewrite CC.
3617 # But if we don't then we get into trouble of one sort or another.
3618 # A longer-term fix would be to have automake use am__CC in this case,
3619 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3620 CC="$am_aux_dir/compile $CC"
3621 fi
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3636 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3637 # On Suns, sometimes $CPP names a directory.
3638 if test -n "$CPP" && test -d "$CPP"; then
3639 CPP=
3640 fi
3641 if test -z "$CPP"; then
3642 if ${ac_cv_prog_CPP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 # Double quotes because CPP needs to be expanded
3646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3647 do
3648 ac_preproc_ok=false
3649 for ac_c_preproc_warn_flag in '' yes
3650 do
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659 #ifdef __STDC__
3660 # include <limits.h>
3661 #else
3662 # include <assert.h>
3663 #endif
3664 Syntax error
3665 _ACEOF
3666 if ac_fn_c_try_cpp "$LINENO"; then :
3667
3668 else
3669 # Broken: fails on valid input.
3670 continue
3671 fi
3672 rm -f conftest.err conftest.i conftest.$ac_ext
3673
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <ac_nonexistent.h>
3679 _ACEOF
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3681 # Broken: success on invalid input.
3682 continue
3683 else
3684 # Passes both tests.
3685 ac_preproc_ok=:
3686 break
3687 fi
3688 rm -f conftest.err conftest.i conftest.$ac_ext
3689
3690 done
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.i conftest.err conftest.$ac_ext
3693 if $ac_preproc_ok; then :
3694 break
3695 fi
3696
3697 done
3698 ac_cv_prog_CPP=$CPP
3699
3700 fi
3701 CPP=$ac_cv_prog_CPP
3702 else
3703 ac_cv_prog_CPP=$CPP
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3706 $as_echo "$CPP" >&6; }
3707 ac_preproc_ok=false
3708 for ac_c_preproc_warn_flag in '' yes
3709 do
3710 # Use a header file that comes with gcc, so configuring glibc
3711 # with a fresh cross-compiler works.
3712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 # <limits.h> exists even on freestanding compilers.
3714 # On the NeXT, cc -E runs the code through the compiler's parser,
3715 # not just through cpp. "Syntax error" is here to catch this case.
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718 #ifdef __STDC__
3719 # include <limits.h>
3720 #else
3721 # include <assert.h>
3722 #endif
3723 Syntax error
3724 _ACEOF
3725 if ac_fn_c_try_cpp "$LINENO"; then :
3726
3727 else
3728 # Broken: fails on valid input.
3729 continue
3730 fi
3731 rm -f conftest.err conftest.i conftest.$ac_ext
3732
3733 # OK, works on sane cases. Now check whether nonexistent headers
3734 # can be detected and how.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if ac_fn_c_try_cpp "$LINENO"; then :
3740 # Broken: success on invalid input.
3741 continue
3742 else
3743 # Passes both tests.
3744 ac_preproc_ok=:
3745 break
3746 fi
3747 rm -f conftest.err conftest.i conftest.$ac_ext
3748
3749 done
3750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3751 rm -f conftest.i conftest.err conftest.$ac_ext
3752 if $ac_preproc_ok; then :
3753
3754 else
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3758 See \`config.log' for more details" "$LINENO" 5; }
3759 fi
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3769 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3770 if ${ac_cv_path_GREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -z "$GREP"; then
3774 ac_path_GREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in grep ggrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3784 as_fn_executable_p "$ac_path_GREP" || continue
3785 # Check for GNU ac_path_GREP and select it if it is found.
3786 # Check for GNU $ac_path_GREP
3787 case `"$ac_path_GREP" --version 2>&1` in
3788 *GNU*)
3789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790 *)
3791 ac_count=0
3792 $as_echo_n 0123456789 >"conftest.in"
3793 while :
3794 do
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 $as_echo 'GREP' >> "conftest.nl"
3799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 as_fn_arith $ac_count + 1 && ac_count=$as_val
3802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_GREP="$ac_path_GREP"
3805 ac_path_GREP_max=$ac_count
3806 fi
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3809 done
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3812
3813 $ac_path_GREP_found && break 3
3814 done
3815 done
3816 done
3817 IFS=$as_save_IFS
3818 if test -z "$ac_cv_path_GREP"; then
3819 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820 fi
3821 else
3822 ac_cv_path_GREP=$GREP
3823 fi
3824
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3827 $as_echo "$ac_cv_path_GREP" >&6; }
3828 GREP="$ac_cv_path_GREP"
3829
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3832 $as_echo_n "checking for egrep... " >&6; }
3833 if ${ac_cv_path_EGREP+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3837 then ac_cv_path_EGREP="$GREP -E"
3838 else
3839 if test -z "$EGREP"; then
3840 ac_path_EGREP_found=false
3841 # Loop through the user's path and test for each of PROGNAME-LIST
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_prog in egrep; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3850 as_fn_executable_p "$ac_path_EGREP" || continue
3851 # Check for GNU ac_path_EGREP and select it if it is found.
3852 # Check for GNU $ac_path_EGREP
3853 case `"$ac_path_EGREP" --version 2>&1` in
3854 *GNU*)
3855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3856 *)
3857 ac_count=0
3858 $as_echo_n 0123456789 >"conftest.in"
3859 while :
3860 do
3861 cat "conftest.in" "conftest.in" >"conftest.tmp"
3862 mv "conftest.tmp" "conftest.in"
3863 cp "conftest.in" "conftest.nl"
3864 $as_echo 'EGREP' >> "conftest.nl"
3865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867 as_fn_arith $ac_count + 1 && ac_count=$as_val
3868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3869 # Best one so far, save it but keep looking for a better one
3870 ac_cv_path_EGREP="$ac_path_EGREP"
3871 ac_path_EGREP_max=$ac_count
3872 fi
3873 # 10*(2^10) chars as input seems more than enough
3874 test $ac_count -gt 10 && break
3875 done
3876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877 esac
3878
3879 $ac_path_EGREP_found && break 3
3880 done
3881 done
3882 done
3883 IFS=$as_save_IFS
3884 if test -z "$ac_cv_path_EGREP"; then
3885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3886 fi
3887 else
3888 ac_cv_path_EGREP=$EGREP
3889 fi
3890
3891 fi
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3894 $as_echo "$ac_cv_path_EGREP" >&6; }
3895 EGREP="$ac_cv_path_EGREP"
3896
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3899 $as_echo_n "checking for ANSI C header files... " >&6; }
3900 if ${ac_cv_header_stdc+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <stdlib.h>
3906 #include <stdarg.h>
3907 #include <string.h>
3908 #include <float.h>
3909
3910 int
3911 main ()
3912 {
3913
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_header_stdc=yes
3920 else
3921 ac_cv_header_stdc=no
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924
3925 if test $ac_cv_header_stdc = yes; then
3926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <string.h>
3930
3931 _ACEOF
3932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3933 $EGREP "memchr" >/dev/null 2>&1; then :
3934
3935 else
3936 ac_cv_header_stdc=no
3937 fi
3938 rm -f conftest*
3939
3940 fi
3941
3942 if test $ac_cv_header_stdc = yes; then
3943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <stdlib.h>
3947
3948 _ACEOF
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 $EGREP "free" >/dev/null 2>&1; then :
3951
3952 else
3953 ac_cv_header_stdc=no
3954 fi
3955 rm -f conftest*
3956
3957 fi
3958
3959 if test $ac_cv_header_stdc = yes; then
3960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3961 if test "$cross_compiling" = yes; then :
3962 :
3963 else
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <ctype.h>
3967 #include <stdlib.h>
3968 #if ((' ' & 0x0FF) == 0x020)
3969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971 #else
3972 # define ISLOWER(c) \
3973 (('a' <= (c) && (c) <= 'i') \
3974 || ('j' <= (c) && (c) <= 'r') \
3975 || ('s' <= (c) && (c) <= 'z'))
3976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977 #endif
3978
3979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980 int
3981 main ()
3982 {
3983 int i;
3984 for (i = 0; i < 256; i++)
3985 if (XOR (islower (i), ISLOWER (i))
3986 || toupper (i) != TOUPPER (i))
3987 return 2;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_run "$LINENO"; then :
3992
3993 else
3994 ac_cv_header_stdc=no
3995 fi
3996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3997 conftest.$ac_objext conftest.beam conftest.$ac_ext
3998 fi
3999
4000 fi
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4003 $as_echo "$ac_cv_header_stdc" >&6; }
4004 if test $ac_cv_header_stdc = yes; then
4005
4006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4007
4008 fi
4009
4010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4012 inttypes.h stdint.h unistd.h
4013 do :
4014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4016 "
4017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4018 cat >>confdefs.h <<_ACEOF
4019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4020 _ACEOF
4021
4022 fi
4023
4024 done
4025
4026
4027
4028 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4029 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4030 MINIX=yes
4031 else
4032 MINIX=
4033 fi
4034
4035
4036 if test "$MINIX" = yes; then
4037
4038 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4039
4040
4041 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4042
4043
4044 $as_echo "#define _MINIX 1" >>confdefs.h
4045
4046 fi
4047
4048
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4050 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4051 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 # define __EXTENSIONS__ 1
4058 $ac_includes_default
4059 int
4060 main ()
4061 {
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_cv_safe_to_define___extensions__=yes
4069 else
4070 ac_cv_safe_to_define___extensions__=no
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4075 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4076 test $ac_cv_safe_to_define___extensions__ = yes &&
4077 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4078
4079 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4080
4081 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4082
4083 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4084
4085 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4086
4087
4088 test "$program_prefix" != NONE &&
4089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4090 # Use a double $ so make ignores it.
4091 test "$program_suffix" != NONE &&
4092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4093 # Double any \ or $.
4094 # By default was `s,x,x', remove it if useless.
4095 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4096 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4097
4098 # Find a good install program. We prefer a C program (faster),
4099 # so one script is as good as another. But avoid the broken or
4100 # incompatible versions:
4101 # SysV /etc/install, /usr/sbin/install
4102 # SunOS /usr/etc/install
4103 # IRIX /sbin/install
4104 # AIX /bin/install
4105 # AmigaOS /C/install, which installs bootblocks on floppy discs
4106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4109 # OS/2's system install, which has a completely different semantic
4110 # ./install, which can be erroneously created by make from ./install.sh.
4111 # Reject install programs that cannot install multiple files.
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4113 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4114 if test -z "$INSTALL"; then
4115 if ${ac_cv_path_install+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 # Account for people who put trailing slashes in PATH elements.
4124 case $as_dir/ in #((
4125 ./ | .// | /[cC]/* | \
4126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4127 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4128 /usr/ucb/* ) ;;
4129 *)
4130 # OSF1 and SCO ODT 3.0 have their own names for install.
4131 # Don't use installbsd from OSF since it installs stuff as root
4132 # by default.
4133 for ac_prog in ginstall scoinst install; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4136 if test $ac_prog = install &&
4137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4138 # AIX install. It has an incompatible calling convention.
4139 :
4140 elif test $ac_prog = install &&
4141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4142 # program-specific install script used by HP pwplus--don't use.
4143 :
4144 else
4145 rm -rf conftest.one conftest.two conftest.dir
4146 echo one > conftest.one
4147 echo two > conftest.two
4148 mkdir conftest.dir
4149 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4150 test -s conftest.one && test -s conftest.two &&
4151 test -s conftest.dir/conftest.one &&
4152 test -s conftest.dir/conftest.two
4153 then
4154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4155 break 3
4156 fi
4157 fi
4158 fi
4159 done
4160 done
4161 ;;
4162 esac
4163
4164 done
4165 IFS=$as_save_IFS
4166
4167 rm -rf conftest.one conftest.two conftest.dir
4168
4169 fi
4170 if test "${ac_cv_path_install+set}" = set; then
4171 INSTALL=$ac_cv_path_install
4172 else
4173 # As a last resort, use the slow shell script. Don't cache a
4174 # value for INSTALL within a source directory, because that will
4175 # break other packages using the cache if that directory is
4176 # removed, or if the value is a relative name.
4177 INSTALL=$ac_install_sh
4178 fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4181 $as_echo "$INSTALL" >&6; }
4182
4183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4184 # It thinks the first close brace ends the variable substitution.
4185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4186
4187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4188
4189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4190
4191
4192
4193
4194
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4196 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4197 if ${ac_cv_c_bigendian+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_cv_c_bigendian=unknown
4201 # See if we're dealing with a universal compiler.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #ifndef __APPLE_CC__
4205 not a universal capable compiler
4206 #endif
4207 typedef int dummy;
4208
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211
4212 # Check for potential -arch flags. It is not universal unless
4213 # there are at least two -arch flags with different values.
4214 ac_arch=
4215 ac_prev=
4216 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4217 if test -n "$ac_prev"; then
4218 case $ac_word in
4219 i?86 | x86_64 | ppc | ppc64)
4220 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4221 ac_arch=$ac_word
4222 else
4223 ac_cv_c_bigendian=universal
4224 break
4225 fi
4226 ;;
4227 esac
4228 ac_prev=
4229 elif test "x$ac_word" = "x-arch"; then
4230 ac_prev=arch
4231 fi
4232 done
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 if test $ac_cv_c_bigendian = unknown; then
4236 # See if sys/param.h defines the BYTE_ORDER macro.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <sys/types.h>
4240 #include <sys/param.h>
4241
4242 int
4243 main ()
4244 {
4245 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4246 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4247 && LITTLE_ENDIAN)
4248 bogus endian macros
4249 #endif
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256 # It does; now see whether it defined to BIG_ENDIAN or not.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <sys/types.h>
4260 #include <sys/param.h>
4261
4262 int
4263 main ()
4264 {
4265 #if BYTE_ORDER != BIG_ENDIAN
4266 not big endian
4267 #endif
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274 ac_cv_c_bigendian=yes
4275 else
4276 ac_cv_c_bigendian=no
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 if test $ac_cv_c_bigendian = unknown; then
4283 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <limits.h>
4287
4288 int
4289 main ()
4290 {
4291 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4292 bogus endian macros
4293 #endif
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 # It does; now see whether it defined to _BIG_ENDIAN or not.
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <limits.h>
4304
4305 int
4306 main ()
4307 {
4308 #ifndef _BIG_ENDIAN
4309 not big endian
4310 #endif
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_c_bigendian=yes
4318 else
4319 ac_cv_c_bigendian=no
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 if test $ac_cv_c_bigendian = unknown; then
4326 # Compile a test program.
4327 if test "$cross_compiling" = yes; then :
4328 # Try to guess by grepping values from an object file.
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331 short int ascii_mm[] =
4332 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4333 short int ascii_ii[] =
4334 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335 int use_ascii (int i) {
4336 return ascii_mm[i] + ascii_ii[i];
4337 }
4338 short int ebcdic_ii[] =
4339 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4340 short int ebcdic_mm[] =
4341 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4342 int use_ebcdic (int i) {
4343 return ebcdic_mm[i] + ebcdic_ii[i];
4344 }
4345 extern int foo;
4346
4347 int
4348 main ()
4349 {
4350 return use_ascii (foo) == use_ebcdic (foo);
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4357 ac_cv_c_bigendian=yes
4358 fi
4359 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4360 if test "$ac_cv_c_bigendian" = unknown; then
4361 ac_cv_c_bigendian=no
4362 else
4363 # finding both strings is unlikely to happen, but who knows?
4364 ac_cv_c_bigendian=unknown
4365 fi
4366 fi
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 else
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 $ac_includes_default
4373 int
4374 main ()
4375 {
4376
4377 /* Are we little or big endian? From Harbison&Steele. */
4378 union
4379 {
4380 long int l;
4381 char c[sizeof (long int)];
4382 } u;
4383 u.l = 1;
4384 return u.c[sizeof (long int) - 1] == 1;
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_run "$LINENO"; then :
4391 ac_cv_c_bigendian=no
4392 else
4393 ac_cv_c_bigendian=yes
4394 fi
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4396 conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 fi
4398
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4402 $as_echo "$ac_cv_c_bigendian" >&6; }
4403 case $ac_cv_c_bigendian in #(
4404 yes)
4405 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4406 ;; #(
4407 no)
4408 ;; #(
4409 universal)
4410
4411 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4412
4413 ;; #(
4414 *)
4415 as_fn_error $? "unknown endianness
4416 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4417 esac
4418
4419
4420
4421
4422 if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if ${ac_cv_prog_DTC+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$DTC"; then
4431 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 DTC=$ac_cv_prog_DTC
4451 if test -n "$DTC"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4453 $as_echo "$DTC" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$ac_cv_prog_DTC"; then
4462 ac_ct_DTC=$DTC
4463 # Extract the first word of "dtc", so it can be a program name with args.
4464 set dummy dtc; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -n "$ac_ct_DTC"; then
4471 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_ac_ct_DTC="dtc"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4491 if test -n "$ac_ct_DTC"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4493 $as_echo "$ac_ct_DTC" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499 if test "x$ac_ct_DTC" = x; then
4500 DTC=""
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508 DTC=$ac_ct_DTC
4509 fi
4510 else
4511 DTC="$ac_cv_prog_DTC"
4512 fi
4513
4514
4515 if test "x$cross_compiling" = "xno"; then
4516 : "${AR_FOR_BUILD:=\$(AR)}"
4517 : "${CC_FOR_BUILD:=\$(CC)}"
4518 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4519 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4520 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4521 else
4522 : "${AR_FOR_BUILD:=ar}"
4523 : "${CC_FOR_BUILD:=gcc}"
4524 : "${RANLIB_FOR_BUILD:=ranlib}"
4525 : "${CFLAGS_FOR_BUILD:=-g -O}"
4526 : "${LDLFAGS_FOR_BUILD:=}"
4527 fi
4528
4529
4530
4531
4532
4533
4534
4535 if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4537 set dummy ${ac_tool_prefix}ar; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_prog_AR+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if test -n "$AR"; then
4544 ac_cv_prog_AR="$AR" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_AR="${ac_tool_prefix}ar"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557 done
4558 done
4559 IFS=$as_save_IFS
4560
4561 fi
4562 fi
4563 AR=$ac_cv_prog_AR
4564 if test -n "$AR"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4566 $as_echo "$AR" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571
4572
4573 fi
4574 if test -z "$ac_cv_prog_AR"; then
4575 ac_ct_AR=$AR
4576 # Extract the first word of "ar", so it can be a program name with args.
4577 set dummy ar; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$ac_ct_AR"; then
4584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_ac_ct_AR="ar"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4604 if test -n "$ac_ct_AR"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4606 $as_echo "$ac_ct_AR" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612 if test "x$ac_ct_AR" = x; then
4613 AR=""
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616 yes:)
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619 ac_tool_warned=yes ;;
4620 esac
4621 AR=$ac_ct_AR
4622 fi
4623 else
4624 AR="$ac_cv_prog_AR"
4625 fi
4626
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_RANLIB+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$RANLIB"; then
4636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 RANLIB=$ac_cv_prog_RANLIB
4656 if test -n "$RANLIB"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4658 $as_echo "$RANLIB" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 fi
4663
4664
4665 fi
4666 if test -z "$ac_cv_prog_RANLIB"; then
4667 ac_ct_RANLIB=$RANLIB
4668 # Extract the first word of "ranlib", so it can be a program name with args.
4669 set dummy ranlib; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_RANLIB"; then
4676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_ac_ct_RANLIB="ranlib"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4696 if test -n "$ac_ct_RANLIB"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4698 $as_echo "$ac_ct_RANLIB" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704 if test "x$ac_ct_RANLIB" = x; then
4705 RANLIB=":"
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 RANLIB=$ac_ct_RANLIB
4714 fi
4715 else
4716 RANLIB="$ac_cv_prog_RANLIB"
4717 fi
4718
4719
4720 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4721 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4722 # is C99. So handle it ourselves.
4723 :
4724 C_DIALECT=
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4726 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4731 # error "C11 support not found"
4732 #endif
4733
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737 $as_echo "yes" >&6; }
4738 else
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4743 $as_echo_n "checking for -std=c11 support... " >&6; }
4744 ac_save_CC="$CC"
4745 CC="$CC -std=c11"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748
4749 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4750 # error "C11 support not found"
4751 #endif
4752
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4757 $as_echo "yes" >&6; }
4758 CC="$ac_save_CC"
4759 C_DIALECT="-std=c11"
4760
4761 else
4762 as_fn_error $? "C11 is required" "$LINENO" 5
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767
4768
4769
4770
4771
4772 for ac_header in $ac_header_list
4773 do :
4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4776 "
4777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778 cat >>confdefs.h <<_ACEOF
4779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4780 _ACEOF
4781
4782 fi
4783
4784 done
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 for ac_func in $ac_func_list
4838 do :
4839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4842 cat >>confdefs.h <<_ACEOF
4843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844 _ACEOF
4845
4846 fi
4847 done
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4972 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4973 if ${ac_cv_struct_tm+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #include <sys/types.h>
4979 #include <time.h>
4980
4981 int
4982 main ()
4983 {
4984 struct tm tm;
4985 int *p = &tm.tm_sec;
4986 return !p;
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_compile "$LINENO"; then :
4992 ac_cv_struct_tm=time.h
4993 else
4994 ac_cv_struct_tm=sys/time.h
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4999 $as_echo "$ac_cv_struct_tm" >&6; }
5000 if test $ac_cv_struct_tm = sys/time.h; then
5001
5002 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5003
5004 fi
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5007 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5008 if ${ac_cv_type_uid_t+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <sys/types.h>
5014
5015 _ACEOF
5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "uid_t" >/dev/null 2>&1; then :
5018 ac_cv_type_uid_t=yes
5019 else
5020 ac_cv_type_uid_t=no
5021 fi
5022 rm -f conftest*
5023
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5026 $as_echo "$ac_cv_type_uid_t" >&6; }
5027 if test $ac_cv_type_uid_t = no; then
5028
5029 $as_echo "#define uid_t int" >>confdefs.h
5030
5031
5032 $as_echo "#define gid_t int" >>confdefs.h
5033
5034 fi
5035
5036 case `pwd` in
5037 *\ * | *\ *)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5039 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5040 esac
5041
5042
5043
5044 macro_version='2.2.7a'
5045 macro_revision='1.3134'
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059 ltmain="$ac_aux_dir/ltmain.sh"
5060
5061 # Backslashify metacharacters that are still active within
5062 # double-quoted strings.
5063 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5064
5065 # Same as above, but do not quote variable references.
5066 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5067
5068 # Sed substitution to delay expansion of an escaped shell variable in a
5069 # double_quote_subst'ed string.
5070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5071
5072 # Sed substitution to delay expansion of an escaped single quote.
5073 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5074
5075 # Sed substitution to avoid accidental globbing in evaled expressions
5076 no_glob_subst='s/\*/\\\*/g'
5077
5078 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5079 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5080 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5081
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5083 $as_echo_n "checking how to print strings... " >&6; }
5084 # Test print first, because it will be a builtin if present.
5085 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5086 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5087 ECHO='print -r --'
5088 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 ECHO='printf %s\n'
5090 else
5091 # Use this function as a fallback that always works.
5092 func_fallback_echo ()
5093 {
5094 eval 'cat <<_LTECHO_EOF
5095 $1
5096 _LTECHO_EOF'
5097 }
5098 ECHO='func_fallback_echo'
5099 fi
5100
5101 # func_echo_all arg...
5102 # Invoke $ECHO with all args, space-separated.
5103 func_echo_all ()
5104 {
5105 $ECHO ""
5106 }
5107
5108 case "$ECHO" in
5109 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5110 $as_echo "printf" >&6; } ;;
5111 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5112 $as_echo "print -r" >&6; } ;;
5113 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5114 $as_echo "cat" >&6; } ;;
5115 esac
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5131 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5132 if ${ac_cv_path_SED+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5136 for ac_i in 1 2 3 4 5 6 7; do
5137 ac_script="$ac_script$as_nl$ac_script"
5138 done
5139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5140 { ac_script=; unset ac_script;}
5141 if test -z "$SED"; then
5142 ac_path_SED_found=false
5143 # Loop through the user's path and test for each of PROGNAME-LIST
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_prog in sed gsed; do
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5152 as_fn_executable_p "$ac_path_SED" || continue
5153 # Check for GNU ac_path_SED and select it if it is found.
5154 # Check for GNU $ac_path_SED
5155 case `"$ac_path_SED" --version 2>&1` in
5156 *GNU*)
5157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5158 *)
5159 ac_count=0
5160 $as_echo_n 0123456789 >"conftest.in"
5161 while :
5162 do
5163 cat "conftest.in" "conftest.in" >"conftest.tmp"
5164 mv "conftest.tmp" "conftest.in"
5165 cp "conftest.in" "conftest.nl"
5166 $as_echo '' >> "conftest.nl"
5167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5169 as_fn_arith $ac_count + 1 && ac_count=$as_val
5170 if test $ac_count -gt ${ac_path_SED_max-0}; then
5171 # Best one so far, save it but keep looking for a better one
5172 ac_cv_path_SED="$ac_path_SED"
5173 ac_path_SED_max=$ac_count
5174 fi
5175 # 10*(2^10) chars as input seems more than enough
5176 test $ac_count -gt 10 && break
5177 done
5178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5179 esac
5180
5181 $ac_path_SED_found && break 3
5182 done
5183 done
5184 done
5185 IFS=$as_save_IFS
5186 if test -z "$ac_cv_path_SED"; then
5187 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5188 fi
5189 else
5190 ac_cv_path_SED=$SED
5191 fi
5192
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5195 $as_echo "$ac_cv_path_SED" >&6; }
5196 SED="$ac_cv_path_SED"
5197 rm -f conftest.sed
5198
5199 test -z "$SED" && SED=sed
5200 Xsed="$SED -e 1s/^X//"
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5213 $as_echo_n "checking for fgrep... " >&6; }
5214 if ${ac_cv_path_FGREP+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5218 then ac_cv_path_FGREP="$GREP -F"
5219 else
5220 if test -z "$FGREP"; then
5221 ac_path_FGREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_prog in fgrep; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5231 as_fn_executable_p "$ac_path_FGREP" || continue
5232 # Check for GNU ac_path_FGREP and select it if it is found.
5233 # Check for GNU $ac_path_FGREP
5234 case `"$ac_path_FGREP" --version 2>&1` in
5235 *GNU*)
5236 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5237 *)
5238 ac_count=0
5239 $as_echo_n 0123456789 >"conftest.in"
5240 while :
5241 do
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 $as_echo 'FGREP' >> "conftest.nl"
5246 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_FGREP="$ac_path_FGREP"
5252 ac_path_FGREP_max=$ac_count
5253 fi
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5256 done
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258 esac
5259
5260 $ac_path_FGREP_found && break 3
5261 done
5262 done
5263 done
5264 IFS=$as_save_IFS
5265 if test -z "$ac_cv_path_FGREP"; then
5266 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5267 fi
5268 else
5269 ac_cv_path_FGREP=$FGREP
5270 fi
5271
5272 fi
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5275 $as_echo "$ac_cv_path_FGREP" >&6; }
5276 FGREP="$ac_cv_path_FGREP"
5277
5278
5279 test -z "$GREP" && GREP=grep
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 # Check whether --with-gnu-ld was given.
5300 if test "${with_gnu_ld+set}" = set; then :
5301 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5302 else
5303 with_gnu_ld=no
5304 fi
5305
5306 ac_prog=ld
5307 if test "$GCC" = yes; then
5308 # Check if gcc -print-prog-name=ld gives a path.
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5310 $as_echo_n "checking for ld used by $CC... " >&6; }
5311 case $host in
5312 *-*-mingw*)
5313 # gcc leaves a trailing carriage return which upsets mingw
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5315 *)
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5317 esac
5318 case $ac_prog in
5319 # Accept absolute paths.
5320 [\\/]* | ?:[\\/]*)
5321 re_direlt='/[^/][^/]*/\.\./'
5322 # Canonicalize the pathname of ld
5323 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5324 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5325 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5326 done
5327 test -z "$LD" && LD="$ac_prog"
5328 ;;
5329 "")
5330 # If it fails, then pretend we aren't using GCC.
5331 ac_prog=ld
5332 ;;
5333 *)
5334 # If it is relative, then search for the first ld in PATH.
5335 with_gnu_ld=unknown
5336 ;;
5337 esac
5338 elif test "$with_gnu_ld" = yes; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5340 $as_echo_n "checking for GNU ld... " >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5343 $as_echo_n "checking for non-GNU ld... " >&6; }
5344 fi
5345 if ${lt_cv_path_LD+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -z "$LD"; then
5349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5350 for ac_dir in $PATH; do
5351 IFS="$lt_save_ifs"
5352 test -z "$ac_dir" && ac_dir=.
5353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5354 lt_cv_path_LD="$ac_dir/$ac_prog"
5355 # Check to see if the program is GNU ld. I'd rather use --version,
5356 # but apparently some variants of GNU ld only accept -v.
5357 # Break only if it was the GNU/non-GNU ld that we prefer.
5358 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5359 *GNU* | *'with BFD'*)
5360 test "$with_gnu_ld" != no && break
5361 ;;
5362 *)
5363 test "$with_gnu_ld" != yes && break
5364 ;;
5365 esac
5366 fi
5367 done
5368 IFS="$lt_save_ifs"
5369 else
5370 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5371 fi
5372 fi
5373
5374 LD="$lt_cv_path_LD"
5375 if test -n "$LD"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5377 $as_echo "$LD" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5384 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5385 if ${lt_cv_prog_gnu_ld+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5389 case `$LD -v 2>&1 </dev/null` in
5390 *GNU* | *'with BFD'*)
5391 lt_cv_prog_gnu_ld=yes
5392 ;;
5393 *)
5394 lt_cv_prog_gnu_ld=no
5395 ;;
5396 esac
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5399 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5400 with_gnu_ld=$lt_cv_prog_gnu_ld
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5411 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5412 if ${lt_cv_path_NM+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$NM"; then
5416 # Let the user override the test.
5417 lt_cv_path_NM="$NM"
5418 else
5419 lt_nm_to_check="${ac_tool_prefix}nm"
5420 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5421 lt_nm_to_check="$lt_nm_to_check nm"
5422 fi
5423 for lt_tmp_nm in $lt_nm_to_check; do
5424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5426 IFS="$lt_save_ifs"
5427 test -z "$ac_dir" && ac_dir=.
5428 tmp_nm="$ac_dir/$lt_tmp_nm"
5429 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5430 # Check to see if the nm accepts a BSD-compat flag.
5431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5432 # nm: unknown option "B" ignored
5433 # Tru64's nm complains that /dev/null is an invalid object file
5434 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5435 */dev/null* | *'Invalid file or object type'*)
5436 lt_cv_path_NM="$tmp_nm -B"
5437 break
5438 ;;
5439 *)
5440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5441 */dev/null*)
5442 lt_cv_path_NM="$tmp_nm -p"
5443 break
5444 ;;
5445 *)
5446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447 continue # so that we can try to find one that supports BSD flags
5448 ;;
5449 esac
5450 ;;
5451 esac
5452 fi
5453 done
5454 IFS="$lt_save_ifs"
5455 done
5456 : ${lt_cv_path_NM=no}
5457 fi
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5460 $as_echo "$lt_cv_path_NM" >&6; }
5461 if test "$lt_cv_path_NM" != "no"; then
5462 NM="$lt_cv_path_NM"
5463 else
5464 # Didn't find any BSD compatible name lister, look for dumpbin.
5465 if test -n "$DUMPBIN"; then :
5466 # Let the user override the test.
5467 else
5468 if test -n "$ac_tool_prefix"; then
5469 for ac_prog in dumpbin "link -dump"
5470 do
5471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_DUMPBIN+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$DUMPBIN"; then
5479 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 DUMPBIN=$ac_cv_prog_DUMPBIN
5499 if test -n "$DUMPBIN"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5501 $as_echo "$DUMPBIN" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 test -n "$DUMPBIN" && break
5509 done
5510 fi
5511 if test -z "$DUMPBIN"; then
5512 ac_ct_DUMPBIN=$DUMPBIN
5513 for ac_prog in dumpbin "link -dump"
5514 do
5515 # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$ac_ct_DUMPBIN"; then
5523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536 done
5537 done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5543 if test -n "$ac_ct_DUMPBIN"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5545 $as_echo "$ac_ct_DUMPBIN" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 test -n "$ac_ct_DUMPBIN" && break
5553 done
5554
5555 if test "x$ac_ct_DUMPBIN" = x; then
5556 DUMPBIN=":"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 DUMPBIN=$ac_ct_DUMPBIN
5565 fi
5566 fi
5567
5568 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5569 *COFF*)
5570 DUMPBIN="$DUMPBIN -symbols"
5571 ;;
5572 *)
5573 DUMPBIN=:
5574 ;;
5575 esac
5576 fi
5577
5578 if test "$DUMPBIN" != ":"; then
5579 NM="$DUMPBIN"
5580 fi
5581 fi
5582 test -z "$NM" && NM=nm
5583
5584
5585
5586
5587
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5590 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5591 if ${lt_cv_nm_interface+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 lt_cv_nm_interface="BSD nm"
5595 echo "int some_variable = 0;" > conftest.$ac_ext
5596 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5597 (eval "$ac_compile" 2>conftest.err)
5598 cat conftest.err >&5
5599 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5600 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5601 cat conftest.err >&5
5602 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5603 cat conftest.out >&5
5604 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5605 lt_cv_nm_interface="MS dumpbin"
5606 fi
5607 rm -f conftest*
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5610 $as_echo "$lt_cv_nm_interface" >&6; }
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5613 $as_echo_n "checking whether ln -s works... " >&6; }
5614 LN_S=$as_ln_s
5615 if test "$LN_S" = "ln -s"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5620 $as_echo "no, using $LN_S" >&6; }
5621 fi
5622
5623 # find the maximum length of command line arguments
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5625 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5626 if ${lt_cv_sys_max_cmd_len+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 i=0
5630 teststring="ABCD"
5631
5632 case $build_os in
5633 msdosdjgpp*)
5634 # On DJGPP, this test can blow up pretty badly due to problems in libc
5635 # (any single argument exceeding 2000 bytes causes a buffer overrun
5636 # during glob expansion). Even if it were fixed, the result of this
5637 # check would be larger than it should be.
5638 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5639 ;;
5640
5641 gnu*)
5642 # Under GNU Hurd, this test is not required because there is
5643 # no limit to the length of command line arguments.
5644 # Libtool will interpret -1 as no limit whatsoever
5645 lt_cv_sys_max_cmd_len=-1;
5646 ;;
5647
5648 cygwin* | mingw* | cegcc*)
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len=8192;
5657 ;;
5658
5659 mint*)
5660 # On MiNT this can take a long time and run out of memory.
5661 lt_cv_sys_max_cmd_len=8192;
5662 ;;
5663
5664 amigaos*)
5665 # On AmigaOS with pdksh, this test takes hours, literally.
5666 # So we just punt and use a minimum line length of 8192.
5667 lt_cv_sys_max_cmd_len=8192;
5668 ;;
5669
5670 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5671 # This has been around since 386BSD, at least. Likely further.
5672 if test -x /sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5674 elif test -x /usr/sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5676 else
5677 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5678 fi
5679 # And add a safety zone
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 ;;
5683
5684 interix*)
5685 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5686 lt_cv_sys_max_cmd_len=196608
5687 ;;
5688
5689 osf*)
5690 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5691 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5692 # nice to cause kernel panics so lets avoid the loop below.
5693 # First set a reasonable default.
5694 lt_cv_sys_max_cmd_len=16384
5695 #
5696 if test -x /sbin/sysconfig; then
5697 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5698 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5699 esac
5700 fi
5701 ;;
5702 sco3.2v5*)
5703 lt_cv_sys_max_cmd_len=102400
5704 ;;
5705 sysv5* | sco5v6* | sysv4.2uw2*)
5706 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5707 if test -n "$kargmax"; then
5708 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5709 else
5710 lt_cv_sys_max_cmd_len=32768
5711 fi
5712 ;;
5713 *)
5714 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5715 if test -n "$lt_cv_sys_max_cmd_len"; then
5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5718 else
5719 # Make teststring a little bigger before we do anything with it.
5720 # a 1K string should be a reasonable start.
5721 for i in 1 2 3 4 5 6 7 8 ; do
5722 teststring=$teststring$teststring
5723 done
5724 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5725 # If test is not a shell built-in, we'll probably end up computing a
5726 # maximum length that is only half of the actual maximum length, but
5727 # we can't tell.
5728 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5729 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5730 test $i != 17 # 1/2 MB should be enough
5731 do
5732 i=`expr $i + 1`
5733 teststring=$teststring$teststring
5734 done
5735 # Only check the string length outside the loop.
5736 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5737 teststring=
5738 # Add a significant safety factor because C++ compilers can tack on
5739 # massive amounts of additional arguments before passing them to the
5740 # linker. It appears as though 1/2 is a usable value.
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 fi
5743 ;;
5744 esac
5745
5746 fi
5747
5748 if test -n $lt_cv_sys_max_cmd_len ; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5750 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5753 $as_echo "none" >&6; }
5754 fi
5755 max_cmd_len=$lt_cv_sys_max_cmd_len
5756
5757
5758
5759
5760
5761
5762 : ${CP="cp -f"}
5763 : ${MV="mv -f"}
5764 : ${RM="rm -f"}
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5767 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5768 # Try some XSI features
5769 xsi_shell=no
5770 ( _lt_dummy="a/b/c"
5771 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5772 = c,a/b,, \
5773 && eval 'test $(( 1 + 1 )) -eq 2 \
5774 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5775 && xsi_shell=yes
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5777 $as_echo "$xsi_shell" >&6; }
5778
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5781 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5782 lt_shell_append=no
5783 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5784 >/dev/null 2>&1 \
5785 && lt_shell_append=yes
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5787 $as_echo "$lt_shell_append" >&6; }
5788
5789
5790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5791 lt_unset=unset
5792 else
5793 lt_unset=false
5794 fi
5795
5796
5797
5798
5799
5800 # test EBCDIC or ASCII
5801 case `echo X|tr X '\101'` in
5802 A) # ASCII based system
5803 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5804 lt_SP2NL='tr \040 \012'
5805 lt_NL2SP='tr \015\012 \040\040'
5806 ;;
5807 *) # EBCDIC based system
5808 lt_SP2NL='tr \100 \n'
5809 lt_NL2SP='tr \r\n \100\100'
5810 ;;
5811 esac
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5822 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5823 if ${lt_cv_ld_reload_flag+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 lt_cv_ld_reload_flag='-r'
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5829 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5830 reload_flag=$lt_cv_ld_reload_flag
5831 case $reload_flag in
5832 "" | " "*) ;;
5833 *) reload_flag=" $reload_flag" ;;
5834 esac
5835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5836 case $host_os in
5837 darwin*)
5838 if test "$GCC" = yes; then
5839 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5840 else
5841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 fi
5843 ;;
5844 esac
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_OBJDUMP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$OBJDUMP"; then
5863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 OBJDUMP=$ac_cv_prog_OBJDUMP
5883 if test -n "$OBJDUMP"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5885 $as_echo "$OBJDUMP" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891
5892 fi
5893 if test -z "$ac_cv_prog_OBJDUMP"; then
5894 ac_ct_OBJDUMP=$OBJDUMP
5895 # Extract the first word of "objdump", so it can be a program name with args.
5896 set dummy objdump; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test -n "$ac_ct_OBJDUMP"; then
5903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5923 if test -n "$ac_ct_OBJDUMP"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5925 $as_echo "$ac_ct_OBJDUMP" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931 if test "x$ac_ct_OBJDUMP" = x; then
5932 OBJDUMP="false"
5933 else
5934 case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938 ac_tool_warned=yes ;;
5939 esac
5940 OBJDUMP=$ac_ct_OBJDUMP
5941 fi
5942 else
5943 OBJDUMP="$ac_cv_prog_OBJDUMP"
5944 fi
5945
5946 test -z "$OBJDUMP" && OBJDUMP=objdump
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5957 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5958 if ${lt_cv_deplibs_check_method+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 lt_cv_file_magic_cmd='$MAGIC_CMD'
5962 lt_cv_file_magic_test_file=
5963 lt_cv_deplibs_check_method='unknown'
5964 # Need to set the preceding variable on all platforms that support
5965 # interlibrary dependencies.
5966 # 'none' -- dependencies not supported.
5967 # `unknown' -- same as none, but documents that we really don't know.
5968 # 'pass_all' -- all dependencies passed with no checks.
5969 # 'test_compile' -- check by making test program.
5970 # 'file_magic [[regex]]' -- check by looking for files in library path
5971 # which responds to the $file_magic_cmd with a given extended regex.
5972 # If you have `file' or equivalent on your system and you're not sure
5973 # whether `pass_all' will *always* work, you probably want this one.
5974
5975 case $host_os in
5976 aix[4-9]*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 beos*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 bsdi[45]*)
5985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5986 lt_cv_file_magic_cmd='/usr/bin/file -L'
5987 lt_cv_file_magic_test_file=/shlib/libc.so
5988 ;;
5989
5990 cygwin*)
5991 # func_win32_libid is a shell function defined in ltmain.sh
5992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5993 lt_cv_file_magic_cmd='func_win32_libid'
5994 ;;
5995
5996 mingw* | pw32*)
5997 # Base MSYS/MinGW do not provide the 'file' command needed by
5998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5999 # unless we find 'file', for example because we are cross-compiling.
6000 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6001 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6003 lt_cv_file_magic_cmd='func_win32_libid'
6004 else
6005 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6006 lt_cv_file_magic_cmd='$OBJDUMP -f'
6007 fi
6008 ;;
6009
6010 cegcc*)
6011 # use the weaker test based on 'objdump'. See mingw*.
6012 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6013 lt_cv_file_magic_cmd='$OBJDUMP -f'
6014 ;;
6015
6016 darwin* | rhapsody*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 freebsd* | dragonfly*)
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 case $host_cpu in
6023 i*86 )
6024 # Not sure whether the presence of OpenBSD here was a mistake.
6025 # Let's accept both of them until this is cleared up.
6026 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6027 lt_cv_file_magic_cmd=/usr/bin/file
6028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6029 ;;
6030 esac
6031 else
6032 lt_cv_deplibs_check_method=pass_all
6033 fi
6034 ;;
6035
6036 gnu*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 haiku*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044 hpux10.20* | hpux11*)
6045 lt_cv_file_magic_cmd=/usr/bin/file
6046 case $host_cpu in
6047 ia64*)
6048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6050 ;;
6051 hppa*64*)
6052 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]'
6053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054 ;;
6055 *)
6056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6057 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6058 ;;
6059 esac
6060 ;;
6061
6062 interix[3-9]*)
6063 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065 ;;
6066
6067 irix5* | irix6* | nonstopux*)
6068 case $LD in
6069 *-32|*"-32 ") libmagic=32-bit;;
6070 *-n32|*"-n32 ") libmagic=N32;;
6071 *-64|*"-64 ") libmagic=64-bit;;
6072 *) libmagic=never-match;;
6073 esac
6074 lt_cv_deplibs_check_method=pass_all
6075 ;;
6076
6077 # This must be Linux ELF.
6078 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081
6082 netbsd*)
6083 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085 else
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6087 fi
6088 ;;
6089
6090 newos6*)
6091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6092 lt_cv_file_magic_cmd=/usr/bin/file
6093 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094 ;;
6095
6096 *nto* | *qnx*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100 openbsd*)
6101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6103 else
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 fi
6106 ;;
6107
6108 osf3* | osf4* | osf5*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
6112 rdos*)
6113 lt_cv_deplibs_check_method=pass_all
6114 ;;
6115
6116 solaris*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124 sysv4 | sysv4.3*)
6125 case $host_vendor in
6126 motorola)
6127 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]'
6128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6129 ;;
6130 ncr)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133 sequent)
6134 lt_cv_file_magic_cmd='/bin/file'
6135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6136 ;;
6137 sni)
6138 lt_cv_file_magic_cmd='/bin/file'
6139 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6140 lt_cv_file_magic_test_file=/lib/libc.so
6141 ;;
6142 siemens)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 pc)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148 esac
6149 ;;
6150
6151 tpf*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154 esac
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6158 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6159 file_magic_cmd=$lt_cv_file_magic_cmd
6160 deplibs_check_method=$lt_cv_deplibs_check_method
6161 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 plugin_option=
6175 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6176 for plugin in $plugin_names; do
6177 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6178 if test x$plugin_so = x$plugin; then
6179 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6180 fi
6181 if test x$plugin_so != x$plugin; then
6182 plugin_option="--plugin $plugin_so"
6183 break
6184 fi
6185 done
6186
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}ar; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_AR+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$AR"; then
6196 ac_cv_prog_AR="$AR" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_AR="${ac_tool_prefix}ar"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 AR=$ac_cv_prog_AR
6216 if test -n "$AR"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6218 $as_echo "$AR" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_AR"; then
6227 ac_ct_AR=$AR
6228 # Extract the first word of "ar", so it can be a program name with args.
6229 set dummy ar; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$ac_ct_AR"; then
6236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_AR="ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6256 if test -n "$ac_ct_AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6258 $as_echo "$ac_ct_AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264 if test "x$ac_ct_AR" = x; then
6265 AR="false"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271 ac_tool_warned=yes ;;
6272 esac
6273 AR=$ac_ct_AR
6274 fi
6275 else
6276 AR="$ac_cv_prog_AR"
6277 fi
6278
6279 test -z "$AR" && AR=ar
6280 if test -n "$plugin_option"; then
6281 if $AR --help 2>&1 | grep -q "\--plugin"; then
6282 touch conftest.c
6283 $AR $plugin_option rc conftest.a conftest.c
6284 if test "$?" != 0; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6286 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6287 else
6288 AR="$AR $plugin_option"
6289 fi
6290 rm -f conftest.*
6291 fi
6292 fi
6293 test -z "$AR_FLAGS" && AR_FLAGS=cru
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_STRIP+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6336 $as_echo "$STRIP" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_STRIP"; then
6345 ac_ct_STRIP=$STRIP
6346 # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_ac_ct_STRIP="strip"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6376 $as_echo "$ac_ct_STRIP" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382 if test "x$ac_ct_STRIP" = x; then
6383 STRIP=":"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 STRIP=$ac_ct_STRIP
6392 fi
6393 else
6394 STRIP="$ac_cv_prog_STRIP"
6395 fi
6396
6397 test -z "$STRIP" && STRIP=:
6398
6399
6400
6401
6402
6403
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_RANLIB+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$RANLIB"; then
6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 RANLIB=$ac_cv_prog_RANLIB
6433 if test -n "$RANLIB"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6435 $as_echo "$RANLIB" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_RANLIB"; then
6444 ac_ct_RANLIB=$RANLIB
6445 # Extract the first word of "ranlib", so it can be a program name with args.
6446 set dummy ranlib; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_RANLIB"; then
6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_ac_ct_RANLIB="ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473 if test -n "$ac_ct_RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6475 $as_echo "$ac_ct_RANLIB" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481 if test "x$ac_ct_RANLIB" = x; then
6482 RANLIB=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 RANLIB=$ac_ct_RANLIB
6491 fi
6492 else
6493 RANLIB="$ac_cv_prog_RANLIB"
6494 fi
6495
6496 test -z "$RANLIB" && RANLIB=:
6497 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6498 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6499 RANLIB="$RANLIB $plugin_option"
6500 fi
6501 fi
6502
6503
6504
6505
6506
6507
6508 # Determine commands to create old-style static archives.
6509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6510 old_postinstall_cmds='chmod 644 $oldlib'
6511 old_postuninstall_cmds=
6512
6513 if test -n "$RANLIB"; then
6514 case $host_os in
6515 openbsd*)
6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 ;;
6518 *)
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6520 ;;
6521 esac
6522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523 fi
6524
6525 case $host_os in
6526 darwin*)
6527 lock_old_archive_extraction=yes ;;
6528 *)
6529 lock_old_archive_extraction=no ;;
6530 esac
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 for ac_prog in gawk mawk nawk awk
6553 do
6554 # Extract the first word of "$ac_prog", so it can be a program name with args.
6555 set dummy $ac_prog; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_AWK+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$AWK"; then
6562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_AWK="$ac_prog"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 AWK=$ac_cv_prog_AWK
6582 if test -n "$AWK"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6584 $as_echo "$AWK" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590
6591 test -n "$AWK" && break
6592 done
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 # If no C compiler was specified, use CC.
6613 LTCC=${LTCC-"$CC"}
6614
6615 # If no C compiler flags were specified, use CFLAGS.
6616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6617
6618 # Allow CC to be a program name with arguments.
6619 compiler=$CC
6620
6621
6622 # Check for command to grab the raw symbol name followed by C symbol from nm.
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6625 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628
6629 # These are sane defaults that work on at least a few old systems.
6630 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6631
6632 # Character class describing NM global symbol codes.
6633 symcode='[BCDEGRST]'
6634
6635 # Regexp to match symbols that can be accessed directly from C.
6636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6637
6638 # Define system-specific variables.
6639 case $host_os in
6640 aix*)
6641 symcode='[BCDT]'
6642 ;;
6643 cygwin* | mingw* | pw32* | cegcc*)
6644 symcode='[ABCDGISTW]'
6645 ;;
6646 hpux*)
6647 if test "$host_cpu" = ia64; then
6648 symcode='[ABCDEGRST]'
6649 fi
6650 ;;
6651 irix* | nonstopux*)
6652 symcode='[BCDEGRST]'
6653 ;;
6654 osf*)
6655 symcode='[BCDEGQRST]'
6656 ;;
6657 solaris*)
6658 symcode='[BDRT]'
6659 ;;
6660 sco3.2v5*)
6661 symcode='[DT]'
6662 ;;
6663 sysv4.2uw2*)
6664 symcode='[DT]'
6665 ;;
6666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6667 symcode='[ABDT]'
6668 ;;
6669 sysv4)
6670 symcode='[DFNSTU]'
6671 ;;
6672 esac
6673
6674 # If we're using GNU nm, then use its standard symbol codes.
6675 case `$NM -V 2>&1` in
6676 *GNU* | *'with BFD'*)
6677 symcode='[ABCDGIRSTW]' ;;
6678 esac
6679
6680 # Transform an extracted symbol line into a proper C declaration.
6681 # Some systems (esp. on ia64) link data and code symbols differently,
6682 # so use this general approach.
6683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6684
6685 # Transform an extracted symbol line into symbol name and symbol address
6686 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6687 lt_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'"
6688
6689 # Handle CRLF in mingw tool chain
6690 opt_cr=
6691 case $build_os in
6692 mingw*)
6693 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6694 ;;
6695 esac
6696
6697 # Try without a prefix underscore, then with it.
6698 for ac_symprfx in "" "_"; do
6699
6700 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6701 symxfrm="\\1 $ac_symprfx\\2 \\2"
6702
6703 # Write the raw and C identifiers.
6704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6705 # Fake it for dumpbin and say T for any non-static function
6706 # and D for any global variable.
6707 # Also find C++ and __fastcall symbols from MSVC++,
6708 # which start with @ or ?.
6709 lt_cv_sys_global_symbol_pipe="$AWK '"\
6710 " {last_section=section; section=\$ 3};"\
6711 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6712 " \$ 0!~/External *\|/{next};"\
6713 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6714 " {if(hide[section]) next};"\
6715 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6716 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6717 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6718 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6719 " ' prfx=^$ac_symprfx"
6720 else
6721 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6722 fi
6723
6724 # Check to see that the pipe works correctly.
6725 pipe_works=no
6726
6727 rm -f conftest*
6728 cat > conftest.$ac_ext <<_LT_EOF
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732 char nm_test_var;
6733 void nm_test_func(void);
6734 void nm_test_func(void){}
6735 #ifdef __cplusplus
6736 }
6737 #endif
6738 int main(){nm_test_var='a';nm_test_func();return(0);}
6739 _LT_EOF
6740
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; }; then
6746 # Now try to grab the symbols.
6747 nlist=conftest.nm
6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6750 ac_status=$?
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752 test $ac_status = 0; } && test -s "$nlist"; then
6753 # Try sorting and uniquifying the output.
6754 if sort "$nlist" | uniq > "$nlist"T; then
6755 mv -f "$nlist"T "$nlist"
6756 else
6757 rm -f "$nlist"T
6758 fi
6759
6760 # Make sure that we snagged all the symbols we need.
6761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6763 cat <<_LT_EOF > conftest.$ac_ext
6764 #ifdef __cplusplus
6765 extern "C" {
6766 #endif
6767
6768 _LT_EOF
6769 # Now generate the symbol file.
6770 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6771
6772 cat <<_LT_EOF >> conftest.$ac_ext
6773
6774 /* The mapping between symbol names and symbols. */
6775 const struct {
6776 const char *name;
6777 void *address;
6778 }
6779 lt__PROGRAM__LTX_preloaded_symbols[] =
6780 {
6781 { "@PROGRAM@", (void *) 0 },
6782 _LT_EOF
6783 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6784 cat <<\_LT_EOF >> conftest.$ac_ext
6785 {0, (void *) 0}
6786 };
6787
6788 /* This works around a problem in FreeBSD linker */
6789 #ifdef FREEBSD_WORKAROUND
6790 static const void *lt_preloaded_setup() {
6791 return lt__PROGRAM__LTX_preloaded_symbols;
6792 }
6793 #endif
6794
6795 #ifdef __cplusplus
6796 }
6797 #endif
6798 _LT_EOF
6799 # Now try linking the two files.
6800 mv conftest.$ac_objext conftstm.$ac_objext
6801 lt_save_LIBS="$LIBS"
6802 lt_save_CFLAGS="$CFLAGS"
6803 LIBS="conftstm.$ac_objext"
6804 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6806 (eval $ac_link) 2>&5
6807 ac_status=$?
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6810 pipe_works=yes
6811 fi
6812 LIBS="$lt_save_LIBS"
6813 CFLAGS="$lt_save_CFLAGS"
6814 else
6815 echo "cannot find nm_test_func in $nlist" >&5
6816 fi
6817 else
6818 echo "cannot find nm_test_var in $nlist" >&5
6819 fi
6820 else
6821 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6822 fi
6823 else
6824 echo "$progname: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 fi
6827 rm -rf conftest* conftst*
6828
6829 # Do not use the global_symbol_pipe unless it works.
6830 if test "$pipe_works" = yes; then
6831 break
6832 else
6833 lt_cv_sys_global_symbol_pipe=
6834 fi
6835 done
6836
6837 fi
6838
6839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6840 lt_cv_sys_global_symbol_to_cdecl=
6841 fi
6842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6844 $as_echo "failed" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6847 $as_echo "ok" >&6; }
6848 fi
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # Check whether --enable-libtool-lock was given.
6872 if test "${enable_libtool_lock+set}" = set; then :
6873 enableval=$enable_libtool_lock;
6874 fi
6875
6876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6877
6878 # Some flags need to be propagated to the compiler or linker for good
6879 # libtool support.
6880 case $host in
6881 ia64-*-hpux*)
6882 # Find out which ABI we are using.
6883 echo 'int i;' > conftest.$ac_ext
6884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6885 (eval $ac_compile) 2>&5
6886 ac_status=$?
6887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888 test $ac_status = 0; }; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6890 *ELF-32*)
6891 HPUX_IA64_MODE="32"
6892 ;;
6893 *ELF-64*)
6894 HPUX_IA64_MODE="64"
6895 ;;
6896 esac
6897 fi
6898 rm -rf conftest*
6899 ;;
6900 *-*-irix6*)
6901 # Find out which ABI we are using.
6902 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904 (eval $ac_compile) 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }; then
6908 if test "$lt_cv_prog_gnu_ld" = yes; then
6909 case `/usr/bin/file conftest.$ac_objext` in
6910 *32-bit*)
6911 LD="${LD-ld} -melf32bsmip"
6912 ;;
6913 *N32*)
6914 LD="${LD-ld} -melf32bmipn32"
6915 ;;
6916 *64-bit*)
6917 LD="${LD-ld} -melf64bmip"
6918 ;;
6919 esac
6920 else
6921 case `/usr/bin/file conftest.$ac_objext` in
6922 *32-bit*)
6923 LD="${LD-ld} -32"
6924 ;;
6925 *N32*)
6926 LD="${LD-ld} -n32"
6927 ;;
6928 *64-bit*)
6929 LD="${LD-ld} -64"
6930 ;;
6931 esac
6932 fi
6933 fi
6934 rm -rf conftest*
6935 ;;
6936
6937 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6938 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6939 # Find out which ABI we are using.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.o` in
6947 *32-bit*)
6948 case $host in
6949 x86_64-*kfreebsd*-gnu)
6950 LD="${LD-ld} -m elf_i386_fbsd"
6951 ;;
6952 x86_64-*linux*)
6953 case `/usr/bin/file conftest.o` in
6954 *x86-64*)
6955 LD="${LD-ld} -m elf32_x86_64"
6956 ;;
6957 *)
6958 LD="${LD-ld} -m elf_i386"
6959 ;;
6960 esac
6961 ;;
6962 powerpc64le-*linux*)
6963 LD="${LD-ld} -m elf32lppclinux"
6964 ;;
6965 powerpc64-*linux*)
6966 LD="${LD-ld} -m elf32ppclinux"
6967 ;;
6968 s390x-*linux*)
6969 LD="${LD-ld} -m elf_s390"
6970 ;;
6971 sparc64-*linux*)
6972 LD="${LD-ld} -m elf32_sparc"
6973 ;;
6974 esac
6975 ;;
6976 *64-bit*)
6977 case $host in
6978 x86_64-*kfreebsd*-gnu)
6979 LD="${LD-ld} -m elf_x86_64_fbsd"
6980 ;;
6981 x86_64-*linux*)
6982 LD="${LD-ld} -m elf_x86_64"
6983 ;;
6984 powerpcle-*linux*)
6985 LD="${LD-ld} -m elf64lppc"
6986 ;;
6987 powerpc-*linux*)
6988 LD="${LD-ld} -m elf64ppc"
6989 ;;
6990 s390*-*linux*|s390*-*tpf*)
6991 LD="${LD-ld} -m elf64_s390"
6992 ;;
6993 sparc*-*linux*)
6994 LD="${LD-ld} -m elf64_sparc"
6995 ;;
6996 esac
6997 ;;
6998 esac
6999 fi
7000 rm -rf conftest*
7001 ;;
7002
7003 *-*-sco3.2v5*)
7004 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7005 SAVE_CFLAGS="$CFLAGS"
7006 CFLAGS="$CFLAGS -belf"
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7008 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7009 if ${lt_cv_cc_needs_belf+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020
7021 int
7022 main ()
7023 {
7024
7025 ;
7026 return 0;
7027 }
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 lt_cv_cc_needs_belf=yes
7031 else
7032 lt_cv_cc_needs_belf=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7044 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7047 CFLAGS="$SAVE_CFLAGS"
7048 fi
7049 ;;
7050 sparc*-*solaris*)
7051 # Find out which ABI we are using.
7052 echo 'int i;' > conftest.$ac_ext
7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7058 case `/usr/bin/file conftest.o` in
7059 *64-bit*)
7060 case $lt_cv_prog_gnu_ld in
7061 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7062 *)
7063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064 LD="${LD-ld} -64"
7065 fi
7066 ;;
7067 esac
7068 ;;
7069 esac
7070 fi
7071 rm -rf conftest*
7072 ;;
7073 esac
7074
7075 need_locks="$enable_libtool_lock"
7076
7077
7078 case $host_os in
7079 rhapsody* | darwin*)
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$DSYMUTIL"; then
7089 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7109 if test -n "$DSYMUTIL"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7111 $as_echo "$DSYMUTIL" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117
7118 fi
7119 if test -z "$ac_cv_prog_DSYMUTIL"; then
7120 ac_ct_DSYMUTIL=$DSYMUTIL
7121 # Extract the first word of "dsymutil", so it can be a program name with args.
7122 set dummy dsymutil; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$ac_ct_DSYMUTIL"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7151 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157 if test "x$ac_ct_DSYMUTIL" = x; then
7158 DSYMUTIL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7167 fi
7168 else
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7170 fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_NMEDIT+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 NMEDIT=$ac_cv_prog_NMEDIT
7201 if test -n "$NMEDIT"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7203 $as_echo "$NMEDIT" >&6; }
7204 else
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214 set dummy nmedit; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241 if test -n "$ac_ct_NMEDIT"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7243 $as_echo "$ac_ct_NMEDIT" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249 if test "x$ac_ct_NMEDIT" = x; then
7250 NMEDIT=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 NMEDIT=$ac_ct_NMEDIT
7259 fi
7260 else
7261 NMEDIT="$ac_cv_prog_NMEDIT"
7262 fi
7263
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_LIPO+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$LIPO"; then
7273 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 LIPO=$ac_cv_prog_LIPO
7293 if test -n "$LIPO"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7295 $as_echo "$LIPO" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301
7302 fi
7303 if test -z "$ac_cv_prog_LIPO"; then
7304 ac_ct_LIPO=$LIPO
7305 # Extract the first word of "lipo", so it can be a program name with args.
7306 set dummy lipo; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$ac_ct_LIPO"; then
7313 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_ac_ct_LIPO="lipo"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333 if test -n "$ac_ct_LIPO"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7335 $as_echo "$ac_ct_LIPO" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341 if test "x$ac_ct_LIPO" = x; then
7342 LIPO=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350 LIPO=$ac_ct_LIPO
7351 fi
7352 else
7353 LIPO="$ac_cv_prog_LIPO"
7354 fi
7355
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}otool; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_OTOOL+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 if test -n "$OTOOL"; then
7365 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 OTOOL=$ac_cv_prog_OTOOL
7385 if test -n "$OTOOL"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7387 $as_echo "$OTOOL" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393
7394 fi
7395 if test -z "$ac_cv_prog_OTOOL"; then
7396 ac_ct_OTOOL=$OTOOL
7397 # Extract the first word of "otool", so it can be a program name with args.
7398 set dummy otool; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$ac_ct_OTOOL"; then
7405 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_ac_ct_OTOOL="otool"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7425 if test -n "$ac_ct_OTOOL"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7427 $as_echo "$ac_ct_OTOOL" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433 if test "x$ac_ct_OTOOL" = x; then
7434 OTOOL=":"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442 OTOOL=$ac_ct_OTOOL
7443 fi
7444 else
7445 OTOOL="$ac_cv_prog_OTOOL"
7446 fi
7447
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7450 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_OTOOL64+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 if test -n "$OTOOL64"; then
7457 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 OTOOL64=$ac_cv_prog_OTOOL64
7477 if test -n "$OTOOL64"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7479 $as_echo "$OTOOL64" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486 fi
7487 if test -z "$ac_cv_prog_OTOOL64"; then
7488 ac_ct_OTOOL64=$OTOOL64
7489 # Extract the first word of "otool64", so it can be a program name with args.
7490 set dummy otool64; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 if test -n "$ac_ct_OTOOL64"; then
7497 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_ac_ct_OTOOL64="otool64"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510 done
7511 done
7512 IFS=$as_save_IFS
7513
7514 fi
7515 fi
7516 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7517 if test -n "$ac_ct_OTOOL64"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7519 $as_echo "$ac_ct_OTOOL64" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525 if test "x$ac_ct_OTOOL64" = x; then
7526 OTOOL64=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534 OTOOL64=$ac_ct_OTOOL64
7535 fi
7536 else
7537 OTOOL64="$ac_cv_prog_OTOOL64"
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7567 $as_echo_n "checking for -single_module linker flag... " >&6; }
7568 if ${lt_cv_apple_cc_single_mod+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 lt_cv_apple_cc_single_mod=no
7572 if test -z "${LT_MULTI_MODULE}"; then
7573 # By default we will add the -single_module flag. You can override
7574 # by either setting the environment variable LT_MULTI_MODULE
7575 # non-empty at configure time, or by adding -multi_module to the
7576 # link flags.
7577 rm -rf libconftest.dylib*
7578 echo "int foo(void){return 1;}" > conftest.c
7579 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580 -dynamiclib -Wl,-single_module conftest.c" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7582 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7583 _lt_result=$?
7584 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7585 lt_cv_apple_cc_single_mod=yes
7586 else
7587 cat conftest.err >&5
7588 fi
7589 rm -rf libconftest.dylib*
7590 rm -f conftest.*
7591 fi
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7594 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7596 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7597 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 lt_cv_ld_exported_symbols_list=no
7601 save_LDFLAGS=$LDFLAGS
7602 echo "_main" > conftest.sym
7603 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606
7607 int
7608 main ()
7609 {
7610
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_ld_exported_symbols_list=yes
7617 else
7618 lt_cv_ld_exported_symbols_list=no
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LDFLAGS="$save_LDFLAGS"
7623
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7626 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7628 $as_echo_n "checking for -force_load linker flag... " >&6; }
7629 if ${lt_cv_ld_force_load+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 lt_cv_ld_force_load=no
7633 cat > conftest.c << _LT_EOF
7634 int forced_loaded() { return 2;}
7635 _LT_EOF
7636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7638 echo "$AR cru libconftest.a conftest.o" >&5
7639 $AR cru libconftest.a conftest.o 2>&5
7640 cat > conftest.c << _LT_EOF
7641 int main() { return 0;}
7642 _LT_EOF
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7645 _lt_result=$?
7646 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7647 lt_cv_ld_force_load=yes
7648 else
7649 cat conftest.err >&5
7650 fi
7651 rm -f conftest.err libconftest.a conftest conftest.c
7652 rm -rf conftest.dSYM
7653
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656 $as_echo "$lt_cv_ld_force_load" >&6; }
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7660 darwin1.*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 darwin*) # darwin 5.x on
7663 # if running on 10.5 or later, the deployment target defaults
7664 # to the OS version, if on x86, and 10.4, the deployment
7665 # target defaults to 10.4. Don't you love it?
7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669 10.[012][,.]*)
7670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671 10.*)
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 esac
7674 ;;
7675 esac
7676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7677 _lt_dar_single_mod='$single_module'
7678 fi
7679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7681 else
7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7683 fi
7684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7685 _lt_dsymutil='~$DSYMUTIL $lib || :'
7686 else
7687 _lt_dsymutil=
7688 fi
7689 ;;
7690 esac
7691
7692 for ac_header in dlfcn.h
7693 do :
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7695 "
7696 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7697 cat >>confdefs.h <<_ACEOF
7698 #define HAVE_DLFCN_H 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706 ac_header_dirent=no
7707 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7708 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7710 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7711 if eval \${$as_ac_Header+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <sys/types.h>
7717 #include <$ac_hdr>
7718
7719 int
7720 main ()
7721 {
7722 if ((DIR *) 0)
7723 return 0;
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"; then :
7729 eval "$as_ac_Header=yes"
7730 else
7731 eval "$as_ac_Header=no"
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 fi
7735 eval ac_res=\$$as_ac_Header
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7737 $as_echo "$ac_res" >&6; }
7738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7739 cat >>confdefs.h <<_ACEOF
7740 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7741 _ACEOF
7742
7743 ac_header_dirent=$ac_hdr; break
7744 fi
7745
7746 done
7747 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7748 if test $ac_header_dirent = dirent.h; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7750 $as_echo_n "checking for library containing opendir... " >&6; }
7751 if ${ac_cv_search_opendir+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_func_search_save_LIBS=$LIBS
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757
7758 /* Override any GCC internal prototype to avoid an error.
7759 Use char because int might match the return type of a GCC
7760 builtin and then its argument prototype would still apply. */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 char opendir ();
7765 int
7766 main ()
7767 {
7768 return opendir ();
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 for ac_lib in '' dir; do
7774 if test -z "$ac_lib"; then
7775 ac_res="none required"
7776 else
7777 ac_res=-l$ac_lib
7778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7779 fi
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 ac_cv_search_opendir=$ac_res
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext
7785 if ${ac_cv_search_opendir+:} false; then :
7786 break
7787 fi
7788 done
7789 if ${ac_cv_search_opendir+:} false; then :
7790
7791 else
7792 ac_cv_search_opendir=no
7793 fi
7794 rm conftest.$ac_ext
7795 LIBS=$ac_func_search_save_LIBS
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7798 $as_echo "$ac_cv_search_opendir" >&6; }
7799 ac_res=$ac_cv_search_opendir
7800 if test "$ac_res" != no; then :
7801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7802
7803 fi
7804
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7807 $as_echo_n "checking for library containing opendir... " >&6; }
7808 if ${ac_cv_search_opendir+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_func_search_save_LIBS=$LIBS
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814
7815 /* Override any GCC internal prototype to avoid an error.
7816 Use char because int might match the return type of a GCC
7817 builtin and then its argument prototype would still apply. */
7818 #ifdef __cplusplus
7819 extern "C"
7820 #endif
7821 char opendir ();
7822 int
7823 main ()
7824 {
7825 return opendir ();
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 for ac_lib in '' x; do
7831 if test -z "$ac_lib"; then
7832 ac_res="none required"
7833 else
7834 ac_res=-l$ac_lib
7835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7836 fi
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 ac_cv_search_opendir=$ac_res
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext
7842 if ${ac_cv_search_opendir+:} false; then :
7843 break
7844 fi
7845 done
7846 if ${ac_cv_search_opendir+:} false; then :
7847
7848 else
7849 ac_cv_search_opendir=no
7850 fi
7851 rm conftest.$ac_ext
7852 LIBS=$ac_func_search_save_LIBS
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7855 $as_echo "$ac_cv_search_opendir" >&6; }
7856 ac_res=$ac_cv_search_opendir
7857 if test "$ac_res" != no; then :
7858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7859
7860 fi
7861
7862 fi
7863
7864
7865
7866
7867 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7868 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7869
7870 cat >>confdefs.h <<_ACEOF
7871 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7872 _ACEOF
7873
7874
7875 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
7876
7877 fi
7878
7879
7880 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7881 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7882
7883 cat >>confdefs.h <<_ACEOF
7884 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7885 _ACEOF
7886
7887
7888 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
7889
7890 else
7891 case " $LIBOBJS " in
7892 *" fileblocks.$ac_objext "* ) ;;
7893 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7894 ;;
7895 esac
7896
7897 fi
7898
7899
7900 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
7901 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7902
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_STRUCT_STAT_ST_RDEV 1
7905 _ACEOF
7906
7907
7908 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
7909
7910 fi
7911
7912
7913 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7914 #include <$ac_cv_struct_tm>
7915
7916 "
7917 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7918
7919 cat >>confdefs.h <<_ACEOF
7920 #define HAVE_STRUCT_TM_TM_ZONE 1
7921 _ACEOF
7922
7923
7924 fi
7925
7926 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7927
7928 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7929
7930 else
7931 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7932 "
7933 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7934 ac_have_decl=1
7935 else
7936 ac_have_decl=0
7937 fi
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DECL_TZNAME $ac_have_decl
7941 _ACEOF
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7944 $as_echo_n "checking for tzname... " >&6; }
7945 if ${ac_cv_var_tzname+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #include <time.h>
7951 #if !HAVE_DECL_TZNAME
7952 extern char *tzname[];
7953 #endif
7954
7955 int
7956 main ()
7957 {
7958 return tzname[0][0];
7959 ;
7960 return 0;
7961 }
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_var_tzname=yes
7965 else
7966 ac_cv_var_tzname=no
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7972 $as_echo "$ac_cv_var_tzname" >&6; }
7973 if test $ac_cv_var_tzname = yes; then
7974
7975 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7976
7977 fi
7978 fi
7979
7980
7981 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
7982 #include <sys/types.h>
7983 #endif
7984 #ifdef HAVE_SYS_STAT_H
7985 #include <sys/stat.h>
7986 #endif
7987 "
7988 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
7989
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_STRUCT_STAT_ST_DEV 1
7992 _ACEOF
7993
7994
7995 fi
7996 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
7997 #include <sys/types.h>
7998 #endif
7999 #ifdef HAVE_SYS_STAT_H
8000 #include <sys/stat.h>
8001 #endif
8002 "
8003 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8004
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_STRUCT_STAT_ST_INO 1
8007 _ACEOF
8008
8009
8010 fi
8011 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8012 #include <sys/types.h>
8013 #endif
8014 #ifdef HAVE_SYS_STAT_H
8015 #include <sys/stat.h>
8016 #endif
8017 "
8018 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8019
8020 cat >>confdefs.h <<_ACEOF
8021 #define HAVE_STRUCT_STAT_ST_MODE 1
8022 _ACEOF
8023
8024
8025 fi
8026 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8027 #include <sys/types.h>
8028 #endif
8029 #ifdef HAVE_SYS_STAT_H
8030 #include <sys/stat.h>
8031 #endif
8032 "
8033 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8034
8035 cat >>confdefs.h <<_ACEOF
8036 #define HAVE_STRUCT_STAT_ST_NLINK 1
8037 _ACEOF
8038
8039
8040 fi
8041 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8042 #include <sys/types.h>
8043 #endif
8044 #ifdef HAVE_SYS_STAT_H
8045 #include <sys/stat.h>
8046 #endif
8047 "
8048 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8049
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_STRUCT_STAT_ST_UID 1
8052 _ACEOF
8053
8054
8055 fi
8056 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8057 #include <sys/types.h>
8058 #endif
8059 #ifdef HAVE_SYS_STAT_H
8060 #include <sys/stat.h>
8061 #endif
8062 "
8063 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8064
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_STRUCT_STAT_ST_GID 1
8067 _ACEOF
8068
8069
8070 fi
8071 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8072 #include <sys/types.h>
8073 #endif
8074 #ifdef HAVE_SYS_STAT_H
8075 #include <sys/stat.h>
8076 #endif
8077 "
8078 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8079
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_STRUCT_STAT_ST_RDEV 1
8082 _ACEOF
8083
8084
8085 fi
8086 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8087 #include <sys/types.h>
8088 #endif
8089 #ifdef HAVE_SYS_STAT_H
8090 #include <sys/stat.h>
8091 #endif
8092 "
8093 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8094
8095 cat >>confdefs.h <<_ACEOF
8096 #define HAVE_STRUCT_STAT_ST_SIZE 1
8097 _ACEOF
8098
8099
8100 fi
8101 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8102 #include <sys/types.h>
8103 #endif
8104 #ifdef HAVE_SYS_STAT_H
8105 #include <sys/stat.h>
8106 #endif
8107 "
8108 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8112 _ACEOF
8113
8114
8115 fi
8116 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8117 #include <sys/types.h>
8118 #endif
8119 #ifdef HAVE_SYS_STAT_H
8120 #include <sys/stat.h>
8121 #endif
8122 "
8123 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8124
8125 cat >>confdefs.h <<_ACEOF
8126 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8127 _ACEOF
8128
8129
8130 fi
8131 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8132 #include <sys/types.h>
8133 #endif
8134 #ifdef HAVE_SYS_STAT_H
8135 #include <sys/stat.h>
8136 #endif
8137 "
8138 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8139
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_STRUCT_STAT_ST_ATIME 1
8142 _ACEOF
8143
8144
8145 fi
8146 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8147 #include <sys/types.h>
8148 #endif
8149 #ifdef HAVE_SYS_STAT_H
8150 #include <sys/stat.h>
8151 #endif
8152 "
8153 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8154
8155 cat >>confdefs.h <<_ACEOF
8156 #define HAVE_STRUCT_STAT_ST_MTIME 1
8157 _ACEOF
8158
8159
8160 fi
8161 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8162 #include <sys/types.h>
8163 #endif
8164 #ifdef HAVE_SYS_STAT_H
8165 #include <sys/stat.h>
8166 #endif
8167 "
8168 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8169
8170 cat >>confdefs.h <<_ACEOF
8171 #define HAVE_STRUCT_STAT_ST_CTIME 1
8172 _ACEOF
8173
8174
8175 fi
8176
8177
8178 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8179 if test "x$ac_cv_type___int128" = xyes; then :
8180
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE___INT128 1
8183 _ACEOF
8184
8185
8186 fi
8187
8188 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8189 #include <sys/socket.h>
8190
8191 "
8192 if test "x$ac_cv_type_socklen_t" = xyes; then :
8193
8194 cat >>confdefs.h <<_ACEOF
8195 #define HAVE_SOCKLEN_T 1
8196 _ACEOF
8197
8198
8199 fi
8200
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8203 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8204 if ${ac_cv_type_getgroups+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 if test "$cross_compiling" = yes; then :
8208 ac_cv_type_getgroups=cross
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 /* Thanks to Mike Rendell for this test. */
8213 $ac_includes_default
8214 #define NGID 256
8215 #undef MAX
8216 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8217
8218 int
8219 main ()
8220 {
8221 gid_t gidset[NGID];
8222 int i, n;
8223 union { gid_t gval; long int lval; } val;
8224
8225 val.lval = -1;
8226 for (i = 0; i < NGID; i++)
8227 gidset[i] = val.gval;
8228 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8229 gidset);
8230 /* Exit non-zero if getgroups seems to require an array of ints. This
8231 happens when gid_t is short int but getgroups modifies an array
8232 of ints. */
8233 return n > 0 && gidset[n] != val.gval;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_run "$LINENO"; then :
8237 ac_cv_type_getgroups=gid_t
8238 else
8239 ac_cv_type_getgroups=int
8240 fi
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242 conftest.$ac_objext conftest.beam conftest.$ac_ext
8243 fi
8244
8245 if test $ac_cv_type_getgroups = cross; then
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 #include <unistd.h>
8249
8250 _ACEOF
8251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8253 ac_cv_type_getgroups=gid_t
8254 else
8255 ac_cv_type_getgroups=int
8256 fi
8257 rm -f conftest*
8258
8259 fi
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8262 $as_echo "$ac_cv_type_getgroups" >&6; }
8263
8264 cat >>confdefs.h <<_ACEOF
8265 #define GETGROUPS_T $ac_cv_type_getgroups
8266 _ACEOF
8267
8268
8269 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8270 if test "x$ac_cv_type_mode_t" = xyes; then :
8271
8272 else
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define mode_t int
8276 _ACEOF
8277
8278 fi
8279
8280 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8281 if test "x$ac_cv_type_off_t" = xyes; then :
8282
8283 else
8284
8285 cat >>confdefs.h <<_ACEOF
8286 #define off_t long int
8287 _ACEOF
8288
8289 fi
8290
8291 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8292 if test "x$ac_cv_type_pid_t" = xyes; then :
8293
8294 else
8295
8296 cat >>confdefs.h <<_ACEOF
8297 #define pid_t int
8298 _ACEOF
8299
8300 fi
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8303 $as_echo_n "checking return type of signal handlers... " >&6; }
8304 if ${ac_cv_type_signal+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <sys/types.h>
8310 #include <signal.h>
8311
8312 int
8313 main ()
8314 {
8315 return *(signal (0, 0)) (0) == 1;
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 ac_cv_type_signal=int
8322 else
8323 ac_cv_type_signal=void
8324 fi
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8328 $as_echo "$ac_cv_type_signal" >&6; }
8329
8330 cat >>confdefs.h <<_ACEOF
8331 #define RETSIGTYPE $ac_cv_type_signal
8332 _ACEOF
8333
8334
8335 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8336 if test "x$ac_cv_type_size_t" = xyes; then :
8337
8338 else
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define size_t unsigned int
8342 _ACEOF
8343
8344 fi
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8347 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8348 if ${ac_cv_type_uid_t+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #include <sys/types.h>
8354
8355 _ACEOF
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "uid_t" >/dev/null 2>&1; then :
8358 ac_cv_type_uid_t=yes
8359 else
8360 ac_cv_type_uid_t=no
8361 fi
8362 rm -f conftest*
8363
8364 fi
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8366 $as_echo "$ac_cv_type_uid_t" >&6; }
8367 if test $ac_cv_type_uid_t = no; then
8368
8369 $as_echo "#define uid_t int" >>confdefs.h
8370
8371
8372 $as_echo "#define gid_t int" >>confdefs.h
8373
8374 fi
8375
8376
8377 ALL_LINGUAS=
8378 # If we haven't got the data from the intl directory,
8379 # assume NLS is disabled.
8380 USE_NLS=no
8381 LIBINTL=
8382 LIBINTL_DEP=
8383 INCINTL=
8384 XGETTEXT=
8385 GMSGFMT=
8386 POSUB=
8387
8388 if test -f ../intl/config.intl; then
8389 . ../intl/config.intl
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8392 $as_echo_n "checking whether NLS is requested... " >&6; }
8393 if test x"$USE_NLS" != xyes; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8398 $as_echo "yes" >&6; }
8399
8400 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8401
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8404 $as_echo_n "checking for catalogs to be installed... " >&6; }
8405 # Look for .po and .gmo files in the source directory.
8406 CATALOGS=
8407 XLINGUAS=
8408 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8409 # If there aren't any .gmo files the shell will give us the
8410 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8411 # weeded out.
8412 case "$cat" in *\**)
8413 continue;;
8414 esac
8415 # The quadruple backslash is collapsed to a double backslash
8416 # by the backticks, then collapsed again by the double quotes,
8417 # leaving us with one backslash in the sed expression (right
8418 # before the dot that mustn't act as a wildcard).
8419 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8420 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8421 # The user is allowed to set LINGUAS to a list of languages to
8422 # install catalogs for. If it's empty that means "all of them."
8423 if test "x$LINGUAS" = x; then
8424 CATALOGS="$CATALOGS $cat"
8425 XLINGUAS="$XLINGUAS $lang"
8426 else
8427 case "$LINGUAS" in *$lang*)
8428 CATALOGS="$CATALOGS $cat"
8429 XLINGUAS="$XLINGUAS $lang"
8430 ;;
8431 esac
8432 fi
8433 done
8434 LINGUAS="$XLINGUAS"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8436 $as_echo "$LINGUAS" >&6; }
8437
8438
8439 DATADIRNAME=share
8440
8441 INSTOBJEXT=.mo
8442
8443 GENCAT=gencat
8444
8445 CATOBJEXT=.gmo
8446
8447 fi
8448
8449
8450 # Use the system's zlib library.
8451 zlibdir="-L\$(top_builddir)/../zlib"
8452 zlibinc="-I\$(top_srcdir)/../zlib"
8453
8454 # Check whether --with-system-zlib was given.
8455 if test "${with_system_zlib+set}" = set; then :
8456 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8457 zlibdir=
8458 zlibinc=
8459 fi
8460
8461 fi
8462
8463
8464
8465
8466
8467
8468 maybe_plugins=no
8469 for ac_header in dlfcn.h
8470 do :
8471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8472 "
8473 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_DLFCN_H 1
8476 _ACEOF
8477 maybe_plugins=yes
8478 fi
8479
8480 done
8481
8482 for ac_header in windows.h
8483 do :
8484 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8485 "
8486 if test "x$ac_cv_header_windows_h" = xyes; then :
8487 cat >>confdefs.h <<_ACEOF
8488 #define HAVE_WINDOWS_H 1
8489 _ACEOF
8490 maybe_plugins=yes
8491 fi
8492
8493 done
8494
8495
8496 # Check whether --enable-plugins was given.
8497 if test "${enable_plugins+set}" = set; then :
8498 enableval=$enable_plugins; case "${enableval}" in
8499 no) plugins=no ;;
8500 *) plugins=yes
8501 if test "$maybe_plugins" != "yes" ; then
8502 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8503 fi ;;
8504 esac
8505 else
8506 plugins=$maybe_plugins
8507
8508 fi
8509
8510 if test "$plugins" = "yes"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8512 $as_echo_n "checking for library containing dlsym... " >&6; }
8513 if ${ac_cv_search_dlsym+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 ac_func_search_save_LIBS=$LIBS
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519
8520 /* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8523 #ifdef __cplusplus
8524 extern "C"
8525 #endif
8526 char dlsym ();
8527 int
8528 main ()
8529 {
8530 return dlsym ();
8531 ;
8532 return 0;
8533 }
8534 _ACEOF
8535 for ac_lib in '' dl; do
8536 if test -z "$ac_lib"; then
8537 ac_res="none required"
8538 else
8539 ac_res=-l$ac_lib
8540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8541 fi
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 ac_cv_search_dlsym=$ac_res
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext
8547 if ${ac_cv_search_dlsym+:} false; then :
8548 break
8549 fi
8550 done
8551 if ${ac_cv_search_dlsym+:} false; then :
8552
8553 else
8554 ac_cv_search_dlsym=no
8555 fi
8556 rm conftest.$ac_ext
8557 LIBS=$ac_func_search_save_LIBS
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8560 $as_echo "$ac_cv_search_dlsym" >&6; }
8561 ac_res=$ac_cv_search_dlsym
8562 if test "$ac_res" != no; then :
8563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8564
8565 fi
8566
8567 fi
8568
8569 if test "$plugins" = yes; then
8570 PLUGINS_TRUE=
8571 PLUGINS_FALSE='#'
8572 else
8573 PLUGINS_TRUE='#'
8574 PLUGINS_FALSE=
8575 fi
8576
8577
8578
8579
8580
8581 # Set options
8582 enable_dlopen=yes
8583
8584
8585
8586
8587 enable_win32_dll=no
8588
8589
8590 # Check whether --enable-shared was given.
8591 if test "${enable_shared+set}" = set; then :
8592 enableval=$enable_shared; p=${PACKAGE-default}
8593 case $enableval in
8594 yes) enable_shared=yes ;;
8595 no) enable_shared=no ;;
8596 *)
8597 enable_shared=no
8598 # Look at the argument we got. We use all the common list separators.
8599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8600 for pkg in $enableval; do
8601 IFS="$lt_save_ifs"
8602 if test "X$pkg" = "X$p"; then
8603 enable_shared=yes
8604 fi
8605 done
8606 IFS="$lt_save_ifs"
8607 ;;
8608 esac
8609 else
8610 enable_shared=yes
8611 fi
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 # Check whether --enable-static was given.
8622 if test "${enable_static+set}" = set; then :
8623 enableval=$enable_static; p=${PACKAGE-default}
8624 case $enableval in
8625 yes) enable_static=yes ;;
8626 no) enable_static=no ;;
8627 *)
8628 enable_static=no
8629 # Look at the argument we got. We use all the common list separators.
8630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631 for pkg in $enableval; do
8632 IFS="$lt_save_ifs"
8633 if test "X$pkg" = "X$p"; then
8634 enable_static=yes
8635 fi
8636 done
8637 IFS="$lt_save_ifs"
8638 ;;
8639 esac
8640 else
8641 enable_static=yes
8642 fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653 # Check whether --with-pic was given.
8654 if test "${with_pic+set}" = set; then :
8655 withval=$with_pic; pic_mode="$withval"
8656 else
8657 pic_mode=default
8658 fi
8659
8660
8661 test -z "$pic_mode" && pic_mode=default
8662
8663
8664
8665
8666
8667
8668
8669 # Check whether --enable-fast-install was given.
8670 if test "${enable_fast_install+set}" = set; then :
8671 enableval=$enable_fast_install; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_fast_install=yes ;;
8674 no) enable_fast_install=no ;;
8675 *)
8676 enable_fast_install=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for pkg in $enableval; do
8680 IFS="$lt_save_ifs"
8681 if test "X$pkg" = "X$p"; then
8682 enable_fast_install=yes
8683 fi
8684 done
8685 IFS="$lt_save_ifs"
8686 ;;
8687 esac
8688 else
8689 enable_fast_install=yes
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 # This can be used to rebuild libtool when needed
8703 LIBTOOL_DEPS="$ltmain"
8704
8705 # Always use our own libtool.
8706 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733 test -z "$LN_S" && LN_S="ln -s"
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 if test -n "${ZSH_VERSION+set}" ; then
8749 setopt NO_GLOB_SUBST
8750 fi
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753 $as_echo_n "checking for objdir... " >&6; }
8754 if ${lt_cv_objdir+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 rm -f .libs 2>/dev/null
8758 mkdir .libs 2>/dev/null
8759 if test -d .libs; then
8760 lt_cv_objdir=.libs
8761 else
8762 # MS-DOS does not allow filenames that begin with a dot.
8763 lt_cv_objdir=_libs
8764 fi
8765 rmdir .libs 2>/dev/null
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768 $as_echo "$lt_cv_objdir" >&6; }
8769 objdir=$lt_cv_objdir
8770
8771
8772
8773
8774
8775 cat >>confdefs.h <<_ACEOF
8776 #define LT_OBJDIR "$lt_cv_objdir/"
8777 _ACEOF
8778
8779
8780
8781
8782 case $host_os in
8783 aix3*)
8784 # AIX sometimes has problems with the GCC collect2 program. For some
8785 # reason, if we set the COLLECT_NAMES environment variable, the problems
8786 # vanish in a puff of smoke.
8787 if test "X${COLLECT_NAMES+set}" != Xset; then
8788 COLLECT_NAMES=
8789 export COLLECT_NAMES
8790 fi
8791 ;;
8792 esac
8793
8794 # Global variables:
8795 ofile=libtool
8796 can_build_shared=yes
8797
8798 # All known linkers require a `.a' archive for static linking (except MSVC,
8799 # which needs '.lib').
8800 libext=a
8801
8802 with_gnu_ld="$lt_cv_prog_gnu_ld"
8803
8804 old_CC="$CC"
8805 old_CFLAGS="$CFLAGS"
8806
8807 # Set sane defaults for various variables
8808 test -z "$CC" && CC=cc
8809 test -z "$LTCC" && LTCC=$CC
8810 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8811 test -z "$LD" && LD=ld
8812 test -z "$ac_objext" && ac_objext=o
8813
8814 for cc_temp in $compiler""; do
8815 case $cc_temp in
8816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8818 \-*) ;;
8819 *) break;;
8820 esac
8821 done
8822 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8823
8824
8825 # Only perform the check for file, if the check method requires it
8826 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8827 case $deplibs_check_method in
8828 file_magic*)
8829 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8831 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8832 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 case $MAGIC_CMD in
8836 [\\/*] | ?:[\\/]*)
8837 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8838 ;;
8839 *)
8840 lt_save_MAGIC_CMD="$MAGIC_CMD"
8841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8842 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8843 for ac_dir in $ac_dummy; do
8844 IFS="$lt_save_ifs"
8845 test -z "$ac_dir" && ac_dir=.
8846 if test -f $ac_dir/${ac_tool_prefix}file; then
8847 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8848 if test -n "$file_magic_test_file"; then
8849 case $deplibs_check_method in
8850 "file_magic "*)
8851 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8854 $EGREP "$file_magic_regex" > /dev/null; then
8855 :
8856 else
8857 cat <<_LT_EOF 1>&2
8858
8859 *** Warning: the command libtool uses to detect shared libraries,
8860 *** $file_magic_cmd, produces output that libtool cannot recognize.
8861 *** The result is that libtool may fail to recognize shared libraries
8862 *** as such. This will affect the creation of libtool libraries that
8863 *** depend on shared libraries, but programs linked with such libtool
8864 *** libraries will work regardless of this problem. Nevertheless, you
8865 *** may want to report the problem to your system manager and/or to
8866 *** bug-libtool@gnu.org
8867
8868 _LT_EOF
8869 fi ;;
8870 esac
8871 fi
8872 break
8873 fi
8874 done
8875 IFS="$lt_save_ifs"
8876 MAGIC_CMD="$lt_save_MAGIC_CMD"
8877 ;;
8878 esac
8879 fi
8880
8881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8882 if test -n "$MAGIC_CMD"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8884 $as_echo "$MAGIC_CMD" >&6; }
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889
8890
8891
8892
8893
8894 if test -z "$lt_cv_path_MAGIC_CMD"; then
8895 if test -n "$ac_tool_prefix"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8897 $as_echo_n "checking for file... " >&6; }
8898 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 case $MAGIC_CMD in
8902 [\\/*] | ?:[\\/]*)
8903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8904 ;;
8905 *)
8906 lt_save_MAGIC_CMD="$MAGIC_CMD"
8907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8909 for ac_dir in $ac_dummy; do
8910 IFS="$lt_save_ifs"
8911 test -z "$ac_dir" && ac_dir=.
8912 if test -f $ac_dir/file; then
8913 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8914 if test -n "$file_magic_test_file"; then
8915 case $deplibs_check_method in
8916 "file_magic "*)
8917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8920 $EGREP "$file_magic_regex" > /dev/null; then
8921 :
8922 else
8923 cat <<_LT_EOF 1>&2
8924
8925 *** Warning: the command libtool uses to detect shared libraries,
8926 *** $file_magic_cmd, produces output that libtool cannot recognize.
8927 *** The result is that libtool may fail to recognize shared libraries
8928 *** as such. This will affect the creation of libtool libraries that
8929 *** depend on shared libraries, but programs linked with such libtool
8930 *** libraries will work regardless of this problem. Nevertheless, you
8931 *** may want to report the problem to your system manager and/or to
8932 *** bug-libtool@gnu.org
8933
8934 _LT_EOF
8935 fi ;;
8936 esac
8937 fi
8938 break
8939 fi
8940 done
8941 IFS="$lt_save_ifs"
8942 MAGIC_CMD="$lt_save_MAGIC_CMD"
8943 ;;
8944 esac
8945 fi
8946
8947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8948 if test -n "$MAGIC_CMD"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8950 $as_echo "$MAGIC_CMD" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957 else
8958 MAGIC_CMD=:
8959 fi
8960 fi
8961
8962 fi
8963 ;;
8964 esac
8965
8966 # Use C for the default configuration in the libtool script
8967
8968 lt_save_CC="$CC"
8969 ac_ext=c
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
8976 # Source file extension for C test sources.
8977 ac_ext=c
8978
8979 # Object file extension for compiled C test sources.
8980 objext=o
8981 objext=$objext
8982
8983 # Code to be used in simple compile tests
8984 lt_simple_compile_test_code="int some_variable = 0;"
8985
8986 # Code to be used in simple link tests
8987 lt_simple_link_test_code='int main(){return(0);}'
8988
8989
8990
8991
8992
8993
8994
8995 # If no C compiler was specified, use CC.
8996 LTCC=${LTCC-"$CC"}
8997
8998 # If no C compiler flags were specified, use CFLAGS.
8999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9000
9001 # Allow CC to be a program name with arguments.
9002 compiler=$CC
9003
9004 # Save the default compiler, since it gets overwritten when the other
9005 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9006 compiler_DEFAULT=$CC
9007
9008 # save warnings/boilerplate of simple test code
9009 ac_outfile=conftest.$ac_objext
9010 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9012 _lt_compiler_boilerplate=`cat conftest.err`
9013 $RM conftest*
9014
9015 ac_outfile=conftest.$ac_objext
9016 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9018 _lt_linker_boilerplate=`cat conftest.err`
9019 $RM -r conftest*
9020
9021
9022 ## CAVEAT EMPTOR:
9023 ## There is no encapsulation within the following macros, do not change
9024 ## the running order or otherwise move them around unless you know exactly
9025 ## what you are doing...
9026 if test -n "$compiler"; then
9027
9028 lt_prog_compiler_no_builtin_flag=
9029
9030 if test "$GCC" = yes; then
9031 case $cc_basename in
9032 nvcc*)
9033 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9034 *)
9035 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9036 esac
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9039 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9040 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 lt_cv_prog_compiler_rtti_exceptions=no
9044 ac_outfile=conftest.$ac_objext
9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046 lt_compiler_flag="-fno-rtti -fno-exceptions"
9047 # Insert the option either (1) after the last *FLAGS variable, or
9048 # (2) before a word containing "conftest.", or (3) at the end.
9049 # Note that $ac_compile itself does not contain backslashes and begins
9050 # with a dollar sign (not a hyphen), so the echo should work correctly.
9051 # The option is referenced via a variable to avoid confusing sed.
9052 lt_compile=`echo "$ac_compile" | $SED \
9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055 -e 's:$: $lt_compiler_flag:'`
9056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9057 (eval "$lt_compile" 2>conftest.err)
9058 ac_status=$?
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 if (exit $ac_status) && test -s "$ac_outfile"; then
9062 # The compiler can only warn and ignore the option if not recognized
9063 # So say no if there are warnings other than the usual output.
9064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_cv_prog_compiler_rtti_exceptions=yes
9068 fi
9069 fi
9070 $RM conftest*
9071
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9074 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9075
9076 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9077 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9078 else
9079 :
9080 fi
9081
9082 fi
9083
9084
9085
9086
9087
9088
9089 lt_prog_compiler_wl=
9090 lt_prog_compiler_pic=
9091 lt_prog_compiler_static=
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9094 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9095
9096 if test "$GCC" = yes; then
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_static='-static'
9099
9100 case $host_os in
9101 aix*)
9102 # All AIX code is PIC.
9103 if test "$host_cpu" = ia64; then
9104 # AIX 5 now supports IA64 processor
9105 lt_prog_compiler_static='-Bstatic'
9106 fi
9107 lt_prog_compiler_pic='-fPIC'
9108 ;;
9109
9110 amigaos*)
9111 case $host_cpu in
9112 powerpc)
9113 # see comment about AmigaOS4 .so support
9114 lt_prog_compiler_pic='-fPIC'
9115 ;;
9116 m68k)
9117 # FIXME: we need at least 68020 code to build shared libraries, but
9118 # adding the `-m68020' flag to GCC prevents building anything better,
9119 # like `-m68040'.
9120 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9121 ;;
9122 esac
9123 ;;
9124
9125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9126 # PIC is the default for these OSes.
9127 ;;
9128
9129 mingw* | cygwin* | pw32* | os2* | cegcc*)
9130 # This hack is so that the source file can tell whether it is being
9131 # built for inclusion in a dll (and should export symbols for example).
9132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9133 # (--disable-auto-import) libraries
9134 lt_prog_compiler_pic='-DDLL_EXPORT'
9135 ;;
9136
9137 darwin* | rhapsody*)
9138 # PIC is the default on this platform
9139 # Common symbols not allowed in MH_DYLIB files
9140 lt_prog_compiler_pic='-fno-common'
9141 ;;
9142
9143 haiku*)
9144 # PIC is the default for Haiku.
9145 # The "-static" flag exists, but is broken.
9146 lt_prog_compiler_static=
9147 ;;
9148
9149 hpux*)
9150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9152 # sets the default TLS model and affects inlining.
9153 case $host_cpu in
9154 hppa*64*)
9155 # +Z the default
9156 ;;
9157 *)
9158 lt_prog_compiler_pic='-fPIC'
9159 ;;
9160 esac
9161 ;;
9162
9163 interix[3-9]*)
9164 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9165 # Instead, we relocate shared libraries at runtime.
9166 ;;
9167
9168 msdosdjgpp*)
9169 # Just because we use GCC doesn't mean we suddenly get shared libraries
9170 # on systems that don't support them.
9171 lt_prog_compiler_can_build_shared=no
9172 enable_shared=no
9173 ;;
9174
9175 *nto* | *qnx*)
9176 # QNX uses GNU C++, but need to define -shared option too, otherwise
9177 # it will coredump.
9178 lt_prog_compiler_pic='-fPIC -shared'
9179 ;;
9180
9181 sysv4*MP*)
9182 if test -d /usr/nec; then
9183 lt_prog_compiler_pic=-Kconform_pic
9184 fi
9185 ;;
9186
9187 *)
9188 lt_prog_compiler_pic='-fPIC'
9189 ;;
9190 esac
9191
9192 case $cc_basename in
9193 nvcc*) # Cuda Compiler Driver 2.2
9194 lt_prog_compiler_wl='-Xlinker '
9195 lt_prog_compiler_pic='-Xcompiler -fPIC'
9196 ;;
9197 esac
9198 else
9199 # PORTME Check for flag to pass linker flags through the system compiler.
9200 case $host_os in
9201 aix*)
9202 lt_prog_compiler_wl='-Wl,'
9203 if test "$host_cpu" = ia64; then
9204 # AIX 5 now supports IA64 processor
9205 lt_prog_compiler_static='-Bstatic'
9206 else
9207 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9208 fi
9209 ;;
9210
9211 mingw* | cygwin* | pw32* | os2* | cegcc*)
9212 # This hack is so that the source file can tell whether it is being
9213 # built for inclusion in a dll (and should export symbols for example).
9214 lt_prog_compiler_pic='-DDLL_EXPORT'
9215 ;;
9216
9217 hpux9* | hpux10* | hpux11*)
9218 lt_prog_compiler_wl='-Wl,'
9219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9220 # not for PA HP-UX.
9221 case $host_cpu in
9222 hppa*64*|ia64*)
9223 # +Z the default
9224 ;;
9225 *)
9226 lt_prog_compiler_pic='+Z'
9227 ;;
9228 esac
9229 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9230 lt_prog_compiler_static='${wl}-a ${wl}archive'
9231 ;;
9232
9233 irix5* | irix6* | nonstopux*)
9234 lt_prog_compiler_wl='-Wl,'
9235 # PIC (with -KPIC) is the default.
9236 lt_prog_compiler_static='-non_shared'
9237 ;;
9238
9239 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9240 case $cc_basename in
9241 # old Intel for x86_64 which still supported -KPIC.
9242 ecc*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-static'
9246 ;;
9247 # icc used to be incompatible with GCC.
9248 # ICC 10 doesn't accept -KPIC any more.
9249 icc* | ifort*)
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_pic='-fPIC'
9252 lt_prog_compiler_static='-static'
9253 ;;
9254 # Lahey Fortran 8.1.
9255 lf95*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='--shared'
9258 lt_prog_compiler_static='--static'
9259 ;;
9260 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9261 # Portland Group compilers (*not* the Pentium gcc compiler,
9262 # which looks to be a dead project)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-fpic'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267 ccc*)
9268 lt_prog_compiler_wl='-Wl,'
9269 # All Alpha code is PIC.
9270 lt_prog_compiler_static='-non_shared'
9271 ;;
9272 xl* | bgxl* | bgf* | mpixl*)
9273 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-qpic'
9276 lt_prog_compiler_static='-qstaticlink'
9277 ;;
9278 *)
9279 case `$CC -V 2>&1 | sed 5q` in
9280 *Sun\ F* | *Sun*Fortran*)
9281 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 lt_prog_compiler_wl=''
9285 ;;
9286 *Sun\ C*)
9287 # Sun C 5.9
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_wl='-Wl,'
9291 ;;
9292 esac
9293 ;;
9294 esac
9295 ;;
9296
9297 newsos6)
9298 lt_prog_compiler_pic='-KPIC'
9299 lt_prog_compiler_static='-Bstatic'
9300 ;;
9301
9302 *nto* | *qnx*)
9303 # QNX uses GNU C++, but need to define -shared option too, otherwise
9304 # it will coredump.
9305 lt_prog_compiler_pic='-fPIC -shared'
9306 ;;
9307
9308 osf3* | osf4* | osf5*)
9309 lt_prog_compiler_wl='-Wl,'
9310 # All OSF/1 code is PIC.
9311 lt_prog_compiler_static='-non_shared'
9312 ;;
9313
9314 rdos*)
9315 lt_prog_compiler_static='-non_shared'
9316 ;;
9317
9318 solaris*)
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 case $cc_basename in
9322 f77* | f90* | f95*)
9323 lt_prog_compiler_wl='-Qoption ld ';;
9324 *)
9325 lt_prog_compiler_wl='-Wl,';;
9326 esac
9327 ;;
9328
9329 sunos4*)
9330 lt_prog_compiler_wl='-Qoption ld '
9331 lt_prog_compiler_pic='-PIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 ;;
9334
9335 sysv4 | sysv4.2uw2* | sysv4.3*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 sysv4*MP*)
9342 if test -d /usr/nec ;then
9343 lt_prog_compiler_pic='-Kconform_pic'
9344 lt_prog_compiler_static='-Bstatic'
9345 fi
9346 ;;
9347
9348 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 ;;
9353
9354 unicos*)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_can_build_shared=no
9357 ;;
9358
9359 uts4*)
9360 lt_prog_compiler_pic='-pic'
9361 lt_prog_compiler_static='-Bstatic'
9362 ;;
9363
9364 *)
9365 lt_prog_compiler_can_build_shared=no
9366 ;;
9367 esac
9368 fi
9369
9370 case $host_os in
9371 # For platforms which do not support PIC, -DPIC is meaningless:
9372 *djgpp*)
9373 lt_prog_compiler_pic=
9374 ;;
9375 *)
9376 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9377 ;;
9378 esac
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9380 $as_echo "$lt_prog_compiler_pic" >&6; }
9381
9382
9383
9384
9385
9386
9387 #
9388 # Check to make sure the PIC flag actually works.
9389 #
9390 if test -n "$lt_prog_compiler_pic"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9393 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 lt_cv_prog_compiler_pic_works=no
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9399 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9400 # Insert the option either (1) after the last *FLAGS variable, or
9401 # (2) before a word containing "conftest.", or (3) at the end.
9402 # Note that $ac_compile itself does not contain backslashes and begins
9403 # with a dollar sign (not a hyphen), so the echo should work correctly.
9404 # The option is referenced via a variable to avoid confusing sed.
9405 lt_compile=`echo "$ac_compile" | $SED \
9406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9408 -e 's:$: $lt_compiler_flag:'`
9409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9410 (eval "$lt_compile" 2>conftest.err)
9411 ac_status=$?
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 if (exit $ac_status) && test -s "$ac_outfile"; then
9415 # The compiler can only warn and ignore the option if not recognized
9416 # So say no if there are warnings other than the usual output.
9417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9420 lt_cv_prog_compiler_pic_works=yes
9421 fi
9422 fi
9423 $RM conftest*
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9427 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9428
9429 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9430 case $lt_prog_compiler_pic in
9431 "" | " "*) ;;
9432 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9433 esac
9434 else
9435 lt_prog_compiler_pic=
9436 lt_prog_compiler_can_build_shared=no
9437 fi
9438
9439 fi
9440
9441
9442
9443
9444
9445
9446 #
9447 # Check to make sure the static flag actually works.
9448 #
9449 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9451 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9452 if ${lt_cv_prog_compiler_static_works+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 lt_cv_prog_compiler_static_works=no
9456 save_LDFLAGS="$LDFLAGS"
9457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9458 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9460 # The linker can only warn and ignore the option if not recognized
9461 # So say no if there are warnings
9462 if test -s conftest.err; then
9463 # Append any errors to the config.log.
9464 cat conftest.err 1>&5
9465 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9467 if diff conftest.exp conftest.er2 >/dev/null; then
9468 lt_cv_prog_compiler_static_works=yes
9469 fi
9470 else
9471 lt_cv_prog_compiler_static_works=yes
9472 fi
9473 fi
9474 $RM -r conftest*
9475 LDFLAGS="$save_LDFLAGS"
9476
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9479 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9480
9481 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9482 :
9483 else
9484 lt_prog_compiler_static=
9485 fi
9486
9487
9488
9489
9490
9491
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9495 if ${lt_cv_prog_compiler_c_o+:} false; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 lt_cv_prog_compiler_c_o=no
9499 $RM -r conftest 2>/dev/null
9500 mkdir conftest
9501 cd conftest
9502 mkdir out
9503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9504
9505 lt_compiler_flag="-o out/conftest2.$ac_objext"
9506 # Insert the option either (1) after the last *FLAGS variable, or
9507 # (2) before a word containing "conftest.", or (3) at the end.
9508 # Note that $ac_compile itself does not contain backslashes and begins
9509 # with a dollar sign (not a hyphen), so the echo should work correctly.
9510 lt_compile=`echo "$ac_compile" | $SED \
9511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9513 -e 's:$: $lt_compiler_flag:'`
9514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9515 (eval "$lt_compile" 2>out/conftest.err)
9516 ac_status=$?
9517 cat out/conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9520 then
9521 # The compiler can only warn and ignore the option if not recognized
9522 # So say no if there are warnings
9523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9524 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9525 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9526 lt_cv_prog_compiler_c_o=yes
9527 fi
9528 fi
9529 chmod u+w . 2>&5
9530 $RM conftest*
9531 # SGI C++ compiler will create directory out/ii_files/ for
9532 # template instantiation
9533 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9534 $RM out/* && rmdir out
9535 cd ..
9536 $RM -r conftest
9537 $RM conftest*
9538
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9541 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9542
9543
9544
9545
9546
9547
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9550 if ${lt_cv_prog_compiler_c_o+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 lt_cv_prog_compiler_c_o=no
9554 $RM -r conftest 2>/dev/null
9555 mkdir conftest
9556 cd conftest
9557 mkdir out
9558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9559
9560 lt_compiler_flag="-o out/conftest2.$ac_objext"
9561 # Insert the option either (1) after the last *FLAGS variable, or
9562 # (2) before a word containing "conftest.", or (3) at the end.
9563 # Note that $ac_compile itself does not contain backslashes and begins
9564 # with a dollar sign (not a hyphen), so the echo should work correctly.
9565 lt_compile=`echo "$ac_compile" | $SED \
9566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9568 -e 's:$: $lt_compiler_flag:'`
9569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9570 (eval "$lt_compile" 2>out/conftest.err)
9571 ac_status=$?
9572 cat out/conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9575 then
9576 # The compiler can only warn and ignore the option if not recognized
9577 # So say no if there are warnings
9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9581 lt_cv_prog_compiler_c_o=yes
9582 fi
9583 fi
9584 chmod u+w . 2>&5
9585 $RM conftest*
9586 # SGI C++ compiler will create directory out/ii_files/ for
9587 # template instantiation
9588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9589 $RM out/* && rmdir out
9590 cd ..
9591 $RM -r conftest
9592 $RM conftest*
9593
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9597
9598
9599
9600
9601 hard_links="nottested"
9602 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9603 # do not overwrite the value of need_locks provided by the user
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9605 $as_echo_n "checking if we can lock with hard links... " >&6; }
9606 hard_links=yes
9607 $RM conftest*
9608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9609 touch conftest.a
9610 ln conftest.a conftest.b 2>&5 || hard_links=no
9611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9613 $as_echo "$hard_links" >&6; }
9614 if test "$hard_links" = no; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9616 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9617 need_locks=warn
9618 fi
9619 else
9620 need_locks=no
9621 fi
9622
9623
9624
9625
9626
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9630
9631 runpath_var=
9632 allow_undefined_flag=
9633 always_export_symbols=no
9634 archive_cmds=
9635 archive_expsym_cmds=
9636 compiler_needs_object=no
9637 enable_shared_with_static_runtimes=no
9638 export_dynamic_flag_spec=
9639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9640 hardcode_automatic=no
9641 hardcode_direct=no
9642 hardcode_direct_absolute=no
9643 hardcode_libdir_flag_spec=
9644 hardcode_libdir_flag_spec_ld=
9645 hardcode_libdir_separator=
9646 hardcode_minus_L=no
9647 hardcode_shlibpath_var=unsupported
9648 inherit_rpath=no
9649 link_all_deplibs=unknown
9650 module_cmds=
9651 module_expsym_cmds=
9652 old_archive_from_new_cmds=
9653 old_archive_from_expsyms_cmds=
9654 thread_safe_flag_spec=
9655 whole_archive_flag_spec=
9656 # include_expsyms should be a list of space-separated symbols to be *always*
9657 # included in the symbol list
9658 include_expsyms=
9659 # exclude_expsyms can be an extended regexp of symbols to exclude
9660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9662 # as well as any symbol that contains `d'.
9663 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9665 # platforms (ab)use it in PIC code, but their linkers get confused if
9666 # the symbol is explicitly referenced. Since portable code cannot
9667 # rely on this symbol name, it's probably fine to never include it in
9668 # preloaded symbol tables.
9669 # Exclude shared library initialization/finalization symbols.
9670 extract_expsyms_cmds=
9671
9672 case $host_os in
9673 cygwin* | mingw* | pw32* | cegcc*)
9674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675 # When not using gcc, we currently assume that we are using
9676 # Microsoft Visual C++.
9677 if test "$GCC" != yes; then
9678 with_gnu_ld=no
9679 fi
9680 ;;
9681 interix*)
9682 # we just hope/assume this is gcc and not c89 (= MSVC++)
9683 with_gnu_ld=yes
9684 ;;
9685 openbsd*)
9686 with_gnu_ld=no
9687 ;;
9688 esac
9689
9690 ld_shlibs=yes
9691
9692 # On some targets, GNU ld is compatible enough with the native linker
9693 # that we're better off using the native interface for both.
9694 lt_use_gnu_ld_interface=no
9695 if test "$with_gnu_ld" = yes; then
9696 case $host_os in
9697 aix*)
9698 # The AIX port of GNU ld has always aspired to compatibility
9699 # with the native linker. However, as the warning in the GNU ld
9700 # block says, versions before 2.19.5* couldn't really create working
9701 # shared libraries, regardless of the interface used.
9702 case `$LD -v 2>&1` in
9703 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9704 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9705 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9706 *)
9707 lt_use_gnu_ld_interface=yes
9708 ;;
9709 esac
9710 ;;
9711 *)
9712 lt_use_gnu_ld_interface=yes
9713 ;;
9714 esac
9715 fi
9716
9717 if test "$lt_use_gnu_ld_interface" = yes; then
9718 # If archive_cmds runs LD, not CC, wlarc should be empty
9719 wlarc='${wl}'
9720
9721 # Set some defaults for GNU ld with shared library support. These
9722 # are reset later if shared libraries are not supported. Putting them
9723 # here allows them to be overridden if necessary.
9724 runpath_var=LD_RUN_PATH
9725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726 export_dynamic_flag_spec='${wl}--export-dynamic'
9727 # ancient GNU ld didn't support --whole-archive et. al.
9728 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9730 else
9731 whole_archive_flag_spec=
9732 fi
9733 supports_anon_versioning=no
9734 case `$LD -v 2>&1` in
9735 *GNU\ gold*) supports_anon_versioning=yes ;;
9736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9739 *\ 2.11.*) ;; # other 2.11 versions
9740 *) supports_anon_versioning=yes ;;
9741 esac
9742
9743 # See if GNU ld supports shared libraries.
9744 case $host_os in
9745 aix[3-9]*)
9746 # On AIX/PPC, the GNU linker is very broken
9747 if test "$host_cpu" != ia64; then
9748 ld_shlibs=no
9749 cat <<_LT_EOF 1>&2
9750
9751 *** Warning: the GNU linker, at least up to release 2.19, is reported
9752 *** to be unable to reliably create shared libraries on AIX.
9753 *** Therefore, libtool is disabling shared libraries support. If you
9754 *** really care for shared libraries, you may want to install binutils
9755 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9756 *** You will then need to restart the configuration process.
9757
9758 _LT_EOF
9759 fi
9760 ;;
9761
9762 amigaos*)
9763 case $host_cpu in
9764 powerpc)
9765 # see comment about AmigaOS4 .so support
9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 archive_expsym_cmds=''
9768 ;;
9769 m68k)
9770 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)'
9771 hardcode_libdir_flag_spec='-L$libdir'
9772 hardcode_minus_L=yes
9773 ;;
9774 esac
9775 ;;
9776
9777 beos*)
9778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9779 allow_undefined_flag=unsupported
9780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9781 # support --undefined. This deserves some investigation. FIXME
9782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 else
9784 ld_shlibs=no
9785 fi
9786 ;;
9787
9788 cygwin* | mingw* | pw32* | cegcc*)
9789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9790 # as there is no search path for DLLs.
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 export_dynamic_flag_spec='${wl}--export-all-symbols'
9793 allow_undefined_flag=unsupported
9794 always_export_symbols=no
9795 enable_shared_with_static_runtimes=yes
9796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9797
9798 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9800 # If the export-symbols file already is a .def file (1st line
9801 # is EXPORTS), use it as is; otherwise, prepend...
9802 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9803 cp $export_symbols $output_objdir/$soname.def;
9804 else
9805 echo EXPORTS > $output_objdir/$soname.def;
9806 cat $export_symbols >> $output_objdir/$soname.def;
9807 fi~
9808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9809 else
9810 ld_shlibs=no
9811 fi
9812 ;;
9813
9814 haiku*)
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 link_all_deplibs=yes
9817 ;;
9818
9819 interix[3-9]*)
9820 hardcode_direct=no
9821 hardcode_shlibpath_var=no
9822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9823 export_dynamic_flag_spec='${wl}-E'
9824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9825 # Instead, shared libraries are loaded at an image base (0x10000000 by
9826 # default) and relocated if they conflict, which is a slow very memory
9827 # consuming and fragmenting process. To avoid this, we pick a random,
9828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9831 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'
9832 ;;
9833
9834 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9835 tmp_diet=no
9836 if test "$host_os" = linux-dietlibc; then
9837 case $cc_basename in
9838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9839 esac
9840 fi
9841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9842 && test "$tmp_diet" = no
9843 then
9844 tmp_addflag=' $pic_flag'
9845 tmp_sharedflag='-shared'
9846 case $cc_basename,$host_cpu in
9847 pgcc*) # Portland Group C compiler
9848 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'
9849 tmp_addflag=' $pic_flag'
9850 ;;
9851 pgf77* | pgf90* | pgf95* | pgfortran*)
9852 # Portland Group f77 and f90 compilers
9853 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'
9854 tmp_addflag=' $pic_flag -Mnomain' ;;
9855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9856 tmp_addflag=' -i_dynamic' ;;
9857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9858 tmp_addflag=' -i_dynamic -nofor_main' ;;
9859 ifc* | ifort*) # Intel Fortran compiler
9860 tmp_addflag=' -nofor_main' ;;
9861 lf95*) # Lahey Fortran 8.1
9862 whole_archive_flag_spec=
9863 tmp_sharedflag='--shared' ;;
9864 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9865 tmp_sharedflag='-qmkshrobj'
9866 tmp_addflag= ;;
9867 nvcc*) # Cuda Compiler Driver 2.2
9868 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'
9869 compiler_needs_object=yes
9870 ;;
9871 esac
9872 case `$CC -V 2>&1 | sed 5q` in
9873 *Sun\ C*) # Sun C 5.9
9874 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'
9875 compiler_needs_object=yes
9876 tmp_sharedflag='-G' ;;
9877 *Sun\ F*) # Sun Fortran 8.3
9878 tmp_sharedflag='-G' ;;
9879 esac
9880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9881
9882 if test "x$supports_anon_versioning" = xyes; then
9883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9885 echo "local: *; };" >> $output_objdir/$libname.ver~
9886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9887 fi
9888
9889 case $cc_basename in
9890 xlf* | bgf* | bgxlf* | mpixlf*)
9891 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9892 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9893 hardcode_libdir_flag_spec=
9894 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9895 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9896 if test "x$supports_anon_versioning" = xyes; then
9897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9899 echo "local: *; };" >> $output_objdir/$libname.ver~
9900 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9901 fi
9902 ;;
9903 esac
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908
9909 netbsd*)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9912 wlarc=
9913 else
9914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916 fi
9917 ;;
9918
9919 solaris*)
9920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9921 ld_shlibs=no
9922 cat <<_LT_EOF 1>&2
9923
9924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9925 *** create shared libraries on Solaris systems. Therefore, libtool
9926 *** is disabling shared libraries support. We urge you to upgrade GNU
9927 *** binutils to release 2.9.1 or newer. Another option is to modify
9928 *** your PATH or compiler configuration so that the native linker is
9929 *** used, and then restart.
9930
9931 _LT_EOF
9932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935 else
9936 ld_shlibs=no
9937 fi
9938 ;;
9939
9940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9941 case `$LD -v 2>&1` in
9942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9943 ld_shlibs=no
9944 cat <<_LT_EOF 1>&2
9945
9946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9947 *** reliably create shared libraries on SCO systems. Therefore, libtool
9948 *** is disabling shared libraries support. We urge you to upgrade GNU
9949 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9950 *** your PATH or compiler configuration so that the native linker is
9951 *** used, and then restart.
9952
9953 _LT_EOF
9954 ;;
9955 *)
9956 # For security reasons, it is highly recommended that you always
9957 # use absolute paths for naming shared libraries, and exclude the
9958 # DT_RUNPATH tag from executables and libraries. But doing so
9959 # requires that you compile everything twice, which is a pain.
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964 else
9965 ld_shlibs=no
9966 fi
9967 ;;
9968 esac
9969 ;;
9970
9971 sunos4*)
9972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973 wlarc=
9974 hardcode_direct=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 *)
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9984 fi
9985 ;;
9986 esac
9987
9988 if test "$ld_shlibs" = no; then
9989 runpath_var=
9990 hardcode_libdir_flag_spec=
9991 export_dynamic_flag_spec=
9992 whole_archive_flag_spec=
9993 fi
9994 else
9995 # PORTME fill in a description of your system's linker (not GNU ld)
9996 case $host_os in
9997 aix3*)
9998 allow_undefined_flag=unsupported
9999 always_export_symbols=yes
10000 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'
10001 # Note: this linker hardcodes the directories in LIBPATH if there
10002 # are no directories specified by -L.
10003 hardcode_minus_L=yes
10004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10005 # Neither direct hardcoding nor static linking is supported with a
10006 # broken collect2.
10007 hardcode_direct=unsupported
10008 fi
10009 ;;
10010
10011 aix[4-9]*)
10012 if test "$host_cpu" = ia64; then
10013 # On IA64, the linker does run time linking by default, so we don't
10014 # have to do anything special.
10015 aix_use_runtimelinking=no
10016 exp_sym_flag='-Bexport'
10017 no_entry_flag=""
10018 else
10019 # If we're using GNU nm, then we don't want the "-C" option.
10020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10021 # Also, AIX nm treats weak defined symbols like other global
10022 # defined symbols, whereas GNU nm marks them as "W".
10023 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10024 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'
10025 else
10026 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'
10027 fi
10028 aix_use_runtimelinking=no
10029
10030 # Test if we are trying to use run time linking or normal
10031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10032 # need to do runtime linking.
10033 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10034 for ld_flag in $LDFLAGS; do
10035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10036 aix_use_runtimelinking=yes
10037 break
10038 fi
10039 done
10040 ;;
10041 esac
10042
10043 exp_sym_flag='-bexport'
10044 no_entry_flag='-bnoentry'
10045 fi
10046
10047 # When large executables or shared objects are built, AIX ld can
10048 # have problems creating the table of contents. If linking a library
10049 # or program results in "error TOC overflow" add -mminimal-toc to
10050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10052
10053 archive_cmds=''
10054 hardcode_direct=yes
10055 hardcode_direct_absolute=yes
10056 hardcode_libdir_separator=':'
10057 link_all_deplibs=yes
10058 file_list_spec='${wl}-f,'
10059
10060 if test "$GCC" = yes; then
10061 case $host_os in aix4.[012]|aix4.[012].*)
10062 # We only want to do this on AIX 4.2 and lower, the check
10063 # below for broken collect2 doesn't work under 4.3+
10064 collect2name=`${CC} -print-prog-name=collect2`
10065 if test -f "$collect2name" &&
10066 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10067 then
10068 # We have reworked collect2
10069 :
10070 else
10071 # We have old collect2
10072 hardcode_direct=unsupported
10073 # It fails to find uninstalled libraries when the uninstalled
10074 # path is not listed in the libpath. Setting hardcode_minus_L
10075 # to unsupported forces relinking
10076 hardcode_minus_L=yes
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_libdir_separator=
10079 fi
10080 ;;
10081 esac
10082 shared_flag='-shared'
10083 if test "$aix_use_runtimelinking" = yes; then
10084 shared_flag="$shared_flag "'${wl}-G'
10085 fi
10086 else
10087 # not using gcc
10088 if test "$host_cpu" = ia64; then
10089 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10090 # chokes on -Wl,-G. The following line is correct:
10091 shared_flag='-G'
10092 else
10093 if test "$aix_use_runtimelinking" = yes; then
10094 shared_flag='${wl}-G'
10095 else
10096 shared_flag='${wl}-bM:SRE'
10097 fi
10098 fi
10099 fi
10100
10101 export_dynamic_flag_spec='${wl}-bexpall'
10102 # It seems that -bexpall does not export symbols beginning with
10103 # underscore (_), so it is better to generate a list of symbols to export.
10104 always_export_symbols=yes
10105 if test "$aix_use_runtimelinking" = yes; then
10106 # Warning - without using the other runtime loading flags (-brtl),
10107 # -berok will link without error, but may produce a broken library.
10108 allow_undefined_flag='-berok'
10109 # Determine the default libpath from the value encoded in an
10110 # empty executable.
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 int
10115 main ()
10116 {
10117
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"; then :
10123
10124 lt_aix_libpath_sed='
10125 /Import File Strings/,/^$/ {
10126 /^0/ {
10127 s/^0 *\(.*\)$/\1/
10128 p
10129 }
10130 }'
10131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10132 # Check for a 64-bit object if we didn't find anything.
10133 if test -z "$aix_libpath"; then
10134 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135 fi
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10140
10141 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10142 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"
10143 else
10144 if test "$host_cpu" = ia64; then
10145 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10146 allow_undefined_flag="-z nodefs"
10147 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"
10148 else
10149 # Determine the default libpath from the value encoded in an
10150 # empty executable.
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153
10154 int
10155 main ()
10156 {
10157
10158 ;
10159 return 0;
10160 }
10161 _ACEOF
10162 if ac_fn_c_try_link "$LINENO"; then :
10163
10164 lt_aix_libpath_sed='
10165 /Import File Strings/,/^$/ {
10166 /^0/ {
10167 s/^0 *\(.*\)$/\1/
10168 p
10169 }
10170 }'
10171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10172 # Check for a 64-bit object if we didn't find anything.
10173 if test -z "$aix_libpath"; then
10174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10175 fi
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10180
10181 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10182 # Warning - without using the other run time loading flags,
10183 # -berok will link without error, but may produce a broken library.
10184 no_undefined_flag=' ${wl}-bernotok'
10185 allow_undefined_flag=' ${wl}-berok'
10186 if test "$with_gnu_ld" = yes; then
10187 # We only use this code for GNU lds that support --whole-archive.
10188 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10189 else
10190 # Exported symbols can be pulled into shared objects from archives
10191 whole_archive_flag_spec='$convenience'
10192 fi
10193 archive_cmds_need_lc=yes
10194 # This is similar to how AIX traditionally builds its shared libraries.
10195 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'
10196 fi
10197 fi
10198 ;;
10199
10200 amigaos*)
10201 case $host_cpu in
10202 powerpc)
10203 # see comment about AmigaOS4 .so support
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds=''
10206 ;;
10207 m68k)
10208 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)'
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_minus_L=yes
10211 ;;
10212 esac
10213 ;;
10214
10215 bsdi[45]*)
10216 export_dynamic_flag_spec=-rdynamic
10217 ;;
10218
10219 cygwin* | mingw* | pw32* | cegcc*)
10220 # When not using gcc, we currently assume that we are using
10221 # Microsoft Visual C++.
10222 # hardcode_libdir_flag_spec is actually meaningless, as there is
10223 # no search path for DLLs.
10224 hardcode_libdir_flag_spec=' '
10225 allow_undefined_flag=unsupported
10226 # Tell ltmain to make .lib files, not .a files.
10227 libext=lib
10228 # Tell ltmain to make .dll files, not .so files.
10229 shrext_cmds=".dll"
10230 # FIXME: Setting linknames here is a bad hack.
10231 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10232 # The linker will automatically build a .lib file if we build a DLL.
10233 old_archive_from_new_cmds='true'
10234 # FIXME: Should let the user specify the lib program.
10235 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10236 fix_srcfile_path='`cygpath -w "$srcfile"`'
10237 enable_shared_with_static_runtimes=yes
10238 ;;
10239
10240 darwin* | rhapsody*)
10241
10242
10243 archive_cmds_need_lc=no
10244 hardcode_direct=no
10245 hardcode_automatic=yes
10246 hardcode_shlibpath_var=unsupported
10247 if test "$lt_cv_ld_force_load" = "yes"; then
10248 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\"`'
10249 else
10250 whole_archive_flag_spec=''
10251 fi
10252 link_all_deplibs=yes
10253 allow_undefined_flag="$_lt_dar_allow_undefined"
10254 case $cc_basename in
10255 ifort*) _lt_dar_can_shared=yes ;;
10256 *) _lt_dar_can_shared=$GCC ;;
10257 esac
10258 if test "$_lt_dar_can_shared" = "yes"; then
10259 output_verbose_link_cmd=func_echo_all
10260 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10261 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10262 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}"
10263 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}"
10264
10265 else
10266 ld_shlibs=no
10267 fi
10268
10269 ;;
10270
10271 dgux*)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10278 # support. Future versions do this automatically, but an explicit c++rt0.o
10279 # does not break anything, and helps significantly (at the cost of a little
10280 # extra space).
10281 freebsd2.2*)
10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10283 hardcode_libdir_flag_spec='-R$libdir'
10284 hardcode_direct=yes
10285 hardcode_shlibpath_var=no
10286 ;;
10287
10288 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10289 freebsd2.*)
10290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_direct=yes
10292 hardcode_minus_L=yes
10293 hardcode_shlibpath_var=no
10294 ;;
10295
10296 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10297 freebsd* | dragonfly*)
10298 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10299 hardcode_libdir_flag_spec='-R$libdir'
10300 hardcode_direct=yes
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 hpux9*)
10305 if test "$GCC" = yes; then
10306 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'
10307 else
10308 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'
10309 fi
10310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10311 hardcode_libdir_separator=:
10312 hardcode_direct=yes
10313
10314 # hardcode_minus_L: Not really in the search PATH,
10315 # but as the default location of the library.
10316 hardcode_minus_L=yes
10317 export_dynamic_flag_spec='${wl}-E'
10318 ;;
10319
10320 hpux10*)
10321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10325 fi
10326 if test "$with_gnu_ld" = no; then
10327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10328 hardcode_libdir_flag_spec_ld='+b $libdir'
10329 hardcode_libdir_separator=:
10330 hardcode_direct=yes
10331 hardcode_direct_absolute=yes
10332 export_dynamic_flag_spec='${wl}-E'
10333 # hardcode_minus_L: Not really in the search PATH,
10334 # but as the default location of the library.
10335 hardcode_minus_L=yes
10336 fi
10337 ;;
10338
10339 hpux11*)
10340 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10341 case $host_cpu in
10342 hppa*64*)
10343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 ;;
10345 ia64*)
10346 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 *)
10349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 esac
10352 else
10353 case $host_cpu in
10354 hppa*64*)
10355 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 ia64*)
10358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10359 ;;
10360 *)
10361
10362 # Older versions of the 11.00 compiler do not understand -b yet
10363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10365 $as_echo_n "checking if $CC understands -b... " >&6; }
10366 if ${lt_cv_prog_compiler__b+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 lt_cv_prog_compiler__b=no
10370 save_LDFLAGS="$LDFLAGS"
10371 LDFLAGS="$LDFLAGS -b"
10372 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10374 # The linker can only warn and ignore the option if not recognized
10375 # So say no if there are warnings
10376 if test -s conftest.err; then
10377 # Append any errors to the config.log.
10378 cat conftest.err 1>&5
10379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10381 if diff conftest.exp conftest.er2 >/dev/null; then
10382 lt_cv_prog_compiler__b=yes
10383 fi
10384 else
10385 lt_cv_prog_compiler__b=yes
10386 fi
10387 fi
10388 $RM -r conftest*
10389 LDFLAGS="$save_LDFLAGS"
10390
10391 fi
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10393 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10394
10395 if test x"$lt_cv_prog_compiler__b" = xyes; then
10396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10397 else
10398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10399 fi
10400
10401 ;;
10402 esac
10403 fi
10404 if test "$with_gnu_ld" = no; then
10405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10406 hardcode_libdir_separator=:
10407
10408 case $host_cpu in
10409 hppa*64*|ia64*)
10410 hardcode_direct=no
10411 hardcode_shlibpath_var=no
10412 ;;
10413 *)
10414 hardcode_direct=yes
10415 hardcode_direct_absolute=yes
10416 export_dynamic_flag_spec='${wl}-E'
10417
10418 # hardcode_minus_L: Not really in the search PATH,
10419 # but as the default location of the library.
10420 hardcode_minus_L=yes
10421 ;;
10422 esac
10423 fi
10424 ;;
10425
10426 irix5* | irix6* | nonstopux*)
10427 if test "$GCC" = yes; then
10428 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'
10429 # Try to use the -exported_symbol ld option, if it does not
10430 # work, assume that -exports_file does not work either and
10431 # implicitly export all symbols.
10432 save_LDFLAGS="$LDFLAGS"
10433 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 int foo(void) {}
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 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'
10440
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LDFLAGS="$save_LDFLAGS"
10445 else
10446 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'
10447 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'
10448 fi
10449 archive_cmds_need_lc='no'
10450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10451 hardcode_libdir_separator=:
10452 inherit_rpath=yes
10453 link_all_deplibs=yes
10454 ;;
10455
10456 netbsd*)
10457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10459 else
10460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10461 fi
10462 hardcode_libdir_flag_spec='-R$libdir'
10463 hardcode_direct=yes
10464 hardcode_shlibpath_var=no
10465 ;;
10466
10467 newsos6)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=yes
10470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10471 hardcode_libdir_separator=:
10472 hardcode_shlibpath_var=no
10473 ;;
10474
10475 *nto* | *qnx*)
10476 ;;
10477
10478 openbsd*)
10479 if test -f /usr/libexec/ld.so; then
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 hardcode_direct_absolute=yes
10483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10487 export_dynamic_flag_spec='${wl}-E'
10488 else
10489 case $host_os in
10490 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10492 hardcode_libdir_flag_spec='-R$libdir'
10493 ;;
10494 *)
10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497 ;;
10498 esac
10499 fi
10500 else
10501 ld_shlibs=no
10502 fi
10503 ;;
10504
10505 os2*)
10506 hardcode_libdir_flag_spec='-L$libdir'
10507 hardcode_minus_L=yes
10508 allow_undefined_flag=unsupported
10509 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'
10510 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10511 ;;
10512
10513 osf3*)
10514 if test "$GCC" = yes; then
10515 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10516 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'
10517 else
10518 allow_undefined_flag=' -expect_unresolved \*'
10519 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'
10520 fi
10521 archive_cmds_need_lc='no'
10522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10523 hardcode_libdir_separator=:
10524 ;;
10525
10526 osf4* | osf5*) # as osf3* with the addition of -msym flag
10527 if test "$GCC" = yes; then
10528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10529 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'
10530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10531 else
10532 allow_undefined_flag=' -expect_unresolved \*'
10533 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'
10534 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~
10535 $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'
10536
10537 # Both c and cxx compiler support -rpath directly
10538 hardcode_libdir_flag_spec='-rpath $libdir'
10539 fi
10540 archive_cmds_need_lc='no'
10541 hardcode_libdir_separator=:
10542 ;;
10543
10544 solaris*)
10545 no_undefined_flag=' -z defs'
10546 if test "$GCC" = yes; then
10547 wlarc='${wl}'
10548 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10549 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10550 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10551 else
10552 case `$CC -V 2>&1` in
10553 *"Compilers 5.0"*)
10554 wlarc=''
10555 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10557 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10558 ;;
10559 *)
10560 wlarc='${wl}'
10561 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10563 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10564 ;;
10565 esac
10566 fi
10567 hardcode_libdir_flag_spec='-R$libdir'
10568 hardcode_shlibpath_var=no
10569 case $host_os in
10570 solaris2.[0-5] | solaris2.[0-5].*) ;;
10571 *)
10572 # The compiler driver will combine and reorder linker options,
10573 # but understands `-z linker_flag'. GCC discards it without `$wl',
10574 # but is careful enough not to reorder.
10575 # Supported since Solaris 2.6 (maybe 2.5.1?)
10576 if test "$GCC" = yes; then
10577 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10578 else
10579 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10580 fi
10581 ;;
10582 esac
10583 link_all_deplibs=yes
10584 ;;
10585
10586 sunos4*)
10587 if test "x$host_vendor" = xsequent; then
10588 # Use $CC to link under sequent, because it throws in some extra .o
10589 # files that make .init and .fini sections work.
10590 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10591 else
10592 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10593 fi
10594 hardcode_libdir_flag_spec='-L$libdir'
10595 hardcode_direct=yes
10596 hardcode_minus_L=yes
10597 hardcode_shlibpath_var=no
10598 ;;
10599
10600 sysv4)
10601 case $host_vendor in
10602 sni)
10603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=yes # is this really true???
10605 ;;
10606 siemens)
10607 ## LD is ld it makes a PLAMLIB
10608 ## CC just makes a GrossModule.
10609 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10610 reload_cmds='$CC -r -o $output$reload_objs'
10611 hardcode_direct=no
10612 ;;
10613 motorola)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10616 ;;
10617 esac
10618 runpath_var='LD_RUN_PATH'
10619 hardcode_shlibpath_var=no
10620 ;;
10621
10622 sysv4.3*)
10623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_shlibpath_var=no
10625 export_dynamic_flag_spec='-Bexport'
10626 ;;
10627
10628 sysv4*MP*)
10629 if test -d /usr/nec; then
10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_shlibpath_var=no
10632 runpath_var=LD_RUN_PATH
10633 hardcode_runpath_var=yes
10634 ld_shlibs=yes
10635 fi
10636 ;;
10637
10638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10639 no_undefined_flag='${wl}-z,text'
10640 archive_cmds_need_lc=no
10641 hardcode_shlibpath_var=no
10642 runpath_var='LD_RUN_PATH'
10643
10644 if test "$GCC" = yes; then
10645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 else
10648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 fi
10651 ;;
10652
10653 sysv5* | sco3.2v5* | sco5v6*)
10654 # Note: We can NOT use -z defs as we might desire, because we do not
10655 # link with -lc, and that would cause any symbols used from libc to
10656 # always be unresolved, which means just about no library would
10657 # ever link correctly. If we're not using GNU ld we use -z text
10658 # though, which does catch some bad symbols but isn't as heavy-handed
10659 # as -z defs.
10660 no_undefined_flag='${wl}-z,text'
10661 allow_undefined_flag='${wl}-z,nodefs'
10662 archive_cmds_need_lc=no
10663 hardcode_shlibpath_var=no
10664 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10665 hardcode_libdir_separator=':'
10666 link_all_deplibs=yes
10667 export_dynamic_flag_spec='${wl}-Bexport'
10668 runpath_var='LD_RUN_PATH'
10669
10670 if test "$GCC" = yes; then
10671 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 else
10674 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 fi
10677 ;;
10678
10679 uts4*)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 *)
10686 ld_shlibs=no
10687 ;;
10688 esac
10689
10690 if test x$host_vendor = xsni; then
10691 case $host in
10692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10693 export_dynamic_flag_spec='${wl}-Blargedynsym'
10694 ;;
10695 esac
10696 fi
10697 fi
10698
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10700 $as_echo "$ld_shlibs" >&6; }
10701 test "$ld_shlibs" = no && can_build_shared=no
10702
10703 with_gnu_ld=$with_gnu_ld
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719 #
10720 # Do we need to explicitly link libc?
10721 #
10722 case "x$archive_cmds_need_lc" in
10723 x|xyes)
10724 # Assume -lc should be added
10725 archive_cmds_need_lc=yes
10726
10727 if test "$enable_shared" = yes && test "$GCC" = yes; then
10728 case $archive_cmds in
10729 *'~'*)
10730 # FIXME: we may have to deal with multi-command sequences.
10731 ;;
10732 '$CC '*)
10733 # Test whether the compiler implicitly links with -lc since on some
10734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10735 # to ld, don't add -lc before -lgcc.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10737 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10738 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 $RM conftest*
10742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10743
10744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10745 (eval $ac_compile) 2>&5
10746 ac_status=$?
10747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10748 test $ac_status = 0; } 2>conftest.err; then
10749 soname=conftest
10750 lib=conftest
10751 libobjs=conftest.$ac_objext
10752 deplibs=
10753 wl=$lt_prog_compiler_wl
10754 pic_flag=$lt_prog_compiler_pic
10755 compiler_flags=-v
10756 linker_flags=-v
10757 verstring=
10758 output_objdir=.
10759 libname=conftest
10760 lt_save_allow_undefined_flag=$allow_undefined_flag
10761 allow_undefined_flag=
10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10763 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10764 ac_status=$?
10765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; }
10767 then
10768 lt_cv_archive_cmds_need_lc=no
10769 else
10770 lt_cv_archive_cmds_need_lc=yes
10771 fi
10772 allow_undefined_flag=$lt_save_allow_undefined_flag
10773 else
10774 cat conftest.err 1>&5
10775 fi
10776 $RM conftest*
10777
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10780 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10781 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10782 ;;
10783 esac
10784 fi
10785 ;;
10786 esac
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10946
10947 if test "$GCC" = yes; then
10948 case $host_os in
10949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10950 *) lt_awk_arg="/^libraries:/" ;;
10951 esac
10952 case $host_os in
10953 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10954 *) lt_sed_strip_eq="s,=/,/,g" ;;
10955 esac
10956 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10957 case $lt_search_path_spec in
10958 *\;*)
10959 # if the path contains ";" then we assume it to be the separator
10960 # otherwise default to the standard path separator (i.e. ":") - it is
10961 # assumed that no part of a normal pathname contains ";" but that should
10962 # okay in the real world where ";" in dirpaths is itself problematic.
10963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10964 ;;
10965 *)
10966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10967 ;;
10968 esac
10969 # Ok, now we have the path, separated by spaces, we can step through it
10970 # and add multilib dir if necessary.
10971 lt_tmp_lt_search_path_spec=
10972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10973 for lt_sys_path in $lt_search_path_spec; do
10974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10976 else
10977 test -d "$lt_sys_path" && \
10978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10979 fi
10980 done
10981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10982 BEGIN {RS=" "; FS="/|\n";} {
10983 lt_foo="";
10984 lt_count=0;
10985 for (lt_i = NF; lt_i > 0; lt_i--) {
10986 if ($lt_i != "" && $lt_i != ".") {
10987 if ($lt_i == "..") {
10988 lt_count++;
10989 } else {
10990 if (lt_count == 0) {
10991 lt_foo="/" $lt_i lt_foo;
10992 } else {
10993 lt_count--;
10994 }
10995 }
10996 }
10997 }
10998 if (lt_foo != "") { lt_freq[lt_foo]++; }
10999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11000 }'`
11001 # AWK program above erroneously prepends '/' to C:/dos/paths
11002 # for these hosts.
11003 case $host_os in
11004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11005 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11006 esac
11007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11008 else
11009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11010 fi
11011 library_names_spec=
11012 libname_spec='lib$name'
11013 soname_spec=
11014 shrext_cmds=".so"
11015 postinstall_cmds=
11016 postuninstall_cmds=
11017 finish_cmds=
11018 finish_eval=
11019 shlibpath_var=
11020 shlibpath_overrides_runpath=unknown
11021 version_type=none
11022 dynamic_linker="$host_os ld.so"
11023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11024 need_lib_prefix=unknown
11025 hardcode_into_libs=no
11026
11027 # when you set need_version to no, make sure it does not cause -set_version
11028 # flags to be left without arguments
11029 need_version=unknown
11030
11031 case $host_os in
11032 aix3*)
11033 version_type=linux
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11035 shlibpath_var=LIBPATH
11036
11037 # AIX 3 has no versioning support, so we append a major version to the name.
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 ;;
11040
11041 aix[4-9]*)
11042 version_type=linux
11043 need_lib_prefix=no
11044 need_version=no
11045 hardcode_into_libs=yes
11046 if test "$host_cpu" = ia64; then
11047 # AIX 5 supports IA64
11048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 else
11051 # With GCC up to 2.95.x, collect2 would create an import file
11052 # for dependence libraries. The import file would start with
11053 # the line `#! .'. This would cause the generated library to
11054 # depend on `.', always an invalid library. This was fixed in
11055 # development snapshots of GCC prior to 3.0.
11056 case $host_os in
11057 aix4 | aix4.[01] | aix4.[01].*)
11058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11059 echo ' yes '
11060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11061 :
11062 else
11063 can_build_shared=no
11064 fi
11065 ;;
11066 esac
11067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11068 # soname into executable. Probably we can add versioning support to
11069 # collect2, so additional links can be useful in future.
11070 if test "$aix_use_runtimelinking" = yes; then
11071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11072 # instead of lib<name>.a to let people know that these are not
11073 # typical AIX shared libraries.
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 else
11076 # We preserve .a as extension for shared libraries through AIX4.2
11077 # and later when we are not doing run time linking.
11078 library_names_spec='${libname}${release}.a $libname.a'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 fi
11081 shlibpath_var=LIBPATH
11082 fi
11083 ;;
11084
11085 amigaos*)
11086 case $host_cpu in
11087 powerpc)
11088 # Since July 2007 AmigaOS4 officially supports .so libraries.
11089 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 ;;
11092 m68k)
11093 library_names_spec='$libname.ixlibrary $libname.a'
11094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11095 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'
11096 ;;
11097 esac
11098 ;;
11099
11100 beos*)
11101 library_names_spec='${libname}${shared_ext}'
11102 dynamic_linker="$host_os ld.so"
11103 shlibpath_var=LIBRARY_PATH
11104 ;;
11105
11106 bsdi[45]*)
11107 version_type=linux
11108 need_version=no
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11115 # the default ld.so.conf also contains /usr/contrib/lib and
11116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11117 # libtool to hard-code these into programs
11118 ;;
11119
11120 cygwin* | mingw* | pw32* | cegcc*)
11121 version_type=windows
11122 shrext_cmds=".dll"
11123 need_version=no
11124 need_lib_prefix=no
11125
11126 case $GCC,$host_os in
11127 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11128 library_names_spec='$libname.dll.a'
11129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11130 postinstall_cmds='base_file=`basename \${file}`~
11131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11132 dldir=$destdir/`dirname \$dlpath`~
11133 test -d \$dldir || mkdir -p \$dldir~
11134 $install_prog $dir/$dlname \$dldir/$dlname~
11135 chmod a+x \$dldir/$dlname~
11136 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11137 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11138 fi'
11139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11140 dlpath=$dir/\$dldll~
11141 $RM \$dlpath'
11142 shlibpath_overrides_runpath=yes
11143
11144 case $host_os in
11145 cygwin*)
11146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11148
11149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11150 ;;
11151 mingw* | cegcc*)
11152 # MinGW DLLs use traditional 'lib' prefix
11153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11154 ;;
11155 pw32*)
11156 # pw32 DLLs use 'pw' prefix rather than 'lib'
11157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158 ;;
11159 esac
11160 ;;
11161
11162 *)
11163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11164 ;;
11165 esac
11166 dynamic_linker='Win32 ld.exe'
11167 # FIXME: first we should search . and the directory the executable is in
11168 shlibpath_var=PATH
11169 ;;
11170
11171 darwin* | rhapsody*)
11172 dynamic_linker="$host_os dyld"
11173 version_type=darwin
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11177 soname_spec='${libname}${release}${major}$shared_ext'
11178 shlibpath_overrides_runpath=yes
11179 shlibpath_var=DYLD_LIBRARY_PATH
11180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11181
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11184 ;;
11185
11186 dgux*)
11187 version_type=linux
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 ;;
11194
11195 freebsd* | dragonfly*)
11196 # DragonFly does not have aout. When/if they implement a new
11197 # versioning mechanism, adjust this.
11198 if test -x /usr/bin/objformat; then
11199 objformat=`/usr/bin/objformat`
11200 else
11201 case $host_os in
11202 freebsd[23].*) objformat=aout ;;
11203 *) objformat=elf ;;
11204 esac
11205 fi
11206 version_type=freebsd-$objformat
11207 case $version_type in
11208 freebsd-elf*)
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210 need_version=no
11211 need_lib_prefix=no
11212 ;;
11213 freebsd-*)
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11215 need_version=yes
11216 ;;
11217 esac
11218 shlibpath_var=LD_LIBRARY_PATH
11219 case $host_os in
11220 freebsd2.*)
11221 shlibpath_overrides_runpath=yes
11222 ;;
11223 freebsd3.[01]* | freebsdelf3.[01]*)
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11226 ;;
11227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11229 shlibpath_overrides_runpath=no
11230 hardcode_into_libs=yes
11231 ;;
11232 *) # from 4.6 on, and DragonFly
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 ;;
11236 esac
11237 ;;
11238
11239 haiku*)
11240 version_type=linux
11241 need_lib_prefix=no
11242 need_version=no
11243 dynamic_linker="$host_os runtime_loader"
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 shlibpath_var=LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11249 hardcode_into_libs=yes
11250 ;;
11251
11252 hpux9* | hpux10* | hpux11*)
11253 # Give a soname corresponding to the major version so that dld.sl refuses to
11254 # link against other versions.
11255 version_type=sunos
11256 need_lib_prefix=no
11257 need_version=no
11258 case $host_cpu in
11259 ia64*)
11260 shrext_cmds='.so'
11261 hardcode_into_libs=yes
11262 dynamic_linker="$host_os dld.so"
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 if test "X$HPUX_IA64_MODE" = X32; then
11268 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11269 else
11270 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11271 fi
11272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11273 ;;
11274 hppa*64*)
11275 shrext_cmds='.sl'
11276 hardcode_into_libs=yes
11277 dynamic_linker="$host_os dld.sl"
11278 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11284 ;;
11285 *)
11286 shrext_cmds='.sl'
11287 dynamic_linker="$host_os dld.sl"
11288 shlibpath_var=SHLIB_PATH
11289 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 ;;
11293 esac
11294 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11295 postinstall_cmds='chmod 555 $lib'
11296 # or fails outright, so override atomically:
11297 install_override_mode=555
11298 ;;
11299
11300 interix[3-9]*)
11301 version_type=linux
11302 need_lib_prefix=no
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11310 ;;
11311
11312 irix5* | irix6* | nonstopux*)
11313 case $host_os in
11314 nonstopux*) version_type=nonstopux ;;
11315 *)
11316 if test "$lt_cv_prog_gnu_ld" = yes; then
11317 version_type=linux
11318 else
11319 version_type=irix
11320 fi ;;
11321 esac
11322 need_lib_prefix=no
11323 need_version=no
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11326 case $host_os in
11327 irix5* | nonstopux*)
11328 libsuff= shlibsuff=
11329 ;;
11330 *)
11331 case $LD in # libtool.m4 will add one of these switches to LD
11332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11333 libsuff= shlibsuff= libmagic=32-bit;;
11334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11335 libsuff=32 shlibsuff=N32 libmagic=N32;;
11336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11338 *) libsuff= shlibsuff= libmagic=never-match;;
11339 esac
11340 ;;
11341 esac
11342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11343 shlibpath_overrides_runpath=no
11344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11346 hardcode_into_libs=yes
11347 ;;
11348
11349 # No shared lib support for Linux oldld, aout, or coff.
11350 linux*oldld* | linux*aout* | linux*coff*)
11351 dynamic_linker=no
11352 ;;
11353
11354 # This must be Linux ELF.
11355 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=no
11364
11365 # Some binutils ld are patched to set DT_RUNPATH
11366 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 lt_cv_shlibpath_overrides_runpath=no
11370 save_LDFLAGS=$LDFLAGS
11371 save_libdir=$libdir
11372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 int
11378 main ()
11379 {
11380
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11387 lt_cv_shlibpath_overrides_runpath=yes
11388 fi
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LDFLAGS=$save_LDFLAGS
11393 libdir=$save_libdir
11394
11395 fi
11396
11397 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11398
11399 # This implies no fast_install, which is unacceptable.
11400 # Some rework will be needed to allow for fast_install
11401 # before this can be enabled.
11402 hardcode_into_libs=yes
11403
11404 # Append ld.so.conf contents to the search path
11405 if test -f /etc/ld.so.conf; then
11406 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' ' '`
11407 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11408 fi
11409
11410 # We used to test for /lib/ld.so.1 and disable shared libraries on
11411 # powerpc, because MkLinux only supported shared libraries with the
11412 # GNU dynamic linker. Since this was broken with cross compilers,
11413 # most powerpc-linux boxes support dynamic linking these days and
11414 # people can always --disable-shared, the test was removed, and we
11415 # assume the GNU/Linux dynamic linker is in use.
11416 dynamic_linker='GNU/Linux ld.so'
11417 ;;
11418
11419 netbsd*)
11420 version_type=sunos
11421 need_lib_prefix=no
11422 need_version=no
11423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11426 dynamic_linker='NetBSD (a.out) ld.so'
11427 else
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 dynamic_linker='NetBSD ld.elf_so'
11431 fi
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 hardcode_into_libs=yes
11435 ;;
11436
11437 newsos6)
11438 version_type=linux
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes
11442 ;;
11443
11444 *nto* | *qnx*)
11445 version_type=qnx
11446 need_lib_prefix=no
11447 need_version=no
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=no
11452 hardcode_into_libs=yes
11453 dynamic_linker='ldqnx.so'
11454 ;;
11455
11456 openbsd*)
11457 version_type=sunos
11458 sys_lib_dlsearch_path_spec="/usr/lib"
11459 need_lib_prefix=no
11460 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11461 case $host_os in
11462 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11463 *) need_version=no ;;
11464 esac
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11469 case $host_os in
11470 openbsd2.[89] | openbsd2.[89].*)
11471 shlibpath_overrides_runpath=no
11472 ;;
11473 *)
11474 shlibpath_overrides_runpath=yes
11475 ;;
11476 esac
11477 else
11478 shlibpath_overrides_runpath=yes
11479 fi
11480 ;;
11481
11482 os2*)
11483 libname_spec='$name'
11484 shrext_cmds=".dll"
11485 need_lib_prefix=no
11486 library_names_spec='$libname${shared_ext} $libname.a'
11487 dynamic_linker='OS/2 ld.exe'
11488 shlibpath_var=LIBPATH
11489 ;;
11490
11491 osf3* | osf4* | osf5*)
11492 version_type=osf
11493 need_lib_prefix=no
11494 need_version=no
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11500 ;;
11501
11502 rdos*)
11503 dynamic_linker=no
11504 ;;
11505
11506 solaris*)
11507 version_type=linux
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11515 # ldd complains unless libraries are executable
11516 postinstall_cmds='chmod +x $lib'
11517 ;;
11518
11519 sunos4*)
11520 version_type=sunos
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 if test "$with_gnu_ld" = yes; then
11526 need_lib_prefix=no
11527 fi
11528 need_version=yes
11529 ;;
11530
11531 sysv4 | sysv4.3*)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 case $host_vendor in
11537 sni)
11538 shlibpath_overrides_runpath=no
11539 need_lib_prefix=no
11540 runpath_var=LD_RUN_PATH
11541 ;;
11542 siemens)
11543 need_lib_prefix=no
11544 ;;
11545 motorola)
11546 need_lib_prefix=no
11547 need_version=no
11548 shlibpath_overrides_runpath=no
11549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11550 ;;
11551 esac
11552 ;;
11553
11554 sysv4*MP*)
11555 if test -d /usr/nec ;then
11556 version_type=linux
11557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11558 soname_spec='$libname${shared_ext}.$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 fi
11561 ;;
11562
11563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11564 version_type=freebsd-elf
11565 need_lib_prefix=no
11566 need_version=no
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11571 hardcode_into_libs=yes
11572 if test "$with_gnu_ld" = yes; then
11573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11574 else
11575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11576 case $host_os in
11577 sco3.2v5*)
11578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11579 ;;
11580 esac
11581 fi
11582 sys_lib_dlsearch_path_spec='/usr/lib'
11583 ;;
11584
11585 tpf*)
11586 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11587 version_type=linux
11588 need_lib_prefix=no
11589 need_version=no
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=no
11593 hardcode_into_libs=yes
11594 ;;
11595
11596 uts4*)
11597 version_type=linux
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 ;;
11602
11603 *)
11604 dynamic_linker=no
11605 ;;
11606 esac
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11608 $as_echo "$dynamic_linker" >&6; }
11609 test "$dynamic_linker" = no && can_build_shared=no
11610
11611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11612 if test "$GCC" = yes; then
11613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11614 fi
11615
11616 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11617 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11618 fi
11619 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11620 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11621 fi
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11715 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11716 hardcode_action=
11717 if test -n "$hardcode_libdir_flag_spec" ||
11718 test -n "$runpath_var" ||
11719 test "X$hardcode_automatic" = "Xyes" ; then
11720
11721 # We can hardcode non-existent directories.
11722 if test "$hardcode_direct" != no &&
11723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11724 # have to relink, otherwise we might link with an installed library
11725 # when we should be linking with a yet-to-be-installed one
11726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11727 test "$hardcode_minus_L" != no; then
11728 # Linking always hardcodes the temporary library directory.
11729 hardcode_action=relink
11730 else
11731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11732 hardcode_action=immediate
11733 fi
11734 else
11735 # We cannot hardcode anything, or else we can only hardcode existing
11736 # directories.
11737 hardcode_action=unsupported
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11740 $as_echo "$hardcode_action" >&6; }
11741
11742 if test "$hardcode_action" = relink ||
11743 test "$inherit_rpath" = yes; then
11744 # Fast installation is not supported
11745 enable_fast_install=no
11746 elif test "$shlibpath_overrides_runpath" = yes ||
11747 test "$enable_shared" = no; then
11748 # Fast installation is not necessary
11749 enable_fast_install=needless
11750 fi
11751
11752
11753
11754
11755
11756
11757 if test "x$enable_dlopen" != xyes; then
11758 enable_dlopen=unknown
11759 enable_dlopen_self=unknown
11760 enable_dlopen_self_static=unknown
11761 else
11762 lt_cv_dlopen=no
11763 lt_cv_dlopen_libs=
11764
11765 case $host_os in
11766 beos*)
11767 lt_cv_dlopen="load_add_on"
11768 lt_cv_dlopen_libs=
11769 lt_cv_dlopen_self=yes
11770 ;;
11771
11772 mingw* | pw32* | cegcc*)
11773 lt_cv_dlopen="LoadLibrary"
11774 lt_cv_dlopen_libs=
11775 ;;
11776
11777 cygwin*)
11778 lt_cv_dlopen="dlopen"
11779 lt_cv_dlopen_libs=
11780 ;;
11781
11782 darwin*)
11783 # if libdl is installed we need to link against it
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11785 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11786 if ${ac_cv_lib_dl_dlopen+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ldl $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char dlopen ();
11801 int
11802 main ()
11803 {
11804 return dlopen ();
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dl_dlopen=yes
11811 else
11812 ac_cv_lib_dl_dlopen=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11819 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11820 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11822 else
11823
11824 lt_cv_dlopen="dyld"
11825 lt_cv_dlopen_libs=
11826 lt_cv_dlopen_self=yes
11827
11828 fi
11829
11830 ;;
11831
11832 *)
11833 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11834 if test "x$ac_cv_func_shl_load" = xyes; then :
11835 lt_cv_dlopen="shl_load"
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11838 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11839 if ${ac_cv_lib_dld_shl_load+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-ldld $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char shl_load ();
11854 int
11855 main ()
11856 {
11857 return shl_load ();
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_dld_shl_load=yes
11864 else
11865 ac_cv_lib_dld_shl_load=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11872 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11873 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11874 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11875 else
11876 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11877 if test "x$ac_cv_func_dlopen" = xyes; then :
11878 lt_cv_dlopen="dlopen"
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11882 if ${ac_cv_lib_dl_dlopen+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ldl $LIBS"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char dlopen ();
11897 int
11898 main ()
11899 {
11900 return dlopen ();
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_dl_dlopen=yes
11907 else
11908 ac_cv_lib_dl_dlopen=no
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11915 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11916 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11920 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11921 if ${ac_cv_lib_svld_dlopen+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-lsvld $LIBS"
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 char dlopen ();
11936 int
11937 main ()
11938 {
11939 return dlopen ();
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 if ac_fn_c_try_link "$LINENO"; then :
11945 ac_cv_lib_svld_dlopen=yes
11946 else
11947 ac_cv_lib_svld_dlopen=no
11948 fi
11949 rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11954 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11955 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11959 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11960 if ${ac_cv_lib_dld_dld_link+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-ldld $LIBS"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char dld_link ();
11975 int
11976 main ()
11977 {
11978 return dld_link ();
11979 ;
11980 return 0;
11981 }
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_lib_dld_dld_link=yes
11985 else
11986 ac_cv_lib_dld_dld_link=no
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11993 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11994 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11995 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11996 fi
11997
11998
11999 fi
12000
12001
12002 fi
12003
12004
12005 fi
12006
12007
12008 fi
12009
12010
12011 fi
12012
12013 ;;
12014 esac
12015
12016 if test "x$lt_cv_dlopen" != xno; then
12017 enable_dlopen=yes
12018 else
12019 enable_dlopen=no
12020 fi
12021
12022 case $lt_cv_dlopen in
12023 dlopen)
12024 save_CPPFLAGS="$CPPFLAGS"
12025 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12026
12027 save_LDFLAGS="$LDFLAGS"
12028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12029
12030 save_LIBS="$LIBS"
12031 LIBS="$lt_cv_dlopen_libs $LIBS"
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12034 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12035 if ${lt_cv_dlopen_self+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 if test "$cross_compiling" = yes; then :
12039 lt_cv_dlopen_self=cross
12040 else
12041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12042 lt_status=$lt_dlunknown
12043 cat > conftest.$ac_ext <<_LT_EOF
12044 #line 12044 "configure"
12045 #include "confdefs.h"
12046
12047 #if HAVE_DLFCN_H
12048 #include <dlfcn.h>
12049 #endif
12050
12051 #include <stdio.h>
12052
12053 #ifdef RTLD_GLOBAL
12054 # define LT_DLGLOBAL RTLD_GLOBAL
12055 #else
12056 # ifdef DL_GLOBAL
12057 # define LT_DLGLOBAL DL_GLOBAL
12058 # else
12059 # define LT_DLGLOBAL 0
12060 # endif
12061 #endif
12062
12063 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12064 find out it does not work in some platform. */
12065 #ifndef LT_DLLAZY_OR_NOW
12066 # ifdef RTLD_LAZY
12067 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12068 # else
12069 # ifdef DL_LAZY
12070 # define LT_DLLAZY_OR_NOW DL_LAZY
12071 # else
12072 # ifdef RTLD_NOW
12073 # define LT_DLLAZY_OR_NOW RTLD_NOW
12074 # else
12075 # ifdef DL_NOW
12076 # define LT_DLLAZY_OR_NOW DL_NOW
12077 # else
12078 # define LT_DLLAZY_OR_NOW 0
12079 # endif
12080 # endif
12081 # endif
12082 # endif
12083 #endif
12084
12085 /* When -fvisbility=hidden is used, assume the code has been annotated
12086 correspondingly for the symbols needed. */
12087 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12088 void fnord () __attribute__((visibility("default")));
12089 #endif
12090
12091 void fnord () { int i=42; }
12092 int main ()
12093 {
12094 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12095 int status = $lt_dlunknown;
12096
12097 if (self)
12098 {
12099 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12100 else
12101 {
12102 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12103 else puts (dlerror ());
12104 }
12105 /* dlclose (self); */
12106 }
12107 else
12108 puts (dlerror ());
12109
12110 return status;
12111 }
12112 _LT_EOF
12113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12117 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12118 (./conftest; exit; ) >&5 2>/dev/null
12119 lt_status=$?
12120 case x$lt_status in
12121 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12122 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12123 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12124 esac
12125 else :
12126 # compilation failed
12127 lt_cv_dlopen_self=no
12128 fi
12129 fi
12130 rm -fr conftest*
12131
12132
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12135 $as_echo "$lt_cv_dlopen_self" >&6; }
12136
12137 if test "x$lt_cv_dlopen_self" = xyes; then
12138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12140 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12141 if ${lt_cv_dlopen_self_static+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test "$cross_compiling" = yes; then :
12145 lt_cv_dlopen_self_static=cross
12146 else
12147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12148 lt_status=$lt_dlunknown
12149 cat > conftest.$ac_ext <<_LT_EOF
12150 #line 12150 "configure"
12151 #include "confdefs.h"
12152
12153 #if HAVE_DLFCN_H
12154 #include <dlfcn.h>
12155 #endif
12156
12157 #include <stdio.h>
12158
12159 #ifdef RTLD_GLOBAL
12160 # define LT_DLGLOBAL RTLD_GLOBAL
12161 #else
12162 # ifdef DL_GLOBAL
12163 # define LT_DLGLOBAL DL_GLOBAL
12164 # else
12165 # define LT_DLGLOBAL 0
12166 # endif
12167 #endif
12168
12169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12170 find out it does not work in some platform. */
12171 #ifndef LT_DLLAZY_OR_NOW
12172 # ifdef RTLD_LAZY
12173 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12174 # else
12175 # ifdef DL_LAZY
12176 # define LT_DLLAZY_OR_NOW DL_LAZY
12177 # else
12178 # ifdef RTLD_NOW
12179 # define LT_DLLAZY_OR_NOW RTLD_NOW
12180 # else
12181 # ifdef DL_NOW
12182 # define LT_DLLAZY_OR_NOW DL_NOW
12183 # else
12184 # define LT_DLLAZY_OR_NOW 0
12185 # endif
12186 # endif
12187 # endif
12188 # endif
12189 #endif
12190
12191 /* When -fvisbility=hidden is used, assume the code has been annotated
12192 correspondingly for the symbols needed. */
12193 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12194 void fnord () __attribute__((visibility("default")));
12195 #endif
12196
12197 void fnord () { int i=42; }
12198 int main ()
12199 {
12200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12201 int status = $lt_dlunknown;
12202
12203 if (self)
12204 {
12205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12206 else
12207 {
12208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12209 else puts (dlerror ());
12210 }
12211 /* dlclose (self); */
12212 }
12213 else
12214 puts (dlerror ());
12215
12216 return status;
12217 }
12218 _LT_EOF
12219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12224 (./conftest; exit; ) >&5 2>/dev/null
12225 lt_status=$?
12226 case x$lt_status in
12227 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12228 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12229 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12230 esac
12231 else :
12232 # compilation failed
12233 lt_cv_dlopen_self_static=no
12234 fi
12235 fi
12236 rm -fr conftest*
12237
12238
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12241 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12242 fi
12243
12244 CPPFLAGS="$save_CPPFLAGS"
12245 LDFLAGS="$save_LDFLAGS"
12246 LIBS="$save_LIBS"
12247 ;;
12248 esac
12249
12250 case $lt_cv_dlopen_self in
12251 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12252 *) enable_dlopen_self=unknown ;;
12253 esac
12254
12255 case $lt_cv_dlopen_self_static in
12256 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12257 *) enable_dlopen_self_static=unknown ;;
12258 esac
12259 fi
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277 striplib=
12278 old_striplib=
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12280 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12281 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12282 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12283 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286 else
12287 # FIXME - insert some real tests, host_os isn't really good enough
12288 case $host_os in
12289 darwin*)
12290 if test -n "$STRIP" ; then
12291 striplib="$STRIP -x"
12292 old_striplib="$STRIP -S"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298 fi
12299 ;;
12300 *)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 ;;
12304 esac
12305 fi
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318 # Report which library types will actually be built
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12320 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12322 $as_echo "$can_build_shared" >&6; }
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12325 $as_echo_n "checking whether to build shared libraries... " >&6; }
12326 test "$can_build_shared" = "no" && enable_shared=no
12327
12328 # On AIX, shared libraries and static libraries use the same namespace, and
12329 # are all built from PIC.
12330 case $host_os in
12331 aix3*)
12332 test "$enable_shared" = yes && enable_static=no
12333 if test -n "$RANLIB"; then
12334 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12335 postinstall_cmds='$RANLIB $lib'
12336 fi
12337 ;;
12338
12339 aix[4-9]*)
12340 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12341 test "$enable_shared" = yes && enable_static=no
12342 fi
12343 ;;
12344 esac
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12346 $as_echo "$enable_shared" >&6; }
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12349 $as_echo_n "checking whether to build static libraries... " >&6; }
12350 # Make sure either enable_shared or enable_static is yes.
12351 test "$enable_shared" = yes || enable_static=yes
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12353 $as_echo "$enable_static" >&6; }
12354
12355
12356
12357
12358 fi
12359 ac_ext=c
12360 ac_cpp='$CPP $CPPFLAGS'
12361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12364
12365 CC="$lt_save_CC"
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379 ac_config_commands="$ac_config_commands libtool"
12380
12381
12382
12383
12384 # Only expand once:
12385
12386
12387
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12390 $as_echo_n "checking for bind in -lsocket... " >&6; }
12391 if ${ac_cv_lib_socket_bind+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lsocket $LIBS"
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char bind ();
12406 int
12407 main ()
12408 {
12409 return bind ();
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_lib_socket_bind=yes
12416 else
12417 ac_cv_lib_socket_bind=no
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12424 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12425 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12426 cat >>confdefs.h <<_ACEOF
12427 #define HAVE_LIBSOCKET 1
12428 _ACEOF
12429
12430 LIBS="-lsocket $LIBS"
12431
12432 fi
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12435 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12436 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-lnsl $LIBS"
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char gethostbyname ();
12451 int
12452 main ()
12453 {
12454 return gethostbyname ();
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_lib_nsl_gethostbyname=yes
12461 else
12462 ac_cv_lib_nsl_gethostbyname=no
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12469 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12470 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12471 cat >>confdefs.h <<_ACEOF
12472 #define HAVE_LIBNSL 1
12473 _ACEOF
12474
12475 LIBS="-lnsl $LIBS"
12476
12477 fi
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12480 $as_echo_n "checking for fabs in -lm... " >&6; }
12481 if ${ac_cv_lib_m_fabs+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 ac_check_lib_save_LIBS=$LIBS
12485 LIBS="-lm $LIBS"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492 #ifdef __cplusplus
12493 extern "C"
12494 #endif
12495 char fabs ();
12496 int
12497 main ()
12498 {
12499 return fabs ();
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_lib_m_fabs=yes
12506 else
12507 ac_cv_lib_m_fabs=no
12508 fi
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12514 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12515 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_LIBM 1
12518 _ACEOF
12519
12520 LIBS="-lm $LIBS"
12521
12522 fi
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12525 $as_echo_n "checking for log2 in -lm... " >&6; }
12526 if ${ac_cv_lib_m_log2+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-lm $LIBS"
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char log2 ();
12541 int
12542 main ()
12543 {
12544 return log2 ();
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"; then :
12550 ac_cv_lib_m_log2=yes
12551 else
12552 ac_cv_lib_m_log2=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12559 $as_echo "$ac_cv_lib_m_log2" >&6; }
12560 if test "x$ac_cv_lib_m_log2" = xyes; then :
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_LIBM 1
12563 _ACEOF
12564
12565 LIBS="-lm $LIBS"
12566
12567 fi
12568
12569
12570
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12573 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12574 # Check whether --enable-maintainer-mode was given.
12575 if test "${enable_maintainer_mode+set}" = set; then :
12576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12577 else
12578 USE_MAINTAINER_MODE=no
12579 fi
12580
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12582 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12583 if test $USE_MAINTAINER_MODE = yes; then
12584 MAINTAINER_MODE_TRUE=
12585 MAINTAINER_MODE_FALSE='#'
12586 else
12587 MAINTAINER_MODE_TRUE='#'
12588 MAINTAINER_MODE_FALSE=
12589 fi
12590
12591 MAINT=$MAINTAINER_MODE_TRUE
12592
12593
12594 am__api_version='1.15'
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12597 $as_echo_n "checking whether build environment is sane... " >&6; }
12598 # Reject unsafe characters in $srcdir or the absolute working directory
12599 # name. Accept space and tab only in the latter.
12600 am_lf='
12601 '
12602 case `pwd` in
12603 *[\\\"\#\$\&\'\`$am_lf]*)
12604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12605 esac
12606 case $srcdir in
12607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12608 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12609 esac
12610
12611 # Do 'set' in a subshell so we don't clobber the current shell's
12612 # arguments. Must try -L first in case configure is actually a
12613 # symlink; some systems play weird games with the mod time of symlinks
12614 # (eg FreeBSD returns the mod time of the symlink's containing
12615 # directory).
12616 if (
12617 am_has_slept=no
12618 for am_try in 1 2; do
12619 echo "timestamp, slept: $am_has_slept" > conftest.file
12620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12621 if test "$*" = "X"; then
12622 # -L didn't work.
12623 set X `ls -t "$srcdir/configure" conftest.file`
12624 fi
12625 if test "$*" != "X $srcdir/configure conftest.file" \
12626 && test "$*" != "X conftest.file $srcdir/configure"; then
12627
12628 # If neither matched, then we have a broken ls. This can happen
12629 # if, for instance, CONFIG_SHELL is bash and it inherits a
12630 # broken ls alias from the environment. This has actually
12631 # happened. Such a system could not be considered "sane".
12632 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12633 alias in your environment" "$LINENO" 5
12634 fi
12635 if test "$2" = conftest.file || test $am_try -eq 2; then
12636 break
12637 fi
12638 # Just in case.
12639 sleep 1
12640 am_has_slept=yes
12641 done
12642 test "$2" = conftest.file
12643 )
12644 then
12645 # Ok.
12646 :
12647 else
12648 as_fn_error $? "newly created file is older than distributed files!
12649 Check your system clock" "$LINENO" 5
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652 $as_echo "yes" >&6; }
12653 # If we didn't sleep, we still need to ensure time stamps of config.status and
12654 # generated files are strictly newer.
12655 am_sleep_pid=
12656 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12657 ( sleep 1 ) &
12658 am_sleep_pid=$!
12659 fi
12660
12661 rm -f conftest.file
12662
12663 if test x"${MISSING+set}" != xset; then
12664 case $am_aux_dir in
12665 *\ * | *\ *)
12666 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12667 *)
12668 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12669 esac
12670 fi
12671 # Use eval to expand $SHELL
12672 if eval "$MISSING --is-lightweight"; then
12673 am_missing_run="$MISSING "
12674 else
12675 am_missing_run=
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12677 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12678 fi
12679
12680 if test x"${install_sh+set}" != xset; then
12681 case $am_aux_dir in
12682 *\ * | *\ *)
12683 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12684 *)
12685 install_sh="\${SHELL} $am_aux_dir/install-sh"
12686 esac
12687 fi
12688
12689 # Installed binaries are usually stripped using 'strip' when the user
12690 # run "make install-strip". However 'strip' might not be the right
12691 # tool to use in cross-compilation environments, therefore Automake
12692 # will honor the 'STRIP' environment variable to overrule this program.
12693 if test "$cross_compiling" != no; then
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12696 set dummy ${ac_tool_prefix}strip; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if ${ac_cv_prog_STRIP+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -n "$STRIP"; then
12703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716 done
12717 done
12718 IFS=$as_save_IFS
12719
12720 fi
12721 fi
12722 STRIP=$ac_cv_prog_STRIP
12723 if test -n "$STRIP"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12725 $as_echo "$STRIP" >&6; }
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730
12731
12732 fi
12733 if test -z "$ac_cv_prog_STRIP"; then
12734 ac_ct_STRIP=$STRIP
12735 # Extract the first word of "strip", so it can be a program name with args.
12736 set dummy strip; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 if test -n "$ac_ct_STRIP"; then
12743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12744 else
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12747 do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_prog_ac_ct_STRIP="strip"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756 done
12757 done
12758 IFS=$as_save_IFS
12759
12760 fi
12761 fi
12762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12763 if test -n "$ac_ct_STRIP"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12765 $as_echo "$ac_ct_STRIP" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770
12771 if test "x$ac_ct_STRIP" = x; then
12772 STRIP=":"
12773 else
12774 case $cross_compiling:$ac_tool_warned in
12775 yes:)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778 ac_tool_warned=yes ;;
12779 esac
12780 STRIP=$ac_ct_STRIP
12781 fi
12782 else
12783 STRIP="$ac_cv_prog_STRIP"
12784 fi
12785
12786 fi
12787 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12788
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12790 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12791 if test -z "$MKDIR_P"; then
12792 if ${ac_cv_path_mkdir+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12797 do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_prog in mkdir gmkdir; do
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12803 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12804 'mkdir (GNU coreutils) '* | \
12805 'mkdir (coreutils) '* | \
12806 'mkdir (fileutils) '4.1*)
12807 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12808 break 3;;
12809 esac
12810 done
12811 done
12812 done
12813 IFS=$as_save_IFS
12814
12815 fi
12816
12817 test -d ./--version && rmdir ./--version
12818 if test "${ac_cv_path_mkdir+set}" = set; then
12819 MKDIR_P="$ac_cv_path_mkdir -p"
12820 else
12821 # As a last resort, use the slow shell script. Don't cache a
12822 # value for MKDIR_P within a source directory, because that will
12823 # break other packages using the cache if that directory is
12824 # removed, or if the value is a relative name.
12825 MKDIR_P="$ac_install_sh -d"
12826 fi
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12829 $as_echo "$MKDIR_P" >&6; }
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12833 set x ${MAKE-make}
12834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 cat >conftest.make <<\_ACEOF
12839 SHELL = /bin/sh
12840 all:
12841 @echo '@@@%%%=$(MAKE)=@@@%%%'
12842 _ACEOF
12843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12845 *@@@%%%=?*=@@@%%%*)
12846 eval ac_cv_prog_make_${ac_make}_set=yes;;
12847 *)
12848 eval ac_cv_prog_make_${ac_make}_set=no;;
12849 esac
12850 rm -f conftest.make
12851 fi
12852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12854 $as_echo "yes" >&6; }
12855 SET_MAKE=
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 SET_MAKE="MAKE=${MAKE-make}"
12860 fi
12861
12862 rm -rf .tst 2>/dev/null
12863 mkdir .tst 2>/dev/null
12864 if test -d .tst; then
12865 am__leading_dot=.
12866 else
12867 am__leading_dot=_
12868 fi
12869 rmdir .tst 2>/dev/null
12870
12871 DEPDIR="${am__leading_dot}deps"
12872
12873 ac_config_commands="$ac_config_commands depfiles"
12874
12875
12876 am_make=${MAKE-make}
12877 cat > confinc << 'END'
12878 am__doit:
12879 @echo this is the am__doit target
12880 .PHONY: am__doit
12881 END
12882 # If we don't find an include directive, just comment out the code.
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12885 am__include="#"
12886 am__quote=
12887 _am_result=none
12888 # First try GNU make style include.
12889 echo "include confinc" > confmf
12890 # Ignore all kinds of additional output from 'make'.
12891 case `$am_make -s -f confmf 2> /dev/null` in #(
12892 *the\ am__doit\ target*)
12893 am__include=include
12894 am__quote=
12895 _am_result=GNU
12896 ;;
12897 esac
12898 # Now try BSD make style include.
12899 if test "$am__include" = "#"; then
12900 echo '.include "confinc"' > confmf
12901 case `$am_make -s -f confmf 2> /dev/null` in #(
12902 *the\ am__doit\ target*)
12903 am__include=.include
12904 am__quote="\""
12905 _am_result=BSD
12906 ;;
12907 esac
12908 fi
12909
12910
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12912 $as_echo "$_am_result" >&6; }
12913 rm -f confinc confmf
12914
12915 # Check whether --enable-dependency-tracking was given.
12916 if test "${enable_dependency_tracking+set}" = set; then :
12917 enableval=$enable_dependency_tracking;
12918 fi
12919
12920 if test "x$enable_dependency_tracking" != xno; then
12921 am_depcomp="$ac_aux_dir/depcomp"
12922 AMDEPBACKSLASH='\'
12923 am__nodep='_no'
12924 fi
12925 if test "x$enable_dependency_tracking" != xno; then
12926 AMDEP_TRUE=
12927 AMDEP_FALSE='#'
12928 else
12929 AMDEP_TRUE='#'
12930 AMDEP_FALSE=
12931 fi
12932
12933
12934 # Check whether --enable-silent-rules was given.
12935 if test "${enable_silent_rules+set}" = set; then :
12936 enableval=$enable_silent_rules;
12937 fi
12938
12939 case $enable_silent_rules in # (((
12940 yes) AM_DEFAULT_VERBOSITY=0;;
12941 no) AM_DEFAULT_VERBOSITY=1;;
12942 *) AM_DEFAULT_VERBOSITY=1;;
12943 esac
12944 am_make=${MAKE-make}
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12946 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12947 if ${am_cv_make_support_nested_variables+:} false; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 if $as_echo 'TRUE=$(BAR$(V))
12951 BAR0=false
12952 BAR1=true
12953 V=1
12954 am__doit:
12955 @$(TRUE)
12956 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12957 am_cv_make_support_nested_variables=yes
12958 else
12959 am_cv_make_support_nested_variables=no
12960 fi
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12963 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12964 if test $am_cv_make_support_nested_variables = yes; then
12965 AM_V='$(V)'
12966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12967 else
12968 AM_V=$AM_DEFAULT_VERBOSITY
12969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12970 fi
12971 AM_BACKSLASH='\'
12972
12973 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12975 # is not polluted with repeated "-I."
12976 am__isrc=' -I$(srcdir)'
12977 # test to see if srcdir already configured
12978 if test -f $srcdir/config.status; then
12979 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12980 fi
12981 fi
12982
12983 # test whether we have cygpath
12984 if test -z "$CYGPATH_W"; then
12985 if (cygpath --version) >/dev/null 2>/dev/null; then
12986 CYGPATH_W='cygpath -w'
12987 else
12988 CYGPATH_W=echo
12989 fi
12990 fi
12991
12992
12993 # Define the identity of the package.
12994 PACKAGE='sim'
12995 VERSION='0'
12996
12997
12998 cat >>confdefs.h <<_ACEOF
12999 #define PACKAGE "$PACKAGE"
13000 _ACEOF
13001
13002
13003 cat >>confdefs.h <<_ACEOF
13004 #define VERSION "$VERSION"
13005 _ACEOF
13006
13007 # Some tools Automake needs.
13008
13009 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13010
13011
13012 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13013
13014
13015 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13016
13017
13018 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13019
13020
13021 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13022
13023 # For better backward compatibility. To be removed once Automake 1.9.x
13024 # dies out for good. For more background, see:
13025 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13026 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13027 mkdir_p='$(MKDIR_P)'
13028
13029 # We need awk for the "check" target (and possibly the TAP driver). The
13030 # system "awk" is bad on some platforms.
13031 # Always define AMTAR for backward compatibility. Yes, it's still used
13032 # in the wild :-( We should find a proper way to deprecate it ...
13033 AMTAR='$${TAR-tar}'
13034
13035
13036 # We'll loop over all known methods to create a tar archive until one works.
13037 _am_tools='gnutar pax cpio none'
13038
13039 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13040
13041
13042
13043
13044
13045 depcc="$CC" am_compiler_list=
13046
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13048 $as_echo_n "checking dependency style of $depcc... " >&6; }
13049 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13053 # We make a subdir and do the tests there. Otherwise we can end up
13054 # making bogus files that we don't know about and never remove. For
13055 # instance it was reported that on HP-UX the gcc test will end up
13056 # making a dummy file named 'D' -- because '-MD' means "put the output
13057 # in D".
13058 rm -rf conftest.dir
13059 mkdir conftest.dir
13060 # Copy depcomp to subdir because otherwise we won't find it if we're
13061 # using a relative directory.
13062 cp "$am_depcomp" conftest.dir
13063 cd conftest.dir
13064 # We will build objects and dependencies in a subdirectory because
13065 # it helps to detect inapplicable dependency modes. For instance
13066 # both Tru64's cc and ICC support -MD to output dependencies as a
13067 # side effect of compilation, but ICC will put the dependencies in
13068 # the current directory while Tru64 will put them in the object
13069 # directory.
13070 mkdir sub
13071
13072 am_cv_CC_dependencies_compiler_type=none
13073 if test "$am_compiler_list" = ""; then
13074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13075 fi
13076 am__universal=false
13077 case " $depcc " in #(
13078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13079 esac
13080
13081 for depmode in $am_compiler_list; do
13082 # Setup a source with many dependencies, because some compilers
13083 # like to wrap large dependency lists on column 80 (with \), and
13084 # we should not choose a depcomp mode which is confused by this.
13085 #
13086 # We need to recreate these files for each test, as the compiler may
13087 # overwrite some of them when testing with obscure command lines.
13088 # This happens at least with the AIX C compiler.
13089 : > sub/conftest.c
13090 for i in 1 2 3 4 5 6; do
13091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13092 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13093 # Solaris 10 /bin/sh.
13094 echo '/* dummy */' > sub/conftst$i.h
13095 done
13096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13097
13098 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13099 # mode. It turns out that the SunPro C++ compiler does not properly
13100 # handle '-M -o', and we need to detect this. Also, some Intel
13101 # versions had trouble with output in subdirs.
13102 am__obj=sub/conftest.${OBJEXT-o}
13103 am__minus_obj="-o $am__obj"
13104 case $depmode in
13105 gcc)
13106 # This depmode causes a compiler race in universal mode.
13107 test "$am__universal" = false || continue
13108 ;;
13109 nosideeffect)
13110 # After this tag, mechanisms are not by side-effect, so they'll
13111 # only be used when explicitly requested.
13112 if test "x$enable_dependency_tracking" = xyes; then
13113 continue
13114 else
13115 break
13116 fi
13117 ;;
13118 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13119 # This compiler won't grok '-c -o', but also, the minuso test has
13120 # not run yet. These depmodes are late enough in the game, and
13121 # so weak that their functioning should not be impacted.
13122 am__obj=conftest.${OBJEXT-o}
13123 am__minus_obj=
13124 ;;
13125 none) break ;;
13126 esac
13127 if depmode=$depmode \
13128 source=sub/conftest.c object=$am__obj \
13129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13131 >/dev/null 2>conftest.err &&
13132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13136 # icc doesn't choke on unknown options, it will just issue warnings
13137 # or remarks (even with -Werror). So we grep stderr for any message
13138 # that says an option was ignored or not supported.
13139 # When given -MP, icc 7.0 and 7.1 complain thusly:
13140 # icc: Command line warning: ignoring option '-M'; no argument required
13141 # The diagnosis changed in icc 8.0:
13142 # icc: Command line remark: option '-MP' not supported
13143 if (grep 'ignoring option' conftest.err ||
13144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13145 am_cv_CC_dependencies_compiler_type=$depmode
13146 break
13147 fi
13148 fi
13149 done
13150
13151 cd ..
13152 rm -rf conftest.dir
13153 else
13154 am_cv_CC_dependencies_compiler_type=none
13155 fi
13156
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13159 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13160 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13161
13162 if
13163 test "x$enable_dependency_tracking" != xno \
13164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13165 am__fastdepCC_TRUE=
13166 am__fastdepCC_FALSE='#'
13167 else
13168 am__fastdepCC_TRUE='#'
13169 am__fastdepCC_FALSE=
13170 fi
13171
13172
13173
13174 # POSIX will say in a future version that running "rm -f" with no argument
13175 # is OK; and we want to be able to make that assumption in our Makefile
13176 # recipes. So use an aggressive probe to check that the usage we want is
13177 # actually supported "in the wild" to an acceptable degree.
13178 # See automake bug#10828.
13179 # To make any issue more visible, cause the running configure to be aborted
13180 # by default if the 'rm' program in use doesn't match our expectations; the
13181 # user can still override this though.
13182 if rm -f && rm -fr && rm -rf; then : OK; else
13183 cat >&2 <<'END'
13184 Oops!
13185
13186 Your 'rm' program seems unable to run without file operands specified
13187 on the command line, even when the '-f' option is present. This is contrary
13188 to the behaviour of most rm programs out there, and not conforming with
13189 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13190
13191 Please tell bug-automake@gnu.org about your system, including the value
13192 of your $PATH and any error possibly output before this message. This
13193 can help us improve future automake versions.
13194
13195 END
13196 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13197 echo 'Configuration will proceed anyway, since you have set the' >&2
13198 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13199 echo >&2
13200 else
13201 cat >&2 <<'END'
13202 Aborting the configuration process, to ensure you take notice of the issue.
13203
13204 You can download and install GNU coreutils to get an 'rm' implementation
13205 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13206
13207 If you want to complete the configuration process using your problematic
13208 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13209 to "yes", and re-run configure.
13210
13211 END
13212 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13213 fi
13214 fi
13215
13216 # Check whether --enable-silent-rules was given.
13217 if test "${enable_silent_rules+set}" = set; then :
13218 enableval=$enable_silent_rules;
13219 fi
13220
13221 case $enable_silent_rules in # (((
13222 yes) AM_DEFAULT_VERBOSITY=0;;
13223 no) AM_DEFAULT_VERBOSITY=1;;
13224 *) AM_DEFAULT_VERBOSITY=0;;
13225 esac
13226 am_make=${MAKE-make}
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13228 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13229 if ${am_cv_make_support_nested_variables+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 if $as_echo 'TRUE=$(BAR$(V))
13233 BAR0=false
13234 BAR1=true
13235 V=1
13236 am__doit:
13237 @$(TRUE)
13238 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13239 am_cv_make_support_nested_variables=yes
13240 else
13241 am_cv_make_support_nested_variables=no
13242 fi
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13245 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13246 if test $am_cv_make_support_nested_variables = yes; then
13247 AM_V='$(V)'
13248 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13249 else
13250 AM_V=$AM_DEFAULT_VERBOSITY
13251 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13252 fi
13253 AM_BACKSLASH='\'
13254
13255
13256 # If a cpu ever has more than one simulator to choose from, use
13257 # --enable-sim=... to choose.
13258 # Check whether --enable-sim was given.
13259 if test "${enable_sim+set}" = set; then :
13260 enableval=$enable_sim; case "${enableval}" in
13261 yes | no) ;;
13262 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13263 esac
13264 fi
13265
13266
13267 # Check whether --enable-example-sims was given.
13268 if test "${enable_example_sims+set}" = set; then :
13269 enableval=$enable_example_sims;
13270 fi
13271
13272
13273 # Check whether --enable-targets was given.
13274 if test "${enable_targets+set}" = set; then :
13275 enableval=$enable_targets; case "${enableval}" in
13276 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13277 ;;
13278 no) enable_targets= ;;
13279 *) enable_targets=$enableval ;;
13280 esac
13281 fi
13282
13283
13284 SIM_PRIMARY_TARGET=
13285
13286
13287 SIM_SUBDIRS=
13288
13289
13290 SIM_COMMON_BUILD_TRUE=
13291 SIM_COMMON_BUILD_FALSE='#'
13292
13293
13294
13295 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13296
13297
13298
13299
13300 if test "${enable_sim}" != no; then
13301 sim_igen=no
13302 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13303 do
13304 case "${targ}" in
13305 all|aarch64*-*-*)
13306 if test "${targ}" = "${target}"; then
13307 SIM_PRIMARY_TARGET=aarch64
13308 fi
13309 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
13310
13311 ac_config_commands="$ac_config_commands aarch64/Makefile"
13312
13313 as_fn_append SIM_SUBDIRS " aarch64"
13314
13315 ac_config_commands="$ac_config_commands depdir-aarch64"
13316
13317
13318
13319 ;;
13320 esac
13321
13322 case "${targ}" in
13323 all|arm*-*-*)
13324 if test "${targ}" = "${target}"; then
13325 SIM_PRIMARY_TARGET=arm
13326 fi
13327 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13328
13329 ac_config_commands="$ac_config_commands arm/Makefile"
13330
13331 as_fn_append SIM_SUBDIRS " arm"
13332
13333 ac_config_commands="$ac_config_commands depdir-arm"
13334
13335
13336
13337 ;;
13338 esac
13339
13340 case "${targ}" in
13341 all|avr*-*-*)
13342 if test "${targ}" = "${target}"; then
13343 SIM_PRIMARY_TARGET=avr
13344 fi
13345 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13346
13347 ac_config_commands="$ac_config_commands avr/Makefile"
13348
13349 as_fn_append SIM_SUBDIRS " avr"
13350
13351 ac_config_commands="$ac_config_commands depdir-avr"
13352
13353
13354
13355 ;;
13356 esac
13357
13358 case "${targ}" in
13359 all|bfin-*-*)
13360 if test "${targ}" = "${target}"; then
13361 SIM_PRIMARY_TARGET=bfin
13362 fi
13363
13364
13365 subdirs="$subdirs bfin"
13366
13367
13368 ac_config_commands="$ac_config_commands depdir-bfin"
13369
13370
13371
13372 ;;
13373 esac
13374
13375 case "${targ}" in
13376 all|bpf-*-*)
13377 if test "${targ}" = "${target}"; then
13378 SIM_PRIMARY_TARGET=bpf
13379 fi
13380 subdirs="$subdirs bpf"
13381
13382
13383 ac_config_commands="$ac_config_commands depdir-bpf"
13384
13385
13386
13387 ;;
13388 esac
13389
13390 case "${targ}" in
13391 all|cr16*-*-*)
13392 if test "${targ}" = "${target}"; then
13393 SIM_PRIMARY_TARGET=cr16
13394 fi
13395 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13396
13397 ac_config_commands="$ac_config_commands cr16/Makefile"
13398
13399 as_fn_append SIM_SUBDIRS " cr16"
13400
13401 ac_config_commands="$ac_config_commands depdir-cr16"
13402
13403
13404
13405 ;;
13406 esac
13407
13408 case "${targ}" in
13409 all|cris-*-* | crisv32-*-*)
13410 if test "${targ}" = "${target}"; then
13411 SIM_PRIMARY_TARGET=cris
13412 fi
13413 subdirs="$subdirs cris"
13414
13415
13416 ac_config_commands="$ac_config_commands depdir-cris"
13417
13418
13419
13420 ;;
13421 esac
13422
13423 case "${targ}" in
13424 all|d10v-*-*)
13425 if test "${targ}" = "${target}"; then
13426 SIM_PRIMARY_TARGET=d10v
13427 fi
13428 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13429
13430 ac_config_commands="$ac_config_commands d10v/Makefile"
13431
13432 as_fn_append SIM_SUBDIRS " d10v"
13433
13434 ac_config_commands="$ac_config_commands depdir-d10v"
13435
13436
13437
13438 ;;
13439 esac
13440
13441 case "${targ}" in
13442 all|frv-*-*)
13443 if test "${targ}" = "${target}"; then
13444 SIM_PRIMARY_TARGET=frv
13445 fi
13446 subdirs="$subdirs frv"
13447
13448
13449 ac_config_commands="$ac_config_commands depdir-frv"
13450
13451
13452
13453 ;;
13454 esac
13455
13456 case "${targ}" in
13457 all|ft32-*-*)
13458 if test "${targ}" = "${target}"; then
13459 SIM_PRIMARY_TARGET=ft32
13460 fi
13461 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13462
13463 ac_config_commands="$ac_config_commands ft32/Makefile"
13464
13465 as_fn_append SIM_SUBDIRS " ft32"
13466
13467 ac_config_commands="$ac_config_commands depdir-ft32"
13468
13469
13470
13471 ;;
13472 esac
13473
13474 case "${targ}" in
13475 all|h8300*-*-*)
13476 if test "${targ}" = "${target}"; then
13477 SIM_PRIMARY_TARGET=h8300
13478 fi
13479 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13480
13481 ac_config_commands="$ac_config_commands h8300/Makefile"
13482
13483 as_fn_append SIM_SUBDIRS " h8300"
13484
13485 ac_config_commands="$ac_config_commands depdir-h8300"
13486
13487
13488
13489 ;;
13490 esac
13491
13492 case "${targ}" in
13493 all|iq2000-*-*)
13494 if test "${targ}" = "${target}"; then
13495 SIM_PRIMARY_TARGET=iq2000
13496 fi
13497 subdirs="$subdirs iq2000"
13498
13499
13500 ac_config_commands="$ac_config_commands depdir-iq2000"
13501
13502
13503
13504 ;;
13505 esac
13506
13507 case "${targ}" in
13508 all|lm32-*-*)
13509 if test "${targ}" = "${target}"; then
13510 SIM_PRIMARY_TARGET=lm32
13511 fi
13512 subdirs="$subdirs lm32"
13513
13514
13515 ac_config_commands="$ac_config_commands depdir-lm32"
13516
13517
13518
13519 ;;
13520 esac
13521
13522 case "${targ}" in
13523 all|m32c-*-*)
13524 if test "${targ}" = "${target}"; then
13525 SIM_PRIMARY_TARGET=m32c
13526 fi
13527 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13528
13529 ac_config_commands="$ac_config_commands m32c/Makefile"
13530
13531 as_fn_append SIM_SUBDIRS " m32c"
13532
13533 ac_config_commands="$ac_config_commands depdir-m32c"
13534
13535
13536
13537 ;;
13538 esac
13539
13540 case "${targ}" in
13541 all|m32r-*-*)
13542 if test "${targ}" = "${target}"; then
13543 SIM_PRIMARY_TARGET=m32r
13544 fi
13545 subdirs="$subdirs m32r"
13546
13547
13548 ac_config_commands="$ac_config_commands depdir-m32r"
13549
13550
13551
13552 ;;
13553 esac
13554
13555 case "${targ}" in
13556 all|m68hc11-*-*|m6811-*-*)
13557 if test "${targ}" = "${target}"; then
13558 SIM_PRIMARY_TARGET=m68hc11
13559 fi
13560 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
13561
13562 ac_config_commands="$ac_config_commands m68hc11/Makefile"
13563
13564 as_fn_append SIM_SUBDIRS " m68hc11"
13565
13566 ac_config_commands="$ac_config_commands depdir-m68hc11"
13567
13568
13569
13570 ;;
13571 esac
13572
13573 case "${targ}" in
13574 all|mcore-*-*)
13575 if test "${targ}" = "${target}"; then
13576 SIM_PRIMARY_TARGET=mcore
13577 fi
13578 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
13579
13580 ac_config_commands="$ac_config_commands mcore/Makefile"
13581
13582 as_fn_append SIM_SUBDIRS " mcore"
13583
13584 ac_config_commands="$ac_config_commands depdir-mcore"
13585
13586
13587
13588 ;;
13589 esac
13590
13591 case "${targ}" in
13592 all|microblaze-*-*)
13593 if test "${targ}" = "${target}"; then
13594 SIM_PRIMARY_TARGET=microblaze
13595 fi
13596 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
13597
13598 ac_config_commands="$ac_config_commands microblaze/Makefile"
13599
13600 as_fn_append SIM_SUBDIRS " microblaze"
13601
13602 ac_config_commands="$ac_config_commands depdir-microblaze"
13603
13604
13605
13606 ;;
13607 esac
13608
13609 case "${targ}" in
13610 all|mips*-*-*)
13611 if test "${targ}" = "${target}"; then
13612 SIM_PRIMARY_TARGET=mips
13613 fi
13614 subdirs="$subdirs mips"
13615
13616
13617 ac_config_commands="$ac_config_commands depdir-mips"
13618
13619
13620 sim_igen=yes
13621 ;;
13622 esac
13623
13624 case "${targ}" in
13625 all|mn10300*-*-*)
13626 if test "${targ}" = "${target}"; then
13627 SIM_PRIMARY_TARGET=mn10300
13628 fi
13629 subdirs="$subdirs mn10300"
13630
13631
13632 ac_config_commands="$ac_config_commands depdir-mn10300"
13633
13634
13635 sim_igen=yes
13636 ;;
13637 esac
13638
13639 case "${targ}" in
13640 all|moxie-*-*)
13641 if test "${targ}" = "${target}"; then
13642 SIM_PRIMARY_TARGET=moxie
13643 fi
13644 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
13645
13646 ac_config_commands="$ac_config_commands moxie/Makefile"
13647
13648 as_fn_append SIM_SUBDIRS " moxie"
13649
13650 ac_config_commands="$ac_config_commands depdir-moxie"
13651
13652
13653
13654 ;;
13655 esac
13656
13657 case "${targ}" in
13658 all|msp430*-*-*)
13659 if test "${targ}" = "${target}"; then
13660 SIM_PRIMARY_TARGET=msp430
13661 fi
13662 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
13663
13664 ac_config_commands="$ac_config_commands msp430/Makefile"
13665
13666 as_fn_append SIM_SUBDIRS " msp430"
13667
13668 ac_config_commands="$ac_config_commands depdir-msp430"
13669
13670
13671
13672 ;;
13673 esac
13674
13675 case "${targ}" in
13676 all|or1k-*-* | or1knd-*-*)
13677 if test "${targ}" = "${target}"; then
13678 SIM_PRIMARY_TARGET=or1k
13679 fi
13680 subdirs="$subdirs or1k"
13681
13682
13683 ac_config_commands="$ac_config_commands depdir-or1k"
13684
13685
13686
13687 ;;
13688 esac
13689
13690 case "${targ}" in
13691 all|pru*-*-*)
13692 if test "${targ}" = "${target}"; then
13693 SIM_PRIMARY_TARGET=pru
13694 fi
13695 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
13696
13697 ac_config_commands="$ac_config_commands pru/Makefile"
13698
13699 as_fn_append SIM_SUBDIRS " pru"
13700
13701 ac_config_commands="$ac_config_commands depdir-pru"
13702
13703
13704
13705 ;;
13706 esac
13707
13708 case "${targ}" in
13709 all|riscv*-*-*)
13710 if test "${targ}" = "${target}"; then
13711 SIM_PRIMARY_TARGET=riscv
13712 fi
13713 subdirs="$subdirs riscv"
13714
13715
13716 ac_config_commands="$ac_config_commands depdir-riscv"
13717
13718
13719
13720 ;;
13721 esac
13722
13723 case "${targ}" in
13724 all|rl78-*-*)
13725 if test "${targ}" = "${target}"; then
13726 SIM_PRIMARY_TARGET=rl78
13727 fi
13728 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
13729
13730 ac_config_commands="$ac_config_commands rl78/Makefile"
13731
13732 as_fn_append SIM_SUBDIRS " rl78"
13733
13734 ac_config_commands="$ac_config_commands depdir-rl78"
13735
13736
13737
13738 ;;
13739 esac
13740
13741 case "${targ}" in
13742 all|rx-*-*)
13743 if test "${targ}" = "${target}"; then
13744 SIM_PRIMARY_TARGET=rx
13745 fi
13746 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
13747
13748 ac_config_commands="$ac_config_commands rx/Makefile"
13749
13750 as_fn_append SIM_SUBDIRS " rx"
13751
13752 ac_config_commands="$ac_config_commands depdir-rx"
13753
13754
13755
13756 ;;
13757 esac
13758
13759 case "${targ}" in
13760 all|sh*-*-*)
13761 if test "${targ}" = "${target}"; then
13762 SIM_PRIMARY_TARGET=sh
13763 fi
13764 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
13765
13766 ac_config_commands="$ac_config_commands sh/Makefile"
13767
13768 as_fn_append SIM_SUBDIRS " sh"
13769
13770 ac_config_commands="$ac_config_commands depdir-sh"
13771
13772
13773
13774 ;;
13775 esac
13776
13777 case "${targ}" in
13778 all|sparc-*-rtems*|sparc-*-elf*)
13779 if test "${targ}" = "${target}"; then
13780 SIM_PRIMARY_TARGET=erc32
13781 fi
13782 subdirs="$subdirs erc32"
13783
13784
13785 ac_config_commands="$ac_config_commands depdir-erc32"
13786
13787
13788
13789 ;;
13790 esac
13791
13792 case "${targ}" in
13793 all|powerpc*-*-*)
13794 if test "${targ}" = "${target}"; then
13795 SIM_PRIMARY_TARGET=ppc
13796 fi
13797 subdirs="$subdirs ppc"
13798
13799
13800 ac_config_commands="$ac_config_commands depdir-ppc"
13801
13802
13803
13804 ;;
13805 esac
13806
13807 case "${targ}" in
13808 all|v850*-*-*)
13809 if test "${targ}" = "${target}"; then
13810 SIM_PRIMARY_TARGET=v850
13811 fi
13812 subdirs="$subdirs v850"
13813
13814
13815 ac_config_commands="$ac_config_commands depdir-v850"
13816
13817
13818 sim_igen=yes
13819 ;;
13820 esac
13821
13822 done
13823
13824 if test "x${enable_example_sims}" = xyes; then
13825 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
13826
13827 ac_config_commands="$ac_config_commands example-synacor/Makefile"
13828
13829 as_fn_append SIM_SUBDIRS " example-synacor"
13830
13831 ac_config_commands="$ac_config_commands depdir-example-synacor"
13832
13833
13834 fi
13835 fi
13836 if test "$sim_igen" = "yes"; then
13837 SIM_ENABLE_IGEN_TRUE=
13838 SIM_ENABLE_IGEN_FALSE='#'
13839 else
13840 SIM_ENABLE_IGEN_TRUE='#'
13841 SIM_ENABLE_IGEN_FALSE=
13842 fi
13843
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
13846 $as_echo_n "checking whether to force sim alignment... " >&6; }
13847 sim_alignment=
13848 # Check whether --enable-sim-alignment was given.
13849 if test "${enable_sim_alignment+set}" = set; then :
13850 enableval=$enable_sim_alignment; case "${enableval}" in
13851 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
13852 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
13853 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
13854 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
13855 esac
13856 fi
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define WITH_ALIGNMENT ${sim_alignment:-0}
13860 _ACEOF
13861
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13863 $as_echo "${sim_alignment:-no}" >&6; }
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
13867 $as_echo_n "checking whether to enable sim asserts... " >&6; }
13868 sim_assert="1"
13869 # Check whether --enable-sim-assert was given.
13870 if test "${enable_sim_assert+set}" = set; then :
13871 enableval=$enable_sim_assert; case "${enableval}" in
13872 yes) sim_assert="1";;
13873 no) sim_assert="0";;
13874 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
13875 esac
13876 fi
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define WITH_ASSERT $sim_assert
13880 _ACEOF
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
13883 $as_echo "$sim_assert" >&6; }
13884
13885
13886 cgen_maint=no
13887 cgen=guile
13888 cgendir='$(srcdir)/../../cgen'
13889 # Check whether --enable-cgen-maint was given.
13890 if test "${enable_cgen_maint+set}" = set; then :
13891 enableval=$enable_cgen_maint; case "${enableval}" in
13892 yes) cgen_maint=yes ;;
13893 no) cgen_maint=no ;;
13894 *)
13895 # Argument is a directory where cgen can be found. In some
13896 # future world cgen could be installable, but right now this
13897 # is not the case. Instead we assume the directory is a path
13898 # to the cgen source tree.
13899 cgen_maint=yes
13900 if test -r ${enableval}/iformat.scm; then
13901 # This looks like a cgen source tree.
13902 cgendir=${enableval}
13903 else
13904 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
13905 fi
13906 ;;
13907 esac
13908 fi
13909 if test x${cgen_maint} != xno ; then
13910 CGEN_MAINT=''
13911 else
13912 CGEN_MAINT='#'
13913 fi
13914
13915
13916
13917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
13919 $as_echo_n "checking for sim debug setting... " >&6; }
13920 sim_debug="0"
13921 # Check whether --enable-sim-debug was given.
13922 if test "${enable_sim_debug+set}" = set; then :
13923 enableval=$enable_sim_debug; case "${enableval}" in
13924 yes) sim_debug="7";;
13925 no) sim_debug="0";;
13926 *) sim_debug="($enableval)";;
13927 esac
13928 fi
13929 if test "$sim_debug" != "0"; then
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define DEBUG $sim_debug
13933 _ACEOF
13934
13935 fi
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define WITH_DEBUG $sim_debug
13939 _ACEOF
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
13942 $as_echo "$sim_debug" >&6; }
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
13945 $as_echo_n "checking whether to force sim endianness... " >&6; }
13946 sim_endian=
13947 # Check whether --enable-sim-endian was given.
13948 if test "${enable_sim_endian+set}" = set; then :
13949 enableval=$enable_sim_endian; case "${enableval}" in
13950 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
13951 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
13952 yes | no) ;;
13953 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
13954 esac
13955 fi
13956
13957 cat >>confdefs.h <<_ACEOF
13958 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
13959 _ACEOF
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
13962 $as_echo "${sim_alignment:-no}" >&6; }
13963
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
13966 $as_echo_n "checking default sim environment setting... " >&6; }
13967 sim_environment="ALL_ENVIRONMENT"
13968 # Check whether --enable-sim-environment was given.
13969 if test "${enable_sim_environment+set}" = set; then :
13970 enableval=$enable_sim_environment; case "${enableval}" in
13971 all | ALL) sim_environment="ALL_ENVIRONMENT";;
13972 user | USER) sim_environment="USER_ENVIRONMENT";;
13973 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
13974 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
13975 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
13976 esac
13977 fi
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define WITH_ENVIRONMENT $sim_environment
13981 _ACEOF
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
13984 $as_echo "$sim_environment" >&6; }
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
13987 $as_echo_n "checking for sim hardware settings... " >&6; }
13988 # Check whether --enable-sim-hardware was given.
13989 if test "${enable_sim_hardware+set}" = set; then :
13990 enableval=$enable_sim_hardware;
13991 else
13992 enable_sim_hardware="yes"
13993 fi
13994
13995 sim_hw_sockser=
13996 if test "$enable_sim_hardware" = no; then
13997 sim_hw_cflags="-DWITH_HW=0"
13998 elif test "$enable_sim_hardware" = yes; then
13999 sim_hw_cflags="-DWITH_HW=1"
14000 # mingw does not support sockser
14001 case ${host} in
14002 *mingw*) ;;
14003 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14004 # that you instatiate. Instead, other code will call into it directly.
14005 # At some point, we should convert it over.
14006 sim_hw_sockser="dv-sockser.o"
14007 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14008 ;;
14009 esac
14010 else
14011 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14012 fi
14013 if test "$enable_sim_hardware" = "yes"; then
14014 SIM_ENABLE_HW_TRUE=
14015 SIM_ENABLE_HW_FALSE='#'
14016 else
14017 SIM_ENABLE_HW_TRUE='#'
14018 SIM_ENABLE_HW_FALSE=
14019 fi
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14022 $as_echo "${enable_sim_hardware}" >&6; }
14023
14024
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14027 $as_echo_n "checking sim inline settings... " >&6; }
14028 sim_inline="-DDEFAULT_INLINE=0"
14029 # Check whether --enable-sim-inline was given.
14030 if test "${enable_sim_inline+set}" = set; then :
14031 enableval=$enable_sim_inline; sim_inline=""
14032 case "$enableval" in
14033 no) sim_inline="-DDEFAULT_INLINE=0";;
14034 0) sim_inline="-DDEFAULT_INLINE=0";;
14035 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14036 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14037 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14038 new_flag=""
14039 case "$x" in
14040 *_INLINE=*) new_flag="-D$x";;
14041 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14042 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14043 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14044 esac
14045 if test x"$sim_inline" = x""; then
14046 sim_inline="$new_flag"
14047 else
14048 sim_inline="$sim_inline $new_flag"
14049 fi
14050 done;;
14051 esac
14052
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14055 $as_echo "$sim_inline" >&6; }
14056 SIM_INLINE=$sim_inline
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14060 $as_echo_n "checking for sim profile settings... " >&6; }
14061 profile="1"
14062 sim_profile="-1"
14063 # Check whether --enable-sim-profile was given.
14064 if test "${enable_sim_profile+set}" = set; then :
14065 enableval=$enable_sim_profile; case "${enableval}" in
14066 yes) profile="1" sim_profile="-1";;
14067 no) profile="0" sim_profile="0";;
14068 [-0-9]*)
14069 profile="(${enableval})" sim_profile="(${enableval})";;
14070 [a-z]*)
14071 profile="1"
14072 sim_profile=""
14073 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14074 if test x"$sim_profile" = x; then
14075 sim_profile="(PROFILE_$x"
14076 else
14077 sim_profile="${sim_profile}|PROFILE_$x"
14078 fi
14079 done
14080 sim_profile="$sim_profile)" ;;
14081 esac
14082 fi
14083
14084 cat >>confdefs.h <<_ACEOF
14085 #define PROFILE $profile
14086 _ACEOF
14087
14088
14089 cat >>confdefs.h <<_ACEOF
14090 #define WITH_PROFILE $sim_profile
14091 _ACEOF
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14094 $as_echo "$sim_profile" >&6; }
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14097 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
14098 sim_stdio="0"
14099 # Check whether --enable-sim-stdio was given.
14100 if test "${enable_sim_stdio+set}" = set; then :
14101 enableval=$enable_sim_stdio; case "${enableval}" in
14102 yes) sim_stdio="DO_USE_STDIO";;
14103 no) sim_stdio="DONT_USE_STDIO";;
14104 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14105 esac
14106 fi
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define WITH_STDIO $sim_stdio
14110 _ACEOF
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14113 $as_echo "$sim_stdio" >&6; }
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14116 $as_echo_n "checking for sim trace settings... " >&6; }
14117 sim_trace="~TRACE_debug"
14118 # Check whether --enable-sim-trace was given.
14119 if test "${enable_sim_trace+set}" = set; then :
14120 enableval=$enable_sim_trace; case "${enableval}" in
14121 yes) sim_trace="-1";;
14122 no) sim_trace="0";;
14123 [-0-9]*)
14124 sim_trace="'(${enableval})'";;
14125 [[:lower:]]*)
14126 sim_trace=""
14127 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14128 if test x"$sim_trace" = x; then
14129 sim_trace="(TRACE_$x"
14130 else
14131 sim_trace="${sim_trace}|TRACE_$x"
14132 fi
14133 done
14134 sim_trace="$sim_trace)" ;;
14135 esac
14136 fi
14137
14138 cat >>confdefs.h <<_ACEOF
14139 #define WITH_TRACE $sim_trace
14140 _ACEOF
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14143 $as_echo "$sim_trace" >&6; }
14144
14145
14146 # Check whether --enable-werror was given.
14147 if test "${enable_werror+set}" = set; then :
14148 enableval=$enable_werror; case "${enableval}" in
14149 yes | y) ERROR_ON_WARNING="yes" ;;
14150 no | n) ERROR_ON_WARNING="no" ;;
14151 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14152 esac
14153 fi
14154
14155
14156 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14157 ERROR_ON_WARNING=yes
14158 fi
14159
14160 WERROR_CFLAGS=""
14161 if test "${ERROR_ON_WARNING}" = yes ; then
14162 WERROR_CFLAGS="-Werror"
14163 fi
14164
14165 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14166 -Wpointer-sign \
14167 -Wno-unused -Wunused-value -Wunused-function \
14168 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
14169 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
14170 -Wold-style-declaration -Wold-style-definition"
14171
14172 # Enable -Wno-format by default when using gcc on mingw since many
14173 # GCC versions complain about %I64.
14174 case "${host}" in
14175 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14176 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14177 esac
14178
14179 # Check whether --enable-build-warnings was given.
14180 if test "${enable_build_warnings+set}" = set; then :
14181 enableval=$enable_build_warnings; case "${enableval}" in
14182 yes) ;;
14183 no) build_warnings="-w";;
14184 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14185 build_warnings="${build_warnings} ${t}";;
14186 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14187 build_warnings="${t} ${build_warnings}";;
14188 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14189 esac
14190 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14191 echo "Setting compiler warning flags = $build_warnings" 6>&1
14192 fi
14193 fi
14194 # Check whether --enable-sim-build-warnings was given.
14195 if test "${enable_sim_build_warnings+set}" = set; then :
14196 enableval=$enable_sim_build_warnings; case "${enableval}" in
14197 yes) ;;
14198 no) build_warnings="-w";;
14199 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14200 build_warnings="${build_warnings} ${t}";;
14201 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14202 build_warnings="${t} ${build_warnings}";;
14203 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14204 esac
14205 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14206 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14207 fi
14208 fi
14209 WARN_CFLAGS=""
14210 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14211 then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14213 $as_echo_n "checking compiler warning flags... " >&6; }
14214 # Separate out the -Werror flag as some files just cannot be
14215 # compiled with it enabled.
14216 for w in ${build_warnings}; do
14217 case $w in
14218 -Werr*) WERROR_CFLAGS=-Werror ;;
14219 *) # Check that GCC accepts it
14220 saved_CFLAGS="$CFLAGS"
14221 CFLAGS="$CFLAGS -Werror $w"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224
14225 int
14226 main ()
14227 {
14228
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_compile "$LINENO"; then :
14234 WARN_CFLAGS="${WARN_CFLAGS} $w"
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 CFLAGS="$saved_CFLAGS"
14238 esac
14239 done
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14241 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14242 fi
14243
14244
14245
14246
14247
14248
14249
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14252 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14253 # Check whether --enable-sim-rx-cycle-accurate was given.
14254 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14255 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14256 yes | no) ;;
14257 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14258 esac
14259 fi
14260
14261 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14262 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14264 $as_echo "yes" >&6; }
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 fi
14269
14270
14271
14272 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14273
14274 cat >confcache <<\_ACEOF
14275 # This file is a shell script that caches the results of configure
14276 # tests run on this system so they can be shared between configure
14277 # scripts and configure runs, see configure's option --config-cache.
14278 # It is not useful on other systems. If it contains results you don't
14279 # want to keep, you may remove or edit it.
14280 #
14281 # config.status only pays attention to the cache file if you give it
14282 # the --recheck option to rerun configure.
14283 #
14284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14286 # following values.
14287
14288 _ACEOF
14289
14290 # The following way of writing the cache mishandles newlines in values,
14291 # but we know of no workaround that is simple, portable, and efficient.
14292 # So, we kill variables containing newlines.
14293 # Ultrix sh set writes to stderr and can't be redirected directly,
14294 # and sets the high bit in the cache file unless we assign to the vars.
14295 (
14296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14297 eval ac_val=\$$ac_var
14298 case $ac_val in #(
14299 *${as_nl}*)
14300 case $ac_var in #(
14301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14303 esac
14304 case $ac_var in #(
14305 _ | IFS | as_nl) ;; #(
14306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14307 *) { eval $ac_var=; unset $ac_var;} ;;
14308 esac ;;
14309 esac
14310 done
14311
14312 (set) 2>&1 |
14313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14314 *${as_nl}ac_space=\ *)
14315 # `set' does not quote correctly, so add quotes: double-quote
14316 # substitution turns \\\\ into \\, and sed turns \\ into \.
14317 sed -n \
14318 "s/'/'\\\\''/g;
14319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14320 ;; #(
14321 *)
14322 # `set' quotes correctly as required by POSIX, so do not add quotes.
14323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14324 ;;
14325 esac |
14326 sort
14327 ) |
14328 sed '
14329 /^ac_cv_env_/b end
14330 t clear
14331 :clear
14332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14333 t end
14334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14335 :end' >>confcache
14336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14337 if test -w "$cache_file"; then
14338 if test "x$cache_file" != "x/dev/null"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14340 $as_echo "$as_me: updating cache $cache_file" >&6;}
14341 if test ! -f "$cache_file" || test -h "$cache_file"; then
14342 cat confcache >"$cache_file"
14343 else
14344 case $cache_file in #(
14345 */* | ?:*)
14346 mv -f confcache "$cache_file"$$ &&
14347 mv -f "$cache_file"$$ "$cache_file" ;; #(
14348 *)
14349 mv -f confcache "$cache_file" ;;
14350 esac
14351 fi
14352 fi
14353 else
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14355 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14356 fi
14357 fi
14358 rm -f confcache
14359
14360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14361 # Let make expand exec_prefix.
14362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14363
14364 DEFS=-DHAVE_CONFIG_H
14365
14366 ac_libobjs=
14367 ac_ltlibobjs=
14368 U=
14369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14370 # 1. Remove the extension, and $U if already installed.
14371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14374 # will be set to the directory where LIBOBJS objects are built.
14375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14377 done
14378 LIBOBJS=$ac_libobjs
14379
14380 LTLIBOBJS=$ac_ltlibobjs
14381
14382
14383
14384 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14385 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14387 fi
14388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14389 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14393 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14394 if test -n "$am_sleep_pid"; then
14395 # Hide warnings about reused PIDs.
14396 wait $am_sleep_pid 2>/dev/null
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14399 $as_echo "done" >&6; }
14400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14401 as_fn_error $? "conditional \"AMDEP\" was never defined.
14402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14403 fi
14404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14405 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14407 fi
14408 if test -n "$EXEEXT"; then
14409 am__EXEEXT_TRUE=
14410 am__EXEEXT_FALSE='#'
14411 else
14412 am__EXEEXT_TRUE='#'
14413 am__EXEEXT_FALSE=
14414 fi
14415
14416 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14417 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14419 fi
14420 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14421 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14423 fi
14424
14425 : "${CONFIG_STATUS=./config.status}"
14426 ac_write_fail=0
14427 ac_clean_files_save=$ac_clean_files
14428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14430 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14431 as_write_fail=0
14432 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14433 #! $SHELL
14434 # Generated by $as_me.
14435 # Run this file to recreate the current configuration.
14436 # Compiler output produced by configure, useful for debugging
14437 # configure, is in config.log if it exists.
14438
14439 debug=false
14440 ac_cs_recheck=false
14441 ac_cs_silent=false
14442
14443 SHELL=\${CONFIG_SHELL-$SHELL}
14444 export SHELL
14445 _ASEOF
14446 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14447 ## -------------------- ##
14448 ## M4sh Initialization. ##
14449 ## -------------------- ##
14450
14451 # Be more Bourne compatible
14452 DUALCASE=1; export DUALCASE # for MKS sh
14453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14454 emulate sh
14455 NULLCMD=:
14456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14457 # is contrary to our usage. Disable this feature.
14458 alias -g '${1+"$@"}'='"$@"'
14459 setopt NO_GLOB_SUBST
14460 else
14461 case `(set -o) 2>/dev/null` in #(
14462 *posix*) :
14463 set -o posix ;; #(
14464 *) :
14465 ;;
14466 esac
14467 fi
14468
14469
14470 as_nl='
14471 '
14472 export as_nl
14473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14477 # Prefer a ksh shell builtin over an external printf program on Solaris,
14478 # but without wasting forks for bash or zsh.
14479 if test -z "$BASH_VERSION$ZSH_VERSION" \
14480 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14481 as_echo='print -r --'
14482 as_echo_n='print -rn --'
14483 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14484 as_echo='printf %s\n'
14485 as_echo_n='printf %s'
14486 else
14487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14488 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14489 as_echo_n='/usr/ucb/echo -n'
14490 else
14491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14492 as_echo_n_body='eval
14493 arg=$1;
14494 case $arg in #(
14495 *"$as_nl"*)
14496 expr "X$arg" : "X\\(.*\\)$as_nl";
14497 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14498 esac;
14499 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14500 '
14501 export as_echo_n_body
14502 as_echo_n='sh -c $as_echo_n_body as_echo'
14503 fi
14504 export as_echo_body
14505 as_echo='sh -c $as_echo_body as_echo'
14506 fi
14507
14508 # The user is always right.
14509 if test "${PATH_SEPARATOR+set}" != set; then
14510 PATH_SEPARATOR=:
14511 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14512 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14513 PATH_SEPARATOR=';'
14514 }
14515 fi
14516
14517
14518 # IFS
14519 # We need space, tab and new line, in precisely that order. Quoting is
14520 # there to prevent editors from complaining about space-tab.
14521 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14522 # splitting by setting IFS to empty value.)
14523 IFS=" "" $as_nl"
14524
14525 # Find who we are. Look in the path if we contain no directory separator.
14526 as_myself=
14527 case $0 in #((
14528 *[\\/]* ) as_myself=$0 ;;
14529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14531 do
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14535 done
14536 IFS=$as_save_IFS
14537
14538 ;;
14539 esac
14540 # We did not find ourselves, most probably we were run as `sh COMMAND'
14541 # in which case we are not to be found in the path.
14542 if test "x$as_myself" = x; then
14543 as_myself=$0
14544 fi
14545 if test ! -f "$as_myself"; then
14546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14547 exit 1
14548 fi
14549
14550 # Unset variables that we do not need and which cause bugs (e.g. in
14551 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14552 # suppresses any "Segmentation fault" message there. '((' could
14553 # trigger a bug in pdksh 5.2.14.
14554 for as_var in BASH_ENV ENV MAIL MAILPATH
14555 do eval test x\${$as_var+set} = xset \
14556 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14557 done
14558 PS1='$ '
14559 PS2='> '
14560 PS4='+ '
14561
14562 # NLS nuisances.
14563 LC_ALL=C
14564 export LC_ALL
14565 LANGUAGE=C
14566 export LANGUAGE
14567
14568 # CDPATH.
14569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14570
14571
14572 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14573 # ----------------------------------------
14574 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14575 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14576 # script with STATUS, using 1 if that was 0.
14577 as_fn_error ()
14578 {
14579 as_status=$1; test $as_status -eq 0 && as_status=1
14580 if test "$4"; then
14581 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14582 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14583 fi
14584 $as_echo "$as_me: error: $2" >&2
14585 as_fn_exit $as_status
14586 } # as_fn_error
14587
14588
14589 # as_fn_set_status STATUS
14590 # -----------------------
14591 # Set $? to STATUS, without forking.
14592 as_fn_set_status ()
14593 {
14594 return $1
14595 } # as_fn_set_status
14596
14597 # as_fn_exit STATUS
14598 # -----------------
14599 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14600 as_fn_exit ()
14601 {
14602 set +e
14603 as_fn_set_status $1
14604 exit $1
14605 } # as_fn_exit
14606
14607 # as_fn_unset VAR
14608 # ---------------
14609 # Portably unset VAR.
14610 as_fn_unset ()
14611 {
14612 { eval $1=; unset $1;}
14613 }
14614 as_unset=as_fn_unset
14615 # as_fn_append VAR VALUE
14616 # ----------------------
14617 # Append the text in VALUE to the end of the definition contained in VAR. Take
14618 # advantage of any shell optimizations that allow amortized linear growth over
14619 # repeated appends, instead of the typical quadratic growth present in naive
14620 # implementations.
14621 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14622 eval 'as_fn_append ()
14623 {
14624 eval $1+=\$2
14625 }'
14626 else
14627 as_fn_append ()
14628 {
14629 eval $1=\$$1\$2
14630 }
14631 fi # as_fn_append
14632
14633 # as_fn_arith ARG...
14634 # ------------------
14635 # Perform arithmetic evaluation on the ARGs, and store the result in the
14636 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14637 # must be portable across $(()) and expr.
14638 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14639 eval 'as_fn_arith ()
14640 {
14641 as_val=$(( $* ))
14642 }'
14643 else
14644 as_fn_arith ()
14645 {
14646 as_val=`expr "$@" || test $? -eq 1`
14647 }
14648 fi # as_fn_arith
14649
14650
14651 if expr a : '\(a\)' >/dev/null 2>&1 &&
14652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14653 as_expr=expr
14654 else
14655 as_expr=false
14656 fi
14657
14658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14659 as_basename=basename
14660 else
14661 as_basename=false
14662 fi
14663
14664 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14665 as_dirname=dirname
14666 else
14667 as_dirname=false
14668 fi
14669
14670 as_me=`$as_basename -- "$0" ||
14671 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14672 X"$0" : 'X\(//\)$' \| \
14673 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14674 $as_echo X/"$0" |
14675 sed '/^.*\/\([^/][^/]*\)\/*$/{
14676 s//\1/
14677 q
14678 }
14679 /^X\/\(\/\/\)$/{
14680 s//\1/
14681 q
14682 }
14683 /^X\/\(\/\).*/{
14684 s//\1/
14685 q
14686 }
14687 s/.*/./; q'`
14688
14689 # Avoid depending upon Character Ranges.
14690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14693 as_cr_digits='0123456789'
14694 as_cr_alnum=$as_cr_Letters$as_cr_digits
14695
14696 ECHO_C= ECHO_N= ECHO_T=
14697 case `echo -n x` in #(((((
14698 -n*)
14699 case `echo 'xy\c'` in
14700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14701 xy) ECHO_C='\c';;
14702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14703 ECHO_T=' ';;
14704 esac;;
14705 *)
14706 ECHO_N='-n';;
14707 esac
14708
14709 rm -f conf$$ conf$$.exe conf$$.file
14710 if test -d conf$$.dir; then
14711 rm -f conf$$.dir/conf$$.file
14712 else
14713 rm -f conf$$.dir
14714 mkdir conf$$.dir 2>/dev/null
14715 fi
14716 if (echo >conf$$.file) 2>/dev/null; then
14717 if ln -s conf$$.file conf$$ 2>/dev/null; then
14718 as_ln_s='ln -s'
14719 # ... but there are two gotchas:
14720 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14721 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14722 # In both cases, we have to default to `cp -pR'.
14723 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14724 as_ln_s='cp -pR'
14725 elif ln conf$$.file conf$$ 2>/dev/null; then
14726 as_ln_s=ln
14727 else
14728 as_ln_s='cp -pR'
14729 fi
14730 else
14731 as_ln_s='cp -pR'
14732 fi
14733 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14734 rmdir conf$$.dir 2>/dev/null
14735
14736
14737 # as_fn_mkdir_p
14738 # -------------
14739 # Create "$as_dir" as a directory, including parents if necessary.
14740 as_fn_mkdir_p ()
14741 {
14742
14743 case $as_dir in #(
14744 -*) as_dir=./$as_dir;;
14745 esac
14746 test -d "$as_dir" || eval $as_mkdir_p || {
14747 as_dirs=
14748 while :; do
14749 case $as_dir in #(
14750 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14751 *) as_qdir=$as_dir;;
14752 esac
14753 as_dirs="'$as_qdir' $as_dirs"
14754 as_dir=`$as_dirname -- "$as_dir" ||
14755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14756 X"$as_dir" : 'X\(//\)[^/]' \| \
14757 X"$as_dir" : 'X\(//\)$' \| \
14758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14759 $as_echo X"$as_dir" |
14760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14761 s//\1/
14762 q
14763 }
14764 /^X\(\/\/\)[^/].*/{
14765 s//\1/
14766 q
14767 }
14768 /^X\(\/\/\)$/{
14769 s//\1/
14770 q
14771 }
14772 /^X\(\/\).*/{
14773 s//\1/
14774 q
14775 }
14776 s/.*/./; q'`
14777 test -d "$as_dir" && break
14778 done
14779 test -z "$as_dirs" || eval "mkdir $as_dirs"
14780 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14781
14782
14783 } # as_fn_mkdir_p
14784 if mkdir -p . 2>/dev/null; then
14785 as_mkdir_p='mkdir -p "$as_dir"'
14786 else
14787 test -d ./-p && rmdir ./-p
14788 as_mkdir_p=false
14789 fi
14790
14791
14792 # as_fn_executable_p FILE
14793 # -----------------------
14794 # Test if FILE is an executable regular file.
14795 as_fn_executable_p ()
14796 {
14797 test -f "$1" && test -x "$1"
14798 } # as_fn_executable_p
14799 as_test_x='test -x'
14800 as_executable_p=as_fn_executable_p
14801
14802 # Sed expression to map a string onto a valid CPP name.
14803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14804
14805 # Sed expression to map a string onto a valid variable name.
14806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14807
14808
14809 exec 6>&1
14810 ## ----------------------------------- ##
14811 ## Main body of $CONFIG_STATUS script. ##
14812 ## ----------------------------------- ##
14813 _ASEOF
14814 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14815
14816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14817 # Save the log message, to keep $0 and so on meaningful, and to
14818 # report actual input values of CONFIG_FILES etc. instead of their
14819 # values after options handling.
14820 ac_log="
14821 This file was extended by sim $as_me 0, which was
14822 generated by GNU Autoconf 2.69. Invocation command line was
14823
14824 CONFIG_FILES = $CONFIG_FILES
14825 CONFIG_HEADERS = $CONFIG_HEADERS
14826 CONFIG_LINKS = $CONFIG_LINKS
14827 CONFIG_COMMANDS = $CONFIG_COMMANDS
14828 $ $0 $@
14829
14830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14831 "
14832
14833 _ACEOF
14834
14835 case $ac_config_files in *"
14836 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14837 esac
14838
14839 case $ac_config_headers in *"
14840 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14841 esac
14842
14843
14844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14845 # Files that config.status was made for.
14846 config_files="$ac_config_files"
14847 config_headers="$ac_config_headers"
14848 config_commands="$ac_config_commands"
14849
14850 _ACEOF
14851
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 ac_cs_usage="\
14854 \`$as_me' instantiates files and other configuration actions
14855 from templates according to the current configuration. Unless the files
14856 and actions are specified as TAGs, all are instantiated by default.
14857
14858 Usage: $0 [OPTION]... [TAG]...
14859
14860 -h, --help print this help, then exit
14861 -V, --version print version number and configuration settings, then exit
14862 --config print configuration, then exit
14863 -q, --quiet, --silent
14864 do not print progress messages
14865 -d, --debug don't remove temporary files
14866 --recheck update $as_me by reconfiguring in the same conditions
14867 --file=FILE[:TEMPLATE]
14868 instantiate the configuration file FILE
14869 --header=FILE[:TEMPLATE]
14870 instantiate the configuration header FILE
14871
14872 Configuration files:
14873 $config_files
14874
14875 Configuration headers:
14876 $config_headers
14877
14878 Configuration commands:
14879 $config_commands
14880
14881 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
14882 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
14883
14884 _ACEOF
14885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14886 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14887 ac_cs_version="\\
14888 sim config.status 0
14889 configured by $0, generated by GNU Autoconf 2.69,
14890 with options \\"\$ac_cs_config\\"
14891
14892 Copyright (C) 2012 Free Software Foundation, Inc.
14893 This config.status script is free software; the Free Software Foundation
14894 gives unlimited permission to copy, distribute and modify it."
14895
14896 ac_pwd='$ac_pwd'
14897 srcdir='$srcdir'
14898 INSTALL='$INSTALL'
14899 MKDIR_P='$MKDIR_P'
14900 AWK='$AWK'
14901 test -n "\$AWK" || AWK=awk
14902 _ACEOF
14903
14904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14905 # The default lists apply if the user does not specify any file.
14906 ac_need_defaults=:
14907 while test $# != 0
14908 do
14909 case $1 in
14910 --*=?*)
14911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14913 ac_shift=:
14914 ;;
14915 --*=)
14916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14917 ac_optarg=
14918 ac_shift=:
14919 ;;
14920 *)
14921 ac_option=$1
14922 ac_optarg=$2
14923 ac_shift=shift
14924 ;;
14925 esac
14926
14927 case $ac_option in
14928 # Handling of the options.
14929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14930 ac_cs_recheck=: ;;
14931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14932 $as_echo "$ac_cs_version"; exit ;;
14933 --config | --confi | --conf | --con | --co | --c )
14934 $as_echo "$ac_cs_config"; exit ;;
14935 --debug | --debu | --deb | --de | --d | -d )
14936 debug=: ;;
14937 --file | --fil | --fi | --f )
14938 $ac_shift
14939 case $ac_optarg in
14940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14941 '') as_fn_error $? "missing file argument" ;;
14942 esac
14943 as_fn_append CONFIG_FILES " '$ac_optarg'"
14944 ac_need_defaults=false;;
14945 --header | --heade | --head | --hea )
14946 $ac_shift
14947 case $ac_optarg in
14948 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14949 esac
14950 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14951 ac_need_defaults=false;;
14952 --he | --h)
14953 # Conflict between --help and --header
14954 as_fn_error $? "ambiguous option: \`$1'
14955 Try \`$0 --help' for more information.";;
14956 --help | --hel | -h )
14957 $as_echo "$ac_cs_usage"; exit ;;
14958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14960 ac_cs_silent=: ;;
14961
14962 # This is an error.
14963 -*) as_fn_error $? "unrecognized option: \`$1'
14964 Try \`$0 --help' for more information." ;;
14965
14966 *) as_fn_append ac_config_targets " $1"
14967 ac_need_defaults=false ;;
14968
14969 esac
14970 shift
14971 done
14972
14973 ac_configure_extra_args=
14974
14975 if $ac_cs_silent; then
14976 exec 6>/dev/null
14977 ac_configure_extra_args="$ac_configure_extra_args --silent"
14978 fi
14979
14980 _ACEOF
14981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14982 if \$ac_cs_recheck; then
14983 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14984 shift
14985 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14986 CONFIG_SHELL='$SHELL'
14987 export CONFIG_SHELL
14988 exec "\$@"
14989 fi
14990
14991 _ACEOF
14992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993 exec 5>>config.log
14994 {
14995 echo
14996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14997 ## Running $as_me. ##
14998 _ASBOX
14999 $as_echo "$ac_log"
15000 } >&5
15001
15002 _ACEOF
15003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004 #
15005 # INIT-COMMANDS
15006 #
15007
15008
15009 # The HP-UX ksh and POSIX shell print the target directory to stdout
15010 # if CDPATH is set.
15011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15012
15013 sed_quote_subst='$sed_quote_subst'
15014 double_quote_subst='$double_quote_subst'
15015 delay_variable_subst='$delay_variable_subst'
15016 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15017 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15018 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15019 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15020 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15021 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15022 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15023 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15024 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15025 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15026 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15027 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15028 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15029 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15030 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15031 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15032 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15033 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15034 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15035 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15036 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15037 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15038 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15039 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15040 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15041 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15042 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15043 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15044 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15045 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15046 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15047 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15048 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15049 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15050 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15051 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15052 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15053 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15054 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15055 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15056 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15057 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15058 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15059 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15060 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15061 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15062 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15063 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15064 lt_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"`'
15065 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15066 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15067 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15069 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15070 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15071 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15072 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15096 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15097 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15098 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15099 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15100 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15101 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15102 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15103 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15104 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15105 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15106 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15107 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15108 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15109 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15110 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15111 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15112 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15113 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15114 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15115 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15116 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15117 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15118 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15119 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15120 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15121 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15122 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15123 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15124 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15125 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15126 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15127 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15128 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15129 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15136
15137 LTCC='$LTCC'
15138 LTCFLAGS='$LTCFLAGS'
15139 compiler='$compiler_DEFAULT'
15140
15141 # A function that is used when there is no print builtin or printf.
15142 func_fallback_echo ()
15143 {
15144 eval 'cat <<_LTECHO_EOF
15145 \$1
15146 _LTECHO_EOF'
15147 }
15148
15149 # Quote evaled strings.
15150 for var in SHELL \
15151 ECHO \
15152 SED \
15153 GREP \
15154 EGREP \
15155 FGREP \
15156 LD \
15157 NM \
15158 LN_S \
15159 lt_SP2NL \
15160 lt_NL2SP \
15161 reload_flag \
15162 OBJDUMP \
15163 deplibs_check_method \
15164 file_magic_cmd \
15165 AR \
15166 AR_FLAGS \
15167 STRIP \
15168 RANLIB \
15169 CC \
15170 CFLAGS \
15171 compiler \
15172 lt_cv_sys_global_symbol_pipe \
15173 lt_cv_sys_global_symbol_to_cdecl \
15174 lt_cv_sys_global_symbol_to_c_name_address \
15175 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15176 lt_prog_compiler_no_builtin_flag \
15177 lt_prog_compiler_wl \
15178 lt_prog_compiler_pic \
15179 lt_prog_compiler_static \
15180 lt_cv_prog_compiler_c_o \
15181 need_locks \
15182 DSYMUTIL \
15183 NMEDIT \
15184 LIPO \
15185 OTOOL \
15186 OTOOL64 \
15187 shrext_cmds \
15188 export_dynamic_flag_spec \
15189 whole_archive_flag_spec \
15190 compiler_needs_object \
15191 with_gnu_ld \
15192 allow_undefined_flag \
15193 no_undefined_flag \
15194 hardcode_libdir_flag_spec \
15195 hardcode_libdir_flag_spec_ld \
15196 hardcode_libdir_separator \
15197 fix_srcfile_path \
15198 exclude_expsyms \
15199 include_expsyms \
15200 file_list_spec \
15201 variables_saved_for_relink \
15202 libname_spec \
15203 library_names_spec \
15204 soname_spec \
15205 install_override_mode \
15206 finish_eval \
15207 old_striplib \
15208 striplib; do
15209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15210 *[\\\\\\\`\\"\\\$]*)
15211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15212 ;;
15213 *)
15214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15215 ;;
15216 esac
15217 done
15218
15219 # Double-quote double-evaled strings.
15220 for var in reload_cmds \
15221 old_postinstall_cmds \
15222 old_postuninstall_cmds \
15223 old_archive_cmds \
15224 extract_expsyms_cmds \
15225 old_archive_from_new_cmds \
15226 old_archive_from_expsyms_cmds \
15227 archive_cmds \
15228 archive_expsym_cmds \
15229 module_cmds \
15230 module_expsym_cmds \
15231 export_symbols_cmds \
15232 prelink_cmds \
15233 postinstall_cmds \
15234 postuninstall_cmds \
15235 finish_cmds \
15236 sys_lib_search_path_spec \
15237 sys_lib_dlsearch_path_spec; do
15238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15239 *[\\\\\\\`\\"\\\$]*)
15240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15241 ;;
15242 *)
15243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15244 ;;
15245 esac
15246 done
15247
15248 ac_aux_dir='$ac_aux_dir'
15249 xsi_shell='$xsi_shell'
15250 lt_shell_append='$lt_shell_append'
15251
15252 # See if we are running on zsh, and set the options which allow our
15253 # commands through without removal of \ escapes INIT.
15254 if test -n "\${ZSH_VERSION+set}" ; then
15255 setopt NO_GLOB_SUBST
15256 fi
15257
15258
15259 PACKAGE='$PACKAGE'
15260 VERSION='$VERSION'
15261 TIMESTAMP='$TIMESTAMP'
15262 RM='$RM'
15263 ofile='$ofile'
15264
15265
15266
15267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15268 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15269 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15270 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15271 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15272 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15273 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15274 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15275 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15276 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15277 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15278 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15279 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15280 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15281 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15282 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15283 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15284 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15285 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15286 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15287 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15288 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15289 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15290 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15291 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15292 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15293 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15294 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15295 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15296 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15297 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15298 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15299 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15300
15301 _ACEOF
15302
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304
15305 # Handling of arguments.
15306 for ac_config_target in $ac_config_targets
15307 do
15308 case $ac_config_target in
15309 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15312 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15313 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15314 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
15315 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15316 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15317 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
15318 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15319 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15320 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
15321 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15322 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15323 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15324 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15325 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
15326 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15327 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15328 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15329 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
15330 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15331 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15332 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15333 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15334 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15335 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15336 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
15337 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15338 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15339 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15340 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15341 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
15342 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15343 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15344 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15345 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
15346 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15347 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15348 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
15349 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15350 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15351 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
15352 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15353 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15354 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15355 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15356 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
15357 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15358 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15359 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
15360 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15361 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15362 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15363 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
15364 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15365 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15366 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15367 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
15368 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15369 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
15370 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
15371 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15372 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15373 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
15374 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15375 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15376 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15377 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15378 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15379 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
15380 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15381 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15383
15384 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15385 esac
15386 done
15387
15388
15389 # If the user did not use the arguments to specify the items to instantiate,
15390 # then the envvar interface is used. Set only those that are not.
15391 # We use the long form for the default assignment because of an extremely
15392 # bizarre bug on SunOS 4.1.3.
15393 if $ac_need_defaults; then
15394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15395 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15397 fi
15398
15399 # Have a temporary directory for convenience. Make it in the build tree
15400 # simply because there is no reason against having it here, and in addition,
15401 # creating and moving files from /tmp can sometimes cause problems.
15402 # Hook for its removal unless debugging.
15403 # Note that there is a small window in which the directory will not be cleaned:
15404 # after its creation but before its name has been assigned to `$tmp'.
15405 $debug ||
15406 {
15407 tmp= ac_tmp=
15408 trap 'exit_status=$?
15409 : "${ac_tmp:=$tmp}"
15410 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15411 ' 0
15412 trap 'as_fn_exit 1' 1 2 13 15
15413 }
15414 # Create a (secure) tmp directory for tmp files.
15415
15416 {
15417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15418 test -d "$tmp"
15419 } ||
15420 {
15421 tmp=./conf$$-$RANDOM
15422 (umask 077 && mkdir "$tmp")
15423 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15424 ac_tmp=$tmp
15425
15426 # Set up the scripts for CONFIG_FILES section.
15427 # No need to generate them if there are no CONFIG_FILES.
15428 # This happens for instance with `./config.status config.h'.
15429 if test -n "$CONFIG_FILES"; then
15430
15431
15432 ac_cr=`echo X | tr X '\015'`
15433 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15434 # But we know of no other shell where ac_cr would be empty at this
15435 # point, so we can use a bashism as a fallback.
15436 if test "x$ac_cr" = x; then
15437 eval ac_cr=\$\'\\r\'
15438 fi
15439 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15441 ac_cs_awk_cr='\\r'
15442 else
15443 ac_cs_awk_cr=$ac_cr
15444 fi
15445
15446 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15447 _ACEOF
15448
15449
15450 {
15451 echo "cat >conf$$subs.awk <<_ACEOF" &&
15452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15453 echo "_ACEOF"
15454 } >conf$$subs.sh ||
15455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15457 ac_delim='%!_!# '
15458 for ac_last_try in false false false false false :; do
15459 . ./conf$$subs.sh ||
15460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15461
15462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15463 if test $ac_delim_n = $ac_delim_num; then
15464 break
15465 elif $ac_last_try; then
15466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15467 else
15468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15469 fi
15470 done
15471 rm -f conf$$subs.sh
15472
15473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15474 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15475 _ACEOF
15476 sed -n '
15477 h
15478 s/^/S["/; s/!.*/"]=/
15479 p
15480 g
15481 s/^[^!]*!//
15482 :repl
15483 t repl
15484 s/'"$ac_delim"'$//
15485 t delim
15486 :nl
15487 h
15488 s/\(.\{148\}\)..*/\1/
15489 t more1
15490 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15491 p
15492 n
15493 b repl
15494 :more1
15495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15496 p
15497 g
15498 s/.\{148\}//
15499 t nl
15500 :delim
15501 h
15502 s/\(.\{148\}\)..*/\1/
15503 t more2
15504 s/["\\]/\\&/g; s/^/"/; s/$/"/
15505 p
15506 b
15507 :more2
15508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15509 p
15510 g
15511 s/.\{148\}//
15512 t delim
15513 ' <conf$$subs.awk | sed '
15514 /^[^""]/{
15515 N
15516 s/\n//
15517 }
15518 ' >>$CONFIG_STATUS || ac_write_fail=1
15519 rm -f conf$$subs.awk
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 _ACAWK
15522 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15523 for (key in S) S_is_set[key] = 1
15524 FS = "\a"
15525
15526 }
15527 {
15528 line = $ 0
15529 nfields = split(line, field, "@")
15530 substed = 0
15531 len = length(field[1])
15532 for (i = 2; i < nfields; i++) {
15533 key = field[i]
15534 keylen = length(key)
15535 if (S_is_set[key]) {
15536 value = S[key]
15537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15538 len += length(value) + length(field[++i])
15539 substed = 1
15540 } else
15541 len += 1 + keylen
15542 }
15543
15544 print line
15545 }
15546
15547 _ACAWK
15548 _ACEOF
15549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15551 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15552 else
15553 cat
15554 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15555 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15556 _ACEOF
15557
15558 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15559 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15560 # trailing colons and then remove the whole line if VPATH becomes empty
15561 # (actually we leave an empty line to preserve line numbers).
15562 if test "x$srcdir" = x.; then
15563 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15564 h
15565 s///
15566 s/^/:/
15567 s/[ ]*$/:/
15568 s/:\$(srcdir):/:/g
15569 s/:\${srcdir}:/:/g
15570 s/:@srcdir@:/:/g
15571 s/^:*//
15572 s/:*$//
15573 x
15574 s/\(=[ ]*\).*/\1/
15575 G
15576 s/\n//
15577 s/^[^=]*=[ ]*$//
15578 }'
15579 fi
15580
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582 fi # test -n "$CONFIG_FILES"
15583
15584 # Set up the scripts for CONFIG_HEADERS section.
15585 # No need to generate them if there are no CONFIG_HEADERS.
15586 # This happens for instance with `./config.status Makefile'.
15587 if test -n "$CONFIG_HEADERS"; then
15588 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15589 BEGIN {
15590 _ACEOF
15591
15592 # Transform confdefs.h into an awk script `defines.awk', embedded as
15593 # here-document in config.status, that substitutes the proper values into
15594 # config.h.in to produce config.h.
15595
15596 # Create a delimiter string that does not exist in confdefs.h, to ease
15597 # handling of long lines.
15598 ac_delim='%!_!# '
15599 for ac_last_try in false false :; do
15600 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15601 if test -z "$ac_tt"; then
15602 break
15603 elif $ac_last_try; then
15604 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15605 else
15606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15607 fi
15608 done
15609
15610 # For the awk script, D is an array of macro values keyed by name,
15611 # likewise P contains macro parameters if any. Preserve backslash
15612 # newline sequences.
15613
15614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15615 sed -n '
15616 s/.\{148\}/&'"$ac_delim"'/g
15617 t rset
15618 :rset
15619 s/^[ ]*#[ ]*define[ ][ ]*/ /
15620 t def
15621 d
15622 :def
15623 s/\\$//
15624 t bsnl
15625 s/["\\]/\\&/g
15626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15627 D["\1"]=" \3"/p
15628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15629 d
15630 :bsnl
15631 s/["\\]/\\&/g
15632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15633 D["\1"]=" \3\\\\\\n"\\/p
15634 t cont
15635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15636 t cont
15637 d
15638 :cont
15639 n
15640 s/.\{148\}/&'"$ac_delim"'/g
15641 t clear
15642 :clear
15643 s/\\$//
15644 t bsnlc
15645 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15646 d
15647 :bsnlc
15648 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15649 b cont
15650 ' <confdefs.h | sed '
15651 s/'"$ac_delim"'/"\\\
15652 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15653
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 for (key in D) D_is_set[key] = 1
15656 FS = "\a"
15657 }
15658 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15659 line = \$ 0
15660 split(line, arg, " ")
15661 if (arg[1] == "#") {
15662 defundef = arg[2]
15663 mac1 = arg[3]
15664 } else {
15665 defundef = substr(arg[1], 2)
15666 mac1 = arg[2]
15667 }
15668 split(mac1, mac2, "(") #)
15669 macro = mac2[1]
15670 prefix = substr(line, 1, index(line, defundef) - 1)
15671 if (D_is_set[macro]) {
15672 # Preserve the white space surrounding the "#".
15673 print prefix "define", macro P[macro] D[macro]
15674 next
15675 } else {
15676 # Replace #undef with comments. This is necessary, for example,
15677 # in the case of _POSIX_SOURCE, which is predefined and required
15678 # on some systems where configure will not decide to define it.
15679 if (defundef == "undef") {
15680 print "/*", prefix defundef, macro, "*/"
15681 next
15682 }
15683 }
15684 }
15685 { print }
15686 _ACAWK
15687 _ACEOF
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15690 fi # test -n "$CONFIG_HEADERS"
15691
15692
15693 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15694 shift
15695 for ac_tag
15696 do
15697 case $ac_tag in
15698 :[FHLC]) ac_mode=$ac_tag; continue;;
15699 esac
15700 case $ac_mode$ac_tag in
15701 :[FHL]*:*);;
15702 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15703 :[FH]-) ac_tag=-:-;;
15704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15705 esac
15706 ac_save_IFS=$IFS
15707 IFS=:
15708 set x $ac_tag
15709 IFS=$ac_save_IFS
15710 shift
15711 ac_file=$1
15712 shift
15713
15714 case $ac_mode in
15715 :L) ac_source=$1;;
15716 :[FH])
15717 ac_file_inputs=
15718 for ac_f
15719 do
15720 case $ac_f in
15721 -) ac_f="$ac_tmp/stdin";;
15722 *) # Look for the file first in the build tree, then in the source tree
15723 # (if the path is not absolute). The absolute path cannot be DOS-style,
15724 # because $ac_f cannot contain `:'.
15725 test -f "$ac_f" ||
15726 case $ac_f in
15727 [\\/$]*) false;;
15728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15729 esac ||
15730 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15731 esac
15732 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15733 as_fn_append ac_file_inputs " '$ac_f'"
15734 done
15735
15736 # Let's still pretend it is `configure' which instantiates (i.e., don't
15737 # use $as_me), people would be surprised to read:
15738 # /* config.h. Generated by config.status. */
15739 configure_input='Generated from '`
15740 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15741 `' by configure.'
15742 if test x"$ac_file" != x-; then
15743 configure_input="$ac_file. $configure_input"
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15745 $as_echo "$as_me: creating $ac_file" >&6;}
15746 fi
15747 # Neutralize special characters interpreted by sed in replacement strings.
15748 case $configure_input in #(
15749 *\&* | *\|* | *\\* )
15750 ac_sed_conf_input=`$as_echo "$configure_input" |
15751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15752 *) ac_sed_conf_input=$configure_input;;
15753 esac
15754
15755 case $ac_tag in
15756 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15758 esac
15759 ;;
15760 esac
15761
15762 ac_dir=`$as_dirname -- "$ac_file" ||
15763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X"$ac_file" : 'X\(//\)[^/]' \| \
15765 X"$ac_file" : 'X\(//\)$' \| \
15766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15767 $as_echo X"$ac_file" |
15768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\/\)[^/].*/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\/\)$/{
15777 s//\1/
15778 q
15779 }
15780 /^X\(\/\).*/{
15781 s//\1/
15782 q
15783 }
15784 s/.*/./; q'`
15785 as_dir="$ac_dir"; as_fn_mkdir_p
15786 ac_builddir=.
15787
15788 case "$ac_dir" in
15789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15790 *)
15791 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15792 # A ".." for each directory in $ac_dir_suffix.
15793 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15794 case $ac_top_builddir_sub in
15795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15797 esac ;;
15798 esac
15799 ac_abs_top_builddir=$ac_pwd
15800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15801 # for backward compatibility:
15802 ac_top_builddir=$ac_top_build_prefix
15803
15804 case $srcdir in
15805 .) # We are building in place.
15806 ac_srcdir=.
15807 ac_top_srcdir=$ac_top_builddir_sub
15808 ac_abs_top_srcdir=$ac_pwd ;;
15809 [\\/]* | ?:[\\/]* ) # Absolute name.
15810 ac_srcdir=$srcdir$ac_dir_suffix;
15811 ac_top_srcdir=$srcdir
15812 ac_abs_top_srcdir=$srcdir ;;
15813 *) # Relative name.
15814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15815 ac_top_srcdir=$ac_top_build_prefix$srcdir
15816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15817 esac
15818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15819
15820
15821 case $ac_mode in
15822 :F)
15823 #
15824 # CONFIG_FILE
15825 #
15826
15827 case $INSTALL in
15828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15830 esac
15831 ac_MKDIR_P=$MKDIR_P
15832 case $MKDIR_P in
15833 [\\/$]* | ?:[\\/]* ) ;;
15834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15835 esac
15836 _ACEOF
15837
15838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839 # If the template does not know about datarootdir, expand it.
15840 # FIXME: This hack should be removed a few years after 2.60.
15841 ac_datarootdir_hack=; ac_datarootdir_seen=
15842 ac_sed_dataroot='
15843 /datarootdir/ {
15844 p
15845 q
15846 }
15847 /@datadir@/p
15848 /@docdir@/p
15849 /@infodir@/p
15850 /@localedir@/p
15851 /@mandir@/p'
15852 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15853 *datarootdir*) ac_datarootdir_seen=yes;;
15854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15856 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15857 _ACEOF
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 ac_datarootdir_hack='
15860 s&@datadir@&$datadir&g
15861 s&@docdir@&$docdir&g
15862 s&@infodir@&$infodir&g
15863 s&@localedir@&$localedir&g
15864 s&@mandir@&$mandir&g
15865 s&\\\${datarootdir}&$datarootdir&g' ;;
15866 esac
15867 _ACEOF
15868
15869 # Neutralize VPATH when `$srcdir' = `.'.
15870 # Shell code in configure.ac might set extrasub.
15871 # FIXME: do we really want to maintain this feature?
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 ac_sed_extra="$ac_vpsub
15874 $extrasub
15875 _ACEOF
15876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877 :t
15878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15879 s|@configure_input@|$ac_sed_conf_input|;t t
15880 s&@top_builddir@&$ac_top_builddir_sub&;t t
15881 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15882 s&@srcdir@&$ac_srcdir&;t t
15883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15884 s&@top_srcdir@&$ac_top_srcdir&;t t
15885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15886 s&@builddir@&$ac_builddir&;t t
15887 s&@abs_builddir@&$ac_abs_builddir&;t t
15888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15889 s&@INSTALL@&$ac_INSTALL&;t t
15890 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15891 $ac_datarootdir_hack
15892 "
15893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15894 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15895
15896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15899 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15901 which seems to be undefined. Please make sure it is defined" >&5
15902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15903 which seems to be undefined. Please make sure it is defined" >&2;}
15904
15905 rm -f "$ac_tmp/stdin"
15906 case $ac_file in
15907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15909 esac \
15910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15911 ;;
15912 :H)
15913 #
15914 # CONFIG_HEADER
15915 #
15916 if test x"$ac_file" != x-; then
15917 {
15918 $as_echo "/* $configure_input */" \
15919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15920 } >"$ac_tmp/config.h" \
15921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15922 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15925 else
15926 rm -f "$ac_file"
15927 mv "$ac_tmp/config.h" "$ac_file" \
15928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15929 fi
15930 else
15931 $as_echo "/* $configure_input */" \
15932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15933 || as_fn_error $? "could not create -" "$LINENO" 5
15934 fi
15935 # Compute "$ac_file"'s index in $config_headers.
15936 _am_arg="$ac_file"
15937 _am_stamp_count=1
15938 for _am_header in $config_headers :; do
15939 case $_am_header in
15940 $_am_arg | $_am_arg:* )
15941 break ;;
15942 * )
15943 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15944 esac
15945 done
15946 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15947 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948 X"$_am_arg" : 'X\(//\)[^/]' \| \
15949 X"$_am_arg" : 'X\(//\)$' \| \
15950 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15951 $as_echo X"$_am_arg" |
15952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 s//\1/
15954 q
15955 }
15956 /^X\(\/\/\)[^/].*/{
15957 s//\1/
15958 q
15959 }
15960 /^X\(\/\/\)$/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\).*/{
15965 s//\1/
15966 q
15967 }
15968 s/.*/./; q'`/stamp-h$_am_stamp_count
15969 ;;
15970
15971 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15972 $as_echo "$as_me: executing $ac_file commands" >&6;}
15973 ;;
15974 esac
15975
15976
15977 case $ac_file$ac_mode in
15978 "libtool":C)
15979
15980 # See if we are running on zsh, and set the options which allow our
15981 # commands through without removal of \ escapes.
15982 if test -n "${ZSH_VERSION+set}" ; then
15983 setopt NO_GLOB_SUBST
15984 fi
15985
15986 cfgfile="${ofile}T"
15987 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15988 $RM "$cfgfile"
15989
15990 cat <<_LT_EOF >> "$cfgfile"
15991 #! $SHELL
15992
15993 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15994 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15996 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15997 #
15998 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15999 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16000 # Written by Gordon Matzigkeit, 1996
16001 #
16002 # This file is part of GNU Libtool.
16003 #
16004 # GNU Libtool is free software; you can redistribute it and/or
16005 # modify it under the terms of the GNU General Public License as
16006 # published by the Free Software Foundation; either version 2 of
16007 # the License, or (at your option) any later version.
16008 #
16009 # As a special exception to the GNU General Public License,
16010 # if you distribute this file as part of a program or library that
16011 # is built using GNU Libtool, you may include this file under the
16012 # same distribution terms that you use for the rest of that program.
16013 #
16014 # GNU Libtool is distributed in the hope that it will be useful,
16015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16017 # GNU General Public License for more details.
16018 #
16019 # You should have received a copy of the GNU General Public License
16020 # along with GNU Libtool; see the file COPYING. If not, a copy
16021 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16022 # obtained by writing to the Free Software Foundation, Inc.,
16023 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16024
16025
16026 # The names of the tagged configurations supported by this script.
16027 available_tags=""
16028
16029 # ### BEGIN LIBTOOL CONFIG
16030
16031 # Which release of libtool.m4 was used?
16032 macro_version=$macro_version
16033 macro_revision=$macro_revision
16034
16035 # Whether or not to build shared libraries.
16036 build_libtool_libs=$enable_shared
16037
16038 # Whether or not to build static libraries.
16039 build_old_libs=$enable_static
16040
16041 # What type of objects to build.
16042 pic_mode=$pic_mode
16043
16044 # Whether or not to optimize for fast installation.
16045 fast_install=$enable_fast_install
16046
16047 # Shell to use when invoking shell scripts.
16048 SHELL=$lt_SHELL
16049
16050 # An echo program that protects backslashes.
16051 ECHO=$lt_ECHO
16052
16053 # The host system.
16054 host_alias=$host_alias
16055 host=$host
16056 host_os=$host_os
16057
16058 # The build system.
16059 build_alias=$build_alias
16060 build=$build
16061 build_os=$build_os
16062
16063 # A sed program that does not truncate output.
16064 SED=$lt_SED
16065
16066 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16067 Xsed="\$SED -e 1s/^X//"
16068
16069 # A grep program that handles long lines.
16070 GREP=$lt_GREP
16071
16072 # An ERE matcher.
16073 EGREP=$lt_EGREP
16074
16075 # A literal string matcher.
16076 FGREP=$lt_FGREP
16077
16078 # A BSD- or MS-compatible name lister.
16079 NM=$lt_NM
16080
16081 # Whether we need soft or hard links.
16082 LN_S=$lt_LN_S
16083
16084 # What is the maximum length of a command?
16085 max_cmd_len=$max_cmd_len
16086
16087 # Object file suffix (normally "o").
16088 objext=$ac_objext
16089
16090 # Executable file suffix (normally "").
16091 exeext=$exeext
16092
16093 # whether the shell understands "unset".
16094 lt_unset=$lt_unset
16095
16096 # turn spaces into newlines.
16097 SP2NL=$lt_lt_SP2NL
16098
16099 # turn newlines into spaces.
16100 NL2SP=$lt_lt_NL2SP
16101
16102 # An object symbol dumper.
16103 OBJDUMP=$lt_OBJDUMP
16104
16105 # Method to check whether dependent libraries are shared objects.
16106 deplibs_check_method=$lt_deplibs_check_method
16107
16108 # Command to use when deplibs_check_method == "file_magic".
16109 file_magic_cmd=$lt_file_magic_cmd
16110
16111 # The archiver.
16112 AR=$lt_AR
16113 AR_FLAGS=$lt_AR_FLAGS
16114
16115 # A symbol stripping program.
16116 STRIP=$lt_STRIP
16117
16118 # Commands used to install an old-style archive.
16119 RANLIB=$lt_RANLIB
16120 old_postinstall_cmds=$lt_old_postinstall_cmds
16121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16122
16123 # Whether to use a lock for old archive extraction.
16124 lock_old_archive_extraction=$lock_old_archive_extraction
16125
16126 # A C compiler.
16127 LTCC=$lt_CC
16128
16129 # LTCC compiler flags.
16130 LTCFLAGS=$lt_CFLAGS
16131
16132 # Take the output of nm and produce a listing of raw symbols and C names.
16133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16134
16135 # Transform the output of nm in a proper C declaration.
16136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16137
16138 # Transform the output of nm in a C name address pair.
16139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16140
16141 # Transform the output of nm in a C name address pair when lib prefix is needed.
16142 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16143
16144 # The name of the directory that contains temporary libtool files.
16145 objdir=$objdir
16146
16147 # Used to examine libraries when file_magic_cmd begins with "file".
16148 MAGIC_CMD=$MAGIC_CMD
16149
16150 # Must we lock files when doing compilation?
16151 need_locks=$lt_need_locks
16152
16153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16154 DSYMUTIL=$lt_DSYMUTIL
16155
16156 # Tool to change global to local symbols on Mac OS X.
16157 NMEDIT=$lt_NMEDIT
16158
16159 # Tool to manipulate fat objects and archives on Mac OS X.
16160 LIPO=$lt_LIPO
16161
16162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16163 OTOOL=$lt_OTOOL
16164
16165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16166 OTOOL64=$lt_OTOOL64
16167
16168 # Old archive suffix (normally "a").
16169 libext=$libext
16170
16171 # Shared library suffix (normally ".so").
16172 shrext_cmds=$lt_shrext_cmds
16173
16174 # The commands to extract the exported symbol list from a shared archive.
16175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16176
16177 # Variables whose values should be saved in libtool wrapper scripts and
16178 # restored at link time.
16179 variables_saved_for_relink=$lt_variables_saved_for_relink
16180
16181 # Do we need the "lib" prefix for modules?
16182 need_lib_prefix=$need_lib_prefix
16183
16184 # Do we need a version for libraries?
16185 need_version=$need_version
16186
16187 # Library versioning type.
16188 version_type=$version_type
16189
16190 # Shared library runtime path variable.
16191 runpath_var=$runpath_var
16192
16193 # Shared library path variable.
16194 shlibpath_var=$shlibpath_var
16195
16196 # Is shlibpath searched before the hard-coded library search path?
16197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16198
16199 # Format of library name prefix.
16200 libname_spec=$lt_libname_spec
16201
16202 # List of archive names. First name is the real one, the rest are links.
16203 # The last name is the one that the linker finds with -lNAME
16204 library_names_spec=$lt_library_names_spec
16205
16206 # The coded name of the library, if different from the real name.
16207 soname_spec=$lt_soname_spec
16208
16209 # Permission mode override for installation of shared libraries.
16210 install_override_mode=$lt_install_override_mode
16211
16212 # Command to use after installation of a shared archive.
16213 postinstall_cmds=$lt_postinstall_cmds
16214
16215 # Command to use after uninstallation of a shared archive.
16216 postuninstall_cmds=$lt_postuninstall_cmds
16217
16218 # Commands used to finish a libtool library installation in a directory.
16219 finish_cmds=$lt_finish_cmds
16220
16221 # As "finish_cmds", except a single script fragment to be evaled but
16222 # not shown.
16223 finish_eval=$lt_finish_eval
16224
16225 # Whether we should hardcode library paths into libraries.
16226 hardcode_into_libs=$hardcode_into_libs
16227
16228 # Compile-time system search path for libraries.
16229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16230
16231 # Run-time system search path for libraries.
16232 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16233
16234 # Whether dlopen is supported.
16235 dlopen_support=$enable_dlopen
16236
16237 # Whether dlopen of programs is supported.
16238 dlopen_self=$enable_dlopen_self
16239
16240 # Whether dlopen of statically linked programs is supported.
16241 dlopen_self_static=$enable_dlopen_self_static
16242
16243 # Commands to strip libraries.
16244 old_striplib=$lt_old_striplib
16245 striplib=$lt_striplib
16246
16247
16248 # The linker used to build libraries.
16249 LD=$lt_LD
16250
16251 # How to create reloadable object files.
16252 reload_flag=$lt_reload_flag
16253 reload_cmds=$lt_reload_cmds
16254
16255 # Commands used to build an old-style archive.
16256 old_archive_cmds=$lt_old_archive_cmds
16257
16258 # A language specific compiler.
16259 CC=$lt_compiler
16260
16261 # Is the compiler the GNU compiler?
16262 with_gcc=$GCC
16263
16264 # Compiler flag to turn off builtin functions.
16265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16266
16267 # How to pass a linker flag through the compiler.
16268 wl=$lt_lt_prog_compiler_wl
16269
16270 # Additional compiler flags for building library objects.
16271 pic_flag=$lt_lt_prog_compiler_pic
16272
16273 # Compiler flag to prevent dynamic linking.
16274 link_static_flag=$lt_lt_prog_compiler_static
16275
16276 # Does compiler simultaneously support -c and -o options?
16277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16278
16279 # Whether or not to add -lc for building shared libraries.
16280 build_libtool_need_lc=$archive_cmds_need_lc
16281
16282 # Whether or not to disallow shared libs when runtime libs are static.
16283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16284
16285 # Compiler flag to allow reflexive dlopens.
16286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16287
16288 # Compiler flag to generate shared objects directly from archives.
16289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16290
16291 # Whether the compiler copes with passing no objects directly.
16292 compiler_needs_object=$lt_compiler_needs_object
16293
16294 # Create an old-style archive from a shared archive.
16295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16296
16297 # Create a temporary old-style archive to link instead of a shared archive.
16298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16299
16300 # Commands used to build a shared archive.
16301 archive_cmds=$lt_archive_cmds
16302 archive_expsym_cmds=$lt_archive_expsym_cmds
16303
16304 # Commands used to build a loadable module if different from building
16305 # a shared archive.
16306 module_cmds=$lt_module_cmds
16307 module_expsym_cmds=$lt_module_expsym_cmds
16308
16309 # Whether we are building with GNU ld or not.
16310 with_gnu_ld=$lt_with_gnu_ld
16311
16312 # Flag that allows shared libraries with undefined symbols to be built.
16313 allow_undefined_flag=$lt_allow_undefined_flag
16314
16315 # Flag that enforces no undefined symbols.
16316 no_undefined_flag=$lt_no_undefined_flag
16317
16318 # Flag to hardcode \$libdir into a binary during linking.
16319 # This must work even if \$libdir does not exist
16320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16321
16322 # If ld is used when linking, flag to hardcode \$libdir into a binary
16323 # during linking. This must work even if \$libdir does not exist.
16324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16325
16326 # Whether we need a single "-rpath" flag with a separated argument.
16327 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16328
16329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16330 # DIR into the resulting binary.
16331 hardcode_direct=$hardcode_direct
16332
16333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16334 # DIR into the resulting binary and the resulting library dependency is
16335 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16336 # library is relocated.
16337 hardcode_direct_absolute=$hardcode_direct_absolute
16338
16339 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16340 # into the resulting binary.
16341 hardcode_minus_L=$hardcode_minus_L
16342
16343 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16344 # into the resulting binary.
16345 hardcode_shlibpath_var=$hardcode_shlibpath_var
16346
16347 # Set to "yes" if building a shared library automatically hardcodes DIR
16348 # into the library and all subsequent libraries and executables linked
16349 # against it.
16350 hardcode_automatic=$hardcode_automatic
16351
16352 # Set to yes if linker adds runtime paths of dependent libraries
16353 # to runtime path list.
16354 inherit_rpath=$inherit_rpath
16355
16356 # Whether libtool must link a program against all its dependency libraries.
16357 link_all_deplibs=$link_all_deplibs
16358
16359 # Fix the shell variable \$srcfile for the compiler.
16360 fix_srcfile_path=$lt_fix_srcfile_path
16361
16362 # Set to "yes" if exported symbols are required.
16363 always_export_symbols=$always_export_symbols
16364
16365 # The commands to list exported symbols.
16366 export_symbols_cmds=$lt_export_symbols_cmds
16367
16368 # Symbols that should not be listed in the preloaded symbols.
16369 exclude_expsyms=$lt_exclude_expsyms
16370
16371 # Symbols that must always be exported.
16372 include_expsyms=$lt_include_expsyms
16373
16374 # Commands necessary for linking programs (against libraries) with templates.
16375 prelink_cmds=$lt_prelink_cmds
16376
16377 # Specify filename containing input files.
16378 file_list_spec=$lt_file_list_spec
16379
16380 # How to hardcode a shared library path into an executable.
16381 hardcode_action=$hardcode_action
16382
16383 # ### END LIBTOOL CONFIG
16384
16385 _LT_EOF
16386
16387 case $host_os in
16388 aix3*)
16389 cat <<\_LT_EOF >> "$cfgfile"
16390 # AIX sometimes has problems with the GCC collect2 program. For some
16391 # reason, if we set the COLLECT_NAMES environment variable, the problems
16392 # vanish in a puff of smoke.
16393 if test "X${COLLECT_NAMES+set}" != Xset; then
16394 COLLECT_NAMES=
16395 export COLLECT_NAMES
16396 fi
16397 _LT_EOF
16398 ;;
16399 esac
16400
16401
16402 ltmain="$ac_aux_dir/ltmain.sh"
16403
16404
16405 # We use sed instead of cat because bash on DJGPP gets confused if
16406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16407 # text mode, it properly converts lines to CR/LF. This bash problem
16408 # is reportedly fixed, but why not run on old versions too?
16409 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16410 || (rm -f "$cfgfile"; exit 1)
16411
16412 case $xsi_shell in
16413 yes)
16414 cat << \_LT_EOF >> "$cfgfile"
16415
16416 # func_dirname file append nondir_replacement
16417 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16418 # otherwise set result to NONDIR_REPLACEMENT.
16419 func_dirname ()
16420 {
16421 case ${1} in
16422 */*) func_dirname_result="${1%/*}${2}" ;;
16423 * ) func_dirname_result="${3}" ;;
16424 esac
16425 }
16426
16427 # func_basename file
16428 func_basename ()
16429 {
16430 func_basename_result="${1##*/}"
16431 }
16432
16433 # func_dirname_and_basename file append nondir_replacement
16434 # perform func_basename and func_dirname in a single function
16435 # call:
16436 # dirname: Compute the dirname of FILE. If nonempty,
16437 # add APPEND to the result, otherwise set result
16438 # to NONDIR_REPLACEMENT.
16439 # value returned in "$func_dirname_result"
16440 # basename: Compute filename of FILE.
16441 # value retuned in "$func_basename_result"
16442 # Implementation must be kept synchronized with func_dirname
16443 # and func_basename. For efficiency, we do not delegate to
16444 # those functions but instead duplicate the functionality here.
16445 func_dirname_and_basename ()
16446 {
16447 case ${1} in
16448 */*) func_dirname_result="${1%/*}${2}" ;;
16449 * ) func_dirname_result="${3}" ;;
16450 esac
16451 func_basename_result="${1##*/}"
16452 }
16453
16454 # func_stripname prefix suffix name
16455 # strip PREFIX and SUFFIX off of NAME.
16456 # PREFIX and SUFFIX must not contain globbing or regex special
16457 # characters, hashes, percent signs, but SUFFIX may contain a leading
16458 # dot (in which case that matches only a dot).
16459 func_stripname ()
16460 {
16461 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16462 # positional parameters, so assign one to ordinary parameter first.
16463 func_stripname_result=${3}
16464 func_stripname_result=${func_stripname_result#"${1}"}
16465 func_stripname_result=${func_stripname_result%"${2}"}
16466 }
16467
16468 # func_opt_split
16469 func_opt_split ()
16470 {
16471 func_opt_split_opt=${1%%=*}
16472 func_opt_split_arg=${1#*=}
16473 }
16474
16475 # func_lo2o object
16476 func_lo2o ()
16477 {
16478 case ${1} in
16479 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16480 *) func_lo2o_result=${1} ;;
16481 esac
16482 }
16483
16484 # func_xform libobj-or-source
16485 func_xform ()
16486 {
16487 func_xform_result=${1%.*}.lo
16488 }
16489
16490 # func_arith arithmetic-term...
16491 func_arith ()
16492 {
16493 func_arith_result=$(( $* ))
16494 }
16495
16496 # func_len string
16497 # STRING may not start with a hyphen.
16498 func_len ()
16499 {
16500 func_len_result=${#1}
16501 }
16502
16503 _LT_EOF
16504 ;;
16505 *) # Bourne compatible functions.
16506 cat << \_LT_EOF >> "$cfgfile"
16507
16508 # func_dirname file append nondir_replacement
16509 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16510 # otherwise set result to NONDIR_REPLACEMENT.
16511 func_dirname ()
16512 {
16513 # Extract subdirectory from the argument.
16514 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16515 if test "X$func_dirname_result" = "X${1}"; then
16516 func_dirname_result="${3}"
16517 else
16518 func_dirname_result="$func_dirname_result${2}"
16519 fi
16520 }
16521
16522 # func_basename file
16523 func_basename ()
16524 {
16525 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16526 }
16527
16528
16529 # func_stripname prefix suffix name
16530 # strip PREFIX and SUFFIX off of NAME.
16531 # PREFIX and SUFFIX must not contain globbing or regex special
16532 # characters, hashes, percent signs, but SUFFIX may contain a leading
16533 # dot (in which case that matches only a dot).
16534 # func_strip_suffix prefix name
16535 func_stripname ()
16536 {
16537 case ${2} in
16538 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16539 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16540 esac
16541 }
16542
16543 # sed scripts:
16544 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16545 my_sed_long_arg='1s/^-[^=]*=//'
16546
16547 # func_opt_split
16548 func_opt_split ()
16549 {
16550 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16551 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16552 }
16553
16554 # func_lo2o object
16555 func_lo2o ()
16556 {
16557 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16558 }
16559
16560 # func_xform libobj-or-source
16561 func_xform ()
16562 {
16563 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16564 }
16565
16566 # func_arith arithmetic-term...
16567 func_arith ()
16568 {
16569 func_arith_result=`expr "$@"`
16570 }
16571
16572 # func_len string
16573 # STRING may not start with a hyphen.
16574 func_len ()
16575 {
16576 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16577 }
16578
16579 _LT_EOF
16580 esac
16581
16582 case $lt_shell_append in
16583 yes)
16584 cat << \_LT_EOF >> "$cfgfile"
16585
16586 # func_append var value
16587 # Append VALUE to the end of shell variable VAR.
16588 func_append ()
16589 {
16590 eval "$1+=\$2"
16591 }
16592 _LT_EOF
16593 ;;
16594 *)
16595 cat << \_LT_EOF >> "$cfgfile"
16596
16597 # func_append var value
16598 # Append VALUE to the end of shell variable VAR.
16599 func_append ()
16600 {
16601 eval "$1=\$$1\$2"
16602 }
16603
16604 _LT_EOF
16605 ;;
16606 esac
16607
16608
16609 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16610 || (rm -f "$cfgfile"; exit 1)
16611
16612 mv -f "$cfgfile" "$ofile" ||
16613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16614 chmod +x "$ofile"
16615
16616 ;;
16617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16618 # Older Autoconf quotes --file arguments for eval, but not when files
16619 # are listed without --file. Let's play safe and only enable the eval
16620 # if we detect the quoting.
16621 case $CONFIG_FILES in
16622 *\'*) eval set x "$CONFIG_FILES" ;;
16623 *) set x $CONFIG_FILES ;;
16624 esac
16625 shift
16626 for mf
16627 do
16628 # Strip MF so we end up with the name of the file.
16629 mf=`echo "$mf" | sed -e 's/:.*$//'`
16630 # Check whether this is an Automake generated Makefile or not.
16631 # We used to match only the files named 'Makefile.in', but
16632 # some people rename them; so instead we look at the file content.
16633 # Grep'ing the first line is not enough: some people post-process
16634 # each Makefile.in and add a new line on top of each file to say so.
16635 # Grep'ing the whole file is not good either: AIX grep has a line
16636 # limit of 2048, but all sed's we know have understand at least 4000.
16637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16638 dirpart=`$as_dirname -- "$mf" ||
16639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640 X"$mf" : 'X\(//\)[^/]' \| \
16641 X"$mf" : 'X\(//\)$' \| \
16642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16643 $as_echo X"$mf" |
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645 s//\1/
16646 q
16647 }
16648 /^X\(\/\/\)[^/].*/{
16649 s//\1/
16650 q
16651 }
16652 /^X\(\/\/\)$/{
16653 s//\1/
16654 q
16655 }
16656 /^X\(\/\).*/{
16657 s//\1/
16658 q
16659 }
16660 s/.*/./; q'`
16661 else
16662 continue
16663 fi
16664 # Extract the definition of DEPDIR, am__include, and am__quote
16665 # from the Makefile without running 'make'.
16666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16667 test -z "$DEPDIR" && continue
16668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16669 test -z "$am__include" && continue
16670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16671 # Find all dependency output files, they are included files with
16672 # $(DEPDIR) in their names. We invoke sed twice because it is the
16673 # simplest approach to changing $(DEPDIR) to its actual value in the
16674 # expansion.
16675 for file in `sed -n "
16676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16678 # Make sure the directory exists.
16679 test -f "$dirpart/$file" && continue
16680 fdir=`$as_dirname -- "$file" ||
16681 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682 X"$file" : 'X\(//\)[^/]' \| \
16683 X"$file" : 'X\(//\)$' \| \
16684 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16685 $as_echo X"$file" |
16686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16687 s//\1/
16688 q
16689 }
16690 /^X\(\/\/\)[^/].*/{
16691 s//\1/
16692 q
16693 }
16694 /^X\(\/\/\)$/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\).*/{
16699 s//\1/
16700 q
16701 }
16702 s/.*/./; q'`
16703 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16704 # echo "creating $dirpart/$file"
16705 echo '# dummy' > "$dirpart/$file"
16706 done
16707 done
16708 }
16709 ;;
16710 "aarch64/Makefile":C) sed -n \
16711 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16712 /^srcdir = / s:$:/aarch64:
16713 p
16714 }' \
16715 <Make-common.sim >aarch64/Makesim1.tmp
16716 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
16717 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
16718 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
16719 <aarch64/Makefile.sim >aarch64/Makefile
16720 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
16721 ;;
16722 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
16723 "arm/Makefile":C) sed -n \
16724 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16725 /^srcdir = / s:$:/arm:
16726 p
16727 }' \
16728 <Make-common.sim >arm/Makesim1.tmp
16729 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
16730 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
16731 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
16732 <arm/Makefile.sim >arm/Makefile
16733 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
16734 ;;
16735 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
16736 "avr/Makefile":C) sed -n \
16737 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16738 /^srcdir = / s:$:/avr:
16739 p
16740 }' \
16741 <Make-common.sim >avr/Makesim1.tmp
16742 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
16743 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
16744 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
16745 <avr/Makefile.sim >avr/Makefile
16746 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
16747 ;;
16748 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
16749 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
16750 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
16751 "cr16/Makefile":C) sed -n \
16752 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16753 /^srcdir = / s:$:/cr16:
16754 p
16755 }' \
16756 <Make-common.sim >cr16/Makesim1.tmp
16757 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
16758 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
16759 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
16760 <cr16/Makefile.sim >cr16/Makefile
16761 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
16762 ;;
16763 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
16764 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
16765 "d10v/Makefile":C) sed -n \
16766 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16767 /^srcdir = / s:$:/d10v:
16768 p
16769 }' \
16770 <Make-common.sim >d10v/Makesim1.tmp
16771 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
16772 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
16773 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
16774 <d10v/Makefile.sim >d10v/Makefile
16775 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
16776 ;;
16777 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
16778 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
16779 "ft32/Makefile":C) sed -n \
16780 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16781 /^srcdir = / s:$:/ft32:
16782 p
16783 }' \
16784 <Make-common.sim >ft32/Makesim1.tmp
16785 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
16786 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
16787 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
16788 <ft32/Makefile.sim >ft32/Makefile
16789 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
16790 ;;
16791 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
16792 "h8300/Makefile":C) sed -n \
16793 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16794 /^srcdir = / s:$:/h8300:
16795 p
16796 }' \
16797 <Make-common.sim >h8300/Makesim1.tmp
16798 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
16799 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
16800 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
16801 <h8300/Makefile.sim >h8300/Makefile
16802 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
16803 ;;
16804 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
16805 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
16806 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
16807 "m32c/Makefile":C) sed -n \
16808 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16809 /^srcdir = / s:$:/m32c:
16810 p
16811 }' \
16812 <Make-common.sim >m32c/Makesim1.tmp
16813 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
16814 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
16815 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
16816 <m32c/Makefile.sim >m32c/Makefile
16817 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
16818 ;;
16819 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
16820 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
16821 "m68hc11/Makefile":C) sed -n \
16822 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16823 /^srcdir = / s:$:/m68hc11:
16824 p
16825 }' \
16826 <Make-common.sim >m68hc11/Makesim1.tmp
16827 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
16828 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
16829 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
16830 <m68hc11/Makefile.sim >m68hc11/Makefile
16831 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
16832 ;;
16833 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
16834 "mcore/Makefile":C) sed -n \
16835 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16836 /^srcdir = / s:$:/mcore:
16837 p
16838 }' \
16839 <Make-common.sim >mcore/Makesim1.tmp
16840 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
16841 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
16842 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
16843 <mcore/Makefile.sim >mcore/Makefile
16844 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
16845 ;;
16846 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
16847 "microblaze/Makefile":C) sed -n \
16848 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16849 /^srcdir = / s:$:/microblaze:
16850 p
16851 }' \
16852 <Make-common.sim >microblaze/Makesim1.tmp
16853 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
16854 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
16855 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
16856 <microblaze/Makefile.sim >microblaze/Makefile
16857 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
16858 ;;
16859 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
16860 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
16861 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
16862 "moxie/Makefile":C) sed -n \
16863 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16864 /^srcdir = / s:$:/moxie:
16865 p
16866 }' \
16867 <Make-common.sim >moxie/Makesim1.tmp
16868 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
16869 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
16870 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
16871 <moxie/Makefile.sim >moxie/Makefile
16872 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
16873 ;;
16874 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
16875 "msp430/Makefile":C) sed -n \
16876 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16877 /^srcdir = / s:$:/msp430:
16878 p
16879 }' \
16880 <Make-common.sim >msp430/Makesim1.tmp
16881 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
16882 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
16883 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
16884 <msp430/Makefile.sim >msp430/Makefile
16885 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
16886 ;;
16887 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
16888 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
16889 "pru/Makefile":C) sed -n \
16890 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16891 /^srcdir = / s:$:/pru:
16892 p
16893 }' \
16894 <Make-common.sim >pru/Makesim1.tmp
16895 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
16896 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
16897 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
16898 <pru/Makefile.sim >pru/Makefile
16899 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
16900 ;;
16901 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
16902 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
16903 "rl78/Makefile":C) sed -n \
16904 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16905 /^srcdir = / s:$:/rl78:
16906 p
16907 }' \
16908 <Make-common.sim >rl78/Makesim1.tmp
16909 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
16910 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
16911 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
16912 <rl78/Makefile.sim >rl78/Makefile
16913 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
16914 ;;
16915 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
16916 "rx/Makefile":C) sed -n \
16917 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16918 /^srcdir = / s:$:/rx:
16919 p
16920 }' \
16921 <Make-common.sim >rx/Makesim1.tmp
16922 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
16923 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
16924 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
16925 <rx/Makefile.sim >rx/Makefile
16926 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
16927 ;;
16928 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
16929 "sh/Makefile":C) sed -n \
16930 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16931 /^srcdir = / s:$:/sh:
16932 p
16933 }' \
16934 <Make-common.sim >sh/Makesim1.tmp
16935 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
16936 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
16937 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
16938 <sh/Makefile.sim >sh/Makefile
16939 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
16940 ;;
16941 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
16942 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
16943 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
16944 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
16945 "example-synacor/Makefile":C) sed -n \
16946 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16947 /^srcdir = / s:$:/example-synacor:
16948 p
16949 }' \
16950 <Make-common.sim >example-synacor/Makesim1.tmp
16951 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
16952 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
16953 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
16954 <example-synacor/Makefile.sim >example-synacor/Makefile
16955 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
16956 ;;
16957 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
16958
16959 esac
16960 done # for ac_tag
16961
16962
16963 as_fn_exit 0
16964 _ACEOF
16965 ac_clean_files=$ac_clean_files_save
16966
16967 test $ac_write_fail = 0 ||
16968 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16969
16970
16971 # configure is writing to config.log, and then calls config.status.
16972 # config.status does its own redirection, appending to config.log.
16973 # Unfortunately, on DOS this fails, as config.log is still kept open
16974 # by configure, so config.status won't be able to write to it; its
16975 # output is simply discarded. So we exec the FD to /dev/null,
16976 # effectively closing config.log, so it can be properly (re)opened and
16977 # appended to by config.status. When coming back to configure, we
16978 # need to make the FD available again.
16979 if test "$no_create" != yes; then
16980 ac_cs_success=:
16981 ac_config_status_args=
16982 test "$silent" = yes &&
16983 ac_config_status_args="$ac_config_status_args --quiet"
16984 exec 5>/dev/null
16985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16986 exec 5>>config.log
16987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16988 # would make configure fail if this is the last instruction.
16989 $ac_cs_success || as_fn_exit 1
16990 fi
16991
16992 #
16993 # CONFIG_SUBDIRS section.
16994 #
16995 if test "$no_recursion" != yes; then
16996
16997 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16998 # so they do not pile up.
16999 ac_sub_configure_args=
17000 ac_prev=
17001 eval "set x $ac_configure_args"
17002 shift
17003 for ac_arg
17004 do
17005 if test -n "$ac_prev"; then
17006 ac_prev=
17007 continue
17008 fi
17009 case $ac_arg in
17010 -cache-file | --cache-file | --cache-fil | --cache-fi \
17011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17012 ac_prev=cache_file ;;
17013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17015 | --c=*)
17016 ;;
17017 --config-cache | -C)
17018 ;;
17019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17020 ac_prev=srcdir ;;
17021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17022 ;;
17023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17024 ac_prev=prefix ;;
17025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17026 ;;
17027 --disable-option-checking)
17028 ;;
17029 *)
17030 case $ac_arg in
17031 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 esac
17033 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17034 esac
17035 done
17036
17037 # Always prepend --prefix to ensure using the same prefix
17038 # in subdir configurations.
17039 ac_arg="--prefix=$prefix"
17040 case $ac_arg in
17041 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17042 esac
17043 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17044
17045 # Pass --silent
17046 if test "$silent" = yes; then
17047 ac_sub_configure_args="--silent $ac_sub_configure_args"
17048 fi
17049
17050 # Always prepend --disable-option-checking to silence warnings, since
17051 # different subdirs can have different --enable and --with options.
17052 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17053
17054 ac_popdir=`pwd`
17055 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17056
17057 # Do not complain, so a configure script can configure whichever
17058 # parts of a large source tree are present.
17059 test -d "$srcdir/$ac_dir" || continue
17060
17061 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17062 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17063 $as_echo "$ac_msg" >&6
17064 as_dir="$ac_dir"; as_fn_mkdir_p
17065 ac_builddir=.
17066
17067 case "$ac_dir" in
17068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17069 *)
17070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17071 # A ".." for each directory in $ac_dir_suffix.
17072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17073 case $ac_top_builddir_sub in
17074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17076 esac ;;
17077 esac
17078 ac_abs_top_builddir=$ac_pwd
17079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17080 # for backward compatibility:
17081 ac_top_builddir=$ac_top_build_prefix
17082
17083 case $srcdir in
17084 .) # We are building in place.
17085 ac_srcdir=.
17086 ac_top_srcdir=$ac_top_builddir_sub
17087 ac_abs_top_srcdir=$ac_pwd ;;
17088 [\\/]* | ?:[\\/]* ) # Absolute name.
17089 ac_srcdir=$srcdir$ac_dir_suffix;
17090 ac_top_srcdir=$srcdir
17091 ac_abs_top_srcdir=$srcdir ;;
17092 *) # Relative name.
17093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17094 ac_top_srcdir=$ac_top_build_prefix$srcdir
17095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17096 esac
17097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17098
17099
17100 cd "$ac_dir"
17101
17102 # Check for guested configure; otherwise get Cygnus style configure.
17103 if test -f "$ac_srcdir/configure.gnu"; then
17104 ac_sub_configure=$ac_srcdir/configure.gnu
17105 elif test -f "$ac_srcdir/configure"; then
17106 ac_sub_configure=$ac_srcdir/configure
17107 elif test -f "$ac_srcdir/configure.in"; then
17108 # This should be Cygnus configure.
17109 ac_sub_configure=$ac_aux_dir/configure
17110 else
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17112 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17113 ac_sub_configure=
17114 fi
17115
17116 # The recursion is here.
17117 if test -n "$ac_sub_configure"; then
17118 # Make the cache file name correct relative to the subdirectory.
17119 case $cache_file in
17120 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17121 *) # Relative name.
17122 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17123 esac
17124
17125 { $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
17126 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17127 # The eval makes quoting arguments work.
17128 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17129 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17130 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17131 fi
17132
17133 cd "$ac_popdir"
17134 done
17135 fi
17136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17139 fi
17140