]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: frv: flip trapdump default back to off
[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_FRV_TRAPDUMP_FLAGS
643 sim_float
644 sim_bitsize
645 SIM_INLINE
646 sim_hw_sockser
647 sim_hw_cflags
648 SIM_ENABLE_HW_FALSE
649 SIM_ENABLE_HW_TRUE
650 cgen
651 cgendir
652 CGEN_MAINT
653 SIM_ENABLE_IGEN_FALSE
654 SIM_ENABLE_IGEN_TRUE
655 SIM_ENABLE_ARCH_v850_FALSE
656 SIM_ENABLE_ARCH_v850_TRUE
657 SIM_ENABLE_ARCH_erc32_FALSE
658 SIM_ENABLE_ARCH_erc32_TRUE
659 SIM_ENABLE_ARCH_sh_FALSE
660 SIM_ENABLE_ARCH_sh_TRUE
661 SIM_ENABLE_ARCH_rx_FALSE
662 SIM_ENABLE_ARCH_rx_TRUE
663 SIM_ENABLE_ARCH_rl78_FALSE
664 SIM_ENABLE_ARCH_rl78_TRUE
665 SIM_ENABLE_ARCH_riscv_FALSE
666 SIM_ENABLE_ARCH_riscv_TRUE
667 SIM_ENABLE_ARCH_pru_FALSE
668 SIM_ENABLE_ARCH_pru_TRUE
669 SIM_ENABLE_ARCH_ppc_FALSE
670 SIM_ENABLE_ARCH_ppc_TRUE
671 SIM_ENABLE_ARCH_or1k_FALSE
672 SIM_ENABLE_ARCH_or1k_TRUE
673 SIM_ENABLE_ARCH_msp430_FALSE
674 SIM_ENABLE_ARCH_msp430_TRUE
675 SIM_ENABLE_ARCH_moxie_FALSE
676 SIM_ENABLE_ARCH_moxie_TRUE
677 SIM_ENABLE_ARCH_mn10300_FALSE
678 SIM_ENABLE_ARCH_mn10300_TRUE
679 SIM_ENABLE_ARCH_mips_FALSE
680 SIM_ENABLE_ARCH_mips_TRUE
681 SIM_ENABLE_ARCH_microblaze_FALSE
682 SIM_ENABLE_ARCH_microblaze_TRUE
683 SIM_ENABLE_ARCH_mcore_FALSE
684 SIM_ENABLE_ARCH_mcore_TRUE
685 SIM_ENABLE_ARCH_m68hc11_FALSE
686 SIM_ENABLE_ARCH_m68hc11_TRUE
687 SIM_ENABLE_ARCH_m32r_FALSE
688 SIM_ENABLE_ARCH_m32r_TRUE
689 SIM_ENABLE_ARCH_m32c_FALSE
690 SIM_ENABLE_ARCH_m32c_TRUE
691 SIM_ENABLE_ARCH_lm32_FALSE
692 SIM_ENABLE_ARCH_lm32_TRUE
693 SIM_ENABLE_ARCH_iq2000_FALSE
694 SIM_ENABLE_ARCH_iq2000_TRUE
695 SIM_ENABLE_ARCH_h8300_FALSE
696 SIM_ENABLE_ARCH_h8300_TRUE
697 SIM_ENABLE_ARCH_ft32_FALSE
698 SIM_ENABLE_ARCH_ft32_TRUE
699 SIM_ENABLE_ARCH_frv_FALSE
700 SIM_ENABLE_ARCH_frv_TRUE
701 SIM_ENABLE_ARCH_d10v_FALSE
702 SIM_ENABLE_ARCH_d10v_TRUE
703 SIM_ENABLE_ARCH_cris_FALSE
704 SIM_ENABLE_ARCH_cris_TRUE
705 SIM_ENABLE_ARCH_cr16_FALSE
706 SIM_ENABLE_ARCH_cr16_TRUE
707 SIM_ENABLE_ARCH_bpf_FALSE
708 SIM_ENABLE_ARCH_bpf_TRUE
709 subdirs
710 SIM_ENABLE_ARCH_bfin_FALSE
711 SIM_ENABLE_ARCH_bfin_TRUE
712 SIM_ENABLE_ARCH_avr_FALSE
713 SIM_ENABLE_ARCH_avr_TRUE
714 SIM_ENABLE_ARCH_arm_FALSE
715 SIM_ENABLE_ARCH_arm_TRUE
716 SIM_ENABLE_ARCH_aarch64_FALSE
717 SIM_ENABLE_ARCH_aarch64_TRUE
718 SIM_COMMON_BUILD_FALSE
719 SIM_COMMON_BUILD_TRUE
720 SIM_SUBDIRS
721 SIM_PRIMARY_TARGET
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 am__untar
737 am__tar
738 AMTAR
739 am__leading_dot
740 SET_MAKE
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 MAINT
755 MAINTAINER_MODE_FALSE
756 MAINTAINER_MODE_TRUE
757 READLINE_CFLAGS
758 READLINE_LIB
759 TERMCAP_LIB
760 SDL_LIBS
761 SDL_CFLAGS
762 lt_cv_dlopen_libs
763 OTOOL64
764 OTOOL
765 LIPO
766 NMEDIT
767 DSYMUTIL
768 AWK
769 STRIP
770 OBJDUMP
771 LN_S
772 NM
773 ac_ct_DUMPBIN
774 DUMPBIN
775 LD
776 FGREP
777 SED
778 LIBTOOL
779 PLUGINS_FALSE
780 PLUGINS_TRUE
781 zlibinc
782 zlibdir
783 CATOBJEXT
784 GENCAT
785 INSTOBJEXT
786 DATADIRNAME
787 CATALOGS
788 POSUB
789 GMSGFMT
790 XGETTEXT
791 INCINTL
792 LIBINTL_DEP
793 LIBINTL
794 USE_NLS
795 LIBOBJS
796 C_DIALECT
797 PKG_CONFIG_LIBDIR
798 PKG_CONFIG_PATH
799 PKG_CONFIG
800 RANLIB
801 AR
802 LDFLAGS_FOR_BUILD
803 CFLAGS_FOR_BUILD
804 RANLIB_FOR_BUILD
805 CC_FOR_BUILD
806 AR_FOR_BUILD
807 DTC
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 EGREP
812 GREP
813 CPP
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 target_os
822 target_vendor
823 target_cpu
824 target
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 REPORT_BUGS_TEXI
834 REPORT_BUGS_TO
835 PKGVERSION
836 target_alias
837 host_alias
838 build_alias
839 LIBS
840 ECHO_T
841 ECHO_N
842 ECHO_C
843 DEFS
844 mandir
845 localedir
846 libdir
847 psdir
848 pdfdir
849 dvidir
850 htmldir
851 infodir
852 docdir
853 oldincludedir
854 includedir
855 localstatedir
856 sharedstatedir
857 sysconfdir
858 datadir
859 datarootdir
860 libexecdir
861 sbindir
862 bindir
863 program_transform_name
864 prefix
865 exec_prefix
866 PACKAGE_URL
867 PACKAGE_BUGREPORT
868 PACKAGE_STRING
869 PACKAGE_VERSION
870 PACKAGE_TARNAME
871 PACKAGE_NAME
872 PATH_SEPARATOR
873 SHELL
874 WERROR_CFLAGS
875 WARN_CFLAGS'
876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 with_pkgversion
880 with_bugurl
881 with_system_zlib
882 enable_plugins
883 enable_shared
884 enable_static
885 with_pic
886 enable_fast_install
887 with_gnu_ld
888 enable_libtool_lock
889 enable_maintainer_mode
890 enable_dependency_tracking
891 enable_silent_rules
892 enable_sim
893 enable_example_sims
894 enable_targets
895 enable_sim_alignment
896 enable_sim_assert
897 enable_cgen_maint
898 enable_sim_debug
899 enable_sim_endian
900 enable_sim_environment
901 enable_sim_hardware
902 enable_sim_inline
903 enable_sim_profile
904 enable_sim_reserved_bits
905 enable_sim_scache
906 enable_sim_stdio
907 enable_sim_trace
908 enable_werror
909 enable_build_warnings
910 enable_sim_build_warnings
911 enable_sim_frv_trapdump
912 enable_sim_rx_cycle_accurate
913 '
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
917 CC
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
922 CPP
923 PKG_CONFIG
924 PKG_CONFIG_PATH
925 PKG_CONFIG_LIBDIR
926 SDL_CFLAGS
927 SDL_LIBS'
928 ac_subdirs_all='bpf
929 mips
930 mn10300
931 or1k
932 ppc
933 riscv
934 v850'
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *=) ac_optarg= ;;
998 *) ac_optarg=yes ;;
999 esac
1000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
1006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1011
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1026
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1031
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1064
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1229
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1240
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1245
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1250
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1257
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1262
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1265
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1268
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1284
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1318
1319 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information"
1321 ;;
1322
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1329 esac
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1332
1333 *)
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339 ;;
1340
1341 esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error $? "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1362 do
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1365 case $ac_val in
1366 */ )
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1369 esac
1370 # Be sure to have absolute directory names.
1371 case $ac_val in
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 esac
1375 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1391 fi
1392 fi
1393
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397 test "$silent" = yes && exec 6>/dev/null
1398
1399
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 as_fn_error $? "working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 as_fn_error $? "pwd does not report name of working directory"
1406
1407
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1438 fi
1439 else
1440 ac_srcdir_defaulted=no
1441 fi
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1445 fi
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1449 pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 srcdir=.
1453 fi
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1466
1467 #
1468 # Report the --help message.
1469 #
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1473 cat <<_ACEOF
1474 \`configure' configures sim 0 to adapt to many kinds of systems.
1475
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1480
1481 Defaults for the options are specified in brackets.
1482
1483 Configuration:
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking ...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 [PREFIX]
1499
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1504
1505 For better control, use the options below.
1506
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1527 _ACEOF
1528
1529 cat <<\_ACEOF
1530
1531 Program names:
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1535
1536 System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of sim 0:";;
1546 esac
1547 cat <<\_ACEOF
1548
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-plugins Enable support for plugins
1554 --enable-shared[=PKGS] build shared libraries [default=yes]
1555 --enable-static[=PKGS] build static libraries [default=yes]
1556 --enable-fast-install[=PKGS]
1557 optimize for fast installation [default=yes]
1558 --disable-libtool-lock avoid locking (might break parallel builds)
1559 --enable-maintainer-mode
1560 enable make rules and dependencies not useful (and
1561 sometimes confusing) to the casual installer
1562 --enable-dependency-tracking
1563 do not reject slow dependency extractors
1564 --disable-dependency-tracking
1565 speeds up one-time build
1566 --enable-silent-rules less verbose build output (undo: "make V=1")
1567 --disable-silent-rules verbose build output (undo: "make V=0")
1568 --enable-sim Enable the GNU simulator
1569 --enable-example-sims enable example GNU simulators
1570 --enable-targets alternative target configurations
1571 --enable-sim-alignment=align
1572 Specify strict, nonstrict or forced alignment of
1573 memory accesses
1574 --enable-sim-assert Specify whether to perform random assertions
1575 --enable-cgen-maint=DIR build cgen generated files
1576 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1577 itself)
1578 --enable-sim-endian=endian
1579 Specify target byte endian orientation
1580 --enable-sim-environment=environment
1581 Specify mixed, user, virtual or operating
1582 environment
1583 --enable-sim-hardware Whether to enable hardware/device simulation
1584 --enable-sim-inline=inlines
1585 Specify which functions should be inlined
1586 --enable-sim-profile=opts
1587 Enable profiling flags
1588 --enable-sim-reserved-bits
1589 Specify whether to check reserved bits in
1590 instruction
1591 --enable-sim-scache=size
1592 Specify simulator execution cache size
1593 --enable-sim-stdio Specify whether to use stdio for console
1594 input/output
1595 --enable-sim-trace=opts Enable tracing of simulated programs
1596 --enable-werror treat compile warnings as errors
1597 --enable-build-warnings enable build-time compiler warnings if gcc is used
1598 --enable-sim-build-warnings
1599 enable SIM specific build-time compiler warnings if
1600 gcc is used
1601 --enable-sim-frv-trapdump
1602 Make unknown traps dump the registers
1603 --disable-sim-rx-cycle-accurate
1604 Disable cycle accurate simulation (faster runtime)
1605
1606 Optional Packages:
1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1609 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1610 --with-bugurl=URL Direct users to URL to report a bug
1611 --with-system-zlib use installed libz
1612 --with-pic try to use only PIC/non-PIC objects [default=use
1613 both]
1614 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1615
1616 Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
1621 LIBS libraries to pass to the linker, e.g. -l<library>
1622 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1624 CPP C preprocessor
1625 PKG_CONFIG path to pkg-config utility
1626 PKG_CONFIG_PATH
1627 directories to add to pkg-config's search path
1628 PKG_CONFIG_LIBDIR
1629 path overriding pkg-config's built-in search path
1630 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1631 SDL_LIBS linker flags for SDL, overriding pkg-config
1632
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1635
1636 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1637 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 continue
1648 ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667 .) # We are building in place.
1668 ac_srcdir=.
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
1672 ac_srcdir=$srcdir$ac_dir_suffix;
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1675 *) # Relative name.
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1690 else
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1694 done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699 cat <<\_ACEOF
1700 sim configure 0
1701 generated by GNU Autoconf 2.69
1702
1703 Copyright (C) 2012 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707 exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_compile
1751
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_cpp
1788
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1793 # accordingly.
1794 ac_fn_c_check_header_mongrel ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if eval \${$3+:} false; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 else
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1817 else
1818 ac_header_compiler=no
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1823
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1833 else
1834 ac_header_preproc=no
1835 fi
1836 rm -f conftest.err conftest.i conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1839
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 yes:no: )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848 no:yes:* )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1860 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1861 ## -------------------------------------------------------------------------------------- ##"
1862 ) | sed "s/^/$as_me: WARNING: /" >&2
1863 ;;
1864 esac
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 eval "$3=\$ac_header_compiler"
1871 fi
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 fi
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_header_mongrel
1879
1880 # ac_fn_c_try_run LINENO
1881 # ----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883 # that executables *can* be run.
1884 ac_fn_c_try_run ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>&5
1895 ac_status=$?
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1898 { { case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_try") 2>&5
1905 ac_status=$?
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; }; }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: program exited with status $ac_status" >&5
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=$ac_status
1915 fi
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1919
1920 } # ac_fn_c_try_run
1921
1922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists and can be compiled using the include files in
1925 # INCLUDES, setting the cache variable VAR accordingly.
1926 ac_fn_c_check_header_compile ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $4
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$3=yes"
1941 else
1942 eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_header_compile
1952
1953 # ac_fn_c_try_link LINENO
1954 # -----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_link ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext conftest$ac_exeext
1960 if { { ac_try="$ac_link"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest$ac_exeext && {
1979 test "$cross_compiling" = yes ||
1980 test -x conftest$ac_exeext
1981 }; then :
1982 ac_retval=0
1983 else
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987 ac_retval=1
1988 fi
1989 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991 # interfere with the next link command; also delete a directory that is
1992 # left behind by Apple's compiler. We do this before executing the actions.
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1996
1997 } # ac_fn_c_try_link
1998
1999 # ac_fn_c_check_func LINENO FUNC VAR
2000 # ----------------------------------
2001 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2002 ac_fn_c_check_func ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2014 #define $2 innocuous_$2
2015
2016 /* System header to define __stub macros and hopefully few prototypes,
2017 which can conflict with char $2 (); below.
2018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2019 <limits.h> exists even on freestanding compilers. */
2020
2021 #ifdef __STDC__
2022 # include <limits.h>
2023 #else
2024 # include <assert.h>
2025 #endif
2026
2027 #undef $2
2028
2029 /* Override any GCC internal prototype to avoid an error.
2030 Use char because int might match the return type of a GCC
2031 builtin and then its argument prototype would still apply. */
2032 #ifdef __cplusplus
2033 extern "C"
2034 #endif
2035 char $2 ();
2036 /* The GNU C library defines this for functions which it implements
2037 to always fail with ENOSYS. Some functions are actually named
2038 something starting with __ and the normal name is an alias. */
2039 #if defined __stub_$2 || defined __stub___$2
2040 choke me
2041 #endif
2042
2043 int
2044 main ()
2045 {
2046 return $2 ();
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_link "$LINENO"; then :
2052 eval "$3=yes"
2053 else
2054 eval "$3=no"
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext \
2057 conftest$ac_exeext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_func
2065
2066 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067 # ----------------------------------------------------
2068 # Tries to find if the field MEMBER exists in type AGGR, after including
2069 # INCLUDES, setting cache variable VAR accordingly.
2070 ac_fn_c_check_member ()
2071 {
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074 $as_echo_n "checking for $2.$3... " >&6; }
2075 if eval \${$4+:} false; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $5
2081 int
2082 main ()
2083 {
2084 static $2 ac_aggr;
2085 if (ac_aggr.$3)
2086 return 0;
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$4=yes"
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $5
2097 int
2098 main ()
2099 {
2100 static $2 ac_aggr;
2101 if (sizeof ac_aggr.$3)
2102 return 0;
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$4=yes"
2109 else
2110 eval "$4=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$4
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_member
2122
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126 # accordingly.
2127 ac_fn_c_check_decl ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 #ifndef $as_decl_name
2144 #ifdef __cplusplus
2145 (void) $as_decl_use;
2146 #else
2147 (void) $as_decl_name;
2148 #endif
2149 #endif
2150
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$3=yes"
2157 else
2158 eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_decl
2168
2169 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2170 # -------------------------------------------
2171 # Tests whether TYPE exists after having included INCLUDES, setting cache
2172 # variable VAR accordingly.
2173 ac_fn_c_check_type ()
2174 {
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if eval \${$3+:} false; then :
2179 $as_echo_n "(cached) " >&6
2180 else
2181 eval "$3=no"
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 int
2186 main ()
2187 {
2188 if (sizeof ($2))
2189 return 0;
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $4
2198 int
2199 main ()
2200 {
2201 if (sizeof (($2)))
2202 return 0;
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208
2209 else
2210 eval "$3=yes"
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 fi
2216 eval ac_res=\$$3
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220
2221 } # ac_fn_c_check_type
2222 cat >config.log <<_ACEOF
2223 This file contains any messages produced by compilers while
2224 running configure, to aid debugging if configure makes a mistake.
2225
2226 It was created by sim $as_me 0, which was
2227 generated by GNU Autoconf 2.69. Invocation command line was
2228
2229 $ $0 $@
2230
2231 _ACEOF
2232 exec 5>>config.log
2233 {
2234 cat <<_ASUNAME
2235 ## --------- ##
2236 ## Platform. ##
2237 ## --------- ##
2238
2239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244
2245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2246 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247
2248 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2249 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2251 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2252 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2253 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2254 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255
2256 _ASUNAME
2257
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 $as_echo "PATH: $as_dir"
2264 done
2265 IFS=$as_save_IFS
2266
2267 } >&5
2268
2269 cat >&5 <<_ACEOF
2270
2271
2272 ## ----------- ##
2273 ## Core tests. ##
2274 ## ----------- ##
2275
2276 _ACEOF
2277
2278
2279 # Keep a trace of the command line.
2280 # Strip out --no-create and --no-recursion so they do not pile up.
2281 # Strip out --silent because we don't want to record it for future runs.
2282 # Also quote any args containing shell meta-characters.
2283 # Make two passes to allow for proper duplicate-argument suppression.
2284 ac_configure_args=
2285 ac_configure_args0=
2286 ac_configure_args1=
2287 ac_must_keep_next=false
2288 for ac_pass in 1 2
2289 do
2290 for ac_arg
2291 do
2292 case $ac_arg in
2293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2295 | -silent | --silent | --silen | --sile | --sil)
2296 continue ;;
2297 *\'*)
2298 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 esac
2300 case $ac_pass in
2301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 2)
2303 as_fn_append ac_configure_args1 " '$ac_arg'"
2304 if test $ac_must_keep_next = true; then
2305 ac_must_keep_next=false # Got value, back to normal.
2306 else
2307 case $ac_arg in
2308 *=* | --config-cache | -C | -disable-* | --disable-* \
2309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2311 | -with-* | --with-* | -without-* | --without-* | --x)
2312 case "$ac_configure_args0 " in
2313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 esac
2315 ;;
2316 -* ) ac_must_keep_next=true ;;
2317 esac
2318 fi
2319 as_fn_append ac_configure_args " '$ac_arg'"
2320 ;;
2321 esac
2322 done
2323 done
2324 { ac_configure_args0=; unset ac_configure_args0;}
2325 { ac_configure_args1=; unset ac_configure_args1;}
2326
2327 # When interrupted or exit'd, cleanup temporary files, and complete
2328 # config.log. We remove comments because anyway the quotes in there
2329 # would cause problems or look ugly.
2330 # WARNING: Use '\'' to represent an apostrophe within the trap.
2331 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2332 trap 'exit_status=$?
2333 # Save into config.log some information that might help in debugging.
2334 {
2335 echo
2336
2337 $as_echo "## ---------------- ##
2338 ## Cache variables. ##
2339 ## ---------------- ##"
2340 echo
2341 # The following way of writing the cache mishandles newlines in values,
2342 (
2343 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in #(
2346 *${as_nl}*)
2347 case $ac_var in #(
2348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 esac
2351 case $ac_var in #(
2352 _ | IFS | as_nl) ;; #(
2353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2354 *) { eval $ac_var=; unset $ac_var;} ;;
2355 esac ;;
2356 esac
2357 done
2358 (set) 2>&1 |
2359 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2360 *${as_nl}ac_space=\ *)
2361 sed -n \
2362 "s/'\''/'\''\\\\'\'''\''/g;
2363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 ;; #(
2365 *)
2366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367 ;;
2368 esac |
2369 sort
2370 )
2371 echo
2372
2373 $as_echo "## ----------------- ##
2374 ## Output variables. ##
2375 ## ----------------- ##"
2376 echo
2377 for ac_var in $ac_subst_vars
2378 do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382 esac
2383 $as_echo "$ac_var='\''$ac_val'\''"
2384 done | sort
2385 echo
2386
2387 if test -n "$ac_subst_files"; then
2388 $as_echo "## ------------------- ##
2389 ## File substitutions. ##
2390 ## ------------------- ##"
2391 echo
2392 for ac_var in $ac_subst_files
2393 do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac
2398 $as_echo "$ac_var='\''$ac_val'\''"
2399 done | sort
2400 echo
2401 fi
2402
2403 if test -s confdefs.h; then
2404 $as_echo "## ----------- ##
2405 ## confdefs.h. ##
2406 ## ----------- ##"
2407 echo
2408 cat confdefs.h
2409 echo
2410 fi
2411 test "$ac_signal" != 0 &&
2412 $as_echo "$as_me: caught signal $ac_signal"
2413 $as_echo "$as_me: exit $exit_status"
2414 } >&5
2415 rm -f core *.core core.conftest.* &&
2416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 exit $exit_status
2418 ' 0
2419 for ac_signal in 1 2 13 15; do
2420 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2421 done
2422 ac_signal=0
2423
2424 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2425 rm -f -r conftest* confdefs.h
2426
2427 $as_echo "/* confdefs.h */" > confdefs.h
2428
2429 # Predefined preprocessor variables.
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_NAME "$PACKAGE_NAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_STRING "$PACKAGE_STRING"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_URL "$PACKAGE_URL"
2453 _ACEOF
2454
2455
2456 # Let the site file select an alternate cache file if it wants to.
2457 # Prefer an explicitly selected file to automatically selected ones.
2458 ac_site_file1=NONE
2459 ac_site_file2=NONE
2460 if test -n "$CONFIG_SITE"; then
2461 # We do not want a PATH search for config.site.
2462 case $CONFIG_SITE in #((
2463 -*) ac_site_file1=./$CONFIG_SITE;;
2464 */*) ac_site_file1=$CONFIG_SITE;;
2465 *) ac_site_file1=./$CONFIG_SITE;;
2466 esac
2467 elif test "x$prefix" != xNONE; then
2468 ac_site_file1=$prefix/share/config.site
2469 ac_site_file2=$prefix/etc/config.site
2470 else
2471 ac_site_file1=$ac_default_prefix/share/config.site
2472 ac_site_file2=$ac_default_prefix/etc/config.site
2473 fi
2474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 do
2476 test "x$ac_site_file" = xNONE && continue
2477 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2480 sed 's/^/| /' "$ac_site_file" >&5
2481 . "$ac_site_file" \
2482 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 as_fn_error $? "failed to load site script $ac_site_file
2485 See \`config.log' for more details" "$LINENO" 5; }
2486 fi
2487 done
2488
2489 if test -r "$cache_file"; then
2490 # Some versions of bash will fail to source /dev/null (special files
2491 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2492 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2494 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 case $cache_file in
2496 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2497 *) . "./$cache_file";;
2498 esac
2499 fi
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2502 $as_echo "$as_me: creating cache $cache_file" >&6;}
2503 >$cache_file
2504 fi
2505
2506 as_fn_append ac_header_list " dlfcn.h"
2507 as_fn_append ac_header_list " fcntl.h"
2508 as_fn_append ac_header_list " fpu_control.h"
2509 as_fn_append ac_header_list " termios.h"
2510 as_fn_append ac_header_list " unistd.h"
2511 as_fn_append ac_header_list " utime.h"
2512 as_fn_append ac_header_list " linux/if_tun.h"
2513 as_fn_append ac_header_list " linux/mii.h"
2514 as_fn_append ac_header_list " linux/types.h"
2515 as_fn_append ac_header_list " net/if.h"
2516 as_fn_append ac_header_list " netinet/in.h"
2517 as_fn_append ac_header_list " netinet/tcp.h"
2518 as_fn_append ac_header_list " sys/ioctl.h"
2519 as_fn_append ac_header_list " sys/mman.h"
2520 as_fn_append ac_header_list " sys/mount.h"
2521 as_fn_append ac_header_list " sys/param.h"
2522 as_fn_append ac_header_list " sys/resource.h"
2523 as_fn_append ac_header_list " sys/socket.h"
2524 as_fn_append ac_header_list " sys/stat.h"
2525 as_fn_append ac_header_list " sys/statfs.h"
2526 as_fn_append ac_header_list " sys/termio.h"
2527 as_fn_append ac_header_list " sys/termios.h"
2528 as_fn_append ac_header_list " sys/types.h"
2529 as_fn_append ac_header_list " sys/vfs.h"
2530 as_fn_append ac_func_list " __setfpucw"
2531 as_fn_append ac_func_list " access"
2532 as_fn_append ac_func_list " aint"
2533 as_fn_append ac_func_list " anint"
2534 as_fn_append ac_func_list " cfgetispeed"
2535 as_fn_append ac_func_list " cfgetospeed"
2536 as_fn_append ac_func_list " cfsetispeed"
2537 as_fn_append ac_func_list " cfsetospeed"
2538 as_fn_append ac_func_list " chdir"
2539 as_fn_append ac_func_list " chmod"
2540 as_fn_append ac_func_list " dup"
2541 as_fn_append ac_func_list " dup2"
2542 as_fn_append ac_func_list " execv"
2543 as_fn_append ac_func_list " execve"
2544 as_fn_append ac_func_list " fcntl"
2545 as_fn_append ac_func_list " fork"
2546 as_fn_append ac_func_list " fstat"
2547 as_fn_append ac_func_list " fstatfs"
2548 as_fn_append ac_func_list " ftruncate"
2549 as_fn_append ac_func_list " getdirentries"
2550 as_fn_append ac_func_list " getegid"
2551 as_fn_append ac_func_list " geteuid"
2552 as_fn_append ac_func_list " getgid"
2553 as_fn_append ac_func_list " getpid"
2554 as_fn_append ac_func_list " getppid"
2555 as_fn_append ac_func_list " getrusage"
2556 as_fn_append ac_func_list " gettimeofday"
2557 as_fn_append ac_func_list " getuid"
2558 as_fn_append ac_func_list " ioctl"
2559 as_fn_append ac_func_list " kill"
2560 as_fn_append ac_func_list " link"
2561 as_fn_append ac_func_list " lseek"
2562 as_fn_append ac_func_list " mmap"
2563 as_fn_append ac_func_list " munmap"
2564 as_fn_append ac_func_list " pipe"
2565 as_fn_append ac_func_list " posix_fallocate"
2566 as_fn_append ac_func_list " pread"
2567 as_fn_append ac_func_list " rmdir"
2568 as_fn_append ac_func_list " setregid"
2569 as_fn_append ac_func_list " setreuid"
2570 as_fn_append ac_func_list " setgid"
2571 as_fn_append ac_func_list " setuid"
2572 as_fn_append ac_func_list " sigaction"
2573 as_fn_append ac_func_list " sigprocmask"
2574 as_fn_append ac_func_list " sqrt"
2575 as_fn_append ac_func_list " stat"
2576 as_fn_append ac_func_list " strsignal"
2577 as_fn_append ac_func_list " symlink"
2578 as_fn_append ac_func_list " tcdrain"
2579 as_fn_append ac_func_list " tcflow"
2580 as_fn_append ac_func_list " tcflush"
2581 as_fn_append ac_func_list " tcgetattr"
2582 as_fn_append ac_func_list " tcgetpgrp"
2583 as_fn_append ac_func_list " tcsendbreak"
2584 as_fn_append ac_func_list " tcsetattr"
2585 as_fn_append ac_func_list " tcsetpgrp"
2586 as_fn_append ac_func_list " time"
2587 as_fn_append ac_func_list " truncate"
2588 as_fn_append ac_func_list " umask"
2589 as_fn_append ac_func_list " unlink"
2590 as_fn_append ac_func_list " utime"
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 fi
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660
2661
2662
2663
2664
2665 # Check whether --with-pkgversion was given.
2666 if test "${with_pkgversion+set}" = set; then :
2667 withval=$with_pkgversion; case "$withval" in
2668 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2669 no) PKGVERSION= ;;
2670 *) PKGVERSION="($withval) " ;;
2671 esac
2672 else
2673 PKGVERSION="(SIM) "
2674
2675 fi
2676
2677
2678
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PKGVERSION "$PKGVERSION"
2682 _ACEOF
2683
2684
2685
2686 # Check whether --with-bugurl was given.
2687 if test "${with_bugurl+set}" = set; then :
2688 withval=$with_bugurl; case "$withval" in
2689 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2690 no) BUGURL=
2691 ;;
2692 *) BUGURL="$withval"
2693 ;;
2694 esac
2695 else
2696 BUGURL="$PACKAGE_BUGREPORT"
2697
2698 fi
2699
2700 case ${BUGURL} in
2701 "")
2702 REPORT_BUGS_TO=
2703 REPORT_BUGS_TEXI=
2704 ;;
2705 *)
2706 REPORT_BUGS_TO="<$BUGURL>"
2707 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2708 ;;
2709 esac;
2710
2711
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2716 _ACEOF
2717
2718
2719 ac_config_headers="$ac_config_headers config.h"
2720
2721
2722 ac_aux_dir=
2723 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2724 if test -f "$ac_dir/install-sh"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/install-sh -c"
2727 break
2728 elif test -f "$ac_dir/install.sh"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/install.sh -c"
2731 break
2732 elif test -f "$ac_dir/shtool"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/shtool install -c"
2735 break
2736 fi
2737 done
2738 if test -z "$ac_aux_dir"; then
2739 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2740 fi
2741
2742 # These three variables are undocumented and unsupported,
2743 # and are intended to be withdrawn in a future Autoconf release.
2744 # They can cause serious problems if a builder's source tree is in a directory
2745 # whose full name contains unusual characters.
2746 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2747 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2748 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2749
2750
2751 # Make sure we can run config.sub.
2752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2753 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2756 $as_echo_n "checking build system type... " >&6; }
2757 if ${ac_cv_build+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 ac_build_alias=$build_alias
2761 test "x$ac_build_alias" = x &&
2762 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2763 test "x$ac_build_alias" = x &&
2764 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2765 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2767
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2770 $as_echo "$ac_cv_build" >&6; }
2771 case $ac_cv_build in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2774 esac
2775 build=$ac_cv_build
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_build
2778 shift
2779 build_cpu=$1
2780 build_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 build_os=$*
2785 IFS=$ac_save_IFS
2786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2790 $as_echo_n "checking host system type... " >&6; }
2791 if ${ac_cv_host+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test "x$host_alias" = x; then
2795 ac_cv_host=$ac_cv_build
2796 else
2797 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2798 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2799 fi
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2803 $as_echo "$ac_cv_host" >&6; }
2804 case $ac_cv_host in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2807 esac
2808 host=$ac_cv_host
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_host
2811 shift
2812 host_cpu=$1
2813 host_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 host_os=$*
2818 IFS=$ac_save_IFS
2819 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2820
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2823 $as_echo_n "checking target system type... " >&6; }
2824 if ${ac_cv_target+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test "x$target_alias" = x; then
2828 ac_cv_target=$ac_cv_host
2829 else
2830 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2832 fi
2833
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2836 $as_echo "$ac_cv_target" >&6; }
2837 case $ac_cv_target in
2838 *-*-*) ;;
2839 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2840 esac
2841 target=$ac_cv_target
2842 ac_save_IFS=$IFS; IFS='-'
2843 set x $ac_cv_target
2844 shift
2845 target_cpu=$1
2846 target_vendor=$2
2847 shift; shift
2848 # Remember, the first character of IFS is used to create $*,
2849 # except with old shells:
2850 target_os=$*
2851 IFS=$ac_save_IFS
2852 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2853
2854
2855 # The aliases save the names the user supplied, while $host etc.
2856 # will get canonicalized.
2857 test -n "$target_alias" &&
2858 test "$program_prefix$program_suffix$program_transform_name" = \
2859 NONENONEs,x,x, &&
2860 program_prefix=${target_alias}-
2861 # Expand $ac_aux_dir to an absolute path.
2862 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2863
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$ac_cv_prog_CC"; then
2909 ac_ct_CC=$CC
2910 # Extract the first word of "gcc", so it can be a program name with args.
2911 set dummy gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CC="gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940 $as_echo "$ac_ct_CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2956 fi
2957 else
2958 CC="$ac_cv_prog_CC"
2959 fi
2960
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}cc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 fi
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 ac_prog_rejected=no
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected=yes
3023 continue
3024 fi
3025 ac_cv_prog_CC="cc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy $ac_cv_prog_CC
3036 shift
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3041 shift
3042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3043 fi
3044 fi
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl.exe
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 test -n "$CC" && break
3100 done
3101 fi
3102 if test -z "$CC"; then
3103 ac_ct_CC=$CC
3104 for ac_prog in cl.exe
3105 do
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_CC="$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 test -n "$ac_ct_CC" && break
3144 done
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155 CC=$ac_ct_CC
3156 fi
3157 fi
3158
3159 fi
3160
3161
3162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details" "$LINENO" 5; }
3166
3167 # Provide some information about the compiler.
3168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169 set X $ac_compile
3170 ac_compiler=$2
3171 for ac_option in --version -v -V -qversion; do
3172 { { ac_try="$ac_compiler $ac_option >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 ac_status=$?
3181 if test -s conftest.err; then
3182 sed '10a\
3183 ... rest of stderr output deleted ...
3184 10q' conftest.err >conftest.er1
3185 cat conftest.er1 >&5
3186 fi
3187 rm -f conftest.er1 conftest.err
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }
3190 done
3191
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 ac_clean_files_save=$ac_clean_files
3204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3205 # Try to create an executable without -o first, disregard a.out.
3206 # It will help us diagnose broken compilers, and finding out an intuition
3207 # of exeext.
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209 $as_echo_n "checking whether the C compiler works... " >&6; }
3210 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211
3212 # The possible output files:
3213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214
3215 ac_rmfiles=
3216 for ac_file in $ac_files
3217 do
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3221 esac
3222 done
3223 rm -f $ac_rmfiles
3224
3225 if { { ac_try="$ac_link_default"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link_default") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3239 # so that the user can short-circuit this test for compilers unknown to
3240 # Autoconf.
3241 for ac_file in $ac_files ''
3242 do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 ;;
3247 [ab].out )
3248 # We found the default executable, but exeext='' is most
3249 # certainly right.
3250 break;;
3251 *.* )
3252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 then :; else
3254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 fi
3256 # We set ac_cv_exeext here because the later test for it is not
3257 # safe: cross compilers may not add the suffix if given an `-o'
3258 # argument, so we may need to know it at that point already.
3259 # Even if this section looks crufty: it has the advantage of
3260 # actually working.
3261 break;;
3262 * )
3263 break;;
3264 esac
3265 done
3266 test "$ac_cv_exeext" = no && ac_cv_exeext=
3267
3268 else
3269 ac_file=''
3270 fi
3271 if test -z "$ac_file"; then :
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "C compiler cannot create executables
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3290
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 break;;
3316 * ) break;;
3317 esac
3318 done
3319 else
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3328
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 #include <stdio.h>
3335 int
3336 main ()
3337 {
3338 FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351 { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 if { ac_try='./conftest$ac_cv_exeext'
3363 { { case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_try") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; }; then
3373 cross_compiling=no
3374 else
3375 if test "$cross_compiling" = maybe; then
3376 cross_compiling=yes
3377 else
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3388
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if ${ac_cv_objext+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details" "$LINENO" 5; }
3435 fi
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if ${ac_cv_c_compiler_gnu+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453 #ifndef __GNUC__
3454 choke me
3455 #endif
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_compiler_gnu=yes
3463 else
3464 ac_compiler_gnu=no
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3476 fi
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if ${ac_cv_prog_cc_g+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 else
3502 CFLAGS=""
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515
3516 else
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3546 CFLAGS="-g -O2"
3547 else
3548 CFLAGS="-g"
3549 fi
3550 else
3551 if test "$GCC" = yes; then
3552 CFLAGS="-O2"
3553 else
3554 CFLAGS=
3555 fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if ${ac_cv_prog_cc_c89+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 struct stat;
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3573 char **p;
3574 int i;
3575 {
3576 return p[i];
3577 }
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3579 {
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586 }
3587
3588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
3591 as 'x'. The following induces an error, until -std is added to get
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
3594 that's true only with -std. */
3595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
3597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599 #define FOO(x) 'x'
3600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
3602 int test (int i, double x);
3603 struct s1 {int (*f) (int a);};
3604 struct s2 {int (*f) (double a);};
3605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606 int argc;
3607 char **argv;
3608 int
3609 main ()
3610 {
3611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 do
3619 CC="$ac_save_CC $ac_arg"
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_c89=$ac_arg
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 done
3626 rm -f conftest.$ac_ext
3627 CC=$ac_save_CC
3628
3629 fi
3630 # AC_CACHE_VAL
3631 case "x$ac_cv_prog_cc_c89" in
3632 x)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3634 $as_echo "none needed" >&6; } ;;
3635 xno)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 $as_echo "unsupported" >&6; } ;;
3638 *)
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 esac
3643 if test "x$ac_cv_prog_cc_c89" != xno; then :
3644
3645 fi
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3659 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3660 if ${am_cv_prog_cc_c_o+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 # Make sure it works both with $CC and with simple cc.
3675 # Following AC_PROG_CC_C_O, we do the test twice because some
3676 # compilers refuse to overwrite an existing .o file with -o,
3677 # though they will create one.
3678 am_cv_prog_cc_c_o=yes
3679 for am_i in 1 2; do
3680 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3681 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } \
3685 && test -f conftest2.$ac_objext; then
3686 : OK
3687 else
3688 am_cv_prog_cc_c_o=no
3689 break
3690 fi
3691 done
3692 rm -f core conftest*
3693 unset am_i
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3696 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3697 if test "$am_cv_prog_cc_c_o" != yes; then
3698 # Losing compiler, so override with the script.
3699 # FIXME: It is wrong to rewrite CC.
3700 # But if we don't then we get into trouble of one sort or another.
3701 # A longer-term fix would be to have automake use am__CC in this case,
3702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3703 CC="$am_aux_dir/compile $CC"
3704 fi
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3720 # On Suns, sometimes $CPP names a directory.
3721 if test -n "$CPP" && test -d "$CPP"; then
3722 CPP=
3723 fi
3724 if test -z "$CPP"; then
3725 if ${ac_cv_prog_CPP+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 # Double quotes because CPP needs to be expanded
3729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730 do
3731 ac_preproc_ok=false
3732 for ac_c_preproc_warn_flag in '' yes
3733 do
3734 # Use a header file that comes with gcc, so configuring glibc
3735 # with a fresh cross-compiler works.
3736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737 # <limits.h> exists even on freestanding compilers.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp. "Syntax error" is here to catch this case.
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #ifdef __STDC__
3743 # include <limits.h>
3744 #else
3745 # include <assert.h>
3746 #endif
3747 Syntax error
3748 _ACEOF
3749 if ac_fn_c_try_cpp "$LINENO"; then :
3750
3751 else
3752 # Broken: fails on valid input.
3753 continue
3754 fi
3755 rm -f conftest.err conftest.i conftest.$ac_ext
3756
3757 # OK, works on sane cases. Now check whether nonexistent headers
3758 # can be detected and how.
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <ac_nonexistent.h>
3762 _ACEOF
3763 if ac_fn_c_try_cpp "$LINENO"; then :
3764 # Broken: success on invalid input.
3765 continue
3766 else
3767 # Passes both tests.
3768 ac_preproc_ok=:
3769 break
3770 fi
3771 rm -f conftest.err conftest.i conftest.$ac_ext
3772
3773 done
3774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3775 rm -f conftest.i conftest.err conftest.$ac_ext
3776 if $ac_preproc_ok; then :
3777 break
3778 fi
3779
3780 done
3781 ac_cv_prog_CPP=$CPP
3782
3783 fi
3784 CPP=$ac_cv_prog_CPP
3785 else
3786 ac_cv_prog_CPP=$CPP
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3789 $as_echo "$CPP" >&6; }
3790 ac_preproc_ok=false
3791 for ac_c_preproc_warn_flag in '' yes
3792 do
3793 # Use a header file that comes with gcc, so configuring glibc
3794 # with a fresh cross-compiler works.
3795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3796 # <limits.h> exists even on freestanding compilers.
3797 # On the NeXT, cc -E runs the code through the compiler's parser,
3798 # not just through cpp. "Syntax error" is here to catch this case.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if ac_fn_c_try_cpp "$LINENO"; then :
3809
3810 else
3811 # Broken: fails on valid input.
3812 continue
3813 fi
3814 rm -f conftest.err conftest.i conftest.$ac_ext
3815
3816 # OK, works on sane cases. Now check whether nonexistent headers
3817 # can be detected and how.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if ac_fn_c_try_cpp "$LINENO"; then :
3823 # Broken: success on invalid input.
3824 continue
3825 else
3826 # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3829 fi
3830 rm -f conftest.err conftest.i conftest.$ac_ext
3831
3832 done
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.i conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then :
3836
3837 else
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3841 See \`config.log' for more details" "$LINENO" 5; }
3842 fi
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3852 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3853 if ${ac_cv_path_GREP+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -z "$GREP"; then
3857 ac_path_GREP_found=false
3858 # Loop through the user's path and test for each of PROGNAME-LIST
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in grep ggrep; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3867 as_fn_executable_p "$ac_path_GREP" || continue
3868 # Check for GNU ac_path_GREP and select it if it is found.
3869 # Check for GNU $ac_path_GREP
3870 case `"$ac_path_GREP" --version 2>&1` in
3871 *GNU*)
3872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3873 *)
3874 ac_count=0
3875 $as_echo_n 0123456789 >"conftest.in"
3876 while :
3877 do
3878 cat "conftest.in" "conftest.in" >"conftest.tmp"
3879 mv "conftest.tmp" "conftest.in"
3880 cp "conftest.in" "conftest.nl"
3881 $as_echo 'GREP' >> "conftest.nl"
3882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884 as_fn_arith $ac_count + 1 && ac_count=$as_val
3885 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3886 # Best one so far, save it but keep looking for a better one
3887 ac_cv_path_GREP="$ac_path_GREP"
3888 ac_path_GREP_max=$ac_count
3889 fi
3890 # 10*(2^10) chars as input seems more than enough
3891 test $ac_count -gt 10 && break
3892 done
3893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 esac
3895
3896 $ac_path_GREP_found && break 3
3897 done
3898 done
3899 done
3900 IFS=$as_save_IFS
3901 if test -z "$ac_cv_path_GREP"; then
3902 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903 fi
3904 else
3905 ac_cv_path_GREP=$GREP
3906 fi
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3910 $as_echo "$ac_cv_path_GREP" >&6; }
3911 GREP="$ac_cv_path_GREP"
3912
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3915 $as_echo_n "checking for egrep... " >&6; }
3916 if ${ac_cv_path_EGREP+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3920 then ac_cv_path_EGREP="$GREP -E"
3921 else
3922 if test -z "$EGREP"; then
3923 ac_path_EGREP_found=false
3924 # Loop through the user's path and test for each of PROGNAME-LIST
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_prog in egrep; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3933 as_fn_executable_p "$ac_path_EGREP" || continue
3934 # Check for GNU ac_path_EGREP and select it if it is found.
3935 # Check for GNU $ac_path_EGREP
3936 case `"$ac_path_EGREP" --version 2>&1` in
3937 *GNU*)
3938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3939 *)
3940 ac_count=0
3941 $as_echo_n 0123456789 >"conftest.in"
3942 while :
3943 do
3944 cat "conftest.in" "conftest.in" >"conftest.tmp"
3945 mv "conftest.tmp" "conftest.in"
3946 cp "conftest.in" "conftest.nl"
3947 $as_echo 'EGREP' >> "conftest.nl"
3948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950 as_fn_arith $ac_count + 1 && ac_count=$as_val
3951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_EGREP="$ac_path_EGREP"
3954 ac_path_EGREP_max=$ac_count
3955 fi
3956 # 10*(2^10) chars as input seems more than enough
3957 test $ac_count -gt 10 && break
3958 done
3959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960 esac
3961
3962 $ac_path_EGREP_found && break 3
3963 done
3964 done
3965 done
3966 IFS=$as_save_IFS
3967 if test -z "$ac_cv_path_EGREP"; then
3968 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3969 fi
3970 else
3971 ac_cv_path_EGREP=$EGREP
3972 fi
3973
3974 fi
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3977 $as_echo "$ac_cv_path_EGREP" >&6; }
3978 EGREP="$ac_cv_path_EGREP"
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3982 $as_echo_n "checking for ANSI C header files... " >&6; }
3983 if ${ac_cv_header_stdc+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <stdlib.h>
3989 #include <stdarg.h>
3990 #include <string.h>
3991 #include <float.h>
3992
3993 int
3994 main ()
3995 {
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_header_stdc=yes
4003 else
4004 ac_cv_header_stdc=no
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
4008 if test $ac_cv_header_stdc = yes; then
4009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <string.h>
4013
4014 _ACEOF
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016 $EGREP "memchr" >/dev/null 2>&1; then :
4017
4018 else
4019 ac_cv_header_stdc=no
4020 fi
4021 rm -f conftest*
4022
4023 fi
4024
4025 if test $ac_cv_header_stdc = yes; then
4026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029 #include <stdlib.h>
4030
4031 _ACEOF
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 $EGREP "free" >/dev/null 2>&1; then :
4034
4035 else
4036 ac_cv_header_stdc=no
4037 fi
4038 rm -f conftest*
4039
4040 fi
4041
4042 if test $ac_cv_header_stdc = yes; then
4043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4044 if test "$cross_compiling" = yes; then :
4045 :
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <ctype.h>
4050 #include <stdlib.h>
4051 #if ((' ' & 0x0FF) == 0x020)
4052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054 #else
4055 # define ISLOWER(c) \
4056 (('a' <= (c) && (c) <= 'i') \
4057 || ('j' <= (c) && (c) <= 'r') \
4058 || ('s' <= (c) && (c) <= 'z'))
4059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4060 #endif
4061
4062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063 int
4064 main ()
4065 {
4066 int i;
4067 for (i = 0; i < 256; i++)
4068 if (XOR (islower (i), ISLOWER (i))
4069 || toupper (i) != TOUPPER (i))
4070 return 2;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_run "$LINENO"; then :
4075
4076 else
4077 ac_cv_header_stdc=no
4078 fi
4079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4080 conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 fi
4082
4083 fi
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4086 $as_echo "$ac_cv_header_stdc" >&6; }
4087 if test $ac_cv_header_stdc = yes; then
4088
4089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4090
4091 fi
4092
4093 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095 inttypes.h stdint.h unistd.h
4096 do :
4097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4099 "
4100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4101 cat >>confdefs.h <<_ACEOF
4102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4104
4105 fi
4106
4107 done
4108
4109
4110
4111 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4112 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4113 MINIX=yes
4114 else
4115 MINIX=
4116 fi
4117
4118
4119 if test "$MINIX" = yes; then
4120
4121 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4122
4123
4124 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4125
4126
4127 $as_echo "#define _MINIX 1" >>confdefs.h
4128
4129 fi
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4133 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4134 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 # define __EXTENSIONS__ 1
4141 $ac_includes_default
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_safe_to_define___extensions__=yes
4152 else
4153 ac_cv_safe_to_define___extensions__=no
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4158 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4159 test $ac_cv_safe_to_define___extensions__ = yes &&
4160 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4161
4162 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4163
4164 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4165
4166 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4167
4168 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4169
4170
4171 test "$program_prefix" != NONE &&
4172 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4173 # Use a double $ so make ignores it.
4174 test "$program_suffix" != NONE &&
4175 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4176 # Double any \ or $.
4177 # By default was `s,x,x', remove it if useless.
4178 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4179 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4180
4181 # Find a good install program. We prefer a C program (faster),
4182 # so one script is as good as another. But avoid the broken or
4183 # incompatible versions:
4184 # SysV /etc/install, /usr/sbin/install
4185 # SunOS /usr/etc/install
4186 # IRIX /sbin/install
4187 # AIX /bin/install
4188 # AmigaOS /C/install, which installs bootblocks on floppy discs
4189 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4192 # OS/2's system install, which has a completely different semantic
4193 # ./install, which can be erroneously created by make from ./install.sh.
4194 # Reject install programs that cannot install multiple files.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4196 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4197 if test -z "$INSTALL"; then
4198 if ${ac_cv_path_install+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 # Account for people who put trailing slashes in PATH elements.
4207 case $as_dir/ in #((
4208 ./ | .// | /[cC]/* | \
4209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4210 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4211 /usr/ucb/* ) ;;
4212 *)
4213 # OSF1 and SCO ODT 3.0 have their own names for install.
4214 # Don't use installbsd from OSF since it installs stuff as root
4215 # by default.
4216 for ac_prog in ginstall scoinst install; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4219 if test $ac_prog = install &&
4220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4221 # AIX install. It has an incompatible calling convention.
4222 :
4223 elif test $ac_prog = install &&
4224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4225 # program-specific install script used by HP pwplus--don't use.
4226 :
4227 else
4228 rm -rf conftest.one conftest.two conftest.dir
4229 echo one > conftest.one
4230 echo two > conftest.two
4231 mkdir conftest.dir
4232 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4233 test -s conftest.one && test -s conftest.two &&
4234 test -s conftest.dir/conftest.one &&
4235 test -s conftest.dir/conftest.two
4236 then
4237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4238 break 3
4239 fi
4240 fi
4241 fi
4242 done
4243 done
4244 ;;
4245 esac
4246
4247 done
4248 IFS=$as_save_IFS
4249
4250 rm -rf conftest.one conftest.two conftest.dir
4251
4252 fi
4253 if test "${ac_cv_path_install+set}" = set; then
4254 INSTALL=$ac_cv_path_install
4255 else
4256 # As a last resort, use the slow shell script. Don't cache a
4257 # value for INSTALL within a source directory, because that will
4258 # break other packages using the cache if that directory is
4259 # removed, or if the value is a relative name.
4260 INSTALL=$ac_install_sh
4261 fi
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4264 $as_echo "$INSTALL" >&6; }
4265
4266 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4267 # It thinks the first close brace ends the variable substitution.
4268 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4269
4270 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4271
4272 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4273
4274
4275
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4279 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4280 if ${ac_cv_c_bigendian+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 ac_cv_c_bigendian=unknown
4284 # See if we're dealing with a universal compiler.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #ifndef __APPLE_CC__
4288 not a universal capable compiler
4289 #endif
4290 typedef int dummy;
4291
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294
4295 # Check for potential -arch flags. It is not universal unless
4296 # there are at least two -arch flags with different values.
4297 ac_arch=
4298 ac_prev=
4299 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4300 if test -n "$ac_prev"; then
4301 case $ac_word in
4302 i?86 | x86_64 | ppc | ppc64)
4303 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4304 ac_arch=$ac_word
4305 else
4306 ac_cv_c_bigendian=universal
4307 break
4308 fi
4309 ;;
4310 esac
4311 ac_prev=
4312 elif test "x$ac_word" = "x-arch"; then
4313 ac_prev=arch
4314 fi
4315 done
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 if test $ac_cv_c_bigendian = unknown; then
4319 # See if sys/param.h defines the BYTE_ORDER macro.
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 #include <sys/types.h>
4323 #include <sys/param.h>
4324
4325 int
4326 main ()
4327 {
4328 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4329 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4330 && LITTLE_ENDIAN)
4331 bogus endian macros
4332 #endif
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 # It does; now see whether it defined to BIG_ENDIAN or not.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <sys/types.h>
4343 #include <sys/param.h>
4344
4345 int
4346 main ()
4347 {
4348 #if BYTE_ORDER != BIG_ENDIAN
4349 not big endian
4350 #endif
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 ac_cv_c_bigendian=yes
4358 else
4359 ac_cv_c_bigendian=no
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 fi
4365 if test $ac_cv_c_bigendian = unknown; then
4366 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <limits.h>
4370
4371 int
4372 main ()
4373 {
4374 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4375 bogus endian macros
4376 #endif
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 # It does; now see whether it defined to _BIG_ENDIAN or not.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <limits.h>
4387
4388 int
4389 main ()
4390 {
4391 #ifndef _BIG_ENDIAN
4392 not big endian
4393 #endif
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_cv_c_bigendian=yes
4401 else
4402 ac_cv_c_bigendian=no
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 if test $ac_cv_c_bigendian = unknown; then
4409 # Compile a test program.
4410 if test "$cross_compiling" = yes; then :
4411 # Try to guess by grepping values from an object file.
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 short int ascii_mm[] =
4415 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4416 short int ascii_ii[] =
4417 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4418 int use_ascii (int i) {
4419 return ascii_mm[i] + ascii_ii[i];
4420 }
4421 short int ebcdic_ii[] =
4422 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4423 short int ebcdic_mm[] =
4424 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4425 int use_ebcdic (int i) {
4426 return ebcdic_mm[i] + ebcdic_ii[i];
4427 }
4428 extern int foo;
4429
4430 int
4431 main ()
4432 {
4433 return use_ascii (foo) == use_ebcdic (foo);
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4440 ac_cv_c_bigendian=yes
4441 fi
4442 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4443 if test "$ac_cv_c_bigendian" = unknown; then
4444 ac_cv_c_bigendian=no
4445 else
4446 # finding both strings is unlikely to happen, but who knows?
4447 ac_cv_c_bigendian=unknown
4448 fi
4449 fi
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 else
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 $ac_includes_default
4456 int
4457 main ()
4458 {
4459
4460 /* Are we little or big endian? From Harbison&Steele. */
4461 union
4462 {
4463 long int l;
4464 char c[sizeof (long int)];
4465 } u;
4466 u.l = 1;
4467 return u.c[sizeof (long int) - 1] == 1;
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_run "$LINENO"; then :
4474 ac_cv_c_bigendian=no
4475 else
4476 ac_cv_c_bigendian=yes
4477 fi
4478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4479 conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 fi
4481
4482 fi
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4485 $as_echo "$ac_cv_c_bigendian" >&6; }
4486 case $ac_cv_c_bigendian in #(
4487 yes)
4488 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4489 ;; #(
4490 no)
4491 ;; #(
4492 universal)
4493
4494 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4495
4496 ;; #(
4497 *)
4498 as_fn_error $? "unknown endianness
4499 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4500 esac
4501
4502
4503
4504
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_DTC+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$DTC"; then
4514 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 fi
4532 fi
4533 DTC=$ac_cv_prog_DTC
4534 if test -n "$DTC"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4536 $as_echo "$DTC" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542
4543 fi
4544 if test -z "$ac_cv_prog_DTC"; then
4545 ac_ct_DTC=$DTC
4546 # Extract the first word of "dtc", so it can be a program name with args.
4547 set dummy dtc; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ac_ct_DTC"; then
4554 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_ac_ct_DTC="dtc"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571 fi
4572 fi
4573 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4574 if test -n "$ac_ct_DTC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4576 $as_echo "$ac_ct_DTC" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581
4582 if test "x$ac_ct_DTC" = x; then
4583 DTC=""
4584 else
4585 case $cross_compiling:$ac_tool_warned in
4586 yes:)
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589 ac_tool_warned=yes ;;
4590 esac
4591 DTC=$ac_ct_DTC
4592 fi
4593 else
4594 DTC="$ac_cv_prog_DTC"
4595 fi
4596
4597
4598 if test "x$cross_compiling" = "xno"; then
4599 : "${AR_FOR_BUILD:=\$(AR)}"
4600 : "${CC_FOR_BUILD:=\$(CC)}"
4601 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4602 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4603 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4604 else
4605 : "${AR_FOR_BUILD:=ar}"
4606 : "${CC_FOR_BUILD:=gcc}"
4607 : "${RANLIB_FOR_BUILD:=ranlib}"
4608 : "${CFLAGS_FOR_BUILD:=-g -O}"
4609 : "${LDLFAGS_FOR_BUILD:=}"
4610 fi
4611
4612
4613
4614
4615
4616
4617
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}ar; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_AR+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$AR"; then
4627 ac_cv_prog_AR="$AR" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_AR="${ac_tool_prefix}ar"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 AR=$ac_cv_prog_AR
4647 if test -n "$AR"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4649 $as_echo "$AR" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656 fi
4657 if test -z "$ac_cv_prog_AR"; then
4658 ac_ct_AR=$AR
4659 # Extract the first word of "ar", so it can be a program name with args.
4660 set dummy ar; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_AR"; then
4667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_AR="ar"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4687 if test -n "$ac_ct_AR"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4689 $as_echo "$ac_ct_AR" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695 if test "x$ac_ct_AR" = x; then
4696 AR=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 AR=$ac_ct_AR
4705 fi
4706 else
4707 AR="$ac_cv_prog_AR"
4708 fi
4709
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_RANLIB+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$RANLIB"; then
4719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 RANLIB=$ac_cv_prog_RANLIB
4739 if test -n "$RANLIB"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4741 $as_echo "$RANLIB" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 if test -z "$ac_cv_prog_RANLIB"; then
4750 ac_ct_RANLIB=$RANLIB
4751 # Extract the first word of "ranlib", so it can be a program name with args.
4752 set dummy ranlib; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$ac_ct_RANLIB"; then
4759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_RANLIB="ranlib"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4779 if test -n "$ac_ct_RANLIB"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4781 $as_echo "$ac_ct_RANLIB" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787 if test "x$ac_ct_RANLIB" = x; then
4788 RANLIB=":"
4789 else
4790 case $cross_compiling:$ac_tool_warned in
4791 yes:)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796 RANLIB=$ac_ct_RANLIB
4797 fi
4798 else
4799 RANLIB="$ac_cv_prog_RANLIB"
4800 fi
4801
4802
4803
4804
4805
4806
4807
4808
4809 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 case $PKG_CONFIG in
4819 [\\/]* | ?:[\\/]*)
4820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4821 ;;
4822 *)
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 ;;
4839 esac
4840 fi
4841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4842 if test -n "$PKG_CONFIG"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4844 $as_echo "$PKG_CONFIG" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_path_PKG_CONFIG"; then
4853 ac_pt_PKG_CONFIG=$PKG_CONFIG
4854 # Extract the first word of "pkg-config", so it can be a program name with args.
4855 set dummy pkg-config; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 case $ac_pt_PKG_CONFIG in
4862 [\\/]* | ?:[\\/]*)
4863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4864 ;;
4865 *)
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 ;;
4882 esac
4883 fi
4884 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4885 if test -n "$ac_pt_PKG_CONFIG"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4887 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893 if test "x$ac_pt_PKG_CONFIG" = x; then
4894 PKG_CONFIG=""
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897 yes:)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4901 esac
4902 PKG_CONFIG=$ac_pt_PKG_CONFIG
4903 fi
4904 else
4905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4906 fi
4907
4908 fi
4909 if test -n "$PKG_CONFIG"; then
4910 _pkg_min_version=0.9.0
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4912 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4913 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915 $as_echo "yes" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 PKG_CONFIG=""
4920 fi
4921 fi
4922
4923 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4924 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4925 # is C99. So handle it ourselves.
4926 :
4927 C_DIALECT=
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4929 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4934 # error "C11 support not found"
4935 #endif
4936
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4940 $as_echo "yes" >&6; }
4941 else
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4946 $as_echo_n "checking for -std=c11 support... " >&6; }
4947 ac_save_CC="$CC"
4948 CC="$CC -std=c11"
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951
4952 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4953 # error "C11 support not found"
4954 #endif
4955
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4960 $as_echo "yes" >&6; }
4961 CC="$ac_save_CC"
4962 C_DIALECT="-std=c11"
4963
4964 else
4965 as_fn_error $? "C11 is required" "$LINENO" 5
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970
4971
4972
4973
4974
4975 for ac_header in $ac_header_list
4976 do :
4977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4978 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4979 "
4980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4981 cat >>confdefs.h <<_ACEOF
4982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 _ACEOF
4984
4985 fi
4986
4987 done
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 for ac_func in $ac_func_list
5041 do :
5042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5045 cat >>confdefs.h <<_ACEOF
5046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5047 _ACEOF
5048
5049 fi
5050 done
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5175 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5176 if ${ac_cv_struct_tm+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <sys/types.h>
5182 #include <time.h>
5183
5184 int
5185 main ()
5186 {
5187 struct tm tm;
5188 int *p = &tm.tm_sec;
5189 return !p;
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_cv_struct_tm=time.h
5196 else
5197 ac_cv_struct_tm=sys/time.h
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5202 $as_echo "$ac_cv_struct_tm" >&6; }
5203 if test $ac_cv_struct_tm = sys/time.h; then
5204
5205 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5206
5207 fi
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5210 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5211 if ${ac_cv_type_uid_t+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #include <sys/types.h>
5217
5218 _ACEOF
5219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220 $EGREP "uid_t" >/dev/null 2>&1; then :
5221 ac_cv_type_uid_t=yes
5222 else
5223 ac_cv_type_uid_t=no
5224 fi
5225 rm -f conftest*
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5229 $as_echo "$ac_cv_type_uid_t" >&6; }
5230 if test $ac_cv_type_uid_t = no; then
5231
5232 $as_echo "#define uid_t int" >>confdefs.h
5233
5234
5235 $as_echo "#define gid_t int" >>confdefs.h
5236
5237 fi
5238
5239 case `pwd` in
5240 *\ * | *\ *)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5242 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5243 esac
5244
5245
5246
5247 macro_version='2.2.7a'
5248 macro_revision='1.3134'
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 ltmain="$ac_aux_dir/ltmain.sh"
5263
5264 # Backslashify metacharacters that are still active within
5265 # double-quoted strings.
5266 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5267
5268 # Same as above, but do not quote variable references.
5269 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5270
5271 # Sed substitution to delay expansion of an escaped shell variable in a
5272 # double_quote_subst'ed string.
5273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5274
5275 # Sed substitution to delay expansion of an escaped single quote.
5276 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5277
5278 # Sed substitution to avoid accidental globbing in evaled expressions
5279 no_glob_subst='s/\*/\\\*/g'
5280
5281 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5283 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5286 $as_echo_n "checking how to print strings... " >&6; }
5287 # Test print first, because it will be a builtin if present.
5288 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5289 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5290 ECHO='print -r --'
5291 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5292 ECHO='printf %s\n'
5293 else
5294 # Use this function as a fallback that always works.
5295 func_fallback_echo ()
5296 {
5297 eval 'cat <<_LTECHO_EOF
5298 $1
5299 _LTECHO_EOF'
5300 }
5301 ECHO='func_fallback_echo'
5302 fi
5303
5304 # func_echo_all arg...
5305 # Invoke $ECHO with all args, space-separated.
5306 func_echo_all ()
5307 {
5308 $ECHO ""
5309 }
5310
5311 case "$ECHO" in
5312 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5313 $as_echo "printf" >&6; } ;;
5314 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5315 $as_echo "print -r" >&6; } ;;
5316 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5317 $as_echo "cat" >&6; } ;;
5318 esac
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5334 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5335 if ${ac_cv_path_SED+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5339 for ac_i in 1 2 3 4 5 6 7; do
5340 ac_script="$ac_script$as_nl$ac_script"
5341 done
5342 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5343 { ac_script=; unset ac_script;}
5344 if test -z "$SED"; then
5345 ac_path_SED_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in sed gsed; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5355 as_fn_executable_p "$ac_path_SED" || continue
5356 # Check for GNU ac_path_SED and select it if it is found.
5357 # Check for GNU $ac_path_SED
5358 case `"$ac_path_SED" --version 2>&1` in
5359 *GNU*)
5360 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5361 *)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo '' >> "conftest.nl"
5370 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_SED_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_SED="$ac_path_SED"
5376 ac_path_SED_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382 esac
5383
5384 $ac_path_SED_found && break 3
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_SED"; then
5390 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5391 fi
5392 else
5393 ac_cv_path_SED=$SED
5394 fi
5395
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5398 $as_echo "$ac_cv_path_SED" >&6; }
5399 SED="$ac_cv_path_SED"
5400 rm -f conftest.sed
5401
5402 test -z "$SED" && SED=sed
5403 Xsed="$SED -e 1s/^X//"
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5416 $as_echo_n "checking for fgrep... " >&6; }
5417 if ${ac_cv_path_FGREP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5421 then ac_cv_path_FGREP="$GREP -F"
5422 else
5423 if test -z "$FGREP"; then
5424 ac_path_FGREP_found=false
5425 # Loop through the user's path and test for each of PROGNAME-LIST
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_prog in fgrep; do
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5434 as_fn_executable_p "$ac_path_FGREP" || continue
5435 # Check for GNU ac_path_FGREP and select it if it is found.
5436 # Check for GNU $ac_path_FGREP
5437 case `"$ac_path_FGREP" --version 2>&1` in
5438 *GNU*)
5439 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5440 *)
5441 ac_count=0
5442 $as_echo_n 0123456789 >"conftest.in"
5443 while :
5444 do
5445 cat "conftest.in" "conftest.in" >"conftest.tmp"
5446 mv "conftest.tmp" "conftest.in"
5447 cp "conftest.in" "conftest.nl"
5448 $as_echo 'FGREP' >> "conftest.nl"
5449 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5451 as_fn_arith $ac_count + 1 && ac_count=$as_val
5452 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5453 # Best one so far, save it but keep looking for a better one
5454 ac_cv_path_FGREP="$ac_path_FGREP"
5455 ac_path_FGREP_max=$ac_count
5456 fi
5457 # 10*(2^10) chars as input seems more than enough
5458 test $ac_count -gt 10 && break
5459 done
5460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5461 esac
5462
5463 $ac_path_FGREP_found && break 3
5464 done
5465 done
5466 done
5467 IFS=$as_save_IFS
5468 if test -z "$ac_cv_path_FGREP"; then
5469 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5470 fi
5471 else
5472 ac_cv_path_FGREP=$FGREP
5473 fi
5474
5475 fi
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5478 $as_echo "$ac_cv_path_FGREP" >&6; }
5479 FGREP="$ac_cv_path_FGREP"
5480
5481
5482 test -z "$GREP" && GREP=grep
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 # Check whether --with-gnu-ld was given.
5503 if test "${with_gnu_ld+set}" = set; then :
5504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5505 else
5506 with_gnu_ld=no
5507 fi
5508
5509 ac_prog=ld
5510 if test "$GCC" = yes; then
5511 # Check if gcc -print-prog-name=ld gives a path.
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5513 $as_echo_n "checking for ld used by $CC... " >&6; }
5514 case $host in
5515 *-*-mingw*)
5516 # gcc leaves a trailing carriage return which upsets mingw
5517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5518 *)
5519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5520 esac
5521 case $ac_prog in
5522 # Accept absolute paths.
5523 [\\/]* | ?:[\\/]*)
5524 re_direlt='/[^/][^/]*/\.\./'
5525 # Canonicalize the pathname of ld
5526 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5527 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5528 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5529 done
5530 test -z "$LD" && LD="$ac_prog"
5531 ;;
5532 "")
5533 # If it fails, then pretend we aren't using GCC.
5534 ac_prog=ld
5535 ;;
5536 *)
5537 # If it is relative, then search for the first ld in PATH.
5538 with_gnu_ld=unknown
5539 ;;
5540 esac
5541 elif test "$with_gnu_ld" = yes; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5543 $as_echo_n "checking for GNU ld... " >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5546 $as_echo_n "checking for non-GNU ld... " >&6; }
5547 fi
5548 if ${lt_cv_path_LD+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -z "$LD"; then
5552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5553 for ac_dir in $PATH; do
5554 IFS="$lt_save_ifs"
5555 test -z "$ac_dir" && ac_dir=.
5556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5557 lt_cv_path_LD="$ac_dir/$ac_prog"
5558 # Check to see if the program is GNU ld. I'd rather use --version,
5559 # but apparently some variants of GNU ld only accept -v.
5560 # Break only if it was the GNU/non-GNU ld that we prefer.
5561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5562 *GNU* | *'with BFD'*)
5563 test "$with_gnu_ld" != no && break
5564 ;;
5565 *)
5566 test "$with_gnu_ld" != yes && break
5567 ;;
5568 esac
5569 fi
5570 done
5571 IFS="$lt_save_ifs"
5572 else
5573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5574 fi
5575 fi
5576
5577 LD="$lt_cv_path_LD"
5578 if test -n "$LD"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5580 $as_echo "$LD" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5587 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5588 if ${lt_cv_prog_gnu_ld+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5592 case `$LD -v 2>&1 </dev/null` in
5593 *GNU* | *'with BFD'*)
5594 lt_cv_prog_gnu_ld=yes
5595 ;;
5596 *)
5597 lt_cv_prog_gnu_ld=no
5598 ;;
5599 esac
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5602 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5603 with_gnu_ld=$lt_cv_prog_gnu_ld
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5614 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5615 if ${lt_cv_path_NM+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$NM"; then
5619 # Let the user override the nm to test.
5620 lt_nm_to_check="$NM"
5621 else
5622 lt_nm_to_check="${ac_tool_prefix}nm"
5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624 lt_nm_to_check="$lt_nm_to_check nm"
5625 fi
5626 fi
5627 for lt_tmp_nm in $lt_nm_to_check; do
5628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5630 IFS="$lt_save_ifs"
5631 test -z "$ac_dir" && ac_dir=.
5632 case "$lt_tmp_nm" in
5633 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5634 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5635 esac
5636 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5637 # Check to see if the nm accepts a BSD-compat flag.
5638 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5639 # nm: unknown option "B" ignored
5640 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5641 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5642 break
5643 ;;
5644 *)
5645 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5646 *$tmp_nm*)
5647 lt_cv_path_NM="$tmp_nm -p"
5648 break
5649 ;;
5650 *)
5651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5652 continue # so that we can try to find one that supports BSD flags
5653 ;;
5654 esac
5655 ;;
5656 esac
5657 fi
5658 done
5659 IFS="$lt_save_ifs"
5660 done
5661 : ${lt_cv_path_NM=no}
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5664 $as_echo "$lt_cv_path_NM" >&6; }
5665 if test "$lt_cv_path_NM" != "no"; then
5666 NM="$lt_cv_path_NM"
5667 else
5668 # Didn't find any BSD compatible name lister, look for dumpbin.
5669 if test -n "$DUMPBIN"; then :
5670 # Let the user override the test.
5671 else
5672 if test -n "$ac_tool_prefix"; then
5673 for ac_prog in dumpbin "link -dump"
5674 do
5675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_DUMPBIN+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$DUMPBIN"; then
5683 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 DUMPBIN=$ac_cv_prog_DUMPBIN
5703 if test -n "$DUMPBIN"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5705 $as_echo "$DUMPBIN" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5709 fi
5710
5711
5712 test -n "$DUMPBIN" && break
5713 done
5714 fi
5715 if test -z "$DUMPBIN"; then
5716 ac_ct_DUMPBIN=$DUMPBIN
5717 for ac_prog in dumpbin "link -dump"
5718 do
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$ac_ct_DUMPBIN"; then
5727 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5747 if test -n "$ac_ct_DUMPBIN"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5749 $as_echo "$ac_ct_DUMPBIN" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 test -n "$ac_ct_DUMPBIN" && break
5757 done
5758
5759 if test "x$ac_ct_DUMPBIN" = x; then
5760 DUMPBIN=":"
5761 else
5762 case $cross_compiling:$ac_tool_warned in
5763 yes:)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5766 ac_tool_warned=yes ;;
5767 esac
5768 DUMPBIN=$ac_ct_DUMPBIN
5769 fi
5770 fi
5771
5772 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5773 *COFF*)
5774 DUMPBIN="$DUMPBIN -symbols"
5775 ;;
5776 *)
5777 DUMPBIN=:
5778 ;;
5779 esac
5780 fi
5781
5782 if test "$DUMPBIN" != ":"; then
5783 NM="$DUMPBIN"
5784 fi
5785 fi
5786 test -z "$NM" && NM=nm
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5794 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5795 if ${lt_cv_nm_interface+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 lt_cv_nm_interface="BSD nm"
5799 echo "int some_variable = 0;" > conftest.$ac_ext
5800 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5801 (eval "$ac_compile" 2>conftest.err)
5802 cat conftest.err >&5
5803 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5804 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5805 cat conftest.err >&5
5806 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5807 cat conftest.out >&5
5808 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5809 lt_cv_nm_interface="MS dumpbin"
5810 fi
5811 rm -f conftest*
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5814 $as_echo "$lt_cv_nm_interface" >&6; }
5815
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5817 $as_echo_n "checking whether ln -s works... " >&6; }
5818 LN_S=$as_ln_s
5819 if test "$LN_S" = "ln -s"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5821 $as_echo "yes" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5824 $as_echo "no, using $LN_S" >&6; }
5825 fi
5826
5827 # find the maximum length of command line arguments
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5829 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5830 if ${lt_cv_sys_max_cmd_len+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 i=0
5834 teststring="ABCD"
5835
5836 case $build_os in
5837 msdosdjgpp*)
5838 # On DJGPP, this test can blow up pretty badly due to problems in libc
5839 # (any single argument exceeding 2000 bytes causes a buffer overrun
5840 # during glob expansion). Even if it were fixed, the result of this
5841 # check would be larger than it should be.
5842 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5843 ;;
5844
5845 gnu*)
5846 # Under GNU Hurd, this test is not required because there is
5847 # no limit to the length of command line arguments.
5848 # Libtool will interpret -1 as no limit whatsoever
5849 lt_cv_sys_max_cmd_len=-1;
5850 ;;
5851
5852 cygwin* | mingw* | cegcc*)
5853 # On Win9x/ME, this test blows up -- it succeeds, but takes
5854 # about 5 minutes as the teststring grows exponentially.
5855 # Worse, since 9x/ME are not pre-emptively multitasking,
5856 # you end up with a "frozen" computer, even though with patience
5857 # the test eventually succeeds (with a max line length of 256k).
5858 # Instead, let's just punt: use the minimum linelength reported by
5859 # all of the supported platforms: 8192 (on NT/2K/XP).
5860 lt_cv_sys_max_cmd_len=8192;
5861 ;;
5862
5863 mint*)
5864 # On MiNT this can take a long time and run out of memory.
5865 lt_cv_sys_max_cmd_len=8192;
5866 ;;
5867
5868 amigaos*)
5869 # On AmigaOS with pdksh, this test takes hours, literally.
5870 # So we just punt and use a minimum line length of 8192.
5871 lt_cv_sys_max_cmd_len=8192;
5872 ;;
5873
5874 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5875 # This has been around since 386BSD, at least. Likely further.
5876 if test -x /sbin/sysctl; then
5877 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5878 elif test -x /usr/sbin/sysctl; then
5879 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5880 else
5881 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5882 fi
5883 # And add a safety zone
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5886 ;;
5887
5888 interix*)
5889 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5890 lt_cv_sys_max_cmd_len=196608
5891 ;;
5892
5893 osf*)
5894 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5895 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5896 # nice to cause kernel panics so lets avoid the loop below.
5897 # First set a reasonable default.
5898 lt_cv_sys_max_cmd_len=16384
5899 #
5900 if test -x /sbin/sysconfig; then
5901 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5902 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5903 esac
5904 fi
5905 ;;
5906 sco3.2v5*)
5907 lt_cv_sys_max_cmd_len=102400
5908 ;;
5909 sysv5* | sco5v6* | sysv4.2uw2*)
5910 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5911 if test -n "$kargmax"; then
5912 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5913 else
5914 lt_cv_sys_max_cmd_len=32768
5915 fi
5916 ;;
5917 *)
5918 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5919 if test -n "$lt_cv_sys_max_cmd_len"; then
5920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5922 else
5923 # Make teststring a little bigger before we do anything with it.
5924 # a 1K string should be a reasonable start.
5925 for i in 1 2 3 4 5 6 7 8 ; do
5926 teststring=$teststring$teststring
5927 done
5928 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5929 # If test is not a shell built-in, we'll probably end up computing a
5930 # maximum length that is only half of the actual maximum length, but
5931 # we can't tell.
5932 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5933 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5934 test $i != 17 # 1/2 MB should be enough
5935 do
5936 i=`expr $i + 1`
5937 teststring=$teststring$teststring
5938 done
5939 # Only check the string length outside the loop.
5940 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5941 teststring=
5942 # Add a significant safety factor because C++ compilers can tack on
5943 # massive amounts of additional arguments before passing them to the
5944 # linker. It appears as though 1/2 is a usable value.
5945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5946 fi
5947 ;;
5948 esac
5949
5950 fi
5951
5952 if test -n $lt_cv_sys_max_cmd_len ; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5954 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5957 $as_echo "none" >&6; }
5958 fi
5959 max_cmd_len=$lt_cv_sys_max_cmd_len
5960
5961
5962
5963
5964
5965
5966 : ${CP="cp -f"}
5967 : ${MV="mv -f"}
5968 : ${RM="rm -f"}
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5971 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5972 # Try some XSI features
5973 xsi_shell=no
5974 ( _lt_dummy="a/b/c"
5975 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5976 = c,a/b,, \
5977 && eval 'test $(( 1 + 1 )) -eq 2 \
5978 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5979 && xsi_shell=yes
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5981 $as_echo "$xsi_shell" >&6; }
5982
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5985 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5986 lt_shell_append=no
5987 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5988 >/dev/null 2>&1 \
5989 && lt_shell_append=yes
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5991 $as_echo "$lt_shell_append" >&6; }
5992
5993
5994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5995 lt_unset=unset
5996 else
5997 lt_unset=false
5998 fi
5999
6000
6001
6002
6003
6004 # test EBCDIC or ASCII
6005 case `echo X|tr X '\101'` in
6006 A) # ASCII based system
6007 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6008 lt_SP2NL='tr \040 \012'
6009 lt_NL2SP='tr \015\012 \040\040'
6010 ;;
6011 *) # EBCDIC based system
6012 lt_SP2NL='tr \100 \n'
6013 lt_NL2SP='tr \r\n \100\100'
6014 ;;
6015 esac
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6026 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6027 if ${lt_cv_ld_reload_flag+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 lt_cv_ld_reload_flag='-r'
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6033 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6034 reload_flag=$lt_cv_ld_reload_flag
6035 case $reload_flag in
6036 "" | " "*) ;;
6037 *) reload_flag=" $reload_flag" ;;
6038 esac
6039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6040 case $host_os in
6041 darwin*)
6042 if test "$GCC" = yes; then
6043 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6044 else
6045 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6046 fi
6047 ;;
6048 esac
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_prog_OBJDUMP+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$OBJDUMP"; then
6067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 OBJDUMP=$ac_cv_prog_OBJDUMP
6087 if test -n "$OBJDUMP"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6089 $as_echo "$OBJDUMP" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 fi
6097 if test -z "$ac_cv_prog_OBJDUMP"; then
6098 ac_ct_OBJDUMP=$OBJDUMP
6099 # Extract the first word of "objdump", so it can be a program name with args.
6100 set dummy objdump; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$ac_ct_OBJDUMP"; then
6107 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6127 if test -n "$ac_ct_OBJDUMP"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6129 $as_echo "$ac_ct_OBJDUMP" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135 if test "x$ac_ct_OBJDUMP" = x; then
6136 OBJDUMP="false"
6137 else
6138 case $cross_compiling:$ac_tool_warned in
6139 yes:)
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144 OBJDUMP=$ac_ct_OBJDUMP
6145 fi
6146 else
6147 OBJDUMP="$ac_cv_prog_OBJDUMP"
6148 fi
6149
6150 test -z "$OBJDUMP" && OBJDUMP=objdump
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6161 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6162 if ${lt_cv_deplibs_check_method+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 lt_cv_file_magic_cmd='$MAGIC_CMD'
6166 lt_cv_file_magic_test_file=
6167 lt_cv_deplibs_check_method='unknown'
6168 # Need to set the preceding variable on all platforms that support
6169 # interlibrary dependencies.
6170 # 'none' -- dependencies not supported.
6171 # `unknown' -- same as none, but documents that we really don't know.
6172 # 'pass_all' -- all dependencies passed with no checks.
6173 # 'test_compile' -- check by making test program.
6174 # 'file_magic [[regex]]' -- check by looking for files in library path
6175 # which responds to the $file_magic_cmd with a given extended regex.
6176 # If you have `file' or equivalent on your system and you're not sure
6177 # whether `pass_all' will *always* work, you probably want this one.
6178
6179 case $host_os in
6180 aix[4-9]*)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183
6184 beos*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 bsdi[45]*)
6189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6190 lt_cv_file_magic_cmd='/usr/bin/file -L'
6191 lt_cv_file_magic_test_file=/shlib/libc.so
6192 ;;
6193
6194 cygwin*)
6195 # func_win32_libid is a shell function defined in ltmain.sh
6196 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6197 lt_cv_file_magic_cmd='func_win32_libid'
6198 ;;
6199
6200 mingw* | pw32*)
6201 # Base MSYS/MinGW do not provide the 'file' command needed by
6202 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6203 # unless we find 'file', for example because we are cross-compiling.
6204 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6205 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207 lt_cv_file_magic_cmd='func_win32_libid'
6208 else
6209 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6210 lt_cv_file_magic_cmd='$OBJDUMP -f'
6211 fi
6212 ;;
6213
6214 cegcc*)
6215 # use the weaker test based on 'objdump'. See mingw*.
6216 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6217 lt_cv_file_magic_cmd='$OBJDUMP -f'
6218 ;;
6219
6220 darwin* | rhapsody*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 freebsd* | dragonfly*)
6225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6226 case $host_cpu in
6227 i*86 )
6228 # Not sure whether the presence of OpenBSD here was a mistake.
6229 # Let's accept both of them until this is cleared up.
6230 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6231 lt_cv_file_magic_cmd=/usr/bin/file
6232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6233 ;;
6234 esac
6235 else
6236 lt_cv_deplibs_check_method=pass_all
6237 fi
6238 ;;
6239
6240 gnu*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
6243
6244 haiku*)
6245 lt_cv_deplibs_check_method=pass_all
6246 ;;
6247
6248 hpux10.20* | hpux11*)
6249 lt_cv_file_magic_cmd=/usr/bin/file
6250 case $host_cpu in
6251 ia64*)
6252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6254 ;;
6255 hppa*64*)
6256 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]'
6257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6258 ;;
6259 *)
6260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6261 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6262 ;;
6263 esac
6264 ;;
6265
6266 interix[3-9]*)
6267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6269 ;;
6270
6271 irix5* | irix6* | nonstopux*)
6272 case $LD in
6273 *-32|*"-32 ") libmagic=32-bit;;
6274 *-n32|*"-n32 ") libmagic=N32;;
6275 *-64|*"-64 ") libmagic=64-bit;;
6276 *) libmagic=never-match;;
6277 esac
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280
6281 # This must be Linux ELF.
6282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285
6286 netbsd*)
6287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6289 else
6290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6291 fi
6292 ;;
6293
6294 newos6*)
6295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6296 lt_cv_file_magic_cmd=/usr/bin/file
6297 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6298 ;;
6299
6300 *nto* | *qnx*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303
6304 openbsd*)
6305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6307 else
6308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6309 fi
6310 ;;
6311
6312 osf3* | osf4* | osf5*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316 rdos*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
6319
6320 solaris*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323
6324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6325 lt_cv_deplibs_check_method=pass_all
6326 ;;
6327
6328 sysv4 | sysv4.3*)
6329 case $host_vendor in
6330 motorola)
6331 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]'
6332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6333 ;;
6334 ncr)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337 sequent)
6338 lt_cv_file_magic_cmd='/bin/file'
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6340 ;;
6341 sni)
6342 lt_cv_file_magic_cmd='/bin/file'
6343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6344 lt_cv_file_magic_test_file=/lib/libc.so
6345 ;;
6346 siemens)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349 pc)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352 esac
6353 ;;
6354
6355 tpf*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 esac
6359
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6362 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6363 file_magic_cmd=$lt_cv_file_magic_cmd
6364 deplibs_check_method=$lt_cv_deplibs_check_method
6365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 plugin_option=
6379 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6380 for plugin in $plugin_names; do
6381 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6382 if test x$plugin_so = x$plugin; then
6383 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6384 fi
6385 if test x$plugin_so != x$plugin; then
6386 plugin_option="--plugin $plugin_so"
6387 break
6388 fi
6389 done
6390
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ar; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_AR+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$AR"; then
6400 ac_cv_prog_AR="$AR" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_AR="${ac_tool_prefix}ar"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 AR=$ac_cv_prog_AR
6420 if test -n "$AR"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6422 $as_echo "$AR" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 fi
6430 if test -z "$ac_cv_prog_AR"; then
6431 ac_ct_AR=$AR
6432 # Extract the first word of "ar", so it can be a program name with args.
6433 set dummy ar; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_AR"; then
6440 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_ac_ct_AR="ar"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6460 if test -n "$ac_ct_AR"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6462 $as_echo "$ac_ct_AR" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468 if test "x$ac_ct_AR" = x; then
6469 AR="false"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 AR=$ac_ct_AR
6478 fi
6479 else
6480 AR="$ac_cv_prog_AR"
6481 fi
6482
6483 test -z "$AR" && AR=ar
6484 if test -n "$plugin_option"; then
6485 if $AR --help 2>&1 | grep -q "\--plugin"; then
6486 touch conftest.c
6487 $AR $plugin_option rc conftest.a conftest.c
6488 if test "$?" != 0; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6490 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6491 else
6492 AR="$AR $plugin_option"
6493 fi
6494 rm -f conftest.*
6495 fi
6496 fi
6497 test -z "$AR_FLAGS" && AR_FLAGS=cru
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 if test -n "$ac_tool_prefix"; then
6510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6511 set dummy ${ac_tool_prefix}strip; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_STRIP+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$STRIP"; then
6518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 STRIP=$ac_cv_prog_STRIP
6538 if test -n "$STRIP"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6540 $as_echo "$STRIP" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_STRIP"; then
6549 ac_ct_STRIP=$STRIP
6550 # Extract the first word of "strip", so it can be a program name with args.
6551 set dummy strip; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$ac_ct_STRIP"; then
6558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_STRIP="strip"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6578 if test -n "$ac_ct_STRIP"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6580 $as_echo "$ac_ct_STRIP" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586 if test "x$ac_ct_STRIP" = x; then
6587 STRIP=":"
6588 else
6589 case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595 STRIP=$ac_ct_STRIP
6596 fi
6597 else
6598 STRIP="$ac_cv_prog_STRIP"
6599 fi
6600
6601 test -z "$STRIP" && STRIP=:
6602
6603
6604
6605
6606
6607
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_RANLIB+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$RANLIB"; then
6617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 RANLIB=$ac_cv_prog_RANLIB
6637 if test -n "$RANLIB"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6639 $as_echo "$RANLIB" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_RANLIB"; then
6648 ac_ct_RANLIB=$RANLIB
6649 # Extract the first word of "ranlib", so it can be a program name with args.
6650 set dummy ranlib; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$ac_ct_RANLIB"; then
6657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_RANLIB="ranlib"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6677 if test -n "$ac_ct_RANLIB"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6679 $as_echo "$ac_ct_RANLIB" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685 if test "x$ac_ct_RANLIB" = x; then
6686 RANLIB=":"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 RANLIB=$ac_ct_RANLIB
6695 fi
6696 else
6697 RANLIB="$ac_cv_prog_RANLIB"
6698 fi
6699
6700 test -z "$RANLIB" && RANLIB=:
6701 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6702 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6703 RANLIB="$RANLIB $plugin_option"
6704 fi
6705 fi
6706
6707
6708
6709
6710
6711
6712 # Determine commands to create old-style static archives.
6713 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6714 old_postinstall_cmds='chmod 644 $oldlib'
6715 old_postuninstall_cmds=
6716
6717 if test -n "$RANLIB"; then
6718 case $host_os in
6719 openbsd*)
6720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6721 ;;
6722 *)
6723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6724 ;;
6725 esac
6726 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6727 fi
6728
6729 case $host_os in
6730 darwin*)
6731 lock_old_archive_extraction=yes ;;
6732 *)
6733 lock_old_archive_extraction=no ;;
6734 esac
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 for ac_prog in gawk mawk nawk awk
6757 do
6758 # Extract the first word of "$ac_prog", so it can be a program name with args.
6759 set dummy $ac_prog; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_AWK+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$AWK"; then
6766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_AWK="$ac_prog"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 AWK=$ac_cv_prog_AWK
6786 if test -n "$AWK"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6788 $as_echo "$AWK" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 test -n "$AWK" && break
6796 done
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 # If no C compiler was specified, use CC.
6817 LTCC=${LTCC-"$CC"}
6818
6819 # If no C compiler flags were specified, use CFLAGS.
6820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6821
6822 # Allow CC to be a program name with arguments.
6823 compiler=$CC
6824
6825
6826 # Check for command to grab the raw symbol name followed by C symbol from nm.
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6828 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6829 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832
6833 # These are sane defaults that work on at least a few old systems.
6834 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6835
6836 # Character class describing NM global symbol codes.
6837 symcode='[BCDEGRST]'
6838
6839 # Regexp to match symbols that can be accessed directly from C.
6840 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6841
6842 # Define system-specific variables.
6843 case $host_os in
6844 aix*)
6845 symcode='[BCDT]'
6846 ;;
6847 cygwin* | mingw* | pw32* | cegcc*)
6848 symcode='[ABCDGISTW]'
6849 ;;
6850 hpux*)
6851 if test "$host_cpu" = ia64; then
6852 symcode='[ABCDEGRST]'
6853 fi
6854 ;;
6855 irix* | nonstopux*)
6856 symcode='[BCDEGRST]'
6857 ;;
6858 osf*)
6859 symcode='[BCDEGQRST]'
6860 ;;
6861 solaris*)
6862 symcode='[BCDRT]'
6863 ;;
6864 sco3.2v5*)
6865 symcode='[DT]'
6866 ;;
6867 sysv4.2uw2*)
6868 symcode='[DT]'
6869 ;;
6870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6871 symcode='[ABDT]'
6872 ;;
6873 sysv4)
6874 symcode='[DFNSTU]'
6875 ;;
6876 esac
6877
6878 # If we're using GNU nm, then use its standard symbol codes.
6879 case `$NM -V 2>&1` in
6880 *GNU* | *'with BFD'*)
6881 symcode='[ABCDGIRSTW]' ;;
6882 esac
6883
6884 # Transform an extracted symbol line into a proper C declaration.
6885 # Some systems (esp. on ia64) link data and code symbols differently,
6886 # so use this general approach.
6887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6888
6889 # Transform an extracted symbol line into symbol name and symbol address
6890 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6891 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'"
6892
6893 # Handle CRLF in mingw tool chain
6894 opt_cr=
6895 case $build_os in
6896 mingw*)
6897 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6898 ;;
6899 esac
6900
6901 # Try without a prefix underscore, then with it.
6902 for ac_symprfx in "" "_"; do
6903
6904 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6905 symxfrm="\\1 $ac_symprfx\\2 \\2"
6906
6907 # Write the raw and C identifiers.
6908 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6909 # Fake it for dumpbin and say T for any non-static function
6910 # and D for any global variable.
6911 # Also find C++ and __fastcall symbols from MSVC++,
6912 # which start with @ or ?.
6913 lt_cv_sys_global_symbol_pipe="$AWK '"\
6914 " {last_section=section; section=\$ 3};"\
6915 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6916 " \$ 0!~/External *\|/{next};"\
6917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6918 " {if(hide[section]) next};"\
6919 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6920 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6921 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6922 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6923 " ' prfx=^$ac_symprfx"
6924 else
6925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6926 fi
6927
6928 # Check to see that the pipe works correctly.
6929 pipe_works=no
6930
6931 rm -f conftest*
6932 cat > conftest.$ac_ext <<_LT_EOF
6933 #ifdef __cplusplus
6934 extern "C" {
6935 #endif
6936 char nm_test_var;
6937 void nm_test_func(void);
6938 void nm_test_func(void){}
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6943 _LT_EOF
6944
6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946 (eval $ac_compile) 2>&5
6947 ac_status=$?
6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949 test $ac_status = 0; }; then
6950 # Now try to grab the symbols.
6951 nlist=conftest.nm
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6953 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; } && test -s "$nlist"; then
6957 # Try sorting and uniquifying the output.
6958 if sort "$nlist" | uniq > "$nlist"T; then
6959 mv -f "$nlist"T "$nlist"
6960 else
6961 rm -f "$nlist"T
6962 fi
6963
6964 # Make sure that we snagged all the symbols we need.
6965 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6966 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6967 cat <<_LT_EOF > conftest.$ac_ext
6968 #ifdef __cplusplus
6969 extern "C" {
6970 #endif
6971
6972 _LT_EOF
6973 # Now generate the symbol file.
6974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6975
6976 cat <<_LT_EOF >> conftest.$ac_ext
6977
6978 /* The mapping between symbol names and symbols. */
6979 const struct {
6980 const char *name;
6981 void *address;
6982 }
6983 lt__PROGRAM__LTX_preloaded_symbols[] =
6984 {
6985 { "@PROGRAM@", (void *) 0 },
6986 _LT_EOF
6987 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6988 cat <<\_LT_EOF >> conftest.$ac_ext
6989 {0, (void *) 0}
6990 };
6991
6992 /* This works around a problem in FreeBSD linker */
6993 #ifdef FREEBSD_WORKAROUND
6994 static const void *lt_preloaded_setup() {
6995 return lt__PROGRAM__LTX_preloaded_symbols;
6996 }
6997 #endif
6998
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002 _LT_EOF
7003 # Now try linking the two files.
7004 mv conftest.$ac_objext conftstm.$ac_objext
7005 lt_save_LIBS="$LIBS"
7006 lt_save_CFLAGS="$CFLAGS"
7007 LIBS="conftstm.$ac_objext"
7008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7010 (eval $ac_link) 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7014 pipe_works=yes
7015 fi
7016 LIBS="$lt_save_LIBS"
7017 CFLAGS="$lt_save_CFLAGS"
7018 else
7019 echo "cannot find nm_test_func in $nlist" >&5
7020 fi
7021 else
7022 echo "cannot find nm_test_var in $nlist" >&5
7023 fi
7024 else
7025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026 fi
7027 else
7028 echo "$progname: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 fi
7031 rm -rf conftest* conftst*
7032
7033 # Do not use the global_symbol_pipe unless it works.
7034 if test "$pipe_works" = yes; then
7035 break
7036 else
7037 lt_cv_sys_global_symbol_pipe=
7038 fi
7039 done
7040
7041 fi
7042
7043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044 lt_cv_sys_global_symbol_to_cdecl=
7045 fi
7046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7048 $as_echo "failed" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7051 $as_echo "ok" >&6; }
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075 # Check whether --enable-libtool-lock was given.
7076 if test "${enable_libtool_lock+set}" = set; then :
7077 enableval=$enable_libtool_lock;
7078 fi
7079
7080 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7081
7082 # Some flags need to be propagated to the compiler or linker for good
7083 # libtool support.
7084 case $host in
7085 ia64-*-hpux*)
7086 # Find out which ABI we are using.
7087 echo 'int i;' > conftest.$ac_ext
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; }; then
7093 case `/usr/bin/file conftest.$ac_objext` in
7094 *ELF-32*)
7095 HPUX_IA64_MODE="32"
7096 ;;
7097 *ELF-64*)
7098 HPUX_IA64_MODE="64"
7099 ;;
7100 esac
7101 fi
7102 rm -rf conftest*
7103 ;;
7104 *-*-irix6*)
7105 # Find out which ABI we are using.
7106 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7108 (eval $ac_compile) 2>&5
7109 ac_status=$?
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7111 test $ac_status = 0; }; then
7112 if test "$lt_cv_prog_gnu_ld" = yes; then
7113 case `/usr/bin/file conftest.$ac_objext` in
7114 *32-bit*)
7115 LD="${LD-ld} -melf32bsmip"
7116 ;;
7117 *N32*)
7118 LD="${LD-ld} -melf32bmipn32"
7119 ;;
7120 *64-bit*)
7121 LD="${LD-ld} -melf64bmip"
7122 ;;
7123 esac
7124 else
7125 case `/usr/bin/file conftest.$ac_objext` in
7126 *32-bit*)
7127 LD="${LD-ld} -32"
7128 ;;
7129 *N32*)
7130 LD="${LD-ld} -n32"
7131 ;;
7132 *64-bit*)
7133 LD="${LD-ld} -64"
7134 ;;
7135 esac
7136 fi
7137 fi
7138 rm -rf conftest*
7139 ;;
7140
7141 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7142 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7143 # Find out which ABI we are using.
7144 echo 'int i;' > conftest.$ac_ext
7145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7146 (eval $ac_compile) 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }; then
7150 case `/usr/bin/file conftest.o` in
7151 *32-bit*)
7152 case $host in
7153 x86_64-*kfreebsd*-gnu)
7154 LD="${LD-ld} -m elf_i386_fbsd"
7155 ;;
7156 x86_64-*linux*)
7157 case `/usr/bin/file conftest.o` in
7158 *x86-64*)
7159 LD="${LD-ld} -m elf32_x86_64"
7160 ;;
7161 *)
7162 LD="${LD-ld} -m elf_i386"
7163 ;;
7164 esac
7165 ;;
7166 powerpc64le-*linux*)
7167 LD="${LD-ld} -m elf32lppclinux"
7168 ;;
7169 powerpc64-*linux*)
7170 LD="${LD-ld} -m elf32ppclinux"
7171 ;;
7172 s390x-*linux*)
7173 LD="${LD-ld} -m elf_s390"
7174 ;;
7175 sparc64-*linux*)
7176 LD="${LD-ld} -m elf32_sparc"
7177 ;;
7178 esac
7179 ;;
7180 *64-bit*)
7181 case $host in
7182 x86_64-*kfreebsd*-gnu)
7183 LD="${LD-ld} -m elf_x86_64_fbsd"
7184 ;;
7185 x86_64-*linux*)
7186 LD="${LD-ld} -m elf_x86_64"
7187 ;;
7188 powerpcle-*linux*)
7189 LD="${LD-ld} -m elf64lppc"
7190 ;;
7191 powerpc-*linux*)
7192 LD="${LD-ld} -m elf64ppc"
7193 ;;
7194 s390*-*linux*|s390*-*tpf*)
7195 LD="${LD-ld} -m elf64_s390"
7196 ;;
7197 sparc*-*linux*)
7198 LD="${LD-ld} -m elf64_sparc"
7199 ;;
7200 esac
7201 ;;
7202 esac
7203 fi
7204 rm -rf conftest*
7205 ;;
7206
7207 *-*-sco3.2v5*)
7208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7209 SAVE_CFLAGS="$CFLAGS"
7210 CFLAGS="$CFLAGS -belf"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7213 if ${lt_cv_cc_needs_belf+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 ac_ext=c
7217 ac_cpp='$CPP $CPPFLAGS'
7218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224
7225 int
7226 main ()
7227 {
7228
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 if ac_fn_c_try_link "$LINENO"; then :
7234 lt_cv_cc_needs_belf=yes
7235 else
7236 lt_cv_cc_needs_belf=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7251 CFLAGS="$SAVE_CFLAGS"
7252 fi
7253 ;;
7254 sparc*-*solaris*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261 test $ac_status = 0; }; then
7262 case `/usr/bin/file conftest.o` in
7263 *64-bit*)
7264 case $lt_cv_prog_gnu_ld in
7265 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7266 *)
7267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7268 LD="${LD-ld} -64"
7269 fi
7270 ;;
7271 esac
7272 ;;
7273 esac
7274 fi
7275 rm -rf conftest*
7276 ;;
7277 esac
7278
7279 need_locks="$enable_libtool_lock"
7280
7281
7282 case $host_os in
7283 rhapsody* | darwin*)
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$DSYMUTIL"; then
7293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7313 if test -n "$DSYMUTIL"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7315 $as_echo "$DSYMUTIL" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321
7322 fi
7323 if test -z "$ac_cv_prog_DSYMUTIL"; then
7324 ac_ct_DSYMUTIL=$DSYMUTIL
7325 # Extract the first word of "dsymutil", so it can be a program name with args.
7326 set dummy dsymutil; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$ac_ct_DSYMUTIL"; then
7333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7353 if test -n "$ac_ct_DSYMUTIL"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7355 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361 if test "x$ac_ct_DSYMUTIL" = x; then
7362 DSYMUTIL=":"
7363 else
7364 case $cross_compiling:$ac_tool_warned in
7365 yes:)
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368 ac_tool_warned=yes ;;
7369 esac
7370 DSYMUTIL=$ac_ct_DSYMUTIL
7371 fi
7372 else
7373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7374 fi
7375
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_NMEDIT+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$NMEDIT"; then
7385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 NMEDIT=$ac_cv_prog_NMEDIT
7405 if test -n "$NMEDIT"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7407 $as_echo "$NMEDIT" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414 fi
7415 if test -z "$ac_cv_prog_NMEDIT"; then
7416 ac_ct_NMEDIT=$NMEDIT
7417 # Extract the first word of "nmedit", so it can be a program name with args.
7418 set dummy nmedit; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$ac_ct_NMEDIT"; then
7425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7445 if test -n "$ac_ct_NMEDIT"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7447 $as_echo "$ac_ct_NMEDIT" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453 if test "x$ac_ct_NMEDIT" = x; then
7454 NMEDIT=":"
7455 else
7456 case $cross_compiling:$ac_tool_warned in
7457 yes:)
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7461 esac
7462 NMEDIT=$ac_ct_NMEDIT
7463 fi
7464 else
7465 NMEDIT="$ac_cv_prog_NMEDIT"
7466 fi
7467
7468 if test -n "$ac_tool_prefix"; then
7469 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7470 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_LIPO+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$LIPO"; then
7477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 LIPO=$ac_cv_prog_LIPO
7497 if test -n "$LIPO"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7499 $as_echo "$LIPO" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505
7506 fi
7507 if test -z "$ac_cv_prog_LIPO"; then
7508 ac_ct_LIPO=$LIPO
7509 # Extract the first word of "lipo", so it can be a program name with args.
7510 set dummy lipo; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 if test -n "$ac_ct_LIPO"; then
7517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_ac_ct_LIPO="lipo"
7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7529 fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7537 if test -n "$ac_ct_LIPO"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7539 $as_echo "$ac_ct_LIPO" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545 if test "x$ac_ct_LIPO" = x; then
7546 LIPO=":"
7547 else
7548 case $cross_compiling:$ac_tool_warned in
7549 yes:)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7553 esac
7554 LIPO=$ac_ct_LIPO
7555 fi
7556 else
7557 LIPO="$ac_cv_prog_LIPO"
7558 fi
7559
7560 if test -n "$ac_tool_prefix"; then
7561 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7562 set dummy ${ac_tool_prefix}otool; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_OTOOL+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$OTOOL"; then
7569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582 done
7583 done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 OTOOL=$ac_cv_prog_OTOOL
7589 if test -n "$OTOOL"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7591 $as_echo "$OTOOL" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597
7598 fi
7599 if test -z "$ac_cv_prog_OTOOL"; then
7600 ac_ct_OTOOL=$OTOOL
7601 # Extract the first word of "otool", so it can be a program name with args.
7602 set dummy otool; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$ac_ct_OTOOL"; then
7609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_ac_ct_OTOOL="otool"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7629 if test -n "$ac_ct_OTOOL"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7631 $as_echo "$ac_ct_OTOOL" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637 if test "x$ac_ct_OTOOL" = x; then
7638 OTOOL=":"
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641 yes:)
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7645 esac
7646 OTOOL=$ac_ct_OTOOL
7647 fi
7648 else
7649 OTOOL="$ac_cv_prog_OTOOL"
7650 fi
7651
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7654 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_OTOOL64+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$OTOOL64"; then
7661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 OTOOL64=$ac_cv_prog_OTOOL64
7681 if test -n "$OTOOL64"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7683 $as_echo "$OTOOL64" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689
7690 fi
7691 if test -z "$ac_cv_prog_OTOOL64"; then
7692 ac_ct_OTOOL64=$OTOOL64
7693 # Extract the first word of "otool64", so it can be a program name with args.
7694 set dummy otool64; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$ac_ct_OTOOL64"; then
7701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_ac_ct_OTOOL64="otool64"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7721 if test -n "$ac_ct_OTOOL64"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7723 $as_echo "$ac_ct_OTOOL64" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729 if test "x$ac_ct_OTOOL64" = x; then
7730 OTOOL64=":"
7731 else
7732 case $cross_compiling:$ac_tool_warned in
7733 yes:)
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736 ac_tool_warned=yes ;;
7737 esac
7738 OTOOL64=$ac_ct_OTOOL64
7739 fi
7740 else
7741 OTOOL64="$ac_cv_prog_OTOOL64"
7742 fi
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7771 $as_echo_n "checking for -single_module linker flag... " >&6; }
7772 if ${lt_cv_apple_cc_single_mod+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 lt_cv_apple_cc_single_mod=no
7776 if test -z "${LT_MULTI_MODULE}"; then
7777 # By default we will add the -single_module flag. You can override
7778 # by either setting the environment variable LT_MULTI_MODULE
7779 # non-empty at configure time, or by adding -multi_module to the
7780 # link flags.
7781 rm -rf libconftest.dylib*
7782 echo "int foo(void){return 1;}" > conftest.c
7783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7784 -dynamiclib -Wl,-single_module conftest.c" >&5
7785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7787 _lt_result=$?
7788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7789 lt_cv_apple_cc_single_mod=yes
7790 else
7791 cat conftest.err >&5
7792 fi
7793 rm -rf libconftest.dylib*
7794 rm -f conftest.*
7795 fi
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7798 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7800 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7801 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 lt_cv_ld_exported_symbols_list=no
7805 save_LDFLAGS=$LDFLAGS
7806 echo "_main" > conftest.sym
7807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810
7811 int
7812 main ()
7813 {
7814
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"; then :
7820 lt_cv_ld_exported_symbols_list=yes
7821 else
7822 lt_cv_ld_exported_symbols_list=no
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LDFLAGS="$save_LDFLAGS"
7827
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7830 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7832 $as_echo_n "checking for -force_load linker flag... " >&6; }
7833 if ${lt_cv_ld_force_load+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 lt_cv_ld_force_load=no
7837 cat > conftest.c << _LT_EOF
7838 int forced_loaded() { return 2;}
7839 _LT_EOF
7840 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7841 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7842 echo "$AR cru libconftest.a conftest.o" >&5
7843 $AR cru libconftest.a conftest.o 2>&5
7844 cat > conftest.c << _LT_EOF
7845 int main() { return 0;}
7846 _LT_EOF
7847 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7848 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7849 _lt_result=$?
7850 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7851 lt_cv_ld_force_load=yes
7852 else
7853 cat conftest.err >&5
7854 fi
7855 rm -f conftest.err libconftest.a conftest conftest.c
7856 rm -rf conftest.dSYM
7857
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7860 $as_echo "$lt_cv_ld_force_load" >&6; }
7861 case $host_os in
7862 rhapsody* | darwin1.[012])
7863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7864 darwin1.*)
7865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7866 darwin*) # darwin 5.x on
7867 # if running on 10.5 or later, the deployment target defaults
7868 # to the OS version, if on x86, and 10.4, the deployment
7869 # target defaults to 10.4. Don't you love it?
7870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7871 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7873 10.[012][,.]*)
7874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7875 10.*)
7876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7877 esac
7878 ;;
7879 esac
7880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7881 _lt_dar_single_mod='$single_module'
7882 fi
7883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7885 else
7886 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7887 fi
7888 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7889 _lt_dsymutil='~$DSYMUTIL $lib || :'
7890 else
7891 _lt_dsymutil=
7892 fi
7893 ;;
7894 esac
7895
7896 for ac_header in dlfcn.h
7897 do :
7898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7899 "
7900 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7901 cat >>confdefs.h <<_ACEOF
7902 #define HAVE_DLFCN_H 1
7903 _ACEOF
7904
7905 fi
7906
7907 done
7908
7909
7910 ac_header_dirent=no
7911 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7912 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7914 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7915 if eval \${$as_ac_Header+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <sys/types.h>
7921 #include <$ac_hdr>
7922
7923 int
7924 main ()
7925 {
7926 if ((DIR *) 0)
7927 return 0;
7928 ;
7929 return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933 eval "$as_ac_Header=yes"
7934 else
7935 eval "$as_ac_Header=no"
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 fi
7939 eval ac_res=\$$as_ac_Header
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7941 $as_echo "$ac_res" >&6; }
7942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7945 _ACEOF
7946
7947 ac_header_dirent=$ac_hdr; break
7948 fi
7949
7950 done
7951 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7952 if test $ac_header_dirent = dirent.h; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7954 $as_echo_n "checking for library containing opendir... " >&6; }
7955 if ${ac_cv_search_opendir+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 ac_func_search_save_LIBS=$LIBS
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961
7962 /* Override any GCC internal prototype to avoid an error.
7963 Use char because int might match the return type of a GCC
7964 builtin and then its argument prototype would still apply. */
7965 #ifdef __cplusplus
7966 extern "C"
7967 #endif
7968 char opendir ();
7969 int
7970 main ()
7971 {
7972 return opendir ();
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 for ac_lib in '' dir; do
7978 if test -z "$ac_lib"; then
7979 ac_res="none required"
7980 else
7981 ac_res=-l$ac_lib
7982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7983 fi
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 ac_cv_search_opendir=$ac_res
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext
7989 if ${ac_cv_search_opendir+:} false; then :
7990 break
7991 fi
7992 done
7993 if ${ac_cv_search_opendir+:} false; then :
7994
7995 else
7996 ac_cv_search_opendir=no
7997 fi
7998 rm conftest.$ac_ext
7999 LIBS=$ac_func_search_save_LIBS
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8002 $as_echo "$ac_cv_search_opendir" >&6; }
8003 ac_res=$ac_cv_search_opendir
8004 if test "$ac_res" != no; then :
8005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8006
8007 fi
8008
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8011 $as_echo_n "checking for library containing opendir... " >&6; }
8012 if ${ac_cv_search_opendir+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 ac_func_search_save_LIBS=$LIBS
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018
8019 /* Override any GCC internal prototype to avoid an error.
8020 Use char because int might match the return type of a GCC
8021 builtin and then its argument prototype would still apply. */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 char opendir ();
8026 int
8027 main ()
8028 {
8029 return opendir ();
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 for ac_lib in '' x; do
8035 if test -z "$ac_lib"; then
8036 ac_res="none required"
8037 else
8038 ac_res=-l$ac_lib
8039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8040 fi
8041 if ac_fn_c_try_link "$LINENO"; then :
8042 ac_cv_search_opendir=$ac_res
8043 fi
8044 rm -f core conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext
8046 if ${ac_cv_search_opendir+:} false; then :
8047 break
8048 fi
8049 done
8050 if ${ac_cv_search_opendir+:} false; then :
8051
8052 else
8053 ac_cv_search_opendir=no
8054 fi
8055 rm conftest.$ac_ext
8056 LIBS=$ac_func_search_save_LIBS
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8059 $as_echo "$ac_cv_search_opendir" >&6; }
8060 ac_res=$ac_cv_search_opendir
8061 if test "$ac_res" != no; then :
8062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8063
8064 fi
8065
8066 fi
8067
8068
8069
8070
8071 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8072 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8073
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8076 _ACEOF
8077
8078
8079 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8080
8081 fi
8082
8083
8084 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8085 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8086
8087 cat >>confdefs.h <<_ACEOF
8088 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8089 _ACEOF
8090
8091
8092 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8093
8094 else
8095 case " $LIBOBJS " in
8096 *" fileblocks.$ac_objext "* ) ;;
8097 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8098 ;;
8099 esac
8100
8101 fi
8102
8103
8104 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8105 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8106
8107 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_STRUCT_STAT_ST_RDEV 1
8109 _ACEOF
8110
8111
8112 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8113
8114 fi
8115
8116
8117 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8118 #include <$ac_cv_struct_tm>
8119
8120 "
8121 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define HAVE_STRUCT_TM_TM_ZONE 1
8125 _ACEOF
8126
8127
8128 fi
8129
8130 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8131
8132 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8133
8134 else
8135 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8136 "
8137 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8138 ac_have_decl=1
8139 else
8140 ac_have_decl=0
8141 fi
8142
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DECL_TZNAME $ac_have_decl
8145 _ACEOF
8146
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8148 $as_echo_n "checking for tzname... " >&6; }
8149 if ${ac_cv_var_tzname+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <time.h>
8155 #if !HAVE_DECL_TZNAME
8156 extern char *tzname[];
8157 #endif
8158
8159 int
8160 main ()
8161 {
8162 return tzname[0][0];
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 if ac_fn_c_try_link "$LINENO"; then :
8168 ac_cv_var_tzname=yes
8169 else
8170 ac_cv_var_tzname=no
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 fi
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8176 $as_echo "$ac_cv_var_tzname" >&6; }
8177 if test $ac_cv_var_tzname = yes; then
8178
8179 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8180
8181 fi
8182 fi
8183
8184
8185 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8186 #include <sys/types.h>
8187 #endif
8188 #ifdef HAVE_SYS_STAT_H
8189 #include <sys/stat.h>
8190 #endif
8191 "
8192 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8193
8194 cat >>confdefs.h <<_ACEOF
8195 #define HAVE_STRUCT_STAT_ST_DEV 1
8196 _ACEOF
8197
8198
8199 fi
8200 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8201 #include <sys/types.h>
8202 #endif
8203 #ifdef HAVE_SYS_STAT_H
8204 #include <sys/stat.h>
8205 #endif
8206 "
8207 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_STRUCT_STAT_ST_INO 1
8211 _ACEOF
8212
8213
8214 fi
8215 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8216 #include <sys/types.h>
8217 #endif
8218 #ifdef HAVE_SYS_STAT_H
8219 #include <sys/stat.h>
8220 #endif
8221 "
8222 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_STRUCT_STAT_ST_MODE 1
8226 _ACEOF
8227
8228
8229 fi
8230 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8231 #include <sys/types.h>
8232 #endif
8233 #ifdef HAVE_SYS_STAT_H
8234 #include <sys/stat.h>
8235 #endif
8236 "
8237 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8238
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_STRUCT_STAT_ST_NLINK 1
8241 _ACEOF
8242
8243
8244 fi
8245 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8246 #include <sys/types.h>
8247 #endif
8248 #ifdef HAVE_SYS_STAT_H
8249 #include <sys/stat.h>
8250 #endif
8251 "
8252 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8253
8254 cat >>confdefs.h <<_ACEOF
8255 #define HAVE_STRUCT_STAT_ST_UID 1
8256 _ACEOF
8257
8258
8259 fi
8260 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8261 #include <sys/types.h>
8262 #endif
8263 #ifdef HAVE_SYS_STAT_H
8264 #include <sys/stat.h>
8265 #endif
8266 "
8267 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8268
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_STRUCT_STAT_ST_GID 1
8271 _ACEOF
8272
8273
8274 fi
8275 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8276 #include <sys/types.h>
8277 #endif
8278 #ifdef HAVE_SYS_STAT_H
8279 #include <sys/stat.h>
8280 #endif
8281 "
8282 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8283
8284 cat >>confdefs.h <<_ACEOF
8285 #define HAVE_STRUCT_STAT_ST_RDEV 1
8286 _ACEOF
8287
8288
8289 fi
8290 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8291 #include <sys/types.h>
8292 #endif
8293 #ifdef HAVE_SYS_STAT_H
8294 #include <sys/stat.h>
8295 #endif
8296 "
8297 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define HAVE_STRUCT_STAT_ST_SIZE 1
8301 _ACEOF
8302
8303
8304 fi
8305 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8306 #include <sys/types.h>
8307 #endif
8308 #ifdef HAVE_SYS_STAT_H
8309 #include <sys/stat.h>
8310 #endif
8311 "
8312 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8316 _ACEOF
8317
8318
8319 fi
8320 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8321 #include <sys/types.h>
8322 #endif
8323 #ifdef HAVE_SYS_STAT_H
8324 #include <sys/stat.h>
8325 #endif
8326 "
8327 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8328
8329 cat >>confdefs.h <<_ACEOF
8330 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8331 _ACEOF
8332
8333
8334 fi
8335 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8336 #include <sys/types.h>
8337 #endif
8338 #ifdef HAVE_SYS_STAT_H
8339 #include <sys/stat.h>
8340 #endif
8341 "
8342 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_STRUCT_STAT_ST_ATIME 1
8346 _ACEOF
8347
8348
8349 fi
8350 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8351 #include <sys/types.h>
8352 #endif
8353 #ifdef HAVE_SYS_STAT_H
8354 #include <sys/stat.h>
8355 #endif
8356 "
8357 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define HAVE_STRUCT_STAT_ST_MTIME 1
8361 _ACEOF
8362
8363
8364 fi
8365 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8366 #include <sys/types.h>
8367 #endif
8368 #ifdef HAVE_SYS_STAT_H
8369 #include <sys/stat.h>
8370 #endif
8371 "
8372 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define HAVE_STRUCT_STAT_ST_CTIME 1
8376 _ACEOF
8377
8378
8379 fi
8380
8381
8382 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8383 if test "x$ac_cv_type___int128" = xyes; then :
8384
8385 cat >>confdefs.h <<_ACEOF
8386 #define HAVE___INT128 1
8387 _ACEOF
8388
8389
8390 fi
8391
8392 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8393 #include <sys/socket.h>
8394
8395 "
8396 if test "x$ac_cv_type_socklen_t" = xyes; then :
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define HAVE_SOCKLEN_T 1
8400 _ACEOF
8401
8402
8403 fi
8404
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8407 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8408 if ${ac_cv_type_getgroups+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test "$cross_compiling" = yes; then :
8412 ac_cv_type_getgroups=cross
8413 else
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 /* Thanks to Mike Rendell for this test. */
8417 $ac_includes_default
8418 #define NGID 256
8419 #undef MAX
8420 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8421
8422 int
8423 main ()
8424 {
8425 gid_t gidset[NGID];
8426 int i, n;
8427 union { gid_t gval; long int lval; } val;
8428
8429 val.lval = -1;
8430 for (i = 0; i < NGID; i++)
8431 gidset[i] = val.gval;
8432 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8433 gidset);
8434 /* Exit non-zero if getgroups seems to require an array of ints. This
8435 happens when gid_t is short int but getgroups modifies an array
8436 of ints. */
8437 return n > 0 && gidset[n] != val.gval;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_run "$LINENO"; then :
8441 ac_cv_type_getgroups=gid_t
8442 else
8443 ac_cv_type_getgroups=int
8444 fi
8445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8447 fi
8448
8449 if test $ac_cv_type_getgroups = cross; then
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <unistd.h>
8453
8454 _ACEOF
8455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8456 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8457 ac_cv_type_getgroups=gid_t
8458 else
8459 ac_cv_type_getgroups=int
8460 fi
8461 rm -f conftest*
8462
8463 fi
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8466 $as_echo "$ac_cv_type_getgroups" >&6; }
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define GETGROUPS_T $ac_cv_type_getgroups
8470 _ACEOF
8471
8472
8473 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8474 if test "x$ac_cv_type_mode_t" = xyes; then :
8475
8476 else
8477
8478 cat >>confdefs.h <<_ACEOF
8479 #define mode_t int
8480 _ACEOF
8481
8482 fi
8483
8484 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8485 if test "x$ac_cv_type_off_t" = xyes; then :
8486
8487 else
8488
8489 cat >>confdefs.h <<_ACEOF
8490 #define off_t long int
8491 _ACEOF
8492
8493 fi
8494
8495 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8496 if test "x$ac_cv_type_pid_t" = xyes; then :
8497
8498 else
8499
8500 cat >>confdefs.h <<_ACEOF
8501 #define pid_t int
8502 _ACEOF
8503
8504 fi
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8507 $as_echo_n "checking return type of signal handlers... " >&6; }
8508 if ${ac_cv_type_signal+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <sys/types.h>
8514 #include <signal.h>
8515
8516 int
8517 main ()
8518 {
8519 return *(signal (0, 0)) (0) == 1;
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 if ac_fn_c_try_compile "$LINENO"; then :
8525 ac_cv_type_signal=int
8526 else
8527 ac_cv_type_signal=void
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8532 $as_echo "$ac_cv_type_signal" >&6; }
8533
8534 cat >>confdefs.h <<_ACEOF
8535 #define RETSIGTYPE $ac_cv_type_signal
8536 _ACEOF
8537
8538
8539 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8540 if test "x$ac_cv_type_size_t" = xyes; then :
8541
8542 else
8543
8544 cat >>confdefs.h <<_ACEOF
8545 #define size_t unsigned int
8546 _ACEOF
8547
8548 fi
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8551 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8552 if ${ac_cv_type_uid_t+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <sys/types.h>
8558
8559 _ACEOF
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "uid_t" >/dev/null 2>&1; then :
8562 ac_cv_type_uid_t=yes
8563 else
8564 ac_cv_type_uid_t=no
8565 fi
8566 rm -f conftest*
8567
8568 fi
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8570 $as_echo "$ac_cv_type_uid_t" >&6; }
8571 if test $ac_cv_type_uid_t = no; then
8572
8573 $as_echo "#define uid_t int" >>confdefs.h
8574
8575
8576 $as_echo "#define gid_t int" >>confdefs.h
8577
8578 fi
8579
8580
8581 ALL_LINGUAS=
8582 # If we haven't got the data from the intl directory,
8583 # assume NLS is disabled.
8584 USE_NLS=no
8585 LIBINTL=
8586 LIBINTL_DEP=
8587 INCINTL=
8588 XGETTEXT=
8589 GMSGFMT=
8590 POSUB=
8591
8592 if test -f ../intl/config.intl; then
8593 . ../intl/config.intl
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8596 $as_echo_n "checking whether NLS is requested... " >&6; }
8597 if test x"$USE_NLS" != xyes; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8602 $as_echo "yes" >&6; }
8603
8604 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8605
8606
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8608 $as_echo_n "checking for catalogs to be installed... " >&6; }
8609 # Look for .po and .gmo files in the source directory.
8610 CATALOGS=
8611 XLINGUAS=
8612 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8613 # If there aren't any .gmo files the shell will give us the
8614 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8615 # weeded out.
8616 case "$cat" in *\**)
8617 continue;;
8618 esac
8619 # The quadruple backslash is collapsed to a double backslash
8620 # by the backticks, then collapsed again by the double quotes,
8621 # leaving us with one backslash in the sed expression (right
8622 # before the dot that mustn't act as a wildcard).
8623 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8624 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8625 # The user is allowed to set LINGUAS to a list of languages to
8626 # install catalogs for. If it's empty that means "all of them."
8627 if test "x$LINGUAS" = x; then
8628 CATALOGS="$CATALOGS $cat"
8629 XLINGUAS="$XLINGUAS $lang"
8630 else
8631 case "$LINGUAS" in *$lang*)
8632 CATALOGS="$CATALOGS $cat"
8633 XLINGUAS="$XLINGUAS $lang"
8634 ;;
8635 esac
8636 fi
8637 done
8638 LINGUAS="$XLINGUAS"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8640 $as_echo "$LINGUAS" >&6; }
8641
8642
8643 DATADIRNAME=share
8644
8645 INSTOBJEXT=.mo
8646
8647 GENCAT=gencat
8648
8649 CATOBJEXT=.gmo
8650
8651 fi
8652
8653
8654 # Use the system's zlib library.
8655 zlibdir="-L\$(top_builddir)/../zlib"
8656 zlibinc="-I\$(top_srcdir)/../zlib"
8657
8658 # Check whether --with-system-zlib was given.
8659 if test "${with_system_zlib+set}" = set; then :
8660 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8661 zlibdir=
8662 zlibinc=
8663 fi
8664
8665 fi
8666
8667
8668
8669
8670
8671
8672 maybe_plugins=no
8673 for ac_header in dlfcn.h
8674 do :
8675 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8676 "
8677 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_DLFCN_H 1
8680 _ACEOF
8681 maybe_plugins=yes
8682 fi
8683
8684 done
8685
8686 for ac_header in windows.h
8687 do :
8688 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8689 "
8690 if test "x$ac_cv_header_windows_h" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_WINDOWS_H 1
8693 _ACEOF
8694 maybe_plugins=yes
8695 fi
8696
8697 done
8698
8699
8700 # Check whether --enable-plugins was given.
8701 if test "${enable_plugins+set}" = set; then :
8702 enableval=$enable_plugins; case "${enableval}" in
8703 no) plugins=no ;;
8704 *) plugins=yes
8705 if test "$maybe_plugins" != "yes" ; then
8706 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8707 fi ;;
8708 esac
8709 else
8710 plugins=$maybe_plugins
8711
8712 fi
8713
8714 if test "$plugins" = "yes"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8716 $as_echo_n "checking for library containing dlsym... " >&6; }
8717 if ${ac_cv_search_dlsym+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 ac_func_search_save_LIBS=$LIBS
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723
8724 /* Override any GCC internal prototype to avoid an error.
8725 Use char because int might match the return type of a GCC
8726 builtin and then its argument prototype would still apply. */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 char dlsym ();
8731 int
8732 main ()
8733 {
8734 return dlsym ();
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 for ac_lib in '' dl; do
8740 if test -z "$ac_lib"; then
8741 ac_res="none required"
8742 else
8743 ac_res=-l$ac_lib
8744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8745 fi
8746 if ac_fn_c_try_link "$LINENO"; then :
8747 ac_cv_search_dlsym=$ac_res
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext
8751 if ${ac_cv_search_dlsym+:} false; then :
8752 break
8753 fi
8754 done
8755 if ${ac_cv_search_dlsym+:} false; then :
8756
8757 else
8758 ac_cv_search_dlsym=no
8759 fi
8760 rm conftest.$ac_ext
8761 LIBS=$ac_func_search_save_LIBS
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8764 $as_echo "$ac_cv_search_dlsym" >&6; }
8765 ac_res=$ac_cv_search_dlsym
8766 if test "$ac_res" != no; then :
8767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8768
8769 fi
8770
8771 fi
8772
8773 if test "$plugins" = yes; then
8774 PLUGINS_TRUE=
8775 PLUGINS_FALSE='#'
8776 else
8777 PLUGINS_TRUE='#'
8778 PLUGINS_FALSE=
8779 fi
8780
8781
8782
8783
8784
8785 # Set options
8786 enable_dlopen=yes
8787
8788
8789
8790
8791 enable_win32_dll=no
8792
8793
8794 # Check whether --enable-shared was given.
8795 if test "${enable_shared+set}" = set; then :
8796 enableval=$enable_shared; p=${PACKAGE-default}
8797 case $enableval in
8798 yes) enable_shared=yes ;;
8799 no) enable_shared=no ;;
8800 *)
8801 enable_shared=no
8802 # Look at the argument we got. We use all the common list separators.
8803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8804 for pkg in $enableval; do
8805 IFS="$lt_save_ifs"
8806 if test "X$pkg" = "X$p"; then
8807 enable_shared=yes
8808 fi
8809 done
8810 IFS="$lt_save_ifs"
8811 ;;
8812 esac
8813 else
8814 enable_shared=yes
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 # Check whether --enable-static was given.
8826 if test "${enable_static+set}" = set; then :
8827 enableval=$enable_static; p=${PACKAGE-default}
8828 case $enableval in
8829 yes) enable_static=yes ;;
8830 no) enable_static=no ;;
8831 *)
8832 enable_static=no
8833 # Look at the argument we got. We use all the common list separators.
8834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8835 for pkg in $enableval; do
8836 IFS="$lt_save_ifs"
8837 if test "X$pkg" = "X$p"; then
8838 enable_static=yes
8839 fi
8840 done
8841 IFS="$lt_save_ifs"
8842 ;;
8843 esac
8844 else
8845 enable_static=yes
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857 # Check whether --with-pic was given.
8858 if test "${with_pic+set}" = set; then :
8859 withval=$with_pic; pic_mode="$withval"
8860 else
8861 pic_mode=default
8862 fi
8863
8864
8865 test -z "$pic_mode" && pic_mode=default
8866
8867
8868
8869
8870
8871
8872
8873 # Check whether --enable-fast-install was given.
8874 if test "${enable_fast_install+set}" = set; then :
8875 enableval=$enable_fast_install; p=${PACKAGE-default}
8876 case $enableval in
8877 yes) enable_fast_install=yes ;;
8878 no) enable_fast_install=no ;;
8879 *)
8880 enable_fast_install=no
8881 # Look at the argument we got. We use all the common list separators.
8882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8883 for pkg in $enableval; do
8884 IFS="$lt_save_ifs"
8885 if test "X$pkg" = "X$p"; then
8886 enable_fast_install=yes
8887 fi
8888 done
8889 IFS="$lt_save_ifs"
8890 ;;
8891 esac
8892 else
8893 enable_fast_install=yes
8894 fi
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906 # This can be used to rebuild libtool when needed
8907 LIBTOOL_DEPS="$ltmain"
8908
8909 # Always use our own libtool.
8910 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937 test -z "$LN_S" && LN_S="ln -s"
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 if test -n "${ZSH_VERSION+set}" ; then
8953 setopt NO_GLOB_SUBST
8954 fi
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8957 $as_echo_n "checking for objdir... " >&6; }
8958 if ${lt_cv_objdir+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 rm -f .libs 2>/dev/null
8962 mkdir .libs 2>/dev/null
8963 if test -d .libs; then
8964 lt_cv_objdir=.libs
8965 else
8966 # MS-DOS does not allow filenames that begin with a dot.
8967 lt_cv_objdir=_libs
8968 fi
8969 rmdir .libs 2>/dev/null
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8972 $as_echo "$lt_cv_objdir" >&6; }
8973 objdir=$lt_cv_objdir
8974
8975
8976
8977
8978
8979 cat >>confdefs.h <<_ACEOF
8980 #define LT_OBJDIR "$lt_cv_objdir/"
8981 _ACEOF
8982
8983
8984
8985
8986 case $host_os in
8987 aix3*)
8988 # AIX sometimes has problems with the GCC collect2 program. For some
8989 # reason, if we set the COLLECT_NAMES environment variable, the problems
8990 # vanish in a puff of smoke.
8991 if test "X${COLLECT_NAMES+set}" != Xset; then
8992 COLLECT_NAMES=
8993 export COLLECT_NAMES
8994 fi
8995 ;;
8996 esac
8997
8998 # Global variables:
8999 ofile=libtool
9000 can_build_shared=yes
9001
9002 # All known linkers require a `.a' archive for static linking (except MSVC,
9003 # which needs '.lib').
9004 libext=a
9005
9006 with_gnu_ld="$lt_cv_prog_gnu_ld"
9007
9008 old_CC="$CC"
9009 old_CFLAGS="$CFLAGS"
9010
9011 # Set sane defaults for various variables
9012 test -z "$CC" && CC=cc
9013 test -z "$LTCC" && LTCC=$CC
9014 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9015 test -z "$LD" && LD=ld
9016 test -z "$ac_objext" && ac_objext=o
9017
9018 for cc_temp in $compiler""; do
9019 case $cc_temp in
9020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9022 \-*) ;;
9023 *) break;;
9024 esac
9025 done
9026 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9027
9028
9029 # Only perform the check for file, if the check method requires it
9030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9031 case $deplibs_check_method in
9032 file_magic*)
9033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9035 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 case $MAGIC_CMD in
9040 [\\/*] | ?:[\\/]*)
9041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9042 ;;
9043 *)
9044 lt_save_MAGIC_CMD="$MAGIC_CMD"
9045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047 for ac_dir in $ac_dummy; do
9048 IFS="$lt_save_ifs"
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f $ac_dir/${ac_tool_prefix}file; then
9051 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9052 if test -n "$file_magic_test_file"; then
9053 case $deplibs_check_method in
9054 "file_magic "*)
9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058 $EGREP "$file_magic_regex" > /dev/null; then
9059 :
9060 else
9061 cat <<_LT_EOF 1>&2
9062
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such. This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem. Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9071
9072 _LT_EOF
9073 fi ;;
9074 esac
9075 fi
9076 break
9077 fi
9078 done
9079 IFS="$lt_save_ifs"
9080 MAGIC_CMD="$lt_save_MAGIC_CMD"
9081 ;;
9082 esac
9083 fi
9084
9085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9086 if test -n "$MAGIC_CMD"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 $as_echo "$MAGIC_CMD" >&6; }
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093
9094
9095
9096
9097
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099 if test -n "$ac_tool_prefix"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 $as_echo_n "checking for file... " >&6; }
9102 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 case $MAGIC_CMD in
9106 [\\/*] | ?:[\\/]*)
9107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9108 ;;
9109 *)
9110 lt_save_MAGIC_CMD="$MAGIC_CMD"
9111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9113 for ac_dir in $ac_dummy; do
9114 IFS="$lt_save_ifs"
9115 test -z "$ac_dir" && ac_dir=.
9116 if test -f $ac_dir/file; then
9117 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9118 if test -n "$file_magic_test_file"; then
9119 case $deplibs_check_method in
9120 "file_magic "*)
9121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9124 $EGREP "$file_magic_regex" > /dev/null; then
9125 :
9126 else
9127 cat <<_LT_EOF 1>&2
9128
9129 *** Warning: the command libtool uses to detect shared libraries,
9130 *** $file_magic_cmd, produces output that libtool cannot recognize.
9131 *** The result is that libtool may fail to recognize shared libraries
9132 *** as such. This will affect the creation of libtool libraries that
9133 *** depend on shared libraries, but programs linked with such libtool
9134 *** libraries will work regardless of this problem. Nevertheless, you
9135 *** may want to report the problem to your system manager and/or to
9136 *** bug-libtool@gnu.org
9137
9138 _LT_EOF
9139 fi ;;
9140 esac
9141 fi
9142 break
9143 fi
9144 done
9145 IFS="$lt_save_ifs"
9146 MAGIC_CMD="$lt_save_MAGIC_CMD"
9147 ;;
9148 esac
9149 fi
9150
9151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9152 if test -n "$MAGIC_CMD"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9154 $as_echo "$MAGIC_CMD" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159
9160
9161 else
9162 MAGIC_CMD=:
9163 fi
9164 fi
9165
9166 fi
9167 ;;
9168 esac
9169
9170 # Use C for the default configuration in the libtool script
9171
9172 lt_save_CC="$CC"
9173 ac_ext=c
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9178
9179
9180 # Source file extension for C test sources.
9181 ac_ext=c
9182
9183 # Object file extension for compiled C test sources.
9184 objext=o
9185 objext=$objext
9186
9187 # Code to be used in simple compile tests
9188 lt_simple_compile_test_code="int some_variable = 0;"
9189
9190 # Code to be used in simple link tests
9191 lt_simple_link_test_code='int main(){return(0);}'
9192
9193
9194
9195
9196
9197
9198
9199 # If no C compiler was specified, use CC.
9200 LTCC=${LTCC-"$CC"}
9201
9202 # If no C compiler flags were specified, use CFLAGS.
9203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9204
9205 # Allow CC to be a program name with arguments.
9206 compiler=$CC
9207
9208 # Save the default compiler, since it gets overwritten when the other
9209 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9210 compiler_DEFAULT=$CC
9211
9212 # save warnings/boilerplate of simple test code
9213 ac_outfile=conftest.$ac_objext
9214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9216 _lt_compiler_boilerplate=`cat conftest.err`
9217 $RM conftest*
9218
9219 ac_outfile=conftest.$ac_objext
9220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9222 _lt_linker_boilerplate=`cat conftest.err`
9223 $RM -r conftest*
9224
9225
9226 ## CAVEAT EMPTOR:
9227 ## There is no encapsulation within the following macros, do not change
9228 ## the running order or otherwise move them around unless you know exactly
9229 ## what you are doing...
9230 if test -n "$compiler"; then
9231
9232 lt_prog_compiler_no_builtin_flag=
9233
9234 if test "$GCC" = yes; then
9235 case $cc_basename in
9236 nvcc*)
9237 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9238 *)
9239 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9240 esac
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9243 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9244 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 lt_cv_prog_compiler_rtti_exceptions=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="-fno-rtti -fno-exceptions"
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9262 ac_status=$?
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_rtti_exceptions=yes
9272 fi
9273 fi
9274 $RM conftest*
9275
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9278 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9279
9280 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9282 else
9283 :
9284 fi
9285
9286 fi
9287
9288
9289
9290
9291
9292
9293 lt_prog_compiler_wl=
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_static=
9296
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9298 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9299
9300 if test "$GCC" = yes; then
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_static='-static'
9303
9304 case $host_os in
9305 aix*)
9306 # All AIX code is PIC.
9307 if test "$host_cpu" = ia64; then
9308 # AIX 5 now supports IA64 processor
9309 lt_prog_compiler_static='-Bstatic'
9310 fi
9311 lt_prog_compiler_pic='-fPIC'
9312 ;;
9313
9314 amigaos*)
9315 case $host_cpu in
9316 powerpc)
9317 # see comment about AmigaOS4 .so support
9318 lt_prog_compiler_pic='-fPIC'
9319 ;;
9320 m68k)
9321 # FIXME: we need at least 68020 code to build shared libraries, but
9322 # adding the `-m68020' flag to GCC prevents building anything better,
9323 # like `-m68040'.
9324 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9325 ;;
9326 esac
9327 ;;
9328
9329 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9330 # PIC is the default for these OSes.
9331 ;;
9332
9333 mingw* | cygwin* | pw32* | os2* | cegcc*)
9334 # This hack is so that the source file can tell whether it is being
9335 # built for inclusion in a dll (and should export symbols for example).
9336 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9337 # (--disable-auto-import) libraries
9338 lt_prog_compiler_pic='-DDLL_EXPORT'
9339 ;;
9340
9341 darwin* | rhapsody*)
9342 # PIC is the default on this platform
9343 # Common symbols not allowed in MH_DYLIB files
9344 lt_prog_compiler_pic='-fno-common'
9345 ;;
9346
9347 haiku*)
9348 # PIC is the default for Haiku.
9349 # The "-static" flag exists, but is broken.
9350 lt_prog_compiler_static=
9351 ;;
9352
9353 hpux*)
9354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9356 # sets the default TLS model and affects inlining.
9357 case $host_cpu in
9358 hppa*64*)
9359 # +Z the default
9360 ;;
9361 *)
9362 lt_prog_compiler_pic='-fPIC'
9363 ;;
9364 esac
9365 ;;
9366
9367 interix[3-9]*)
9368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9369 # Instead, we relocate shared libraries at runtime.
9370 ;;
9371
9372 msdosdjgpp*)
9373 # Just because we use GCC doesn't mean we suddenly get shared libraries
9374 # on systems that don't support them.
9375 lt_prog_compiler_can_build_shared=no
9376 enable_shared=no
9377 ;;
9378
9379 *nto* | *qnx*)
9380 # QNX uses GNU C++, but need to define -shared option too, otherwise
9381 # it will coredump.
9382 lt_prog_compiler_pic='-fPIC -shared'
9383 ;;
9384
9385 sysv4*MP*)
9386 if test -d /usr/nec; then
9387 lt_prog_compiler_pic=-Kconform_pic
9388 fi
9389 ;;
9390
9391 *)
9392 lt_prog_compiler_pic='-fPIC'
9393 ;;
9394 esac
9395
9396 case $cc_basename in
9397 nvcc*) # Cuda Compiler Driver 2.2
9398 lt_prog_compiler_wl='-Xlinker '
9399 lt_prog_compiler_pic='-Xcompiler -fPIC'
9400 ;;
9401 esac
9402 else
9403 # PORTME Check for flag to pass linker flags through the system compiler.
9404 case $host_os in
9405 aix*)
9406 lt_prog_compiler_wl='-Wl,'
9407 if test "$host_cpu" = ia64; then
9408 # AIX 5 now supports IA64 processor
9409 lt_prog_compiler_static='-Bstatic'
9410 else
9411 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9412 fi
9413 ;;
9414
9415 mingw* | cygwin* | pw32* | os2* | cegcc*)
9416 # This hack is so that the source file can tell whether it is being
9417 # built for inclusion in a dll (and should export symbols for example).
9418 lt_prog_compiler_pic='-DDLL_EXPORT'
9419 ;;
9420
9421 hpux9* | hpux10* | hpux11*)
9422 lt_prog_compiler_wl='-Wl,'
9423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9424 # not for PA HP-UX.
9425 case $host_cpu in
9426 hppa*64*|ia64*)
9427 # +Z the default
9428 ;;
9429 *)
9430 lt_prog_compiler_pic='+Z'
9431 ;;
9432 esac
9433 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9434 lt_prog_compiler_static='${wl}-a ${wl}archive'
9435 ;;
9436
9437 irix5* | irix6* | nonstopux*)
9438 lt_prog_compiler_wl='-Wl,'
9439 # PIC (with -KPIC) is the default.
9440 lt_prog_compiler_static='-non_shared'
9441 ;;
9442
9443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9444 case $cc_basename in
9445 # old Intel for x86_64 which still supported -KPIC.
9446 ecc*)
9447 lt_prog_compiler_wl='-Wl,'
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-static'
9450 ;;
9451 # icc used to be incompatible with GCC.
9452 # ICC 10 doesn't accept -KPIC any more.
9453 icc* | ifort*)
9454 lt_prog_compiler_wl='-Wl,'
9455 lt_prog_compiler_pic='-fPIC'
9456 lt_prog_compiler_static='-static'
9457 ;;
9458 # Lahey Fortran 8.1.
9459 lf95*)
9460 lt_prog_compiler_wl='-Wl,'
9461 lt_prog_compiler_pic='--shared'
9462 lt_prog_compiler_static='--static'
9463 ;;
9464 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9465 # Portland Group compilers (*not* the Pentium gcc compiler,
9466 # which looks to be a dead project)
9467 lt_prog_compiler_wl='-Wl,'
9468 lt_prog_compiler_pic='-fpic'
9469 lt_prog_compiler_static='-Bstatic'
9470 ;;
9471 ccc*)
9472 lt_prog_compiler_wl='-Wl,'
9473 # All Alpha code is PIC.
9474 lt_prog_compiler_static='-non_shared'
9475 ;;
9476 xl* | bgxl* | bgf* | mpixl*)
9477 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-qpic'
9480 lt_prog_compiler_static='-qstaticlink'
9481 ;;
9482 *)
9483 case `$CC -V 2>&1 | sed 5q` in
9484 *Sun\ F* | *Sun*Fortran*)
9485 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9486 lt_prog_compiler_pic='-KPIC'
9487 lt_prog_compiler_static='-Bstatic'
9488 lt_prog_compiler_wl=''
9489 ;;
9490 *Sun\ C*)
9491 # Sun C 5.9
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 lt_prog_compiler_wl='-Wl,'
9495 ;;
9496 esac
9497 ;;
9498 esac
9499 ;;
9500
9501 newsos6)
9502 lt_prog_compiler_pic='-KPIC'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
9505
9506 *nto* | *qnx*)
9507 # QNX uses GNU C++, but need to define -shared option too, otherwise
9508 # it will coredump.
9509 lt_prog_compiler_pic='-fPIC -shared'
9510 ;;
9511
9512 osf3* | osf4* | osf5*)
9513 lt_prog_compiler_wl='-Wl,'
9514 # All OSF/1 code is PIC.
9515 lt_prog_compiler_static='-non_shared'
9516 ;;
9517
9518 rdos*)
9519 lt_prog_compiler_static='-non_shared'
9520 ;;
9521
9522 solaris*)
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 case $cc_basename in
9526 f77* | f90* | f95*)
9527 lt_prog_compiler_wl='-Qoption ld ';;
9528 *)
9529 lt_prog_compiler_wl='-Wl,';;
9530 esac
9531 ;;
9532
9533 sunos4*)
9534 lt_prog_compiler_wl='-Qoption ld '
9535 lt_prog_compiler_pic='-PIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 ;;
9538
9539 sysv4 | sysv4.2uw2* | sysv4.3*)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 sysv4*MP*)
9546 if test -d /usr/nec ;then
9547 lt_prog_compiler_pic='-Kconform_pic'
9548 lt_prog_compiler_static='-Bstatic'
9549 fi
9550 ;;
9551
9552 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557
9558 unicos*)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_can_build_shared=no
9561 ;;
9562
9563 uts4*)
9564 lt_prog_compiler_pic='-pic'
9565 lt_prog_compiler_static='-Bstatic'
9566 ;;
9567
9568 *)
9569 lt_prog_compiler_can_build_shared=no
9570 ;;
9571 esac
9572 fi
9573
9574 case $host_os in
9575 # For platforms which do not support PIC, -DPIC is meaningless:
9576 *djgpp*)
9577 lt_prog_compiler_pic=
9578 ;;
9579 *)
9580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9581 ;;
9582 esac
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9584 $as_echo "$lt_prog_compiler_pic" >&6; }
9585
9586
9587
9588
9589
9590
9591 #
9592 # Check to make sure the PIC flag actually works.
9593 #
9594 if test -n "$lt_prog_compiler_pic"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9596 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9597 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 lt_cv_prog_compiler_pic_works=no
9601 ac_outfile=conftest.$ac_objext
9602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9603 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9604 # Insert the option either (1) after the last *FLAGS variable, or
9605 # (2) before a word containing "conftest.", or (3) at the end.
9606 # Note that $ac_compile itself does not contain backslashes and begins
9607 # with a dollar sign (not a hyphen), so the echo should work correctly.
9608 # The option is referenced via a variable to avoid confusing sed.
9609 lt_compile=`echo "$ac_compile" | $SED \
9610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9612 -e 's:$: $lt_compiler_flag:'`
9613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9614 (eval "$lt_compile" 2>conftest.err)
9615 ac_status=$?
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 if (exit $ac_status) && test -s "$ac_outfile"; then
9619 # The compiler can only warn and ignore the option if not recognized
9620 # So say no if there are warnings other than the usual output.
9621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9624 lt_cv_prog_compiler_pic_works=yes
9625 fi
9626 fi
9627 $RM conftest*
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9631 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9632
9633 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9634 case $lt_prog_compiler_pic in
9635 "" | " "*) ;;
9636 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9637 esac
9638 else
9639 lt_prog_compiler_pic=
9640 lt_prog_compiler_can_build_shared=no
9641 fi
9642
9643 fi
9644
9645
9646
9647
9648
9649
9650 #
9651 # Check to make sure the static flag actually works.
9652 #
9653 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9656 if ${lt_cv_prog_compiler_static_works+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 lt_cv_prog_compiler_static_works=no
9660 save_LDFLAGS="$LDFLAGS"
9661 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9664 # The linker can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
9666 if test -s conftest.err; then
9667 # Append any errors to the config.log.
9668 cat conftest.err 1>&5
9669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9671 if diff conftest.exp conftest.er2 >/dev/null; then
9672 lt_cv_prog_compiler_static_works=yes
9673 fi
9674 else
9675 lt_cv_prog_compiler_static_works=yes
9676 fi
9677 fi
9678 $RM -r conftest*
9679 LDFLAGS="$save_LDFLAGS"
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9683 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9684
9685 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9686 :
9687 else
9688 lt_prog_compiler_static=
9689 fi
9690
9691
9692
9693
9694
9695
9696
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9698 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9699 if ${lt_cv_prog_compiler_c_o+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 lt_cv_prog_compiler_c_o=no
9703 $RM -r conftest 2>/dev/null
9704 mkdir conftest
9705 cd conftest
9706 mkdir out
9707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9708
9709 lt_compiler_flag="-o out/conftest2.$ac_objext"
9710 # Insert the option either (1) after the last *FLAGS variable, or
9711 # (2) before a word containing "conftest.", or (3) at the end.
9712 # Note that $ac_compile itself does not contain backslashes and begins
9713 # with a dollar sign (not a hyphen), so the echo should work correctly.
9714 lt_compile=`echo "$ac_compile" | $SED \
9715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9717 -e 's:$: $lt_compiler_flag:'`
9718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9719 (eval "$lt_compile" 2>out/conftest.err)
9720 ac_status=$?
9721 cat out/conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9724 then
9725 # The compiler can only warn and ignore the option if not recognized
9726 # So say no if there are warnings
9727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_c_o=yes
9731 fi
9732 fi
9733 chmod u+w . 2>&5
9734 $RM conftest*
9735 # SGI C++ compiler will create directory out/ii_files/ for
9736 # template instantiation
9737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9738 $RM out/* && rmdir out
9739 cd ..
9740 $RM -r conftest
9741 $RM conftest*
9742
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9745 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9746
9747
9748
9749
9750
9751
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9754 if ${lt_cv_prog_compiler_c_o+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 lt_cv_prog_compiler_c_o=no
9758 $RM -r conftest 2>/dev/null
9759 mkdir conftest
9760 cd conftest
9761 mkdir out
9762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763
9764 lt_compiler_flag="-o out/conftest2.$ac_objext"
9765 # Insert the option either (1) after the last *FLAGS variable, or
9766 # (2) before a word containing "conftest.", or (3) at the end.
9767 # Note that $ac_compile itself does not contain backslashes and begins
9768 # with a dollar sign (not a hyphen), so the echo should work correctly.
9769 lt_compile=`echo "$ac_compile" | $SED \
9770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772 -e 's:$: $lt_compiler_flag:'`
9773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9774 (eval "$lt_compile" 2>out/conftest.err)
9775 ac_status=$?
9776 cat out/conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9779 then
9780 # The compiler can only warn and ignore the option if not recognized
9781 # So say no if there are warnings
9782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9785 lt_cv_prog_compiler_c_o=yes
9786 fi
9787 fi
9788 chmod u+w . 2>&5
9789 $RM conftest*
9790 # SGI C++ compiler will create directory out/ii_files/ for
9791 # template instantiation
9792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9793 $RM out/* && rmdir out
9794 cd ..
9795 $RM -r conftest
9796 $RM conftest*
9797
9798 fi
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9800 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9801
9802
9803
9804
9805 hard_links="nottested"
9806 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9807 # do not overwrite the value of need_locks provided by the user
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9809 $as_echo_n "checking if we can lock with hard links... " >&6; }
9810 hard_links=yes
9811 $RM conftest*
9812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9813 touch conftest.a
9814 ln conftest.a conftest.b 2>&5 || hard_links=no
9815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9817 $as_echo "$hard_links" >&6; }
9818 if test "$hard_links" = no; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9820 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9821 need_locks=warn
9822 fi
9823 else
9824 need_locks=no
9825 fi
9826
9827
9828
9829
9830
9831
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9833 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9834
9835 runpath_var=
9836 allow_undefined_flag=
9837 always_export_symbols=no
9838 archive_cmds=
9839 archive_expsym_cmds=
9840 compiler_needs_object=no
9841 enable_shared_with_static_runtimes=no
9842 export_dynamic_flag_spec=
9843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9844 hardcode_automatic=no
9845 hardcode_direct=no
9846 hardcode_direct_absolute=no
9847 hardcode_libdir_flag_spec=
9848 hardcode_libdir_flag_spec_ld=
9849 hardcode_libdir_separator=
9850 hardcode_minus_L=no
9851 hardcode_shlibpath_var=unsupported
9852 inherit_rpath=no
9853 link_all_deplibs=unknown
9854 module_cmds=
9855 module_expsym_cmds=
9856 old_archive_from_new_cmds=
9857 old_archive_from_expsyms_cmds=
9858 thread_safe_flag_spec=
9859 whole_archive_flag_spec=
9860 # include_expsyms should be a list of space-separated symbols to be *always*
9861 # included in the symbol list
9862 include_expsyms=
9863 # exclude_expsyms can be an extended regexp of symbols to exclude
9864 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9865 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9866 # as well as any symbol that contains `d'.
9867 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9868 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9869 # platforms (ab)use it in PIC code, but their linkers get confused if
9870 # the symbol is explicitly referenced. Since portable code cannot
9871 # rely on this symbol name, it's probably fine to never include it in
9872 # preloaded symbol tables.
9873 # Exclude shared library initialization/finalization symbols.
9874 extract_expsyms_cmds=
9875
9876 case $host_os in
9877 cygwin* | mingw* | pw32* | cegcc*)
9878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9879 # When not using gcc, we currently assume that we are using
9880 # Microsoft Visual C++.
9881 if test "$GCC" != yes; then
9882 with_gnu_ld=no
9883 fi
9884 ;;
9885 interix*)
9886 # we just hope/assume this is gcc and not c89 (= MSVC++)
9887 with_gnu_ld=yes
9888 ;;
9889 openbsd*)
9890 with_gnu_ld=no
9891 ;;
9892 esac
9893
9894 ld_shlibs=yes
9895
9896 # On some targets, GNU ld is compatible enough with the native linker
9897 # that we're better off using the native interface for both.
9898 lt_use_gnu_ld_interface=no
9899 if test "$with_gnu_ld" = yes; then
9900 case $host_os in
9901 aix*)
9902 # The AIX port of GNU ld has always aspired to compatibility
9903 # with the native linker. However, as the warning in the GNU ld
9904 # block says, versions before 2.19.5* couldn't really create working
9905 # shared libraries, regardless of the interface used.
9906 case `$LD -v 2>&1` in
9907 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9908 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9909 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9910 *)
9911 lt_use_gnu_ld_interface=yes
9912 ;;
9913 esac
9914 ;;
9915 *)
9916 lt_use_gnu_ld_interface=yes
9917 ;;
9918 esac
9919 fi
9920
9921 if test "$lt_use_gnu_ld_interface" = yes; then
9922 # If archive_cmds runs LD, not CC, wlarc should be empty
9923 wlarc='${wl}'
9924
9925 # Set some defaults for GNU ld with shared library support. These
9926 # are reset later if shared libraries are not supported. Putting them
9927 # here allows them to be overridden if necessary.
9928 runpath_var=LD_RUN_PATH
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 export_dynamic_flag_spec='${wl}--export-dynamic'
9931 # ancient GNU ld didn't support --whole-archive et. al.
9932 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9933 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9934 else
9935 whole_archive_flag_spec=
9936 fi
9937 supports_anon_versioning=no
9938 case `$LD -v 2>&1` in
9939 *GNU\ gold*) supports_anon_versioning=yes ;;
9940 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9941 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9942 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9943 *\ 2.11.*) ;; # other 2.11 versions
9944 *) supports_anon_versioning=yes ;;
9945 esac
9946
9947 # See if GNU ld supports shared libraries.
9948 case $host_os in
9949 aix[3-9]*)
9950 # On AIX/PPC, the GNU linker is very broken
9951 if test "$host_cpu" != ia64; then
9952 ld_shlibs=no
9953 cat <<_LT_EOF 1>&2
9954
9955 *** Warning: the GNU linker, at least up to release 2.19, is reported
9956 *** to be unable to reliably create shared libraries on AIX.
9957 *** Therefore, libtool is disabling shared libraries support. If you
9958 *** really care for shared libraries, you may want to install binutils
9959 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9960 *** You will then need to restart the configuration process.
9961
9962 _LT_EOF
9963 fi
9964 ;;
9965
9966 amigaos*)
9967 case $host_cpu in
9968 powerpc)
9969 # see comment about AmigaOS4 .so support
9970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9971 archive_expsym_cmds=''
9972 ;;
9973 m68k)
9974 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)'
9975 hardcode_libdir_flag_spec='-L$libdir'
9976 hardcode_minus_L=yes
9977 ;;
9978 esac
9979 ;;
9980
9981 beos*)
9982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9983 allow_undefined_flag=unsupported
9984 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9985 # support --undefined. This deserves some investigation. FIXME
9986 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991
9992 cygwin* | mingw* | pw32* | cegcc*)
9993 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9994 # as there is no search path for DLLs.
9995 hardcode_libdir_flag_spec='-L$libdir'
9996 export_dynamic_flag_spec='${wl}--export-all-symbols'
9997 allow_undefined_flag=unsupported
9998 always_export_symbols=no
9999 enable_shared_with_static_runtimes=yes
10000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10001
10002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10004 # If the export-symbols file already is a .def file (1st line
10005 # is EXPORTS), use it as is; otherwise, prepend...
10006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10007 cp $export_symbols $output_objdir/$soname.def;
10008 else
10009 echo EXPORTS > $output_objdir/$soname.def;
10010 cat $export_symbols >> $output_objdir/$soname.def;
10011 fi~
10012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10013 else
10014 ld_shlibs=no
10015 fi
10016 ;;
10017
10018 haiku*)
10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020 link_all_deplibs=yes
10021 ;;
10022
10023 interix[3-9]*)
10024 hardcode_direct=no
10025 hardcode_shlibpath_var=no
10026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10027 export_dynamic_flag_spec='${wl}-E'
10028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10029 # Instead, shared libraries are loaded at an image base (0x10000000 by
10030 # default) and relocated if they conflict, which is a slow very memory
10031 # consuming and fragmenting process. To avoid this, we pick a random,
10032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10035 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'
10036 ;;
10037
10038 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10039 tmp_diet=no
10040 if test "$host_os" = linux-dietlibc; then
10041 case $cc_basename in
10042 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10043 esac
10044 fi
10045 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10046 && test "$tmp_diet" = no
10047 then
10048 tmp_addflag=' $pic_flag'
10049 tmp_sharedflag='-shared'
10050 case $cc_basename,$host_cpu in
10051 pgcc*) # Portland Group C compiler
10052 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'
10053 tmp_addflag=' $pic_flag'
10054 ;;
10055 pgf77* | pgf90* | pgf95* | pgfortran*)
10056 # Portland Group f77 and f90 compilers
10057 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'
10058 tmp_addflag=' $pic_flag -Mnomain' ;;
10059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10060 tmp_addflag=' -i_dynamic' ;;
10061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10062 tmp_addflag=' -i_dynamic -nofor_main' ;;
10063 ifc* | ifort*) # Intel Fortran compiler
10064 tmp_addflag=' -nofor_main' ;;
10065 lf95*) # Lahey Fortran 8.1
10066 whole_archive_flag_spec=
10067 tmp_sharedflag='--shared' ;;
10068 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10069 tmp_sharedflag='-qmkshrobj'
10070 tmp_addflag= ;;
10071 nvcc*) # Cuda Compiler Driver 2.2
10072 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'
10073 compiler_needs_object=yes
10074 ;;
10075 esac
10076 case `$CC -V 2>&1 | sed 5q` in
10077 *Sun\ C*) # Sun C 5.9
10078 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'
10079 compiler_needs_object=yes
10080 tmp_sharedflag='-G' ;;
10081 *Sun\ F*) # Sun Fortran 8.3
10082 tmp_sharedflag='-G' ;;
10083 esac
10084 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085
10086 if test "x$supports_anon_versioning" = xyes; then
10087 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10088 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10089 echo "local: *; };" >> $output_objdir/$libname.ver~
10090 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10091 fi
10092
10093 case $cc_basename in
10094 xlf* | bgf* | bgxlf* | mpixlf*)
10095 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10096 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10097 hardcode_libdir_flag_spec=
10098 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10099 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10100 if test "x$supports_anon_versioning" = xyes; then
10101 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10103 echo "local: *; };" >> $output_objdir/$libname.ver~
10104 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10105 fi
10106 ;;
10107 esac
10108 else
10109 ld_shlibs=no
10110 fi
10111 ;;
10112
10113 netbsd*)
10114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10115 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10116 wlarc=
10117 else
10118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10120 fi
10121 ;;
10122
10123 solaris*)
10124 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10125 ld_shlibs=no
10126 cat <<_LT_EOF 1>&2
10127
10128 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10129 *** create shared libraries on Solaris systems. Therefore, libtool
10130 *** is disabling shared libraries support. We urge you to upgrade GNU
10131 *** binutils to release 2.9.1 or newer. Another option is to modify
10132 *** your PATH or compiler configuration so that the native linker is
10133 *** used, and then restart.
10134
10135 _LT_EOF
10136 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10139 else
10140 ld_shlibs=no
10141 fi
10142 ;;
10143
10144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10145 case `$LD -v 2>&1` in
10146 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10147 ld_shlibs=no
10148 cat <<_LT_EOF 1>&2
10149
10150 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10151 *** reliably create shared libraries on SCO systems. Therefore, libtool
10152 *** is disabling shared libraries support. We urge you to upgrade GNU
10153 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10154 *** your PATH or compiler configuration so that the native linker is
10155 *** used, and then restart.
10156
10157 _LT_EOF
10158 ;;
10159 *)
10160 # For security reasons, it is highly recommended that you always
10161 # use absolute paths for naming shared libraries, and exclude the
10162 # DT_RUNPATH tag from executables and libraries. But doing so
10163 # requires that you compile everything twice, which is a pain.
10164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10168 else
10169 ld_shlibs=no
10170 fi
10171 ;;
10172 esac
10173 ;;
10174
10175 sunos4*)
10176 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10177 wlarc=
10178 hardcode_direct=yes
10179 hardcode_shlibpath_var=no
10180 ;;
10181
10182 *)
10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10186 else
10187 ld_shlibs=no
10188 fi
10189 ;;
10190 esac
10191
10192 if test "$ld_shlibs" = no; then
10193 runpath_var=
10194 hardcode_libdir_flag_spec=
10195 export_dynamic_flag_spec=
10196 whole_archive_flag_spec=
10197 fi
10198 else
10199 # PORTME fill in a description of your system's linker (not GNU ld)
10200 case $host_os in
10201 aix3*)
10202 allow_undefined_flag=unsupported
10203 always_export_symbols=yes
10204 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'
10205 # Note: this linker hardcodes the directories in LIBPATH if there
10206 # are no directories specified by -L.
10207 hardcode_minus_L=yes
10208 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10209 # Neither direct hardcoding nor static linking is supported with a
10210 # broken collect2.
10211 hardcode_direct=unsupported
10212 fi
10213 ;;
10214
10215 aix[4-9]*)
10216 if test "$host_cpu" = ia64; then
10217 # On IA64, the linker does run time linking by default, so we don't
10218 # have to do anything special.
10219 aix_use_runtimelinking=no
10220 exp_sym_flag='-Bexport'
10221 no_entry_flag=""
10222 else
10223 # If we're using GNU nm, then we don't want the "-C" option.
10224 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10225 # Also, AIX nm treats weak defined symbols like other global
10226 # defined symbols, whereas GNU nm marks them as "W".
10227 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10228 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'
10229 else
10230 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'
10231 fi
10232 aix_use_runtimelinking=no
10233
10234 # Test if we are trying to use run time linking or normal
10235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10236 # need to do runtime linking.
10237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10238 for ld_flag in $LDFLAGS; do
10239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10240 aix_use_runtimelinking=yes
10241 break
10242 fi
10243 done
10244 ;;
10245 esac
10246
10247 exp_sym_flag='-bexport'
10248 no_entry_flag='-bnoentry'
10249 fi
10250
10251 # When large executables or shared objects are built, AIX ld can
10252 # have problems creating the table of contents. If linking a library
10253 # or program results in "error TOC overflow" add -mminimal-toc to
10254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10256
10257 archive_cmds=''
10258 hardcode_direct=yes
10259 hardcode_direct_absolute=yes
10260 hardcode_libdir_separator=':'
10261 link_all_deplibs=yes
10262 file_list_spec='${wl}-f,'
10263
10264 if test "$GCC" = yes; then
10265 case $host_os in aix4.[012]|aix4.[012].*)
10266 # We only want to do this on AIX 4.2 and lower, the check
10267 # below for broken collect2 doesn't work under 4.3+
10268 collect2name=`${CC} -print-prog-name=collect2`
10269 if test -f "$collect2name" &&
10270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10271 then
10272 # We have reworked collect2
10273 :
10274 else
10275 # We have old collect2
10276 hardcode_direct=unsupported
10277 # It fails to find uninstalled libraries when the uninstalled
10278 # path is not listed in the libpath. Setting hardcode_minus_L
10279 # to unsupported forces relinking
10280 hardcode_minus_L=yes
10281 hardcode_libdir_flag_spec='-L$libdir'
10282 hardcode_libdir_separator=
10283 fi
10284 ;;
10285 esac
10286 shared_flag='-shared'
10287 if test "$aix_use_runtimelinking" = yes; then
10288 shared_flag="$shared_flag "'${wl}-G'
10289 fi
10290 else
10291 # not using gcc
10292 if test "$host_cpu" = ia64; then
10293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10294 # chokes on -Wl,-G. The following line is correct:
10295 shared_flag='-G'
10296 else
10297 if test "$aix_use_runtimelinking" = yes; then
10298 shared_flag='${wl}-G'
10299 else
10300 shared_flag='${wl}-bM:SRE'
10301 fi
10302 fi
10303 fi
10304
10305 export_dynamic_flag_spec='${wl}-bexpall'
10306 # It seems that -bexpall does not export symbols beginning with
10307 # underscore (_), so it is better to generate a list of symbols to export.
10308 always_export_symbols=yes
10309 if test "$aix_use_runtimelinking" = yes; then
10310 # Warning - without using the other runtime loading flags (-brtl),
10311 # -berok will link without error, but may produce a broken library.
10312 allow_undefined_flag='-berok'
10313 # Determine the default libpath from the value encoded in an
10314 # empty executable.
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317
10318 int
10319 main ()
10320 {
10321
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327
10328 lt_aix_libpath_sed='
10329 /Import File Strings/,/^$/ {
10330 /^0/ {
10331 s/^0 *\(.*\)$/\1/
10332 p
10333 }
10334 }'
10335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10336 # Check for a 64-bit object if we didn't find anything.
10337 if test -z "$aix_libpath"; then
10338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10339 fi
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344
10345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10346 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"
10347 else
10348 if test "$host_cpu" = ia64; then
10349 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10350 allow_undefined_flag="-z nodefs"
10351 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"
10352 else
10353 # Determine the default libpath from the value encoded in an
10354 # empty executable.
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357
10358 int
10359 main ()
10360 {
10361
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367
10368 lt_aix_libpath_sed='
10369 /Import File Strings/,/^$/ {
10370 /^0/ {
10371 s/^0 *\(.*\)$/\1/
10372 p
10373 }
10374 }'
10375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10376 # Check for a 64-bit object if we didn't find anything.
10377 if test -z "$aix_libpath"; then
10378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10379 fi
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10384
10385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10386 # Warning - without using the other run time loading flags,
10387 # -berok will link without error, but may produce a broken library.
10388 no_undefined_flag=' ${wl}-bernotok'
10389 allow_undefined_flag=' ${wl}-berok'
10390 if test "$with_gnu_ld" = yes; then
10391 # We only use this code for GNU lds that support --whole-archive.
10392 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10393 else
10394 # Exported symbols can be pulled into shared objects from archives
10395 whole_archive_flag_spec='$convenience'
10396 fi
10397 archive_cmds_need_lc=yes
10398 # This is similar to how AIX traditionally builds its shared libraries.
10399 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'
10400 fi
10401 fi
10402 ;;
10403
10404 amigaos*)
10405 case $host_cpu in
10406 powerpc)
10407 # see comment about AmigaOS4 .so support
10408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10409 archive_expsym_cmds=''
10410 ;;
10411 m68k)
10412 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)'
10413 hardcode_libdir_flag_spec='-L$libdir'
10414 hardcode_minus_L=yes
10415 ;;
10416 esac
10417 ;;
10418
10419 bsdi[45]*)
10420 export_dynamic_flag_spec=-rdynamic
10421 ;;
10422
10423 cygwin* | mingw* | pw32* | cegcc*)
10424 # When not using gcc, we currently assume that we are using
10425 # Microsoft Visual C++.
10426 # hardcode_libdir_flag_spec is actually meaningless, as there is
10427 # no search path for DLLs.
10428 hardcode_libdir_flag_spec=' '
10429 allow_undefined_flag=unsupported
10430 # Tell ltmain to make .lib files, not .a files.
10431 libext=lib
10432 # Tell ltmain to make .dll files, not .so files.
10433 shrext_cmds=".dll"
10434 # FIXME: Setting linknames here is a bad hack.
10435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10436 # The linker will automatically build a .lib file if we build a DLL.
10437 old_archive_from_new_cmds='true'
10438 # FIXME: Should let the user specify the lib program.
10439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10440 fix_srcfile_path='`cygpath -w "$srcfile"`'
10441 enable_shared_with_static_runtimes=yes
10442 ;;
10443
10444 darwin* | rhapsody*)
10445
10446
10447 archive_cmds_need_lc=no
10448 hardcode_direct=no
10449 hardcode_automatic=yes
10450 hardcode_shlibpath_var=unsupported
10451 if test "$lt_cv_ld_force_load" = "yes"; then
10452 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\"`'
10453 else
10454 whole_archive_flag_spec=''
10455 fi
10456 link_all_deplibs=yes
10457 allow_undefined_flag="$_lt_dar_allow_undefined"
10458 case $cc_basename in
10459 ifort*) _lt_dar_can_shared=yes ;;
10460 *) _lt_dar_can_shared=$GCC ;;
10461 esac
10462 if test "$_lt_dar_can_shared" = "yes"; then
10463 output_verbose_link_cmd=func_echo_all
10464 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10465 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10466 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}"
10467 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}"
10468
10469 else
10470 ld_shlibs=no
10471 fi
10472
10473 ;;
10474
10475 dgux*)
10476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_shlibpath_var=no
10479 ;;
10480
10481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10482 # support. Future versions do this automatically, but an explicit c++rt0.o
10483 # does not break anything, and helps significantly (at the cost of a little
10484 # extra space).
10485 freebsd2.2*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10493 freebsd2.*)
10494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10495 hardcode_direct=yes
10496 hardcode_minus_L=yes
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10501 freebsd* | dragonfly*)
10502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10503 hardcode_libdir_flag_spec='-R$libdir'
10504 hardcode_direct=yes
10505 hardcode_shlibpath_var=no
10506 ;;
10507
10508 hpux9*)
10509 if test "$GCC" = yes; then
10510 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'
10511 else
10512 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'
10513 fi
10514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10515 hardcode_libdir_separator=:
10516 hardcode_direct=yes
10517
10518 # hardcode_minus_L: Not really in the search PATH,
10519 # but as the default location of the library.
10520 hardcode_minus_L=yes
10521 export_dynamic_flag_spec='${wl}-E'
10522 ;;
10523
10524 hpux10*)
10525 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10527 else
10528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10529 fi
10530 if test "$with_gnu_ld" = no; then
10531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10532 hardcode_libdir_flag_spec_ld='+b $libdir'
10533 hardcode_libdir_separator=:
10534 hardcode_direct=yes
10535 hardcode_direct_absolute=yes
10536 export_dynamic_flag_spec='${wl}-E'
10537 # hardcode_minus_L: Not really in the search PATH,
10538 # but as the default location of the library.
10539 hardcode_minus_L=yes
10540 fi
10541 ;;
10542
10543 hpux11*)
10544 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10545 case $host_cpu in
10546 hppa*64*)
10547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10548 ;;
10549 ia64*)
10550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10551 ;;
10552 *)
10553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10554 ;;
10555 esac
10556 else
10557 case $host_cpu in
10558 hppa*64*)
10559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 ;;
10561 ia64*)
10562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10563 ;;
10564 *)
10565
10566 # Older versions of the 11.00 compiler do not understand -b yet
10567 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10569 $as_echo_n "checking if $CC understands -b... " >&6; }
10570 if ${lt_cv_prog_compiler__b+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572 else
10573 lt_cv_prog_compiler__b=no
10574 save_LDFLAGS="$LDFLAGS"
10575 LDFLAGS="$LDFLAGS -b"
10576 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10578 # The linker can only warn and ignore the option if not recognized
10579 # So say no if there are warnings
10580 if test -s conftest.err; then
10581 # Append any errors to the config.log.
10582 cat conftest.err 1>&5
10583 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10585 if diff conftest.exp conftest.er2 >/dev/null; then
10586 lt_cv_prog_compiler__b=yes
10587 fi
10588 else
10589 lt_cv_prog_compiler__b=yes
10590 fi
10591 fi
10592 $RM -r conftest*
10593 LDFLAGS="$save_LDFLAGS"
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10597 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10598
10599 if test x"$lt_cv_prog_compiler__b" = xyes; then
10600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604
10605 ;;
10606 esac
10607 fi
10608 if test "$with_gnu_ld" = no; then
10609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10610 hardcode_libdir_separator=:
10611
10612 case $host_cpu in
10613 hppa*64*|ia64*)
10614 hardcode_direct=no
10615 hardcode_shlibpath_var=no
10616 ;;
10617 *)
10618 hardcode_direct=yes
10619 hardcode_direct_absolute=yes
10620 export_dynamic_flag_spec='${wl}-E'
10621
10622 # hardcode_minus_L: Not really in the search PATH,
10623 # but as the default location of the library.
10624 hardcode_minus_L=yes
10625 ;;
10626 esac
10627 fi
10628 ;;
10629
10630 irix5* | irix6* | nonstopux*)
10631 if test "$GCC" = yes; then
10632 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'
10633 # Try to use the -exported_symbol ld option, if it does not
10634 # work, assume that -exports_file does not work either and
10635 # implicitly export all symbols.
10636 save_LDFLAGS="$LDFLAGS"
10637 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int foo(void) {}
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 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'
10644
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LDFLAGS="$save_LDFLAGS"
10649 else
10650 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'
10651 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'
10652 fi
10653 archive_cmds_need_lc='no'
10654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator=:
10656 inherit_rpath=yes
10657 link_all_deplibs=yes
10658 ;;
10659
10660 netbsd*)
10661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10663 else
10664 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10665 fi
10666 hardcode_libdir_flag_spec='-R$libdir'
10667 hardcode_direct=yes
10668 hardcode_shlibpath_var=no
10669 ;;
10670
10671 newsos6)
10672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673 hardcode_direct=yes
10674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10675 hardcode_libdir_separator=:
10676 hardcode_shlibpath_var=no
10677 ;;
10678
10679 *nto* | *qnx*)
10680 ;;
10681
10682 openbsd*)
10683 if test -f /usr/libexec/ld.so; then
10684 hardcode_direct=yes
10685 hardcode_shlibpath_var=no
10686 hardcode_direct_absolute=yes
10687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10691 export_dynamic_flag_spec='${wl}-E'
10692 else
10693 case $host_os in
10694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_libdir_flag_spec='-R$libdir'
10697 ;;
10698 *)
10699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10701 ;;
10702 esac
10703 fi
10704 else
10705 ld_shlibs=no
10706 fi
10707 ;;
10708
10709 os2*)
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_minus_L=yes
10712 allow_undefined_flag=unsupported
10713 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'
10714 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10715 ;;
10716
10717 osf3*)
10718 if test "$GCC" = yes; then
10719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10720 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'
10721 else
10722 allow_undefined_flag=' -expect_unresolved \*'
10723 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'
10724 fi
10725 archive_cmds_need_lc='no'
10726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10727 hardcode_libdir_separator=:
10728 ;;
10729
10730 osf4* | osf5*) # as osf3* with the addition of -msym flag
10731 if test "$GCC" = yes; then
10732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10733 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'
10734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10735 else
10736 allow_undefined_flag=' -expect_unresolved \*'
10737 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'
10738 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~
10739 $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'
10740
10741 # Both c and cxx compiler support -rpath directly
10742 hardcode_libdir_flag_spec='-rpath $libdir'
10743 fi
10744 archive_cmds_need_lc='no'
10745 hardcode_libdir_separator=:
10746 ;;
10747
10748 solaris*)
10749 no_undefined_flag=' -z defs'
10750 if test "$GCC" = yes; then
10751 wlarc='${wl}'
10752 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10754 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10755 else
10756 case `$CC -V 2>&1` in
10757 *"Compilers 5.0"*)
10758 wlarc=''
10759 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10762 ;;
10763 *)
10764 wlarc='${wl}'
10765 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10767 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10768 ;;
10769 esac
10770 fi
10771 hardcode_libdir_flag_spec='-R$libdir'
10772 hardcode_shlibpath_var=no
10773 case $host_os in
10774 solaris2.[0-5] | solaris2.[0-5].*) ;;
10775 *)
10776 # The compiler driver will combine and reorder linker options,
10777 # but understands `-z linker_flag'. GCC discards it without `$wl',
10778 # but is careful enough not to reorder.
10779 # Supported since Solaris 2.6 (maybe 2.5.1?)
10780 if test "$GCC" = yes; then
10781 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10782 else
10783 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10784 fi
10785 ;;
10786 esac
10787 link_all_deplibs=yes
10788 ;;
10789
10790 sunos4*)
10791 if test "x$host_vendor" = xsequent; then
10792 # Use $CC to link under sequent, because it throws in some extra .o
10793 # files that make .init and .fini sections work.
10794 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10795 else
10796 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10797 fi
10798 hardcode_libdir_flag_spec='-L$libdir'
10799 hardcode_direct=yes
10800 hardcode_minus_L=yes
10801 hardcode_shlibpath_var=no
10802 ;;
10803
10804 sysv4)
10805 case $host_vendor in
10806 sni)
10807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10808 hardcode_direct=yes # is this really true???
10809 ;;
10810 siemens)
10811 ## LD is ld it makes a PLAMLIB
10812 ## CC just makes a GrossModule.
10813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10814 reload_cmds='$CC -r -o $output$reload_objs'
10815 hardcode_direct=no
10816 ;;
10817 motorola)
10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10820 ;;
10821 esac
10822 runpath_var='LD_RUN_PATH'
10823 hardcode_shlibpath_var=no
10824 ;;
10825
10826 sysv4.3*)
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_shlibpath_var=no
10829 export_dynamic_flag_spec='-Bexport'
10830 ;;
10831
10832 sysv4*MP*)
10833 if test -d /usr/nec; then
10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835 hardcode_shlibpath_var=no
10836 runpath_var=LD_RUN_PATH
10837 hardcode_runpath_var=yes
10838 ld_shlibs=yes
10839 fi
10840 ;;
10841
10842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10843 no_undefined_flag='${wl}-z,text'
10844 archive_cmds_need_lc=no
10845 hardcode_shlibpath_var=no
10846 runpath_var='LD_RUN_PATH'
10847
10848 if test "$GCC" = yes; then
10849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 else
10852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10854 fi
10855 ;;
10856
10857 sysv5* | sco3.2v5* | sco5v6*)
10858 # Note: We can NOT use -z defs as we might desire, because we do not
10859 # link with -lc, and that would cause any symbols used from libc to
10860 # always be unresolved, which means just about no library would
10861 # ever link correctly. If we're not using GNU ld we use -z text
10862 # though, which does catch some bad symbols but isn't as heavy-handed
10863 # as -z defs.
10864 no_undefined_flag='${wl}-z,text'
10865 allow_undefined_flag='${wl}-z,nodefs'
10866 archive_cmds_need_lc=no
10867 hardcode_shlibpath_var=no
10868 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10869 hardcode_libdir_separator=':'
10870 link_all_deplibs=yes
10871 export_dynamic_flag_spec='${wl}-Bexport'
10872 runpath_var='LD_RUN_PATH'
10873
10874 if test "$GCC" = yes; then
10875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10877 else
10878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10880 fi
10881 ;;
10882
10883 uts4*)
10884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10885 hardcode_libdir_flag_spec='-L$libdir'
10886 hardcode_shlibpath_var=no
10887 ;;
10888
10889 *)
10890 ld_shlibs=no
10891 ;;
10892 esac
10893
10894 if test x$host_vendor = xsni; then
10895 case $host in
10896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10897 export_dynamic_flag_spec='${wl}-Blargedynsym'
10898 ;;
10899 esac
10900 fi
10901 fi
10902
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10904 $as_echo "$ld_shlibs" >&6; }
10905 test "$ld_shlibs" = no && can_build_shared=no
10906
10907 with_gnu_ld=$with_gnu_ld
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 #
10924 # Do we need to explicitly link libc?
10925 #
10926 case "x$archive_cmds_need_lc" in
10927 x|xyes)
10928 # Assume -lc should be added
10929 archive_cmds_need_lc=yes
10930
10931 if test "$enable_shared" = yes && test "$GCC" = yes; then
10932 case $archive_cmds in
10933 *'~'*)
10934 # FIXME: we may have to deal with multi-command sequences.
10935 ;;
10936 '$CC '*)
10937 # Test whether the compiler implicitly links with -lc since on some
10938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10939 # to ld, don't add -lc before -lgcc.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10942 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 $RM conftest*
10946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10947
10948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10949 (eval $ac_compile) 2>&5
10950 ac_status=$?
10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952 test $ac_status = 0; } 2>conftest.err; then
10953 soname=conftest
10954 lib=conftest
10955 libobjs=conftest.$ac_objext
10956 deplibs=
10957 wl=$lt_prog_compiler_wl
10958 pic_flag=$lt_prog_compiler_pic
10959 compiler_flags=-v
10960 linker_flags=-v
10961 verstring=
10962 output_objdir=.
10963 libname=conftest
10964 lt_save_allow_undefined_flag=$allow_undefined_flag
10965 allow_undefined_flag=
10966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10967 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; }
10971 then
10972 lt_cv_archive_cmds_need_lc=no
10973 else
10974 lt_cv_archive_cmds_need_lc=yes
10975 fi
10976 allow_undefined_flag=$lt_save_allow_undefined_flag
10977 else
10978 cat conftest.err 1>&5
10979 fi
10980 $RM conftest*
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10984 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10985 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10986 ;;
10987 esac
10988 fi
10989 ;;
10990 esac
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11150
11151 if test "$GCC" = yes; then
11152 case $host_os in
11153 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11154 *) lt_awk_arg="/^libraries:/" ;;
11155 esac
11156 case $host_os in
11157 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11158 *) lt_sed_strip_eq="s,=/,/,g" ;;
11159 esac
11160 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11161 case $lt_search_path_spec in
11162 *\;*)
11163 # if the path contains ";" then we assume it to be the separator
11164 # otherwise default to the standard path separator (i.e. ":") - it is
11165 # assumed that no part of a normal pathname contains ";" but that should
11166 # okay in the real world where ";" in dirpaths is itself problematic.
11167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11168 ;;
11169 *)
11170 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11171 ;;
11172 esac
11173 # Ok, now we have the path, separated by spaces, we can step through it
11174 # and add multilib dir if necessary.
11175 lt_tmp_lt_search_path_spec=
11176 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11177 for lt_sys_path in $lt_search_path_spec; do
11178 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11180 else
11181 test -d "$lt_sys_path" && \
11182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11183 fi
11184 done
11185 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11186 BEGIN {RS=" "; FS="/|\n";} {
11187 lt_foo="";
11188 lt_count=0;
11189 for (lt_i = NF; lt_i > 0; lt_i--) {
11190 if ($lt_i != "" && $lt_i != ".") {
11191 if ($lt_i == "..") {
11192 lt_count++;
11193 } else {
11194 if (lt_count == 0) {
11195 lt_foo="/" $lt_i lt_foo;
11196 } else {
11197 lt_count--;
11198 }
11199 }
11200 }
11201 }
11202 if (lt_foo != "") { lt_freq[lt_foo]++; }
11203 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11204 }'`
11205 # AWK program above erroneously prepends '/' to C:/dos/paths
11206 # for these hosts.
11207 case $host_os in
11208 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11209 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11210 esac
11211 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11212 else
11213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11214 fi
11215 library_names_spec=
11216 libname_spec='lib$name'
11217 soname_spec=
11218 shrext_cmds=".so"
11219 postinstall_cmds=
11220 postuninstall_cmds=
11221 finish_cmds=
11222 finish_eval=
11223 shlibpath_var=
11224 shlibpath_overrides_runpath=unknown
11225 version_type=none
11226 dynamic_linker="$host_os ld.so"
11227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11228 need_lib_prefix=unknown
11229 hardcode_into_libs=no
11230
11231 # when you set need_version to no, make sure it does not cause -set_version
11232 # flags to be left without arguments
11233 need_version=unknown
11234
11235 case $host_os in
11236 aix3*)
11237 version_type=linux
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11239 shlibpath_var=LIBPATH
11240
11241 # AIX 3 has no versioning support, so we append a major version to the name.
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 ;;
11244
11245 aix[4-9]*)
11246 version_type=linux
11247 need_lib_prefix=no
11248 need_version=no
11249 hardcode_into_libs=yes
11250 if test "$host_cpu" = ia64; then
11251 # AIX 5 supports IA64
11252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 else
11255 # With GCC up to 2.95.x, collect2 would create an import file
11256 # for dependence libraries. The import file would start with
11257 # the line `#! .'. This would cause the generated library to
11258 # depend on `.', always an invalid library. This was fixed in
11259 # development snapshots of GCC prior to 3.0.
11260 case $host_os in
11261 aix4 | aix4.[01] | aix4.[01].*)
11262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11263 echo ' yes '
11264 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11265 :
11266 else
11267 can_build_shared=no
11268 fi
11269 ;;
11270 esac
11271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11272 # soname into executable. Probably we can add versioning support to
11273 # collect2, so additional links can be useful in future.
11274 if test "$aix_use_runtimelinking" = yes; then
11275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11276 # instead of lib<name>.a to let people know that these are not
11277 # typical AIX shared libraries.
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 else
11280 # We preserve .a as extension for shared libraries through AIX4.2
11281 # and later when we are not doing run time linking.
11282 library_names_spec='${libname}${release}.a $libname.a'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 fi
11285 shlibpath_var=LIBPATH
11286 fi
11287 ;;
11288
11289 amigaos*)
11290 case $host_cpu in
11291 powerpc)
11292 # Since July 2007 AmigaOS4 officially supports .so libraries.
11293 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 ;;
11296 m68k)
11297 library_names_spec='$libname.ixlibrary $libname.a'
11298 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11299 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'
11300 ;;
11301 esac
11302 ;;
11303
11304 beos*)
11305 library_names_spec='${libname}${shared_ext}'
11306 dynamic_linker="$host_os ld.so"
11307 shlibpath_var=LIBRARY_PATH
11308 ;;
11309
11310 bsdi[45]*)
11311 version_type=linux
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11318 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11319 # the default ld.so.conf also contains /usr/contrib/lib and
11320 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11321 # libtool to hard-code these into programs
11322 ;;
11323
11324 cygwin* | mingw* | pw32* | cegcc*)
11325 version_type=windows
11326 shrext_cmds=".dll"
11327 need_version=no
11328 need_lib_prefix=no
11329
11330 case $GCC,$host_os in
11331 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11332 library_names_spec='$libname.dll.a'
11333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11334 postinstall_cmds='base_file=`basename \${file}`~
11335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11336 dldir=$destdir/`dirname \$dlpath`~
11337 test -d \$dldir || mkdir -p \$dldir~
11338 $install_prog $dir/$dlname \$dldir/$dlname~
11339 chmod a+x \$dldir/$dlname~
11340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11342 fi'
11343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11344 dlpath=$dir/\$dldll~
11345 $RM \$dlpath'
11346 shlibpath_overrides_runpath=yes
11347
11348 case $host_os in
11349 cygwin*)
11350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11352
11353 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11354 ;;
11355 mingw* | cegcc*)
11356 # MinGW DLLs use traditional 'lib' prefix
11357 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11358 ;;
11359 pw32*)
11360 # pw32 DLLs use 'pw' prefix rather than 'lib'
11361 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11362 ;;
11363 esac
11364 ;;
11365
11366 *)
11367 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11368 ;;
11369 esac
11370 dynamic_linker='Win32 ld.exe'
11371 # FIXME: first we should search . and the directory the executable is in
11372 shlibpath_var=PATH
11373 ;;
11374
11375 darwin* | rhapsody*)
11376 dynamic_linker="$host_os dyld"
11377 version_type=darwin
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11381 soname_spec='${libname}${release}${major}$shared_ext'
11382 shlibpath_overrides_runpath=yes
11383 shlibpath_var=DYLD_LIBRARY_PATH
11384 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11385
11386 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11387 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11388 ;;
11389
11390 dgux*)
11391 version_type=linux
11392 need_lib_prefix=no
11393 need_version=no
11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11395 soname_spec='${libname}${release}${shared_ext}$major'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 ;;
11398
11399 freebsd* | dragonfly*)
11400 # DragonFly does not have aout. When/if they implement a new
11401 # versioning mechanism, adjust this.
11402 if test -x /usr/bin/objformat; then
11403 objformat=`/usr/bin/objformat`
11404 else
11405 case $host_os in
11406 freebsd[23].*) objformat=aout ;;
11407 *) objformat=elf ;;
11408 esac
11409 fi
11410 version_type=freebsd-$objformat
11411 case $version_type in
11412 freebsd-elf*)
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11414 need_version=no
11415 need_lib_prefix=no
11416 ;;
11417 freebsd-*)
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11419 need_version=yes
11420 ;;
11421 esac
11422 shlibpath_var=LD_LIBRARY_PATH
11423 case $host_os in
11424 freebsd2.*)
11425 shlibpath_overrides_runpath=yes
11426 ;;
11427 freebsd3.[01]* | freebsdelf3.[01]*)
11428 shlibpath_overrides_runpath=yes
11429 hardcode_into_libs=yes
11430 ;;
11431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11433 shlibpath_overrides_runpath=no
11434 hardcode_into_libs=yes
11435 ;;
11436 *) # from 4.6 on, and DragonFly
11437 shlibpath_overrides_runpath=yes
11438 hardcode_into_libs=yes
11439 ;;
11440 esac
11441 ;;
11442
11443 haiku*)
11444 version_type=linux
11445 need_lib_prefix=no
11446 need_version=no
11447 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11453 hardcode_into_libs=yes
11454 ;;
11455
11456 hpux9* | hpux10* | hpux11*)
11457 # Give a soname corresponding to the major version so that dld.sl refuses to
11458 # link against other versions.
11459 version_type=sunos
11460 need_lib_prefix=no
11461 need_version=no
11462 case $host_cpu in
11463 ia64*)
11464 shrext_cmds='.so'
11465 hardcode_into_libs=yes
11466 dynamic_linker="$host_os dld.so"
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 if test "X$HPUX_IA64_MODE" = X32; then
11472 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11473 else
11474 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11475 fi
11476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11477 ;;
11478 hppa*64*)
11479 shrext_cmds='.sl'
11480 hardcode_into_libs=yes
11481 dynamic_linker="$host_os dld.sl"
11482 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11483 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11488 ;;
11489 *)
11490 shrext_cmds='.sl'
11491 dynamic_linker="$host_os dld.sl"
11492 shlibpath_var=SHLIB_PATH
11493 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 ;;
11497 esac
11498 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11499 postinstall_cmds='chmod 555 $lib'
11500 # or fails outright, so override atomically:
11501 install_override_mode=555
11502 ;;
11503
11504 interix[3-9]*)
11505 version_type=linux
11506 need_lib_prefix=no
11507 need_version=no
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=no
11513 hardcode_into_libs=yes
11514 ;;
11515
11516 irix5* | irix6* | nonstopux*)
11517 case $host_os in
11518 nonstopux*) version_type=nonstopux ;;
11519 *)
11520 if test "$lt_cv_prog_gnu_ld" = yes; then
11521 version_type=linux
11522 else
11523 version_type=irix
11524 fi ;;
11525 esac
11526 need_lib_prefix=no
11527 need_version=no
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11530 case $host_os in
11531 irix5* | nonstopux*)
11532 libsuff= shlibsuff=
11533 ;;
11534 *)
11535 case $LD in # libtool.m4 will add one of these switches to LD
11536 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11537 libsuff= shlibsuff= libmagic=32-bit;;
11538 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11539 libsuff=32 shlibsuff=N32 libmagic=N32;;
11540 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11541 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11542 *) libsuff= shlibsuff= libmagic=never-match;;
11543 esac
11544 ;;
11545 esac
11546 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11547 shlibpath_overrides_runpath=no
11548 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11549 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11550 hardcode_into_libs=yes
11551 ;;
11552
11553 # No shared lib support for Linux oldld, aout, or coff.
11554 linux*oldld* | linux*aout* | linux*coff*)
11555 dynamic_linker=no
11556 ;;
11557
11558 # This must be Linux ELF.
11559 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11560 version_type=linux
11561 need_lib_prefix=no
11562 need_version=no
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=no
11568
11569 # Some binutils ld are patched to set DT_RUNPATH
11570 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 lt_cv_shlibpath_overrides_runpath=no
11574 save_LDFLAGS=$LDFLAGS
11575 save_libdir=$libdir
11576 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11577 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580
11581 int
11582 main ()
11583 {
11584
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11591 lt_cv_shlibpath_overrides_runpath=yes
11592 fi
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LDFLAGS=$save_LDFLAGS
11597 libdir=$save_libdir
11598
11599 fi
11600
11601 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11602
11603 # This implies no fast_install, which is unacceptable.
11604 # Some rework will be needed to allow for fast_install
11605 # before this can be enabled.
11606 hardcode_into_libs=yes
11607
11608 # Append ld.so.conf contents to the search path
11609 if test -f /etc/ld.so.conf; then
11610 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' ' '`
11611 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11612 fi
11613
11614 # We used to test for /lib/ld.so.1 and disable shared libraries on
11615 # powerpc, because MkLinux only supported shared libraries with the
11616 # GNU dynamic linker. Since this was broken with cross compilers,
11617 # most powerpc-linux boxes support dynamic linking these days and
11618 # people can always --disable-shared, the test was removed, and we
11619 # assume the GNU/Linux dynamic linker is in use.
11620 dynamic_linker='GNU/Linux ld.so'
11621 ;;
11622
11623 netbsd*)
11624 version_type=sunos
11625 need_lib_prefix=no
11626 need_version=no
11627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11630 dynamic_linker='NetBSD (a.out) ld.so'
11631 else
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 dynamic_linker='NetBSD ld.elf_so'
11635 fi
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11638 hardcode_into_libs=yes
11639 ;;
11640
11641 newsos6)
11642 version_type=linux
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=yes
11646 ;;
11647
11648 *nto* | *qnx*)
11649 version_type=qnx
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 hardcode_into_libs=yes
11657 dynamic_linker='ldqnx.so'
11658 ;;
11659
11660 openbsd*)
11661 version_type=sunos
11662 sys_lib_dlsearch_path_spec="/usr/lib"
11663 need_lib_prefix=no
11664 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11665 case $host_os in
11666 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11667 *) need_version=no ;;
11668 esac
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11673 case $host_os in
11674 openbsd2.[89] | openbsd2.[89].*)
11675 shlibpath_overrides_runpath=no
11676 ;;
11677 *)
11678 shlibpath_overrides_runpath=yes
11679 ;;
11680 esac
11681 else
11682 shlibpath_overrides_runpath=yes
11683 fi
11684 ;;
11685
11686 os2*)
11687 libname_spec='$name'
11688 shrext_cmds=".dll"
11689 need_lib_prefix=no
11690 library_names_spec='$libname${shared_ext} $libname.a'
11691 dynamic_linker='OS/2 ld.exe'
11692 shlibpath_var=LIBPATH
11693 ;;
11694
11695 osf3* | osf4* | osf5*)
11696 version_type=osf
11697 need_lib_prefix=no
11698 need_version=no
11699 soname_spec='${libname}${release}${shared_ext}$major'
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11703 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11704 ;;
11705
11706 rdos*)
11707 dynamic_linker=no
11708 ;;
11709
11710 solaris*)
11711 version_type=linux
11712 need_lib_prefix=no
11713 need_version=no
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 soname_spec='${libname}${release}${shared_ext}$major'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes
11718 hardcode_into_libs=yes
11719 # ldd complains unless libraries are executable
11720 postinstall_cmds='chmod +x $lib'
11721 ;;
11722
11723 sunos4*)
11724 version_type=sunos
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 if test "$with_gnu_ld" = yes; then
11730 need_lib_prefix=no
11731 fi
11732 need_version=yes
11733 ;;
11734
11735 sysv4 | sysv4.3*)
11736 version_type=linux
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 case $host_vendor in
11741 sni)
11742 shlibpath_overrides_runpath=no
11743 need_lib_prefix=no
11744 runpath_var=LD_RUN_PATH
11745 ;;
11746 siemens)
11747 need_lib_prefix=no
11748 ;;
11749 motorola)
11750 need_lib_prefix=no
11751 need_version=no
11752 shlibpath_overrides_runpath=no
11753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11754 ;;
11755 esac
11756 ;;
11757
11758 sysv4*MP*)
11759 if test -d /usr/nec ;then
11760 version_type=linux
11761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11762 soname_spec='$libname${shared_ext}.$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 fi
11765 ;;
11766
11767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11768 version_type=freebsd-elf
11769 need_lib_prefix=no
11770 need_version=no
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 hardcode_into_libs=yes
11776 if test "$with_gnu_ld" = yes; then
11777 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11778 else
11779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11780 case $host_os in
11781 sco3.2v5*)
11782 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11783 ;;
11784 esac
11785 fi
11786 sys_lib_dlsearch_path_spec='/usr/lib'
11787 ;;
11788
11789 tpf*)
11790 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11791 version_type=linux
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=no
11797 hardcode_into_libs=yes
11798 ;;
11799
11800 uts4*)
11801 version_type=linux
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 ;;
11806
11807 *)
11808 dynamic_linker=no
11809 ;;
11810 esac
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11812 $as_echo "$dynamic_linker" >&6; }
11813 test "$dynamic_linker" = no && can_build_shared=no
11814
11815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11816 if test "$GCC" = yes; then
11817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11818 fi
11819
11820 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11821 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11822 fi
11823 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11824 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11825 fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11919 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11920 hardcode_action=
11921 if test -n "$hardcode_libdir_flag_spec" ||
11922 test -n "$runpath_var" ||
11923 test "X$hardcode_automatic" = "Xyes" ; then
11924
11925 # We can hardcode non-existent directories.
11926 if test "$hardcode_direct" != no &&
11927 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11928 # have to relink, otherwise we might link with an installed library
11929 # when we should be linking with a yet-to-be-installed one
11930 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11931 test "$hardcode_minus_L" != no; then
11932 # Linking always hardcodes the temporary library directory.
11933 hardcode_action=relink
11934 else
11935 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11936 hardcode_action=immediate
11937 fi
11938 else
11939 # We cannot hardcode anything, or else we can only hardcode existing
11940 # directories.
11941 hardcode_action=unsupported
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11944 $as_echo "$hardcode_action" >&6; }
11945
11946 if test "$hardcode_action" = relink ||
11947 test "$inherit_rpath" = yes; then
11948 # Fast installation is not supported
11949 enable_fast_install=no
11950 elif test "$shlibpath_overrides_runpath" = yes ||
11951 test "$enable_shared" = no; then
11952 # Fast installation is not necessary
11953 enable_fast_install=needless
11954 fi
11955
11956
11957
11958
11959
11960
11961 if test "x$enable_dlopen" != xyes; then
11962 enable_dlopen=unknown
11963 enable_dlopen_self=unknown
11964 enable_dlopen_self_static=unknown
11965 else
11966 lt_cv_dlopen=no
11967 lt_cv_dlopen_libs=
11968
11969 case $host_os in
11970 beos*)
11971 lt_cv_dlopen="load_add_on"
11972 lt_cv_dlopen_libs=
11973 lt_cv_dlopen_self=yes
11974 ;;
11975
11976 mingw* | pw32* | cegcc*)
11977 lt_cv_dlopen="LoadLibrary"
11978 lt_cv_dlopen_libs=
11979 ;;
11980
11981 cygwin*)
11982 lt_cv_dlopen="dlopen"
11983 lt_cv_dlopen_libs=
11984 ;;
11985
11986 darwin*)
11987 # if libdl is installed we need to link against it
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11989 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11990 if ${ac_cv_lib_dl_dlopen+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-ldl $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char dlopen ();
12005 int
12006 main ()
12007 {
12008 return dlopen ();
12009 ;
12010 return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_lib_dl_dlopen=yes
12015 else
12016 ac_cv_lib_dl_dlopen=no
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12021 fi
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12023 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12024 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12026 else
12027
12028 lt_cv_dlopen="dyld"
12029 lt_cv_dlopen_libs=
12030 lt_cv_dlopen_self=yes
12031
12032 fi
12033
12034 ;;
12035
12036 *)
12037 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12038 if test "x$ac_cv_func_shl_load" = xyes; then :
12039 lt_cv_dlopen="shl_load"
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12042 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12043 if ${ac_cv_lib_dld_shl_load+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 ac_check_lib_save_LIBS=$LIBS
12047 LIBS="-ldld $LIBS"
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 char shl_load ();
12058 int
12059 main ()
12060 {
12061 return shl_load ();
12062 ;
12063 return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067 ac_cv_lib_dld_shl_load=yes
12068 else
12069 ac_cv_lib_dld_shl_load=no
12070 fi
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12076 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12077 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12078 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12079 else
12080 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12081 if test "x$ac_cv_func_dlopen" = xyes; then :
12082 lt_cv_dlopen="dlopen"
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12086 if ${ac_cv_lib_dl_dlopen+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 ac_check_lib_save_LIBS=$LIBS
12090 LIBS="-ldl $LIBS"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char dlopen ();
12101 int
12102 main ()
12103 {
12104 return dlopen ();
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 if ac_fn_c_try_link "$LINENO"; then :
12110 ac_cv_lib_dl_dlopen=yes
12111 else
12112 ac_cv_lib_dl_dlopen=no
12113 fi
12114 rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116 LIBS=$ac_check_lib_save_LIBS
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12120 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12124 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12125 if ${ac_cv_lib_svld_dlopen+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lsvld $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char dlopen ();
12140 int
12141 main ()
12142 {
12143 return dlopen ();
12144 ;
12145 return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_lib_svld_dlopen=yes
12150 else
12151 ac_cv_lib_svld_dlopen=no
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12158 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12159 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12163 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12164 if ${ac_cv_lib_dld_dld_link+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ldld $LIBS"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175 #ifdef __cplusplus
12176 extern "C"
12177 #endif
12178 char dld_link ();
12179 int
12180 main ()
12181 {
12182 return dld_link ();
12183 ;
12184 return 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_link "$LINENO"; then :
12188 ac_cv_lib_dld_dld_link=yes
12189 else
12190 ac_cv_lib_dld_dld_link=no
12191 fi
12192 rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12197 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12198 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12199 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12200 fi
12201
12202
12203 fi
12204
12205
12206 fi
12207
12208
12209 fi
12210
12211
12212 fi
12213
12214
12215 fi
12216
12217 ;;
12218 esac
12219
12220 if test "x$lt_cv_dlopen" != xno; then
12221 enable_dlopen=yes
12222 else
12223 enable_dlopen=no
12224 fi
12225
12226 case $lt_cv_dlopen in
12227 dlopen)
12228 save_CPPFLAGS="$CPPFLAGS"
12229 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12230
12231 save_LDFLAGS="$LDFLAGS"
12232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12233
12234 save_LIBS="$LIBS"
12235 LIBS="$lt_cv_dlopen_libs $LIBS"
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12238 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12239 if ${lt_cv_dlopen_self+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test "$cross_compiling" = yes; then :
12243 lt_cv_dlopen_self=cross
12244 else
12245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12246 lt_status=$lt_dlunknown
12247 cat > conftest.$ac_ext <<_LT_EOF
12248 #line 12248 "configure"
12249 #include "confdefs.h"
12250
12251 #if HAVE_DLFCN_H
12252 #include <dlfcn.h>
12253 #endif
12254
12255 #include <stdio.h>
12256
12257 #ifdef RTLD_GLOBAL
12258 # define LT_DLGLOBAL RTLD_GLOBAL
12259 #else
12260 # ifdef DL_GLOBAL
12261 # define LT_DLGLOBAL DL_GLOBAL
12262 # else
12263 # define LT_DLGLOBAL 0
12264 # endif
12265 #endif
12266
12267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12268 find out it does not work in some platform. */
12269 #ifndef LT_DLLAZY_OR_NOW
12270 # ifdef RTLD_LAZY
12271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12272 # else
12273 # ifdef DL_LAZY
12274 # define LT_DLLAZY_OR_NOW DL_LAZY
12275 # else
12276 # ifdef RTLD_NOW
12277 # define LT_DLLAZY_OR_NOW RTLD_NOW
12278 # else
12279 # ifdef DL_NOW
12280 # define LT_DLLAZY_OR_NOW DL_NOW
12281 # else
12282 # define LT_DLLAZY_OR_NOW 0
12283 # endif
12284 # endif
12285 # endif
12286 # endif
12287 #endif
12288
12289 /* When -fvisbility=hidden is used, assume the code has been annotated
12290 correspondingly for the symbols needed. */
12291 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12292 void fnord () __attribute__((visibility("default")));
12293 #endif
12294
12295 void fnord () { int i=42; }
12296 int main ()
12297 {
12298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12299 int status = $lt_dlunknown;
12300
12301 if (self)
12302 {
12303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12304 else
12305 {
12306 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12307 else puts (dlerror ());
12308 }
12309 /* dlclose (self); */
12310 }
12311 else
12312 puts (dlerror ());
12313
12314 return status;
12315 }
12316 _LT_EOF
12317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12318 (eval $ac_link) 2>&5
12319 ac_status=$?
12320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12321 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12322 (./conftest; exit; ) >&5 2>/dev/null
12323 lt_status=$?
12324 case x$lt_status in
12325 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12326 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12327 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12328 esac
12329 else :
12330 # compilation failed
12331 lt_cv_dlopen_self=no
12332 fi
12333 fi
12334 rm -fr conftest*
12335
12336
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12339 $as_echo "$lt_cv_dlopen_self" >&6; }
12340
12341 if test "x$lt_cv_dlopen_self" = xyes; then
12342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12344 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12345 if ${lt_cv_dlopen_self_static+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 if test "$cross_compiling" = yes; then :
12349 lt_cv_dlopen_self_static=cross
12350 else
12351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12352 lt_status=$lt_dlunknown
12353 cat > conftest.$ac_ext <<_LT_EOF
12354 #line 12354 "configure"
12355 #include "confdefs.h"
12356
12357 #if HAVE_DLFCN_H
12358 #include <dlfcn.h>
12359 #endif
12360
12361 #include <stdio.h>
12362
12363 #ifdef RTLD_GLOBAL
12364 # define LT_DLGLOBAL RTLD_GLOBAL
12365 #else
12366 # ifdef DL_GLOBAL
12367 # define LT_DLGLOBAL DL_GLOBAL
12368 # else
12369 # define LT_DLGLOBAL 0
12370 # endif
12371 #endif
12372
12373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12374 find out it does not work in some platform. */
12375 #ifndef LT_DLLAZY_OR_NOW
12376 # ifdef RTLD_LAZY
12377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12378 # else
12379 # ifdef DL_LAZY
12380 # define LT_DLLAZY_OR_NOW DL_LAZY
12381 # else
12382 # ifdef RTLD_NOW
12383 # define LT_DLLAZY_OR_NOW RTLD_NOW
12384 # else
12385 # ifdef DL_NOW
12386 # define LT_DLLAZY_OR_NOW DL_NOW
12387 # else
12388 # define LT_DLLAZY_OR_NOW 0
12389 # endif
12390 # endif
12391 # endif
12392 # endif
12393 #endif
12394
12395 /* When -fvisbility=hidden is used, assume the code has been annotated
12396 correspondingly for the symbols needed. */
12397 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12398 void fnord () __attribute__((visibility("default")));
12399 #endif
12400
12401 void fnord () { int i=42; }
12402 int main ()
12403 {
12404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12405 int status = $lt_dlunknown;
12406
12407 if (self)
12408 {
12409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12410 else
12411 {
12412 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12413 else puts (dlerror ());
12414 }
12415 /* dlclose (self); */
12416 }
12417 else
12418 puts (dlerror ());
12419
12420 return status;
12421 }
12422 _LT_EOF
12423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12424 (eval $ac_link) 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12428 (./conftest; exit; ) >&5 2>/dev/null
12429 lt_status=$?
12430 case x$lt_status in
12431 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12432 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12433 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12434 esac
12435 else :
12436 # compilation failed
12437 lt_cv_dlopen_self_static=no
12438 fi
12439 fi
12440 rm -fr conftest*
12441
12442
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12445 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12446 fi
12447
12448 CPPFLAGS="$save_CPPFLAGS"
12449 LDFLAGS="$save_LDFLAGS"
12450 LIBS="$save_LIBS"
12451 ;;
12452 esac
12453
12454 case $lt_cv_dlopen_self in
12455 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12456 *) enable_dlopen_self=unknown ;;
12457 esac
12458
12459 case $lt_cv_dlopen_self_static in
12460 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12461 *) enable_dlopen_self_static=unknown ;;
12462 esac
12463 fi
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481 striplib=
12482 old_striplib=
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12484 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12485 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12486 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12487 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12489 $as_echo "yes" >&6; }
12490 else
12491 # FIXME - insert some real tests, host_os isn't really good enough
12492 case $host_os in
12493 darwin*)
12494 if test -n "$STRIP" ; then
12495 striplib="$STRIP -x"
12496 old_striplib="$STRIP -S"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498 $as_echo "yes" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503 ;;
12504 *)
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 ;;
12508 esac
12509 fi
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522 # Report which library types will actually be built
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12524 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12526 $as_echo "$can_build_shared" >&6; }
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12529 $as_echo_n "checking whether to build shared libraries... " >&6; }
12530 test "$can_build_shared" = "no" && enable_shared=no
12531
12532 # On AIX, shared libraries and static libraries use the same namespace, and
12533 # are all built from PIC.
12534 case $host_os in
12535 aix3*)
12536 test "$enable_shared" = yes && enable_static=no
12537 if test -n "$RANLIB"; then
12538 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12539 postinstall_cmds='$RANLIB $lib'
12540 fi
12541 ;;
12542
12543 aix[4-9]*)
12544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12545 test "$enable_shared" = yes && enable_static=no
12546 fi
12547 ;;
12548 esac
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12550 $as_echo "$enable_shared" >&6; }
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12553 $as_echo_n "checking whether to build static libraries... " >&6; }
12554 # Make sure either enable_shared or enable_static is yes.
12555 test "$enable_shared" = yes || enable_static=yes
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12557 $as_echo "$enable_static" >&6; }
12558
12559
12560
12561
12562 fi
12563 ac_ext=c
12564 ac_cpp='$CPP $CPPFLAGS'
12565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569 CC="$lt_save_CC"
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583 ac_config_commands="$ac_config_commands libtool"
12584
12585
12586
12587
12588 # Only expand once:
12589
12590
12591
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12594 $as_echo_n "checking for bind in -lsocket... " >&6; }
12595 if ${ac_cv_lib_socket_bind+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 ac_check_lib_save_LIBS=$LIBS
12599 LIBS="-lsocket $LIBS"
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char bind ();
12610 int
12611 main ()
12612 {
12613 return bind ();
12614 ;
12615 return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_lib_socket_bind=yes
12620 else
12621 ac_cv_lib_socket_bind=no
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 LIBS=$ac_check_lib_save_LIBS
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12628 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12629 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAVE_LIBSOCKET 1
12632 _ACEOF
12633
12634 LIBS="-lsocket $LIBS"
12635
12636 fi
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12639 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12640 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lnsl $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 char gethostbyname ();
12655 int
12656 main ()
12657 {
12658 return gethostbyname ();
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_nsl_gethostbyname=yes
12665 else
12666 ac_cv_lib_nsl_gethostbyname=no
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LIBS=$ac_check_lib_save_LIBS
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12673 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12674 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_LIBNSL 1
12677 _ACEOF
12678
12679 LIBS="-lnsl $LIBS"
12680
12681 fi
12682
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12684 $as_echo_n "checking for fabs in -lm... " >&6; }
12685 if ${ac_cv_lib_m_fabs+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lm $LIBS"
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692
12693 /* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
12696 #ifdef __cplusplus
12697 extern "C"
12698 #endif
12699 char fabs ();
12700 int
12701 main ()
12702 {
12703 return fabs ();
12704 ;
12705 return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"; then :
12709 ac_cv_lib_m_fabs=yes
12710 else
12711 ac_cv_lib_m_fabs=no
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LIBS=$ac_check_lib_save_LIBS
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12718 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12719 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_LIBM 1
12722 _ACEOF
12723
12724 LIBS="-lm $LIBS"
12725
12726 fi
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12729 $as_echo_n "checking for log2 in -lm... " >&6; }
12730 if ${ac_cv_lib_m_log2+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 ac_check_lib_save_LIBS=$LIBS
12734 LIBS="-lm $LIBS"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char log2 ();
12745 int
12746 main ()
12747 {
12748 return log2 ();
12749 ;
12750 return 0;
12751 }
12752 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 ac_cv_lib_m_log2=yes
12755 else
12756 ac_cv_lib_m_log2=no
12757 fi
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12761 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12763 $as_echo "$ac_cv_lib_m_log2" >&6; }
12764 if test "x$ac_cv_lib_m_log2" = xyes; then :
12765 cat >>confdefs.h <<_ACEOF
12766 #define HAVE_LIBM 1
12767 _ACEOF
12768
12769 LIBS="-lm $LIBS"
12770
12771 fi
12772
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12775 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12776 if ${ac_cv_lib_dl_dlopen+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-ldl $LIBS"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char dlopen ();
12791 int
12792 main ()
12793 {
12794 return dlopen ();
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 ac_cv_lib_dl_dlopen=yes
12801 else
12802 ac_cv_lib_dl_dlopen=no
12803 fi
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12809 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12810 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_LIBDL 1
12813 _ACEOF
12814
12815 LIBS="-ldl $LIBS"
12816
12817 fi
12818
12819 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12820
12821 pkg_failed=no
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12823 $as_echo_n "checking for sdl2... " >&6; }
12824
12825 if test -n "$SDL_CFLAGS"; then
12826 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12827 elif test -n "$PKG_CONFIG"; then
12828 if test -n "$PKG_CONFIG" && \
12829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12830 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12831 ac_status=$?
12832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833 test $ac_status = 0; }; then
12834 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12835 test "x$?" != "x0" && pkg_failed=yes
12836 else
12837 pkg_failed=yes
12838 fi
12839 else
12840 pkg_failed=untried
12841 fi
12842 if test -n "$SDL_LIBS"; then
12843 pkg_cv_SDL_LIBS="$SDL_LIBS"
12844 elif test -n "$PKG_CONFIG"; then
12845 if test -n "$PKG_CONFIG" && \
12846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12847 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12848 ac_status=$?
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; }; then
12851 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12852 test "x$?" != "x0" && pkg_failed=yes
12853 else
12854 pkg_failed=yes
12855 fi
12856 else
12857 pkg_failed=untried
12858 fi
12859
12860 if test $pkg_failed = no; then
12861 pkg_save_LDFLAGS="$LDFLAGS"
12862 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12865
12866 int
12867 main ()
12868 {
12869
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875
12876 else
12877 pkg_failed=yes
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881 LDFLAGS=$pkg_save_LDFLAGS
12882 fi
12883
12884
12885
12886 if test $pkg_failed = yes; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889
12890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12891 _pkg_short_errors_supported=yes
12892 else
12893 _pkg_short_errors_supported=no
12894 fi
12895 if test $_pkg_short_errors_supported = yes; then
12896 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12897 else
12898 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12899 fi
12900 # Put the nasty error message in config.log where it belongs
12901 echo "$SDL_PKG_ERRORS" >&5
12902
12903
12904
12905 pkg_failed=no
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12907 $as_echo_n "checking for sdl... " >&6; }
12908
12909 if test -n "$SDL_CFLAGS"; then
12910 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12911 elif test -n "$PKG_CONFIG"; then
12912 if test -n "$PKG_CONFIG" && \
12913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12914 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12915 ac_status=$?
12916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12917 test $ac_status = 0; }; then
12918 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12919 test "x$?" != "x0" && pkg_failed=yes
12920 else
12921 pkg_failed=yes
12922 fi
12923 else
12924 pkg_failed=untried
12925 fi
12926 if test -n "$SDL_LIBS"; then
12927 pkg_cv_SDL_LIBS="$SDL_LIBS"
12928 elif test -n "$PKG_CONFIG"; then
12929 if test -n "$PKG_CONFIG" && \
12930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12931 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12932 ac_status=$?
12933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12934 test $ac_status = 0; }; then
12935 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12936 test "x$?" != "x0" && pkg_failed=yes
12937 else
12938 pkg_failed=yes
12939 fi
12940 else
12941 pkg_failed=untried
12942 fi
12943
12944 if test $pkg_failed = no; then
12945 pkg_save_LDFLAGS="$LDFLAGS"
12946 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949
12950 int
12951 main ()
12952 {
12953
12954 ;
12955 return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_link "$LINENO"; then :
12959
12960 else
12961 pkg_failed=yes
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 LDFLAGS=$pkg_save_LDFLAGS
12966 fi
12967
12968
12969
12970 if test $pkg_failed = yes; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973
12974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12975 _pkg_short_errors_supported=yes
12976 else
12977 _pkg_short_errors_supported=no
12978 fi
12979 if test $_pkg_short_errors_supported = yes; then
12980 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12981 else
12982 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12983 fi
12984 # Put the nasty error message in config.log where it belongs
12985 echo "$SDL_PKG_ERRORS" >&5
12986
12987 :
12988 elif test $pkg_failed = untried; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12991 :
12992 else
12993 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12994 SDL_LIBS=$pkg_cv_SDL_LIBS
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12996 $as_echo "yes" >&6; }
12997 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
12998 SDL_LIBS="-ldl"
12999
13000 fi
13001
13002 elif test $pkg_failed = untried; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005
13006
13007 pkg_failed=no
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13009 $as_echo_n "checking for sdl... " >&6; }
13010
13011 if test -n "$SDL_CFLAGS"; then
13012 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13013 elif test -n "$PKG_CONFIG"; then
13014 if test -n "$PKG_CONFIG" && \
13015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13016 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13017 ac_status=$?
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; then
13020 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13021 test "x$?" != "x0" && pkg_failed=yes
13022 else
13023 pkg_failed=yes
13024 fi
13025 else
13026 pkg_failed=untried
13027 fi
13028 if test -n "$SDL_LIBS"; then
13029 pkg_cv_SDL_LIBS="$SDL_LIBS"
13030 elif test -n "$PKG_CONFIG"; then
13031 if test -n "$PKG_CONFIG" && \
13032 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13033 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13034 ac_status=$?
13035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036 test $ac_status = 0; }; then
13037 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13038 test "x$?" != "x0" && pkg_failed=yes
13039 else
13040 pkg_failed=yes
13041 fi
13042 else
13043 pkg_failed=untried
13044 fi
13045
13046 if test $pkg_failed = no; then
13047 pkg_save_LDFLAGS="$LDFLAGS"
13048 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051
13052 int
13053 main ()
13054 {
13055
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_link "$LINENO"; then :
13061
13062 else
13063 pkg_failed=yes
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LDFLAGS=$pkg_save_LDFLAGS
13068 fi
13069
13070
13071
13072 if test $pkg_failed = yes; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075
13076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13077 _pkg_short_errors_supported=yes
13078 else
13079 _pkg_short_errors_supported=no
13080 fi
13081 if test $_pkg_short_errors_supported = yes; then
13082 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13083 else
13084 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13085 fi
13086 # Put the nasty error message in config.log where it belongs
13087 echo "$SDL_PKG_ERRORS" >&5
13088
13089 :
13090 elif test $pkg_failed = untried; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093 :
13094 else
13095 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13096 SDL_LIBS=$pkg_cv_SDL_LIBS
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13099 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13100 SDL_LIBS="-ldl"
13101
13102 fi
13103
13104 else
13105 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13106 SDL_LIBS=$pkg_cv_SDL_LIBS
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108 $as_echo "yes" >&6; }
13109 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13110 SDL_LIBS="-ldl"
13111
13112 fi
13113 else
13114 SDL_CFLAGS=
13115 SDL_LIBS=
13116 fi
13117
13118
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13121 $as_echo_n "checking for cygwin... " >&6; }
13122 if ${sim_cv_os_cygwin+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127
13128 #ifdef __CYGWIN__
13129 lose
13130 #endif
13131 _ACEOF
13132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133 $EGREP "lose" >/dev/null 2>&1; then :
13134 sim_cv_os_cygwin=yes
13135 else
13136 sim_cv_os_cygwin=no
13137 fi
13138 rm -f conftest*
13139
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13142 $as_echo "$sim_cv_os_cygwin" >&6; }
13143
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13145 $as_echo_n "checking for library containing tgetent... " >&6; }
13146 if ${ac_cv_search_tgetent+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 ac_func_search_save_LIBS=$LIBS
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char tgetent ();
13160 int
13161 main ()
13162 {
13163 return tgetent ();
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 for ac_lib in '' termcap tinfo curses ncurses; do
13169 if test -z "$ac_lib"; then
13170 ac_res="none required"
13171 else
13172 ac_res=-l$ac_lib
13173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13174 fi
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_search_tgetent=$ac_res
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext
13180 if ${ac_cv_search_tgetent+:} false; then :
13181 break
13182 fi
13183 done
13184 if ${ac_cv_search_tgetent+:} false; then :
13185
13186 else
13187 ac_cv_search_tgetent=no
13188 fi
13189 rm conftest.$ac_ext
13190 LIBS=$ac_func_search_save_LIBS
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13193 $as_echo "$ac_cv_search_tgetent" >&6; }
13194 ac_res=$ac_cv_search_tgetent
13195 if test "$ac_res" != no; then :
13196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13197 TERMCAP_LIB=$ac_cv_search_tgetent
13198 else
13199 TERMCAP_LIB=""
13200 fi
13201
13202 if test x$sim_cv_os_cygwin = xyes; then
13203 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13204 fi
13205
13206
13207 if test -r ../readline/Makefile; then
13208 READLINE_LIB=../../readline/readline/libreadline.a
13209 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13212 $as_echo_n "checking for readline in -lreadline... " >&6; }
13213 if ${ac_cv_lib_readline_readline+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 ac_check_lib_save_LIBS=$LIBS
13217 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 char readline ();
13228 int
13229 main ()
13230 {
13231 return readline ();
13232 ;
13233 return 0;
13234 }
13235 _ACEOF
13236 if ac_fn_c_try_link "$LINENO"; then :
13237 ac_cv_lib_readline_readline=yes
13238 else
13239 ac_cv_lib_readline_readline=no
13240 fi
13241 rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13246 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13247 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13248 READLINE_LIB=-lreadline
13249 else
13250 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13251 fi
13252
13253 READLINE_CFLAGS=
13254 fi
13255
13256
13257
13258
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13261 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13262 # Check whether --enable-maintainer-mode was given.
13263 if test "${enable_maintainer_mode+set}" = set; then :
13264 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13265 else
13266 USE_MAINTAINER_MODE=no
13267 fi
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13270 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13271 if test $USE_MAINTAINER_MODE = yes; then
13272 MAINTAINER_MODE_TRUE=
13273 MAINTAINER_MODE_FALSE='#'
13274 else
13275 MAINTAINER_MODE_TRUE='#'
13276 MAINTAINER_MODE_FALSE=
13277 fi
13278
13279 MAINT=$MAINTAINER_MODE_TRUE
13280
13281
13282 am__api_version='1.15'
13283
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13285 $as_echo_n "checking whether build environment is sane... " >&6; }
13286 # Reject unsafe characters in $srcdir or the absolute working directory
13287 # name. Accept space and tab only in the latter.
13288 am_lf='
13289 '
13290 case `pwd` in
13291 *[\\\"\#\$\&\'\`$am_lf]*)
13292 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13293 esac
13294 case $srcdir in
13295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13296 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13297 esac
13298
13299 # Do 'set' in a subshell so we don't clobber the current shell's
13300 # arguments. Must try -L first in case configure is actually a
13301 # symlink; some systems play weird games with the mod time of symlinks
13302 # (eg FreeBSD returns the mod time of the symlink's containing
13303 # directory).
13304 if (
13305 am_has_slept=no
13306 for am_try in 1 2; do
13307 echo "timestamp, slept: $am_has_slept" > conftest.file
13308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13309 if test "$*" = "X"; then
13310 # -L didn't work.
13311 set X `ls -t "$srcdir/configure" conftest.file`
13312 fi
13313 if test "$*" != "X $srcdir/configure conftest.file" \
13314 && test "$*" != "X conftest.file $srcdir/configure"; then
13315
13316 # If neither matched, then we have a broken ls. This can happen
13317 # if, for instance, CONFIG_SHELL is bash and it inherits a
13318 # broken ls alias from the environment. This has actually
13319 # happened. Such a system could not be considered "sane".
13320 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13321 alias in your environment" "$LINENO" 5
13322 fi
13323 if test "$2" = conftest.file || test $am_try -eq 2; then
13324 break
13325 fi
13326 # Just in case.
13327 sleep 1
13328 am_has_slept=yes
13329 done
13330 test "$2" = conftest.file
13331 )
13332 then
13333 # Ok.
13334 :
13335 else
13336 as_fn_error $? "newly created file is older than distributed files!
13337 Check your system clock" "$LINENO" 5
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341 # If we didn't sleep, we still need to ensure time stamps of config.status and
13342 # generated files are strictly newer.
13343 am_sleep_pid=
13344 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13345 ( sleep 1 ) &
13346 am_sleep_pid=$!
13347 fi
13348
13349 rm -f conftest.file
13350
13351 if test x"${MISSING+set}" != xset; then
13352 case $am_aux_dir in
13353 *\ * | *\ *)
13354 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13355 *)
13356 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13357 esac
13358 fi
13359 # Use eval to expand $SHELL
13360 if eval "$MISSING --is-lightweight"; then
13361 am_missing_run="$MISSING "
13362 else
13363 am_missing_run=
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13365 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13366 fi
13367
13368 if test x"${install_sh+set}" != xset; then
13369 case $am_aux_dir in
13370 *\ * | *\ *)
13371 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13372 *)
13373 install_sh="\${SHELL} $am_aux_dir/install-sh"
13374 esac
13375 fi
13376
13377 # Installed binaries are usually stripped using 'strip' when the user
13378 # run "make install-strip". However 'strip' might not be the right
13379 # tool to use in cross-compilation environments, therefore Automake
13380 # will honor the 'STRIP' environment variable to overrule this program.
13381 if test "$cross_compiling" != no; then
13382 if test -n "$ac_tool_prefix"; then
13383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13384 set dummy ${ac_tool_prefix}strip; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_prog_STRIP+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$STRIP"; then
13391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13403 fi
13404 done
13405 done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 STRIP=$ac_cv_prog_STRIP
13411 if test -n "$STRIP"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13413 $as_echo "$STRIP" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 if test -z "$ac_cv_prog_STRIP"; then
13422 ac_ct_STRIP=$STRIP
13423 # Extract the first word of "strip", so it can be a program name with args.
13424 set dummy strip; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 if test -n "$ac_ct_STRIP"; then
13431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13435 do
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_prog_ac_ct_STRIP="strip"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13443 fi
13444 done
13445 done
13446 IFS=$as_save_IFS
13447
13448 fi
13449 fi
13450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13451 if test -n "$ac_ct_STRIP"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13453 $as_echo "$ac_ct_STRIP" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458
13459 if test "x$ac_ct_STRIP" = x; then
13460 STRIP=":"
13461 else
13462 case $cross_compiling:$ac_tool_warned in
13463 yes:)
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13466 ac_tool_warned=yes ;;
13467 esac
13468 STRIP=$ac_ct_STRIP
13469 fi
13470 else
13471 STRIP="$ac_cv_prog_STRIP"
13472 fi
13473
13474 fi
13475 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13478 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13479 if test -z "$MKDIR_P"; then
13480 if ${ac_cv_path_mkdir+:} false; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13485 do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_prog in mkdir gmkdir; do
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13491 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13492 'mkdir (GNU coreutils) '* | \
13493 'mkdir (coreutils) '* | \
13494 'mkdir (fileutils) '4.1*)
13495 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13496 break 3;;
13497 esac
13498 done
13499 done
13500 done
13501 IFS=$as_save_IFS
13502
13503 fi
13504
13505 test -d ./--version && rmdir ./--version
13506 if test "${ac_cv_path_mkdir+set}" = set; then
13507 MKDIR_P="$ac_cv_path_mkdir -p"
13508 else
13509 # As a last resort, use the slow shell script. Don't cache a
13510 # value for MKDIR_P within a source directory, because that will
13511 # break other packages using the cache if that directory is
13512 # removed, or if the value is a relative name.
13513 MKDIR_P="$ac_install_sh -d"
13514 fi
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13517 $as_echo "$MKDIR_P" >&6; }
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13521 set x ${MAKE-make}
13522 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13523 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat >conftest.make <<\_ACEOF
13527 SHELL = /bin/sh
13528 all:
13529 @echo '@@@%%%=$(MAKE)=@@@%%%'
13530 _ACEOF
13531 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13533 *@@@%%%=?*=@@@%%%*)
13534 eval ac_cv_prog_make_${ac_make}_set=yes;;
13535 *)
13536 eval ac_cv_prog_make_${ac_make}_set=no;;
13537 esac
13538 rm -f conftest.make
13539 fi
13540 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13542 $as_echo "yes" >&6; }
13543 SET_MAKE=
13544 else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 $as_echo "no" >&6; }
13547 SET_MAKE="MAKE=${MAKE-make}"
13548 fi
13549
13550 rm -rf .tst 2>/dev/null
13551 mkdir .tst 2>/dev/null
13552 if test -d .tst; then
13553 am__leading_dot=.
13554 else
13555 am__leading_dot=_
13556 fi
13557 rmdir .tst 2>/dev/null
13558
13559 DEPDIR="${am__leading_dot}deps"
13560
13561 ac_config_commands="$ac_config_commands depfiles"
13562
13563
13564 am_make=${MAKE-make}
13565 cat > confinc << 'END'
13566 am__doit:
13567 @echo this is the am__doit target
13568 .PHONY: am__doit
13569 END
13570 # If we don't find an include directive, just comment out the code.
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13572 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13573 am__include="#"
13574 am__quote=
13575 _am_result=none
13576 # First try GNU make style include.
13577 echo "include confinc" > confmf
13578 # Ignore all kinds of additional output from 'make'.
13579 case `$am_make -s -f confmf 2> /dev/null` in #(
13580 *the\ am__doit\ target*)
13581 am__include=include
13582 am__quote=
13583 _am_result=GNU
13584 ;;
13585 esac
13586 # Now try BSD make style include.
13587 if test "$am__include" = "#"; then
13588 echo '.include "confinc"' > confmf
13589 case `$am_make -s -f confmf 2> /dev/null` in #(
13590 *the\ am__doit\ target*)
13591 am__include=.include
13592 am__quote="\""
13593 _am_result=BSD
13594 ;;
13595 esac
13596 fi
13597
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13600 $as_echo "$_am_result" >&6; }
13601 rm -f confinc confmf
13602
13603 # Check whether --enable-dependency-tracking was given.
13604 if test "${enable_dependency_tracking+set}" = set; then :
13605 enableval=$enable_dependency_tracking;
13606 fi
13607
13608 if test "x$enable_dependency_tracking" != xno; then
13609 am_depcomp="$ac_aux_dir/depcomp"
13610 AMDEPBACKSLASH='\'
13611 am__nodep='_no'
13612 fi
13613 if test "x$enable_dependency_tracking" != xno; then
13614 AMDEP_TRUE=
13615 AMDEP_FALSE='#'
13616 else
13617 AMDEP_TRUE='#'
13618 AMDEP_FALSE=
13619 fi
13620
13621
13622 # Check whether --enable-silent-rules was given.
13623 if test "${enable_silent_rules+set}" = set; then :
13624 enableval=$enable_silent_rules;
13625 fi
13626
13627 case $enable_silent_rules in # (((
13628 yes) AM_DEFAULT_VERBOSITY=0;;
13629 no) AM_DEFAULT_VERBOSITY=1;;
13630 *) AM_DEFAULT_VERBOSITY=1;;
13631 esac
13632 am_make=${MAKE-make}
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13634 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13635 if ${am_cv_make_support_nested_variables+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 if $as_echo 'TRUE=$(BAR$(V))
13639 BAR0=false
13640 BAR1=true
13641 V=1
13642 am__doit:
13643 @$(TRUE)
13644 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13645 am_cv_make_support_nested_variables=yes
13646 else
13647 am_cv_make_support_nested_variables=no
13648 fi
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13651 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13652 if test $am_cv_make_support_nested_variables = yes; then
13653 AM_V='$(V)'
13654 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13655 else
13656 AM_V=$AM_DEFAULT_VERBOSITY
13657 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13658 fi
13659 AM_BACKSLASH='\'
13660
13661 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13662 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13663 # is not polluted with repeated "-I."
13664 am__isrc=' -I$(srcdir)'
13665 # test to see if srcdir already configured
13666 if test -f $srcdir/config.status; then
13667 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13668 fi
13669 fi
13670
13671 # test whether we have cygpath
13672 if test -z "$CYGPATH_W"; then
13673 if (cygpath --version) >/dev/null 2>/dev/null; then
13674 CYGPATH_W='cygpath -w'
13675 else
13676 CYGPATH_W=echo
13677 fi
13678 fi
13679
13680
13681 # Define the identity of the package.
13682 PACKAGE='sim'
13683 VERSION='0'
13684
13685
13686 cat >>confdefs.h <<_ACEOF
13687 #define PACKAGE "$PACKAGE"
13688 _ACEOF
13689
13690
13691 cat >>confdefs.h <<_ACEOF
13692 #define VERSION "$VERSION"
13693 _ACEOF
13694
13695 # Some tools Automake needs.
13696
13697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13698
13699
13700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13701
13702
13703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13704
13705
13706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13707
13708
13709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13710
13711 # For better backward compatibility. To be removed once Automake 1.9.x
13712 # dies out for good. For more background, see:
13713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13714 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13715 mkdir_p='$(MKDIR_P)'
13716
13717 # We need awk for the "check" target (and possibly the TAP driver). The
13718 # system "awk" is bad on some platforms.
13719 # Always define AMTAR for backward compatibility. Yes, it's still used
13720 # in the wild :-( We should find a proper way to deprecate it ...
13721 AMTAR='$${TAR-tar}'
13722
13723
13724 # We'll loop over all known methods to create a tar archive until one works.
13725 _am_tools='gnutar pax cpio none'
13726
13727 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13728
13729
13730
13731
13732
13733 depcc="$CC" am_compiler_list=
13734
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13736 $as_echo_n "checking dependency style of $depcc... " >&6; }
13737 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13741 # We make a subdir and do the tests there. Otherwise we can end up
13742 # making bogus files that we don't know about and never remove. For
13743 # instance it was reported that on HP-UX the gcc test will end up
13744 # making a dummy file named 'D' -- because '-MD' means "put the output
13745 # in D".
13746 rm -rf conftest.dir
13747 mkdir conftest.dir
13748 # Copy depcomp to subdir because otherwise we won't find it if we're
13749 # using a relative directory.
13750 cp "$am_depcomp" conftest.dir
13751 cd conftest.dir
13752 # We will build objects and dependencies in a subdirectory because
13753 # it helps to detect inapplicable dependency modes. For instance
13754 # both Tru64's cc and ICC support -MD to output dependencies as a
13755 # side effect of compilation, but ICC will put the dependencies in
13756 # the current directory while Tru64 will put them in the object
13757 # directory.
13758 mkdir sub
13759
13760 am_cv_CC_dependencies_compiler_type=none
13761 if test "$am_compiler_list" = ""; then
13762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13763 fi
13764 am__universal=false
13765 case " $depcc " in #(
13766 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13767 esac
13768
13769 for depmode in $am_compiler_list; do
13770 # Setup a source with many dependencies, because some compilers
13771 # like to wrap large dependency lists on column 80 (with \), and
13772 # we should not choose a depcomp mode which is confused by this.
13773 #
13774 # We need to recreate these files for each test, as the compiler may
13775 # overwrite some of them when testing with obscure command lines.
13776 # This happens at least with the AIX C compiler.
13777 : > sub/conftest.c
13778 for i in 1 2 3 4 5 6; do
13779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13781 # Solaris 10 /bin/sh.
13782 echo '/* dummy */' > sub/conftst$i.h
13783 done
13784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13785
13786 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13787 # mode. It turns out that the SunPro C++ compiler does not properly
13788 # handle '-M -o', and we need to detect this. Also, some Intel
13789 # versions had trouble with output in subdirs.
13790 am__obj=sub/conftest.${OBJEXT-o}
13791 am__minus_obj="-o $am__obj"
13792 case $depmode in
13793 gcc)
13794 # This depmode causes a compiler race in universal mode.
13795 test "$am__universal" = false || continue
13796 ;;
13797 nosideeffect)
13798 # After this tag, mechanisms are not by side-effect, so they'll
13799 # only be used when explicitly requested.
13800 if test "x$enable_dependency_tracking" = xyes; then
13801 continue
13802 else
13803 break
13804 fi
13805 ;;
13806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13807 # This compiler won't grok '-c -o', but also, the minuso test has
13808 # not run yet. These depmodes are late enough in the game, and
13809 # so weak that their functioning should not be impacted.
13810 am__obj=conftest.${OBJEXT-o}
13811 am__minus_obj=
13812 ;;
13813 none) break ;;
13814 esac
13815 if depmode=$depmode \
13816 source=sub/conftest.c object=$am__obj \
13817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13819 >/dev/null 2>conftest.err &&
13820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13824 # icc doesn't choke on unknown options, it will just issue warnings
13825 # or remarks (even with -Werror). So we grep stderr for any message
13826 # that says an option was ignored or not supported.
13827 # When given -MP, icc 7.0 and 7.1 complain thusly:
13828 # icc: Command line warning: ignoring option '-M'; no argument required
13829 # The diagnosis changed in icc 8.0:
13830 # icc: Command line remark: option '-MP' not supported
13831 if (grep 'ignoring option' conftest.err ||
13832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13833 am_cv_CC_dependencies_compiler_type=$depmode
13834 break
13835 fi
13836 fi
13837 done
13838
13839 cd ..
13840 rm -rf conftest.dir
13841 else
13842 am_cv_CC_dependencies_compiler_type=none
13843 fi
13844
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13847 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13848 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13849
13850 if
13851 test "x$enable_dependency_tracking" != xno \
13852 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13853 am__fastdepCC_TRUE=
13854 am__fastdepCC_FALSE='#'
13855 else
13856 am__fastdepCC_TRUE='#'
13857 am__fastdepCC_FALSE=
13858 fi
13859
13860
13861
13862 # POSIX will say in a future version that running "rm -f" with no argument
13863 # is OK; and we want to be able to make that assumption in our Makefile
13864 # recipes. So use an aggressive probe to check that the usage we want is
13865 # actually supported "in the wild" to an acceptable degree.
13866 # See automake bug#10828.
13867 # To make any issue more visible, cause the running configure to be aborted
13868 # by default if the 'rm' program in use doesn't match our expectations; the
13869 # user can still override this though.
13870 if rm -f && rm -fr && rm -rf; then : OK; else
13871 cat >&2 <<'END'
13872 Oops!
13873
13874 Your 'rm' program seems unable to run without file operands specified
13875 on the command line, even when the '-f' option is present. This is contrary
13876 to the behaviour of most rm programs out there, and not conforming with
13877 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13878
13879 Please tell bug-automake@gnu.org about your system, including the value
13880 of your $PATH and any error possibly output before this message. This
13881 can help us improve future automake versions.
13882
13883 END
13884 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13885 echo 'Configuration will proceed anyway, since you have set the' >&2
13886 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13887 echo >&2
13888 else
13889 cat >&2 <<'END'
13890 Aborting the configuration process, to ensure you take notice of the issue.
13891
13892 You can download and install GNU coreutils to get an 'rm' implementation
13893 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13894
13895 If you want to complete the configuration process using your problematic
13896 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13897 to "yes", and re-run configure.
13898
13899 END
13900 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13901 fi
13902 fi
13903
13904 # Check whether --enable-silent-rules was given.
13905 if test "${enable_silent_rules+set}" = set; then :
13906 enableval=$enable_silent_rules;
13907 fi
13908
13909 case $enable_silent_rules in # (((
13910 yes) AM_DEFAULT_VERBOSITY=0;;
13911 no) AM_DEFAULT_VERBOSITY=1;;
13912 *) AM_DEFAULT_VERBOSITY=0;;
13913 esac
13914 am_make=${MAKE-make}
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13916 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13917 if ${am_cv_make_support_nested_variables+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 if $as_echo 'TRUE=$(BAR$(V))
13921 BAR0=false
13922 BAR1=true
13923 V=1
13924 am__doit:
13925 @$(TRUE)
13926 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13927 am_cv_make_support_nested_variables=yes
13928 else
13929 am_cv_make_support_nested_variables=no
13930 fi
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13933 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13934 if test $am_cv_make_support_nested_variables = yes; then
13935 AM_V='$(V)'
13936 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13937 else
13938 AM_V=$AM_DEFAULT_VERBOSITY
13939 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13940 fi
13941 AM_BACKSLASH='\'
13942
13943
13944 # If a cpu ever has more than one simulator to choose from, use
13945 # --enable-sim=... to choose.
13946 # Check whether --enable-sim was given.
13947 if test "${enable_sim+set}" = set; then :
13948 enableval=$enable_sim; case "${enableval}" in
13949 yes | no) ;;
13950 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13951 esac
13952 fi
13953
13954
13955 # Check whether --enable-example-sims was given.
13956 if test "${enable_example_sims+set}" = set; then :
13957 enableval=$enable_example_sims;
13958 fi
13959
13960
13961 # Check whether --enable-targets was given.
13962 if test "${enable_targets+set}" = set; then :
13963 enableval=$enable_targets; case "${enableval}" in
13964 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13965 ;;
13966 no) enable_targets= ;;
13967 *) enable_targets=$enableval ;;
13968 esac
13969 fi
13970
13971
13972 SIM_PRIMARY_TARGET=
13973
13974
13975 SIM_SUBDIRS=
13976
13977
13978 SIM_COMMON_BUILD_TRUE=
13979 SIM_COMMON_BUILD_FALSE='#'
13980
13981
13982
13983 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13984
13985
13986
13987
13988 if test "${enable_sim}" != no; then
13989 sim_igen=no
13990 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13991 do
13992 sim_enable_arch_aarch64=false
13993 case "${targ}" in
13994 all|aarch64*-*-*)
13995 if test "${targ}" = "${target}"; then
13996 SIM_PRIMARY_TARGET=aarch64
13997 fi
13998 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
13999
14000 ac_config_commands="$ac_config_commands aarch64/Makefile"
14001
14002 as_fn_append SIM_SUBDIRS " aarch64"
14003
14004 ac_config_commands="$ac_config_commands depdir-aarch64"
14005
14006
14007 sim_enable_arch_aarch64=true
14008
14009 ;;
14010 esac
14011 if ${sim_enable_arch_aarch64}; then
14012 SIM_ENABLE_ARCH_aarch64_TRUE=
14013 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14014 else
14015 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14016 SIM_ENABLE_ARCH_aarch64_FALSE=
14017 fi
14018
14019
14020 sim_enable_arch_arm=false
14021 case "${targ}" in
14022 all|arm*-*-*)
14023 if test "${targ}" = "${target}"; then
14024 SIM_PRIMARY_TARGET=arm
14025 fi
14026 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14027
14028 ac_config_commands="$ac_config_commands arm/Makefile"
14029
14030 as_fn_append SIM_SUBDIRS " arm"
14031
14032 ac_config_commands="$ac_config_commands depdir-arm"
14033
14034
14035 sim_enable_arch_arm=true
14036
14037 ;;
14038 esac
14039 if ${sim_enable_arch_arm}; then
14040 SIM_ENABLE_ARCH_arm_TRUE=
14041 SIM_ENABLE_ARCH_arm_FALSE='#'
14042 else
14043 SIM_ENABLE_ARCH_arm_TRUE='#'
14044 SIM_ENABLE_ARCH_arm_FALSE=
14045 fi
14046
14047
14048 sim_enable_arch_avr=false
14049 case "${targ}" in
14050 all|avr*-*-*)
14051 if test "${targ}" = "${target}"; then
14052 SIM_PRIMARY_TARGET=avr
14053 fi
14054 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14055
14056 ac_config_commands="$ac_config_commands avr/Makefile"
14057
14058 as_fn_append SIM_SUBDIRS " avr"
14059
14060 ac_config_commands="$ac_config_commands depdir-avr"
14061
14062
14063 sim_enable_arch_avr=true
14064
14065 ;;
14066 esac
14067 if ${sim_enable_arch_avr}; then
14068 SIM_ENABLE_ARCH_avr_TRUE=
14069 SIM_ENABLE_ARCH_avr_FALSE='#'
14070 else
14071 SIM_ENABLE_ARCH_avr_TRUE='#'
14072 SIM_ENABLE_ARCH_avr_FALSE=
14073 fi
14074
14075
14076 sim_enable_arch_bfin=false
14077 case "${targ}" in
14078 all|bfin-*-*)
14079 if test "${targ}" = "${target}"; then
14080 SIM_PRIMARY_TARGET=bfin
14081 fi
14082 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14083
14084 ac_config_commands="$ac_config_commands bfin/Makefile"
14085
14086 as_fn_append SIM_SUBDIRS " bfin"
14087
14088 ac_config_commands="$ac_config_commands depdir-bfin"
14089
14090
14091 sim_enable_arch_bfin=true
14092
14093 ;;
14094 esac
14095 if ${sim_enable_arch_bfin}; then
14096 SIM_ENABLE_ARCH_bfin_TRUE=
14097 SIM_ENABLE_ARCH_bfin_FALSE='#'
14098 else
14099 SIM_ENABLE_ARCH_bfin_TRUE='#'
14100 SIM_ENABLE_ARCH_bfin_FALSE=
14101 fi
14102
14103
14104 sim_enable_arch_bpf=false
14105 case "${targ}" in
14106 all|bpf-*-*)
14107 if test "${targ}" = "${target}"; then
14108 SIM_PRIMARY_TARGET=bpf
14109 fi
14110
14111
14112 subdirs="$subdirs bpf"
14113
14114
14115 ac_config_commands="$ac_config_commands depdir-bpf"
14116
14117
14118 sim_enable_arch_bpf=true
14119
14120 ;;
14121 esac
14122 if ${sim_enable_arch_bpf}; then
14123 SIM_ENABLE_ARCH_bpf_TRUE=
14124 SIM_ENABLE_ARCH_bpf_FALSE='#'
14125 else
14126 SIM_ENABLE_ARCH_bpf_TRUE='#'
14127 SIM_ENABLE_ARCH_bpf_FALSE=
14128 fi
14129
14130
14131 sim_enable_arch_cr16=false
14132 case "${targ}" in
14133 all|cr16*-*-*)
14134 if test "${targ}" = "${target}"; then
14135 SIM_PRIMARY_TARGET=cr16
14136 fi
14137 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14138
14139 ac_config_commands="$ac_config_commands cr16/Makefile"
14140
14141 as_fn_append SIM_SUBDIRS " cr16"
14142
14143 ac_config_commands="$ac_config_commands depdir-cr16"
14144
14145
14146 sim_enable_arch_cr16=true
14147
14148 ;;
14149 esac
14150 if ${sim_enable_arch_cr16}; then
14151 SIM_ENABLE_ARCH_cr16_TRUE=
14152 SIM_ENABLE_ARCH_cr16_FALSE='#'
14153 else
14154 SIM_ENABLE_ARCH_cr16_TRUE='#'
14155 SIM_ENABLE_ARCH_cr16_FALSE=
14156 fi
14157
14158
14159 sim_enable_arch_cris=false
14160 case "${targ}" in
14161 all|cris-*-* | crisv32-*-*)
14162 if test "${targ}" = "${target}"; then
14163 SIM_PRIMARY_TARGET=cris
14164 fi
14165 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14166
14167 ac_config_commands="$ac_config_commands cris/Makefile"
14168
14169 as_fn_append SIM_SUBDIRS " cris"
14170
14171 ac_config_commands="$ac_config_commands depdir-cris"
14172
14173
14174 sim_enable_arch_cris=true
14175
14176 ;;
14177 esac
14178 if ${sim_enable_arch_cris}; then
14179 SIM_ENABLE_ARCH_cris_TRUE=
14180 SIM_ENABLE_ARCH_cris_FALSE='#'
14181 else
14182 SIM_ENABLE_ARCH_cris_TRUE='#'
14183 SIM_ENABLE_ARCH_cris_FALSE=
14184 fi
14185
14186
14187 sim_enable_arch_d10v=false
14188 case "${targ}" in
14189 all|d10v-*-*)
14190 if test "${targ}" = "${target}"; then
14191 SIM_PRIMARY_TARGET=d10v
14192 fi
14193 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14194
14195 ac_config_commands="$ac_config_commands d10v/Makefile"
14196
14197 as_fn_append SIM_SUBDIRS " d10v"
14198
14199 ac_config_commands="$ac_config_commands depdir-d10v"
14200
14201
14202 sim_enable_arch_d10v=true
14203
14204 ;;
14205 esac
14206 if ${sim_enable_arch_d10v}; then
14207 SIM_ENABLE_ARCH_d10v_TRUE=
14208 SIM_ENABLE_ARCH_d10v_FALSE='#'
14209 else
14210 SIM_ENABLE_ARCH_d10v_TRUE='#'
14211 SIM_ENABLE_ARCH_d10v_FALSE=
14212 fi
14213
14214
14215 sim_enable_arch_frv=false
14216 case "${targ}" in
14217 all|frv-*-*)
14218 if test "${targ}" = "${target}"; then
14219 SIM_PRIMARY_TARGET=frv
14220 fi
14221 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14222
14223 ac_config_commands="$ac_config_commands frv/Makefile"
14224
14225 as_fn_append SIM_SUBDIRS " frv"
14226
14227 ac_config_commands="$ac_config_commands depdir-frv"
14228
14229
14230 sim_enable_arch_frv=true
14231
14232 ;;
14233 esac
14234 if ${sim_enable_arch_frv}; then
14235 SIM_ENABLE_ARCH_frv_TRUE=
14236 SIM_ENABLE_ARCH_frv_FALSE='#'
14237 else
14238 SIM_ENABLE_ARCH_frv_TRUE='#'
14239 SIM_ENABLE_ARCH_frv_FALSE=
14240 fi
14241
14242
14243 sim_enable_arch_ft32=false
14244 case "${targ}" in
14245 all|ft32-*-*)
14246 if test "${targ}" = "${target}"; then
14247 SIM_PRIMARY_TARGET=ft32
14248 fi
14249 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14250
14251 ac_config_commands="$ac_config_commands ft32/Makefile"
14252
14253 as_fn_append SIM_SUBDIRS " ft32"
14254
14255 ac_config_commands="$ac_config_commands depdir-ft32"
14256
14257
14258 sim_enable_arch_ft32=true
14259
14260 ;;
14261 esac
14262 if ${sim_enable_arch_ft32}; then
14263 SIM_ENABLE_ARCH_ft32_TRUE=
14264 SIM_ENABLE_ARCH_ft32_FALSE='#'
14265 else
14266 SIM_ENABLE_ARCH_ft32_TRUE='#'
14267 SIM_ENABLE_ARCH_ft32_FALSE=
14268 fi
14269
14270
14271 sim_enable_arch_h8300=false
14272 case "${targ}" in
14273 all|h8300*-*-*)
14274 if test "${targ}" = "${target}"; then
14275 SIM_PRIMARY_TARGET=h8300
14276 fi
14277 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14278
14279 ac_config_commands="$ac_config_commands h8300/Makefile"
14280
14281 as_fn_append SIM_SUBDIRS " h8300"
14282
14283 ac_config_commands="$ac_config_commands depdir-h8300"
14284
14285
14286 sim_enable_arch_h8300=true
14287
14288 ;;
14289 esac
14290 if ${sim_enable_arch_h8300}; then
14291 SIM_ENABLE_ARCH_h8300_TRUE=
14292 SIM_ENABLE_ARCH_h8300_FALSE='#'
14293 else
14294 SIM_ENABLE_ARCH_h8300_TRUE='#'
14295 SIM_ENABLE_ARCH_h8300_FALSE=
14296 fi
14297
14298
14299 sim_enable_arch_iq2000=false
14300 case "${targ}" in
14301 all|iq2000-*-*)
14302 if test "${targ}" = "${target}"; then
14303 SIM_PRIMARY_TARGET=iq2000
14304 fi
14305 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14306
14307 ac_config_commands="$ac_config_commands iq2000/Makefile"
14308
14309 as_fn_append SIM_SUBDIRS " iq2000"
14310
14311 ac_config_commands="$ac_config_commands depdir-iq2000"
14312
14313
14314 sim_enable_arch_iq2000=true
14315
14316 ;;
14317 esac
14318 if ${sim_enable_arch_iq2000}; then
14319 SIM_ENABLE_ARCH_iq2000_TRUE=
14320 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14321 else
14322 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14323 SIM_ENABLE_ARCH_iq2000_FALSE=
14324 fi
14325
14326
14327 sim_enable_arch_lm32=false
14328 case "${targ}" in
14329 all|lm32-*-*)
14330 if test "${targ}" = "${target}"; then
14331 SIM_PRIMARY_TARGET=lm32
14332 fi
14333 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14334
14335 ac_config_commands="$ac_config_commands lm32/Makefile"
14336
14337 as_fn_append SIM_SUBDIRS " lm32"
14338
14339 ac_config_commands="$ac_config_commands depdir-lm32"
14340
14341
14342 sim_enable_arch_lm32=true
14343
14344 ;;
14345 esac
14346 if ${sim_enable_arch_lm32}; then
14347 SIM_ENABLE_ARCH_lm32_TRUE=
14348 SIM_ENABLE_ARCH_lm32_FALSE='#'
14349 else
14350 SIM_ENABLE_ARCH_lm32_TRUE='#'
14351 SIM_ENABLE_ARCH_lm32_FALSE=
14352 fi
14353
14354
14355 sim_enable_arch_m32c=false
14356 case "${targ}" in
14357 all|m32c-*-*)
14358 if test "${targ}" = "${target}"; then
14359 SIM_PRIMARY_TARGET=m32c
14360 fi
14361 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14362
14363 ac_config_commands="$ac_config_commands m32c/Makefile"
14364
14365 as_fn_append SIM_SUBDIRS " m32c"
14366
14367 ac_config_commands="$ac_config_commands depdir-m32c"
14368
14369
14370 sim_enable_arch_m32c=true
14371
14372 ;;
14373 esac
14374 if ${sim_enable_arch_m32c}; then
14375 SIM_ENABLE_ARCH_m32c_TRUE=
14376 SIM_ENABLE_ARCH_m32c_FALSE='#'
14377 else
14378 SIM_ENABLE_ARCH_m32c_TRUE='#'
14379 SIM_ENABLE_ARCH_m32c_FALSE=
14380 fi
14381
14382
14383 sim_enable_arch_m32r=false
14384 case "${targ}" in
14385 all|m32r-*-*)
14386 if test "${targ}" = "${target}"; then
14387 SIM_PRIMARY_TARGET=m32r
14388 fi
14389 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14390
14391 ac_config_commands="$ac_config_commands m32r/Makefile"
14392
14393 as_fn_append SIM_SUBDIRS " m32r"
14394
14395 ac_config_commands="$ac_config_commands depdir-m32r"
14396
14397
14398 sim_enable_arch_m32r=true
14399
14400 ;;
14401 esac
14402 if ${sim_enable_arch_m32r}; then
14403 SIM_ENABLE_ARCH_m32r_TRUE=
14404 SIM_ENABLE_ARCH_m32r_FALSE='#'
14405 else
14406 SIM_ENABLE_ARCH_m32r_TRUE='#'
14407 SIM_ENABLE_ARCH_m32r_FALSE=
14408 fi
14409
14410
14411 sim_enable_arch_m68hc11=false
14412 case "${targ}" in
14413 all|m68hc11-*-*|m6811-*-*)
14414 if test "${targ}" = "${target}"; then
14415 SIM_PRIMARY_TARGET=m68hc11
14416 fi
14417 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
14418
14419 ac_config_commands="$ac_config_commands m68hc11/Makefile"
14420
14421 as_fn_append SIM_SUBDIRS " m68hc11"
14422
14423 ac_config_commands="$ac_config_commands depdir-m68hc11"
14424
14425
14426 sim_enable_arch_m68hc11=true
14427
14428 ;;
14429 esac
14430 if ${sim_enable_arch_m68hc11}; then
14431 SIM_ENABLE_ARCH_m68hc11_TRUE=
14432 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
14433 else
14434 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
14435 SIM_ENABLE_ARCH_m68hc11_FALSE=
14436 fi
14437
14438
14439 sim_enable_arch_mcore=false
14440 case "${targ}" in
14441 all|mcore-*-*)
14442 if test "${targ}" = "${target}"; then
14443 SIM_PRIMARY_TARGET=mcore
14444 fi
14445 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
14446
14447 ac_config_commands="$ac_config_commands mcore/Makefile"
14448
14449 as_fn_append SIM_SUBDIRS " mcore"
14450
14451 ac_config_commands="$ac_config_commands depdir-mcore"
14452
14453
14454 sim_enable_arch_mcore=true
14455
14456 ;;
14457 esac
14458 if ${sim_enable_arch_mcore}; then
14459 SIM_ENABLE_ARCH_mcore_TRUE=
14460 SIM_ENABLE_ARCH_mcore_FALSE='#'
14461 else
14462 SIM_ENABLE_ARCH_mcore_TRUE='#'
14463 SIM_ENABLE_ARCH_mcore_FALSE=
14464 fi
14465
14466
14467 sim_enable_arch_microblaze=false
14468 case "${targ}" in
14469 all|microblaze*-*-*)
14470 if test "${targ}" = "${target}"; then
14471 SIM_PRIMARY_TARGET=microblaze
14472 fi
14473 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
14474
14475 ac_config_commands="$ac_config_commands microblaze/Makefile"
14476
14477 as_fn_append SIM_SUBDIRS " microblaze"
14478
14479 ac_config_commands="$ac_config_commands depdir-microblaze"
14480
14481
14482 sim_enable_arch_microblaze=true
14483
14484 ;;
14485 esac
14486 if ${sim_enable_arch_microblaze}; then
14487 SIM_ENABLE_ARCH_microblaze_TRUE=
14488 SIM_ENABLE_ARCH_microblaze_FALSE='#'
14489 else
14490 SIM_ENABLE_ARCH_microblaze_TRUE='#'
14491 SIM_ENABLE_ARCH_microblaze_FALSE=
14492 fi
14493
14494
14495 sim_enable_arch_mips=false
14496 case "${targ}" in
14497 all|mips*-*-*)
14498 if test "${targ}" = "${target}"; then
14499 SIM_PRIMARY_TARGET=mips
14500 fi
14501 subdirs="$subdirs mips"
14502
14503
14504 ac_config_commands="$ac_config_commands depdir-mips"
14505
14506
14507 sim_enable_arch_mips=true
14508 sim_igen=yes
14509 ;;
14510 esac
14511 if ${sim_enable_arch_mips}; then
14512 SIM_ENABLE_ARCH_mips_TRUE=
14513 SIM_ENABLE_ARCH_mips_FALSE='#'
14514 else
14515 SIM_ENABLE_ARCH_mips_TRUE='#'
14516 SIM_ENABLE_ARCH_mips_FALSE=
14517 fi
14518
14519
14520 sim_enable_arch_mn10300=false
14521 case "${targ}" in
14522 all|mn10300*-*-*)
14523 if test "${targ}" = "${target}"; then
14524 SIM_PRIMARY_TARGET=mn10300
14525 fi
14526 subdirs="$subdirs mn10300"
14527
14528
14529 ac_config_commands="$ac_config_commands depdir-mn10300"
14530
14531
14532 sim_enable_arch_mn10300=true
14533 sim_igen=yes
14534 ;;
14535 esac
14536 if ${sim_enable_arch_mn10300}; then
14537 SIM_ENABLE_ARCH_mn10300_TRUE=
14538 SIM_ENABLE_ARCH_mn10300_FALSE='#'
14539 else
14540 SIM_ENABLE_ARCH_mn10300_TRUE='#'
14541 SIM_ENABLE_ARCH_mn10300_FALSE=
14542 fi
14543
14544
14545 sim_enable_arch_moxie=false
14546 case "${targ}" in
14547 all|moxie-*-*)
14548 if test "${targ}" = "${target}"; then
14549 SIM_PRIMARY_TARGET=moxie
14550 fi
14551 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
14552
14553 ac_config_commands="$ac_config_commands moxie/Makefile"
14554
14555 as_fn_append SIM_SUBDIRS " moxie"
14556
14557 ac_config_commands="$ac_config_commands depdir-moxie"
14558
14559
14560 sim_enable_arch_moxie=true
14561
14562 ;;
14563 esac
14564 if ${sim_enable_arch_moxie}; then
14565 SIM_ENABLE_ARCH_moxie_TRUE=
14566 SIM_ENABLE_ARCH_moxie_FALSE='#'
14567 else
14568 SIM_ENABLE_ARCH_moxie_TRUE='#'
14569 SIM_ENABLE_ARCH_moxie_FALSE=
14570 fi
14571
14572
14573 sim_enable_arch_msp430=false
14574 case "${targ}" in
14575 all|msp430*-*-*)
14576 if test "${targ}" = "${target}"; then
14577 SIM_PRIMARY_TARGET=msp430
14578 fi
14579 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
14580
14581 ac_config_commands="$ac_config_commands msp430/Makefile"
14582
14583 as_fn_append SIM_SUBDIRS " msp430"
14584
14585 ac_config_commands="$ac_config_commands depdir-msp430"
14586
14587
14588 sim_enable_arch_msp430=true
14589
14590 ;;
14591 esac
14592 if ${sim_enable_arch_msp430}; then
14593 SIM_ENABLE_ARCH_msp430_TRUE=
14594 SIM_ENABLE_ARCH_msp430_FALSE='#'
14595 else
14596 SIM_ENABLE_ARCH_msp430_TRUE='#'
14597 SIM_ENABLE_ARCH_msp430_FALSE=
14598 fi
14599
14600
14601 sim_enable_arch_or1k=false
14602 case "${targ}" in
14603 all|or1k*-*-*)
14604 if test "${targ}" = "${target}"; then
14605 SIM_PRIMARY_TARGET=or1k
14606 fi
14607 subdirs="$subdirs or1k"
14608
14609
14610 ac_config_commands="$ac_config_commands depdir-or1k"
14611
14612
14613 sim_enable_arch_or1k=true
14614
14615 ;;
14616 esac
14617 if ${sim_enable_arch_or1k}; then
14618 SIM_ENABLE_ARCH_or1k_TRUE=
14619 SIM_ENABLE_ARCH_or1k_FALSE='#'
14620 else
14621 SIM_ENABLE_ARCH_or1k_TRUE='#'
14622 SIM_ENABLE_ARCH_or1k_FALSE=
14623 fi
14624
14625
14626 sim_enable_arch_ppc=false
14627 case "${targ}" in
14628 all|powerpc*-*-*)
14629 if test "${targ}" = "${target}"; then
14630 SIM_PRIMARY_TARGET=ppc
14631 fi
14632 subdirs="$subdirs ppc"
14633
14634
14635 ac_config_commands="$ac_config_commands depdir-ppc"
14636
14637
14638 sim_enable_arch_ppc=true
14639
14640 ;;
14641 esac
14642 if ${sim_enable_arch_ppc}; then
14643 SIM_ENABLE_ARCH_ppc_TRUE=
14644 SIM_ENABLE_ARCH_ppc_FALSE='#'
14645 else
14646 SIM_ENABLE_ARCH_ppc_TRUE='#'
14647 SIM_ENABLE_ARCH_ppc_FALSE=
14648 fi
14649
14650
14651 sim_enable_arch_pru=false
14652 case "${targ}" in
14653 all|pru*-*-*)
14654 if test "${targ}" = "${target}"; then
14655 SIM_PRIMARY_TARGET=pru
14656 fi
14657 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
14658
14659 ac_config_commands="$ac_config_commands pru/Makefile"
14660
14661 as_fn_append SIM_SUBDIRS " pru"
14662
14663 ac_config_commands="$ac_config_commands depdir-pru"
14664
14665
14666 sim_enable_arch_pru=true
14667
14668 ;;
14669 esac
14670 if ${sim_enable_arch_pru}; then
14671 SIM_ENABLE_ARCH_pru_TRUE=
14672 SIM_ENABLE_ARCH_pru_FALSE='#'
14673 else
14674 SIM_ENABLE_ARCH_pru_TRUE='#'
14675 SIM_ENABLE_ARCH_pru_FALSE=
14676 fi
14677
14678
14679 sim_enable_arch_riscv=false
14680 case "${targ}" in
14681 all|riscv*-*-*)
14682 if test "${targ}" = "${target}"; then
14683 SIM_PRIMARY_TARGET=riscv
14684 fi
14685 subdirs="$subdirs riscv"
14686
14687
14688 ac_config_commands="$ac_config_commands depdir-riscv"
14689
14690
14691 sim_enable_arch_riscv=true
14692
14693 ;;
14694 esac
14695 if ${sim_enable_arch_riscv}; then
14696 SIM_ENABLE_ARCH_riscv_TRUE=
14697 SIM_ENABLE_ARCH_riscv_FALSE='#'
14698 else
14699 SIM_ENABLE_ARCH_riscv_TRUE='#'
14700 SIM_ENABLE_ARCH_riscv_FALSE=
14701 fi
14702
14703
14704 sim_enable_arch_rl78=false
14705 case "${targ}" in
14706 all|rl78-*-*)
14707 if test "${targ}" = "${target}"; then
14708 SIM_PRIMARY_TARGET=rl78
14709 fi
14710 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
14711
14712 ac_config_commands="$ac_config_commands rl78/Makefile"
14713
14714 as_fn_append SIM_SUBDIRS " rl78"
14715
14716 ac_config_commands="$ac_config_commands depdir-rl78"
14717
14718
14719 sim_enable_arch_rl78=true
14720
14721 ;;
14722 esac
14723 if ${sim_enable_arch_rl78}; then
14724 SIM_ENABLE_ARCH_rl78_TRUE=
14725 SIM_ENABLE_ARCH_rl78_FALSE='#'
14726 else
14727 SIM_ENABLE_ARCH_rl78_TRUE='#'
14728 SIM_ENABLE_ARCH_rl78_FALSE=
14729 fi
14730
14731
14732 sim_enable_arch_rx=false
14733 case "${targ}" in
14734 all|rx-*-*)
14735 if test "${targ}" = "${target}"; then
14736 SIM_PRIMARY_TARGET=rx
14737 fi
14738 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
14739
14740 ac_config_commands="$ac_config_commands rx/Makefile"
14741
14742 as_fn_append SIM_SUBDIRS " rx"
14743
14744 ac_config_commands="$ac_config_commands depdir-rx"
14745
14746
14747 sim_enable_arch_rx=true
14748
14749 ;;
14750 esac
14751 if ${sim_enable_arch_rx}; then
14752 SIM_ENABLE_ARCH_rx_TRUE=
14753 SIM_ENABLE_ARCH_rx_FALSE='#'
14754 else
14755 SIM_ENABLE_ARCH_rx_TRUE='#'
14756 SIM_ENABLE_ARCH_rx_FALSE=
14757 fi
14758
14759
14760 sim_enable_arch_sh=false
14761 case "${targ}" in
14762 all|sh*-*-*)
14763 if test "${targ}" = "${target}"; then
14764 SIM_PRIMARY_TARGET=sh
14765 fi
14766 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
14767
14768 ac_config_commands="$ac_config_commands sh/Makefile"
14769
14770 as_fn_append SIM_SUBDIRS " sh"
14771
14772 ac_config_commands="$ac_config_commands depdir-sh"
14773
14774
14775 sim_enable_arch_sh=true
14776
14777 ;;
14778 esac
14779 if ${sim_enable_arch_sh}; then
14780 SIM_ENABLE_ARCH_sh_TRUE=
14781 SIM_ENABLE_ARCH_sh_FALSE='#'
14782 else
14783 SIM_ENABLE_ARCH_sh_TRUE='#'
14784 SIM_ENABLE_ARCH_sh_FALSE=
14785 fi
14786
14787
14788 sim_enable_arch_erc32=false
14789 case "${targ}" in
14790 all|sparc-*-*)
14791 if test "${targ}" = "${target}"; then
14792 SIM_PRIMARY_TARGET=erc32
14793 fi
14794 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
14795
14796 ac_config_commands="$ac_config_commands erc32/Makefile"
14797
14798 as_fn_append SIM_SUBDIRS " erc32"
14799
14800 ac_config_commands="$ac_config_commands depdir-erc32"
14801
14802
14803 sim_enable_arch_erc32=true
14804
14805 ;;
14806 esac
14807 if ${sim_enable_arch_erc32}; then
14808 SIM_ENABLE_ARCH_erc32_TRUE=
14809 SIM_ENABLE_ARCH_erc32_FALSE='#'
14810 else
14811 SIM_ENABLE_ARCH_erc32_TRUE='#'
14812 SIM_ENABLE_ARCH_erc32_FALSE=
14813 fi
14814
14815
14816 sim_enable_arch_v850=false
14817 case "${targ}" in
14818 all|v850*-*-*)
14819 if test "${targ}" = "${target}"; then
14820 SIM_PRIMARY_TARGET=v850
14821 fi
14822 subdirs="$subdirs v850"
14823
14824
14825 ac_config_commands="$ac_config_commands depdir-v850"
14826
14827
14828 sim_enable_arch_v850=true
14829 sim_igen=yes
14830 ;;
14831 esac
14832 if ${sim_enable_arch_v850}; then
14833 SIM_ENABLE_ARCH_v850_TRUE=
14834 SIM_ENABLE_ARCH_v850_FALSE='#'
14835 else
14836 SIM_ENABLE_ARCH_v850_TRUE='#'
14837 SIM_ENABLE_ARCH_v850_FALSE=
14838 fi
14839
14840
14841 done
14842
14843 if test "x${enable_example_sims}" = xyes; then
14844 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
14845
14846 ac_config_commands="$ac_config_commands example-synacor/Makefile"
14847
14848 as_fn_append SIM_SUBDIRS " example-synacor"
14849
14850 ac_config_commands="$ac_config_commands depdir-example-synacor"
14851
14852
14853 fi
14854 fi
14855 if test "$sim_igen" = "yes"; then
14856 SIM_ENABLE_IGEN_TRUE=
14857 SIM_ENABLE_IGEN_FALSE='#'
14858 else
14859 SIM_ENABLE_IGEN_TRUE='#'
14860 SIM_ENABLE_IGEN_FALSE=
14861 fi
14862
14863
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
14865 $as_echo_n "checking whether to force sim alignment... " >&6; }
14866 sim_alignment=
14867 # Check whether --enable-sim-alignment was given.
14868 if test "${enable_sim_alignment+set}" = set; then :
14869 enableval=$enable_sim_alignment; case "${enableval}" in
14870 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
14871 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
14872 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
14873 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
14874 esac
14875 fi
14876
14877 cat >>confdefs.h <<_ACEOF
14878 #define WITH_ALIGNMENT ${sim_alignment:-0}
14879 _ACEOF
14880
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14882 $as_echo "${sim_alignment:-no}" >&6; }
14883
14884
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
14886 $as_echo_n "checking whether to enable sim asserts... " >&6; }
14887 sim_assert="1"
14888 # Check whether --enable-sim-assert was given.
14889 if test "${enable_sim_assert+set}" = set; then :
14890 enableval=$enable_sim_assert; case "${enableval}" in
14891 yes) sim_assert="1";;
14892 no) sim_assert="0";;
14893 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
14894 esac
14895 fi
14896
14897 cat >>confdefs.h <<_ACEOF
14898 #define WITH_ASSERT $sim_assert
14899 _ACEOF
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
14902 $as_echo "$sim_assert" >&6; }
14903
14904
14905 cgen_maint=no
14906 cgen=guile
14907 cgendir='$(srcdir)/../../cgen'
14908 # Check whether --enable-cgen-maint was given.
14909 if test "${enable_cgen_maint+set}" = set; then :
14910 enableval=$enable_cgen_maint; case "${enableval}" in
14911 yes) cgen_maint=yes ;;
14912 no) cgen_maint=no ;;
14913 *)
14914 # Argument is a directory where cgen can be found. In some
14915 # future world cgen could be installable, but right now this
14916 # is not the case. Instead we assume the directory is a path
14917 # to the cgen source tree.
14918 cgen_maint=yes
14919 if test -r ${enableval}/iformat.scm; then
14920 # This looks like a cgen source tree.
14921 cgendir=${enableval}
14922 else
14923 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14924 fi
14925 ;;
14926 esac
14927 fi
14928 if test x${cgen_maint} != xno ; then
14929 CGEN_MAINT=''
14930 else
14931 CGEN_MAINT='#'
14932 fi
14933
14934
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
14938 $as_echo_n "checking for sim debug setting... " >&6; }
14939 sim_debug="0"
14940 # Check whether --enable-sim-debug was given.
14941 if test "${enable_sim_debug+set}" = set; then :
14942 enableval=$enable_sim_debug; case "${enableval}" in
14943 yes) sim_debug="7";;
14944 no) sim_debug="0";;
14945 *) sim_debug="($enableval)";;
14946 esac
14947 fi
14948 if test "$sim_debug" != "0"; then
14949
14950 cat >>confdefs.h <<_ACEOF
14951 #define DEBUG $sim_debug
14952 _ACEOF
14953
14954 fi
14955
14956 cat >>confdefs.h <<_ACEOF
14957 #define WITH_DEBUG $sim_debug
14958 _ACEOF
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
14961 $as_echo "$sim_debug" >&6; }
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
14964 $as_echo_n "checking whether to force sim endianness... " >&6; }
14965 sim_endian=
14966 # Check whether --enable-sim-endian was given.
14967 if test "${enable_sim_endian+set}" = set; then :
14968 enableval=$enable_sim_endian; case "${enableval}" in
14969 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
14970 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
14971 yes | no) ;;
14972 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
14973 esac
14974 fi
14975
14976 cat >>confdefs.h <<_ACEOF
14977 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
14978 _ACEOF
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14981 $as_echo "${sim_alignment:-no}" >&6; }
14982
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
14985 $as_echo_n "checking default sim environment setting... " >&6; }
14986 sim_environment="ALL_ENVIRONMENT"
14987 # Check whether --enable-sim-environment was given.
14988 if test "${enable_sim_environment+set}" = set; then :
14989 enableval=$enable_sim_environment; case "${enableval}" in
14990 all | ALL) sim_environment="ALL_ENVIRONMENT";;
14991 user | USER) sim_environment="USER_ENVIRONMENT";;
14992 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
14993 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
14994 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
14995 esac
14996 fi
14997
14998 cat >>confdefs.h <<_ACEOF
14999 #define WITH_ENVIRONMENT $sim_environment
15000 _ACEOF
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15003 $as_echo "$sim_environment" >&6; }
15004
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15006 $as_echo_n "checking for sim hardware settings... " >&6; }
15007 # Check whether --enable-sim-hardware was given.
15008 if test "${enable_sim_hardware+set}" = set; then :
15009 enableval=$enable_sim_hardware;
15010 else
15011 enable_sim_hardware="yes"
15012 fi
15013
15014 sim_hw_sockser=
15015 if test "$enable_sim_hardware" = no; then
15016 sim_hw_cflags="-DWITH_HW=0"
15017 elif test "$enable_sim_hardware" = yes; then
15018 sim_hw_cflags="-DWITH_HW=1"
15019 sim_hw_sockser="dv-sockser.o"
15020 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15021 else
15022 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15023 fi
15024 if test "$enable_sim_hardware" = "yes"; then
15025 SIM_ENABLE_HW_TRUE=
15026 SIM_ENABLE_HW_FALSE='#'
15027 else
15028 SIM_ENABLE_HW_TRUE='#'
15029 SIM_ENABLE_HW_FALSE=
15030 fi
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15033 $as_echo "${enable_sim_hardware}" >&6; }
15034
15035
15036
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15038 $as_echo_n "checking sim inline settings... " >&6; }
15039 sim_inline="-DDEFAULT_INLINE=0"
15040 # Check whether --enable-sim-inline was given.
15041 if test "${enable_sim_inline+set}" = set; then :
15042 enableval=$enable_sim_inline; sim_inline=""
15043 case "$enableval" in
15044 no) sim_inline="-DDEFAULT_INLINE=0";;
15045 0) sim_inline="-DDEFAULT_INLINE=0";;
15046 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15047 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15048 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15049 new_flag=""
15050 case "$x" in
15051 *_INLINE=*) new_flag="-D$x";;
15052 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15053 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15054 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15055 esac
15056 if test x"$sim_inline" = x""; then
15057 sim_inline="$new_flag"
15058 else
15059 sim_inline="$sim_inline $new_flag"
15060 fi
15061 done;;
15062 esac
15063
15064 fi
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15066 $as_echo "$sim_inline" >&6; }
15067 SIM_INLINE=$sim_inline
15068
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15071 $as_echo_n "checking for sim profile settings... " >&6; }
15072 profile="1"
15073 sim_profile="-1"
15074 # Check whether --enable-sim-profile was given.
15075 if test "${enable_sim_profile+set}" = set; then :
15076 enableval=$enable_sim_profile; case "${enableval}" in
15077 yes) profile="1" sim_profile="-1";;
15078 no) profile="0" sim_profile="0";;
15079 [-0-9]*)
15080 profile="(${enableval})" sim_profile="(${enableval})";;
15081 [a-z]*)
15082 profile="1"
15083 sim_profile=""
15084 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15085 if test x"$sim_profile" = x; then
15086 sim_profile="(PROFILE_$x"
15087 else
15088 sim_profile="${sim_profile}|PROFILE_$x"
15089 fi
15090 done
15091 sim_profile="$sim_profile)" ;;
15092 esac
15093 fi
15094
15095 cat >>confdefs.h <<_ACEOF
15096 #define PROFILE $profile
15097 _ACEOF
15098
15099
15100 cat >>confdefs.h <<_ACEOF
15101 #define WITH_PROFILE $sim_profile
15102 _ACEOF
15103
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15105 $as_echo "$sim_profile" >&6; }
15106
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15108 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15109 # Check whether --enable-sim-reserved-bits was given.
15110 if test "${enable_sim_reserved_bits+set}" = set; then :
15111 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15112 yes|no) ;;
15113 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15114 esac
15115 fi
15116
15117 if test "x${enable_sim_reserved_bits}" != xno; then
15118 sim_reserved_bits=1
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15120 $as_echo "yes" >&6; }
15121 else
15122 sim_reserved_bits=0
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15125 fi
15126
15127 cat >>confdefs.h <<_ACEOF
15128 #define WITH_RESERVED_BITS $sim_reserved_bits
15129 _ACEOF
15130
15131
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15133 $as_echo_n "checking for sim cache size... " >&6; }
15134 sim_scache="16384"
15135 # Check whether --enable-sim-scache was given.
15136 if test "${enable_sim_scache+set}" = set; then :
15137 enableval=$enable_sim_scache; case "${enableval}" in
15138 yes) ;;
15139 no) sim_scache="0";;
15140 [0-9]*) sim_scache="${enableval}";;
15141 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15142 esac
15143 fi
15144
15145
15146 cat >>confdefs.h <<_ACEOF
15147 #define WITH_SCACHE $sim_scache
15148 _ACEOF
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15151 $as_echo "$sim_scache" >&6; }
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15154 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15155 sim_stdio="0"
15156 # Check whether --enable-sim-stdio was given.
15157 if test "${enable_sim_stdio+set}" = set; then :
15158 enableval=$enable_sim_stdio; case "${enableval}" in
15159 yes) sim_stdio="DO_USE_STDIO";;
15160 no) sim_stdio="DONT_USE_STDIO";;
15161 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15162 esac
15163 fi
15164
15165 cat >>confdefs.h <<_ACEOF
15166 #define WITH_STDIO $sim_stdio
15167 _ACEOF
15168
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15170 $as_echo "$sim_stdio" >&6; }
15171
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15173 $as_echo_n "checking for sim trace settings... " >&6; }
15174 sim_trace="~TRACE_debug"
15175 # Check whether --enable-sim-trace was given.
15176 if test "${enable_sim_trace+set}" = set; then :
15177 enableval=$enable_sim_trace; case "${enableval}" in
15178 yes) sim_trace="-1";;
15179 no) sim_trace="0";;
15180 [-0-9]*)
15181 sim_trace="'(${enableval})'";;
15182 [[:lower:]]*)
15183 sim_trace=""
15184 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15185 if test x"$sim_trace" = x; then
15186 sim_trace="(TRACE_$x"
15187 else
15188 sim_trace="${sim_trace}|TRACE_$x"
15189 fi
15190 done
15191 sim_trace="$sim_trace)" ;;
15192 esac
15193 fi
15194
15195 cat >>confdefs.h <<_ACEOF
15196 #define WITH_TRACE $sim_trace
15197 _ACEOF
15198
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15200 $as_echo "$sim_trace" >&6; }
15201
15202
15203 # Check whether --enable-werror was given.
15204 if test "${enable_werror+set}" = set; then :
15205 enableval=$enable_werror; case "${enableval}" in
15206 yes | y) ERROR_ON_WARNING="yes" ;;
15207 no | n) ERROR_ON_WARNING="no" ;;
15208 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15209 esac
15210 fi
15211
15212
15213 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15214 ERROR_ON_WARNING=yes
15215 fi
15216
15217 WERROR_CFLAGS=""
15218 if test "${ERROR_ON_WARNING}" = yes ; then
15219 WERROR_CFLAGS="-Werror"
15220 fi
15221
15222 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
15223 -Wno-unused -Wunused-value -Wunused-function
15224 -Wno-switch -Wno-char-subscripts
15225 -Wempty-body -Wunused-but-set-parameter
15226 -Wno-error=maybe-uninitialized
15227 -Wmissing-declarations
15228 -Wmissing-prototypes
15229 -Wdeclaration-after-statement -Wmissing-parameter-type
15230 -Wpointer-sign
15231 -Wold-style-declaration -Wold-style-definition
15232 "
15233
15234 # Enable -Wno-format by default when using gcc on mingw since many
15235 # GCC versions complain about %I64.
15236 case "${host}" in
15237 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15238 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15239 esac
15240
15241 # Check whether --enable-build-warnings was given.
15242 if test "${enable_build_warnings+set}" = set; then :
15243 enableval=$enable_build_warnings; case "${enableval}" in
15244 yes) ;;
15245 no) build_warnings="-w";;
15246 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15247 build_warnings="${build_warnings} ${t}";;
15248 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15249 build_warnings="${t} ${build_warnings}";;
15250 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15251 esac
15252 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15253 echo "Setting compiler warning flags = $build_warnings" 6>&1
15254 fi
15255 fi
15256 # Check whether --enable-sim-build-warnings was given.
15257 if test "${enable_sim_build_warnings+set}" = set; then :
15258 enableval=$enable_sim_build_warnings; case "${enableval}" in
15259 yes) ;;
15260 no) build_warnings="-w";;
15261 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15262 build_warnings="${build_warnings} ${t}";;
15263 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15264 build_warnings="${t} ${build_warnings}";;
15265 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15266 esac
15267 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15268 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15269 fi
15270 fi
15271 WARN_CFLAGS=""
15272 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15273 then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15275 $as_echo_n "checking compiler warning flags... " >&6; }
15276 # Separate out the -Werror flag as some files just cannot be
15277 # compiled with it enabled.
15278 for w in ${build_warnings}; do
15279 case $w in
15280 -Werr*) WERROR_CFLAGS=-Werror ;;
15281 *) # Check that GCC accepts it
15282 saved_CFLAGS="$CFLAGS"
15283 CFLAGS="$CFLAGS -Werror $w"
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286
15287 int
15288 main ()
15289 {
15290
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_compile "$LINENO"; then :
15296 WARN_CFLAGS="${WARN_CFLAGS} $w"
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 CFLAGS="$saved_CFLAGS"
15300 esac
15301 done
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15303 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15304 fi
15305
15306
15307
15308
15309
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
15311 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
15312 # Check whether --enable-sim-frv-trapdump was given.
15313 if test "${enable_sim_frv_trapdump+set}" = set; then :
15314 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
15315 yes|no) ;;
15316 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
15317 esac
15318 fi
15319
15320 if test "x${enable_sim_frv_trapdump}" = xyes; then
15321 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323 $as_echo "yes" >&6; }
15324 else
15325 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15328 fi
15329
15330
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
15332 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
15333 # Check whether --enable-sim-rx-cycle-accurate was given.
15334 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
15335 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
15336 yes | no) ;;
15337 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
15338 esac
15339 fi
15340
15341 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
15342 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15344 $as_echo "yes" >&6; }
15345 else
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347 $as_echo "no" >&6; }
15348 fi
15349
15350
15351
15352 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
15353
15354 cat >confcache <<\_ACEOF
15355 # This file is a shell script that caches the results of configure
15356 # tests run on this system so they can be shared between configure
15357 # scripts and configure runs, see configure's option --config-cache.
15358 # It is not useful on other systems. If it contains results you don't
15359 # want to keep, you may remove or edit it.
15360 #
15361 # config.status only pays attention to the cache file if you give it
15362 # the --recheck option to rerun configure.
15363 #
15364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15366 # following values.
15367
15368 _ACEOF
15369
15370 # The following way of writing the cache mishandles newlines in values,
15371 # but we know of no workaround that is simple, portable, and efficient.
15372 # So, we kill variables containing newlines.
15373 # Ultrix sh set writes to stderr and can't be redirected directly,
15374 # and sets the high bit in the cache file unless we assign to the vars.
15375 (
15376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15377 eval ac_val=\$$ac_var
15378 case $ac_val in #(
15379 *${as_nl}*)
15380 case $ac_var in #(
15381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15383 esac
15384 case $ac_var in #(
15385 _ | IFS | as_nl) ;; #(
15386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15387 *) { eval $ac_var=; unset $ac_var;} ;;
15388 esac ;;
15389 esac
15390 done
15391
15392 (set) 2>&1 |
15393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15394 *${as_nl}ac_space=\ *)
15395 # `set' does not quote correctly, so add quotes: double-quote
15396 # substitution turns \\\\ into \\, and sed turns \\ into \.
15397 sed -n \
15398 "s/'/'\\\\''/g;
15399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15400 ;; #(
15401 *)
15402 # `set' quotes correctly as required by POSIX, so do not add quotes.
15403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15404 ;;
15405 esac |
15406 sort
15407 ) |
15408 sed '
15409 /^ac_cv_env_/b end
15410 t clear
15411 :clear
15412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15413 t end
15414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15415 :end' >>confcache
15416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15417 if test -w "$cache_file"; then
15418 if test "x$cache_file" != "x/dev/null"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15420 $as_echo "$as_me: updating cache $cache_file" >&6;}
15421 if test ! -f "$cache_file" || test -h "$cache_file"; then
15422 cat confcache >"$cache_file"
15423 else
15424 case $cache_file in #(
15425 */* | ?:*)
15426 mv -f confcache "$cache_file"$$ &&
15427 mv -f "$cache_file"$$ "$cache_file" ;; #(
15428 *)
15429 mv -f confcache "$cache_file" ;;
15430 esac
15431 fi
15432 fi
15433 else
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15435 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15436 fi
15437 fi
15438 rm -f confcache
15439
15440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15441 # Let make expand exec_prefix.
15442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15443
15444 DEFS=-DHAVE_CONFIG_H
15445
15446 ac_libobjs=
15447 ac_ltlibobjs=
15448 U=
15449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15450 # 1. Remove the extension, and $U if already installed.
15451 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15452 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15453 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15454 # will be set to the directory where LIBOBJS objects are built.
15455 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15456 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15457 done
15458 LIBOBJS=$ac_libobjs
15459
15460 LTLIBOBJS=$ac_ltlibobjs
15461
15462
15463
15464 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15465 as_fn_error $? "conditional \"PLUGINS\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467 fi
15468 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15469 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15473 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15474 if test -n "$am_sleep_pid"; then
15475 # Hide warnings about reused PIDs.
15476 wait $am_sleep_pid 2>/dev/null
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15479 $as_echo "done" >&6; }
15480 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15481 as_fn_error $? "conditional \"AMDEP\" was never defined.
15482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15483 fi
15484 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15485 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15487 fi
15488 if test -n "$EXEEXT"; then
15489 am__EXEEXT_TRUE=
15490 am__EXEEXT_FALSE='#'
15491 else
15492 am__EXEEXT_TRUE='#'
15493 am__EXEEXT_FALSE=
15494 fi
15495
15496 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
15497 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
15498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15499 fi
15500 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
15501 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503 fi
15504 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
15505 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507 fi
15508 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
15509 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511 fi
15512 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
15513 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515 fi
15516 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
15517 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519 fi
15520 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
15521 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523 fi
15524 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
15525 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527 fi
15528 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
15529 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531 fi
15532 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
15533 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535 fi
15536 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
15537 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 fi
15540 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
15541 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 fi
15544 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
15545 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 fi
15548 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
15549 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
15553 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
15557 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
15561 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
15565 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
15569 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
15573 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
15577 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 fi
15580 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
15581 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 fi
15584 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
15585 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 fi
15588 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
15589 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
15590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 fi
15592 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
15593 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
15594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 fi
15596 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
15597 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
15598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 fi
15600 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
15601 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
15602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 fi
15604 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
15605 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
15606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 fi
15608 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
15609 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
15610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 fi
15612 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
15613 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
15614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15615 fi
15616 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
15617 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 fi
15620 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
15621 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 fi
15624 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
15625 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 fi
15628
15629 : "${CONFIG_STATUS=./config.status}"
15630 ac_write_fail=0
15631 ac_clean_files_save=$ac_clean_files
15632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635 as_write_fail=0
15636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15637 #! $SHELL
15638 # Generated by $as_me.
15639 # Run this file to recreate the current configuration.
15640 # Compiler output produced by configure, useful for debugging
15641 # configure, is in config.log if it exists.
15642
15643 debug=false
15644 ac_cs_recheck=false
15645 ac_cs_silent=false
15646
15647 SHELL=\${CONFIG_SHELL-$SHELL}
15648 export SHELL
15649 _ASEOF
15650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15651 ## -------------------- ##
15652 ## M4sh Initialization. ##
15653 ## -------------------- ##
15654
15655 # Be more Bourne compatible
15656 DUALCASE=1; export DUALCASE # for MKS sh
15657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15658 emulate sh
15659 NULLCMD=:
15660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15661 # is contrary to our usage. Disable this feature.
15662 alias -g '${1+"$@"}'='"$@"'
15663 setopt NO_GLOB_SUBST
15664 else
15665 case `(set -o) 2>/dev/null` in #(
15666 *posix*) :
15667 set -o posix ;; #(
15668 *) :
15669 ;;
15670 esac
15671 fi
15672
15673
15674 as_nl='
15675 '
15676 export as_nl
15677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15681 # Prefer a ksh shell builtin over an external printf program on Solaris,
15682 # but without wasting forks for bash or zsh.
15683 if test -z "$BASH_VERSION$ZSH_VERSION" \
15684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15685 as_echo='print -r --'
15686 as_echo_n='print -rn --'
15687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15688 as_echo='printf %s\n'
15689 as_echo_n='printf %s'
15690 else
15691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15693 as_echo_n='/usr/ucb/echo -n'
15694 else
15695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15696 as_echo_n_body='eval
15697 arg=$1;
15698 case $arg in #(
15699 *"$as_nl"*)
15700 expr "X$arg" : "X\\(.*\\)$as_nl";
15701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702 esac;
15703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704 '
15705 export as_echo_n_body
15706 as_echo_n='sh -c $as_echo_n_body as_echo'
15707 fi
15708 export as_echo_body
15709 as_echo='sh -c $as_echo_body as_echo'
15710 fi
15711
15712 # The user is always right.
15713 if test "${PATH_SEPARATOR+set}" != set; then
15714 PATH_SEPARATOR=:
15715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15717 PATH_SEPARATOR=';'
15718 }
15719 fi
15720
15721
15722 # IFS
15723 # We need space, tab and new line, in precisely that order. Quoting is
15724 # there to prevent editors from complaining about space-tab.
15725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15726 # splitting by setting IFS to empty value.)
15727 IFS=" "" $as_nl"
15728
15729 # Find who we are. Look in the path if we contain no directory separator.
15730 as_myself=
15731 case $0 in #((
15732 *[\\/]* ) as_myself=$0 ;;
15733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15734 for as_dir in $PATH
15735 do
15736 IFS=$as_save_IFS
15737 test -z "$as_dir" && as_dir=.
15738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15739 done
15740 IFS=$as_save_IFS
15741
15742 ;;
15743 esac
15744 # We did not find ourselves, most probably we were run as `sh COMMAND'
15745 # in which case we are not to be found in the path.
15746 if test "x$as_myself" = x; then
15747 as_myself=$0
15748 fi
15749 if test ! -f "$as_myself"; then
15750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15751 exit 1
15752 fi
15753
15754 # Unset variables that we do not need and which cause bugs (e.g. in
15755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15756 # suppresses any "Segmentation fault" message there. '((' could
15757 # trigger a bug in pdksh 5.2.14.
15758 for as_var in BASH_ENV ENV MAIL MAILPATH
15759 do eval test x\${$as_var+set} = xset \
15760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15761 done
15762 PS1='$ '
15763 PS2='> '
15764 PS4='+ '
15765
15766 # NLS nuisances.
15767 LC_ALL=C
15768 export LC_ALL
15769 LANGUAGE=C
15770 export LANGUAGE
15771
15772 # CDPATH.
15773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15774
15775
15776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15777 # ----------------------------------------
15778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15780 # script with STATUS, using 1 if that was 0.
15781 as_fn_error ()
15782 {
15783 as_status=$1; test $as_status -eq 0 && as_status=1
15784 if test "$4"; then
15785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15787 fi
15788 $as_echo "$as_me: error: $2" >&2
15789 as_fn_exit $as_status
15790 } # as_fn_error
15791
15792
15793 # as_fn_set_status STATUS
15794 # -----------------------
15795 # Set $? to STATUS, without forking.
15796 as_fn_set_status ()
15797 {
15798 return $1
15799 } # as_fn_set_status
15800
15801 # as_fn_exit STATUS
15802 # -----------------
15803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15804 as_fn_exit ()
15805 {
15806 set +e
15807 as_fn_set_status $1
15808 exit $1
15809 } # as_fn_exit
15810
15811 # as_fn_unset VAR
15812 # ---------------
15813 # Portably unset VAR.
15814 as_fn_unset ()
15815 {
15816 { eval $1=; unset $1;}
15817 }
15818 as_unset=as_fn_unset
15819 # as_fn_append VAR VALUE
15820 # ----------------------
15821 # Append the text in VALUE to the end of the definition contained in VAR. Take
15822 # advantage of any shell optimizations that allow amortized linear growth over
15823 # repeated appends, instead of the typical quadratic growth present in naive
15824 # implementations.
15825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15826 eval 'as_fn_append ()
15827 {
15828 eval $1+=\$2
15829 }'
15830 else
15831 as_fn_append ()
15832 {
15833 eval $1=\$$1\$2
15834 }
15835 fi # as_fn_append
15836
15837 # as_fn_arith ARG...
15838 # ------------------
15839 # Perform arithmetic evaluation on the ARGs, and store the result in the
15840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15841 # must be portable across $(()) and expr.
15842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15843 eval 'as_fn_arith ()
15844 {
15845 as_val=$(( $* ))
15846 }'
15847 else
15848 as_fn_arith ()
15849 {
15850 as_val=`expr "$@" || test $? -eq 1`
15851 }
15852 fi # as_fn_arith
15853
15854
15855 if expr a : '\(a\)' >/dev/null 2>&1 &&
15856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15857 as_expr=expr
15858 else
15859 as_expr=false
15860 fi
15861
15862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15863 as_basename=basename
15864 else
15865 as_basename=false
15866 fi
15867
15868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15869 as_dirname=dirname
15870 else
15871 as_dirname=false
15872 fi
15873
15874 as_me=`$as_basename -- "$0" ||
15875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15876 X"$0" : 'X\(//\)$' \| \
15877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15878 $as_echo X/"$0" |
15879 sed '/^.*\/\([^/][^/]*\)\/*$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\/\(\/\/\)$/{
15884 s//\1/
15885 q
15886 }
15887 /^X\/\(\/\).*/{
15888 s//\1/
15889 q
15890 }
15891 s/.*/./; q'`
15892
15893 # Avoid depending upon Character Ranges.
15894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15897 as_cr_digits='0123456789'
15898 as_cr_alnum=$as_cr_Letters$as_cr_digits
15899
15900 ECHO_C= ECHO_N= ECHO_T=
15901 case `echo -n x` in #(((((
15902 -n*)
15903 case `echo 'xy\c'` in
15904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15905 xy) ECHO_C='\c';;
15906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15907 ECHO_T=' ';;
15908 esac;;
15909 *)
15910 ECHO_N='-n';;
15911 esac
15912
15913 rm -f conf$$ conf$$.exe conf$$.file
15914 if test -d conf$$.dir; then
15915 rm -f conf$$.dir/conf$$.file
15916 else
15917 rm -f conf$$.dir
15918 mkdir conf$$.dir 2>/dev/null
15919 fi
15920 if (echo >conf$$.file) 2>/dev/null; then
15921 if ln -s conf$$.file conf$$ 2>/dev/null; then
15922 as_ln_s='ln -s'
15923 # ... but there are two gotchas:
15924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15926 # In both cases, we have to default to `cp -pR'.
15927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15928 as_ln_s='cp -pR'
15929 elif ln conf$$.file conf$$ 2>/dev/null; then
15930 as_ln_s=ln
15931 else
15932 as_ln_s='cp -pR'
15933 fi
15934 else
15935 as_ln_s='cp -pR'
15936 fi
15937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15938 rmdir conf$$.dir 2>/dev/null
15939
15940
15941 # as_fn_mkdir_p
15942 # -------------
15943 # Create "$as_dir" as a directory, including parents if necessary.
15944 as_fn_mkdir_p ()
15945 {
15946
15947 case $as_dir in #(
15948 -*) as_dir=./$as_dir;;
15949 esac
15950 test -d "$as_dir" || eval $as_mkdir_p || {
15951 as_dirs=
15952 while :; do
15953 case $as_dir in #(
15954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15955 *) as_qdir=$as_dir;;
15956 esac
15957 as_dirs="'$as_qdir' $as_dirs"
15958 as_dir=`$as_dirname -- "$as_dir" ||
15959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15960 X"$as_dir" : 'X\(//\)[^/]' \| \
15961 X"$as_dir" : 'X\(//\)$' \| \
15962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15963 $as_echo X"$as_dir" |
15964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\/\)[^/].*/{
15969 s//\1/
15970 q
15971 }
15972 /^X\(\/\/\)$/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\).*/{
15977 s//\1/
15978 q
15979 }
15980 s/.*/./; q'`
15981 test -d "$as_dir" && break
15982 done
15983 test -z "$as_dirs" || eval "mkdir $as_dirs"
15984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15985
15986
15987 } # as_fn_mkdir_p
15988 if mkdir -p . 2>/dev/null; then
15989 as_mkdir_p='mkdir -p "$as_dir"'
15990 else
15991 test -d ./-p && rmdir ./-p
15992 as_mkdir_p=false
15993 fi
15994
15995
15996 # as_fn_executable_p FILE
15997 # -----------------------
15998 # Test if FILE is an executable regular file.
15999 as_fn_executable_p ()
16000 {
16001 test -f "$1" && test -x "$1"
16002 } # as_fn_executable_p
16003 as_test_x='test -x'
16004 as_executable_p=as_fn_executable_p
16005
16006 # Sed expression to map a string onto a valid CPP name.
16007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16008
16009 # Sed expression to map a string onto a valid variable name.
16010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16011
16012
16013 exec 6>&1
16014 ## ----------------------------------- ##
16015 ## Main body of $CONFIG_STATUS script. ##
16016 ## ----------------------------------- ##
16017 _ASEOF
16018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16019
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 # Save the log message, to keep $0 and so on meaningful, and to
16022 # report actual input values of CONFIG_FILES etc. instead of their
16023 # values after options handling.
16024 ac_log="
16025 This file was extended by sim $as_me 0, which was
16026 generated by GNU Autoconf 2.69. Invocation command line was
16027
16028 CONFIG_FILES = $CONFIG_FILES
16029 CONFIG_HEADERS = $CONFIG_HEADERS
16030 CONFIG_LINKS = $CONFIG_LINKS
16031 CONFIG_COMMANDS = $CONFIG_COMMANDS
16032 $ $0 $@
16033
16034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16035 "
16036
16037 _ACEOF
16038
16039 case $ac_config_files in *"
16040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16041 esac
16042
16043 case $ac_config_headers in *"
16044 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16045 esac
16046
16047
16048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049 # Files that config.status was made for.
16050 config_files="$ac_config_files"
16051 config_headers="$ac_config_headers"
16052 config_commands="$ac_config_commands"
16053
16054 _ACEOF
16055
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 ac_cs_usage="\
16058 \`$as_me' instantiates files and other configuration actions
16059 from templates according to the current configuration. Unless the files
16060 and actions are specified as TAGs, all are instantiated by default.
16061
16062 Usage: $0 [OPTION]... [TAG]...
16063
16064 -h, --help print this help, then exit
16065 -V, --version print version number and configuration settings, then exit
16066 --config print configuration, then exit
16067 -q, --quiet, --silent
16068 do not print progress messages
16069 -d, --debug don't remove temporary files
16070 --recheck update $as_me by reconfiguring in the same conditions
16071 --file=FILE[:TEMPLATE]
16072 instantiate the configuration file FILE
16073 --header=FILE[:TEMPLATE]
16074 instantiate the configuration header FILE
16075
16076 Configuration files:
16077 $config_files
16078
16079 Configuration headers:
16080 $config_headers
16081
16082 Configuration commands:
16083 $config_commands
16084
16085 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
16086 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
16087
16088 _ACEOF
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16091 ac_cs_version="\\
16092 sim config.status 0
16093 configured by $0, generated by GNU Autoconf 2.69,
16094 with options \\"\$ac_cs_config\\"
16095
16096 Copyright (C) 2012 Free Software Foundation, Inc.
16097 This config.status script is free software; the Free Software Foundation
16098 gives unlimited permission to copy, distribute and modify it."
16099
16100 ac_pwd='$ac_pwd'
16101 srcdir='$srcdir'
16102 INSTALL='$INSTALL'
16103 MKDIR_P='$MKDIR_P'
16104 AWK='$AWK'
16105 test -n "\$AWK" || AWK=awk
16106 _ACEOF
16107
16108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16109 # The default lists apply if the user does not specify any file.
16110 ac_need_defaults=:
16111 while test $# != 0
16112 do
16113 case $1 in
16114 --*=?*)
16115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16117 ac_shift=:
16118 ;;
16119 --*=)
16120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16121 ac_optarg=
16122 ac_shift=:
16123 ;;
16124 *)
16125 ac_option=$1
16126 ac_optarg=$2
16127 ac_shift=shift
16128 ;;
16129 esac
16130
16131 case $ac_option in
16132 # Handling of the options.
16133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16134 ac_cs_recheck=: ;;
16135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16136 $as_echo "$ac_cs_version"; exit ;;
16137 --config | --confi | --conf | --con | --co | --c )
16138 $as_echo "$ac_cs_config"; exit ;;
16139 --debug | --debu | --deb | --de | --d | -d )
16140 debug=: ;;
16141 --file | --fil | --fi | --f )
16142 $ac_shift
16143 case $ac_optarg in
16144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16145 '') as_fn_error $? "missing file argument" ;;
16146 esac
16147 as_fn_append CONFIG_FILES " '$ac_optarg'"
16148 ac_need_defaults=false;;
16149 --header | --heade | --head | --hea )
16150 $ac_shift
16151 case $ac_optarg in
16152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16153 esac
16154 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16155 ac_need_defaults=false;;
16156 --he | --h)
16157 # Conflict between --help and --header
16158 as_fn_error $? "ambiguous option: \`$1'
16159 Try \`$0 --help' for more information.";;
16160 --help | --hel | -h )
16161 $as_echo "$ac_cs_usage"; exit ;;
16162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16164 ac_cs_silent=: ;;
16165
16166 # This is an error.
16167 -*) as_fn_error $? "unrecognized option: \`$1'
16168 Try \`$0 --help' for more information." ;;
16169
16170 *) as_fn_append ac_config_targets " $1"
16171 ac_need_defaults=false ;;
16172
16173 esac
16174 shift
16175 done
16176
16177 ac_configure_extra_args=
16178
16179 if $ac_cs_silent; then
16180 exec 6>/dev/null
16181 ac_configure_extra_args="$ac_configure_extra_args --silent"
16182 fi
16183
16184 _ACEOF
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 if \$ac_cs_recheck; then
16187 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16188 shift
16189 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16190 CONFIG_SHELL='$SHELL'
16191 export CONFIG_SHELL
16192 exec "\$@"
16193 fi
16194
16195 _ACEOF
16196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197 exec 5>>config.log
16198 {
16199 echo
16200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16201 ## Running $as_me. ##
16202 _ASBOX
16203 $as_echo "$ac_log"
16204 } >&5
16205
16206 _ACEOF
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 #
16209 # INIT-COMMANDS
16210 #
16211
16212
16213 # The HP-UX ksh and POSIX shell print the target directory to stdout
16214 # if CDPATH is set.
16215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16216
16217 sed_quote_subst='$sed_quote_subst'
16218 double_quote_subst='$double_quote_subst'
16219 delay_variable_subst='$delay_variable_subst'
16220 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16221 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16222 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16224 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16225 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16228 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16229 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16230 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16231 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16232 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16233 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16234 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16235 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16236 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16237 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16238 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16239 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16240 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16241 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16242 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16243 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16244 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16245 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16246 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16247 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16253 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16254 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16255 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16256 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16257 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16258 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16259 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16260 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16261 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16262 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16263 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16264 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16265 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16267 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16268 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"`'
16269 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16270 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16271 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16274 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16276 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16301 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16302 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16303 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16304 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16305 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16306 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16307 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16308 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16309 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16315 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16316 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16317 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16318 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16319 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16320 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16321 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16322 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16323 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16324 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16325 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16326 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16327 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16328 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16329 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16330 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16331 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16332 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16333 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16340
16341 LTCC='$LTCC'
16342 LTCFLAGS='$LTCFLAGS'
16343 compiler='$compiler_DEFAULT'
16344
16345 # A function that is used when there is no print builtin or printf.
16346 func_fallback_echo ()
16347 {
16348 eval 'cat <<_LTECHO_EOF
16349 \$1
16350 _LTECHO_EOF'
16351 }
16352
16353 # Quote evaled strings.
16354 for var in SHELL \
16355 ECHO \
16356 SED \
16357 GREP \
16358 EGREP \
16359 FGREP \
16360 LD \
16361 NM \
16362 LN_S \
16363 lt_SP2NL \
16364 lt_NL2SP \
16365 reload_flag \
16366 OBJDUMP \
16367 deplibs_check_method \
16368 file_magic_cmd \
16369 AR \
16370 AR_FLAGS \
16371 STRIP \
16372 RANLIB \
16373 CC \
16374 CFLAGS \
16375 compiler \
16376 lt_cv_sys_global_symbol_pipe \
16377 lt_cv_sys_global_symbol_to_cdecl \
16378 lt_cv_sys_global_symbol_to_c_name_address \
16379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16380 lt_prog_compiler_no_builtin_flag \
16381 lt_prog_compiler_wl \
16382 lt_prog_compiler_pic \
16383 lt_prog_compiler_static \
16384 lt_cv_prog_compiler_c_o \
16385 need_locks \
16386 DSYMUTIL \
16387 NMEDIT \
16388 LIPO \
16389 OTOOL \
16390 OTOOL64 \
16391 shrext_cmds \
16392 export_dynamic_flag_spec \
16393 whole_archive_flag_spec \
16394 compiler_needs_object \
16395 with_gnu_ld \
16396 allow_undefined_flag \
16397 no_undefined_flag \
16398 hardcode_libdir_flag_spec \
16399 hardcode_libdir_flag_spec_ld \
16400 hardcode_libdir_separator \
16401 fix_srcfile_path \
16402 exclude_expsyms \
16403 include_expsyms \
16404 file_list_spec \
16405 variables_saved_for_relink \
16406 libname_spec \
16407 library_names_spec \
16408 soname_spec \
16409 install_override_mode \
16410 finish_eval \
16411 old_striplib \
16412 striplib; do
16413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16414 *[\\\\\\\`\\"\\\$]*)
16415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16416 ;;
16417 *)
16418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16419 ;;
16420 esac
16421 done
16422
16423 # Double-quote double-evaled strings.
16424 for var in reload_cmds \
16425 old_postinstall_cmds \
16426 old_postuninstall_cmds \
16427 old_archive_cmds \
16428 extract_expsyms_cmds \
16429 old_archive_from_new_cmds \
16430 old_archive_from_expsyms_cmds \
16431 archive_cmds \
16432 archive_expsym_cmds \
16433 module_cmds \
16434 module_expsym_cmds \
16435 export_symbols_cmds \
16436 prelink_cmds \
16437 postinstall_cmds \
16438 postuninstall_cmds \
16439 finish_cmds \
16440 sys_lib_search_path_spec \
16441 sys_lib_dlsearch_path_spec; do
16442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16443 *[\\\\\\\`\\"\\\$]*)
16444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16445 ;;
16446 *)
16447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16448 ;;
16449 esac
16450 done
16451
16452 ac_aux_dir='$ac_aux_dir'
16453 xsi_shell='$xsi_shell'
16454 lt_shell_append='$lt_shell_append'
16455
16456 # See if we are running on zsh, and set the options which allow our
16457 # commands through without removal of \ escapes INIT.
16458 if test -n "\${ZSH_VERSION+set}" ; then
16459 setopt NO_GLOB_SUBST
16460 fi
16461
16462
16463 PACKAGE='$PACKAGE'
16464 VERSION='$VERSION'
16465 TIMESTAMP='$TIMESTAMP'
16466 RM='$RM'
16467 ofile='$ofile'
16468
16469
16470
16471 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16472 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16473 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16474 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16475 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16476 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16477 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16478 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16479 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16480 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16481 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16482 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16483 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16484 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16485 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16486 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16487 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16488 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16489 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16490 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16491 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16492 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16493 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16494 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16495 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16496 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16497 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16498 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16499 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16500 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16501 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16502 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16503 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16504
16505 _ACEOF
16506
16507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508
16509 # Handling of arguments.
16510 for ac_config_target in $ac_config_targets
16511 do
16512 case $ac_config_target in
16513 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16514 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16515 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16516 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
16517 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
16518 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
16519 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
16520 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
16521 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
16522 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
16523 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
16524 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
16525 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
16526 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
16527 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
16528 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
16529 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
16530 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
16531 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
16532 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
16533 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
16534 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
16535 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
16536 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
16537 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
16538 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
16539 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
16540 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
16541 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
16542 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
16543 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
16544 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
16545 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
16546 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
16547 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
16548 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
16549 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
16550 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
16551 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
16552 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
16553 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
16554 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
16555 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
16556 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
16557 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
16558 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
16559 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
16560 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
16561 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
16562 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
16563 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
16564 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
16565 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
16566 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
16567 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
16568 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
16569 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
16570 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
16571 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
16572 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
16573 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
16574 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
16575 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
16576 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
16577 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
16578 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
16579 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
16580 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
16581 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
16582 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
16583 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
16584 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
16585 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
16586 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
16587 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
16588 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
16589 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
16590 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
16591 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
16592 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
16593 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
16594 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
16595 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
16596 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
16597 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
16598 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
16599 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
16600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16601
16602 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16603 esac
16604 done
16605
16606
16607 # If the user did not use the arguments to specify the items to instantiate,
16608 # then the envvar interface is used. Set only those that are not.
16609 # We use the long form for the default assignment because of an extremely
16610 # bizarre bug on SunOS 4.1.3.
16611 if $ac_need_defaults; then
16612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16615 fi
16616
16617 # Have a temporary directory for convenience. Make it in the build tree
16618 # simply because there is no reason against having it here, and in addition,
16619 # creating and moving files from /tmp can sometimes cause problems.
16620 # Hook for its removal unless debugging.
16621 # Note that there is a small window in which the directory will not be cleaned:
16622 # after its creation but before its name has been assigned to `$tmp'.
16623 $debug ||
16624 {
16625 tmp= ac_tmp=
16626 trap 'exit_status=$?
16627 : "${ac_tmp:=$tmp}"
16628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16629 ' 0
16630 trap 'as_fn_exit 1' 1 2 13 15
16631 }
16632 # Create a (secure) tmp directory for tmp files.
16633
16634 {
16635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16636 test -d "$tmp"
16637 } ||
16638 {
16639 tmp=./conf$$-$RANDOM
16640 (umask 077 && mkdir "$tmp")
16641 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16642 ac_tmp=$tmp
16643
16644 # Set up the scripts for CONFIG_FILES section.
16645 # No need to generate them if there are no CONFIG_FILES.
16646 # This happens for instance with `./config.status config.h'.
16647 if test -n "$CONFIG_FILES"; then
16648
16649
16650 ac_cr=`echo X | tr X '\015'`
16651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16652 # But we know of no other shell where ac_cr would be empty at this
16653 # point, so we can use a bashism as a fallback.
16654 if test "x$ac_cr" = x; then
16655 eval ac_cr=\$\'\\r\'
16656 fi
16657 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16659 ac_cs_awk_cr='\\r'
16660 else
16661 ac_cs_awk_cr=$ac_cr
16662 fi
16663
16664 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16665 _ACEOF
16666
16667
16668 {
16669 echo "cat >conf$$subs.awk <<_ACEOF" &&
16670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16671 echo "_ACEOF"
16672 } >conf$$subs.sh ||
16673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16675 ac_delim='%!_!# '
16676 for ac_last_try in false false false false false :; do
16677 . ./conf$$subs.sh ||
16678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16679
16680 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16681 if test $ac_delim_n = $ac_delim_num; then
16682 break
16683 elif $ac_last_try; then
16684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16685 else
16686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16687 fi
16688 done
16689 rm -f conf$$subs.sh
16690
16691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16692 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16693 _ACEOF
16694 sed -n '
16695 h
16696 s/^/S["/; s/!.*/"]=/
16697 p
16698 g
16699 s/^[^!]*!//
16700 :repl
16701 t repl
16702 s/'"$ac_delim"'$//
16703 t delim
16704 :nl
16705 h
16706 s/\(.\{148\}\)..*/\1/
16707 t more1
16708 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16709 p
16710 n
16711 b repl
16712 :more1
16713 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16714 p
16715 g
16716 s/.\{148\}//
16717 t nl
16718 :delim
16719 h
16720 s/\(.\{148\}\)..*/\1/
16721 t more2
16722 s/["\\]/\\&/g; s/^/"/; s/$/"/
16723 p
16724 b
16725 :more2
16726 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16727 p
16728 g
16729 s/.\{148\}//
16730 t delim
16731 ' <conf$$subs.awk | sed '
16732 /^[^""]/{
16733 N
16734 s/\n//
16735 }
16736 ' >>$CONFIG_STATUS || ac_write_fail=1
16737 rm -f conf$$subs.awk
16738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16739 _ACAWK
16740 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16741 for (key in S) S_is_set[key] = 1
16742 FS = "\a"
16743
16744 }
16745 {
16746 line = $ 0
16747 nfields = split(line, field, "@")
16748 substed = 0
16749 len = length(field[1])
16750 for (i = 2; i < nfields; i++) {
16751 key = field[i]
16752 keylen = length(key)
16753 if (S_is_set[key]) {
16754 value = S[key]
16755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16756 len += length(value) + length(field[++i])
16757 substed = 1
16758 } else
16759 len += 1 + keylen
16760 }
16761
16762 print line
16763 }
16764
16765 _ACAWK
16766 _ACEOF
16767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16768 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16770 else
16771 cat
16772 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16773 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16774 _ACEOF
16775
16776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16778 # trailing colons and then remove the whole line if VPATH becomes empty
16779 # (actually we leave an empty line to preserve line numbers).
16780 if test "x$srcdir" = x.; then
16781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16782 h
16783 s///
16784 s/^/:/
16785 s/[ ]*$/:/
16786 s/:\$(srcdir):/:/g
16787 s/:\${srcdir}:/:/g
16788 s/:@srcdir@:/:/g
16789 s/^:*//
16790 s/:*$//
16791 x
16792 s/\(=[ ]*\).*/\1/
16793 G
16794 s/\n//
16795 s/^[^=]*=[ ]*$//
16796 }'
16797 fi
16798
16799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16800 fi # test -n "$CONFIG_FILES"
16801
16802 # Set up the scripts for CONFIG_HEADERS section.
16803 # No need to generate them if there are no CONFIG_HEADERS.
16804 # This happens for instance with `./config.status Makefile'.
16805 if test -n "$CONFIG_HEADERS"; then
16806 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16807 BEGIN {
16808 _ACEOF
16809
16810 # Transform confdefs.h into an awk script `defines.awk', embedded as
16811 # here-document in config.status, that substitutes the proper values into
16812 # config.h.in to produce config.h.
16813
16814 # Create a delimiter string that does not exist in confdefs.h, to ease
16815 # handling of long lines.
16816 ac_delim='%!_!# '
16817 for ac_last_try in false false :; do
16818 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16819 if test -z "$ac_tt"; then
16820 break
16821 elif $ac_last_try; then
16822 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16823 else
16824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16825 fi
16826 done
16827
16828 # For the awk script, D is an array of macro values keyed by name,
16829 # likewise P contains macro parameters if any. Preserve backslash
16830 # newline sequences.
16831
16832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16833 sed -n '
16834 s/.\{148\}/&'"$ac_delim"'/g
16835 t rset
16836 :rset
16837 s/^[ ]*#[ ]*define[ ][ ]*/ /
16838 t def
16839 d
16840 :def
16841 s/\\$//
16842 t bsnl
16843 s/["\\]/\\&/g
16844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16845 D["\1"]=" \3"/p
16846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16847 d
16848 :bsnl
16849 s/["\\]/\\&/g
16850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16851 D["\1"]=" \3\\\\\\n"\\/p
16852 t cont
16853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16854 t cont
16855 d
16856 :cont
16857 n
16858 s/.\{148\}/&'"$ac_delim"'/g
16859 t clear
16860 :clear
16861 s/\\$//
16862 t bsnlc
16863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16864 d
16865 :bsnlc
16866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16867 b cont
16868 ' <confdefs.h | sed '
16869 s/'"$ac_delim"'/"\\\
16870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16871
16872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16873 for (key in D) D_is_set[key] = 1
16874 FS = "\a"
16875 }
16876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16877 line = \$ 0
16878 split(line, arg, " ")
16879 if (arg[1] == "#") {
16880 defundef = arg[2]
16881 mac1 = arg[3]
16882 } else {
16883 defundef = substr(arg[1], 2)
16884 mac1 = arg[2]
16885 }
16886 split(mac1, mac2, "(") #)
16887 macro = mac2[1]
16888 prefix = substr(line, 1, index(line, defundef) - 1)
16889 if (D_is_set[macro]) {
16890 # Preserve the white space surrounding the "#".
16891 print prefix "define", macro P[macro] D[macro]
16892 next
16893 } else {
16894 # Replace #undef with comments. This is necessary, for example,
16895 # in the case of _POSIX_SOURCE, which is predefined and required
16896 # on some systems where configure will not decide to define it.
16897 if (defundef == "undef") {
16898 print "/*", prefix defundef, macro, "*/"
16899 next
16900 }
16901 }
16902 }
16903 { print }
16904 _ACAWK
16905 _ACEOF
16906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16908 fi # test -n "$CONFIG_HEADERS"
16909
16910
16911 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16912 shift
16913 for ac_tag
16914 do
16915 case $ac_tag in
16916 :[FHLC]) ac_mode=$ac_tag; continue;;
16917 esac
16918 case $ac_mode$ac_tag in
16919 :[FHL]*:*);;
16920 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16921 :[FH]-) ac_tag=-:-;;
16922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16923 esac
16924 ac_save_IFS=$IFS
16925 IFS=:
16926 set x $ac_tag
16927 IFS=$ac_save_IFS
16928 shift
16929 ac_file=$1
16930 shift
16931
16932 case $ac_mode in
16933 :L) ac_source=$1;;
16934 :[FH])
16935 ac_file_inputs=
16936 for ac_f
16937 do
16938 case $ac_f in
16939 -) ac_f="$ac_tmp/stdin";;
16940 *) # Look for the file first in the build tree, then in the source tree
16941 # (if the path is not absolute). The absolute path cannot be DOS-style,
16942 # because $ac_f cannot contain `:'.
16943 test -f "$ac_f" ||
16944 case $ac_f in
16945 [\\/$]*) false;;
16946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16947 esac ||
16948 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16949 esac
16950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16951 as_fn_append ac_file_inputs " '$ac_f'"
16952 done
16953
16954 # Let's still pretend it is `configure' which instantiates (i.e., don't
16955 # use $as_me), people would be surprised to read:
16956 # /* config.h. Generated by config.status. */
16957 configure_input='Generated from '`
16958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16959 `' by configure.'
16960 if test x"$ac_file" != x-; then
16961 configure_input="$ac_file. $configure_input"
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16963 $as_echo "$as_me: creating $ac_file" >&6;}
16964 fi
16965 # Neutralize special characters interpreted by sed in replacement strings.
16966 case $configure_input in #(
16967 *\&* | *\|* | *\\* )
16968 ac_sed_conf_input=`$as_echo "$configure_input" |
16969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16970 *) ac_sed_conf_input=$configure_input;;
16971 esac
16972
16973 case $ac_tag in
16974 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16976 esac
16977 ;;
16978 esac
16979
16980 ac_dir=`$as_dirname -- "$ac_file" ||
16981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16982 X"$ac_file" : 'X\(//\)[^/]' \| \
16983 X"$ac_file" : 'X\(//\)$' \| \
16984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16985 $as_echo X"$ac_file" |
16986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16987 s//\1/
16988 q
16989 }
16990 /^X\(\/\/\)[^/].*/{
16991 s//\1/
16992 q
16993 }
16994 /^X\(\/\/\)$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\(\/\).*/{
16999 s//\1/
17000 q
17001 }
17002 s/.*/./; q'`
17003 as_dir="$ac_dir"; as_fn_mkdir_p
17004 ac_builddir=.
17005
17006 case "$ac_dir" in
17007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17008 *)
17009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17010 # A ".." for each directory in $ac_dir_suffix.
17011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17012 case $ac_top_builddir_sub in
17013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17015 esac ;;
17016 esac
17017 ac_abs_top_builddir=$ac_pwd
17018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17019 # for backward compatibility:
17020 ac_top_builddir=$ac_top_build_prefix
17021
17022 case $srcdir in
17023 .) # We are building in place.
17024 ac_srcdir=.
17025 ac_top_srcdir=$ac_top_builddir_sub
17026 ac_abs_top_srcdir=$ac_pwd ;;
17027 [\\/]* | ?:[\\/]* ) # Absolute name.
17028 ac_srcdir=$srcdir$ac_dir_suffix;
17029 ac_top_srcdir=$srcdir
17030 ac_abs_top_srcdir=$srcdir ;;
17031 *) # Relative name.
17032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17033 ac_top_srcdir=$ac_top_build_prefix$srcdir
17034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17035 esac
17036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17037
17038
17039 case $ac_mode in
17040 :F)
17041 #
17042 # CONFIG_FILE
17043 #
17044
17045 case $INSTALL in
17046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17048 esac
17049 ac_MKDIR_P=$MKDIR_P
17050 case $MKDIR_P in
17051 [\\/$]* | ?:[\\/]* ) ;;
17052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17053 esac
17054 _ACEOF
17055
17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17057 # If the template does not know about datarootdir, expand it.
17058 # FIXME: This hack should be removed a few years after 2.60.
17059 ac_datarootdir_hack=; ac_datarootdir_seen=
17060 ac_sed_dataroot='
17061 /datarootdir/ {
17062 p
17063 q
17064 }
17065 /@datadir@/p
17066 /@docdir@/p
17067 /@infodir@/p
17068 /@localedir@/p
17069 /@mandir@/p'
17070 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17071 *datarootdir*) ac_datarootdir_seen=yes;;
17072 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17074 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17075 _ACEOF
17076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077 ac_datarootdir_hack='
17078 s&@datadir@&$datadir&g
17079 s&@docdir@&$docdir&g
17080 s&@infodir@&$infodir&g
17081 s&@localedir@&$localedir&g
17082 s&@mandir@&$mandir&g
17083 s&\\\${datarootdir}&$datarootdir&g' ;;
17084 esac
17085 _ACEOF
17086
17087 # Neutralize VPATH when `$srcdir' = `.'.
17088 # Shell code in configure.ac might set extrasub.
17089 # FIXME: do we really want to maintain this feature?
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 ac_sed_extra="$ac_vpsub
17092 $extrasub
17093 _ACEOF
17094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17095 :t
17096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17097 s|@configure_input@|$ac_sed_conf_input|;t t
17098 s&@top_builddir@&$ac_top_builddir_sub&;t t
17099 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17100 s&@srcdir@&$ac_srcdir&;t t
17101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17102 s&@top_srcdir@&$ac_top_srcdir&;t t
17103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17104 s&@builddir@&$ac_builddir&;t t
17105 s&@abs_builddir@&$ac_abs_builddir&;t t
17106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17107 s&@INSTALL@&$ac_INSTALL&;t t
17108 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17109 $ac_datarootdir_hack
17110 "
17111 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17113
17114 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17117 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17119 which seems to be undefined. Please make sure it is defined" >&5
17120 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17121 which seems to be undefined. Please make sure it is defined" >&2;}
17122
17123 rm -f "$ac_tmp/stdin"
17124 case $ac_file in
17125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17127 esac \
17128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17129 ;;
17130 :H)
17131 #
17132 # CONFIG_HEADER
17133 #
17134 if test x"$ac_file" != x-; then
17135 {
17136 $as_echo "/* $configure_input */" \
17137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17138 } >"$ac_tmp/config.h" \
17139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17142 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17143 else
17144 rm -f "$ac_file"
17145 mv "$ac_tmp/config.h" "$ac_file" \
17146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17147 fi
17148 else
17149 $as_echo "/* $configure_input */" \
17150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17151 || as_fn_error $? "could not create -" "$LINENO" 5
17152 fi
17153 # Compute "$ac_file"'s index in $config_headers.
17154 _am_arg="$ac_file"
17155 _am_stamp_count=1
17156 for _am_header in $config_headers :; do
17157 case $_am_header in
17158 $_am_arg | $_am_arg:* )
17159 break ;;
17160 * )
17161 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17162 esac
17163 done
17164 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17165 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17166 X"$_am_arg" : 'X\(//\)[^/]' \| \
17167 X"$_am_arg" : 'X\(//\)$' \| \
17168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17169 $as_echo X"$_am_arg" |
17170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17171 s//\1/
17172 q
17173 }
17174 /^X\(\/\/\)[^/].*/{
17175 s//\1/
17176 q
17177 }
17178 /^X\(\/\/\)$/{
17179 s//\1/
17180 q
17181 }
17182 /^X\(\/\).*/{
17183 s//\1/
17184 q
17185 }
17186 s/.*/./; q'`/stamp-h$_am_stamp_count
17187 ;;
17188
17189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17190 $as_echo "$as_me: executing $ac_file commands" >&6;}
17191 ;;
17192 esac
17193
17194
17195 case $ac_file$ac_mode in
17196 "libtool":C)
17197
17198 # See if we are running on zsh, and set the options which allow our
17199 # commands through without removal of \ escapes.
17200 if test -n "${ZSH_VERSION+set}" ; then
17201 setopt NO_GLOB_SUBST
17202 fi
17203
17204 cfgfile="${ofile}T"
17205 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17206 $RM "$cfgfile"
17207
17208 cat <<_LT_EOF >> "$cfgfile"
17209 #! $SHELL
17210
17211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17215 #
17216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17217 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17218 # Written by Gordon Matzigkeit, 1996
17219 #
17220 # This file is part of GNU Libtool.
17221 #
17222 # GNU Libtool is free software; you can redistribute it and/or
17223 # modify it under the terms of the GNU General Public License as
17224 # published by the Free Software Foundation; either version 2 of
17225 # the License, or (at your option) any later version.
17226 #
17227 # As a special exception to the GNU General Public License,
17228 # if you distribute this file as part of a program or library that
17229 # is built using GNU Libtool, you may include this file under the
17230 # same distribution terms that you use for the rest of that program.
17231 #
17232 # GNU Libtool is distributed in the hope that it will be useful,
17233 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17235 # GNU General Public License for more details.
17236 #
17237 # You should have received a copy of the GNU General Public License
17238 # along with GNU Libtool; see the file COPYING. If not, a copy
17239 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17240 # obtained by writing to the Free Software Foundation, Inc.,
17241 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17242
17243
17244 # The names of the tagged configurations supported by this script.
17245 available_tags=""
17246
17247 # ### BEGIN LIBTOOL CONFIG
17248
17249 # Which release of libtool.m4 was used?
17250 macro_version=$macro_version
17251 macro_revision=$macro_revision
17252
17253 # Whether or not to build shared libraries.
17254 build_libtool_libs=$enable_shared
17255
17256 # Whether or not to build static libraries.
17257 build_old_libs=$enable_static
17258
17259 # What type of objects to build.
17260 pic_mode=$pic_mode
17261
17262 # Whether or not to optimize for fast installation.
17263 fast_install=$enable_fast_install
17264
17265 # Shell to use when invoking shell scripts.
17266 SHELL=$lt_SHELL
17267
17268 # An echo program that protects backslashes.
17269 ECHO=$lt_ECHO
17270
17271 # The host system.
17272 host_alias=$host_alias
17273 host=$host
17274 host_os=$host_os
17275
17276 # The build system.
17277 build_alias=$build_alias
17278 build=$build
17279 build_os=$build_os
17280
17281 # A sed program that does not truncate output.
17282 SED=$lt_SED
17283
17284 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17285 Xsed="\$SED -e 1s/^X//"
17286
17287 # A grep program that handles long lines.
17288 GREP=$lt_GREP
17289
17290 # An ERE matcher.
17291 EGREP=$lt_EGREP
17292
17293 # A literal string matcher.
17294 FGREP=$lt_FGREP
17295
17296 # A BSD- or MS-compatible name lister.
17297 NM=$lt_NM
17298
17299 # Whether we need soft or hard links.
17300 LN_S=$lt_LN_S
17301
17302 # What is the maximum length of a command?
17303 max_cmd_len=$max_cmd_len
17304
17305 # Object file suffix (normally "o").
17306 objext=$ac_objext
17307
17308 # Executable file suffix (normally "").
17309 exeext=$exeext
17310
17311 # whether the shell understands "unset".
17312 lt_unset=$lt_unset
17313
17314 # turn spaces into newlines.
17315 SP2NL=$lt_lt_SP2NL
17316
17317 # turn newlines into spaces.
17318 NL2SP=$lt_lt_NL2SP
17319
17320 # An object symbol dumper.
17321 OBJDUMP=$lt_OBJDUMP
17322
17323 # Method to check whether dependent libraries are shared objects.
17324 deplibs_check_method=$lt_deplibs_check_method
17325
17326 # Command to use when deplibs_check_method == "file_magic".
17327 file_magic_cmd=$lt_file_magic_cmd
17328
17329 # The archiver.
17330 AR=$lt_AR
17331 AR_FLAGS=$lt_AR_FLAGS
17332
17333 # A symbol stripping program.
17334 STRIP=$lt_STRIP
17335
17336 # Commands used to install an old-style archive.
17337 RANLIB=$lt_RANLIB
17338 old_postinstall_cmds=$lt_old_postinstall_cmds
17339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17340
17341 # Whether to use a lock for old archive extraction.
17342 lock_old_archive_extraction=$lock_old_archive_extraction
17343
17344 # A C compiler.
17345 LTCC=$lt_CC
17346
17347 # LTCC compiler flags.
17348 LTCFLAGS=$lt_CFLAGS
17349
17350 # Take the output of nm and produce a listing of raw symbols and C names.
17351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17352
17353 # Transform the output of nm in a proper C declaration.
17354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17355
17356 # Transform the output of nm in a C name address pair.
17357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17358
17359 # Transform the output of nm in a C name address pair when lib prefix is needed.
17360 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17361
17362 # The name of the directory that contains temporary libtool files.
17363 objdir=$objdir
17364
17365 # Used to examine libraries when file_magic_cmd begins with "file".
17366 MAGIC_CMD=$MAGIC_CMD
17367
17368 # Must we lock files when doing compilation?
17369 need_locks=$lt_need_locks
17370
17371 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17372 DSYMUTIL=$lt_DSYMUTIL
17373
17374 # Tool to change global to local symbols on Mac OS X.
17375 NMEDIT=$lt_NMEDIT
17376
17377 # Tool to manipulate fat objects and archives on Mac OS X.
17378 LIPO=$lt_LIPO
17379
17380 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17381 OTOOL=$lt_OTOOL
17382
17383 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17384 OTOOL64=$lt_OTOOL64
17385
17386 # Old archive suffix (normally "a").
17387 libext=$libext
17388
17389 # Shared library suffix (normally ".so").
17390 shrext_cmds=$lt_shrext_cmds
17391
17392 # The commands to extract the exported symbol list from a shared archive.
17393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17394
17395 # Variables whose values should be saved in libtool wrapper scripts and
17396 # restored at link time.
17397 variables_saved_for_relink=$lt_variables_saved_for_relink
17398
17399 # Do we need the "lib" prefix for modules?
17400 need_lib_prefix=$need_lib_prefix
17401
17402 # Do we need a version for libraries?
17403 need_version=$need_version
17404
17405 # Library versioning type.
17406 version_type=$version_type
17407
17408 # Shared library runtime path variable.
17409 runpath_var=$runpath_var
17410
17411 # Shared library path variable.
17412 shlibpath_var=$shlibpath_var
17413
17414 # Is shlibpath searched before the hard-coded library search path?
17415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17416
17417 # Format of library name prefix.
17418 libname_spec=$lt_libname_spec
17419
17420 # List of archive names. First name is the real one, the rest are links.
17421 # The last name is the one that the linker finds with -lNAME
17422 library_names_spec=$lt_library_names_spec
17423
17424 # The coded name of the library, if different from the real name.
17425 soname_spec=$lt_soname_spec
17426
17427 # Permission mode override for installation of shared libraries.
17428 install_override_mode=$lt_install_override_mode
17429
17430 # Command to use after installation of a shared archive.
17431 postinstall_cmds=$lt_postinstall_cmds
17432
17433 # Command to use after uninstallation of a shared archive.
17434 postuninstall_cmds=$lt_postuninstall_cmds
17435
17436 # Commands used to finish a libtool library installation in a directory.
17437 finish_cmds=$lt_finish_cmds
17438
17439 # As "finish_cmds", except a single script fragment to be evaled but
17440 # not shown.
17441 finish_eval=$lt_finish_eval
17442
17443 # Whether we should hardcode library paths into libraries.
17444 hardcode_into_libs=$hardcode_into_libs
17445
17446 # Compile-time system search path for libraries.
17447 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17448
17449 # Run-time system search path for libraries.
17450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17451
17452 # Whether dlopen is supported.
17453 dlopen_support=$enable_dlopen
17454
17455 # Whether dlopen of programs is supported.
17456 dlopen_self=$enable_dlopen_self
17457
17458 # Whether dlopen of statically linked programs is supported.
17459 dlopen_self_static=$enable_dlopen_self_static
17460
17461 # Commands to strip libraries.
17462 old_striplib=$lt_old_striplib
17463 striplib=$lt_striplib
17464
17465
17466 # The linker used to build libraries.
17467 LD=$lt_LD
17468
17469 # How to create reloadable object files.
17470 reload_flag=$lt_reload_flag
17471 reload_cmds=$lt_reload_cmds
17472
17473 # Commands used to build an old-style archive.
17474 old_archive_cmds=$lt_old_archive_cmds
17475
17476 # A language specific compiler.
17477 CC=$lt_compiler
17478
17479 # Is the compiler the GNU compiler?
17480 with_gcc=$GCC
17481
17482 # Compiler flag to turn off builtin functions.
17483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17484
17485 # How to pass a linker flag through the compiler.
17486 wl=$lt_lt_prog_compiler_wl
17487
17488 # Additional compiler flags for building library objects.
17489 pic_flag=$lt_lt_prog_compiler_pic
17490
17491 # Compiler flag to prevent dynamic linking.
17492 link_static_flag=$lt_lt_prog_compiler_static
17493
17494 # Does compiler simultaneously support -c and -o options?
17495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17496
17497 # Whether or not to add -lc for building shared libraries.
17498 build_libtool_need_lc=$archive_cmds_need_lc
17499
17500 # Whether or not to disallow shared libs when runtime libs are static.
17501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17502
17503 # Compiler flag to allow reflexive dlopens.
17504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17505
17506 # Compiler flag to generate shared objects directly from archives.
17507 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17508
17509 # Whether the compiler copes with passing no objects directly.
17510 compiler_needs_object=$lt_compiler_needs_object
17511
17512 # Create an old-style archive from a shared archive.
17513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17514
17515 # Create a temporary old-style archive to link instead of a shared archive.
17516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17517
17518 # Commands used to build a shared archive.
17519 archive_cmds=$lt_archive_cmds
17520 archive_expsym_cmds=$lt_archive_expsym_cmds
17521
17522 # Commands used to build a loadable module if different from building
17523 # a shared archive.
17524 module_cmds=$lt_module_cmds
17525 module_expsym_cmds=$lt_module_expsym_cmds
17526
17527 # Whether we are building with GNU ld or not.
17528 with_gnu_ld=$lt_with_gnu_ld
17529
17530 # Flag that allows shared libraries with undefined symbols to be built.
17531 allow_undefined_flag=$lt_allow_undefined_flag
17532
17533 # Flag that enforces no undefined symbols.
17534 no_undefined_flag=$lt_no_undefined_flag
17535
17536 # Flag to hardcode \$libdir into a binary during linking.
17537 # This must work even if \$libdir does not exist
17538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17539
17540 # If ld is used when linking, flag to hardcode \$libdir into a binary
17541 # during linking. This must work even if \$libdir does not exist.
17542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17543
17544 # Whether we need a single "-rpath" flag with a separated argument.
17545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17546
17547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17548 # DIR into the resulting binary.
17549 hardcode_direct=$hardcode_direct
17550
17551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17552 # DIR into the resulting binary and the resulting library dependency is
17553 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17554 # library is relocated.
17555 hardcode_direct_absolute=$hardcode_direct_absolute
17556
17557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17558 # into the resulting binary.
17559 hardcode_minus_L=$hardcode_minus_L
17560
17561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17562 # into the resulting binary.
17563 hardcode_shlibpath_var=$hardcode_shlibpath_var
17564
17565 # Set to "yes" if building a shared library automatically hardcodes DIR
17566 # into the library and all subsequent libraries and executables linked
17567 # against it.
17568 hardcode_automatic=$hardcode_automatic
17569
17570 # Set to yes if linker adds runtime paths of dependent libraries
17571 # to runtime path list.
17572 inherit_rpath=$inherit_rpath
17573
17574 # Whether libtool must link a program against all its dependency libraries.
17575 link_all_deplibs=$link_all_deplibs
17576
17577 # Fix the shell variable \$srcfile for the compiler.
17578 fix_srcfile_path=$lt_fix_srcfile_path
17579
17580 # Set to "yes" if exported symbols are required.
17581 always_export_symbols=$always_export_symbols
17582
17583 # The commands to list exported symbols.
17584 export_symbols_cmds=$lt_export_symbols_cmds
17585
17586 # Symbols that should not be listed in the preloaded symbols.
17587 exclude_expsyms=$lt_exclude_expsyms
17588
17589 # Symbols that must always be exported.
17590 include_expsyms=$lt_include_expsyms
17591
17592 # Commands necessary for linking programs (against libraries) with templates.
17593 prelink_cmds=$lt_prelink_cmds
17594
17595 # Specify filename containing input files.
17596 file_list_spec=$lt_file_list_spec
17597
17598 # How to hardcode a shared library path into an executable.
17599 hardcode_action=$hardcode_action
17600
17601 # ### END LIBTOOL CONFIG
17602
17603 _LT_EOF
17604
17605 case $host_os in
17606 aix3*)
17607 cat <<\_LT_EOF >> "$cfgfile"
17608 # AIX sometimes has problems with the GCC collect2 program. For some
17609 # reason, if we set the COLLECT_NAMES environment variable, the problems
17610 # vanish in a puff of smoke.
17611 if test "X${COLLECT_NAMES+set}" != Xset; then
17612 COLLECT_NAMES=
17613 export COLLECT_NAMES
17614 fi
17615 _LT_EOF
17616 ;;
17617 esac
17618
17619
17620 ltmain="$ac_aux_dir/ltmain.sh"
17621
17622
17623 # We use sed instead of cat because bash on DJGPP gets confused if
17624 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17625 # text mode, it properly converts lines to CR/LF. This bash problem
17626 # is reportedly fixed, but why not run on old versions too?
17627 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17628 || (rm -f "$cfgfile"; exit 1)
17629
17630 case $xsi_shell in
17631 yes)
17632 cat << \_LT_EOF >> "$cfgfile"
17633
17634 # func_dirname file append nondir_replacement
17635 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17636 # otherwise set result to NONDIR_REPLACEMENT.
17637 func_dirname ()
17638 {
17639 case ${1} in
17640 */*) func_dirname_result="${1%/*}${2}" ;;
17641 * ) func_dirname_result="${3}" ;;
17642 esac
17643 }
17644
17645 # func_basename file
17646 func_basename ()
17647 {
17648 func_basename_result="${1##*/}"
17649 }
17650
17651 # func_dirname_and_basename file append nondir_replacement
17652 # perform func_basename and func_dirname in a single function
17653 # call:
17654 # dirname: Compute the dirname of FILE. If nonempty,
17655 # add APPEND to the result, otherwise set result
17656 # to NONDIR_REPLACEMENT.
17657 # value returned in "$func_dirname_result"
17658 # basename: Compute filename of FILE.
17659 # value retuned in "$func_basename_result"
17660 # Implementation must be kept synchronized with func_dirname
17661 # and func_basename. For efficiency, we do not delegate to
17662 # those functions but instead duplicate the functionality here.
17663 func_dirname_and_basename ()
17664 {
17665 case ${1} in
17666 */*) func_dirname_result="${1%/*}${2}" ;;
17667 * ) func_dirname_result="${3}" ;;
17668 esac
17669 func_basename_result="${1##*/}"
17670 }
17671
17672 # func_stripname prefix suffix name
17673 # strip PREFIX and SUFFIX off of NAME.
17674 # PREFIX and SUFFIX must not contain globbing or regex special
17675 # characters, hashes, percent signs, but SUFFIX may contain a leading
17676 # dot (in which case that matches only a dot).
17677 func_stripname ()
17678 {
17679 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17680 # positional parameters, so assign one to ordinary parameter first.
17681 func_stripname_result=${3}
17682 func_stripname_result=${func_stripname_result#"${1}"}
17683 func_stripname_result=${func_stripname_result%"${2}"}
17684 }
17685
17686 # func_opt_split
17687 func_opt_split ()
17688 {
17689 func_opt_split_opt=${1%%=*}
17690 func_opt_split_arg=${1#*=}
17691 }
17692
17693 # func_lo2o object
17694 func_lo2o ()
17695 {
17696 case ${1} in
17697 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17698 *) func_lo2o_result=${1} ;;
17699 esac
17700 }
17701
17702 # func_xform libobj-or-source
17703 func_xform ()
17704 {
17705 func_xform_result=${1%.*}.lo
17706 }
17707
17708 # func_arith arithmetic-term...
17709 func_arith ()
17710 {
17711 func_arith_result=$(( $* ))
17712 }
17713
17714 # func_len string
17715 # STRING may not start with a hyphen.
17716 func_len ()
17717 {
17718 func_len_result=${#1}
17719 }
17720
17721 _LT_EOF
17722 ;;
17723 *) # Bourne compatible functions.
17724 cat << \_LT_EOF >> "$cfgfile"
17725
17726 # func_dirname file append nondir_replacement
17727 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17728 # otherwise set result to NONDIR_REPLACEMENT.
17729 func_dirname ()
17730 {
17731 # Extract subdirectory from the argument.
17732 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17733 if test "X$func_dirname_result" = "X${1}"; then
17734 func_dirname_result="${3}"
17735 else
17736 func_dirname_result="$func_dirname_result${2}"
17737 fi
17738 }
17739
17740 # func_basename file
17741 func_basename ()
17742 {
17743 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17744 }
17745
17746
17747 # func_stripname prefix suffix name
17748 # strip PREFIX and SUFFIX off of NAME.
17749 # PREFIX and SUFFIX must not contain globbing or regex special
17750 # characters, hashes, percent signs, but SUFFIX may contain a leading
17751 # dot (in which case that matches only a dot).
17752 # func_strip_suffix prefix name
17753 func_stripname ()
17754 {
17755 case ${2} in
17756 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17757 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17758 esac
17759 }
17760
17761 # sed scripts:
17762 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17763 my_sed_long_arg='1s/^-[^=]*=//'
17764
17765 # func_opt_split
17766 func_opt_split ()
17767 {
17768 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17769 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17770 }
17771
17772 # func_lo2o object
17773 func_lo2o ()
17774 {
17775 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17776 }
17777
17778 # func_xform libobj-or-source
17779 func_xform ()
17780 {
17781 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17782 }
17783
17784 # func_arith arithmetic-term...
17785 func_arith ()
17786 {
17787 func_arith_result=`expr "$@"`
17788 }
17789
17790 # func_len string
17791 # STRING may not start with a hyphen.
17792 func_len ()
17793 {
17794 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17795 }
17796
17797 _LT_EOF
17798 esac
17799
17800 case $lt_shell_append in
17801 yes)
17802 cat << \_LT_EOF >> "$cfgfile"
17803
17804 # func_append var value
17805 # Append VALUE to the end of shell variable VAR.
17806 func_append ()
17807 {
17808 eval "$1+=\$2"
17809 }
17810 _LT_EOF
17811 ;;
17812 *)
17813 cat << \_LT_EOF >> "$cfgfile"
17814
17815 # func_append var value
17816 # Append VALUE to the end of shell variable VAR.
17817 func_append ()
17818 {
17819 eval "$1=\$$1\$2"
17820 }
17821
17822 _LT_EOF
17823 ;;
17824 esac
17825
17826
17827 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17828 || (rm -f "$cfgfile"; exit 1)
17829
17830 mv -f "$cfgfile" "$ofile" ||
17831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17832 chmod +x "$ofile"
17833
17834 ;;
17835 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17836 # Older Autoconf quotes --file arguments for eval, but not when files
17837 # are listed without --file. Let's play safe and only enable the eval
17838 # if we detect the quoting.
17839 case $CONFIG_FILES in
17840 *\'*) eval set x "$CONFIG_FILES" ;;
17841 *) set x $CONFIG_FILES ;;
17842 esac
17843 shift
17844 for mf
17845 do
17846 # Strip MF so we end up with the name of the file.
17847 mf=`echo "$mf" | sed -e 's/:.*$//'`
17848 # Check whether this is an Automake generated Makefile or not.
17849 # We used to match only the files named 'Makefile.in', but
17850 # some people rename them; so instead we look at the file content.
17851 # Grep'ing the first line is not enough: some people post-process
17852 # each Makefile.in and add a new line on top of each file to say so.
17853 # Grep'ing the whole file is not good either: AIX grep has a line
17854 # limit of 2048, but all sed's we know have understand at least 4000.
17855 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17856 dirpart=`$as_dirname -- "$mf" ||
17857 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17858 X"$mf" : 'X\(//\)[^/]' \| \
17859 X"$mf" : 'X\(//\)$' \| \
17860 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17861 $as_echo X"$mf" |
17862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17863 s//\1/
17864 q
17865 }
17866 /^X\(\/\/\)[^/].*/{
17867 s//\1/
17868 q
17869 }
17870 /^X\(\/\/\)$/{
17871 s//\1/
17872 q
17873 }
17874 /^X\(\/\).*/{
17875 s//\1/
17876 q
17877 }
17878 s/.*/./; q'`
17879 else
17880 continue
17881 fi
17882 # Extract the definition of DEPDIR, am__include, and am__quote
17883 # from the Makefile without running 'make'.
17884 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17885 test -z "$DEPDIR" && continue
17886 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17887 test -z "$am__include" && continue
17888 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17889 # Find all dependency output files, they are included files with
17890 # $(DEPDIR) in their names. We invoke sed twice because it is the
17891 # simplest approach to changing $(DEPDIR) to its actual value in the
17892 # expansion.
17893 for file in `sed -n "
17894 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17895 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17896 # Make sure the directory exists.
17897 test -f "$dirpart/$file" && continue
17898 fdir=`$as_dirname -- "$file" ||
17899 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17900 X"$file" : 'X\(//\)[^/]' \| \
17901 X"$file" : 'X\(//\)$' \| \
17902 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17903 $as_echo X"$file" |
17904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17905 s//\1/
17906 q
17907 }
17908 /^X\(\/\/\)[^/].*/{
17909 s//\1/
17910 q
17911 }
17912 /^X\(\/\/\)$/{
17913 s//\1/
17914 q
17915 }
17916 /^X\(\/\).*/{
17917 s//\1/
17918 q
17919 }
17920 s/.*/./; q'`
17921 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17922 # echo "creating $dirpart/$file"
17923 echo '# dummy' > "$dirpart/$file"
17924 done
17925 done
17926 }
17927 ;;
17928 "aarch64/Makefile":C) sed -n \
17929 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17930 /^srcdir = / s:$:/aarch64:
17931 p
17932 }' \
17933 <Make-common.sim >aarch64/Makesim1.tmp
17934 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
17935 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
17936 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
17937 <aarch64/Makefile.sim >aarch64/Makefile
17938 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
17939 ;;
17940 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
17941 "arm/Makefile":C) sed -n \
17942 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17943 /^srcdir = / s:$:/arm:
17944 p
17945 }' \
17946 <Make-common.sim >arm/Makesim1.tmp
17947 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
17948 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
17949 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
17950 <arm/Makefile.sim >arm/Makefile
17951 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
17952 ;;
17953 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
17954 "avr/Makefile":C) sed -n \
17955 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17956 /^srcdir = / s:$:/avr:
17957 p
17958 }' \
17959 <Make-common.sim >avr/Makesim1.tmp
17960 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
17961 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
17962 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
17963 <avr/Makefile.sim >avr/Makefile
17964 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
17965 ;;
17966 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
17967 "bfin/Makefile":C) sed -n \
17968 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17969 /^srcdir = / s:$:/bfin:
17970 p
17971 }' \
17972 <Make-common.sim >bfin/Makesim1.tmp
17973 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
17974 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
17975 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
17976 <bfin/Makefile.sim >bfin/Makefile
17977 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
17978 ;;
17979 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
17980 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
17981 "cr16/Makefile":C) sed -n \
17982 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17983 /^srcdir = / s:$:/cr16:
17984 p
17985 }' \
17986 <Make-common.sim >cr16/Makesim1.tmp
17987 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
17988 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
17989 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
17990 <cr16/Makefile.sim >cr16/Makefile
17991 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
17992 ;;
17993 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
17994 "cris/Makefile":C) sed -n \
17995 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17996 /^srcdir = / s:$:/cris:
17997 p
17998 }' \
17999 <Make-common.sim >cris/Makesim1.tmp
18000 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
18001 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
18002 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
18003 <cris/Makefile.sim >cris/Makefile
18004 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
18005 ;;
18006 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
18007 "d10v/Makefile":C) sed -n \
18008 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18009 /^srcdir = / s:$:/d10v:
18010 p
18011 }' \
18012 <Make-common.sim >d10v/Makesim1.tmp
18013 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
18014 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
18015 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
18016 <d10v/Makefile.sim >d10v/Makefile
18017 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
18018 ;;
18019 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
18020 "frv/Makefile":C) sed -n \
18021 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18022 /^srcdir = / s:$:/frv:
18023 p
18024 }' \
18025 <Make-common.sim >frv/Makesim1.tmp
18026 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
18027 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
18028 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
18029 <frv/Makefile.sim >frv/Makefile
18030 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
18031 ;;
18032 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
18033 "ft32/Makefile":C) sed -n \
18034 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18035 /^srcdir = / s:$:/ft32:
18036 p
18037 }' \
18038 <Make-common.sim >ft32/Makesim1.tmp
18039 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
18040 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
18041 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
18042 <ft32/Makefile.sim >ft32/Makefile
18043 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
18044 ;;
18045 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
18046 "h8300/Makefile":C) sed -n \
18047 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18048 /^srcdir = / s:$:/h8300:
18049 p
18050 }' \
18051 <Make-common.sim >h8300/Makesim1.tmp
18052 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
18053 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
18054 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
18055 <h8300/Makefile.sim >h8300/Makefile
18056 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
18057 ;;
18058 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
18059 "iq2000/Makefile":C) sed -n \
18060 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18061 /^srcdir = / s:$:/iq2000:
18062 p
18063 }' \
18064 <Make-common.sim >iq2000/Makesim1.tmp
18065 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
18066 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
18067 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
18068 <iq2000/Makefile.sim >iq2000/Makefile
18069 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
18070 ;;
18071 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
18072 "lm32/Makefile":C) sed -n \
18073 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18074 /^srcdir = / s:$:/lm32:
18075 p
18076 }' \
18077 <Make-common.sim >lm32/Makesim1.tmp
18078 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
18079 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
18080 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
18081 <lm32/Makefile.sim >lm32/Makefile
18082 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
18083 ;;
18084 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
18085 "m32c/Makefile":C) sed -n \
18086 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18087 /^srcdir = / s:$:/m32c:
18088 p
18089 }' \
18090 <Make-common.sim >m32c/Makesim1.tmp
18091 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
18092 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
18093 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
18094 <m32c/Makefile.sim >m32c/Makefile
18095 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
18096 ;;
18097 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
18098 "m32r/Makefile":C) sed -n \
18099 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18100 /^srcdir = / s:$:/m32r:
18101 p
18102 }' \
18103 <Make-common.sim >m32r/Makesim1.tmp
18104 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
18105 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
18106 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
18107 <m32r/Makefile.sim >m32r/Makefile
18108 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
18109 ;;
18110 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
18111 "m68hc11/Makefile":C) sed -n \
18112 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18113 /^srcdir = / s:$:/m68hc11:
18114 p
18115 }' \
18116 <Make-common.sim >m68hc11/Makesim1.tmp
18117 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
18118 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
18119 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
18120 <m68hc11/Makefile.sim >m68hc11/Makefile
18121 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
18122 ;;
18123 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
18124 "mcore/Makefile":C) sed -n \
18125 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18126 /^srcdir = / s:$:/mcore:
18127 p
18128 }' \
18129 <Make-common.sim >mcore/Makesim1.tmp
18130 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
18131 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
18132 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
18133 <mcore/Makefile.sim >mcore/Makefile
18134 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
18135 ;;
18136 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
18137 "microblaze/Makefile":C) sed -n \
18138 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18139 /^srcdir = / s:$:/microblaze:
18140 p
18141 }' \
18142 <Make-common.sim >microblaze/Makesim1.tmp
18143 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
18144 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
18145 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
18146 <microblaze/Makefile.sim >microblaze/Makefile
18147 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
18148 ;;
18149 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
18150 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
18151 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
18152 "moxie/Makefile":C) sed -n \
18153 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18154 /^srcdir = / s:$:/moxie:
18155 p
18156 }' \
18157 <Make-common.sim >moxie/Makesim1.tmp
18158 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
18159 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
18160 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
18161 <moxie/Makefile.sim >moxie/Makefile
18162 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
18163 ;;
18164 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
18165 "msp430/Makefile":C) sed -n \
18166 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18167 /^srcdir = / s:$:/msp430:
18168 p
18169 }' \
18170 <Make-common.sim >msp430/Makesim1.tmp
18171 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
18172 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
18173 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
18174 <msp430/Makefile.sim >msp430/Makefile
18175 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
18176 ;;
18177 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
18178 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
18179 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
18180 "pru/Makefile":C) sed -n \
18181 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18182 /^srcdir = / s:$:/pru:
18183 p
18184 }' \
18185 <Make-common.sim >pru/Makesim1.tmp
18186 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
18187 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
18188 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
18189 <pru/Makefile.sim >pru/Makefile
18190 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
18191 ;;
18192 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
18193 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
18194 "rl78/Makefile":C) sed -n \
18195 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18196 /^srcdir = / s:$:/rl78:
18197 p
18198 }' \
18199 <Make-common.sim >rl78/Makesim1.tmp
18200 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
18201 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
18202 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
18203 <rl78/Makefile.sim >rl78/Makefile
18204 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
18205 ;;
18206 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
18207 "rx/Makefile":C) sed -n \
18208 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18209 /^srcdir = / s:$:/rx:
18210 p
18211 }' \
18212 <Make-common.sim >rx/Makesim1.tmp
18213 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
18214 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
18215 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
18216 <rx/Makefile.sim >rx/Makefile
18217 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
18218 ;;
18219 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
18220 "sh/Makefile":C) sed -n \
18221 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18222 /^srcdir = / s:$:/sh:
18223 p
18224 }' \
18225 <Make-common.sim >sh/Makesim1.tmp
18226 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
18227 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
18228 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
18229 <sh/Makefile.sim >sh/Makefile
18230 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
18231 ;;
18232 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
18233 "erc32/Makefile":C) sed -n \
18234 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18235 /^srcdir = / s:$:/erc32:
18236 p
18237 }' \
18238 <Make-common.sim >erc32/Makesim1.tmp
18239 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
18240 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
18241 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
18242 <erc32/Makefile.sim >erc32/Makefile
18243 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
18244 ;;
18245 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
18246 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
18247 "example-synacor/Makefile":C) sed -n \
18248 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18249 /^srcdir = / s:$:/example-synacor:
18250 p
18251 }' \
18252 <Make-common.sim >example-synacor/Makesim1.tmp
18253 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
18254 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
18255 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
18256 <example-synacor/Makefile.sim >example-synacor/Makefile
18257 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
18258 ;;
18259 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
18260
18261 esac
18262 done # for ac_tag
18263
18264
18265 as_fn_exit 0
18266 _ACEOF
18267 ac_clean_files=$ac_clean_files_save
18268
18269 test $ac_write_fail = 0 ||
18270 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18271
18272
18273 # configure is writing to config.log, and then calls config.status.
18274 # config.status does its own redirection, appending to config.log.
18275 # Unfortunately, on DOS this fails, as config.log is still kept open
18276 # by configure, so config.status won't be able to write to it; its
18277 # output is simply discarded. So we exec the FD to /dev/null,
18278 # effectively closing config.log, so it can be properly (re)opened and
18279 # appended to by config.status. When coming back to configure, we
18280 # need to make the FD available again.
18281 if test "$no_create" != yes; then
18282 ac_cs_success=:
18283 ac_config_status_args=
18284 test "$silent" = yes &&
18285 ac_config_status_args="$ac_config_status_args --quiet"
18286 exec 5>/dev/null
18287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18288 exec 5>>config.log
18289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18290 # would make configure fail if this is the last instruction.
18291 $ac_cs_success || as_fn_exit 1
18292 fi
18293
18294 #
18295 # CONFIG_SUBDIRS section.
18296 #
18297 if test "$no_recursion" != yes; then
18298
18299 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18300 # so they do not pile up.
18301 ac_sub_configure_args=
18302 ac_prev=
18303 eval "set x $ac_configure_args"
18304 shift
18305 for ac_arg
18306 do
18307 if test -n "$ac_prev"; then
18308 ac_prev=
18309 continue
18310 fi
18311 case $ac_arg in
18312 -cache-file | --cache-file | --cache-fil | --cache-fi \
18313 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18314 ac_prev=cache_file ;;
18315 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18316 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18317 | --c=*)
18318 ;;
18319 --config-cache | -C)
18320 ;;
18321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18322 ac_prev=srcdir ;;
18323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18324 ;;
18325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18326 ac_prev=prefix ;;
18327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18328 ;;
18329 --disable-option-checking)
18330 ;;
18331 *)
18332 case $ac_arg in
18333 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18334 esac
18335 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18336 esac
18337 done
18338
18339 # Always prepend --prefix to ensure using the same prefix
18340 # in subdir configurations.
18341 ac_arg="--prefix=$prefix"
18342 case $ac_arg in
18343 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18344 esac
18345 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18346
18347 # Pass --silent
18348 if test "$silent" = yes; then
18349 ac_sub_configure_args="--silent $ac_sub_configure_args"
18350 fi
18351
18352 # Always prepend --disable-option-checking to silence warnings, since
18353 # different subdirs can have different --enable and --with options.
18354 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18355
18356 ac_popdir=`pwd`
18357 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18358
18359 # Do not complain, so a configure script can configure whichever
18360 # parts of a large source tree are present.
18361 test -d "$srcdir/$ac_dir" || continue
18362
18363 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18364 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18365 $as_echo "$ac_msg" >&6
18366 as_dir="$ac_dir"; as_fn_mkdir_p
18367 ac_builddir=.
18368
18369 case "$ac_dir" in
18370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18371 *)
18372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18373 # A ".." for each directory in $ac_dir_suffix.
18374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18375 case $ac_top_builddir_sub in
18376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18378 esac ;;
18379 esac
18380 ac_abs_top_builddir=$ac_pwd
18381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18382 # for backward compatibility:
18383 ac_top_builddir=$ac_top_build_prefix
18384
18385 case $srcdir in
18386 .) # We are building in place.
18387 ac_srcdir=.
18388 ac_top_srcdir=$ac_top_builddir_sub
18389 ac_abs_top_srcdir=$ac_pwd ;;
18390 [\\/]* | ?:[\\/]* ) # Absolute name.
18391 ac_srcdir=$srcdir$ac_dir_suffix;
18392 ac_top_srcdir=$srcdir
18393 ac_abs_top_srcdir=$srcdir ;;
18394 *) # Relative name.
18395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18396 ac_top_srcdir=$ac_top_build_prefix$srcdir
18397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18398 esac
18399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18400
18401
18402 cd "$ac_dir"
18403
18404 # Check for guested configure; otherwise get Cygnus style configure.
18405 if test -f "$ac_srcdir/configure.gnu"; then
18406 ac_sub_configure=$ac_srcdir/configure.gnu
18407 elif test -f "$ac_srcdir/configure"; then
18408 ac_sub_configure=$ac_srcdir/configure
18409 elif test -f "$ac_srcdir/configure.in"; then
18410 # This should be Cygnus configure.
18411 ac_sub_configure=$ac_aux_dir/configure
18412 else
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18415 ac_sub_configure=
18416 fi
18417
18418 # The recursion is here.
18419 if test -n "$ac_sub_configure"; then
18420 # Make the cache file name correct relative to the subdirectory.
18421 case $cache_file in
18422 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18423 *) # Relative name.
18424 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18425 esac
18426
18427 { $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
18428 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18429 # The eval makes quoting arguments work.
18430 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18431 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18432 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18433 fi
18434
18435 cd "$ac_popdir"
18436 done
18437 fi
18438 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18440 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18441 fi
18442